@talken/talkenkit 2.8.4 → 2.8.5

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 (99) hide show
  1. package/dist/{AbcCredentialManager-QM2BNLSR.js → AbcCredentialManager-WZBF3GHF.js} +1 -1
  2. package/dist/{abcWallet-4PXYWHYM.js → abcWallet-EOHU5AIB.js} +2 -2
  3. package/dist/{chunk-PS5CBMY5.js → chunk-CUPPBGFC.js} +13 -6
  4. package/dist/{chunk-ZISAJ7BZ.js → chunk-WGSS57V6.js} +998 -453
  5. package/dist/config/networks.d.ts +12 -0
  6. package/dist/gasless/utils/revokeDelegation.d.ts +4 -3
  7. package/dist/index.js +27 -21
  8. package/dist/utils/amount.d.ts +17 -0
  9. package/dist/wallets/walletConnectors/abcWallet/AbcCredentialManager.js +3 -3
  10. package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +4 -4
  11. package/dist/wallets/walletConnectors/abcWallet/ProviderError.d.ts +7 -0
  12. package/dist/wallets/walletConnectors/abcWallet/StorageService.js +2 -2
  13. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +5 -5
  14. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +13 -4
  15. package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +19 -18
  16. package/dist/wallets/walletConnectors/abcWallet/abcProvider.d.ts +3 -4
  17. package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +9 -6
  18. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +21 -19
  19. package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +3 -3
  20. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.d.ts +1 -1
  21. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +13 -4
  22. package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +20 -19
  23. package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.d.ts +18 -1
  24. package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.js +17 -6
  25. package/dist/wallets/walletConnectors/abcWallet/api/ConfigApi.js +2 -2
  26. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +16 -15
  27. package/dist/wallets/walletConnectors/abcWallet/api/TokenApi.js +2 -2
  28. package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +3 -3
  29. package/dist/wallets/walletConnectors/abcWallet/api/index.js +21 -20
  30. package/dist/wallets/walletConnectors/abcWallet/api/modules/auth.js +3 -3
  31. package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.d.ts +16 -2
  32. package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.js +9 -8
  33. package/dist/wallets/walletConnectors/abcWallet/api/modules/evm.d.ts +19 -3
  34. package/dist/wallets/walletConnectors/abcWallet/api/modules/evm.js +8 -7
  35. package/dist/wallets/walletConnectors/abcWallet/api/modules/executeBodies.d.ts +79 -0
  36. package/dist/wallets/walletConnectors/abcWallet/api/modules/executeBodies.js +32 -0
  37. package/dist/wallets/walletConnectors/abcWallet/api/modules/signBodies.d.ts +4 -1
  38. package/dist/wallets/walletConnectors/abcWallet/api/modules/signBodies.js +6 -2
  39. package/dist/wallets/walletConnectors/abcWallet/api/modules/signingRefresh.d.ts +6 -2
  40. package/dist/wallets/walletConnectors/abcWallet/api/modules/signingRefresh.js +5 -5
  41. package/dist/wallets/walletConnectors/abcWallet/api/modules/solana.d.ts +9 -3
  42. package/dist/wallets/walletConnectors/abcWallet/api/modules/solana.js +5 -4
  43. package/dist/wallets/walletConnectors/abcWallet/api/modules/tron.d.ts +10 -4
  44. package/dist/wallets/walletConnectors/abcWallet/api/modules/tron.js +13 -2
  45. package/dist/wallets/walletConnectors/abcWallet/api/modules/wallet.js +2 -2
  46. package/dist/wallets/walletConnectors/abcWallet/api/modules/walletscan.js +2 -2
  47. package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.d.ts +13 -3
  48. package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.js +13 -2
  49. package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +17 -5
  50. package/dist/wallets/walletConnectors/abcWallet/constants.js +3 -1
  51. package/dist/wallets/walletConnectors/abcWallet/index.js +36 -34
  52. package/dist/wallets/walletConnectors/abcWallet/sendFailure.d.ts +10 -0
  53. package/dist/wallets/walletConnectors/abcWallet/sendFailure.js +7 -0
  54. package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +3 -3
  55. package/dist/wallets/walletConnectors/abcWallet/types/api.types.d.ts +76 -1
  56. package/dist/wallets/walletConnectors/abcWallet/types/config.types.d.ts +4 -0
  57. package/dist/wallets/walletConnectors/abcWallet/types/error.types.d.ts +14 -1
  58. package/dist/wallets/walletConnectors/abcWallet/types/error.types.js +1 -1
  59. package/dist/wallets/walletConnectors/abcWallet/types.js +5 -5
  60. package/dist/wallets/walletConnectors/abcWallet/utils.js +4 -4
  61. package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +5 -5
  62. package/dist/wallets/walletConnectors/{chunk-KX3IFHJQ.js → chunk-2M6E3YXU.js} +28 -16
  63. package/dist/wallets/walletConnectors/{chunk-DPYQH3WE.js → chunk-365TL36N.js} +36 -31
  64. package/dist/wallets/walletConnectors/{chunk-CCUNTMLD.js → chunk-4CKIGJZD.js} +8 -8
  65. package/dist/wallets/walletConnectors/{chunk-XQTK7NGN.js → chunk-5SRSGEZR.js} +2 -2
  66. package/dist/wallets/walletConnectors/{chunk-HFW2XV2R.js → chunk-6MZWQBNQ.js} +28 -7
  67. package/dist/wallets/walletConnectors/chunk-6X2XITQP.js +71 -0
  68. package/dist/wallets/walletConnectors/{chunk-F6EG7H2O.js → chunk-743DKBGG.js} +2 -2
  69. package/dist/wallets/walletConnectors/chunk-DFG3BSSC.js +341 -0
  70. package/dist/wallets/walletConnectors/{chunk-ZTIRW7TR.js → chunk-DKMR2ML5.js} +3 -1
  71. package/dist/wallets/walletConnectors/{chunk-TXB6KXPR.js → chunk-DRL2CDHT.js} +24 -22
  72. package/dist/wallets/walletConnectors/{chunk-HXYOWG5P.js → chunk-EGLT3GPM.js} +1 -1
  73. package/dist/wallets/walletConnectors/{chunk-YECMDMEA.js → chunk-F4JUKZBB.js} +3 -3
  74. package/dist/wallets/walletConnectors/chunk-GAJ4FJTW.js +382 -0
  75. package/dist/wallets/walletConnectors/{chunk-UNLWNVSN.js → chunk-GO6HUJTP.js} +39 -10
  76. package/dist/wallets/walletConnectors/{chunk-5E7TNMON.js → chunk-HMIFFMGK.js} +18 -7
  77. package/dist/wallets/walletConnectors/chunk-M4SNNQU2.js +56 -0
  78. package/dist/wallets/walletConnectors/{chunk-6LPMWYFM.js → chunk-MNGSJBPX.js} +31 -14
  79. package/dist/wallets/walletConnectors/{chunk-6HR6CEOY.js → chunk-OMZSFUVN.js} +1 -1
  80. package/dist/wallets/walletConnectors/{chunk-75H6DQT6.js → chunk-OTLPTGHO.js} +1 -1
  81. package/dist/wallets/walletConnectors/{chunk-OEZE4GBQ.js → chunk-P64PMEPU.js} +2 -2
  82. package/dist/wallets/walletConnectors/{chunk-F6AHT6K4.js → chunk-PL56SINL.js} +1 -1
  83. package/dist/wallets/walletConnectors/{chunk-YUBS7MJ6.js → chunk-RSR35XOZ.js} +47 -12
  84. package/dist/wallets/walletConnectors/{chunk-5SHN7JNR.js → chunk-SORKIBWX.js} +1 -1
  85. package/dist/wallets/walletConnectors/{chunk-CIAVEXOY.js → chunk-SUPFF4EQ.js} +37 -811
  86. package/dist/wallets/walletConnectors/{chunk-BUAWEYGV.js → chunk-TP4BDK7W.js} +5 -1
  87. package/dist/wallets/walletConnectors/{chunk-FWKMNVWU.js → chunk-TRFREYPH.js} +1 -1
  88. package/dist/wallets/walletConnectors/{chunk-RQYBKCWA.js → chunk-UHVJ6AF6.js} +1 -1
  89. package/dist/wallets/walletConnectors/{chunk-ZITVWA4X.js → chunk-V6R6WDOQ.js} +1 -1
  90. package/dist/wallets/walletConnectors/chunk-XGQUYXTL.js +1215 -0
  91. package/dist/wallets/walletConnectors/{chunk-7GBAUSQJ.js → chunk-XPZCOEQL.js} +13 -6
  92. package/dist/wallets/walletConnectors/{chunk-QTBJ6WNZ.js → chunk-YPMD3ZHF.js} +33 -18
  93. package/dist/wallets/walletConnectors/chunk-Z66ETAKN.js +20 -0
  94. package/dist/wallets/walletConnectors/{chunk-HMMEOZDT.js → chunk-ZBI7MSWF.js} +5 -5
  95. package/dist/wallets/walletConnectors/chunk-ZWIAZOVB.js +58 -0
  96. package/dist/wallets/walletConnectors/index.js +51 -50
  97. package/package.json +1 -1
  98. package/dist/wallets/walletConnectors/chunk-6BHMNR5X.js +0 -46
  99. package/dist/wallets/walletConnectors/chunk-FLBJ7T4Q.js +0 -44
