add development-mainnet config

This commit is contained in:
mmv 2019-09-24 17:35:22 +04:00
parent 20e408e62f
commit 5313f01798
3 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,11 @@
// @flow
import devConfig from './development'
import { TX_SERVICE_HOST, RELAY_API_URL } from '~/config/names'
const devMainnetConfig = {
...devConfig,
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1',
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/',
}
export default devMainnetConfig

View File

@ -5,6 +5,7 @@ import { TX_SERVICE_HOST, SIGNATURES_VIA_METAMASK, RELAY_API_URL } from '~/confi
import devConfig from './development'
import testConfig from './testing'
import prodConfig from './production'
import mainnetDevConfig from './development-mainnet'
import mainnetProdConfig from './production-mainnet'
const configuration = () => {
@ -20,6 +21,10 @@ const configuration = () => {
return prodConfig
}
if (process.env.REACT_APP_NETWORK === 'mainnet') {
return mainnetDevConfig
}
return devConfig
}

View File

@ -4,7 +4,7 @@ import { TX_SERVICE_HOST, RELAY_API_URL } from '~/config/names'
const prodMainnetConfig = {
...prodConfig,
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1',
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.gnosisdev.com/api/v1',
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/',
}