@talken/talkenkit 2.5.2 → 2.5.3

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 (111) hide show
  1. package/README.md +8 -28
  2. package/dist/{AbcCredentialManager-5W3B7GI4.js → AbcCredentialManager-DDHLW2IH.js} +1 -1
  3. package/dist/AbcCredentialManager-JV4ZBMKF.js +7 -0
  4. package/dist/TalkenApiSingleton-TECFDCT4.js +9 -0
  5. package/dist/{abcWallet-HRNBHY5Q.js → abcWallet-2BVT5XFX.js} +2 -2
  6. package/dist/abcWallet-BFCI4NEM.js +162 -0
  7. package/dist/{chunk-PN6K4CMZ.js → chunk-ALBABQ53.js} +1 -4
  8. package/dist/chunk-DNEDHHS4.js +379 -0
  9. package/dist/chunk-KOK5ZBR4.js +5447 -0
  10. package/dist/chunk-R6ZE7JAZ.js +15 -0
  11. package/dist/{chunk-VCQZZ6SN.js → chunk-WPRIYR63.js} +192 -80
  12. package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthFlow.d.ts +6 -32
  13. package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthSections.d.ts +0 -9
  14. package/dist/components/ConnectOptions/AbcWaasAuth/hooks/useAbcWaasAuth.d.ts +3 -12
  15. package/dist/components/ConnectOptions/AbcWaasAuth/types.d.ts +1 -8
  16. package/dist/components/ConnectOptions/PinAuth/PinAuthFlow.d.ts +6 -4
  17. package/dist/components/ProfileDetails/ProfileDetails.d.ts +5 -5
  18. package/dist/hooks/useMultiChainBalances.d.ts +9 -0
  19. package/dist/index.js +1344 -1423
  20. package/dist/wallets/walletConnectors/abcWallet/AbcCredentialManager.js +2 -2
  21. package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +2 -2
  22. package/dist/wallets/walletConnectors/abcWallet/abcAccessKeyProvider.js +3 -3
  23. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +3 -3
  24. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +3 -3
  25. package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +7 -7
  26. package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +4 -4
  27. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +7 -7
  28. package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +44 -44
  29. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +3 -3
  30. package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +8 -8
  31. package/dist/wallets/walletConnectors/abcWallet/api/ConfigApi.js +2 -2
  32. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.d.ts +44 -0
  33. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +3 -3
  34. package/dist/wallets/walletConnectors/abcWallet/api/TokenApi.js +2 -2
  35. package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +3 -3
  36. package/dist/wallets/walletConnectors/abcWallet/api/index.js +6 -6
  37. package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +3 -0
  38. package/dist/wallets/walletConnectors/abcWallet/constants.js +5 -3
  39. package/dist/wallets/walletConnectors/abcWallet/index.js +31 -31
  40. package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +2 -2
  41. package/dist/wallets/walletConnectors/abcWallet/types.d.ts +4 -0
  42. package/dist/wallets/walletConnectors/abcWallet/utils.js +2 -2
  43. package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +3 -3
  44. package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/binanceWallet/binanceWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  49. package/dist/wallets/walletConnectors/{chunk-4JZPP3S7.js → chunk-2N244XPQ.js} +1 -1
  50. package/dist/wallets/walletConnectors/{chunk-QKK3OPQA.js → chunk-36BJXEBA.js} +1 -1
  51. package/dist/wallets/walletConnectors/{chunk-FKI5AZVH.js → chunk-3K3KYVRN.js} +1 -1
  52. package/dist/wallets/walletConnectors/{chunk-URS2KVYK.js → chunk-5DK36WJ2.js} +1 -1
  53. package/dist/wallets/walletConnectors/chunk-5ERWBR7D.js +977 -0
  54. package/dist/wallets/walletConnectors/chunk-6KRX73ED.js +230 -0
  55. package/dist/wallets/walletConnectors/{chunk-H2AZTZMM.js → chunk-6L5G54IX.js} +1 -1
  56. package/dist/wallets/walletConnectors/chunk-6WF4SXLB.js +156 -0
  57. package/dist/wallets/walletConnectors/{chunk-PF65YS3T.js → chunk-A66MTFML.js} +1 -1
  58. package/dist/wallets/walletConnectors/{chunk-LIGH2LEU.js → chunk-ACLPF2UW.js} +1 -1
  59. package/dist/wallets/walletConnectors/{chunk-NP5PWUVU.js → chunk-BHEVY4QY.js} +2 -48
  60. package/dist/wallets/walletConnectors/{chunk-YKFI6ZGM.js → chunk-BXH3GDX5.js} +1 -1
  61. package/dist/wallets/walletConnectors/{chunk-RGYZNNB6.js → chunk-C4ADBB6M.js} +1 -1
  62. package/dist/wallets/walletConnectors/{chunk-MIX4TRKO.js → chunk-CABLJOMU.js} +1 -1
  63. package/dist/wallets/walletConnectors/{chunk-RX2VOIUB.js → chunk-DPTDOCWL.js} +1 -4
  64. package/dist/wallets/walletConnectors/{chunk-IPH3SIC3.js → chunk-DW36LXIV.js} +8 -7
  65. package/dist/wallets/walletConnectors/chunk-EBTKWCIS.js +224 -0
  66. package/dist/wallets/walletConnectors/{chunk-25ZDAJ3L.js → chunk-EZS3GXZN.js} +1 -1
  67. package/dist/wallets/walletConnectors/{chunk-JBOKTW2Q.js → chunk-FBJ5H6PM.js} +19 -79
  68. package/dist/wallets/walletConnectors/chunk-IM7DEERX.js +585 -0
  69. package/dist/wallets/walletConnectors/{chunk-ASYCOXE6.js → chunk-J3YPHDHM.js} +2 -48
  70. package/dist/wallets/walletConnectors/chunk-JADQLTFW.js +194 -0
  71. package/dist/wallets/walletConnectors/{chunk-L6FCF3FH.js → chunk-L3HWFGTN.js} +2 -2
  72. package/dist/wallets/walletConnectors/chunk-L6WDO3ZN.js +445 -0
  73. package/dist/wallets/walletConnectors/chunk-MO2AXXLI.js +30 -0
  74. package/dist/wallets/walletConnectors/{chunk-BRXYKYKT.js → chunk-NLA45GHJ.js} +17 -77
  75. package/dist/wallets/walletConnectors/{chunk-TVZHPWFR.js → chunk-NU3ITJNK.js} +736 -94
  76. package/dist/wallets/walletConnectors/{chunk-HWRZGGGN.js → chunk-NULM3THX.js} +1 -1
  77. package/dist/wallets/walletConnectors/chunk-OMOYFHBT.js +1485 -0
  78. package/dist/wallets/walletConnectors/{chunk-2A5XTST5.js → chunk-OOCL4OPQ.js} +29 -11
  79. package/dist/wallets/walletConnectors/chunk-PVPSVCVQ.js +96 -0
  80. package/dist/wallets/walletConnectors/chunk-VBNZ7HA3.js +241 -0
  81. package/dist/wallets/walletConnectors/chunk-VDWJ3NQ5.js +52 -0
  82. package/dist/wallets/walletConnectors/chunk-VLHDGDFH.js +273 -0
  83. package/dist/wallets/walletConnectors/{chunk-WKP53WWR.js → chunk-VMCIDCO5.js} +4 -7
  84. package/dist/wallets/walletConnectors/{chunk-4PDTJS5L.js → chunk-VNL7XEWF.js} +4 -7
  85. package/dist/wallets/walletConnectors/chunk-YV6IZWGE.js +393 -0
  86. package/dist/wallets/walletConnectors/{chunk-645DT4TS.js → chunk-ZLH3W5PQ.js} +2 -2
  87. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  88. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  89. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  90. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  91. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  92. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  93. package/dist/wallets/walletConnectors/index.js +61 -61
  94. package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
  95. package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
  96. package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
  97. package/dist/wallets/walletConnectors/klipWallet/klipWallet.js +2 -2
  98. package/dist/wallets/walletConnectors/klipWallet-TBZJ5GGT.js +7 -0
  99. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  100. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  101. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  102. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  103. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  104. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  105. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  106. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  107. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
  108. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  109. package/package.json +12 -11
  110. package/LICENSE +0 -9
  111. package/dist/wallets/walletConnectors/klipWallet-PPTYYB5G.js +0 -7
