1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 02:58:09 +01:00
metamask-extension/app/scripts/config.js

45 lines
1.2 KiB
JavaScript
Raw Normal View History

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'
const LOCALHOST_RPC_URL = 'http://localhost:8545'
2016-05-20 01:53:16 +02: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'
global.METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
2016-08-12 04:44:59 +02:00
2016-05-20 01:53:16 +02:00
module.exports = {
network: {
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
},
// 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,
},
networkNames: {
3: 'Ropsten',
4: 'Rinkeby',
42: 'Kovan',
},
enums: {
DEFAULT_RPC,
OLD_UI_NETWORK_TYPE,
BETA_UI_NETWORK_TYPE,
},
2016-05-20 01:53:16 +02:00
}