@talken/talkenkit 2.4.30 → 2.5.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.
Files changed (25) hide show
  1. package/dist/{abcWallet-TLGPQAMU.js → abcWallet-5GTT47V6.js} +1 -1
  2. package/dist/{chunk-MI7TNBED.js → chunk-REVMSQIO.js} +287 -71
  3. package/dist/index.js +5 -5
  4. package/dist/wallets/walletConnectors/abcWallet/abcAccessKeyProvider.d.ts +43 -0
  5. package/dist/wallets/walletConnectors/abcWallet/abcAccessKeyProvider.js +11 -0
  6. package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +4 -2
  7. package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +2 -1
  8. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +1 -1
  9. package/dist/wallets/walletConnectors/abcWallet/abcWallet.d.ts +7 -0
  10. package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +5 -3
  11. package/dist/wallets/walletConnectors/abcWallet/api/index.js +3 -3
  12. package/dist/wallets/walletConnectors/abcWallet/index.js +8 -6
  13. package/dist/wallets/walletConnectors/abcWallet/types.d.ts +2 -0
  14. package/dist/wallets/walletConnectors/{chunk-HHZ3JZRH.js → chunk-HWXOTEC3.js} +12 -2
  15. package/dist/wallets/walletConnectors/chunk-K66HU6GX.js +732 -0
  16. package/dist/wallets/walletConnectors/{chunk-XNA5NIFE.js → chunk-QSP2A4LA.js} +5 -2
  17. package/dist/wallets/walletConnectors/chunk-S2SQYPGR.js +220 -0
  18. package/dist/wallets/walletConnectors/{chunk-NU3ITJNK.js → chunk-TQHS6APN.js} +7 -731
  19. package/dist/wallets/walletConnectors/index.js +31 -29
  20. package/package.json +1 -1
  21. package/dist/wallets/walletConnectors/chunk-CABLJOMU.js +0 -194
  22. package/dist/wallets/walletConnectors/chunk-J3YPHDHM.js +0 -827
  23. package/dist/wallets/walletConnectors/chunk-J566FC7T.js +0 -54
  24. package/dist/wallets/walletConnectors/chunk-OHQXPSR6.js +0 -300
  25. package/dist/wallets/walletConnectors/chunk-OMOYFHBT.js +0 -1485
