@revoke.cash/chains 22.0.0 → 24.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default as chains, Chain, ChainId, ChainName, NativeCurrency, Explorer, Parent } from './src';
1
+ export { getChain, getChainById, getChainByName, allChains, Chain, ChainId, ChainName, NativeCurrency, Explorer, Parent } from './src';
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ChainName = exports.ChainId = exports.chains = void 0;
3
+ exports.ChainName = exports.ChainId = exports.allChains = exports.getChainByName = exports.getChainById = exports.getChain = void 0;
7
4
  var src_1 = require("./src");
8
- Object.defineProperty(exports, "chains", { enumerable: true, get: function () { return __importDefault(src_1).default; } });
5
+ Object.defineProperty(exports, "getChain", { enumerable: true, get: function () { return src_1.getChain; } });
6
+ Object.defineProperty(exports, "getChainById", { enumerable: true, get: function () { return src_1.getChainById; } });
7
+ Object.defineProperty(exports, "getChainByName", { enumerable: true, get: function () { return src_1.getChainByName; } });
8
+ Object.defineProperty(exports, "allChains", { enumerable: true, get: function () { return src_1.allChains; } });
9
9
  Object.defineProperty(exports, "ChainId", { enumerable: true, get: function () { return src_1.ChainId; } });
10
10
  Object.defineProperty(exports, "ChainName", { enumerable: true, get: function () { return src_1.ChainName; } });
@@ -3205,41 +3205,41 @@ exports.chains = {
3205
3205
  ]
3206
3206
  },
3207
3207
  195: {
3208
- name: 'Xgon Testnet',
3209
- chain: 'xgon',
3210
- rpc: ['https://testrpc.xgon.io'],
3211
- faucets: ['https://www.oklink.com/okbc-test'],
3208
+ name: 'X1 Testnet',
3209
+ chain: 'X1',
3210
+ rpc: ['https://testrpc.x1.tech', 'https://x1testrpc.okx.com'],
3211
+ faucets: ['https://www.okx.com/x1/faucet'],
3212
3212
  nativeCurrency: {
3213
- name: 'Xgon Global Utility Token in testnet',
3213
+ name: 'X1 Global Utility Token in testnet',
3214
3214
  symbol: 'OKB',
3215
3215
  decimals: 18
3216
3216
  },
3217
3217
  features: [],
3218
- infoURL: 'https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain',
3218
+ infoURL: 'https://www.okx.com/x1',
3219
3219
  shortName: 'tokb',
3220
3220
  chainId: 195,
3221
3221
  networkId: 195,
3222
3222
  explorers: [
3223
3223
  {
3224
3224
  name: 'OKLink',
3225
- url: 'https://www.oklink.com/okbc-test',
3225
+ url: 'https://www.oklink.com/x1-test',
3226
3226
  standard: 'EIP3091'
3227
3227
  }
3228
3228
  ],
3229
3229
  status: 'active'
3230
3230
  },
3231
3231
  196: {
3232
- name: 'Xgon Mainnet',
3233
- chain: 'xgon',
3232
+ name: 'X1 Mainnet',
3233
+ chain: 'X1',
3234
3234
  rpc: [],
3235
3235
  faucets: [],
3236
3236
  nativeCurrency: {
3237
- name: 'Xgon Global Utility Token',
3237
+ name: 'X1 Global Utility Token',
3238
3238
  symbol: 'OKB',
3239
3239
  decimals: 18
3240
3240
  },
3241
3241
  features: [],
3242
- infoURL: 'https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain',
3242
+ infoURL: 'https://www.okx.com/x1',
3243
3243
  shortName: 'okb',
3244
3244
  chainId: 196,
3245
3245
  networkId: 196,
@@ -5098,8 +5098,7 @@ exports.chains = {
5098
5098
  rpc: [
5099
5099
  'https://rpc.rollux.com',
5100
5100
  'https://rollux.public-rpc.com',
5101
- 'wss://rpc.rollux.com/wss',
5102
- 'https://rpc.ankr.com/rollux/${ANKR_API_KEY}'
5101
+ 'wss://rpc.rollux.com/wss'
5103
5102
  ],
5104
5103
  faucets: ['https://rollux.id/faucetapp'],
5105
5104
  nativeCurrency: { name: 'Syscoin', symbol: 'SYS', decimals: 18 },
@@ -7849,6 +7848,25 @@ exports.chains = {
7849
7848
  }
7850
7849
  ]
7851
7850
  },
7851
+ 1343: {
7852
+ name: 'Blitz Subnet',
7853
+ chain: 'BLITZ',
7854
+ rpc: ['https://subnets.avax.network/blitz/testnet/rpc'],
7855
+ features: [{ name: 'EIP1559' }],
7856
+ faucets: [],
7857
+ nativeCurrency: { name: 'BLITZ GAS', symbol: 'BGAS', decimals: 18 },
7858
+ infoURL: 'https://blitz.gg',
7859
+ shortName: 'blitz',
7860
+ chainId: 1343,
7861
+ networkId: 1343,
7862
+ explorers: [
7863
+ {
7864
+ name: 'BLITZ Explorer',
7865
+ url: 'https://subnets-test.avax.network/blitz',
7866
+ standard: 'EIP3091'
7867
+ }
7868
+ ]
7869
+ },
7852
7870
  1353: {
7853
7871
  name: 'CIC Chain Mainnet',
7854
7872
  chain: 'CIC',
@@ -9826,7 +9844,7 @@ exports.chains = {
9826
9844
  name: 'Krest Network',
9827
9845
  chain: 'Krest',
9828
9846
  icon: 'krest',
9829
- rpc: ['https://erpc-krest.peaq.network'],
9847
+ rpc: ['https://erpc-krest.peaq.network', 'https://krest.unitedbloc.com'],
9830
9848
  faucets: [],
9831
9849
  nativeCurrency: { name: 'Krest', symbol: 'KRST', decimals: 18 },
9832
9850
  infoURL: 'https://www.peaq.network',
@@ -11356,6 +11374,27 @@ exports.chains = {
11356
11374
  }
11357
11375
  ]
11358
11376
  },
11377
+ 4400: {
11378
+ name: 'Credit Smart Chain Mainnet',
11379
+ chain: 'CREDIT',
11380
+ rpc: ['https://rpc.creditsmartchain.com'],
11381
+ faucets: [],
11382
+ nativeCurrency: { name: 'Credit', symbol: 'CREDIT', decimals: 18 },
11383
+ features: [{ name: 'EIP155' }, { name: 'EIP1559' }],
11384
+ infoURL: 'https://creditsmartchain.com',
11385
+ shortName: 'CreditEdge',
11386
+ chainId: 4400,
11387
+ networkId: 4400,
11388
+ icon: 'credit',
11389
+ explorers: [
11390
+ {
11391
+ name: 'Creditscan',
11392
+ url: 'https://scan.creditsmartchain.com',
11393
+ icon: 'credit',
11394
+ standard: 'EIP3091'
11395
+ }
11396
+ ]
11397
+ },
11359
11398
  4444: {
11360
11399
  name: 'Htmlcoin Mainnet',
11361
11400
  chain: 'mainnet',
@@ -11666,7 +11705,9 @@ exports.chains = {
11666
11705
  'https://rpc1.bahamut.io',
11667
11706
  'https://rpc2.bahamut.io',
11668
11707
  'wss://ws1.sahara.bahamutchain.com',
11669
- 'wss://ws2.sahara.bahamutchain.com'
11708
+ 'wss://ws2.sahara.bahamutchain.com',
11709
+ 'https://bahamut.publicnode.com',
11710
+ 'wss://bahamut.publicnode.com'
11670
11711
  ],
11671
11712
  features: [{ name: 'EIP155' }, { name: 'EIP1559' }],
11672
11713
  faucets: [],
@@ -12164,6 +12205,17 @@ exports.chains = {
12164
12205
  }
12165
12206
  ]
12166
12207
  },
12208
+ 6363: {
12209
+ name: 'Digit Soul Smart Chain',
12210
+ chain: 'DGS',
12211
+ rpc: ['http://dsc-rpc.digitsoul.co.th'],
12212
+ faucets: [],
12213
+ nativeCurrency: { name: 'Digit Coin', symbol: 'DGC', decimals: 18 },
12214
+ infoURL: '',
12215
+ shortName: 'DGS',
12216
+ chainId: 6363,
12217
+ networkId: 6363
12218
+ },
12167
12219
  6502: {
12168
12220
  name: 'Peerpay',
12169
12221
  chain: 'P2P',
@@ -15884,6 +15936,25 @@ exports.chains = {
15884
15936
  }
15885
15937
  ]
15886
15938
  },
15939
+ 33210: {
15940
+ name: 'Cloudverse Subnet',
15941
+ chain: 'CLOUDVERSE',
15942
+ rpc: ['https://subnets.avax.network/cloudverse/mainnet/rpc'],
15943
+ features: [{ name: 'EIP1559' }],
15944
+ faucets: [],
15945
+ nativeCurrency: { name: 'XCLOUD', symbol: 'XCLOUD', decimals: 18 },
15946
+ infoURL: 'https://muadao.build/',
15947
+ shortName: 'cloudverse',
15948
+ chainId: 33210,
15949
+ networkId: 33210,
15950
+ explorers: [
15951
+ {
15952
+ name: 'CLOUDVERSE Explorer',
15953
+ url: 'https://subnets.avax.network/cloudverse',
15954
+ standard: 'EIP3091'
15955
+ }
15956
+ ]
15957
+ },
15887
15958
  33333: {
15888
15959
  name: 'Aves Mainnet',
15889
15960
  chain: 'AVS',
@@ -15943,6 +16014,25 @@ exports.chains = {
15943
16014
  }
15944
16015
  ]
15945
16016
  },
16017
+ 34443: {
16018
+ name: 'Mode',
16019
+ chain: 'ETH',
16020
+ rpc: ['https://mainnet.mode.network'],
16021
+ faucets: [],
16022
+ nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
16023
+ infoURL: 'https://docs.mode.network/',
16024
+ shortName: 'mode',
16025
+ chainId: 34443,
16026
+ networkId: 34443,
16027
+ icon: 'mode',
16028
+ explorers: [
16029
+ {
16030
+ name: 'modescout',
16031
+ url: 'https://explorer.mode.network',
16032
+ standard: 'none'
16033
+ }
16034
+ ]
16035
+ },
15946
16036
  35011: {
15947
16037
  name: 'J2O Taro',
15948
16038
  chain: 'TARO',
@@ -17160,6 +17250,26 @@ exports.chains = {
17160
17250
  }
17161
17251
  ]
17162
17252
  },
