mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
e4923399a9
* feat: add new linea mainnet network * fix: removed unused condition + lint code * fix: update tests + fix network tab issue * feat: add feature toggle for linea mainnet * fix: add feature toggle for linea mainnet * feat: add linea mainnet logo * update @metamask/eth-json-rpc-infura package to support linea networks * update linea mainnet block explorer url * fix: refactor linea mainnet feature toggle * fix: update linea mainnet chain id and rpc url * fix: update settings-search unit test * fix: update linea mainnet feature flag * fix: remove useless async function keyword for linea mainnet feature flag
73 lines
1.9 KiB
JavaScript
73 lines
1.9 KiB
JavaScript
import {
|
|
getRpcUrl,
|
|
TEST_NETWORK_TICKER_MAP,
|
|
CURRENCY_SYMBOLS,
|
|
CHAIN_IDS,
|
|
NETWORK_TYPES,
|
|
} from '../../../../shared/constants/network';
|
|
|
|
const defaultNetworksData = [
|
|
{
|
|
labelKey: NETWORK_TYPES.MAINNET,
|
|
iconColor: '#29B6AF',
|
|
providerType: NETWORK_TYPES.MAINNET,
|
|
rpcUrl: getRpcUrl({
|
|
network: NETWORK_TYPES.MAINNET,
|
|
excludeProjectId: true,
|
|
}),
|
|
chainId: CHAIN_IDS.MAINNET,
|
|
ticker: CURRENCY_SYMBOLS.ETH,
|
|
blockExplorerUrl: 'https://etherscan.io',
|
|
},
|
|
{
|
|
labelKey: NETWORK_TYPES.GOERLI,
|
|
iconColor: '#3099f2',
|
|
providerType: NETWORK_TYPES.GOERLI,
|
|
rpcUrl: getRpcUrl({
|
|
network: NETWORK_TYPES.GOERLI,
|
|
excludeProjectId: true,
|
|
}),
|
|
chainId: CHAIN_IDS.GOERLI,
|
|
ticker: TEST_NETWORK_TICKER_MAP[NETWORK_TYPES.GOERLI],
|
|
blockExplorerUrl: 'https://goerli.etherscan.io',
|
|
},
|
|
{
|
|
labelKey: NETWORK_TYPES.SEPOLIA,
|
|
iconColor: '#CFB5F0',
|
|
providerType: NETWORK_TYPES.SEPOLIA,
|
|
rpcUrl: getRpcUrl({
|
|
network: NETWORK_TYPES.SEPOLIA,
|
|
excludeProjectId: true,
|
|
}),
|
|
chainId: CHAIN_IDS.SEPOLIA,
|
|
ticker: TEST_NETWORK_TICKER_MAP[NETWORK_TYPES.SEPOLIA],
|
|
blockExplorerUrl: 'https://sepolia.etherscan.io',
|
|
},
|
|
{
|
|
labelKey: NETWORK_TYPES.LINEA_GOERLI,
|
|
iconColor: '#61dfff',
|
|
providerType: NETWORK_TYPES.LINEA_GOERLI,
|
|
rpcUrl: getRpcUrl({
|
|
network: NETWORK_TYPES.LINEA_GOERLI,
|
|
excludeProjectId: true,
|
|
}),
|
|
chainId: CHAIN_IDS.LINEA_GOERLI,
|
|
ticker: TEST_NETWORK_TICKER_MAP[NETWORK_TYPES.LINEA_GOERLI],
|
|
blockExplorerUrl: 'https://goerli.lineascan.build',
|
|
},
|
|
{
|
|
labelKey: NETWORK_TYPES.LINEA_MAINNET,
|
|
iconColor: '#121212',
|
|
providerType: NETWORK_TYPES.LINEA_MAINNET,
|
|
rpcUrl: getRpcUrl({
|
|
network: NETWORK_TYPES.LINEA_MAINNET,
|
|
excludeProjectId: true,
|
|
}),
|
|
chainId: CHAIN_IDS.LINEA_MAINNET,
|
|
ticker: CURRENCY_SYMBOLS.ETH,
|
|
blockExplorerUrl: 'https://lineascan.build',
|
|
},
|
|
];
|
|
|
|
export { defaultNetworksData };
|