mainnet config wip
This commit is contained in:
parent
be49d050ec
commit
26d494fe9f
|
@ -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 = () => {
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue