mainnet config wip

This commit is contained in:
mmv 2019-09-24 14:30:09 +04:00
parent be49d050ec
commit 26d494fe9f
2 changed files with 18 additions and 0 deletions

View File

@ -4,6 +4,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 mainnetProdConfig from './production-mainnet'
const configuration = () => {
if (process.env.NODE_ENV === 'test') {
@ -11,12 +12,18 @@ const configuration = () => {
}
if (process.env.NODE_ENV === 'production') {
if (process.env.NETWORK === 'mainnet') {
return mainnetProdConfig
}
return prodConfig
}
return devConfig
}
export const getNetwork = () => process.env.NETWORK || 'rinkeby'
const getConfig = ensureOnce(configuration)
export const getTxServiceHost = () => {

View File

@ -0,0 +1,11 @@
// @flow
import prodConfig from './production'
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',
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/',
}
export default prodMainnetConfig