@@ -1,27 +1,746 @@
1
1
  "use client";
2
- import {
3
- getChainKey,
4
- getExplorerTxUrl,
5
- getNetworkName
6
- } from "./chunk-OASBABPG.js";
7
- import {
8
- getCredentialManager
9
- } from "./chunk-QKK3OPQA.js";
10
2
  import {
11
3
  hexToNumber,
12
4
  numberToHex
13
- } from "./chunk-PF65YS3T.js";
5
+ } from "./chunk-A66MTFML.js";
6
+ import {
7
+ getCredentialManager
8
+ } from "./chunk-6WF4SXLB.js";
14
9
  import {
15
10
  TalkenApiError
16
11
  } from "./chunk-4P3SPC44.js";
17
12
 
18
13
  // src/wallets/walletConnectors/abcWallet/abcProvider.ts
19
- import {
20
- getShowPendingTransaction,
21
- getTalkenApiClient,
22
- getUpdateTransactionResult
23
- } from "@talken/talkenkit";
14
+ import { getTalkenApiClient } from "@talken/talkenkit";
24
15
  import { parseGwei } from "viem";
16
+
17
+ // src/config/networks.ts
18
+ var NETWORK_CONFIGS = {
19
+ // Ethereum Mainnet
20
+ 1: {
21
+ chainId: 1,
22
+ network: "ethereum",
23
+ name: "Ethereum",
24
+ type: "EVM" /* EVM */,
25
+ isTestnet: false,
26
+ explorer: "https://etherscan.io",
27
+ website: "https://ethereum.org",
28
+ nativeCurrency: {
29
+ name: "Ether",
30
+ symbol: "ETH",
31
+ decimals: 18
32
+ },
33
+ apiSupport: { tokens: true, nft: true, transactions: true },
34
+ signSupport: { legacy: true, eip1559: true }
35
+ },
36
+ // Ethereum Sepolia Testnet
37
+ 11155111: {
38
+ chainId: 11155111,
39
+ network: "ethereum_sepolia",
40
+ name: "Ethereum Sepolia",
41
+ type: "EVM" /* EVM */,
42
+ isTestnet: true,
43
+ explorer: "https://sepolia.etherscan.io",
44
+ website: "https://ethereum.org",
45
+ nativeCurrency: {
46
+ name: "Sepolia Ether",
47
+ symbol: "ETH",
48
+ decimals: 18
49
+ },
50
+ apiSupport: { tokens: true, nft: true, transactions: true },
51
+ signSupport: { legacy: true, eip1559: true }
52
+ },
53
+ // Ethereum Holesky Testnet
54
+ 17e3: {
55
+ chainId: 17e3,
56
+ network: "ethereum_holesky",
57
+ name: "Ethereum Holesky",
58
+ type: "EVM" /* EVM */,
59
+ isTestnet: true,
60
+ explorer: "https://holesky.etherscan.io",
61
+ website: "https://ethereum.org",
62
+ nativeCurrency: {
63
+ name: "Holesky Ether",
64
+ symbol: "ETH",
65
+ decimals: 18
66
+ },
67
+ apiSupport: { tokens: true, nft: true, transactions: true },
68
+ signSupport: { legacy: true, eip1559: true }
69
+ },
70
+ // Kaia Mainnet (formerly Klaytn)
71
+ 8217: {
72
+ chainId: 8217,
73
+ network: "kaia",
74
+ name: "Kaia Mainnet",
75
+ type: "EVM" /* EVM */,
76
+ isTestnet: false,
77
+ explorer: "https://kaiascan.io",
78
+ website: "https://kaia.io",
79
+ nativeCurrency: {
80
+ name: "Kaia",
81
+ symbol: "KAIA",
82
+ decimals: 18
83
+ },
84
+ apiSupport: { tokens: true, nft: true, transactions: true },
85
+ signSupport: { legacy: true, eip1559: true }
86
+ },
87
+ // Kaia Kairos Testnet
88
+ 1001: {
89
+ chainId: 1001,
90
+ network: "kaia_kairos",
91
+ name: "Kaia Kairos Testnet",
92
+ type: "EVM" /* EVM */,
93
+ isTestnet: true,
94
+ explorer: "https://kairos.kaiascan.io",
95
+ website: "https://kaia.io",
96
+ nativeCurrency: {
97
+ name: "Kaia",
98
+ symbol: "KAIA",
99
+ decimals: 18
100
+ },
101
+ apiSupport: { tokens: true, nft: true, transactions: true },
102
+ signSupport: { legacy: true, eip1559: true }
103
+ },
104
+ // Polygon Mainnet
105
+ 137: {
106
+ chainId: 137,
107
+ network: "polygon",
108
+ name: "Polygon",
109
+ type: "EVM" /* EVM */,
110
+ isTestnet: false,
111
+ explorer: "https://polygonscan.com",
112
+ website: "https://polygon.technology",
113
+ nativeCurrency: {
114
+ name: "MATIC",
115
+ symbol: "MATIC",
116
+ decimals: 18
117
+ },
118
+ apiSupport: { tokens: true, nft: true, transactions: true },
119
+ signSupport: { legacy: true, eip1559: true }
120
+ },
121
+ // Polygon Amoy Testnet
122
+ 80002: {
123
+ chainId: 80002,
124
+ network: "polygon_amoy",
125
+ name: "Polygon Amoy Testnet",
126
+ type: "EVM" /* EVM */,
127
+ isTestnet: true,
128
+ explorer: "https://amoy.polygonscan.com",
129
+ website: "https://polygon.technology",
130
+ nativeCurrency: {
131
+ name: "MATIC",
132
+ symbol: "MATIC",
133
+ decimals: 18
134
+ },
135
+ apiSupport: { tokens: true, nft: true, transactions: true },
136
+ signSupport: { legacy: true, eip1559: true }
137
+ },
138
+ // Binance Smart Chain Mainnet
139
+ 56: {
140
+ chainId: 56,
141
+ network: "binance",
142
+ name: "Binance Smart Chain Mainnet",
143
+ type: "EVM" /* EVM */,
144
+ isTestnet: false,
145
+ explorer: "https://bscscan.com",
146
+ website: "https://www.bnbchain.org/en/bnb-smart-chain",
147
+ nativeCurrency: {
148
+ name: "BNB",
149
+ symbol: "BNB",
150
+ decimals: 18
151
+ },
152
+ apiSupport: { tokens: true, nft: true, transactions: true },
153
+ signSupport: { legacy: true, eip1559: true }
154
+ },
155
+ // Binance Smart Chain Testnet
156
+ 97: {
157
+ chainId: 97,
158
+ network: "binance_testnet",
159
+ name: "Binance Smart Chain Testnet",
160
+ type: "EVM" /* EVM */,
161
+ isTestnet: true,
162
+ explorer: "https://testnet.bscscan.com",
163
+ website: "https://www.bnbchain.org/en/bnb-smart-chain",
164
+ nativeCurrency: {
165
+ name: "BNB",
166
+ symbol: "BNB",
167
+ decimals: 18
168
+ },
169
+ apiSupport: { tokens: true, nft: true, transactions: true },
170
+ signSupport: { legacy: true, eip1559: true }
171
+ },
172
+ // Arbitrum One
173
+ 42161: {
174
+ chainId: 42161,
175
+ network: "arbitrum",
176
+ name: "Arbitrum One",
177
+ type: "EVM" /* EVM */,
178
+ isTestnet: false,
179
+ explorer: "https://arbiscan.io",
180
+ website: "https://arbitrum.io",
181
+ nativeCurrency: {
182
+ name: "Ether",
183
+ symbol: "ETH",
184
+ decimals: 18
185
+ },
186
+ apiSupport: { tokens: true, nft: true, transactions: true },
187
+ signSupport: { legacy: true, eip1559: true }
188
+ },
189
+ // Arbitrum Sepolia
190
+ 421614: {
191
+ chainId: 421614,
192
+ network: "arbitrum_sepolia",
193
+ name: "Arbitrum Sepolia",
194
+ type: "EVM" /* EVM */,
195
+ isTestnet: true,
196
+ explorer: "https://sepolia.arbiscan.io",
197
+ website: "https://arbitrum.io",
198
+ nativeCurrency: {
199
+ name: "Ether",
200
+ symbol: "ETH",
201
+ decimals: 18
202
+ },
203
+ apiSupport: { tokens: true, nft: true, transactions: true },
204
+ signSupport: { legacy: true, eip1559: true }
205
+ },
206
+ // Optimism Mainnet
207
+ 10: {
208
+ chainId: 10,
209
+ network: "optimism",
210
+ name: "Optimism",
211
+ type: "EVM" /* EVM */,
212
+ isTestnet: false,
213
+ explorer: "https://optimistic.etherscan.io",
214
+ website: "https://optimism.io",
215
+ nativeCurrency: {
216
+ name: "Ether",
217
+ symbol: "ETH",
218
+ decimals: 18
219
+ },
220
+ apiSupport: { tokens: true, nft: true, transactions: true },
221
+ signSupport: { legacy: true, eip1559: true }
222
+ },
223
+ // Optimism Sepolia
224
+ 420: {
225
+ chainId: 420,
226
+ network: "optimism_sepolia",
227
+ name: "Optimism Sepolia",
228
+ type: "EVM" /* EVM */,
229
+ isTestnet: true,
230
+ explorer: "https://sepolia-optimism.etherscan.io",
231
+ website: "https://optimism.io",
232
+ nativeCurrency: {
233
+ name: "Ether",
234
+ symbol: "ETH",
235
+ decimals: 18
236
+ },
237
+ apiSupport: { tokens: true, nft: true, transactions: true },
238
+ signSupport: { legacy: true, eip1559: true }
239
+ },
240
+ // Avalanche C-Chain
241
+ 43114: {
242
+ chainId: 43114,
243
+ network: "avalanche",
244
+ name: "Avalanche C-Chain",
245
+ type: "EVM" /* EVM */,
246
+ isTestnet: false,
247
+ explorer: "https://avascan.info/blockchain/c/home",
248
+ website: "https://avax.network",
249
+ nativeCurrency: {
250
+ name: "Avalanche",
251
+ symbol: "AVAX",
252
+ decimals: 18
253
+ },
254
+ apiSupport: { tokens: true, nft: true, transactions: true },
255
+ signSupport: { legacy: true, eip1559: true }
256
+ },
257
+ // Avalanche Fuji Testnet
258
+ 43113: {
259
+ chainId: 43113,
260
+ network: "avalanche_fuji",
261
+ name: "Avalanche Fuji Testnet",
262
+ type: "EVM" /* EVM */,
263
+ isTestnet: true,
264
+ explorer: "https://testnet.avascan.info",
265
+ website: "https://avax.network",
266
+ nativeCurrency: {
267
+ name: "Avalanche",
268
+ symbol: "AVAX",
269
+ decimals: 18
270
+ },
271
+ apiSupport: { tokens: false, nft: false, transactions: false },
272
+ signSupport: { legacy: true, eip1559: true }
273
+ },
274
+ // Mantle Mainnet
275
+ 5e3: {
276
+ chainId: 5e3,
277
+ network: "mantle",
278
+ name: "Mantle Mainnet",
279
+ type: "EVM" /* EVM */,
280
+ isTestnet: false,
281
+ explorer: "https://explorer.mantle.xyz",
282
+ website: "https://www.mantle.xyz",
283
+ nativeCurrency: {
284
+ name: "Mantle",
285
+ symbol: "MNT",
286
+ decimals: 18
287
+ },
288
+ apiSupport: { tokens: true, nft: true, transactions: true },
289
+ signSupport: { legacy: true, eip1559: true }
290
+ },
291
+ // Mantle Testnet
292
+ 5001: {
293
+ chainId: 5001,
294
+ network: "mantle_testnet",
295
+ name: "Mantle Testnet",
296
+ type: "EVM" /* EVM */,
297
+ isTestnet: true,
298
+ explorer: "https://sepolia.mantlescan.xyz",
299
+ website: "https://www.mantle.xyz",
300
+ nativeCurrency: {
301
+ name: "Mantle",
302
+ symbol: "MNT",
303
+ decimals: 18
304
+ },
305
+ apiSupport: { tokens: true, nft: true, transactions: true },
306
+ signSupport: { legacy: true, eip1559: true }
307
+ },
308
+ // Moonbeam
309
+ 1284: {
310
+ chainId: 1284,
311
+ network: "moonbeam",
312
+ name: "Moonbeam",
313
+ type: "EVM" /* EVM */,
314
+ isTestnet: false,
315
+ explorer: "https://moonbeam.moonscan.io",
316
+ website: "https://moonbeam.network",
317
+ nativeCurrency: {
318
+ name: "Glimmer",
319
+ symbol: "GLMR",
320
+ decimals: 18
321
+ },
322
+ apiSupport: { tokens: true, nft: true, transactions: true },
323
+ signSupport: { legacy: true, eip1559: true }
324
+ },
325
+ // Moonriver
326
+ 1285: {
327
+ chainId: 1285,
328
+ network: "moonriver",
329
+ name: "Moonriver",
330
+ type: "EVM" /* EVM */,
331
+ isTestnet: false,
332
+ explorer: "https://moonriver.moonscan.io",
333
+ website: "https://moonbeam.network/networks/moonriver",
334
+ nativeCurrency: {
335
+ name: "Moonriver",
336
+ symbol: "MOVR",
337
+ decimals: 18
338
+ },
339
+ apiSupport: { tokens: true, nft: true, transactions: true },
340
+ signSupport: { legacy: true, eip1559: true }
341
+ },
342
+ // Scroll Mainnet
343
+ 534352: {
344
+ chainId: 534352,
345
+ network: "scroll",
346
+ name: "Scroll",
347
+ type: "EVM" /* EVM */,
348
+ isTestnet: false,
349
+ explorer: "https://scrollscan.co",
350
+ website: "https://scroll.io",
351
+ nativeCurrency: {
352
+ name: "Ether",
353
+ symbol: "ETH",
354
+ decimals: 18
355
+ },
356
+ apiSupport: { tokens: true, nft: true, transactions: true },
357
+ signSupport: { legacy: true, eip1559: true }
358
+ },
359
+ // Scroll Testnet
360
+ 534351: {
361
+ chainId: 534351,
362
+ network: "scroll_testnet",
363
+ name: "Scroll Testnet",
364
+ type: "EVM" /* EVM */,
365
+ isTestnet: true,
366
+ explorer: "https://sepolia.scrollscan.com",
367
+ website: "https://scroll.io",
368
+ nativeCurrency: {
369
+ name: "Ether",
370
+ symbol: "ETH",
371
+ decimals: 18
372
+ },
373
+ apiSupport: { tokens: true, nft: true, transactions: true },
374
+ signSupport: { legacy: true, eip1559: true }
375
+ },
376
+ // Silicon Mainnet
377
+ 2355: {
378
+ chainId: 2355,
379
+ network: "silicon",
380
+ name: "Silicon",
381
+ type: "EVM" /* EVM */,
382
+ isTestnet: false,
383
+ explorer: "https://scope.silicon.network",
384
+ website: "https://silicon.network",
385
+ nativeCurrency: {
386
+ name: "Ether",
387
+ symbol: "ETH",
388
+ decimals: 18
389
+ },
390
+ apiSupport: { tokens: true, nft: true, transactions: true },
391
+ signSupport: { legacy: true, eip1559: true }
392
+ },
393
+ // Silicon Sepolia
394
+ 1722641160: {
395
+ chainId: 1722641160,
396
+ network: "silicon_sepolia",
397
+ name: "Silicon Sepolia",
398
+ type: "EVM" /* EVM */,
399
+ isTestnet: true,
400
+ explorer: "https://scope-sepolia.silicon.network",
401
+ website: "https://silicon.network",
402
+ nativeCurrency: {
403
+ name: "Ether",
404
+ symbol: "ETH",
405
+ decimals: 18
406
+ },
407
+ apiSupport: { tokens: true, nft: true, transactions: true },
408
+ signSupport: { legacy: true, eip1559: true }
409
+ },
410
+ // Six Protocol
411
+ 98: {
412
+ chainId: 98,
413
+ network: "six_evm",
414
+ name: "Six Protocol",
415
+ type: "EVM" /* EVM */,
416
+ isTestnet: false,
417
+ explorer: "https://v2.sixscan.io",
418
+ website: "https://www.six.network",
419
+ nativeCurrency: {
420
+ name: "SIX",
421
+ symbol: "SIX",
422
+ decimals: 18
423
+ },
424
+ apiSupport: { tokens: true, nft: false, transactions: true },
425
+ signSupport: { legacy: true, eip1559: false }
426
+ },
427
+ // Six Protocol Testnet
428
+ 150: {
429
+ chainId: 150,
430
+ network: "six_evm_testnet",
431
+ name: "Six Protocol Testnet",
432
+ type: "EVM" /* EVM */,
433
+ isTestnet: true,
434
+ explorer: "https://v2.fivenet.sixscan.io",
435
+ website: "https://www.six.network",
436
+ nativeCurrency: {
437
+ name: "SIX",
438
+ symbol: "SIX",
439
+ decimals: 18
440
+ },
441
+ apiSupport: { tokens: true, nft: false, transactions: true },
442
+ signSupport: { legacy: true, eip1559: false }
443
+ },
444
+ // Wemix Mainnet
445
+ 1111: {
446
+ chainId: 1111,
447
+ network: "wemix",
448
+ name: "Wemix3.0 Mainnet",
449
+ type: "EVM" /* EVM */,
450
+ isTestnet: false,
451
+ explorer: "https://explorer.wemix.com",
452
+ website: "https://wemix.com",
453
+ nativeCurrency: {
454
+ name: "WEMIX",
455
+ symbol: "WEMIX",
456
+ decimals: 18
457
+ },
458
+ apiSupport: { tokens: true, nft: true, transactions: true },
459
+ signSupport: { legacy: true, eip1559: true }
460
+ },
461
+ // Wemix Testnet
462
+ 1112: {
463
+ chainId: 1112,
464
+ network: "wemix_testnet",
465
+ name: "Wemix3.0 Testnet",
466
+ type: "EVM" /* EVM */,
467
+ isTestnet: true,
468
+ explorer: "https://explorer.test.wemix.com",
469
+ website: "https://wemix.com",
470
+ nativeCurrency: {
471
+ name: "WEMIX",
472
+ symbol: "WEMIX",
473
+ decimals: 18
474
+ },
475
+ apiSupport: { tokens: true, nft: true, transactions: true },
476
+ signSupport: { legacy: true, eip1559: true }
477
+ },
478
+ // Taiko Mainnet
479
+ 167e3: {
480
+ chainId: 167e3,
481
+ network: "taiko",
482
+ name: "Taiko Mainnet",
483
+ type: "EVM" /* EVM */,
484
+ isTestnet: false,
485
+ explorer: "https://taikoscan.io",
486
+ website: "https://taiko.xyz",
487
+ nativeCurrency: {
488
+ name: "Ether",
489
+ symbol: "ETH",
490
+ decimals: 18
491
+ },
492
+ apiSupport: { tokens: true, nft: true, transactions: true },
493
+ signSupport: { legacy: true, eip1559: true }
494
+ },
495
+ // Taiko Hekla Testnet
496
+ 167009: {
497
+ chainId: 167009,
498
+ network: "taiko_hekla",
499
+ name: "Taiko Hekla Testnet",
500
+ type: "EVM" /* EVM */,
501
+ isTestnet: true,
502
+ explorer: "https://hekla.taikoscan.io",
503
+ website: "https://taiko.xyz",
504
+ nativeCurrency: {
505
+ name: "Ether",
506
+ symbol: "ETH",
507
+ decimals: 18
508
+ },
509
+ apiSupport: { tokens: true, nft: true, transactions: true },
510
+ signSupport: { legacy: true, eip1559: true }
511
+ },
512
+ // Base Mainnet
513
+ 8453: {
514
+ chainId: 8453,
515
+ network: "base",
516
+ name: "Base",
517
+ type: "EVM" /* EVM */,
518
+ isTestnet: false,
519
+ explorer: "https://basescan.org",
520
+ website: "https://base.org",
521
+ nativeCurrency: {
522
+ name: "Ether",
523
+ symbol: "ETH",
524
+ decimals: 18
525
+ },
526
+ apiSupport: { tokens: true, nft: true, transactions: true },
527
+ signSupport: { legacy: true, eip1559: true }
528
+ },
529
+ // Base Sepolia Testnet
530
+ 84532: {
531
+ chainId: 84532,
532
+ network: "base_sepolia",
533
+ name: "Base Sepolia",
534
+ type: "EVM" /* EVM */,
535
+ isTestnet: true,
536
+ explorer: "https://sepolia.basescan.org",
537
+ website: "https://base.org",
538
+ nativeCurrency: {
539
+ name: "Ether",
540
+ symbol: "ETH",
541
+ decimals: 18
542
+ },
543
+ apiSupport: { tokens: true, nft: true, transactions: true },
544
+ signSupport: { legacy: true, eip1559: true }
545
+ },
546
+ // ChainBounty Mainnet
547
+ 51828: {
548
+ chainId: 51828,
549
+ network: "chainbounty",
550
+ name: "ChainBounty Mainnet",
551
+ type: "EVM" /* EVM */,
552
+ isTestnet: false,
553
+ explorer: "https://scan.chainbounty.io",
554
+ website: "https://chainbounty.io",
555
+ nativeCurrency: {
556
+ name: "ChainBounty",
557
+ symbol: "CBY",
558
+ decimals: 18
559
+ },
560
+ apiSupport: { tokens: true, nft: true, transactions: true },
561
+ signSupport: { legacy: true, eip1559: true }
562
+ },
563
+ // ChainBounty Testnet
564
+ 56580: {
565
+ chainId: 56580,
566
+ network: "chainbounty_testnet",
567
+ name: "ChainBounty Testnet",
568
+ type: "EVM" /* EVM */,
569
+ isTestnet: true,
570
+ explorer: "https://test.scan.chainbounty.io",
571
+ website: "https://chainbounty.io",
572
+ nativeCurrency: {
573
+ name: "ChainBounty",
574
+ symbol: "CBY",
575
+ decimals: 18
576
+ },
577
+ apiSupport: { tokens: true, nft: true, transactions: true },
578
+ signSupport: { legacy: true, eip1559: true }
579
+ },
580
+ // Aptos Mainnet (Non-EVM)
581
+ aptos: {
582
+ chainId: null,
583
+ network: "aptos",
584
+ name: "Aptos",
585
+ type: "Non-EVM" /* NON_EVM */,
586
+ isTestnet: false,
587
+ explorer: "https://explorer.aptoslabs.com/?network=mainnet",
588
+ website: "https://aptos.dev",
589
+ nativeCurrency: {
590
+ name: "Aptos",
591
+ symbol: "APT",
592
+ decimals: 8
593
+ },
594
+ apiSupport: { tokens: true, nft: true, transactions: true },
595
+ signSupport: { legacy: true, eip1559: false }
596
+ },
597
+ // Aptos Testnet (Non-EVM)
598
+ aptos_testnet: {
599
+ chainId: null,
600
+ network: "aptos_testnet",
601
+ name: "Aptos Testnet",
602
+ type: "Non-EVM" /* NON_EVM */,
603
+ isTestnet: true,
604
+ explorer: "https://explorer.aptoslabs.com/?network=testnet",
605
+ website: "https://aptos.dev",
606
+ nativeCurrency: {
607
+ name: "Aptos",
608
+ symbol: "APT",
609
+ decimals: 8
610
+ },
611
+ apiSupport: { tokens: true, nft: true, transactions: true },
612
+ signSupport: { legacy: true, eip1559: false }
613
+ },
614
+ // Bitcoin Mainnet
615
+ bitcoin: {
616
+ chainId: null,
617
+ network: "bitcoin",
618
+ name: "Bitcoin Mainnet",
619
+ type: "Bitcoin" /* BITCOIN */,
620
+ isTestnet: false,
621
+ explorer: "https://blockstream.info",
622
+ website: "https://bitcoin.org",
623
+ nativeCurrency: {
624
+ name: "Bitcoin",
625
+ symbol: "BTC",
626
+ decimals: 8
627
+ },
628
+ apiSupport: { tokens: true, nft: false, transactions: true },
629
+ signSupport: { legacy: true, eip1559: false }
630
+ },
631
+ // Bitcoin Testnet
632
+ bitcoin_testnet: {
633
+ chainId: null,
634
+ network: "bitcoin_testnet",
635
+ name: "Bitcoin Testnet",
636
+ type: "Bitcoin" /* BITCOIN */,
637
+ isTestnet: true,
638
+ explorer: "https://blockstream.info/testnet",
639
+ website: "https://bitcoin.org",
640
+ nativeCurrency: {
641
+ name: "Bitcoin",
642
+ symbol: "BTC",
643
+ decimals: 8
644
+ },
645
+ apiSupport: { tokens: true, nft: false, transactions: true },
646
+ signSupport: { legacy: true, eip1559: false }
647
+ },
648
+ // Tron Mainnet
649
+ tron: {
650
+ chainId: null,
651
+ network: "tron",
652
+ name: "Tron Mainnet",
653
+ type: "TRX" /* TRON */,
654
+ isTestnet: false,
655
+ explorer: "https://tronscan.org",
656
+ website: "https://tron.network",
657
+ nativeCurrency: {
658
+ name: "Tronix",
659
+ symbol: "TRX",
660
+ decimals: 6
661
+ },
662
+ apiSupport: { tokens: true, nft: true, transactions: true },
663
+ signSupport: { legacy: true, eip1559: true }
664
+ },
665
+ // Tron Nile Testnet
666
+ tron_nile: {
667
+ chainId: null,
668
+ network: "tron_nile",
669
+ name: "Tron Nile Testnet",
670
+ type: "TRX" /* TRON */,
671
+ isTestnet: true,
672
+ explorer: "https://nile.tronscan.org",
673
+ website: "https://tron.network",
674
+ nativeCurrency: {
675
+ name: "Tronix",
676
+ symbol: "TRX",
677
+ decimals: 6
678
+ },
679
+ apiSupport: { tokens: true, nft: true, transactions: true },
680
+ signSupport: { legacy: true, eip1559: true }
681
+ },
682
+ // ICP Mainnet
683
+ icp: {
684
+ chainId: null,
685
+ network: "icp",
686
+ name: "Internet Computer",
687
+ type: "ICP" /* ICP */,
688
+ isTestnet: false,
689
+ explorer: "https://dashboard.internetcomputer.org",
690
+ website: "https://internetcomputer.org",
691
+ nativeCurrency: {
692
+ name: "ICP",
693
+ symbol: "ICP",
694
+ decimals: 8
695
+ },
696
+ apiSupport: { tokens: true, nft: true, transactions: true },
697
+ signSupport: { legacy: true, eip1559: true }
698
+ }
699
+ };
700
+ var NETWORK_BY_PARAM = Object.values(
701
+ NETWORK_CONFIGS
702
+ ).reduce(
703
+ (acc, config) => {
704
+ acc[config.network] = config;
705
+ return acc;
706
+ },
707
+ {}
708
+ );
709
+ function getNetworkName(chainId, fallback = "ethereum") {
710
+ return NETWORK_CONFIGS[chainId]?.network ?? fallback;
711
+ }
712
+ var CHAIN_ID_TO_KEY = {
713
+ // Mainnet
714
+ 1: "ethereum",
715
+ 42161: "arbitrum",
716
+ 8217: "kaia",
717
+ 56: "bsc",
718
+ 8453: "base",
719
+ 137: "polygon",
720
+ 43114: "avalanche",
721
+ 5e3: "mantle",
722
+ 51828: "chainbounty",
723
+ // Testnet
724
+ 11155111: "sepolia",
725
+ 421614: "arbitrumSepolia",
726
+ 1001: "kaiaKairos",
727
+ 97: "bscTestnet",
728
+ 84532: "baseSepolia",
729
+ 80002: "polygonAmoy",
730
+ 43113: "avalancheFuji",
731
+ 5003: "mantleSepolia",
732
+ 56580: "chainbountyTestnet",
733
+ 998: "hyperevmTestnet"
734
+ };
735
+ function getChainKey(chainId) {
736
+ const key = CHAIN_ID_TO_KEY[chainId];
737
+ if (!key) {
738
+ throw new Error(`Unsupported chainId for tx endpoint: ${chainId}`);
739
+ }
740
+ return key;
741
+ }
742
+
743
+ // src/wallets/walletConnectors/abcWallet/abcProvider.ts
25
744
  var EventEmitter = class {
26
745
  constructor() {
27
746
  this.events = /* @__PURE__ */ new Map();
@@ -265,12 +984,10 @@ var AbcEvmProvider = class extends EventEmitter {
265
984
  return this.eth_getTransactionCount(
266
985
  Array.isArray(params) ? params : []
267
986
  );
268
- case "eth_call":
269
- return this.eth_call(params);
270
- case "eth_getBalance":
271
- return this.eth_getBalance(params);
272
987
  case "eth_blockNumber":
988
+ case "eth_call":
273
989
  case "eth_gasPrice":
990
+ case "eth_getBalance":
274
991
  case "eth_getBlockByHash":
275
992
  case "eth_getBlockByNumber":
276
993
  case "eth_getCode":
@@ -393,20 +1110,10 @@ var AbcEvmProvider = class extends EventEmitter {
393
1110
  const hexValue = tx.value || "0x0";
394
1111
  const amountWei = BigInt(hexValue).toString();
395
1112
  const email = this.getRecoveryEmail();
396
- const chainKey = getChainKey(this.chainId);
397
- const showPending = getShowPendingTransaction();
398
- if (showPending) {
399
- showPending({
400
- txHash: "",
401
- network: chainKey,
402
- chain: "evm",
403
- explorerUrl: void 0
404
- });
405
- }
406
1113
  const api = this.getTalkenApiClientOrThrow();
407
1114
  const result = await this.withSigningCredentialRetry(
408
1115
  () => api.evm.sendTransaction({
409
- chainKey,
1116
+ chainKey: getChainKey(this.chainId),
410
1117
  to: tx.to,
411
1118
  amountWei,
412
1119
  pin: pinHash,
@@ -414,20 +1121,9 @@ var AbcEvmProvider = class extends EventEmitter {
414
1121
  gasLimit: tx.gas || tx.gasLimit,
415
1122
  maxFeePerGas: tx.maxFeePerGas,
416
1123
  maxPriorityFeePerGas: tx.maxPriorityFeePerGas,
417
- waitForReceipt: true,
418
1124
  ...email && { email }
419
1125
  })
420
1126
  );
421
- const updateResult = getUpdateTransactionResult();
422
- if (updateResult) {
423
- updateResult({
424
- txHash: result.txHash,
425
- network: chainKey,
426
- chain: "evm",
427
- receipt: result.receipt ?? null,
428
- explorerUrl: getExplorerTxUrl(this.chainId, result.txHash)
429
- });
430
- }
431
1127
  return result.txHash;
432
1128
  }
433
1129
  /**
@@ -758,60 +1454,6 @@ var AbcEvmProvider = class extends EventEmitter {
758
1454
  return "0x5208";
759
1455
  }
760
1456
  }
761
- /**
762
- * Execute read-only eth_call via talken-api
763
- */
764
- async eth_call(params) {
765
- const p = Array.isArray(params) ? params : [];
766
- const tx = p[0];
767
- if (!tx?.to || !tx?.data) {
768
- throw new ProviderRpcError(
769
- ErrorCode.INVALID_PARAMS,
770
- "eth_call requires to and data"
771
- );
772
- }
773
- try {
774
- const api = this.getTalkenApiClientOrThrow();
775
- const response = await api.evm.ethCall({
776
- network: getNetworkName(this.chainId),
777
- to: tx.to,
778
- data: tx.data,
779
- from: tx.from || this.wallet?.address
780
- });
781
- return response?.result ?? response?.data ?? "0x";
782
- } catch (error) {
783
- throw new ProviderRpcError(
784
- ErrorCode.INTERNAL_ERROR,
785
- `eth_call failed: ${error instanceof Error ? error.message : String(error)}`
786
- );
787
- }
788
- }
789
- /**
790
- * Get native balance via talken-api
791
- */
792
- async eth_getBalance(params) {
793
- const p = Array.isArray(params) ? params : [];
794
- const address = p[0] || this.wallet?.address;
795
- if (!address) {
796
- throw new ProviderRpcError(
797
- ErrorCode.INVALID_PARAMS,
798
- "Missing address parameter"
799
- );
800
- }
801
- try {
802
- const api = this.getTalkenApiClientOrThrow();
803
- const response = await api.evm.getBalance(
804
- getNetworkName(this.chainId),
805
- address
806
- );
807
- return response?.balance ?? "0x0";
808
- } catch (error) {
809
- throw new ProviderRpcError(
810
- ErrorCode.INTERNAL_ERROR,
811
- `eth_getBalance failed: ${error instanceof Error ? error.message : String(error)}`
812
- );
813
- }
814
- }
815
1457
  /**
816
1458
  * Check if connected
817
1459
  */