@wallfree-dev/evmc 0.13.42

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 (39) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.md +9 -0
  3. package/index.d.ts +1 -0
  4. package/index.js +18 -0
  5. package/index.js.map +1 -0
  6. package/package.json +62 -0
  7. package/v1/block-explorer/EvmcBlockExplorer.d.ts +9 -0
  8. package/v1/block-explorer/EvmcBlockExplorer.js +72 -0
  9. package/v1/block-explorer/EvmcBlockExplorer.js.map +1 -0
  10. package/v1/index.d.ts +1 -0
  11. package/v1/index.js +18 -0
  12. package/v1/index.js.map +1 -0
  13. package/v1/module/EvmcModule.d.ts +21 -0
  14. package/v1/module/EvmcModule.js +138 -0
  15. package/v1/module/EvmcModule.js.map +1 -0
  16. package/v1/module/EvmcOptions.d.ts +2 -0
  17. package/v1/module/EvmcOptions.js +825 -0
  18. package/v1/module/EvmcOptions.js.map +1 -0
  19. package/v1/protocol/EvmcProtocol.d.ts +82 -0
  20. package/v1/protocol/EvmcProtocol.js +877 -0
  21. package/v1/protocol/EvmcProtocol.js.map +1 -0
  22. package/v1/protocol/erc20/ERC20Protocol.d.ts +32 -0
  23. package/v1/protocol/erc20/ERC20Protocol.js +398 -0
  24. package/v1/protocol/erc20/ERC20Protocol.js.map +1 -0
  25. package/v1/protocol/erc20/ERC20Token.d.ts +15 -0
  26. package/v1/protocol/erc20/ERC20Token.js +134 -0
  27. package/v1/protocol/erc20/ERC20Token.js.map +1 -0
  28. package/v1/serializer/v3/schemas/generated/transaction-sign-request-ethereum-typed.json +39 -0
  29. package/v1/serializer/v3/schemas/generated/transaction-sign-request-ethereum.json +56 -0
  30. package/v1/serializer/v3/schemas/generated/transaction-sign-response-ethereum.json +19 -0
  31. package/v1/serializer/v3/serializer-companion.d.ts +16 -0
  32. package/v1/serializer/v3/serializer-companion.js +186 -0
  33. package/v1/serializer/v3/serializer-companion.js.map +1 -0
  34. package/v1/types/options.d.ts +18 -0
  35. package/v1/types/options.js +3 -0
  36. package/v1/types/options.js.map +1 -0
  37. package/v1/types/protocol.d.ts +29 -0
  38. package/v1/types/protocol.js +11 -0
  39. package/v1/types/protocol.js.map +1 -0
