mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 12:56:01 +01:00
fbeae57247
* add testnet name as prefix for native currency of preloaded testnets
66 lines
1.7 KiB
JavaScript
66 lines
1.7 KiB
JavaScript
import {
|
|
GOERLI,
|
|
GOERLI_CHAIN_ID,
|
|
KOVAN,
|
|
KOVAN_CHAIN_ID,
|
|
MAINNET,
|
|
MAINNET_CHAIN_ID,
|
|
RINKEBY,
|
|
RINKEBY_CHAIN_ID,
|
|
ROPSTEN,
|
|
ROPSTEN_CHAIN_ID,
|
|
getRpcUrl,
|
|
ETH_SYMBOL,
|
|
TEST_NETWORK_TICKER_MAP,
|
|
} from '../../../../shared/constants/network';
|
|
|
|
const defaultNetworksData = [
|
|
{
|
|
labelKey: MAINNET,
|
|
iconColor: '#29B6AF',
|
|
providerType: MAINNET,
|
|
rpcUrl: getRpcUrl({ network: MAINNET, excludeProjectId: true }),
|
|
chainId: MAINNET_CHAIN_ID,
|
|
ticker: ETH_SYMBOL,
|
|
blockExplorerUrl: 'https://etherscan.io',
|
|
},
|
|
{
|
|
labelKey: ROPSTEN,
|
|
iconColor: '#FF4A8D',
|
|
providerType: ROPSTEN,
|
|
rpcUrl: getRpcUrl({ network: ROPSTEN, excludeProjectId: true }),
|
|
chainId: ROPSTEN_CHAIN_ID,
|
|
ticker: TEST_NETWORK_TICKER_MAP[ROPSTEN],
|
|
blockExplorerUrl: 'https://ropsten.etherscan.io',
|
|
},
|
|
{
|
|
labelKey: RINKEBY,
|
|
iconColor: '#F6C343',
|
|
providerType: RINKEBY,
|
|
rpcUrl: getRpcUrl({ network: RINKEBY, excludeProjectId: true }),
|
|
chainId: RINKEBY_CHAIN_ID,
|
|
ticker: TEST_NETWORK_TICKER_MAP[RINKEBY],
|
|
blockExplorerUrl: 'https://rinkeby.etherscan.io',
|
|
},
|
|
{
|
|
labelKey: GOERLI,
|
|
iconColor: '#3099f2',
|
|
providerType: GOERLI,
|
|
rpcUrl: getRpcUrl({ network: GOERLI, excludeProjectId: true }),
|
|
chainId: GOERLI_CHAIN_ID,
|
|
ticker: TEST_NETWORK_TICKER_MAP[GOERLI],
|
|
blockExplorerUrl: 'https://goerli.etherscan.io',
|
|
},
|
|
{
|
|
labelKey: KOVAN,
|
|
iconColor: '#9064FF',
|
|
providerType: KOVAN,
|
|
rpcUrl: getRpcUrl({ network: KOVAN, excludeProjectId: true }),
|
|
chainId: KOVAN_CHAIN_ID,
|
|
ticker: TEST_NETWORK_TICKER_MAP[KOVAN],
|
|
blockExplorerUrl: 'https://kovan.etherscan.io',
|
|
},
|
|
];
|
|
|
|
export { defaultNetworksData };
|