17253
+ 66988: {
17254
+ name: 'Janus Testnet',
17255
+ chain: 'JanusNetwork',
17256
+ icon: 'janusnetwork',
17257
+ rpc: ['https://rpc.test.janusnetwork.io'],
17258
+ faucets: [],
17259
+ nativeCurrency: { name: 'Janus', symbol: 'JNS', decimals: 18 },
17260
+ infoURL: 'https://janus-network.gitbook.io/janus',
17261
+ shortName: 'janusnetwork-testnet',
17262
+ chainId: 66988,
17263
+ networkId: 66988,
17264
+ status: 'active',
17265
+ explorers: [
17266
+ {
17267
+ name: 'JanusNetwork Testnet Explorer',
17268
+ url: 'https://beta.scan.janusnetwork.io',
17269
+ standard: 'none'
17270
+ }
17271
+ ]
17272
+ },
17163
17273
  67390: {
17164
17274
  name: 'SiriusNet',
17165
17275
  chain: 'SIN',
@@ -19409,6 +19519,17 @@ exports.chains = {
19409
19519
  }
19410
19520
  ]
19411
19521
  },
19522
+ 363636: {
19523
+ name: 'Digit Soul Smart Chain 2',
19524
+ chain: 'DS2',
19525
+ rpc: ['http://dgs-rpc.digitsoul.co.th'],
19526
+ faucets: [],
19527
+ nativeCurrency: { name: 'Digit Coin', symbol: 'DGC', decimals: 18 },
19528
+ infoURL: '',
19529
+ shortName: 'DS2',
19530
+ chainId: 363636,
19531
+ networkId: 363636
19532
+ },
19412
19533
  373737: {
19413
19534
  name: 'HAPchain Testnet',
19414
19535
  chain: 'HAPchain',
@@ -20337,6 +20458,25 @@ exports.chains = {
20337
20458
  }
20338
20459
  ]
20339
20460
  },