@@ -0,0 +1,732 @@
1
+ "use client";
2
+
3
+ // src/config/networks.ts
4
+ var NETWORK_CONFIGS = {
5
+ // Ethereum Mainnet
6
+ 1: {
7
+ chainId: 1,
8
+ network: "ethereum",
9
+ name: "Ethereum",
10
+ type: "EVM" /* EVM */,
11
+ isTestnet: false,
12
+ explorer: "https://etherscan.io",
13
+ website: "https://ethereum.org",
14
+ nativeCurrency: {
15
+ name: "Ether",
16
+ symbol: "ETH",
17
+ decimals: 18
18
+ },
19
+ apiSupport: { tokens: true, nft: true, transactions: true },
20
+ signSupport: { legacy: true, eip1559: true }
21
+ },
22
+ // Ethereum Sepolia Testnet
23
+ 11155111: {
24
+ chainId: 11155111,
25
+ network: "ethereum_sepolia",
26
+ name: "Ethereum Sepolia",
27
+ type: "EVM" /* EVM */,
28
+ isTestnet: true,
29
+ explorer: "https://sepolia.etherscan.io",
30
+ website: "https://ethereum.org",
31
+ nativeCurrency: {
32
+ name: "Sepolia Ether",
33
+ symbol: "ETH",
34
+ decimals: 18
35
+ },
36
+ apiSupport: { tokens: true, nft: true, transactions: true },
37
+ signSupport: { legacy: true, eip1559: true }
38
+ },
39
+ // Ethereum Holesky Testnet
40
+ 17e3: {
41
+ chainId: 17e3,
42
+ network: "ethereum_holesky",
43
+ name: "Ethereum Holesky",
44
+ type: "EVM" /* EVM */,
45
+ isTestnet: true,
46
+ explorer: "https://holesky.etherscan.io",
47
+ website: "https://ethereum.org",
48
+ nativeCurrency: {
49
+ name: "Holesky Ether",
50
+ symbol: "ETH",
51
+ decimals: 18
52
+ },
53
+ apiSupport: { tokens: true, nft: true, transactions: true },
54
+ signSupport: { legacy: true, eip1559: true }
55
+ },
56
+ // Kaia Mainnet (formerly Klaytn)
57
+ 8217: {
58
+ chainId: 8217,
59
+ network: "kaia",
60
+ name: "Kaia Mainnet",
61
+ type: "EVM" /* EVM */,
62
+ isTestnet: false,
63
+ explorer: "https://kaiascan.io",
64
+ website: "https://kaia.io",
65
+ nativeCurrency: {
66
+ name: "Kaia",
67
+ symbol: "KAIA",
68
+ decimals: 18
69
+ },
70
+ apiSupport: { tokens: true, nft: true, transactions: true },
71
+ signSupport: { legacy: true, eip1559: true }
72
+ },
73
+ // Kaia Kairos Testnet
74
+ 1001: {
75
+ chainId: 1001,
76
+ network: "kaia_kairos",
77
+ name: "Kaia Kairos Testnet",
78
+ type: "EVM" /* EVM */,
79
+ isTestnet: true,
80
+ explorer: "https://kairos.kaiascan.io",
81
+ website: "https://kaia.io",
82
+ nativeCurrency: {
83
+ name: "Kaia",
84
+ symbol: "KAIA",
85
+ decimals: 18
86
+ },
87
+ apiSupport: { tokens: true, nft: true, transactions: true },
88
+ signSupport: { legacy: true, eip1559: true }
89
+ },
90
+ // Polygon Mainnet
91
+ 137: {
92
+ chainId: 137,
93
+ network: "polygon",
94
+ name: "Polygon",
95
+ type: "EVM" /* EVM */,
96
+ isTestnet: false,
97
+ explorer: "https://polygonscan.com",
98
+ website: "https://polygon.technology",
99
+ nativeCurrency: {
100
+ name: "MATIC",
101
+ symbol: "MATIC",
102
+ decimals: 18
103
+ },
104
+ apiSupport: { tokens: true, nft: true, transactions: true },
105
+ signSupport: { legacy: true, eip1559: true }
106
+ },
107
+ // Polygon Amoy Testnet
108
+ 80002: {
109
+ chainId: 80002,
110
+ network: "polygon_amoy",
111
+ name: "Polygon Amoy Testnet",
112
+ type: "EVM" /* EVM */,
113
+ isTestnet: true,
114
+ explorer: "https://amoy.polygonscan.com",
115
+ website: "https://polygon.technology",
116
+ nativeCurrency: {
117
+ name: "MATIC",
118
+ symbol: "MATIC",
119
+ decimals: 18
120
+ },
121
+ apiSupport: { tokens: true, nft: true, transactions: true },
122
+ signSupport: { legacy: true, eip1559: true }
123
+ },
124
+ // Binance Smart Chain Mainnet
125
+ 56: {
126
+ chainId: 56,
127
+ network: "binance",
128
+ name: "Binance Smart Chain Mainnet",
129
+ type: "EVM" /* EVM */,
130
+ isTestnet: false,
131
+ explorer: "https://bscscan.com",
132
+ website: "https://www.bnbchain.org/en/bnb-smart-chain",
133
+ nativeCurrency: {
134
+ name: "BNB",
135
+ symbol: "BNB",
136
+ decimals: 18
137
+ },
138
+ apiSupport: { tokens: true, nft: true, transactions: true },
139
+ signSupport: { legacy: true, eip1559: true }
140
+ },
141
+ // Binance Smart Chain Testnet
142
+ 97: {
143
+ chainId: 97,
144
+ network: "binance_testnet",
145
+ name: "Binance Smart Chain Testnet",
146
+ type: "EVM" /* EVM */,
147
+ isTestnet: true,
148
+ explorer: "https://testnet.bscscan.com",
149
+ website: "https://www.bnbchain.org/en/bnb-smart-chain",
150
+ nativeCurrency: {
151
+ name: "BNB",
152
+ symbol: "BNB",
153
+ decimals: 18
154
+ },
155
+ apiSupport: { tokens: true, nft: true, transactions: true },
156
+ signSupport: { legacy: true, eip1559: true }
157
+ },
158
+ // Arbitrum One
159
+ 42161: {
160
+ chainId: 42161,
161
+ network: "arbitrum",
162
+ name: "Arbitrum One",
163
+ type: "EVM" /* EVM */,
164
+ isTestnet: false,
165
+ explorer: "https://arbiscan.io",
166
+ website: "https://arbitrum.io",
167
+ nativeCurrency: {
168
+ name: "Ether",
169
+ symbol: "ETH",
170
+ decimals: 18
171
+ },
172
+ apiSupport: { tokens: true, nft: true, transactions: true },
173
+ signSupport: { legacy: true, eip1559: true }
174
+ },
175
+ // Arbitrum Sepolia
176
+ 421614: {
177
+ chainId: 421614,
178
+ network: "arbitrum_sepolia",
179
+ name: "Arbitrum Sepolia",
180
+ type: "EVM" /* EVM */,
181
+ isTestnet: true,
182
+ explorer: "https://sepolia.arbiscan.io",
183
+ website: "https://arbitrum.io",
184
+ nativeCurrency: {
185
+ name: "Ether",
186
+ symbol: "ETH",
187
+ decimals: 18
188
+ },
189
+ apiSupport: { tokens: true, nft: true, transactions: true },
190
+ signSupport: { legacy: true, eip1559: true }
191
+ },
192
+ // Optimism Mainnet
193
+ 10: {
194
+ chainId: 10,
195
+ network: "optimism",
196
+ name: "Optimism",
197
+ type: "EVM" /* EVM */,
198
+ isTestnet: false,
199
+ explorer: "https://optimistic.etherscan.io",
200
+ website: "https://optimism.io",
201
+ nativeCurrency: {
202
+ name: "Ether",
203
+ symbol: "ETH",
204
+ decimals: 18
205
+ },
206
+ apiSupport: { tokens: true, nft: true, transactions: true },
207
+ signSupport: { legacy: true, eip1559: true }
208
+ },
209
+ // Optimism Sepolia
210
+ 420: {
211
+ chainId: 420,
212
+ network: "optimism_sepolia",
213
+ name: "Optimism Sepolia",
214
+ type: "EVM" /* EVM */,
215
+ isTestnet: true,
216
+ explorer: "https://sepolia-optimism.etherscan.io",
217
+ website: "https://optimism.io",
218
+ nativeCurrency: {
219
+ name: "Ether",
220
+ symbol: "ETH",
221
+ decimals: 18
222
+ },
223
+ apiSupport: { tokens: true, nft: true, transactions: true },
224
+ signSupport: { legacy: true, eip1559: true }
225
+ },
226
+ // Avalanche C-Chain
227
+ 43114: {
228
+ chainId: 43114,
229
+ network: "avalanche",
230
+ name: "Avalanche C-Chain",
231
+ type: "EVM" /* EVM */,
232
+ isTestnet: false,
233
+ explorer: "https://avascan.info/blockchain/c/home",
234
+ website: "https://avax.network",
235
+ nativeCurrency: {
236
+ name: "Avalanche",
237
+ symbol: "AVAX",
238
+ decimals: 18
239
+ },
240
+ apiSupport: { tokens: true, nft: true, transactions: true },
241
+ signSupport: { legacy: true, eip1559: true }
242
+ },
243
+ // Avalanche Fuji Testnet
244
+ 43113: {
245
+ chainId: 43113,
246
+ network: "avalanche_fuji",
247
+ name: "Avalanche Fuji Testnet",
248
+ type: "EVM" /* EVM */,
249
+ isTestnet: true,
250
+ explorer: "https://testnet.avascan.info",
251
+ website: "https://avax.network",
252
+ nativeCurrency: {
253
+ name: "Avalanche",
254
+ symbol: "AVAX",
255
+ decimals: 18
256
+ },
257
+ apiSupport: { tokens: false, nft: false, transactions: false },
258
+ signSupport: { legacy: true, eip1559: true }
259
+ },
260
+ // Mantle Mainnet
261
+ 5e3: {
262
+ chainId: 5e3,
263
+ network: "mantle",
264
+ name: "Mantle Mainnet",
265
+ type: "EVM" /* EVM */,
266
+ isTestnet: false,
267
+ explorer: "https://explorer.mantle.xyz",
268
+ website: "https://www.mantle.xyz",
269
+ nativeCurrency: {
270
+ name: "Mantle",
271
+ symbol: "MNT",
272
+ decimals: 18
273
+ },
274
+ apiSupport: { tokens: true, nft: true, transactions: true },
275
+ signSupport: { legacy: true, eip1559: true }
276
+ },
277
+ // Mantle Testnet
278
+ 5001: {
279
+ chainId: 5001,
280
+ network: "mantle_testnet",
281
+ name: "Mantle Testnet",
282
+ type: "EVM" /* EVM */,
283
+ isTestnet: true,
284
+ explorer: "https://sepolia.mantlescan.xyz",
285
+ website: "https://www.mantle.xyz",
286
+ nativeCurrency: {
287
+ name: "Mantle",
288
+ symbol: "MNT",
289
+ decimals: 18
290
+ },
291
+ apiSupport: { tokens: true, nft: true, transactions: true },
292
+ signSupport: { legacy: true, eip1559: true }
293
+ },
294
+ // Moonbeam
295
+ 1284: {
296
+ chainId: 1284,
297
+ network: "moonbeam",
298
+ name: "Moonbeam",
299
+ type: "EVM" /* EVM */,
300
+ isTestnet: false,
301
+ explorer: "https://moonbeam.moonscan.io",
302
+ website: "https://moonbeam.network",
303
+ nativeCurrency: {
304
+ name: "Glimmer",
305
+ symbol: "GLMR",
306
+ decimals: 18
307
+ },
308
+ apiSupport: { tokens: true, nft: true, transactions: true },
309
+ signSupport: { legacy: true, eip1559: true }
310
+ },
311
+ // Moonriver
312
+ 1285: {
313
+ chainId: 1285,
314
+ network: "moonriver",
315
+ name: "Moonriver",
316
+ type: "EVM" /* EVM */,
317
+ isTestnet: false,
318
+ explorer: "https://moonriver.moonscan.io",
319
+ website: "https://moonbeam.network/networks/moonriver",
320
+ nativeCurrency: {
321
+ name: "Moonriver",
322
+ symbol: "MOVR",
323
+ decimals: 18
324
+ },
325
+ apiSupport: { tokens: true, nft: true, transactions: true },
326
+ signSupport: { legacy: true, eip1559: true }
327
+ },
328
+ // Scroll Mainnet
329
+ 534352: {
330
+ chainId: 534352,
331
+ network: "scroll",
332
+ name: "Scroll",
333
+ type: "EVM" /* EVM */,
334
+ isTestnet: false,
335
+ explorer: "https://scrollscan.co",
336
+ website: "https://scroll.io",
337
+ nativeCurrency: {
338
+ name: "Ether",
339
+ symbol: "ETH",
340
+ decimals: 18
341
+ },
342
+ apiSupport: { tokens: true, nft: true, transactions: true },
343
+ signSupport: { legacy: true, eip1559: true }
344
+ },
345
+ // Scroll Testnet
346
+ 534351: {
347
+ chainId: 534351,
348
+ network: "scroll_testnet",
349
+ name: "Scroll Testnet",
350
+ type: "EVM" /* EVM */,
351
+ isTestnet: true,
352
+ explorer: "https://sepolia.scrollscan.com",
353
+ website: "https://scroll.io",
354
+ nativeCurrency: {
355
+ name: "Ether",
356
+ symbol: "ETH",
357
+ decimals: 18
358
+ },
359
+ apiSupport: { tokens: true, nft: true, transactions: true },
360
+ signSupport: { legacy: true, eip1559: true }
361
+ },
362
+ // Silicon Mainnet
363
+ 2355: {
364
+ chainId: 2355,
365
+ network: "silicon",
366
+ name: "Silicon",
367
+ type: "EVM" /* EVM */,
368
+ isTestnet: false,
369
+ explorer: "https://scope.silicon.network",
370
+ website: "https://silicon.network",
371
+ nativeCurrency: {
372
+ name: "Ether",
373
+ symbol: "ETH",
374
+ decimals: 18
375
+ },
376
+ apiSupport: { tokens: true, nft: true, transactions: true },
377
+ signSupport: { legacy: true, eip1559: true }
378
+ },
379
+ // Silicon Sepolia
380
+ 1722641160: {
381
+ chainId: 1722641160,
382
+ network: "silicon_sepolia",
383
+ name: "Silicon Sepolia",
384
+ type: "EVM" /* EVM */,
385
+ isTestnet: true,
386
+ explorer: "https://scope-sepolia.silicon.network",
387
+ website: "https://silicon.network",
388
+ nativeCurrency: {
389
+ name: "Ether",
390
+ symbol: "ETH",
391
+ decimals: 18
392
+ },
393
+ apiSupport: { tokens: true, nft: true, transactions: true },
394
+ signSupport: { legacy: true, eip1559: true }
395
+ },
396
+ // Six Protocol
397
+ 98: {
398
+ chainId: 98,
399
+ network: "six_evm",
400
+ name: "Six Protocol",
401
+ type: "EVM" /* EVM */,
402
+ isTestnet: false,
403
+ explorer: "https://v2.sixscan.io",
404
+ website: "https://www.six.network",
405
+ nativeCurrency: {
406
+ name: "SIX",
407
+ symbol: "SIX",
408
+ decimals: 18
409
+ },
410
+ apiSupport: { tokens: true, nft: false, transactions: true },
411
+ signSupport: { legacy: true, eip1559: false }
412
+ },
413
+ // Six Protocol Testnet
414
+ 150: {
415
+ chainId: 150,
416
+ network: "six_evm_testnet",
417
+ name: "Six Protocol Testnet",
418
+ type: "EVM" /* EVM */,
419
+ isTestnet: true,
420
+ explorer: "https://v2.fivenet.sixscan.io",
421
+ website: "https://www.six.network",
422
+ nativeCurrency: {
423
+ name: "SIX",
424
+ symbol: "SIX",
425
+ decimals: 18
426
+ },
427
+ apiSupport: { tokens: true, nft: false, transactions: true },
428
+ signSupport: { legacy: true, eip1559: false }
429
+ },
430
+ // Wemix Mainnet
431
+ 1111: {
432
+ chainId: 1111,
433
+ network: "wemix",
434
+ name: "Wemix3.0 Mainnet",
435
+ type: "EVM" /* EVM */,
436
+ isTestnet: false,
437
+ explorer: "https://explorer.wemix.com",
438
+ website: "https://wemix.com",
439
+ nativeCurrency: {
440
+ name: "WEMIX",
441
+ symbol: "WEMIX",
442
+ decimals: 18
443
+ },
444
+ apiSupport: { tokens: true, nft: true, transactions: true },
445
+ signSupport: { legacy: true, eip1559: true }
446
+ },
447
+ // Wemix Testnet
448
+ 1112: {
449
+ chainId: 1112,
450
+ network: "wemix_testnet",
451
+ name: "Wemix3.0 Testnet",
452
+ type: "EVM" /* EVM */,
453
+ isTestnet: true,
454
+ explorer: "https://explorer.test.wemix.com",
455
+ website: "https://wemix.com",
456
+ nativeCurrency: {
457
+ name: "WEMIX",
458
+ symbol: "WEMIX",
459
+ decimals: 18
460
+ },
461
+ apiSupport: { tokens: true, nft: true, transactions: true },
462
+ signSupport: { legacy: true, eip1559: true }
463
+ },
464
+ // Taiko Mainnet
465
+ 167e3: {
466
+ chainId: 167e3,
467
+ network: "taiko",
468
+ name: "Taiko Mainnet",
469
+ type: "EVM" /* EVM */,
470
+ isTestnet: false,
471
+ explorer: "https://taikoscan.io",
472
+ website: "https://taiko.xyz",
473
+ nativeCurrency: {
474
+ name: "Ether",
475
+ symbol: "ETH",
476
+ decimals: 18
477
+ },
478
+ apiSupport: { tokens: true, nft: true, transactions: true },
479
+ signSupport: { legacy: true, eip1559: true }
480
+ },
481
+ // Taiko Hekla Testnet
482
+ 167009: {
483
+ chainId: 167009,
484
+ network: "taiko_hekla",
485
+ name: "Taiko Hekla Testnet",
486
+ type: "EVM" /* EVM */,
487
+ isTestnet: true,
488
+ explorer: "https://hekla.taikoscan.io",
489
+ website: "https://taiko.xyz",
490
+ nativeCurrency: {
491
+ name: "Ether",
492
+ symbol: "ETH",
493
+ decimals: 18
494
+ },
495
+ apiSupport: { tokens: true, nft: true, transactions: true },
496
+ signSupport: { legacy: true, eip1559: true }
497
+ },
498
+ // Base Mainnet
499
+ 8453: {
500
+ chainId: 8453,
501
+ network: "base",
502
+ name: "Base",
503
+ type: "EVM" /* EVM */,
504
+ isTestnet: false,
505
+ explorer: "https://basescan.org",
506
+ website: "https://base.org",
507
+ nativeCurrency: {
508
+ name: "Ether",
509
+ symbol: "ETH",
510
+ decimals: 18
511
+ },
512
+ apiSupport: { tokens: true, nft: true, transactions: true },
513
+ signSupport: { legacy: true, eip1559: true }
514
+ },
515
+ // Base Sepolia Testnet
516
+ 84532: {
517
+ chainId: 84532,
518
+ network: "base_sepolia",
519
+ name: "Base Sepolia",
520
+ type: "EVM" /* EVM */,
521
+ isTestnet: true,
522
+ explorer: "https://sepolia.basescan.org",
523
+ website: "https://base.org",
524
+ nativeCurrency: {
525
+ name: "Ether",
526
+ symbol: "ETH",
527
+ decimals: 18
528
+ },
529
+ apiSupport: { tokens: true, nft: true, transactions: true },
530
+ signSupport: { legacy: true, eip1559: true }
531
+ },
532
+ // ChainBounty Mainnet
533
+ 51828: {
534
+ chainId: 51828,
535
+ network: "chainbounty",
536
+ name: "ChainBounty Mainnet",
537
+ type: "EVM" /* EVM */,
538
+ isTestnet: false,
539
+ explorer: "https://scan.chainbounty.io",
540
+ website: "https://chainbounty.io",
541
+ nativeCurrency: {
542
+ name: "ChainBounty",
543
+ symbol: "CBY",
544
+ decimals: 18
545
+ },
546
+ apiSupport: { tokens: true, nft: true, transactions: true },
547
+ signSupport: { legacy: true, eip1559: true }
548
+ },
549
+ // ChainBounty Testnet
550
+ 56580: {
551
+ chainId: 56580,
552
+ network: "chainbounty_testnet",
553
+ name: "ChainBounty Testnet",
554
+ type: "EVM" /* EVM */,
555
+ isTestnet: true,
556
+ explorer: "https://test.scan.chainbounty.io",
557
+ website: "https://chainbounty.io",
558
+ nativeCurrency: {
559
+ name: "ChainBounty",
560
+ symbol: "CBY",
561
+ decimals: 18
562
+ },
563
+ apiSupport: { tokens: true, nft: true, transactions: true },
564
+ signSupport: { legacy: true, eip1559: true }
565
+ },
566
+ // Aptos Mainnet (Non-EVM)
567
+ aptos: {
568
+ chainId: null,
569
+ network: "aptos",
570
+ name: "Aptos",
571
+ type: "Non-EVM" /* NON_EVM */,
572
+ isTestnet: false,
573
+ explorer: "https://explorer.aptoslabs.com/?network=mainnet",
574
+ website: "https://aptos.dev",
575
+ nativeCurrency: {
576
+ name: "Aptos",
577
+ symbol: "APT",
578
+ decimals: 8
579
+ },
580
+ apiSupport: { tokens: true, nft: true, transactions: true },
581
+ signSupport: { legacy: true, eip1559: false }
582
+ },
583
+ // Aptos Testnet (Non-EVM)
584
+ aptos_testnet: {
585
+ chainId: null,
586
+ network: "aptos_testnet",
587
+ name: "Aptos Testnet",
588
+ type: "Non-EVM" /* NON_EVM */,
589
+ isTestnet: true,
590
+ explorer: "https://explorer.aptoslabs.com/?network=testnet",
591
+ website: "https://aptos.dev",
592
+ nativeCurrency: {
593
+ name: "Aptos",
594
+ symbol: "APT",
595
+ decimals: 8
596
+ },
597
+ apiSupport: { tokens: true, nft: true, transactions: true },
598
+ signSupport: { legacy: true, eip1559: false }
599
+ },
600
+ // Bitcoin Mainnet
601
+ bitcoin: {
602
+ chainId: null,
603
+ network: "bitcoin",
604
+ name: "Bitcoin Mainnet",
605
+ type: "Bitcoin" /* BITCOIN */,
606
+ isTestnet: false,
607
+ explorer: "https://blockstream.info",
608
+ website: "https://bitcoin.org",
609
+ nativeCurrency: {
610
+ name: "Bitcoin",
611
+ symbol: "BTC",
612
+ decimals: 8
613
+ },
614
+ apiSupport: { tokens: true, nft: false, transactions: true },
615
+ signSupport: { legacy: true, eip1559: false }
616
+ },
617
+ // Bitcoin Testnet
618
+ bitcoin_testnet: {
619
+ chainId: null,
620
+ network: "bitcoin_testnet",
621
+ name: "Bitcoin Testnet",
622
+ type: "Bitcoin" /* BITCOIN */,
623
+ isTestnet: true,
624
+ explorer: "https://blockstream.info/testnet",
625
+ website: "https://bitcoin.org",
626
+ nativeCurrency: {
627
+ name: "Bitcoin",
628
+ symbol: "BTC",
629
+ decimals: 8
630
+ },
631
+ apiSupport: { tokens: true, nft: false, transactions: true },
632
+ signSupport: { legacy: true, eip1559: false }
633
+ },
634
+ // Tron Mainnet
635
+ tron: {
636
+ chainId: null,
637
+ network: "tron",
638
+ name: "Tron Mainnet",
639
+ type: "TRX" /* TRON */,
640
+ isTestnet: false,
641
+ explorer: "https://tronscan.org",
642
+ website: "https://tron.network",
643
+ nativeCurrency: {
644
+ name: "Tronix",
645
+ symbol: "TRX",
646
+ decimals: 6
647
+ },
648
+ apiSupport: { tokens: true, nft: true, transactions: true },
649
+ signSupport: { legacy: true, eip1559: true }
650
+ },
651
+ // Tron Nile Testnet
652
+ tron_nile: {
653
+ chainId: null,
654
+ network: "tron_nile",
655
+ name: "Tron Nile Testnet",
656
+ type: "TRX" /* TRON */,
657
+ isTestnet: true,
658
+ explorer: "https://nile.tronscan.org",
659
+ website: "https://tron.network",
660
+ nativeCurrency: {
661
+ name: "Tronix",
662
+ symbol: "TRX",
663
+ decimals: 6
664
+ },
665
+ apiSupport: { tokens: true, nft: true, transactions: true },
666
+ signSupport: { legacy: true, eip1559: true }
667
+ },
668
+ // ICP Mainnet
669
+ icp: {
670
+ chainId: null,
671
+ network: "icp",
672
+ name: "Internet Computer",
673
+ type: "ICP" /* ICP */,
674
+ isTestnet: false,
675
+ explorer: "https://dashboard.internetcomputer.org",
676
+ website: "https://internetcomputer.org",
677
+ nativeCurrency: {
678
+ name: "ICP",
679
+ symbol: "ICP",
680
+ decimals: 8
681
+ },
682
+ apiSupport: { tokens: true, nft: true, transactions: true },
683
+ signSupport: { legacy: true, eip1559: true }
684
+ }
685
+ };
686
+ var NETWORK_BY_PARAM = Object.values(
687
+ NETWORK_CONFIGS
688
+ ).reduce(
689
+ (acc, config) => {
690
+ acc[config.network] = config;
691
+ return acc;
692
+ },
693
+ {}
694
+ );
695
+ function getNetworkName(chainId, fallback = "ethereum") {
696
+ return NETWORK_CONFIGS[chainId]?.network ?? fallback;
697
+ }
698
+ var CHAIN_ID_TO_KEY = {
699
+ // Mainnet
700
+ 1: "ethereum",
701
+ 42161: "arbitrum",
702
+ 8217: "kaia",
703
+ 56: "bsc",
704
+ 8453: "base",
705
+ 137: "polygon",
706
+ 43114: "avalanche",
707
+ 5e3: "mantle",
708
+ 51828: "chainbounty",
709
+ // Testnet
710
+ 11155111: "sepolia",
711
+ 421614: "arbitrumSepolia",
712
+ 1001: "kaiaKairos",
713
+ 97: "bscTestnet",
714
+ 84532: "baseSepolia",
715
+ 80002: "polygonAmoy",
716
+ 43113: "avalancheFuji",
717
+ 5003: "mantleSepolia",
718
+ 56580: "chainbountyTestnet",
719
+ 998: "hyperevmTestnet"
720
+ };
721
+ function getChainKey(chainId) {
722
+ const key = CHAIN_ID_TO_KEY[chainId];
723
+ if (!key) {
724
+ throw new Error(`Unsupported chainId for tx endpoint: ${chainId}`);
725
+ }
726
+ return key;
727
+ }
728
+
729
+ export {
730
+ getNetworkName,
731
+ getChainKey
732
+ };