@sky-mavis/tanto-connect
Version:
Tanto Connect
75 lines • 2.47 kB
JavaScript
import {ronin as ronin$1,saigon as saigon$1}from'viem/chains';const ronin = {
...ronin$1,
id: 2020
};
const saigon = {
...saigon$1,
id: 202601
};
var ChainIds;
(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";
})(ChainIds || (ChainIds = {}));
const CHAINS_CONFIG = {
[ChainIds.RoninMainnet]: {
chainId: 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,
},
},
[ChainIds.RoninTestnet]: {
chainId: 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,
},
},
[ChainIds.Ethereum]: {
chainId: ChainIds.Ethereum,
blockExplorerUrl: 'https://etherscan.io',
chainName: 'Ethereum',
rpcUrls: [],
nativeCurrency: {
name: 'Ethereum',
symbol: 'ETH',
decimals: 18,
},
},
[ChainIds.Goerli]: {
chainId: ChainIds.Goerli,
blockExplorerUrl: 'https://goerli.etherscan.io/',
chainName: 'Goerli',
rpcUrls: [],
nativeCurrency: {
name: 'GoerliETH',
symbol: 'GTH',
decimals: 18,
},
},
[ChainIds.BaseMainnet]: {
chainId: ChainIds.BaseMainnet,
blockExplorerUrl: 'https://basescan.org/',
chainName: 'Base Mainnet',
rpcUrls: ['https://mainnet.base.org'],
nativeCurrency: {
name: 'Ethereum',
symbol: 'ETH',
decimals: 18,
},
},
};export{CHAINS_CONFIG,ChainIds,ronin,saigon};