export const CHAIN_ID = { MAINNET : "1" , ROPSTEN : "3" , KOVAN : "42" , HARDHAT : "31337" , ARBITRUM_MAINNET : "42161" , ARBITRUM_TESTNET : "421611" , OPTIMISM_MAINNET : "10" , OPTIMISM_TESTNET : "69" , } ; export function isMainnet ( networkId ) { return ( networkId == CHAIN_ID . MAINNET || networkId == CHAIN_ID . ARBITRUM_MAINNET || networkId == CHAIN_ID . OPTIMISM_MAINNET ) ; } export function isTestNetwork ( networkId ) { return ( networkId == CHAIN_ID . HARDHAT || networkId == CHAIN_ID . ROPSTEN || networkId == CHAIN_ID . KOVAN || networkId == CHAIN_ID . ARBITRUM_TESTNET || networkId == CHAIN_ID . OPTIMISM_TESTNET ) ; }