From cbcbca5988699258675f438b5bdbf43c59df5300 Mon Sep 17 00:00:00 2001 From: rkalis Date: Mon, 20 Nov 2023 01:01:53 +0000 Subject: [PATCH] Update chains based on latest data from chainId.network --- package.json | 2 +- src/chains.ts | 218 ++++++++++++++++++++++++++++++++++++++++++++++---- src/enums.ts | 28 ++++++- 3 files changed, 226 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 4e44778..34a58da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@revoke.cash/chains", - "version": "23.0.0", + "version": "24.0.0", "description": "Helper module for getting EVM chains info.", "author": "Revoke.cash", "contributors": [ diff --git a/src/chains.ts b/src/chains.ts index 6f12387..9b13277 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -3204,43 +3204,41 @@ export const chains: Chains = { ] }, 195: { - name: 'Xgon Testnet', - chain: 'xgon', - rpc: ['https://testrpc.xgon.io'], - faucets: ['https://www.oklink.com/okbc-test'], + name: 'X1 Testnet', + chain: 'X1', + rpc: ['https://testrpc.x1.tech', 'https://x1testrpc.okx.com'], + faucets: ['https://www.okx.com/x1/faucet'], nativeCurrency: { - name: 'Xgon Global Utility Token in testnet', + name: 'X1 Global Utility Token in testnet', symbol: 'OKB', decimals: 18 }, features: [], - infoURL: - 'https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain', + infoURL: 'https://www.okx.com/x1', shortName: 'tokb', chainId: 195, networkId: 195, explorers: [ { name: 'OKLink', - url: 'https://www.oklink.com/okbc-test', + url: 'https://www.oklink.com/x1-test', standard: 'EIP3091' } ], status: 'active' }, 196: { - name: 'Xgon Mainnet', - chain: 'xgon', + name: 'X1 Mainnet', + chain: 'X1', rpc: [], faucets: [], nativeCurrency: { - name: 'Xgon Global Utility Token', + name: 'X1 Global Utility Token', symbol: 'OKB', decimals: 18 }, features: [], - infoURL: - 'https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain', + infoURL: 'https://www.okx.com/x1', shortName: 'okb', chainId: 196, networkId: 196, @@ -5100,8 +5098,7 @@ export const chains: Chains = { rpc: [ 'https://rpc.rollux.com', 'https://rollux.public-rpc.com', - 'wss://rpc.rollux.com/wss', - 'https://rpc.ankr.com/rollux/${ANKR_API_KEY}' + 'wss://rpc.rollux.com/wss' ], faucets: ['https://rollux.id/faucetapp'], nativeCurrency: { name: 'Syscoin', symbol: 'SYS', decimals: 18 }, @@ -7853,6 +7850,25 @@ export const chains: Chains = { } ] }, + 1343: { + name: 'Blitz Subnet', + chain: 'BLITZ', + rpc: ['https://subnets.avax.network/blitz/testnet/rpc'], + features: [{ name: 'EIP1559' }], + faucets: [], + nativeCurrency: { name: 'BLITZ GAS', symbol: 'BGAS', decimals: 18 }, + infoURL: 'https://blitz.gg', + shortName: 'blitz', + chainId: 1343, + networkId: 1343, + explorers: [ + { + name: 'BLITZ Explorer', + url: 'https://subnets-test.avax.network/blitz', + standard: 'EIP3091' + } + ] + }, 1353: { name: 'CIC Chain Mainnet', chain: 'CIC', @@ -9830,7 +9846,7 @@ export const chains: Chains = { name: 'Krest Network', chain: 'Krest', icon: 'krest', - rpc: ['https://erpc-krest.peaq.network'], + rpc: ['https://erpc-krest.peaq.network', 'https://krest.unitedbloc.com'], faucets: [], nativeCurrency: { name: 'Krest', symbol: 'KRST', decimals: 18 }, infoURL: 'https://www.peaq.network', @@ -11362,6 +11378,27 @@ export const chains: Chains = { } ] }, + 4400: { + name: 'Credit Smart Chain Mainnet', + chain: 'CREDIT', + rpc: ['https://rpc.creditsmartchain.com'], + faucets: [], + nativeCurrency: { name: 'Credit', symbol: 'CREDIT', decimals: 18 }, + features: [{ name: 'EIP155' }, { name: 'EIP1559' }], + infoURL: 'https://creditsmartchain.com', + shortName: 'CreditEdge', + chainId: 4400, + networkId: 4400, + icon: 'credit', + explorers: [ + { + name: 'Creditscan', + url: 'https://scan.creditsmartchain.com', + icon: 'credit', + standard: 'EIP3091' + } + ] + }, 4444: { name: 'Htmlcoin Mainnet', chain: 'mainnet', @@ -11673,7 +11710,9 @@ export const chains: Chains = { 'https://rpc1.bahamut.io', 'https://rpc2.bahamut.io', 'wss://ws1.sahara.bahamutchain.com', - 'wss://ws2.sahara.bahamutchain.com' + 'wss://ws2.sahara.bahamutchain.com', + 'https://bahamut.publicnode.com', + 'wss://bahamut.publicnode.com' ], features: [{ name: 'EIP155' }, { name: 'EIP1559' }], faucets: [], @@ -12171,6 +12210,17 @@ export const chains: Chains = { } ] }, + 6363: { + name: 'Digit Soul Smart Chain', + chain: 'DGS', + rpc: ['http://dsc-rpc.digitsoul.co.th'], + faucets: [], + nativeCurrency: { name: 'Digit Coin', symbol: 'DGC', decimals: 18 }, + infoURL: '', + shortName: 'DGS', + chainId: 6363, + networkId: 6363 + }, 6502: { name: 'Peerpay', chain: 'P2P', @@ -15895,6 +15945,25 @@ export const chains: Chains = { } ] }, + 33210: { + name: 'Cloudverse Subnet', + chain: 'CLOUDVERSE', + rpc: ['https://subnets.avax.network/cloudverse/mainnet/rpc'], + features: [{ name: 'EIP1559' }], + faucets: [], + nativeCurrency: { name: 'XCLOUD', symbol: 'XCLOUD', decimals: 18 }, + infoURL: 'https://muadao.build/', + shortName: 'cloudverse', + chainId: 33210, + networkId: 33210, + explorers: [ + { + name: 'CLOUDVERSE Explorer', + url: 'https://subnets.avax.network/cloudverse', + standard: 'EIP3091' + } + ] + }, 33333: { name: 'Aves Mainnet', chain: 'AVS', @@ -15954,6 +16023,25 @@ export const chains: Chains = { } ] }, + 34443: { + name: 'Mode', + chain: 'ETH', + rpc: ['https://mainnet.mode.network'], + faucets: [], + nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, + infoURL: 'https://docs.mode.network/', + shortName: 'mode', + chainId: 34443, + networkId: 34443, + icon: 'mode', + explorers: [ + { + name: 'modescout', + url: 'https://explorer.mode.network', + standard: 'none' + } + ] + }, 35011: { name: 'J2O Taro', chain: 'TARO', @@ -17172,6 +17260,26 @@ export const chains: Chains = { } ] }, + 66988: { + name: 'Janus Testnet', + chain: 'JanusNetwork', + icon: 'janusnetwork', + rpc: ['https://rpc.test.janusnetwork.io'], + faucets: [], + nativeCurrency: { name: 'Janus', symbol: 'JNS', decimals: 18 }, + infoURL: 'https://janus-network.gitbook.io/janus', + shortName: 'janusnetwork-testnet', + chainId: 66988, + networkId: 66988, + status: 'active', + explorers: [ + { + name: 'JanusNetwork Testnet Explorer', + url: 'https://beta.scan.janusnetwork.io', + standard: 'none' + } + ] + }, 67390: { name: 'SiriusNet', chain: 'SIN', @@ -19421,6 +19529,17 @@ export const chains: Chains = { } ] }, + 363636: { + name: 'Digit Soul Smart Chain 2', + chain: 'DS2', + rpc: ['http://dgs-rpc.digitsoul.co.th'], + faucets: [], + nativeCurrency: { name: 'Digit Coin', symbol: 'DGC', decimals: 18 }, + infoURL: '', + shortName: 'DS2', + chainId: 363636, + networkId: 363636 + }, 373737: { name: 'HAPchain Testnet', chain: 'HAPchain', @@ -20351,6 +20470,25 @@ export const chains: Chains = { } ] }, + 988207: { + name: 'Ecrox Chain Mainnet', + chain: 'Ecrox Chain', + rpc: ['https://mainnet-rpc.ecroxscan.com/'], + faucets: [], + nativeCurrency: { name: 'ECROX COIN', symbol: 'ECROX', decimals: 18 }, + infoURL: 'https://ecroxcoin.io/', + shortName: 'ecrox', + icon: 'ecrox', + chainId: 988207, + networkId: 988207, + explorers: [ + { + name: 'Ecrox Chain Explorer', + url: 'https://ecroxscan.com', + standard: 'EIP3091' + } + ] + }, 1261120: { name: 'zKatana', shortName: 'azktn', @@ -20909,6 +21047,52 @@ export const chains: Chains = { icon: 'quarix', explorers: [] }, + 9322252: { + name: 'XCAP', + title: 'XCAP Mainnet', + chain: 'XCAP', + rpc: [ + 'https://xcap-mainnet.relay.xcap.network/znzvh2ueyvm2yts5fv5gnul395jbkfb2/rpc1' + ], + faucets: [], + nativeCurrency: { name: 'Gas', symbol: 'GAS', decimals: 18 }, + infoURL: 'https://xcap.network/', + shortName: 'xcap', + chainId: 9322252, + networkId: 9322252, + icon: 'xcap', + explorers: [ + { + name: 'blockscout', + url: 'https://xcap-mainnet.explorer.xcap.network', + icon: 'blockscout', + standard: 'EIP3091' + } + ] + }, + 9322253: { + name: 'Milvine', + title: 'XCAP Testnet Milvine', + chain: 'XCAP', + rpc: [ + 'https://xcap-milvine.relay.xcap.network/zj5l55ftsgi027kz4nf14vs8d89inego/rpc1' + ], + faucets: [], + nativeCurrency: { name: 'Gas', symbol: 'GAS', decimals: 18 }, + infoURL: 'https://xcap.network/', + shortName: 'milv', + chainId: 9322253, + networkId: 9322253, + icon: 'xcap', + explorers: [ + { + name: 'blockscout', + url: 'https://xcap-milvine.explorer.xcap.network', + icon: 'blockscout', + standard: 'EIP3091' + } + ] + }, 10067275: { name: 'Plian Testnet Subchain 1', chain: 'Plian', diff --git a/src/enums.ts b/src/enums.ts index 0955f02..24f9c9f 100644 --- a/src/enums.ts +++ b/src/enums.ts @@ -159,8 +159,8 @@ export enum ChainName { BMCMainnet = 'BMC Mainnet', BMCTestnet = 'BMC Testnet', CryptoEmergency = 'Crypto Emergency', - XgonTestnet = 'Xgon Testnet', - XgonMainnet = 'Xgon Mainnet', + X1Testnet = 'X1 Testnet', + X1Mainnet = 'X1 Mainnet', NeutrinosTestNet = 'Neutrinos TestNet', BitchainMainnet = 'Bitchain Mainnet', BitTorrentChainMainnet = 'BitTorrent Chain Mainnet', @@ -393,6 +393,7 @@ export enum ChainName { GethTestnet = 'Geth Testnet', ElysiumTestnet = 'Elysium Testnet', ElysiumMainnet = 'Elysium Mainnet', + BlitzSubnet = 'Blitz Subnet', CICChainMainnet = 'CIC Chain Mainnet', ZafiriumMainnet = 'Zafirium Mainnet', KalarChain = 'Kalar Chain', @@ -570,6 +571,7 @@ export enum ChainName { NexiMainnet = 'Nexi Mainnet', BobafujiTestnet = 'Bobafuji Testnet', Beam = 'Beam', + CreditSmartChainMainnet = 'Credit Smart Chain Mainnet', HtmlcoinMainnet = 'Htmlcoin Mainnet', OrderlySepoliaTestnet = 'Orderly Sepolia Testnet', IoTeXNetworkMainnet = 'IoTeX Network Mainnet', @@ -609,6 +611,7 @@ export enum ChainName { CascadiaTestnet = 'Cascadia Testnet', UPTNTestnet = 'UPTN Testnet', UPTN = 'UPTN', + DigitSoulSmartChain = 'Digit Soul Smart Chain', Peerpay = 'Peerpay', ScolcoinWeiChainTestnet = 'Scolcoin WeiChain Testnet', FoxTestnetNetwork = 'Fox Testnet Network', @@ -796,9 +799,11 @@ export enum ChainName { ZilliqaEVM = 'Zilliqa EVM', ZilliqaEVMIsolatedServer = 'Zilliqa EVM Isolated Server', ZilliqaEVMTestnet = 'Zilliqa EVM Testnet', + CloudverseSubnet = 'Cloudverse Subnet', AvesMainnet = 'Aves Mainnet', ZilliqaEVMDevnet = 'Zilliqa EVM Devnet', Zilliqa2EVMDevnet = 'Zilliqa 2 EVM Devnet', + Mode = 'Mode', J2OTaro = 'J2O Taro', QMainnet = 'Q Mainnet', QTestnet = 'Q Testnet', @@ -856,6 +861,7 @@ export enum ChainName { ECreditsMainnet = 'eCredits Mainnet', ECreditsTestnet = 'eCredits Testnet', ScolcoinMainnet = 'Scolcoin Mainnet', + JanusTestnet = 'Janus Testnet', SiriusNet = 'SiriusNet', CosmicChain = 'Cosmic Chain', DM2VerseMainnet = 'DM2 Verse Mainnet', @@ -973,6 +979,7 @@ export enum ChainName { PolisTestnet = 'Polis Testnet', PolisMainnet = 'Polis Mainnet', BitfinityNetworkTestnet = 'Bitfinity Network Testnet', + DigitSoulSmartChain2 = 'Digit Soul Smart Chain 2', HAPchainTestnet = 'HAPchain Testnet', 'MetalC-Chain' = 'Metal C-Chain', 'MetalTahoeC-Chain' = 'Metal Tahoe C-Chain', @@ -1017,6 +1024,7 @@ export enum ChainName { PosichainDevnetShard1 = 'Posichain Devnet Shard 1', FNCYTestnet = 'FNCY Testnet', EluvioContentFabric = 'Eluvio Content Fabric', + EcroxChainMainnet = 'Ecrox Chain Mainnet', ZKatana = 'zKatana', EthoProtocol = 'Etho Protocol', Xerom = 'Xerom', @@ -1045,6 +1053,8 @@ export enum ChainName { HAPchain = 'HAPchain', QuarixTestnet = 'Quarix Testnet', Quarix = 'Quarix', + XCAP = 'XCAP', + Milvine = 'Milvine', PlianTestnetSubchain1 = 'Plian Testnet Subchain 1', SoverunMainnet = 'Soverun Mainnet', Sepolia = 'Sepolia', @@ -1276,8 +1286,8 @@ export enum ChainId { BMCMainnet = 188, BMCTestnet = 189, CryptoEmergency = 193, - XgonTestnet = 195, - XgonMainnet = 196, + X1Testnet = 195, + X1Mainnet = 196, NeutrinosTestNet = 197, BitchainMainnet = 198, BitTorrentChainMainnet = 199, @@ -1510,6 +1520,7 @@ export enum ChainId { GethTestnet = 1337, ElysiumTestnet = 1338, ElysiumMainnet = 1339, + BlitzSubnet = 1343, CICChainMainnet = 1353, ZafiriumMainnet = 1369, KalarChain = 1379, @@ -1687,6 +1698,7 @@ export enum ChainId { NexiMainnet = 4242, BobafujiTestnet = 4328, Beam = 4337, + CreditSmartChainMainnet = 4400, HtmlcoinMainnet = 4444, OrderlySepoliaTestnet = 4460, IoTeXNetworkMainnet = 4689, @@ -1726,6 +1738,7 @@ export enum ChainId { CascadiaTestnet = 6102, UPTNTestnet = 6118, UPTN = 6119, + DigitSoulSmartChain = 6363, Peerpay = 6502, ScolcoinWeiChainTestnet = 6552, FoxTestnetNetwork = 6565, @@ -1913,9 +1926,11 @@ export enum ChainId { ZilliqaEVM = 32769, ZilliqaEVMIsolatedServer = 32990, ZilliqaEVMTestnet = 33101, + CloudverseSubnet = 33210, AvesMainnet = 33333, ZilliqaEVMDevnet = 33385, Zilliqa2EVMDevnet = 33469, + Mode = 34443, J2OTaro = 35011, QMainnet = 35441, QTestnet = 35443, @@ -1973,6 +1988,7 @@ export enum ChainId { ECreditsMainnet = 63000, ECreditsTestnet = 63001, ScolcoinMainnet = 65450, + JanusTestnet = 66988, SiriusNet = 67390, CosmicChain = 67588, DM2VerseMainnet = 68770, @@ -2090,6 +2106,7 @@ export enum ChainId { PolisTestnet = 333888, PolisMainnet = 333999, BitfinityNetworkTestnet = 355113, + DigitSoulSmartChain2 = 363636, HAPchainTestnet = 373737, 'MetalC-Chain' = 381931, 'MetalTahoeC-Chain' = 381932, @@ -2134,6 +2151,7 @@ export enum ChainId { PosichainDevnetShard1 = 920001, FNCYTestnet = 923018, EluvioContentFabric = 955305, + EcroxChainMainnet = 988207, ZKatana = 1261120, EthoProtocol = 1313114, Xerom = 1313500, @@ -2162,6 +2180,8 @@ export enum ChainId { HAPchain = 8794598, QuarixTestnet = 8888881, Quarix = 8888888, + XCAP = 9322252, + Milvine = 9322253, PlianTestnetSubchain1 = 10067275, SoverunMainnet = 10101010, Sepolia = 11155111,