2016-08-31 20:10:25 +02:00
|
|
|
const MAINET_RPC_URL = 'https://mainnet.infura.io/metamask'
|
2017-05-16 03:05:11 +02:00
|
|
|
const ROPSTEN_RPC_URL = 'https://ropsten.infura.io/metamask'
|
2017-05-16 04:11:16 +02:00
|
|
|
const KOVAN_RPC_URL = 'https://kovan.infura.io/metamask'
|
|
|
|
const RINKEBY_RPC_URL = 'https://rinkeby.infura.io/metamask'
|
2017-09-30 01:35:58 +02:00
|
|
|
const LOCALHOST_RPC_URL = 'http://localhost:8545'
|
2016-05-20 01:53:16 +02:00
|
|
|
|
2017-12-22 19:43:02 +01:00
|
|
|
const MAINET_RPC_URL_BETA = 'https://mainnet.infura.io/metamask2'
|
|
|
|
const ROPSTEN_RPC_URL_BETA = 'https://ropsten.infura.io/metamask2'
|
|
|
|
const KOVAN_RPC_URL_BETA = 'https://kovan.infura.io/metamask2'
|
|
|
|
const RINKEBY_RPC_URL_BETA = 'https://rinkeby.infura.io/metamask2'
|
|
|
|
|
|
|
|
const DEFAULT_RPC = 'rinkeby'
|
|
|
|
const OLD_UI_NETWORK_TYPE = 'network'
|
|
|
|
const BETA_UI_NETWORK_TYPE = 'networkBeta'
|
|
|
|
|
2018-04-03 18:51:33 +02:00
|
|
|
global.METAMASK_DEBUG = process.env.METAMASK_DEBUG
|
2016-08-12 04:44:59 +02:00
|
|
|
|
2016-05-20 01:53:16 +02:00
|
|
|
module.exports = {
|
|
|
|
network: {
|
2017-09-30 01:35:58 +02:00
|
|
|
localhost: LOCALHOST_RPC_URL,
|
2016-05-20 01:53:16 +02:00
|
|
|
mainnet: MAINET_RPC_URL,
|
2017-05-16 03:05:11 +02:00
|
|
|
ropsten: ROPSTEN_RPC_URL,
|
2017-05-16 04:11:16 +02:00
|
|
|
kovan: KOVAN_RPC_URL,
|
|
|
|
rinkeby: RINKEBY_RPC_URL,
|
2016-05-20 01:53:16 +02:00
|
|
|
},
|
2017-12-22 19:43:02 +01:00
|
|
|
// Used for beta UI
|
|
|
|
networkBeta: {
|
|
|
|
localhost: LOCALHOST_RPC_URL,
|
|
|
|
mainnet: MAINET_RPC_URL_BETA,
|
|
|
|
ropsten: ROPSTEN_RPC_URL_BETA,
|
|
|
|
kovan: KOVAN_RPC_URL_BETA,
|
|
|
|
rinkeby: RINKEBY_RPC_URL_BETA,
|
|
|
|
},
|
2017-08-09 21:25:38 +02:00
|
|
|
networkNames: {
|
|
|
|
3: 'Ropsten',
|
|
|
|
4: 'Rinkeby',
|
|
|
|
42: 'Kovan',
|
|
|
|
},
|
2017-12-22 19:43:02 +01:00
|
|
|
enums: {
|
|
|
|
DEFAULT_RPC,
|
|
|
|
OLD_UI_NETWORK_TYPE,
|
|
|
|
BETA_UI_NETWORK_TYPE,
|
|
|
|
},
|
2016-05-20 01:53:16 +02:00
|
|
|
}
|