@@ -2,9 +2,18 @@
2
2
  import {
3
3
  resolveEvmSignType
4
4
  } from "./chunk-OESFVVLA.js";
5
+ import {
6
+ isSigningCredentialError
7
+ } from "./chunk-M4SNNQU2.js";
8
+ import {
9
+ getChainKey,
10
+ getExplorerTxUrl,
11
+ getNetworkName,
12
+ toBroadcastBody
13
+ } from "./chunk-XGQUYXTL.js";
5
14
  import {
6
15
  getCredentialManager
7
- } from "./chunk-5SHN7JNR.js";
16
+ } from "./chunk-SORKIBWX.js";
8
17
  import {
9
18
  AbstractChainProvider
10
19
  } from "./chunk-3DHUDD4U.js";
@@ -21,790 +30,15 @@ import {
21
30
  import {
22
31
  hexToNumber,
23
32
  numberToHex
24
- } from "./chunk-YECMDMEA.js";
25
- import {
26
- TalkenApiError
27
- } from "./chunk-BUAWEYGV.js";
33
+ } from "./chunk-F4JUKZBB.js";
28
34
  import {
35
+ SEND_REQUEST_TIMEOUT,
29
36
  TALKEN_API_ENDPOINTS
30
- } from "./chunk-7GBAUSQJ.js";
37
+ } from "./chunk-XPZCOEQL.js";
31
38
 
32
39
  // src/wallets/walletConnectors/abcWallet/abcProvider.ts
33
40
  import { parseGwei } from "viem";
34
41
 
