UNPKG

@sky-mavis/tanto-connect

Version:
84 lines (80 loc) 2.63 kB
'use strict'; var chains = require('viem/chains'); const ronin = { ...chains.ronin, id: 2020 }; const saigon = { ...chains.saigon, id: 202601 }; exports.ChainIds = void 0; (function (ChainIds) { ChainIds[ChainIds["Ethereum"] = 1] = "Ethereum"; ChainIds[ChainIds["Goerli"] = 5] = "Goerli"; ChainIds[ChainIds["RoninMainnet"] = 2020] = "RoninMainnet"; ChainIds[ChainIds["RoninTestnet"] = 202601] = "RoninTestnet"; ChainIds[ChainIds["BaseMainnet"] = 8453] = "BaseMainnet"; })(exports.ChainIds || (exports.ChainIds = {})); const CHAINS_CONFIG = { [exports.ChainIds.RoninMainnet]: { chainId: exports.ChainIds.RoninMainnet, blockExplorerUrl: 'https://app.roninchain.com', chainName: 'Ronin Mainnet', iconUrl: 'https://cdn.skymavis.com/explorer-cdn/asset/favicon/apple-touch-icon.png', rpcUrls: ['https://api.roninchain.com/rpc'], nativeCurrency: { name: 'Ronin', symbol: 'RON', decimals: 18, }, }, [exports.ChainIds.RoninTestnet]: { chainId: exports.ChainIds.RoninTestnet, blockExplorerUrl: 'https://saigon-app.roninchain.com', chainName: 'Saigon Testnet', iconUrl: 'https://cdn.skymavis.com/explorer-cdn/asset/favicon/apple-touch-icon.png', rpcUrls: ['https://saigon-testnet.roninchain.com/rpc'], nativeCurrency: { name: 'tRonin', symbol: 'tRON', decimals: 18, }, }, [exports.ChainIds.Ethereum]: { chainId: exports.ChainIds.Ethereum, blockExplorerUrl: 'https://etherscan.io', chainName: 'Ethereum', rpcUrls: [], nativeCurrency: { name: 'Ethereum', symbol: 'ETH', decimals: 18, }, }, [exports.ChainIds.Goerli]: { chainId: exports.ChainIds.Goerli, blockExplorerUrl: 'https://goerli.etherscan.io/', chainName: 'Goerli', rpcUrls: [], nativeCurrency: { name: 'GoerliETH', symbol: 'GTH', decimals: 18, }, }, [exports.ChainIds.BaseMainnet]: { chainId: exports.ChainIds.BaseMainnet, blockExplorerUrl: 'https://basescan.org/', chainName: 'Base Mainnet', rpcUrls: ['https://mainnet.base.org'], nativeCurrency: { name: 'Ethereum', symbol: 'ETH', decimals: 18, }, }, }; exports.CHAINS_CONFIG = CHAINS_CONFIG; exports.ronin = ronin; exports.saigon = saigon;