20461
+ 988207: {
20462
+ name: 'Ecrox Chain Mainnet',
20463
+ chain: 'Ecrox Chain',
20464
+ rpc: ['https://mainnet-rpc.ecroxscan.com/'],
20465
+ faucets: [],
20466
+ nativeCurrency: { name: 'ECROX COIN', symbol: 'ECROX', decimals: 18 },
20467
+ infoURL: 'https://ecroxcoin.io/',
20468
+ shortName: 'ecrox',
20469
+ icon: 'ecrox',
20470
+ chainId: 988207,
20471
+ networkId: 988207,
20472
+ explorers: [
20473
+ {
20474
+ name: 'Ecrox Chain Explorer',
20475
+ url: 'https://ecroxscan.com',
20476
+ standard: 'EIP3091'
20477
+ }
20478
+ ]
20479
+ },
20340
20480
  1261120: {
20341
20481
  name: 'zKatana',
20342
20482
  shortName: 'azktn',
@@ -20895,6 +21035,52 @@ exports.chains = {
20895
21035
  icon: 'quarix',
20896
21036
  explorers: []
20897
21037
  },
21038
+ 9322252: {
21039
+ name: 'XCAP',
21040
+ title: 'XCAP Mainnet',
21041
+ chain: 'XCAP',
21042
+ rpc: [
21043
+ 'https://xcap-mainnet.relay.xcap.network/znzvh2ueyvm2yts5fv5gnul395jbkfb2/rpc1'
21044
+ ],
21045
+ faucets: [],
21046
+ nativeCurrency: { name: 'Gas', symbol: 'GAS', decimals: 18 },
21047
+ infoURL: 'https://xcap.network/',
21048
+ shortName: 'xcap',
21049
+ chainId: 9322252,
21050
+ networkId: 9322252,
21051
+ icon: 'xcap',
21052
+ explorers: [
21053
+ {
21054
+ name: 'blockscout',
21055
+ url: 'https://xcap-mainnet.explorer.xcap.network',
21056
+ icon: 'blockscout',
21057
+ standard: 'EIP3091'
21058
+ }
21059
+ ]
21060
+ },
21061
+ 9322253: {
21062
+ name: 'Milvine',
21063
+ title: 'XCAP Testnet Milvine',
21064
+ chain: 'XCAP',
21065
+ rpc: [
21066
+ 'https://xcap-milvine.relay.xcap.network/zj5l55ftsgi027kz4nf14vs8d89inego/rpc1'
21067
+ ],
21068
+ faucets: [],
21069
+ nativeCurrency: { name: 'Gas', symbol: 'GAS', decimals: 18 },
21070
+ infoURL: 'https://xcap.network/',
21071
+ shortName: 'milv',
21072
+ chainId: 9322253,
21073
+ networkId: 9322253,
21074
+ icon: 'xcap',
21075
+ explorers: [
21076
+ {
21077
+ name: 'blockscout',
21078
+ url: 'https://xcap-milvine.explorer.xcap.network',
21079
+ icon: 'blockscout',
21080
+ standard: 'EIP3091'
21081
+ }
21082
+ ]
21083
+ },
20898
21084
  10067275: {
20899
21085
  name: 'Plian Testnet Subchain 1',
20900
21086
  chain: 'Plian',
@@ -159,8 +159,8 @@ export declare enum ChainName {
159
159
  BMCMainnet = "BMC Mainnet",
160
160
  BMCTestnet = "BMC Testnet",
161
161
  CryptoEmergency = "Crypto Emergency",
162
- XgonTestnet = "Xgon Testnet",
163
- XgonMainnet = "Xgon Mainnet",
162
+ X1Testnet = "X1 Testnet",
163
+ X1Mainnet = "X1 Mainnet",
164
164
  NeutrinosTestNet = "Neutrinos TestNet",
165
165
  BitchainMainnet = "Bitchain Mainnet",
166
166
  BitTorrentChainMainnet = "BitTorrent Chain Mainnet",
@@ -393,6 +393,7 @@ export declare enum ChainName {
393
393
  GethTestnet = "Geth Testnet",
394
394
  ElysiumTestnet = "Elysium Testnet",
395
395
  ElysiumMainnet = "Elysium Mainnet",
396
+ BlitzSubnet = "Blitz Subnet",
396
397
  CICChainMainnet = "CIC Chain Mainnet",
397
398
  ZafiriumMainnet = "Zafirium Mainnet",
398
399
  KalarChain = "Kalar Chain",
@@ -570,6 +571,7 @@ export declare enum ChainName {
570
571
  NexiMainnet = "Nexi Mainnet",
571
572
  BobafujiTestnet = "Bobafuji Testnet",
572
573
  Beam = "Beam",
574
+ CreditSmartChainMainnet = "Credit Smart Chain Mainnet",
573
575
  HtmlcoinMainnet = "Htmlcoin Mainnet",
574
576
  OrderlySepoliaTestnet = "Orderly Sepolia Testnet",
575
577
  IoTeXNetworkMainnet = "IoTeX Network Mainnet",
@@ -609,6 +611,7 @@ export declare enum ChainName {
609
611
  CascadiaTestnet = "Cascadia Testnet",
610
612
  UPTNTestnet = "UPTN Testnet",
611
613
  UPTN = "UPTN",
614
+ DigitSoulSmartChain = "Digit Soul Smart Chain",
612
615
  Peerpay = "Peerpay",
613
616
  ScolcoinWeiChainTestnet = "Scolcoin WeiChain Testnet",
614
617
  FoxTestnetNetwork = "Fox Testnet Network",
@@ -796,9 +799,11 @@ export declare enum ChainName {
796
799
  ZilliqaEVM = "Zilliqa EVM",
797
800
  ZilliqaEVMIsolatedServer = "Zilliqa EVM Isolated Server",
798
801
  ZilliqaEVMTestnet = "Zilliqa EVM Testnet",
802
+ CloudverseSubnet = "Cloudverse Subnet",
799
803
  AvesMainnet = "Aves Mainnet",
800
804
  ZilliqaEVMDevnet = "Zilliqa EVM Devnet",
801
805
  Zilliqa2EVMDevnet = "Zilliqa 2 EVM Devnet",
806
+ Mode = "Mode",
802
807
  J2OTaro = "J2O Taro",
803
808
  QMainnet = "Q Mainnet",
804
809
  QTestnet = "Q Testnet",
@@ -856,6 +861,7 @@ export declare enum ChainName {
856
861
  ECreditsMainnet = "eCredits Mainnet",
857
862
  ECreditsTestnet = "eCredits Testnet",
858
863
  ScolcoinMainnet = "Scolcoin Mainnet",
864
+ JanusTestnet = "Janus Testnet",
859
865
  SiriusNet = "SiriusNet",
860
866
  CosmicChain = "Cosmic Chain",
861
867
  DM2VerseMainnet = "DM2 Verse Mainnet",
@@ -973,6 +979,7 @@ export declare enum ChainName {
973
979
  PolisTestnet = "Polis Testnet",
974
980
  PolisMainnet = "Polis Mainnet",
975
981
  BitfinityNetworkTestnet = "Bitfinity Network Testnet",
982
+ DigitSoulSmartChain2 = "Digit Soul Smart Chain 2",
976
983
  HAPchainTestnet = "HAPchain Testnet",
977
984
  'MetalC-Chain' = "Metal C-Chain",
978
985
  'MetalTahoeC-Chain' = "Metal Tahoe C-Chain",
@@ -1017,6 +1024,7 @@ export declare enum ChainName {
1017
1024
  PosichainDevnetShard1 = "Posichain Devnet Shard 1",
1018
1025
  FNCYTestnet = "FNCY Testnet",
1019
1026
  EluvioContentFabric = "Eluvio Content Fabric",
1027
+ EcroxChainMainnet = "Ecrox Chain Mainnet",
1020
1028
  ZKatana = "zKatana",
1021
1029
  EthoProtocol = "Etho Protocol",
1022
1030
  Xerom = "Xerom",
@@ -1045,6 +1053,8 @@ export declare enum ChainName {
1045
1053
  HAPchain = "HAPchain",
1046
1054
  QuarixTestnet = "Quarix Testnet",
1047
1055
  Quarix = "Quarix",
1056
+ XCAP = "XCAP",
1057
+ Milvine = "Milvine",
1048
1058
  PlianTestnetSubchain1 = "Plian Testnet Subchain 1",
1049
1059
  SoverunMainnet = "Soverun Mainnet",
1050
1060
  Sepolia = "Sepolia",
@@ -1276,8 +1286,8 @@ export declare enum ChainId {
1276
1286
  BMCMainnet = 188,
1277
1287
  BMCTestnet = 189,
1278
1288
  CryptoEmergency = 193,
1279
- XgonTestnet = 195,
1280
- XgonMainnet = 196,
1289
+ X1Testnet = 195,
1290
+ X1Mainnet = 196,
1281
1291
  NeutrinosTestNet = 197,
1282
1292
  BitchainMainnet = 198,
1283
1293
  BitTorrentChainMainnet = 199,
@@ -1510,6 +1520,7 @@ export declare enum ChainId {
1510
1520
  GethTestnet = 1337,
1511
1521
  ElysiumTestnet = 1338,
1512
1522
  ElysiumMainnet = 1339,
1523
+ BlitzSubnet = 1343,
1513
1524
  CICChainMainnet = 1353,
1514
1525
  ZafiriumMainnet = 1369,
1515
1526
  KalarChain = 1379,
@@ -1687,6 +1698,7 @@ export declare enum ChainId {
1687
1698
  NexiMainnet = 4242,
1688
1699
  BobafujiTestnet = 4328,
1689
1700
  Beam = 4337,
1701
+ CreditSmartChainMainnet = 4400,
1690
1702
  HtmlcoinMainnet = 4444,
1691
1703
  OrderlySepoliaTestnet = 4460,
1692
1704
  IoTeXNetworkMainnet = 4689,
@@ -1726,6 +1738,7 @@ export declare enum ChainId {
1726
1738
  CascadiaTestnet = 6102,
1727
1739
  UPTNTestnet = 6118,
1728
1740
  UPTN = 6119,
1741
+ DigitSoulSmartChain = 6363,
1729
1742
  Peerpay = 6502,
1730
1743
  ScolcoinWeiChainTestnet = 6552,
1731
1744
  FoxTestnetNetwork = 6565,
@@ -1913,9 +1926,11 @@ export declare enum ChainId {
1913
1926
  ZilliqaEVM = 32769,
1914
1927
  ZilliqaEVMIsolatedServer = 32990,
1915
1928
  ZilliqaEVMTestnet = 33101,
1929
+ CloudverseSubnet = 33210,
1916
1930
  AvesMainnet = 33333,
1917
1931
  ZilliqaEVMDevnet = 33385,
1918
1932
  Zilliqa2EVMDevnet = 33469,
1933
+ Mode = 34443,
1919
1934
  J2OTaro = 35011,
1920
1935
  QMainnet = 35441,
1921
1936
  QTestnet = 35443,
@@ -1973,6 +1988,7 @@ export declare enum ChainId {
1973
1988
  ECreditsMainnet = 63000,
1974
1989
  ECreditsTestnet = 63001,
1975
1990
  ScolcoinMainnet = 65450,
1991
+ JanusTestnet = 66988,
1976
1992
  SiriusNet = 67390,
1977
1993
  CosmicChain = 67588,
1978
1994
  DM2VerseMainnet = 68770,
@@ -2090,6 +2106,7 @@ export declare enum ChainId {
2090
2106
  PolisTestnet = 333888,
2091
2107
  PolisMainnet = 333999,
2092
2108
  BitfinityNetworkTestnet = 355113,
2109
+ DigitSoulSmartChain2 = 363636,
2093
2110
  HAPchainTestnet = 373737,
2094
2111
  'MetalC-Chain' = 381931,
2095
2112
  'MetalTahoeC-Chain' = 381932,
@@ -2134,6 +2151,7 @@ export declare enum ChainId {
2134
2151
  PosichainDevnetShard1 = 920001,
2135
2152
  FNCYTestnet = 923018,
2136
2153
  EluvioContentFabric = 955305,
2154
+ EcroxChainMainnet = 988207,
2137
2155
  ZKatana = 1261120,
2138
2156
  EthoProtocol = 1313114,
2139
2157
  Xerom = 1313500,
@@ -2162,6 +2180,8 @@ export declare enum ChainId {
2162
2180
  HAPchain = 8794598,
2163
2181
  QuarixTestnet = 8888881,
2164
2182
  Quarix = 8888888,
2183
+ XCAP = 9322252,
2184
+ Milvine = 9322253,
2165
2185
  PlianTestnetSubchain1 = 10067275,
2166
2186
  SoverunMainnet = 10101010,
2167
2187
  Sepolia = 11155111,
package/dist/src/enums.js CHANGED
@@ -163,8 +163,8 @@ var ChainName;
163
163
  ChainName["BMCMainnet"] = "BMC Mainnet";
164
164
  ChainName["BMCTestnet"] = "BMC Testnet";
165
165
  ChainName["CryptoEmergency"] = "Crypto Emergency";
166
- ChainName["XgonTestnet"] = "Xgon Testnet";
167
- ChainName["XgonMainnet"] = "Xgon Mainnet";
166
+ ChainName["X1Testnet"] = "X1 Testnet";
167
+ ChainName["X1Mainnet"] = "X1 Mainnet";
168
168
  ChainName["NeutrinosTestNet"] = "Neutrinos TestNet";
169
169
  ChainName["BitchainMainnet"] = "Bitchain Mainnet";
170
170
  ChainName["BitTorrentChainMainnet"] = "BitTorrent Chain Mainnet";
@@ -397,6 +397,7 @@ var ChainName;
397
397
  ChainName["GethTestnet"] = "Geth Testnet";
398
398
  ChainName["ElysiumTestnet"] = "Elysium Testnet";
399
399
  ChainName["ElysiumMainnet"] = "Elysium Mainnet";
400
+ ChainName["BlitzSubnet"] = "Blitz Subnet";
400
401
  ChainName["CICChainMainnet"] = "CIC Chain Mainnet";
401
402
  ChainName["ZafiriumMainnet"] = "Zafirium Mainnet";
402
403
  ChainName["KalarChain"] = "Kalar Chain";
@@ -574,6 +575,7 @@ var ChainName;
574
575
  ChainName["NexiMainnet"] = "Nexi Mainnet";
575
576
  ChainName["BobafujiTestnet"] = "Bobafuji Testnet";
576
577
  ChainName["Beam"] = "Beam";
578
+ ChainName["CreditSmartChainMainnet"] = "Credit Smart Chain Mainnet";
577
579
  ChainName["HtmlcoinMainnet"] = "Htmlcoin Mainnet";
578
580
  ChainName["OrderlySepoliaTestnet"] = "Orderly Sepolia Testnet";
579
581
  ChainName["IoTeXNetworkMainnet"] = "IoTeX Network Mainnet";
@@ -613,6 +615,7 @@ var ChainName;
613
615
  ChainName["CascadiaTestnet"] = "Cascadia Testnet";
614
616
  ChainName["UPTNTestnet"] = "UPTN Testnet";
615
617
  ChainName["UPTN"] = "UPTN";
618
+ ChainName["DigitSoulSmartChain"] = "Digit Soul Smart Chain";
616
619
  ChainName["Peerpay"] = "Peerpay";
617
620
  ChainName["ScolcoinWeiChainTestnet"] = "Scolcoin WeiChain Testnet";
618
621
  ChainName["FoxTestnetNetwork"] = "Fox Testnet Network";
@@ -800,9 +803,11 @@ var ChainName;
800
803
  ChainName["ZilliqaEVM"] = "Zilliqa EVM";
801
804
  ChainName["ZilliqaEVMIsolatedServer"] = "Zilliqa EVM Isolated Server";
802
805
  ChainName["ZilliqaEVMTestnet"] = "Zilliqa EVM Testnet";
806
+ ChainName["CloudverseSubnet"] = "Cloudverse Subnet";
803
807
  ChainName["AvesMainnet"] = "Aves Mainnet";
804
808
  ChainName["ZilliqaEVMDevnet"] = "Zilliqa EVM Devnet";
805
809
  ChainName["Zilliqa2EVMDevnet"] = "Zilliqa 2 EVM Devnet";
810
+ ChainName["Mode"] = "Mode";
806
811
  ChainName["J2OTaro"] = "J2O Taro";
807
812
  ChainName["QMainnet"] = "Q Mainnet";
808
813
  ChainName["QTestnet"] = "Q Testnet";
@@ -860,6 +865,7 @@ var ChainName;
860
865
  ChainName["ECreditsMainnet"] = "eCredits Mainnet";
861
866
  ChainName["ECreditsTestnet"] = "eCredits Testnet";
862
867
  ChainName["ScolcoinMainnet"] = "Scolcoin Mainnet";
868
+ ChainName["JanusTestnet"] = "Janus Testnet";
863
869
  ChainName["SiriusNet"] = "SiriusNet";
864
870
  ChainName["CosmicChain"] = "Cosmic Chain";
865
871
  ChainName["DM2VerseMainnet"] = "DM2 Verse Mainnet";
@@ -977,6 +983,7 @@ var ChainName;
977
983
  ChainName["PolisTestnet"] = "Polis Testnet";
978
984
  ChainName["PolisMainnet"] = "Polis Mainnet";
979
985
  ChainName["BitfinityNetworkTestnet"] = "Bitfinity Network Testnet";
986
+ ChainName["DigitSoulSmartChain2"] = "Digit Soul Smart Chain 2";
980
987
  ChainName["HAPchainTestnet"] = "HAPchain Testnet";
981
988
  ChainName["MetalC-Chain"] = "Metal C-Chain";
982
989
  ChainName["MetalTahoeC-Chain"] = "Metal Tahoe C-Chain";
@@ -1021,6 +1028,7 @@ var ChainName;
1021
1028
  ChainName["PosichainDevnetShard1"] = "Posichain Devnet Shard 1";
1022
1029
  ChainName["FNCYTestnet"] = "FNCY Testnet";
1023
1030
  ChainName["EluvioContentFabric"] = "Eluvio Content Fabric";
1031
+ ChainName["EcroxChainMainnet"] = "Ecrox Chain Mainnet";
1024
1032
  ChainName["ZKatana"] = "zKatana";
1025
1033
  ChainName["EthoProtocol"] = "Etho Protocol";
1026
1034
  ChainName["Xerom"] = "Xerom";
@@ -1049,6 +1057,8 @@ var ChainName;
1049
1057
  ChainName["HAPchain"] = "HAPchain";
1050
1058
  ChainName["QuarixTestnet"] = "Quarix Testnet";
1051
1059
  ChainName["Quarix"] = "Quarix";
1060
+ ChainName["XCAP"] = "XCAP";
1061
+ ChainName["Milvine"] = "Milvine";
1052
1062
  ChainName["PlianTestnetSubchain1"] = "Plian Testnet Subchain 1";
1053
1063
  ChainName["SoverunMainnet"] = "Soverun Mainnet";
1054
1064
  ChainName["Sepolia"] = "Sepolia";
@@ -1281,8 +1291,8 @@ var ChainId;
1281
1291
  ChainId[ChainId["BMCMainnet"] = 188] = "BMCMainnet";
1282
1292
  ChainId[ChainId["BMCTestnet"] = 189] = "BMCTestnet";
1283
1293
  ChainId[ChainId["CryptoEmergency"] = 193] = "CryptoEmergency";
1284
- ChainId[ChainId["XgonTestnet"] = 195] = "XgonTestnet";
1285
- ChainId[ChainId["XgonMainnet"] = 196] = "XgonMainnet";
1294
+ ChainId[ChainId["X1Testnet"] = 195] = "X1Testnet";
1295
+ ChainId[ChainId["X1Mainnet"] = 196] = "X1Mainnet";
1286
1296
  ChainId[ChainId["NeutrinosTestNet"] = 197] = "NeutrinosTestNet";
1287
1297
  ChainId[ChainId["BitchainMainnet"] = 198] = "BitchainMainnet";
1288
1298
  ChainId[ChainId["BitTorrentChainMainnet"] = 199] = "BitTorrentChainMainnet";
@@ -1515,6 +1525,7 @@ var ChainId;
1515
1525
  ChainId[ChainId["GethTestnet"] = 1337] = "GethTestnet";
1516
1526
  ChainId[ChainId["ElysiumTestnet"] = 1338] = "ElysiumTestnet";
1517
1527
  ChainId[ChainId["ElysiumMainnet"] = 1339] = "ElysiumMainnet";
1528
+ ChainId[ChainId["BlitzSubnet"] = 1343] = "BlitzSubnet";
1518
1529
  ChainId[ChainId["CICChainMainnet"] = 1353] = "CICChainMainnet";
1519
1530
  ChainId[ChainId["ZafiriumMainnet"] = 1369] = "ZafiriumMainnet";
1520
1531
  ChainId[ChainId["KalarChain"] = 1379] = "KalarChain";
@@ -1692,6 +1703,7 @@ var ChainId;
1692
1703
  ChainId[ChainId["NexiMainnet"] = 4242] = "NexiMainnet";
1693
1704
  ChainId[ChainId["BobafujiTestnet"] = 4328] = "BobafujiTestnet";
1694
1705
  ChainId[ChainId["Beam"] = 4337] = "Beam";
1706
+ ChainId[ChainId["CreditSmartChainMainnet"] = 4400] = "CreditSmartChainMainnet";
1695
1707
  ChainId[ChainId["HtmlcoinMainnet"] = 4444] = "HtmlcoinMainnet";
1696
1708
  ChainId[ChainId["OrderlySepoliaTestnet"] = 4460] = "OrderlySepoliaTestnet";
1697
1709
  ChainId[ChainId["IoTeXNetworkMainnet"] = 4689] = "IoTeXNetworkMainnet";
@@ -1731,6 +1743,7 @@ var ChainId;
1731
1743
  ChainId[ChainId["CascadiaTestnet"] = 6102] = "CascadiaTestnet";
1732
1744
  ChainId[ChainId["UPTNTestnet"] = 6118] = "UPTNTestnet";
1733
1745
  ChainId[ChainId["UPTN"] = 6119] = "UPTN";
1746
+ ChainId[ChainId["DigitSoulSmartChain"] = 6363] = "DigitSoulSmartChain";
1734
1747
  ChainId[ChainId["Peerpay"] = 6502] = "Peerpay";
1735
1748
  ChainId[ChainId["ScolcoinWeiChainTestnet"] = 6552] = "ScolcoinWeiChainTestnet";
1736
1749
  ChainId[ChainId["FoxTestnetNetwork"] = 6565] = "FoxTestnetNetwork";
@@ -1918,9 +1931,11 @@ var ChainId;
1918
1931
  ChainId[ChainId["ZilliqaEVM"] = 32769] = "ZilliqaEVM";
1919
1932
  ChainId[ChainId["ZilliqaEVMIsolatedServer"] = 32990] = "ZilliqaEVMIsolatedServer";
1920
1933
  ChainId[ChainId["ZilliqaEVMTestnet"] = 33101] = "ZilliqaEVMTestnet";
1934
+ ChainId[ChainId["CloudverseSubnet"] = 33210] = "CloudverseSubnet";
1921
1935
  ChainId[ChainId["AvesMainnet"] = 33333] = "AvesMainnet";
1922
1936
  ChainId[ChainId["ZilliqaEVMDevnet"] = 33385] = "ZilliqaEVMDevnet";
1923
1937
  ChainId[ChainId["Zilliqa2EVMDevnet"] = 33469] = "Zilliqa2EVMDevnet";
1938
+ ChainId[ChainId["Mode"] = 34443] = "Mode";
1924
1939
  ChainId[ChainId["J2OTaro"] = 35011] = "J2OTaro";
1925
1940
  ChainId[ChainId["QMainnet"] = 35441] = "QMainnet";
1926
1941
  ChainId[ChainId["QTestnet"] = 35443] = "QTestnet";
@@ -1978,6 +1993,7 @@ var ChainId;
1978
1993
  ChainId[ChainId["ECreditsMainnet"] = 63000] = "ECreditsMainnet";
1979
1994
  ChainId[ChainId["ECreditsTestnet"] = 63001] = "ECreditsTestnet";
1980
1995
  ChainId[ChainId["ScolcoinMainnet"] = 65450] = "ScolcoinMainnet";
1996
+ ChainId[ChainId["JanusTestnet"] = 66988] = "JanusTestnet";
1981
1997
  ChainId[ChainId["SiriusNet"] = 67390] = "SiriusNet";
1982
1998
  ChainId[ChainId["CosmicChain"] = 67588] = "CosmicChain";
1983
1999
  ChainId[ChainId["DM2VerseMainnet"] = 68770] = "DM2VerseMainnet";
@@ -2095,6 +2111,7 @@ var ChainId;
2095
2111
  ChainId[ChainId["PolisTestnet"] = 333888] = "PolisTestnet";
2096
2112
  ChainId[ChainId["PolisMainnet"] = 333999] = "PolisMainnet";
2097
2113
  ChainId[ChainId["BitfinityNetworkTestnet"] = 355113] = "BitfinityNetworkTestnet";
2114
+ ChainId[ChainId["DigitSoulSmartChain2"] = 363636] = "DigitSoulSmartChain2";
2098
2115
  ChainId[ChainId["HAPchainTestnet"] = 373737] = "HAPchainTestnet";
2099
2116
  ChainId[ChainId["MetalC-Chain"] = 381931] = "MetalC-Chain";
2100
2117
  ChainId[ChainId["MetalTahoeC-Chain"] = 381932] = "MetalTahoeC-Chain";
@@ -2139,6 +2156,7 @@ var ChainId;
2139
2156
  ChainId[ChainId["PosichainDevnetShard1"] = 920001] = "PosichainDevnetShard1";
2140
2157
  ChainId[ChainId["FNCYTestnet"] = 923018] = "FNCYTestnet";
2141
2158
  ChainId[ChainId["EluvioContentFabric"] = 955305] = "EluvioContentFabric";
2159
+ ChainId[ChainId["EcroxChainMainnet"] = 988207] = "EcroxChainMainnet";
2142
2160
  ChainId[ChainId["ZKatana"] = 1261120] = "ZKatana";
2143
2161
  ChainId[ChainId["EthoProtocol"] = 1313114] = "EthoProtocol";
2144
2162
  ChainId[ChainId["Xerom"] = 1313500] = "Xerom";
@@ -2167,6 +2185,8 @@ var ChainId;
2167
2185
  ChainId[ChainId["HAPchain"] = 8794598] = "HAPchain";
2168
2186
  ChainId[ChainId["QuarixTestnet"] = 8888881] = "QuarixTestnet";
2169
2187
  ChainId[ChainId["Quarix"] = 8888888] = "Quarix";
2188
+ ChainId[ChainId["XCAP"] = 9322252] = "XCAP";
2189
+ ChainId[ChainId["Milvine"] = 9322253] = "Milvine";
2170
2190
  ChainId[ChainId["PlianTestnetSubchain1"] = 10067275] = "PlianTestnetSubchain1";
2171
2191
  ChainId[ChainId["SoverunMainnet"] = 10101010] = "SoverunMainnet";
2172
2192
  ChainId[ChainId["Sepolia"] = 11155111] = "Sepolia";
@@ -1,12 +1,27 @@
1
1
  import { Chain, Chains } from './types';
2
- import { chains } from './chains';
3
2
  export { NativeCurrency, Explorer, Parent } from './types';
4
3
  export { ChainName, ChainId } from './enums';
5
- export { chains, Chain, Chains };
6
- declare const _default: {
7
- getById: (id: number) => Chain | undefined;
8
- getByName: (name: string) => Chain | undefined;
9
- get: (idOrName: string | number) => Chain | undefined;
10
- all: () => Chains;
11
- };
12
- export default _default;
4
+ export { Chain, Chains };
5
+ /**
6
+ * Get a chain by its `id`.
7
+ * @param id - The `id` of the chain
8
+ * @returns The `Chain` object associated with the chain `id`
9
+ */
10
+ export declare const getChainById: (id: number) => Chain | undefined;
11
+ /**
12
+ * Get a chain by its `name`.
13
+ * @param name - The `name` of the chain
14
+ * @returns The `Chain` object associated with the chain `name`
15
+ */
16
+ export declare const getChainByName: (name: string) => Chain | undefined;
17
+ /**
18
+ * Get a chain by its `id` or by its `name`.
19
+ * @param idOrName - The name or id of the chain
20
+ * @returns The `Chain` object associated with the `id` or `name`
21
+ */
22
+ export declare const getChain: (idOrName: string | number) => Chain | undefined;
23
+ /**
24
+ * Gets the entire `chains` object
25
+ * @returns An object containing all chains
26
+ */
27
+ export declare const allChains: () => Chains;
package/dist/src/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.chains = exports.ChainId = exports.ChainName = void 0;
3
+ exports.allChains = exports.getChain = exports.getChainByName = exports.getChainById = exports.ChainId = exports.ChainName = void 0;
4
4
  var chains_1 = require("./chains");
5
- Object.defineProperty(exports, "chains", { enumerable: true, get: function () { return chains_1.chains; } });
6
5
  var enums_1 = require("./enums");
7
6
  Object.defineProperty(exports, "ChainName", { enumerable: true, get: function () { return enums_1.ChainName; } });
8
7
  Object.defineProperty(exports, "ChainId", { enumerable: true, get: function () { return enums_1.ChainId; } });
@@ -11,26 +10,29 @@ Object.defineProperty(exports, "ChainId", { enumerable: true, get: function () {
11
10
  * @param id - The `id` of the chain
12
11
  * @returns The `Chain` object associated with the chain `id`
13
12
  */
14
- var getById = function (id) { return chains_1.chains[id]; };
13
+ var getChainById = function (id) { return chains_1.chains[id]; };
14
+ exports.getChainById = getChainById;
15
15
  /**
16
16
  * Get a chain by its `name`.
17
17
  * @param name - The `name` of the chain
18
18
  * @returns The `Chain` object associated with the chain `name`
19
19
  */
20
- var getByName = function (name) {
20
+ var getChainByName = function (name) {
21
21
  return Object.values(chains_1.chains).find(function (chain) { return chain.name === name; }) || {};
22
22
  };
23
+ exports.getChainByName = getChainByName;
23
24
  /**
24
25
  * Get a chain by its `id` or by its `name`.
25
26
  * @param idOrName - The name or id of the chain
26
27
  * @returns The `Chain` object associated with the `id` or `name`
27
28
  */
28
- var get = function (idOrName) {
29
- return typeof idOrName === 'number' ? getById(idOrName) : getByName(idOrName);
29
+ var getChain = function (idOrName) {
30
+ return typeof idOrName === 'number' ? exports.getChainById(idOrName) : exports.getChainByName(idOrName);
30
31
  };
32
+ exports.getChain = getChain;
31
33
  /**
32
34
  * Gets the entire `chains` object
33
35
  * @returns An object containing all chains
34
36
  */
35
- var all = function () { return chains_1.chains; };
36
- exports.default = { getById: getById, getByName: getByName, get: get, all: all };
37
+ var allChains = function () { return chains_1.chains; };
38
+ exports.allChains = allChains;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revoke.cash/chains",
3
- "version": "22.0.0",
3
+ "version": "24.0.0",
4
4
  "description": "Helper module for getting EVM chains info.",
5
5
  "author": "Revoke.cash",
6
6
  "contributors": [