35
- // src/config/networks.ts
36
- var NETWORK_CONFIGS = {
37
- // Ethereum Mainnet
38
- 1: {
39
- chainId: 1,
40
- network: "ethereum",
41
- name: "Ethereum",
42
- type: "EVM" /* EVM */,
43
- isTestnet: false,
44
- explorer: "https://etherscan.io",
45
- website: "https://ethereum.org",
46
- nativeCurrency: {
47
- name: "Ether",
48
- symbol: "ETH",
49
- decimals: 18
50
- },
51
- apiSupport: { tokens: true, nft: true, transactions: true },
52
- signSupport: { legacy: true, eip1559: true }
53
- },
54
- // Ethereum Sepolia Testnet
55
- 11155111: {
56
- chainId: 11155111,
57
- network: "ethereum_sepolia",
58
- name: "Ethereum Sepolia",
59
- type: "EVM" /* EVM */,
60
- isTestnet: true,
61
- explorer: "https://sepolia.etherscan.io",
62
- website: "https://ethereum.org",
63
- nativeCurrency: {
64
- name: "Sepolia Ether",
65
- symbol: "ETH",
66
- decimals: 18
67
- },
68
- apiSupport: { tokens: true, nft: true, transactions: true },
69
- signSupport: { legacy: true, eip1559: true }
70
- },
71
- // Ethereum Holesky Testnet
72
- 17e3: {
73
- chainId: 17e3,
74
- network: "ethereum_holesky",
75
- name: "Ethereum Holesky",
76
- type: "EVM" /* EVM */,
77
- isTestnet: true,
78
- explorer: "https://holesky.etherscan.io",
79
- website: "https://ethereum.org",
80
- nativeCurrency: {
81
- name: "Holesky Ether",
82
- symbol: "ETH",
83
- decimals: 18
84
- },
85
- apiSupport: { tokens: true, nft: true, transactions: true },
86
- signSupport: { legacy: true, eip1559: true }
87
- },
88
- // Kaia Mainnet (formerly Klaytn)
89
- 8217: {
90
- chainId: 8217,
91
- network: "kaia",
92
- name: "Kaia Mainnet",
93
- type: "EVM" /* EVM */,
94
- isTestnet: false,
95
- explorer: "https://kaiascan.io",
96
- website: "https://kaia.io",
97
- nativeCurrency: {
98
- name: "Kaia",
99
- symbol: "KAIA",
100
- decimals: 18
101
- },
102
- apiSupport: { tokens: true, nft: true, transactions: true },
103
- signSupport: { legacy: true, eip1559: true }
104
- },
105
- // Kaia Kairos Testnet
106
- 1001: {
107
- chainId: 1001,
108
- network: "kaia_kairos",
109
- name: "Kaia Kairos Testnet",
110
- type: "EVM" /* EVM */,
111
- isTestnet: true,
112
- explorer: "https://kairos.kaiascan.io",
113
- website: "https://kaia.io",
114
- nativeCurrency: {
115
- name: "Kaia",
116
- symbol: "KAIA",
117
- decimals: 18
118
- },
119
- apiSupport: { tokens: true, nft: true, transactions: true },
120
- signSupport: { legacy: true, eip1559: true }
121
- },
122
- // Polygon Mainnet
123
- 137: {
124
- chainId: 137,
125
- network: "polygon",
126
- name: "Polygon",
127
- type: "EVM" /* EVM */,
128
- isTestnet: false,
129
- explorer: "https://polygonscan.com",
130
- website: "https://polygon.technology",
131
- nativeCurrency: {
132
- name: "MATIC",
133
- symbol: "MATIC",
134
- decimals: 18
135
- },
136
- apiSupport: { tokens: true, nft: true, transactions: true },
137
- signSupport: { legacy: true, eip1559: true }
138
- },
139
- // Polygon Amoy Testnet
140
- 80002: {
141
- chainId: 80002,
142
- network: "polygon_amoy",
143
- name: "Polygon Amoy Testnet",
144
- type: "EVM" /* EVM */,
145
- isTestnet: true,
146
- explorer: "https://amoy.polygonscan.com",
147
- website: "https://polygon.technology",
148
- nativeCurrency: {
149
- name: "MATIC",
150
- symbol: "MATIC",
151
- decimals: 18
152
- },
153
- apiSupport: { tokens: true, nft: true, transactions: true },
154
- signSupport: { legacy: true, eip1559: true }
155
- },
156
- // Binance Smart Chain Mainnet
157
- 56: {
158
- chainId: 56,
159
- network: "binance",
160
- name: "Binance Smart Chain Mainnet",
161
- type: "EVM" /* EVM */,
162
- isTestnet: false,
163
- explorer: "https://bscscan.com",
164
- website: "https://www.bnbchain.org/en/bnb-smart-chain",
165
- nativeCurrency: {
166
- name: "BNB",
167
- symbol: "BNB",
168
- decimals: 18
169
- },
170
- apiSupport: { tokens: true, nft: true, transactions: true },
171
- signSupport: { legacy: true, eip1559: true }
172
- },
173
- // Binance Smart Chain Testnet
174
- 97: {
175
- chainId: 97,
176
- network: "binance_testnet",
177
- name: "Binance Smart Chain Testnet",
178
- type: "EVM" /* EVM */,
179
- isTestnet: true,
180
- explorer: "https://testnet.bscscan.com",
181
- website: "https://www.bnbchain.org/en/bnb-smart-chain",
182
- nativeCurrency: {
183
- name: "BNB",
184
- symbol: "BNB",
185
- decimals: 18
186
- },
187
- apiSupport: { tokens: true, nft: true, transactions: true },
188
- signSupport: { legacy: true, eip1559: true }
189
- },
190
- // Arbitrum One
191
- 42161: {
192
- chainId: 42161,
193
- network: "arbitrum",
194
- name: "Arbitrum One",
195
- type: "EVM" /* EVM */,
196
- isTestnet: false,
197
- explorer: "https://arbiscan.io",
198
- website: "https://arbitrum.io",
199
- nativeCurrency: {
200
- name: "Ether",
201
- symbol: "ETH",
202
- decimals: 18
203
- },
204
- apiSupport: { tokens: true, nft: true, transactions: true },
205
- signSupport: { legacy: true, eip1559: true }
206
- },
207
- // Arbitrum Sepolia
208
- 421614: {
209
- chainId: 421614,
210
- network: "arbitrum_sepolia",
211
- name: "Arbitrum Sepolia",
212
- type: "EVM" /* EVM */,
213
- isTestnet: true,
214
- explorer: "https://sepolia.arbiscan.io",
215
- website: "https://arbitrum.io",
216
- nativeCurrency: {
217
- name: "Ether",
218
- symbol: "ETH",
219
- decimals: 18
220
- },
221
- apiSupport: { tokens: true, nft: true, transactions: true },
222
- signSupport: { legacy: true, eip1559: true }
223
- },
224
- // Optimism Mainnet
225
- 10: {
226
- chainId: 10,
227
- network: "optimism",
228
- name: "Optimism",
229
- type: "EVM" /* EVM */,
230
- isTestnet: false,
231
- explorer: "https://optimistic.etherscan.io",
232
- website: "https://optimism.io",
233
- nativeCurrency: {
234
- name: "Ether",
235
- symbol: "ETH",
236
- decimals: 18
237
- },
238
- apiSupport: { tokens: true, nft: true, transactions: true },
239
- signSupport: { legacy: true, eip1559: true }
240
- },
241
- // Optimism Sepolia
242
- 420: {
243
- chainId: 420,
244
- network: "optimism_sepolia",
245
- name: "Optimism Sepolia",
246
- type: "EVM" /* EVM */,
247
- isTestnet: true,
248
- explorer: "https://sepolia-optimism.etherscan.io",
249
- website: "https://optimism.io",
250
- nativeCurrency: {
251
- name: "Ether",
252
- symbol: "ETH",
253
- decimals: 18
254
- },
255
- apiSupport: { tokens: true, nft: true, transactions: true },
256
- signSupport: { legacy: true, eip1559: true }
257
- },
258
- // Avalanche C-Chain
259
- 43114: {
260
- chainId: 43114,
261
- network: "avalanche",
262
- name: "Avalanche C-Chain",
263
- type: "EVM" /* EVM */,
264
- isTestnet: false,
265
- explorer: "https://avascan.info/blockchain/c/home",
266
- website: "https://avax.network",
267
- nativeCurrency: {
268
- name: "Avalanche",
269
- symbol: "AVAX",
270
- decimals: 18
271
- },
272
- apiSupport: { tokens: true, nft: true, transactions: true },
273
- signSupport: { legacy: true, eip1559: true }
274
- },
275
- // Avalanche Fuji Testnet
276
- 43113: {
277
- chainId: 43113,
278
- network: "avalanche_fuji",
279
- name: "Avalanche Fuji Testnet",
280
- type: "EVM" /* EVM */,
281
- isTestnet: true,
282
- explorer: "https://testnet.avascan.info",
283
- website: "https://avax.network",
284
- nativeCurrency: {
285
- name: "Avalanche",
286
- symbol: "AVAX",
287
- decimals: 18
288
- },
289
- apiSupport: { tokens: false, nft: false, transactions: false },
290
- signSupport: { legacy: true, eip1559: true }
291
- },
292
- // Mantle Mainnet
293
- 5e3: {
294
- chainId: 5e3,
295
- network: "mantle",
296
- name: "Mantle Mainnet",
297
- type: "EVM" /* EVM */,
298
- isTestnet: false,
299
- explorer: "https://explorer.mantle.xyz",
300
- website: "https://www.mantle.xyz",
301
- nativeCurrency: {
302
- name: "Mantle",
303
- symbol: "MNT",
304
- decimals: 18
305
- },
306
- apiSupport: { tokens: true, nft: true, transactions: true },
307
- signSupport: { legacy: true, eip1559: true }
308
- },
309
- // Mantle Testnet
310
- 5001: {
311
- chainId: 5001,
312
- network: "mantle_testnet",
313
- name: "Mantle Testnet",
314
- type: "EVM" /* EVM */,
315
- isTestnet: true,
316
- explorer: "https://sepolia.mantlescan.xyz",
317
- website: "https://www.mantle.xyz",
318
- nativeCurrency: {
319
- name: "Mantle",
320
- symbol: "MNT",
321
- decimals: 18
322
- },
323
- apiSupport: { tokens: true, nft: true, transactions: true },
324
- signSupport: { legacy: true, eip1559: true }
325
- },
326
- // Moonbeam
327
- 1284: {
328
- chainId: 1284,
329
- network: "moonbeam",
330
- name: "Moonbeam",
331
- type: "EVM" /* EVM */,
332
- isTestnet: false,
333
- explorer: "https://moonbeam.moonscan.io",
334
- website: "https://moonbeam.network",
335
- nativeCurrency: {
336
- name: "Glimmer",
337
- symbol: "GLMR",
338
- decimals: 18
339
- },
340
- apiSupport: { tokens: true, nft: true, transactions: true },
341
- signSupport: { legacy: true, eip1559: true }
342
- },
343
- // Moonriver
344
- 1285: {
345
- chainId: 1285,
346
- network: "moonriver",
347
- name: "Moonriver",
348
- type: "EVM" /* EVM */,
349
- isTestnet: false,
350
- explorer: "https://moonriver.moonscan.io",
351
- website: "https://moonbeam.network/networks/moonriver",
352
- nativeCurrency: {
353
- name: "Moonriver",
354
- symbol: "MOVR",
355
- decimals: 18
356
- },
357
- apiSupport: { tokens: true, nft: true, transactions: true },
358
- signSupport: { legacy: true, eip1559: true }
359
- },
360
- // Scroll Mainnet
361
- 534352: {
362
- chainId: 534352,
363
- network: "scroll",
364
- name: "Scroll",
365
- type: "EVM" /* EVM */,
366
- isTestnet: false,
367
- explorer: "https://scrollscan.co",
368
- website: "https://scroll.io",
369
- nativeCurrency: {
370
- name: "Ether",
371
- symbol: "ETH",
372
- decimals: 18
373
- },
374
- apiSupport: { tokens: true, nft: true, transactions: true },
375
- signSupport: { legacy: true, eip1559: true }
376
- },
377
- // Scroll Testnet
378
- 534351: {
379
- chainId: 534351,
380
- network: "scroll_testnet",
381
- name: "Scroll Testnet",
382
- type: "EVM" /* EVM */,
383
- isTestnet: true,
384
- explorer: "https://sepolia.scrollscan.com",
385
- website: "https://scroll.io",
386
- nativeCurrency: {
387
- name: "Ether",
388
- symbol: "ETH",
389
- decimals: 18
390
- },
391
- apiSupport: { tokens: true, nft: true, transactions: true },
392
- signSupport: { legacy: true, eip1559: true }
393
- },
394
- // Silicon Mainnet
395
- 2355: {
396
- chainId: 2355,
397
- network: "silicon",
398
- name: "Silicon",
399
- type: "EVM" /* EVM */,
400
- isTestnet: false,
401
- explorer: "https://scope.silicon.network",
402
- website: "https://silicon.network",
403
- nativeCurrency: {
404
- name: "Ether",
405
- symbol: "ETH",
406
- decimals: 18
407
- },
408
- apiSupport: { tokens: true, nft: true, transactions: true },
409
- signSupport: { legacy: true, eip1559: true }
410
- },
411
- // Silicon Sepolia
412
- 1722641160: {
413
- chainId: 1722641160,
414
- network: "silicon_sepolia",
415
- name: "Silicon Sepolia",
416
- type: "EVM" /* EVM */,
417
- isTestnet: true,
418
- explorer: "https://scope-sepolia.silicon.network",
419
- website: "https://silicon.network",
420
- nativeCurrency: {
421
- name: "Ether",
422
- symbol: "ETH",
423
- decimals: 18
424
- },
425
- apiSupport: { tokens: true, nft: true, transactions: true },
426
- signSupport: { legacy: true, eip1559: true }
427
- },
428
- // Six Protocol
429
- 98: {
430
- chainId: 98,
431
- network: "six_evm",
432
- name: "Six Protocol",
433
- type: "EVM" /* EVM */,
434
- isTestnet: false,
435
- explorer: "https://v2.sixscan.io",
436
- website: "https://www.six.network",
437
- nativeCurrency: {
438
- name: "SIX",
439
- symbol: "SIX",
440
- decimals: 18
441
- },
442
- apiSupport: { tokens: true, nft: false, transactions: true },
443
- signSupport: { legacy: true, eip1559: false }
444
- },
445
- // Six Protocol Testnet
446
- 150: {
447
- chainId: 150,
448
- network: "six_evm_testnet",
449
- name: "Six Protocol Testnet",
450
- type: "EVM" /* EVM */,
451
- isTestnet: true,
452
- explorer: "https://v2.fivenet.sixscan.io",
453
- website: "https://www.six.network",
454
- nativeCurrency: {
455
- name: "SIX",
456
- symbol: "SIX",
457
- decimals: 18
458
- },
459
- apiSupport: { tokens: true, nft: false, transactions: true },
460
- signSupport: { legacy: true, eip1559: false }
461
- },
462
- // Wemix Mainnet
463
- 1111: {
464
- chainId: 1111,
465
- network: "wemix",
466
- name: "Wemix3.0 Mainnet",
467
- type: "EVM" /* EVM */,
468
- isTestnet: false,
469
- explorer: "https://explorer.wemix.com",
470
- website: "https://wemix.com",
471
- nativeCurrency: {
472
- name: "WEMIX",
473
- symbol: "WEMIX",
474
- decimals: 18
475
- },
476
- apiSupport: { tokens: true, nft: true, transactions: true },
477
- signSupport: { legacy: true, eip1559: true }
478
- },
479
- // Wemix Testnet
480
- 1112: {
481
- chainId: 1112,
482
- network: "wemix_testnet",
483
- name: "Wemix3.0 Testnet",
484
- type: "EVM" /* EVM */,
485
- isTestnet: true,
486
- explorer: "https://explorer.test.wemix.com",
487
- website: "https://wemix.com",
488
- nativeCurrency: {
489
- name: "WEMIX",
490
- symbol: "WEMIX",
491
- decimals: 18
492
- },
493
- apiSupport: { tokens: true, nft: true, transactions: true },
494
- signSupport: { legacy: true, eip1559: true }
495
- },
496
- // Taiko Mainnet
497
- 167e3: {
498
- chainId: 167e3,
499
- network: "taiko",
500
- name: "Taiko Mainnet",
501
- type: "EVM" /* EVM */,
502
- isTestnet: false,
503
- explorer: "https://taikoscan.io",
504
- website: "https://taiko.xyz",
505
- nativeCurrency: {
506
- name: "Ether",
507
- symbol: "ETH",
508
- decimals: 18
509
- },
510
- apiSupport: { tokens: true, nft: true, transactions: true },
511
- signSupport: { legacy: true, eip1559: true }
512
- },
513
- // Taiko Hekla Testnet
514
- 167009: {
515
- chainId: 167009,
516
- network: "taiko_hekla",
517
- name: "Taiko Hekla Testnet",
518
- type: "EVM" /* EVM */,
519
- isTestnet: true,
520
- explorer: "https://hekla.taikoscan.io",
521
- website: "https://taiko.xyz",
522
- nativeCurrency: {
523
- name: "Ether",
524
- symbol: "ETH",
525
- decimals: 18
526
- },
527
- apiSupport: { tokens: true, nft: true, transactions: true },
528
- signSupport: { legacy: true, eip1559: true }
529
- },
530
- // Base Mainnet
531
- 8453: {
532
- chainId: 8453,
533
- network: "base",
534
- name: "Base",
535
- type: "EVM" /* EVM */,
536
- isTestnet: false,
537
- explorer: "https://basescan.org",
538
- website: "https://base.org",
539
- nativeCurrency: {
540
- name: "Ether",
541
- symbol: "ETH",
542
- decimals: 18
543
- },
544
- apiSupport: { tokens: true, nft: true, transactions: true },
545
- signSupport: { legacy: true, eip1559: true }
546
- },
547
- // Base Sepolia Testnet
548
- 84532: {
549
- chainId: 84532,
550
- network: "base_sepolia",
551
- name: "Base Sepolia",
552
- type: "EVM" /* EVM */,
553
- isTestnet: true,
554
- explorer: "https://sepolia.basescan.org",
555
- website: "https://base.org",
556
- nativeCurrency: {
557
- name: "Ether",
558
- symbol: "ETH",
559
- decimals: 18
560
- },
561
- apiSupport: { tokens: true, nft: true, transactions: true },
562
- signSupport: { legacy: true, eip1559: true }
563
- },
564
- // ChainBounty Mainnet
565
- 51828: {
566
- chainId: 51828,
567
- network: "chainbounty",
568
- name: "ChainBounty Mainnet",
569
- type: "EVM" /* EVM */,
570
- isTestnet: false,
571
- explorer: "https://scan.chainbounty.io",
572
- website: "https://chainbounty.io",
573
- nativeCurrency: {
574
- name: "ChainBounty",
575
- symbol: "CBY",
576
- decimals: 18
577
- },
578
- apiSupport: { tokens: true, nft: true, transactions: true },
579
- signSupport: { legacy: true, eip1559: true }
580
- },
581
- // ChainBounty Testnet
582
- 56580: {
583
- chainId: 56580,
584
- network: "chainbounty_testnet",
585
- name: "ChainBounty Testnet",
586
- type: "EVM" /* EVM */,
587
- isTestnet: true,
588
- explorer: "https://test.scan.chainbounty.io",
589
- website: "https://chainbounty.io",
590
- nativeCurrency: {
591
- name: "ChainBounty",
592
- symbol: "CBY",
593
- decimals: 18
594
- },
595
- apiSupport: { tokens: true, nft: true, transactions: true },
596
- signSupport: { legacy: true, eip1559: true }
597
- },
598
- // Aptos Mainnet (Non-EVM)
599
- aptos: {
600
- chainId: null,
601
- network: "aptos",
602
- name: "Aptos",
603
- type: "Non-EVM" /* NON_EVM */,
604
- isTestnet: false,
605
- explorer: "https://explorer.aptoslabs.com/?network=mainnet",
606
- website: "https://aptos.dev",
607
- nativeCurrency: {
608
- name: "Aptos",
609
- symbol: "APT",
610
- decimals: 8
611
- },
612
- apiSupport: { tokens: true, nft: true, transactions: true },
613
- signSupport: { legacy: true, eip1559: false }
614
- },
615
- // Aptos Testnet (Non-EVM)
616
- aptos_testnet: {
617
- chainId: null,
618
- network: "aptos_testnet",
619
- name: "Aptos Testnet",
620
- type: "Non-EVM" /* NON_EVM */,
621
- isTestnet: true,
622
- explorer: "https://explorer.aptoslabs.com/?network=testnet",
623
- website: "https://aptos.dev",
624
- nativeCurrency: {
625
- name: "Aptos",
626
- symbol: "APT",
627
- decimals: 8
628
- },
629
- apiSupport: { tokens: true, nft: true, transactions: true },
630
- signSupport: { legacy: true, eip1559: false }
631
- },
632
- // Bitcoin Mainnet
633
- bitcoin: {
634
- chainId: null,
635
- network: "bitcoin",
636
- name: "Bitcoin Mainnet",
637
- type: "Bitcoin" /* BITCOIN */,
638
- isTestnet: false,
639
- explorer: "https://blockstream.info",
640
- website: "https://bitcoin.org",
641
- nativeCurrency: {
642
- name: "Bitcoin",
643
- symbol: "BTC",
644
- decimals: 8
645
- },
646
- apiSupport: { tokens: true, nft: false, transactions: true },
647
- signSupport: { legacy: true, eip1559: false }
648
- },
649
- // Bitcoin Testnet
650
- bitcoin_testnet: {
651
- chainId: null,
652
- network: "bitcoin_testnet",
653
- name: "Bitcoin Testnet",
654
- type: "Bitcoin" /* BITCOIN */,
655
- isTestnet: true,
656
- explorer: "https://blockstream.info/testnet",
657
- website: "https://bitcoin.org",
658
- nativeCurrency: {
659
- name: "Bitcoin",
660
- symbol: "BTC",
661
- decimals: 8
662
- },
663
- apiSupport: { tokens: true, nft: false, transactions: true },
664
- signSupport: { legacy: true, eip1559: false }
665
- },
666
- // Tron Mainnet
667
- tron: {
668
- chainId: null,
669
- network: "tron",
670
- name: "Tron Mainnet",
671
- type: "TRX" /* TRON */,
672
- isTestnet: false,
673
- explorer: "https://tronscan.org",
674
- website: "https://tron.network",
675
- nativeCurrency: {
676
- name: "Tronix",
677
- symbol: "TRX",
678
- decimals: 6
679
- },
680
- apiSupport: { tokens: true, nft: true, transactions: true },
681
- signSupport: { legacy: true, eip1559: true }
682
- },
683
- // Tron Nile Testnet
684
- tron_nile: {
685
- chainId: null,
686
- network: "tron_nile",
687
- name: "Tron Nile Testnet",
688
- type: "TRX" /* TRON */,
689
- isTestnet: true,
690
- explorer: "https://nile.tronscan.org",
691
- website: "https://tron.network",
692
- nativeCurrency: {
693
- name: "Tronix",
694
- symbol: "TRX",
695
- decimals: 6
696
- },
697
- apiSupport: { tokens: true, nft: true, transactions: true },
698
- signSupport: { legacy: true, eip1559: true }
699
- },
700
- // ICP Mainnet
701
- icp: {
702
- chainId: null,
703
- network: "icp",
704
- name: "Internet Computer",
705
- type: "ICP" /* ICP */,
706
- isTestnet: false,
707
- explorer: "https://dashboard.internetcomputer.org",
708
- website: "https://internetcomputer.org",
709
- nativeCurrency: {
710
- name: "ICP",
711
- symbol: "ICP",
712
- decimals: 8
713
- },
714
- apiSupport: { tokens: true, nft: true, transactions: true },
715
- signSupport: { legacy: true, eip1559: true }
716
- },
717
- // XRP
718
- xrpl: {
719
- chainId: null,
720
- network: "xrpl",
721
- name: "XRP",
722
- type: "XRPL" /* XRPL */,
723
- isTestnet: false,
724
- explorer: "https://xrpscan.com",
725
- website: "https://xrpl.org",
726
- nativeCurrency: {
727
- name: "XRP",
728
- symbol: "XRP",
729
- decimals: 6
730
- },
731
- apiSupport: { tokens: true, nft: true, transactions: true },
732
- signSupport: { legacy: true, eip1559: false }
733
- },
734
- // XRP Testnet
735
- xrpl_testnet: {
736
- chainId: null,
737
- network: "xrpl_testnet",
738
- name: "XRP Testnet",
739
- type: "XRPL" /* XRPL */,
740
- isTestnet: true,
741
- explorer: "https://testnet.xrpscan.com",
742
- website: "https://xrpl.org",
743
- nativeCurrency: {
744
- name: "XRP",
745
- symbol: "XRP",
746
- decimals: 6
747
- },
748
- apiSupport: { tokens: true, nft: true, transactions: true },
749
- signSupport: { legacy: true, eip1559: false }
750
- }
751
- };
752
- var NETWORK_BY_PARAM = Object.values(
753
- NETWORK_CONFIGS
754
- ).reduce(
755
- (acc, config) => {
756
- acc[config.network] = config;
757
- return acc;
758
- },
759
- {}
760
- );
761
- function getNetworkByChainId(chainId) {
762
- return NETWORK_CONFIGS[chainId];
763
- }
764
- function getNetworkByParam(network) {
765
- return NETWORK_BY_PARAM[network];
766
- }
767
- function getNetworkName(chainId, fallback = "ethereum") {
768
- return NETWORK_CONFIGS[chainId]?.network ?? fallback;
769
- }
770
- var CHAIN_ID_TO_KEY = {
771
- // Mainnet
772
- 1: "ethereum",
773
- 42161: "arbitrum",
774
- 8217: "kaia",
775
- 56: "bsc",
776
- 8453: "base",
777
- 137: "polygon",
778
- 43114: "avalanche",
779
- 5e3: "mantle",
780
- 51828: "chainbounty",
781
- // Testnet
782
- 11155111: "sepolia",
783
- 421614: "arbitrumSepolia",
784
- 1001: "kaiaKairos",
785
- 97: "bscTestnet",
786
- 84532: "baseSepolia",
787
- 80002: "polygonAmoy",
788
- 43113: "avalancheFuji",
789
- 5003: "mantleSepolia",
790
- 56580: "chainbountyTestnet",
791
- 998: "hyperevmTestnet"
792
- };
793
- function getChainKey(chainId) {
794
- const key = CHAIN_ID_TO_KEY[chainId];
795
- if (!key) {
796
- throw new Error(`Unsupported chainId for tx endpoint: ${chainId}`);
797
- }
798
- return key;
799
- }
800
- function getExplorerTxUrl(chainIdOrNetwork, txHash) {
801
- const config = typeof chainIdOrNetwork === "number" ? getNetworkByChainId(chainIdOrNetwork) : getNetworkByParam(chainIdOrNetwork);
802
- if (!config) {
803
- throw new Error(`Unknown network: ${chainIdOrNetwork}`);
804
- }
805
- return `${config.explorer}/tx/${txHash}`;
806
- }
807
-
808
42
  // src/gasless/GaslessConfigSingleton.ts