@@ -0,0 +1,825 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.evmcOptionsList = void 0;
4
+ var module_kit_1 = require("@wallfree-dev/module-kit");
5
+ exports.evmcOptionsList = [
6
+ // Conflux
7
+ {
8
+ identifier: 'conflux',
9
+ name: 'Conflux',
10
+ network: {
11
+ name: 'Conflux eSpace (Hydra)',
12
+ type: 'mainnet',
13
+ chainId: 1030,
14
+ rpcUrl: 'https://evm.confluxrpc.com',
15
+ blockExplorerUrl: 'https://evm.confluxscan.org',
16
+ blockExplorerApi: 'https://evmapi.confluxscan.org/api'
17
+ },
18
+ units: {
19
+ CFX: {
20
+ symbol: { value: 'CFX', market: 'CFX' },
21
+ decimals: 18
22
+ },
23
+ GDrip: {
24
+ symbol: { value: 'GDrip' },
25
+ decimals: 9
26
+ },
27
+ Drip: {
28
+ symbol: { value: 'Drip' },
29
+ decimals: 0
30
+ }
31
+ },
32
+ mainUnit: 'CFX',
33
+ feeDefaults: {
34
+ low: (0, module_kit_1.newAmount)('210000000000000', 'blockchain'),
35
+ medium: (0, module_kit_1.newAmount)('315000000000000', 'blockchain'),
36
+ high: (0, module_kit_1.newAmount)('840000000000000', 'blockchain'), /* 21000 GAS * 40 GWEI */
37
+ },
38
+ erc20Tokens: [
39
+ {
40
+ identifier: 'conflux-usdt',
41
+ name: 'Tether USD',
42
+ contractAddress: '0xfe97e85d13abd9c1c33384e796f10b73905637ce',
43
+ units: {
44
+ USDT: {
45
+ symbol: { value: 'USDT', market: 'USDT' },
46
+ decimals: 18
47
+ }
48
+ },
49
+ mainUnit: 'USDT'
50
+ },
51
+ {
52
+ identifier: 'conflux-axcnh',
53
+ name: 'AxCNH',
54
+ contractAddress: '0x70bfd7f7eadf9b9827541272589a6b2bb760ae2e',
55
+ units: {
56
+ AxCNH: {
57
+ symbol: { value: 'AxCNH', market: 'AxCNH' },
58
+ decimals: 6
59
+ }
60
+ },
61
+ mainUnit: 'AxCNH'
62
+ }
63
+ ]
64
+ },
65
+ // Base
66
+ {
67
+ identifier: 'base',
68
+ name: 'Base',
69
+ network: {
70
+ name: 'Base Mainnet',
71
+ type: 'mainnet',
72
+ chainId: 8453,
73
+ rpcUrl: 'https://mainnet.base.org',
74
+ blockExplorerUrl: 'https://basescan.org',
75
+ blockExplorerApi: 'https://api.basescan.org/api'
76
+ },
77
+ units: {
78
+ ETH: {
79
+ symbol: { value: 'ETH', market: 'eth' },
80
+ decimals: 18
81
+ },
82
+ Wei: {
83
+ symbol: { value: 'Wei' },
84
+ decimals: 0
85
+ }
86
+ },
87
+ mainUnit: 'ETH',
88
+ feeDefaults: {
89
+ low: (0, module_kit_1.newAmount)('210000000000000', 'blockchain'),
90
+ medium: (0, module_kit_1.newAmount)('315000000000000', 'blockchain'),
91
+ high: (0, module_kit_1.newAmount)('840000000000000', 'blockchain'), /* 21000 GAS * 40 GWei */
92
+ },
93
+ erc20Tokens: [
94
+ {
95
+ identifier: 'base-usdt',
96
+ name: 'USDT',
97
+ contractAddress: '0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2',
98
+ units: {
99
+ USDT: {
100
+ symbol: { value: 'USDT', market: 'USDT' },
101
+ decimals: 6
102
+ }
103
+ },
104
+ mainUnit: 'USDT'
105
+ },
106
+ {
107
+ identifier: 'base-usdc',
108
+ name: 'USDC',
109
+ contractAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913',
110
+ units: {
111
+ USDC: {
112
+ symbol: { value: 'USDC', market: 'USDC' },
113
+ decimals: 6
114
+ }
115
+ },
116
+ mainUnit: 'USDC'
117
+ }
118
+ ]
119
+ },
120
+ // BNB
121
+ {
122
+ identifier: 'bsc',
123
+ name: 'BNB Smart Chain',
124
+ network: {
125
+ name: 'BNB Smart Chain Mainnet',
126
+ type: 'mainnet',
127
+ chainId: 56,
128
+ rpcUrl: 'https://bsc-dataseed.defibit.io',
129
+ blockExplorerUrl: 'https://bscscan.com',
130
+ blockExplorerApi: 'https://api.bscscan.com/api'
131
+ },
132
+ units: {
133
+ BNB: {
134
+ symbol: { value: 'BNB', market: 'bnb' },
135
+ decimals: 18
136
+ },
137
+ Wei: {
138
+ symbol: { value: 'Wei' },
139
+ decimals: 0
140
+ }
141
+ },
142
+ mainUnit: 'BNB',
143
+ feeDefaults: {
144
+ low: (0, module_kit_1.newAmount)('210000000000000', 'blockchain'),
145
+ medium: (0, module_kit_1.newAmount)('315000000000000', 'blockchain'),
146
+ high: (0, module_kit_1.newAmount)('840000000000000', 'blockchain') /* 21000 GAS * 40 Gwei */
147
+ },
148
+ erc20Tokens: [
149
+ {
150
+ identifier: 'bsc-usdt',
151
+ name: 'Tether USD',
152
+ contractAddress: '0xef6d459fe81c3ed53d292c936b2df5a8084975de',
153
+ units: {
154
+ USDT: {
155
+ symbol: { value: 'USDT', market: 'usdt' },
156
+ decimals: 6 // 修正为 BSC USDT 实际小数位
157
+ }
158
+ },
159
+ mainUnit: 'USDT'
160
+ },
161
+ {
162
+ identifier: 'bsc-usdc',
163
+ name: 'USD Coin',
164
+ contractAddress: '0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d',
165
+ units: {
166
+ USDC: {
167
+ symbol: { value: 'USDC', market: 'usdc' },
168
+ decimals: 6
169
+ }
170
+ },
171
+ mainUnit: 'USDC'
172
+ },
173
+ {
174
+ identifier: 'bsc-dai',
175
+ name: 'Dai Stablecoin',
176
+ contractAddress: '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3',
177
+ units: {
178
+ DAI: {
179
+ symbol: { value: 'DAI', market: 'dai' },
180
+ decimals: 6
181
+ }
182
+ },
183
+ mainUnit: 'DAI'
184
+ },
185
+ {
186
+ identifier: 'bsc-eth',
187
+ name: 'Ethereum',
188
+ contractAddress: '0xb31f5d117541825d6692c10e4357008edf3e2bcd',
189
+ units: {
190
+ ETH: {
191
+ symbol: { value: 'ETH', market: 'eth' },
192
+ decimals: 18
193
+ }
194
+ },
195
+ mainUnit: 'ETH'
196
+ }
197
+ ]
198
+ },
199
+ // Arbitrum One
200
+ {
201
+ identifier: 'arbitrum',
202
+ name: 'Arbitrum One',
203
+ network: {
204
+ name: 'Arbitrum One Mainnet',
205
+ type: 'mainnet',
206
+ chainId: 42161,
207
+ rpcUrl: 'https://arbitrum-one-rpc.publicnode.com',
208
+ blockExplorerUrl: 'https://arbiscan.io',
209
+ blockExplorerApi: 'https://api.arbiscan.io/api'
210
+ },
211
+ units: {
212
+ ETH: {
213
+ symbol: { value: 'ETH', market: 'eth' },
214
+ decimals: 18
215
+ }, ARB: {
216
+ symbol: { value: 'ARB', market: 'arb' },
217
+ decimals: 18
218
+ },
219
+ Wei: {
220
+ symbol: { value: 'Wei' },
221
+ decimals: 0
222
+ }
223
+ },
224
+ mainUnit: 'ETH',
225
+ feeDefaults: {
226
+ low: (0, module_kit_1.newAmount)('2100000000000', 'blockchain'),
227
+ medium: (0, module_kit_1.newAmount)('3150000000000', 'blockchain'),
228
+ high: (0, module_kit_1.newAmount)('4200000000000', 'blockchain') /* 21000 GAS * 0.2 Gwei */
229
+ },
230
+ erc20Tokens: [
231
+ {
232
+ identifier: 'arbitrum-eth',
233
+ name: 'Ethereum',
234
+ contractAddress: '0x1cff25b095cf6595afabe35dd7e5348666e57c11',
235
+ units: {
236
+ ETH: {
237
+ symbol: { value: 'ETH', market: 'eth' },
238
+ decimals: 18
239
+ }
240
+ },
241
+ mainUnit: 'ETH'
242
+ },
243
+ {
244
+ identifier: 'arbitrum-arb',
245
+ name: 'Arbitrum',
246
+ contractAddress: '0x912ce59144191c1204e64559fe8253a0e49e6548',
247
+ units: {
248
+ ARB: {
249
+ symbol: { value: 'ARB', market: 'arb' },
250
+ decimals: 18
251
+ }
252
+ },
253
+ mainUnit: 'ARB'
254
+ },
255
+ {
256
+ identifier: 'arbitrum-usdc',
257
+ name: 'USDC',
258
+ contractAddress: '0xaf88d065e77c8cc2239327c5edb3a432268e5831',
259
+ units: {
260
+ USDC: {
261
+ symbol: { value: 'USDC', market: 'usdc' },
262
+ decimals: 6
263
+ }
264
+ },
265
+ mainUnit: 'USDC'
266
+ },
267
+ {
268
+ identifier: 'arbitrum-usdt',
269
+ name: 'Tether USD',
270
+ contractAddress: '0x7f5373AE26c3E8FfC4c77b7255DF7eC1A9aF52a6',
271
+ units: {
272
+ USDT: {
273
+ symbol: { value: 'USDT', market: 'usdt' },
274
+ decimals: 6
275
+ }
276
+ },
277
+ mainUnit: 'USDT'
278
+ },
279
+ {
280
+ identifier: 'arbitrum-dai',
281
+ name: 'Dai Stablecoin',
282
+ contractAddress: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
283
+ units: {
284
+ DAI: {
285
+ symbol: { value: 'DAI', market: 'dai' },
286
+ decimals: 18
287
+ }
288
+ },
289
+ mainUnit: 'DAI'
290
+ }
291
+ ]
292
+ },
293
+ // Polygon
294
+ {
295
+ identifier: 'polygon',
296
+ name: 'Polygon Mainnet',
297
+ network: {
298
+ name: 'Polygon Mainnet',
299
+ type: 'mainnet',
300
+ chainId: 137,
301
+ rpcUrl: 'https://polygon-bor-rpc.publicnode.com',
302
+ blockExplorerUrl: 'https://polygonscan.com',
303
+ blockExplorerApi: 'https://api.polygonscan.com'
304
+ },
305
+ units: {
306
+ MATIC: {
307
+ symbol: { value: 'MATIC', market: 'matic' },
308
+ decimals: 18
309
+ },
310
+ Wei: {
311
+ symbol: { value: 'Wei' },
312
+ decimals: 0
313
+ },
314
+ POL: {
315
+ symbol: { value: 'POL', market: 'pol' },
316
+ decimals: 18
317
+ }
318
+ },
319
+ mainUnit: 'MATIC',
320
+ feeDefaults: {
321
+ low: (0, module_kit_1.newAmount)('210000000000000', 'blockchain'),
322
+ medium: (0, module_kit_1.newAmount)('315000000000000', 'blockchain'),
323
+ high: (0, module_kit_1.newAmount)('420000000000000', 'blockchain')
324
+ },
325
+ erc20Tokens: [
326
+ // USDT
327
+ {
328
+ identifier: 'polygon-usdt',
329
+ name: 'Tether USD',
330
+ contractAddress: '0x9417669fbf23357d2774e9d421307bd5ea1006d2',
331
+ units: {
332
+ USDT: {
333
+ symbol: { value: 'USDT', market: 'usdt' },
334
+ decimals: 6
335
+ }
336
+ },
337
+ mainUnit: 'USDT'
338
+ },
339
+ // USDC
340
+ {
341
+ identifier: 'polygon-usdc',
342
+ name: 'USD Coin',
343
+ contractAddress: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
344
+ units: {
345
+ USDC: {
346
+ symbol: { value: 'USDC', market: 'usdc' },
347
+ decimals: 6
348
+ }
349
+ },
350
+ mainUnit: 'USDC'
351
+ },
352
+ // DAI
353
+ {
354
+ identifier: 'polygon-dai',
355
+ name: 'Dai Stablecoin',
356
+ contractAddress: '0x8619d80fb0141ba7f184cbf22fd724116d9f7ffc',
357
+ units: {
358
+ DAI: {
359
+ symbol: { value: 'DAI', market: 'dai' },
360
+ decimals: 18
361
+ }
362
+ },
363
+ mainUnit: 'DAI'
364
+ },
365
+ // QUICK
366
+ {
367
+ identifier: 'polygon-quick',
368
+ name: 'QuickSwap',
369
+ contractAddress: '0xb424f20a80117472175f03853e2901f6fb0c0016',
370
+ units: {
371
+ QUICK: {
372
+ symbol: { value: 'QUICK', market: 'quick' },
373
+ decimals: 18
374
+ }
375
+ },
376
+ mainUnit: 'QUICK'
377
+ },
378
+ // GHST
379
+ {
380
+ identifier: 'polygon-ghst',
381
+ name: 'Aavegotchi',
382
+ contractAddress: '0xce186f6cccb0c955445bb9d10c59cae488fea559',
383
+ units: {
384
+ GHST: {
385
+ symbol: { value: 'GHST', market: 'ghst' },
386
+ decimals: 18
387
+ }
388
+ },
389
+ mainUnit: 'GHST'
390
+ }
391
+ ]
392
+ },
393
+ // Avalanche
394
+ {
395
+ identifier: 'avalanche',
396
+ name: 'Avalanche C-Chain',
397
+ network: {
398
+ name: 'Avalanche C-Chain Mainnet',
399
+ type: 'mainnet',
400
+ chainId: 43114,
401
+ rpcUrl: 'https://api.avax.network/ext/bc/C/rpc',
402
+ blockExplorerUrl: 'https://snowtrace.io',
403
+ blockExplorerApi: 'https://api.snowtrace.io/api'
404
+ },
405
+ units: {
406
+ AVAX: {
407
+ symbol: { value: 'AVAX', market: 'avax' },
408
+ decimals: 18
409
+ },
410
+ Wei: {
411
+ symbol: { value: 'Wei' },
412
+ decimals: 0
413
+ }
414
+ },
415
+ mainUnit: 'AVAX',
416
+ feeDefaults: {
417
+ low: (0, module_kit_1.newAmount)('525000000000000', 'blockchain'),
418
+ medium: (0, module_kit_1.newAmount)('630000000000000', 'blockchain'),
419
+ high: (0, module_kit_1.newAmount)('735000000000000', 'blockchain')
420
+ },
421
+ erc20Tokens: [
422
+ // USDT
423
+ {
424
+ identifier: 'avalanche-usdt',
425
+ name: 'Tether USD',
426
+ contractAddress: '0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7',
427
+ units: {
428
+ USDT: {
429
+ symbol: { value: 'USDT', market: 'usdt' },
430
+ decimals: 6
431
+ }
432
+ },
433
+ mainUnit: 'USDT'
434
+ },
435
+ // USDC
436
+ {
437
+ identifier: 'avalanche-usdc',
438
+ name: 'USD Coin',
439
+ contractAddress: '0xB24CA28D4e2742907115fECda335b40dbda07a4C',
440
+ units: {
441
+ USDC: {
442
+ symbol: { value: 'USDC', market: 'usdc' },
443
+ decimals: 6
444
+ }
445
+ },
446
+ mainUnit: 'USDC'
447
+ },
448
+ // DAI
449
+ {
450
+ identifier: 'avalanche-dai',
451
+ name: 'Dai Stablecoin',
452
+ contractAddress: '0xE561eDF73d2899822a52179FD3aa74A11dd9eB78',
453
+ units: {
454
+ DAI: {
455
+ symbol: { value: 'DAI', market: 'dai' },
456
+ decimals: 18
457
+ }
458
+ },
459
+ mainUnit: 'DAI'
460
+ },
461
+ // ETH
462
+ {
463
+ identifier: 'avalanche-eth',
464
+ name: 'Ethereum',
465
+ contractAddress: '0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7',
466
+ units: {
467
+ ETH: {
468
+ symbol: { value: 'ETH', market: 'eth' },
469
+ decimals: 18
470
+ }
471
+ },
472
+ mainUnit: 'ETH'
473
+ },
474
+ // JOE
475
+ {
476
+ identifier: 'avalanche-joe',
477
+ name: 'Trader Joe',
478
+ contractAddress: '0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd',
479
+ units: {
480
+ JOE: {
481
+ symbol: { value: 'JOE', market: 'joe' },
482
+ decimals: 18
483
+ }
484
+ },
485
+ mainUnit: 'JOE'
486
+ },
487
+ // QI
488
+ {
489
+ identifier: 'avalanche-qi',
490
+ name: 'BENQI',
491
+ contractAddress: '0x8729438EB15e2C8B576fCc6AeCdA6A148776C0F5',
492
+ units: {
493
+ QI: {
494
+ symbol: { value: 'QI', market: 'qi' },
495
+ decimals: 18
496
+ }
497
+ },
498
+ mainUnit: 'QI'
499
+ }
500
+ ]
501
+ },
502
+ // Aptos
503
+ {
504
+ identifier: 'aptos',
505
+ name: 'Aptos Mainnet',
506
+ network: {
507
+ name: 'Aptos Mainnet',
508
+ type: 'mainnet',
509
+ chainId: 1400,
510
+ rpcUrl: 'https://aptos-rest.publicnode.com',
511
+ blockExplorerUrl: 'https://explorer.aptoslabs.com',
512
+ blockExplorerApi: 'https://api.explorer.aptoslabs.com/v1'
513
+ },
514
+ units: {
515
+ APT: {
516
+ symbol: { value: 'APT', market: 'apt' },
517
+ decimals: 8
518
+ },
519
+ Octa: {
520
+ symbol: { value: 'Octa' },
521
+ decimals: 0
522
+ }
523
+ },
524
+ mainUnit: 'APT',
525
+ feeDefaults: {
526
+ low: (0, module_kit_1.newAmount)('100000000', 'blockchain'),
527
+ medium: (0, module_kit_1.newAmount)('150000000', 'blockchain'),
528
+ high: (0, module_kit_1.newAmount)('200000000', 'blockchain') /* 0.2 APT */
529
+ },
530
+ erc20Tokens: [
531
+ // USDT
532
+ {
533
+ identifier: 'aptos-usdt',
534
+ name: 'Tether USD',
535
+ contractAddress: 'Ox357b0b74bc833e95a115ad22604854d6b0fca151cecd94111770e5d6ffc9dc2b',
536
+ units: {
537
+ USDT: {
538
+ symbol: { value: 'USDT', market: 'usdt' },
539
+ decimals: 6
540
+ }
541
+ },
542
+ mainUnit: 'USDT'
543
+ },
544
+ // USDC
545
+ {
546
+ identifier: 'aptos-usdc',
547
+ name: 'USD Coin',
548
+ contractAddress: '0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b',
549
+ units: {
550
+ USDC: {
551
+ symbol: { value: 'USDC', market: 'usdc' },
552
+ decimals: 6
553
+ }
554
+ },
555
+ mainUnit: 'USDC'
556
+ },
557
+ // THL
558
+ {
559
+ identifier: 'aptos-thl',
560
+ name: 'Thala Token',
561
+ contractAddress: '0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615',
562
+ units: {
563
+ THL: {
564
+ symbol: { value: 'THL', market: 'thl' },
565
+ decimals: 6
566
+ }
567
+ },
568
+ mainUnit: 'THL'
569
+ },
570
+ // AMNIS
571
+ {
572
+ identifier: 'aptos-amnis',
573
+ name: 'Amnis Finance',
574
+ contractAddress: '0xb36527754eb54d7ff55daf13bcb54b42b88ec484bd6f0e3b2e0d1db169de6451',
575
+ units: {
576
+ AMNIS: {
577
+ symbol: { value: 'AMNIS', market: 'amnis' },
578
+ decimals: 8
579
+ }
580
+ },
581
+ mainUnit: 'AMNIS'
582
+ }
583
+ ]
584
+ },
585
+ // plasma
586
+ {
587
+ identifier: 'plasma',
588
+ name: 'Plasma Mainnet',
589
+ network: {
590
+ name: 'Plasma Mainnet',
591
+ type: 'mainnet',
592
+ chainId: 9746,
593
+ rpcUrl: 'https://rpc.plasma.to',
594
+ blockExplorerUrl: 'https://plasmascan.to',
595
+ blockExplorerApi: 'https://plasmascan.to/api'
596
+ },
597
+ units: {
598
+ XPL: {
599
+ symbol: { value: 'XPL', market: 'xpl' },
600
+ decimals: 18
601
+ },
602
+ Wei: {
603
+ symbol: { value: 'Wei' },
604
+ decimals: 0
605
+ }
606
+ },
607
+ mainUnit: 'XPL',
608
+ feeDefaults: {
609
+ low: (0, module_kit_1.newAmount)('210000000000000', 'blockchain'),
610
+ medium: (0, module_kit_1.newAmount)('315000000000000', 'blockchain'),
611
+ high: (0, module_kit_1.newAmount)('420000000000000', 'blockchain')
612
+ },
613
+ erc20Tokens: [
614
+ // USDT
615
+ {
616
+ identifier: 'plasma-usdt',
617
+ name: 'Tether USD',
618
+ contractAddress: '0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb',
619
+ units: {
620
+ USDT: {
621
+ symbol: { value: 'USDT', market: 'usdt' },
622
+ decimals: 6
623
+ }
624
+ },
625
+ mainUnit: 'USDT'
626
+ },
627
+ // ETH
628
+ {
629
+ identifier: 'plasma-eth',
630
+ name: 'Ethereum',
631
+ contractAddress: '0xE2Fc85BfB48C4cF147921fBE110cf92Ef9f26F94',
632
+ units: {
633
+ ETH: {
634
+ symbol: { value: 'ETH', market: 'eth' },
635
+ decimals: 18
636
+ }
637
+ },
638
+ mainUnit: 'ETH'
639
+ },
640
+ ]
641
+ },
642
+ // Sui
643
+ {
644
+ identifier: 'sui',
645
+ name: 'Sui Mainnet',
646
+ network: {
647
+ name: 'Sui Mainnet',
648
+ type: 'mainnet',
649
+ chainId: 101,
650
+ rpcUrl: 'https://sui-rpc.publicnode.com',
651
+ blockExplorerUrl: 'https://suiscan.xyz',
652
+ blockExplorerApi: 'https://api.suiscan.xyz/api'
653
+ },
654
+ units: {
655
+ SUI: {
656
+ symbol: { value: 'SUI', market: 'sui' },
657
+ decimals: 9
658
+ },
659
+ MIST: {
660
+ symbol: { value: 'MIST' },
661
+ decimals: 0
662
+ }
663
+ },
664
+ mainUnit: 'SUI',
665
+ feeDefaults: {
666
+ low: (0, module_kit_1.newAmount)('100000000', 'blockchain'),
667
+ medium: (0, module_kit_1.newAmount)('150000000', 'blockchain'),
668
+ high: (0, module_kit_1.newAmount)('200000000', 'blockchain') /* 0.2 SUI */
669
+ },
670
+ erc20Tokens: [
671
+ {
672
+ identifier: 'Sui',
673
+ name: 'Sui Mainnet',
674
+ contractAddress: '0x2::sui::SUI',
675
+ units: {
676
+ USDC: {
677
+ symbol: { value: 'SUI', market: 'sui' },
678
+ decimals: 9
679
+ }
680
+ },
681
+ mainUnit: 'SUI'
682
+ },
683
+ // USDC
684
+ {
685
+ identifier: 'sui-usdc',
686
+ name: 'USD Coin',
687
+ contractAddress: '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC',
688
+ units: {
689
+ USDC: {
690
+ symbol: { value: 'USDC', market: 'usdc' },
691
+ decimals: 6
692
+ }
693
+ },
694
+ mainUnit: 'USDC'
695
+ },
696
+ // USDT
697
+ {
698
+ identifier: 'sui-usdt',
699
+ name: 'Tether USD',
700
+ contractAddress: '0x375f70cf2ae4c00bf37117d0c85a2c71545e6ee05c4a5c7d282cd66a4504b068::usdt::USDT',
701
+ units: {
702
+ USDT: {
703
+ symbol: { value: 'USDT', market: 'usdt' },
704
+ decimals: 6
705
+ }
706
+ },
707
+ mainUnit: 'USDT'
708
+ },
709
+ // ETH
710
+ {
711
+ identifier: 'sui-eth',
712
+ name: 'Ethereum',
713
+ contractAddress: '0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29::eth::ETH',
714
+ units: {
715
+ ETH: {
716
+ symbol: { value: 'ETH', market: 'eth' },
717
+ decimals: 8
718
+ }
719
+ },
720
+ mainUnit: 'ETH'
721
+ },
722
+ // CETUS
723
+ {
724
+ identifier: 'sui-cetus',
725
+ name: 'Cetus Token',
726
+ contractAddress: '0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS',
727
+ units: {
728
+ CETUS: {
729
+ symbol: { value: 'CETUS', market: 'cetus' },
730
+ decimals: 9
731
+ }
732
+ },
733
+ mainUnit: 'CETUS'
734
+ }
735
+ ]
736
+ },
737
+ // X Layer
738
+ {
739
+ // 顶层标识和名称
740
+ identifier: 'xlayer',
741
+ name: 'X Layer',
742
+ // 网络核心配置
743
+ network: {
744
+ name: 'X Layer Mainnet',
745
+ type: 'mainnet',
746
+ chainId: 196,
747
+ rpcUrl: 'https://okx-xlayer.rpc.blxrbdn.com',
748
+ blockExplorerUrl: 'https://www.oklink.com/zh-hans/x-layer',
749
+ blockExplorerApi: 'https://api.oklink.com/api'
750
+ },
751
+ // 原生单位配置
752
+ units: {
753
+ OKB: {
754
+ symbol: {
755
+ value: 'OKB',
756
+ market: 'okb'
757
+ },
758
+ decimals: 18
759
+ },
760
+ Wei: {
761
+ symbol: {
762
+ value: 'Wei'
763
+ },
764
+ decimals: 0
765
+ }
766
+ },
767
+ // 主单位指定
768
+ mainUnit: 'OKB',
769
+ // 费用默认配置(参考X Layer实际Gas模型调整,基础Gas为21000)
770
+ feeDefaults: {
771
+ low: (0, module_kit_1.newAmount)('210000000000000', 'blockchain'),
772
+ medium: (0, module_kit_1.newAmount)('315000000000000', 'blockchain'),
773
+ high: (0, module_kit_1.newAmount)('840000000000000', 'blockchain') /* 21000 GAS * 40 Gwei */
774
+ },
775
+ // X Layer代币配置(基于OKX浏览器的真实合约地址)
776
+ erc20Tokens: [
777
+ {
778
+ identifier: 'xlayer-usdt',
779
+ name: 'Tether USD',
780
+ contractAddress: '0x7bb66afa2acc91a41d614787cb81218e4d14f451',
781
+ units: {
782
+ USDT: {
783
+ symbol: {
784
+ value: 'USDT',
785
+ market: 'usdt'
786
+ },
787
+ decimals: 6
788
+ }
789
+ },
790
+ mainUnit: 'USDT'
791
+ },
792
+ {
793
+ identifier: 'xlayer-usdc',
794
+ name: 'USD Coin',
795
+ contractAddress: '0x74b7f16337b8972027f6196a17a631ac6de26d22',
796
+ units: {
797
+ USDC: {
798
+ symbol: {
799
+ value: 'USDC',
800
+ market: 'usdc'
801
+ },
802
+ decimals: 6
803
+ }
804
+ },
805
+ mainUnit: 'USDC'
806
+ },
807
+ {
808
+ identifier: 'xlayer-eth',
809
+ name: 'Ethereum',
810
+ contractAddress: '0x44b55a09461266e3365ebfbeb3412754294113f0',
811
+ units: {
812
+ ETH: {
813
+ symbol: {
814
+ value: 'ETH',
815
+ market: 'eth'
816
+ },
817
+ decimals: 18
818
+ }
819
+ },
820
+ mainUnit: 'ETH'
821
+ }
822
+ ]
823
+ },
824
+ ];
825
+ //# sourceMappingURL=EvmcOptions.js.map