809
43
  var _gaslessConfig = null;
810
44
  function getGaslessConfig() {
@@ -1356,7 +590,7 @@ async function recoverYParity(hash, r, s, expectedAddress) {
1356
590
  }
1357
591
  throw new Error("Failed to recover yParity from tx signature");
1358
592
  }
1359
- async function sendRevokeTx(userAddress, _chainKey, chainId) {
593
+ async function sendRevokeTx(userAddress, chainKey, chainId) {
1360
594
  const api = getTalkenApiClient();
1361
595
  if (!api)
1362
596
  throw new Error("TalkenApiClient not initialized");
@@ -1464,17 +698,12 @@ async function sendRevokeTx(userAddress, _chainKey, chainId) {
1464
698
  );
1465
699
  const signedFields = [...unsignedFields, txYParity ? "0x01" : "0x", txR, txS];
1466
700
  const signedTx = `0x04${toRlp(signedFields).slice(2)}`;
1467
- const result = await api.post(
1468
- "/wallet/tx/raw",
1469
- {
1470
- chain: "evm",
1471
- network,
1472
- signedSerializeTx: signedTx,
1473
- waitForConfirmation: true
1474
- }
701
+ const { txHash } = await api.post(
702
+ TALKEN_API_ENDPOINTS.EXECUTE_BROADCAST,
703
+ toBroadcastBody(chainKey, signedTx),
704
+ { timeout: SEND_REQUEST_TIMEOUT }
1475
705
  );
1476
- const txHash = result?.txHash ?? result?.hash ?? keccak256(signedTx);
1477
- console.log(`[RevokeDelegation] Revoke tx confirmed: ${txHash}`);
706
+ console.log(`[RevokeDelegation] Revoke tx broadcast: ${txHash}`);
1478
707
  return { txHash };
1479
708
  }
1480
709
  async function sendRevokeViaWalletClient(walletClient, chainId, userAddress) {
@@ -2276,7 +1505,7 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2276
1505
  * a wallet.generate() call (idempotent create/recover) to repopulate.
2277
1506
  */
2278
1507
  isSigningCredentialError(error) {
2279
- return error instanceof TalkenApiError && error.statusCode === 502 && error.message.includes("Missing required wallet fields");
1508
+ return isSigningCredentialError(error);
2280
1509
  }
2281
1510
  /**
2282
1511
  * Refresh server-side signing credentials.
@@ -2285,9 +1514,8 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2285
1514
  * 1. PIN hash in memory → wallet.generate() to repopulate server cache
2286
1515
  * 2. Neither available → throw UNAUTHORIZED
2287
1516
  *
2288
- * Note: sessionStorage-cached credentials (evmCreds) are automatically
2289
- * attached to every signing request by TalkenApiClient, so the server
2290
- * can use them as fallback without a separate refresh call.
1517
+ * Note: the /sign/* and /execute/* routes do not accept cached `evmCreds`,
1518
+ * so this refresh is the only recovery from a cold server credential cache.
2291
1519
  */
2292
1520
  async refreshSigningCredentials() {
2293
1521
  const credMgr = getCredentialManager();
@@ -2549,23 +1777,21 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2549
1777
  const amountWei = BigInt(hexValue).toString();
2550
1778
  try {
2551
1779
  const gasLimit = tx.gas || tx.gasLimit;
2552
- const result = await this.withSigningCredentialRetry(
2553
- () => api.evm.sendTransaction({
2554
- chainKey,
2555
- to: tx.to,
2556
- amountWei,
2557
- pin: pinHash,
2558
- data: tx.data || "0x",
2559
- waitForReceipt: true,
2560
- ...gasLimit && { gasLimit },
2561
- ...tx.gasPrice && { gasPrice: tx.gasPrice },
2562
- ...tx.maxFeePerGas && { maxFeePerGas: tx.maxFeePerGas },
2563
- ...tx.maxPriorityFeePerGas && {
2564
- maxPriorityFeePerGas: tx.maxPriorityFeePerGas
2565
- },
2566
- ...email && { email }
2567
- })
2568
- );
1780
+ const result = await api.evm.sendTransaction({
1781
+ chainKey,
1782
+ to: tx.to,
1783
+ amountWei,
1784
+ pin: pinHash,
1785
+ data: tx.data || "0x",
1786
+ waitForReceipt: true,
1787
+ ...gasLimit && { gasLimit },
1788
+ ...tx.gasPrice && { gasPrice: tx.gasPrice },
1789
+ ...tx.maxFeePerGas && { maxFeePerGas: tx.maxFeePerGas },
1790
+ ...tx.maxPriorityFeePerGas && {
1791
+ maxPriorityFeePerGas: tx.maxPriorityFeePerGas
1792
+ },
1793
+ ...email && { email }
1794
+ });
2569
1795
  this.updateTxResult({
2570
1796
  txHash: result.txHash,
2571
1797
  network: chainKey,