@lifi/types 1.4.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/api.js +6 -15
  3. package/dist/apiErrors.js +1 -2
  4. package/dist/base.d.ts +2 -0
  5. package/dist/base.js +8 -9
  6. package/dist/bridges.js +4 -7
  7. package/dist/chains/Chain.js +2 -5
  8. package/dist/chains/EVMChain.js +3 -7
  9. package/dist/chains/SolanaChain.js +1 -2
  10. package/dist/chains/chain.utils.js +10 -20
  11. package/dist/chains/index.js +5 -21
  12. package/dist/chains/supported.chains.js +273 -253
  13. package/dist/cjs/api.d.ts +218 -0
  14. package/dist/cjs/api.js +46 -0
  15. package/dist/cjs/apiErrors.d.ts +9 -0
  16. package/dist/cjs/apiErrors.js +2 -0
  17. package/dist/cjs/base.d.ts +206 -0
  18. package/dist/cjs/base.js +176 -0
  19. package/dist/cjs/bridges.d.ts +34 -0
  20. package/dist/cjs/bridges.js +170 -0
  21. package/dist/cjs/chains/Chain.d.ts +15 -0
  22. package/dist/cjs/chains/Chain.js +8 -0
  23. package/dist/cjs/chains/EVMChain.d.ts +19 -0
  24. package/dist/cjs/chains/EVMChain.js +8 -0
  25. package/dist/cjs/chains/SolanaChain.d.ts +2 -0
  26. package/dist/cjs/chains/SolanaChain.js +2 -0
  27. package/dist/cjs/chains/chain.utils.d.ts +4 -0
  28. package/dist/cjs/chains/chain.utils.js +25 -0
  29. package/dist/cjs/chains/index.d.ts +5 -0
  30. package/dist/cjs/chains/index.js +21 -0
  31. package/dist/cjs/chains/supported.chains.d.ts +5 -0
  32. package/dist/cjs/chains/supported.chains.js +1195 -0
  33. package/dist/cjs/coins.d.ts +9 -0
  34. package/dist/cjs/coins.js +1421 -0
  35. package/dist/cjs/exchanges.d.ts +51 -0
  36. package/dist/cjs/exchanges.js +1047 -0
  37. package/dist/cjs/index.d.ts +8 -0
  38. package/dist/cjs/index.js +24 -0
  39. package/dist/cjs/multicall.d.ts +3 -0
  40. package/dist/cjs/multicall.js +67 -0
  41. package/dist/cjs/step.d.ts +117 -0
  42. package/dist/cjs/step.js +23 -0
  43. package/dist/coins.js +402 -391
  44. package/dist/exchanges.js +210 -214
  45. package/dist/index.js +8 -24
  46. package/dist/multicall.js +44 -41
  47. package/dist/step.d.ts +2 -0
  48. package/dist/step.js +5 -12
  49. package/package.json +26 -3
@@ -0,0 +1,1421 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findTokenByChainIdAndAddress = exports.findWrappedGasOnChain = exports.findDefaultToken = exports.findDefaultCoin = exports.wrappedTokens = exports.defaultCoins = void 0;
4
+ const base_1 = require("./base");
5
+ const basicCoins = [
6
+ // NATIVE COINS
7
+ // > ETH
8
+ {
9
+ key: base_1.CoinKey.ETH,
10
+ name: base_1.CoinKey.ETH,
11
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
12
+ verified: true,
13
+ chains: {
14
+ [base_1.ChainId.ETH]: {
15
+ address: '0x0000000000000000000000000000000000000000',
16
+ decimals: 18,
17
+ },
18
+ [base_1.ChainId.BSC]: {
19
+ address: '0x2170ed0880ac9a755fd29b2688956bd959f933f8',
20
+ decimals: 18,
21
+ },
22
+ [base_1.ChainId.POL]: {
23
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
24
+ decimals: 18,
25
+ },
26
+ [base_1.ChainId.DAI]: {
27
+ address: '0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1',
28
+ decimals: 18,
29
+ symbol: 'WETH',
30
+ name: 'Wrapped Ether on xDai',
31
+ },
32
+ [base_1.ChainId.OPT]: {
33
+ address: '0x0000000000000000000000000000000000000000',
34
+ decimals: 18,
35
+ },
36
+ [base_1.ChainId.ARB]: {
37
+ address: '0x0000000000000000000000000000000000000000',
38
+ decimals: 18,
39
+ },
40
+ [base_1.ChainId.FTM]: {
41
+ address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
42
+ decimals: 18,
43
+ },
44
+ [base_1.ChainId.AVA]: {
45
+ address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
46
+ decimals: 18,
47
+ symbol: 'WETH.e',
48
+ name: 'Wrapped Ether',
49
+ },
50
+ // [ChainId.ARB]: { // WETH
51
+ // address: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',
52
+ // decimals: 18,
53
+ [base_1.ChainId.ONE]: {
54
+ address: '0x6983d1e6def3690c4d616b13597a09e6193ea013',
55
+ decimals: 18,
56
+ },
57
+ [base_1.ChainId.HEC]: {
58
+ address: '0x64ff637fb478863b7468bc97d30a5bf3a428a1fd',
59
+ decimals: 18,
60
+ name: 'Heco-Peg ETH Token',
61
+ },
62
+ [base_1.ChainId.OKT]: {
63
+ address: '0xef71ca2ee68f45b9ad6f72fbdb33d707b872315c',
64
+ decimals: 18,
65
+ symbol: 'ETHK',
66
+ name: 'ETHK',
67
+ },
68
+ [base_1.ChainId.BOB]: {
69
+ address: '0x0000000000000000000000000000000000000000',
70
+ decimals: 18,
71
+ },
72
+ [base_1.ChainId.MOO]: {
73
+ address: '0xfa9343c3897324496a05fc75abed6bac29f8a40f',
74
+ decimals: 18,
75
+ },
76
+ [base_1.ChainId.AUR]: {
77
+ address: '0x0000000000000000000000000000000000000000',
78
+ decimals: 18,
79
+ symbol: 'AETH',
80
+ name: 'AETH',
81
+ },
82
+ // Testnets
83
+ [base_1.ChainId.ROP]: {
84
+ address: '0x0000000000000000000000000000000000000000',
85
+ decimals: 18,
86
+ },
87
+ [base_1.ChainId.RIN]: {
88
+ address: '0x0000000000000000000000000000000000000000',
89
+ decimals: 18,
90
+ },
91
+ [base_1.ChainId.GOR]: {
92
+ address: '0x0000000000000000000000000000000000000000',
93
+ decimals: 18,
94
+ },
95
+ [base_1.ChainId.KOV]: {
96
+ address: '0x0000000000000000000000000000000000000000',
97
+ decimals: 18,
98
+ },
99
+ [base_1.ChainId.ONET]: {
100
+ address: '0x268d6ff391b41b36a13b1693bd25f87fb4e4b392',
101
+ decimals: 18,
102
+ },
103
+ [base_1.ChainId.BSCT]: {
104
+ address: '0xd66c6b4f0be8ce5b39d52e0fd1344c389929b378',
105
+ decimals: 18,
106
+ },
107
+ [base_1.ChainId.OPTT]: {
108
+ address: '0x0000000000000000000000000000000000000000',
109
+ decimals: 18,
110
+ },
111
+ [base_1.ChainId.OPTG]: {
112
+ address: '0x0000000000000000000000000000000000000000',
113
+ decimals: 18,
114
+ },
115
+ [base_1.ChainId.ARBT]: {
116
+ address: '0x0000000000000000000000000000000000000000',
117
+ decimals: 18,
118
+ },
119
+ },
120
+ },
121
+ // > MATIC
122
+ {
123
+ key: base_1.CoinKey.MATIC,
124
+ name: base_1.CoinKey.MATIC,
125
+ logoURI: 'https://etherscan.io/token/images/matictoken_28.png',
126
+ verified: true,
127
+ chains: {
128
+ [base_1.ChainId.ETH]: {
129
+ address: '0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0',
130
+ decimals: 18,
131
+ name: 'Matic Token',
132
+ },
133
+ [base_1.ChainId.BSC]: {
134
+ address: '0xcc42724c6683b7e57334c4e856f4c9965ed682bd',
135
+ decimals: 18,
136
+ name: 'Matic Token',
137
+ },
138
+ [base_1.ChainId.POL]: {
139
+ address: '0x0000000000000000000000000000000000000000',
140
+ decimals: 18,
141
+ },
142
+ [base_1.ChainId.DAI]: {
143
+ address: '0x7122d7661c4564b7c6cd4878b06766489a6028a2',
144
+ decimals: 18,
145
+ name: 'Matic Token on xDai',
146
+ },
147
+ // Testnet
148
+ [base_1.ChainId.MUM]: {
149
+ address: '0x0000000000000000000000000000000000000000',
150
+ decimals: 18,
151
+ },
152
+ },
153
+ },
154
+ // > BNB
155
+ {
156
+ key: base_1.CoinKey.BNB,
157
+ name: base_1.CoinKey.BNB,
158
+ logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615',
159
+ verified: true,
160
+ chains: {
161
+ [base_1.ChainId.ETH]: {
162
+ address: '0xb8c77482e45f1f44de1745f52c74426c631bdd52',
163
+ decimals: 18,
164
+ },
165
+ [base_1.ChainId.BSC]: {
166
+ address: '0x0000000000000000000000000000000000000000',
167
+ decimals: 18,
168
+ },
169
+ [base_1.ChainId.POL]: {
170
+ address: '0xa649325aa7c5093d12d6f98eb4378deae68ce23f',
171
+ decimals: 18,
172
+ },
173
+ [base_1.ChainId.DAI]: {
174
+ address: '0xca8d20f3e0144a72c6b5d576e9bd3fd8557e2b04',
175
+ decimals: 18,
176
+ symbol: 'WBNB',
177
+ name: 'Wrapped BNB on xDai',
178
+ },
179
+ [base_1.ChainId.ONE]: {
180
+ address: '0xb1f6e61e1e113625593a22fa6aa94f8052bc39e0',
181
+ decimals: 18,
182
+ symbol: 'bscBNB',
183
+ },
184
+ [base_1.ChainId.MOO]: {
185
+ address: '0xc9baa8cfdde8e328787e29b4b078abf2dadc2055',
186
+ decimals: 18,
187
+ },
188
+ // Testnet
189
+ [base_1.ChainId.BSCT]: {
190
+ address: '0x0000000000000000000000000000000000000000',
191
+ decimals: 18,
192
+ },
193
+ [base_1.ChainId.ONET]: {
194
+ address: '0xbef55684b382bae72051813a898d17282066c007',
195
+ decimals: 18,
196
+ },
197
+ },
198
+ },
199
+ // > DAI
200
+ {
201
+ key: base_1.CoinKey.DAI,
202
+ name: 'xDai',
203
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png',
204
+ verified: true,
205
+ chains: {
206
+ [base_1.ChainId.ETH]: {
207
+ address: '0x6b175474e89094c44da98b954eedeac495271d0f',
208
+ decimals: 18,
209
+ name: 'Dai Stablecoin',
210
+ },
211
+ [base_1.ChainId.BSC]: {
212
+ address: '0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3',
213
+ decimals: 18,
214
+ name: 'Dai Token',
215
+ },
216
+ [base_1.ChainId.POL]: {
217
+ address: '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
218
+ decimals: 18,
219
+ name: '(PoS) Dai Stablecoin',
220
+ symbol: 'DAI',
221
+ },
222
+ [base_1.ChainId.DAI]: {
223
+ address: '0x0000000000000000000000000000000000000000',
224
+ decimals: 18,
225
+ },
226
+ [base_1.ChainId.OPT]: {
227
+ address: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
228
+ decimals: 18,
229
+ name: 'Dai Stablecoin',
230
+ },
231
+ [base_1.ChainId.FTM]: {
232
+ address: '0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e',
233
+ decimals: 18,
234
+ symbol: 'DAI',
235
+ name: 'Dai Stablecoin',
236
+ },
237
+ [base_1.ChainId.ONE]: {
238
+ address: '0xef977d2f931c1978db5f6747666fa1eacb0d0339',
239
+ decimals: 18,
240
+ symbol: '1DAI',
241
+ name: 'Dai Stablecoin',
242
+ },
243
+ [base_1.ChainId.AVA]: {
244
+ address: '0xd586e7f844cea2f87f50152665bcbc2c279d8d70',
245
+ decimals: 18,
246
+ symbol: 'DAI.e',
247
+ name: 'Dai Stablecoin',
248
+ },
249
+ [base_1.ChainId.ARB]: {
250
+ address: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
251
+ decimals: 18,
252
+ },
253
+ [base_1.ChainId.OKT]: {
254
+ address: '0x21cde7e32a6caf4742d00d44b07279e7596d26b9',
255
+ decimals: 18,
256
+ symbol: 'DAIK',
257
+ name: 'DAIK',
258
+ },
259
+ [base_1.ChainId.CRO]: {
260
+ address: '0xf2001b145b43032aaf5ee2884e456ccd805f677d',
261
+ decimals: 18,
262
+ name: 'Dai Stablecoin',
263
+ },
264
+ [base_1.ChainId.FUS]: {
265
+ address: '0x94ba7a27c7a95863d1bdc7645ac2951e0cca06ba',
266
+ decimals: 18,
267
+ symbol: 'DAI',
268
+ name: 'Dai Stablecoin on Fuse',
269
+ },
270
+ [base_1.ChainId.CEL]: {
271
+ address: '0x90ca507a5d4458a4c6c6249d186b6dcb02a5bccd',
272
+ decimals: 18,
273
+ symbol: 'DAI',
274
+ name: 'Dai Stablecoin',
275
+ },
276
+ [base_1.ChainId.MOO]: {
277
+ address: '0xc234a67a4f840e61ade794be47de455361b52413',
278
+ decimals: 18,
279
+ name: 'Dai Stablecoin',
280
+ },
281
+ [base_1.ChainId.BOB]: {
282
+ address: '0xf74195bb8a5cf652411867c5c2c5b8c2a402be35',
283
+ decimals: 18,
284
+ symbol: 'DAI',
285
+ name: 'Dai Stablecoin',
286
+ },
287
+ [base_1.ChainId.EVM]: {
288
+ address: '0x461d52769884ca6235B685EF2040F47d30C94EB5',
289
+ decimals: 18,
290
+ symbol: 'DAI',
291
+ name: 'Dai Stablecoin',
292
+ },
293
+ // Testnets
294
+ [base_1.ChainId.ROP]: {
295
+ address: '0x31f42841c2db5173425b5223809cf3a38fede360',
296
+ decimals: 18,
297
+ },
298
+ [base_1.ChainId.RIN]: {
299
+ address: '0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea',
300
+ decimals: 18,
301
+ },
302
+ [base_1.ChainId.GOR]: {
303
+ address: '0xdc31ee1784292379fbb2964b3b9c4124d8f89c60',
304
+ decimals: 18,
305
+ },
306
+ [base_1.ChainId.KOV]: {
307
+ address: '0x4f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa',
308
+ decimals: 18,
309
+ },
310
+ [base_1.ChainId.MUM]: {
311
+ address: '0xb224913ce3851b0a0d7c0fb461eef40f2e31ddb8',
312
+ decimals: 18,
313
+ },
314
+ // 42, 0x4f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa, 18
315
+ },
316
+ },
317
+ // > FTM
318
+ {
319
+ key: base_1.CoinKey.FTM,
320
+ name: base_1.CoinKey.FTM,
321
+ logoURI: 'https://assets.spookyswap.finance/tokens/FTM.png',
322
+ verified: true,
323
+ chains: {
324
+ [base_1.ChainId.FTM]: {
325
+ address: '0x0000000000000000000000000000000000000000',
326
+ decimals: 18,
327
+ },
328
+ },
329
+ },
330
+ // > OKT
331
+ {
332
+ key: base_1.CoinKey.OKT,
333
+ name: base_1.CoinKey.OKT,
334
+ logoURI: 'https://static.debank.com/image/okt_token/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png',
335
+ verified: true,
336
+ chains: {
337
+ [base_1.ChainId.OKT]: {
338
+ address: '0x0000000000000000000000000000000000000000',
339
+ decimals: 18,
340
+ },
341
+ },
342
+ },
343
+ // > AVAX
344
+ {
345
+ key: base_1.CoinKey.AVAX,
346
+ name: base_1.CoinKey.AVAX,
347
+ logoURI: 'https://static.debank.com/image/avax_token/logo_url/avax/0b9c84359c84d6bdd5bfda9c2d4c4a82.png',
348
+ verified: true,
349
+ chains: {
350
+ [base_1.ChainId.AVA]: {
351
+ address: '0x0000000000000000000000000000000000000000',
352
+ decimals: 18,
353
+ },
354
+ },
355
+ },
356
+ // > HT
357
+ {
358
+ key: base_1.CoinKey.HT,
359
+ name: base_1.CoinKey.HT,
360
+ logoURI: 'https://static.debank.com/image/heco_token/logo_url/heco/c399dcddde07e1944c4dd8f922832b53.png',
361
+ verified: true,
362
+ chains: {
363
+ [base_1.ChainId.HEC]: {
364
+ address: '0x0000000000000000000000000000000000000000',
365
+ decimals: 18,
366
+ },
367
+ },
368
+ },
369
+ // > ONE
370
+ {
371
+ key: base_1.CoinKey.ONE,
372
+ name: base_1.CoinKey.ONE,
373
+ logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png',
374
+ verified: true,
375
+ chains: {
376
+ [base_1.ChainId.ONE]: {
377
+ address: '0x0000000000000000000000000000000000000000',
378
+ decimals: 18,
379
+ },
380
+ [base_1.ChainId.BSC]: {
381
+ address: '0x03ff0ff224f904be3118461335064bb48df47938',
382
+ decimals: 18,
383
+ name: 'Harmony ONE',
384
+ },
385
+ // Testnet
386
+ [base_1.ChainId.ONET]: {
387
+ address: '0x0000000000000000000000000000000000000000',
388
+ decimals: 18,
389
+ },
390
+ },
391
+ },
392
+ // > FSN
393
+ {
394
+ key: base_1.CoinKey.FSN,
395
+ name: base_1.CoinKey.FSN,
396
+ logoURI: 'https://www.bscscan.com/token/images/anyFSN_32.png',
397
+ verified: true,
398
+ chains: {
399
+ [base_1.ChainId.FSN]: {
400
+ address: '0x0000000000000000000000000000000000000000',
401
+ decimals: 18,
402
+ },
403
+ },
404
+ },
405
+ // > MOVR
406
+ {
407
+ key: base_1.CoinKey.MOVR,
408
+ name: base_1.CoinKey.MOVR,
409
+ logoURI: 'https://assets.coingecko.com/coins/images/17984/small/9285.png',
410
+ verified: true,
411
+ chains: {
412
+ [base_1.ChainId.MOR]: {
413
+ address: '0x0000000000000000000000000000000000000000',
414
+ decimals: 18,
415
+ },
416
+ [base_1.ChainId.MOO]: {
417
+ address: '0x1d4c2a246311bb9f827f4c768e277ff5787b7d7e',
418
+ decimals: 18,
419
+ },
420
+ },
421
+ },
422
+ // OTHER STABLECOINS
423
+ // USDT
424
+ {
425
+ key: base_1.CoinKey.USDT,
426
+ name: base_1.CoinKey.USDT,
427
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',
428
+ verified: true,
429
+ chains: {
430
+ [base_1.ChainId.ETH]: {
431
+ address: '0xdac17f958d2ee523a2206206994597c13d831ec7',
432
+ decimals: 6,
433
+ },
434
+ [base_1.ChainId.BSC]: {
435
+ address: '0x55d398326f99059ff775485246999027b3197955',
436
+ decimals: 18,
437
+ },
438
+ [base_1.ChainId.POL]: {
439
+ address: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
440
+ decimals: 6,
441
+ },
442
+ [base_1.ChainId.DAI]: {
443
+ address: '0x4ecaba5870353805a9f068101a40e0f32ed605c6',
444
+ decimals: 6,
445
+ },
446
+ [base_1.ChainId.OPT]: {
447
+ address: '0x94b008aa00579c1307b0ef2c499ad98a8ce58e58',
448
+ decimals: 6,
449
+ },
450
+ [base_1.ChainId.FTM]: {
451
+ address: '0x049d68029688eabf473097a2fc38ef61633a3c7a',
452
+ decimals: 6,
453
+ },
454
+ [base_1.ChainId.ARB]: {
455
+ address: '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
456
+ decimals: 6,
457
+ },
458
+ [base_1.ChainId.ONE]: {
459
+ address: '0x3c2b8be99c50593081eaa2a724f0b8285f5aba8f',
460
+ decimals: 6,
461
+ },
462
+ [base_1.ChainId.AVA]: {
463
+ address: '0xc7198437980c041c805a1edcba50c1ce5db95118',
464
+ decimals: 6,
465
+ symbol: 'USDT.e',
466
+ name: 'Tether USD',
467
+ },
468
+ [base_1.ChainId.MOR]: {
469
+ address: '0xb44a9b6905af7c801311e8f4e76932ee959c663c',
470
+ decimals: 6,
471
+ },
472
+ [base_1.ChainId.OKT]: {
473
+ address: '0x382bb369d343125bfb2117af9c149795c6c65c50',
474
+ decimals: 18,
475
+ },
476
+ [base_1.ChainId.CRO]: {
477
+ address: '0x66e428c3f67a68878562e79a0234c1f83c208770',
478
+ decimals: 6,
479
+ },
480
+ [base_1.ChainId.HEC]: {
481
+ address: '0xa71edc38d189767582c38a3145b5873052c3e47a',
482
+ decimals: 18,
483
+ },
484
+ [base_1.ChainId.FUS]: {
485
+ address: '0xfadbbf8ce7d5b7041be672561bba99f79c532e10',
486
+ decimals: 6,
487
+ },
488
+ [base_1.ChainId.CEL]: {
489
+ address: '0x88eec49252c8cbc039dcdb394c0c2ba2f1637ea0',
490
+ decimals: 6,
491
+ },
492
+ [base_1.ChainId.MOO]: {
493
+ address: '0x8e70cd5b4ff3f62659049e74b6649c6603a0e594',
494
+ decimals: 6,
495
+ },
496
+ [base_1.ChainId.BOB]: {
497
+ address: '0x5de1677344d3cb0d7d465c10b72a8f60699c062d',
498
+ decimals: 6,
499
+ },
500
+ [base_1.ChainId.EVM]: {
501
+ address: '0x7FF4a56B32ee13D7D4D405887E0eA37d61Ed919e',
502
+ decimals: 6,
503
+ },
504
+ [base_1.ChainId.AUR]: {
505
+ address: '0x4988a896b1227218e4A686fdE5EabdcAbd91571f',
506
+ decimals: 6,
507
+ },
508
+ // Testnets
509
+ [base_1.ChainId.ROP]: {
510
+ address: '0x110a13fc3efe6a245b50102d2d79b3e76125ae83',
511
+ decimals: 6,
512
+ },
513
+ [base_1.ChainId.RIN]: {
514
+ address: '0xd9ba894e0097f8cc2bbc9d24d308b98e36dc6d02',
515
+ decimals: 6,
516
+ },
517
+ [base_1.ChainId.KOV]: {
518
+ address: '0x07de306ff27a2b630b1141956844eb1552b956b5',
519
+ decimals: 6,
520
+ },
521
+ },
522
+ },
523
+ // USDC
524
+ {
525
+ key: base_1.CoinKey.USDC,
526
+ name: base_1.CoinKey.USDC,
527
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
528
+ verified: true,
529
+ chains: {
530
+ [base_1.ChainId.ETH]: {
531
+ address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
532
+ decimals: 6,
533
+ },
534
+ [base_1.ChainId.BSC]: {
535
+ address: '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d',
536
+ decimals: 18,
537
+ },
538
+ [base_1.ChainId.POL]: {
539
+ address: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
540
+ decimals: 6,
541
+ },
542
+ [base_1.ChainId.DAI]: {
543
+ address: '0xddafbb505ad214d7b80b1f830fccc89b60fb7a83',
544
+ decimals: 6,
545
+ },
546
+ [base_1.ChainId.OPT]: {
547
+ address: '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
548
+ decimals: 6,
549
+ },
550
+ [base_1.ChainId.FTM]: {
551
+ address: '0x04068da6c83afcfa0e13ba15a6696662335d5b75',
552
+ decimals: 6,
553
+ },
554
+ [base_1.ChainId.ARB]: {
555
+ address: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
556
+ decimals: 6,
557
+ },
558
+ [base_1.ChainId.ONE]: {
559
+ address: '0x985458e523db3d53125813ed68c274899e9dfab4',
560
+ decimals: 6,
561
+ },
562
+ [base_1.ChainId.AVA]: {
563
+ address: '0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664',
564
+ decimals: 6,
565
+ symbol: 'USDC.e',
566
+ name: 'USD Coin',
567
+ },
568
+ [base_1.ChainId.MOR]: {
569
+ address: '0xe3f5a90f9cb311505cd691a46596599aa1a0ad7d',
570
+ decimals: 6,
571
+ },
572
+ [base_1.ChainId.HEC]: {
573
+ address: '0x9362bbef4b8313a8aa9f0c9808b80577aa26b73b',
574
+ decimals: 6,
575
+ },
576
+ [base_1.ChainId.OKT]: {
577
+ address: '0xc946daf81b08146b1c7a8da2a851ddf2b3eaaf85',
578
+ decimals: 18,
579
+ },
580
+ [base_1.ChainId.CRO]: {
581
+ address: '0xc21223249ca28397b4b6541dffaecc539bff0c59',
582
+ decimals: 6,
583
+ },
584
+ [base_1.ChainId.FUS]: {
585
+ address: '0x620fd5fa44be6af63715ef4e65ddfa0387ad13f5',
586
+ decimals: 6,
587
+ },
588
+ [base_1.ChainId.CEL]: {
589
+ address: '0xef4229c8c3250c675f21bcefa42f58efbff6002a',
590
+ decimals: 6,
591
+ },
592
+ [base_1.ChainId.MOO]: {
593
+ address: '0x8f552a71efe5eefc207bf75485b356a0b3f01ec9',
594
+ decimals: 6,
595
+ },
596
+ [base_1.ChainId.BOB]: {
597
+ address: '0x66a2a913e447d6b4bf33efbec43aaef87890fbbc',
598
+ decimals: 6,
599
+ },
600
+ [base_1.ChainId.EVM]: {
601
+ address: '0x51e44FfaD5C2B122C8b635671FCC8139dc636E82',
602
+ decimals: 6,
603
+ },
604
+ [base_1.ChainId.AUR]: {
605
+ address: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802',
606
+ decimals: 6,
607
+ },
608
+ // Testnets
609
+ [base_1.ChainId.ROP]: {
610
+ address: '0x07865c6e87b9f70255377e024ace6630c1eaa37f',
611
+ decimals: 6,
612
+ },
613
+ [base_1.ChainId.RIN]: {
614
+ address: '0x4dbcdf9b62e891a7cec5a2568c3f4faf9e8abe2b',
615
+ decimals: 6,
616
+ },
617
+ [base_1.ChainId.GOR]: {
618
+ address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
619
+ decimals: 6,
620
+ },
621
+ [base_1.ChainId.MUM]: {
622
+ address: '0x6d4dd09982853f08d9966ac3ca4eb5885f16f2b2',
623
+ decimals: 6,
624
+ },
625
+ // 42, 0xb7a4f3e9097c08da09517b5ab877f7a917224ede, 6
626
+ },
627
+ },
628
+ // TEST COIN
629
+ {
630
+ key: base_1.CoinKey.TEST,
631
+ name: base_1.CoinKey.TEST,
632
+ logoURI: 'https://xpollinate.io/icon192.png',
633
+ verified: false,
634
+ chains: {
635
+ [base_1.ChainId.ROP]: {
636
+ address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
637
+ decimals: 18,
638
+ },
639
+ [base_1.ChainId.RIN]: {
640
+ address: '0x9ac2c46d7acc21c881154d57c0dc1c55a3139198',
641
+ decimals: 18,
642
+ },
643
+ [base_1.ChainId.GOR]: {
644
+ address: '0x8a1cad3703e0beae0e0237369b4fcd04228d1682',
645
+ decimals: 18,
646
+ },
647
+ [base_1.ChainId.MUM]: {
648
+ address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
649
+ decimals: 18,
650
+ },
651
+ [base_1.ChainId.ARBT]: {
652
+ address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
653
+ decimals: 18,
654
+ },
655
+ [base_1.ChainId.BSCT]: {
656
+ address: '0xd86bcb7d85163fbc81756bb9cc22225d6abccadb',
657
+ decimals: 18,
658
+ },
659
+ [base_1.ChainId.OPTT]: {
660
+ address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
661
+ decimals: 18,
662
+ },
663
+ },
664
+ },
665
+ // > WBTC
666
+ {
667
+ key: base_1.CoinKey.WBTC,
668
+ name: base_1.CoinKey.WBTC,
669
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png',
670
+ verified: true,
671
+ chains: {
672
+ [base_1.ChainId.ETH]: {
673
+ address: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',
674
+ decimals: 8,
675
+ },
676
+ [base_1.ChainId.POL]: {
677
+ address: '0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6',
678
+ decimals: 8,
679
+ },
680
+ [base_1.ChainId.DAI]: {
681
+ address: '0x8e5bbbb09ed1ebde8674cda39a0c169401db4252',
682
+ decimals: 8,
683
+ },
684
+ [base_1.ChainId.FTM]: {
685
+ address: '0x321162cd933e2be498cd2267a90534a804051b11',
686
+ decimals: 8,
687
+ },
688
+ [base_1.ChainId.OPT]: {
689
+ address: '0x68f180fcce6836688e9084f035309e29bf0a2095',
690
+ decimals: 8,
691
+ },
692
+ [base_1.ChainId.AVA]: {
693
+ address: '0x50b7545627a5162f82a992c33b87adc75187b218',
694
+ decimals: 8,
695
+ },
696
+ [base_1.ChainId.ARB]: {
697
+ address: '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f',
698
+ decimals: 8,
699
+ },
700
+ [base_1.ChainId.ONE]: {
701
+ address: '0x3095c7557bcb296ccc6e363de01b760ba031f2d9',
702
+ decimals: 8,
703
+ },
704
+ [base_1.ChainId.MOR]: {
705
+ address: '0xe6a991ffa8cfe62b0bf6bf72959a3d4f11b2e0f5',
706
+ decimals: 8,
707
+ },
708
+ [base_1.ChainId.OKT]: {
709
+ address: '0x506f731f7656e2fb34b587b912808f2a7ab640bd',
710
+ decimals: 18,
711
+ },
712
+ [base_1.ChainId.CRO]: {
713
+ address: '0x062e66477faf219f25d27dced647bf57c3107d52',
714
+ decimals: 8,
715
+ },
716
+ [base_1.ChainId.FUS]: {
717
+ address: '0x33284f95ccb7b948d9d352e1439561cf83d8d00d',
718
+ decimals: 8,
719
+ },
720
+ [base_1.ChainId.CEL]: {
721
+ address: '0xbaab46e28388d2779e6e31fd00cf0e5ad95e327b',
722
+ decimals: 8,
723
+ },
724
+ [base_1.ChainId.MOO]: {
725
+ address: '0x1dc78acda13a8bc4408b207c9e48cdbc096d95e0',
726
+ decimals: 8,
727
+ },
728
+ [base_1.ChainId.BOB]: {
729
+ address: '0xdc0486f8bf31df57a952bcd3c1d3e166e3d9ec8b',
730
+ decimals: 8,
731
+ },
732
+ [base_1.ChainId.EVM]: {
733
+ address: '0xF80699Dc594e00aE7bA200c7533a07C1604A106D',
734
+ decimals: 8,
735
+ },
736
+ [base_1.ChainId.AUR]: {
737
+ address: '0xF4eB217Ba2454613b15dBdea6e5f22276410e89e',
738
+ decimals: 8,
739
+ },
740
+ },
741
+ },
742
+ // > WETH
743
+ {
744
+ key: base_1.CoinKey.WETH,
745
+ name: base_1.CoinKey.WETH,
746
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
747
+ verified: true,
748
+ chains: {
749
+ [base_1.ChainId.ETH]: {
750
+ address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
751
+ decimals: 18,
752
+ },
753
+ [base_1.ChainId.BSC]: {
754
+ address: '0x2170ed0880ac9a755fd29b2688956bd959f933f8',
755
+ decimals: 18,
756
+ },
757
+ [base_1.ChainId.DAI]: {
758
+ address: '0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1',
759
+ decimals: 18,
760
+ symbol: 'WETH',
761
+ name: 'Wrapped Ether on xDai',
762
+ },
763
+ [base_1.ChainId.POL]: {
764
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
765
+ decimals: 18,
766
+ symbol: 'WETH',
767
+ name: 'Wrapped Ether',
768
+ },
769
+ [base_1.ChainId.FTM]: {
770
+ address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
771
+ decimals: 18,
772
+ },
773
+ [base_1.ChainId.AVA]: {
774
+ address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
775
+ decimals: 18,
776
+ symbol: 'WETH.e',
777
+ name: 'Wrapped Ether',
778
+ },
779
+ [base_1.ChainId.ARB]: {
780
+ address: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',
781
+ decimals: 18,
782
+ },
783
+ [base_1.ChainId.OPT]: {
784
+ address: '0x4200000000000000000000000000000000000006',
785
+ decimals: 18,
786
+ },
787
+ [base_1.ChainId.MOR]: {
788
+ address: '0x639a647fbe20b6c8ac19e48e2de44ea792c62c5c',
789
+ decimals: 18,
790
+ },
791
+ [base_1.ChainId.HEC]: {
792
+ address: '0x639a647fbe20b6c8ac19e48e2de44ea792c62c5c',
793
+ decimals: 18,
794
+ },
795
+ [base_1.ChainId.CRO]: {
796
+ address: '0xe44fd7fcb2b1581822d0c862b68222998a0c299a',
797
+ decimals: 18,
798
+ },
799
+ [base_1.ChainId.FUS]: {
800
+ address: '0xa722c13135930332eb3d749b2f0906559d2c5b99',
801
+ decimals: 18,
802
+ },
803
+ [base_1.ChainId.CEL]: {
804
+ address: '0x122013fd7df1c6f636a5bb8f03108e876548b455',
805
+ decimals: 18,
806
+ },
807
+ [base_1.ChainId.MOO]: {
808
+ address: '0x30d2a9f5fdf90ace8c17952cbb4ee48a55d916a7',
809
+ decimals: 18,
810
+ },
811
+ [base_1.ChainId.BOB]: {
812
+ address: '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000',
813
+ decimals: 18,
814
+ },
815
+ [base_1.ChainId.EVM]: {
816
+ address: '0x5842C5532b61aCF3227679a8b1BD0242a41752f2',
817
+ decimals: 18,
818
+ },
819
+ [base_1.ChainId.AUR]: {
820
+ address: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB',
821
+ decimals: 18,
822
+ },
823
+ // Testnets
824
+ [base_1.ChainId.ROP]: {
825
+ address: '0xc778417e063141139fce010982780140aa0cd5ab',
826
+ decimals: 18,
827
+ },
828
+ [base_1.ChainId.RIN]: {
829
+ address: '0xc778417e063141139fce010982780140aa0cd5ab',
830
+ decimals: 18,
831
+ },
832
+ [base_1.ChainId.GOR]: {
833
+ address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
834
+ decimals: 18,
835
+ },
836
+ [base_1.ChainId.KOV]: {
837
+ address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
838
+ decimals: 18,
839
+ },
840
+ [base_1.ChainId.MUM]: {
841
+ address: '0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa',
842
+ decimals: 18,
843
+ },
844
+ [base_1.ChainId.OPTT]: {
845
+ address: '0x4200000000000000000000000000000000000006',
846
+ decimals: 18,
847
+ },
848
+ [base_1.ChainId.OPTG]: {
849
+ address: '0x4200000000000000000000000000000000000006',
850
+ decimals: 18,
851
+ },
852
+ },
853
+ },
854
+ // > SUSHI
855
+ {
856
+ key: base_1.CoinKey.SUSHI,
857
+ name: base_1.CoinKey.SUSHI,
858
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png',
859
+ verified: true,
860
+ chains: {
861
+ [base_1.ChainId.ETH]: {
862
+ address: '0x6b3595068778dd592e39a122f4f5a5cf09c90fe2',
863
+ decimals: 18,
864
+ },
865
+ [base_1.ChainId.POL]: {
866
+ address: '0x0b3f868e0be5597d5db7feb59e1cadbb0fdda50a',
867
+ decimals: 18,
868
+ },
869
+ [base_1.ChainId.BSC]: {
870
+ address: '0x947950bcc74888a40ffa2593c5798f11fc9124c4',
871
+ decimals: 18,
872
+ },
873
+ [base_1.ChainId.DAI]: {
874
+ address: '0x2995d1317dcd4f0ab89f4ae60f3f020a4f17c7ce',
875
+ decimals: 18,
876
+ },
877
+ [base_1.ChainId.FTM]: {
878
+ address: '0xae75a438b2e0cb8bb01ec1e1e376de11d44477cc',
879
+ decimals: 18,
880
+ },
881
+ [base_1.ChainId.AVA]: {
882
+ // guessed from debank api
883
+ address: '0x37b608519f91f70f2eeb0e5ed9af4061722e4f76',
884
+ decimals: 18,
885
+ },
886
+ [base_1.ChainId.ARB]: {
887
+ address: '0xd4d42f0b6def4ce0383636770ef773390d85c61a',
888
+ decimals: 18,
889
+ },
890
+ [base_1.ChainId.ONE]: {
891
+ address: '0xbec775cb42abfa4288de81f387a9b1a3c4bc552a',
892
+ decimals: 18,
893
+ },
894
+ [base_1.ChainId.MOR]: {
895
+ address: '0xf390830df829cf22c53c8840554b98eafc5dcbc2',
896
+ decimals: 18,
897
+ },
898
+ [base_1.ChainId.OKT]: {
899
+ address: '0x2218e0d5e0173769f5b4939a3ae423f7e5e4eab7',
900
+ decimals: 18,
901
+ },
902
+ [base_1.ChainId.HEC]: {
903
+ address: '0x52e00b2da5bd7940ffe26b609a42f957f31118d5',
904
+ decimals: 18,
905
+ },
906
+ [base_1.ChainId.FUS]: {
907
+ address: '0x90708b20ccc1eb95a4fa7c8b18fd2c22a0ff9e78',
908
+ decimals: 18,
909
+ },
910
+ [base_1.ChainId.CEL]: {
911
+ address: '0x29dfce9c22003a4999930382fd00f9fd6133acd1',
912
+ decimals: 18,
913
+ },
914
+ },
915
+ },
916
+ // used by cBridge v1:
917
+ // > DODO
918
+ {
919
+ key: base_1.CoinKey.DODO,
920
+ name: base_1.CoinKey.DODO,
921
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x43Dfc4159D86F3A37A5A4B3D4580b888ad7d4DDd/logo.png',
922
+ verified: true,
923
+ chains: {
924
+ [base_1.ChainId.ETH]: {
925
+ address: '0x43dfc4159d86f3a37a5a4b3d4580b888ad7d4ddd',
926
+ decimals: 18,
927
+ },
928
+ [base_1.ChainId.BSC]: {
929
+ address: '0x67ee3cb086f8a16f34bee3ca72fad36f7db929e2',
930
+ decimals: 18,
931
+ },
932
+ [base_1.ChainId.ARB]: {
933
+ address: '0x69eb4fa4a2fbd498c257c57ea8b7655a2559a581',
934
+ decimals: 18,
935
+ },
936
+ },
937
+ },
938
+ // > MCB
939
+ {
940
+ key: base_1.CoinKey.MCB,
941
+ name: base_1.CoinKey.MCB,
942
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x4e352cF164E64ADCBad318C3a1e222E9EBa4Ce42/logo.png',
943
+ verified: true,
944
+ chains: {
945
+ [base_1.ChainId.ETH]: {
946
+ address: '0x4e352cf164e64adcbad318c3a1e222e9eba4ce42',
947
+ decimals: 18,
948
+ },
949
+ [base_1.ChainId.ARB]: {
950
+ address: '0x4e352cf164e64adcbad318c3a1e222e9eba4ce42',
951
+ decimals: 18,
952
+ },
953
+ },
954
+ },
955
+ // > CELR
956
+ {
957
+ key: base_1.CoinKey.CELR,
958
+ name: base_1.CoinKey.CELR,
959
+ logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x4f9254c83eb525f9fcf346490bbb3ed28a81c667/logo.png',
960
+ verified: true,
961
+ chains: {
962
+ [base_1.ChainId.ETH]: {
963
+ address: '0x4f9254c83eb525f9fcf346490bbb3ed28a81c667',
964
+ decimals: 18,
965
+ },
966
+ [base_1.ChainId.BSC]: {
967
+ address: '0x1f9f6a696c6fd109cd3956f45dc709d2b3902163',
968
+ decimals: 18,
969
+ },
970
+ [base_1.ChainId.ARB]: {
971
+ address: '0x3a8b787f78d775aecfeea15706d4221b40f345ab',
972
+ decimals: 18,
973
+ },
974
+ },
975
+ },
976
+ // > IF
977
+ {
978
+ key: base_1.CoinKey.IF,
979
+ name: base_1.CoinKey.IF,
980
+ logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/10932.png',
981
+ verified: true,
982
+ chains: {
983
+ [base_1.ChainId.ETH]: {
984
+ address: '0xb0e1fc65c1a741b4662b813eb787d369b8614af1',
985
+ decimals: 18,
986
+ },
987
+ [base_1.ChainId.BSC]: {
988
+ address: '0xb0e1fc65c1a741b4662b813eb787d369b8614af1',
989
+ decimals: 18,
990
+ },
991
+ },
992
+ },
993
+ // > CRO
994
+ {
995
+ key: base_1.CoinKey.CRO,
996
+ name: base_1.CoinKey.CRO,
997
+ logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/3635.png',
998
+ verified: true,
999
+ chains: {
1000
+ [base_1.ChainId.CRO]: {
1001
+ address: '0x0000000000000000000000000000000000000000',
1002
+ decimals: 18,
1003
+ },
1004
+ },
1005
+ },
1006
+ // > FUS
1007
+ {
1008
+ key: base_1.CoinKey.FUSE,
1009
+ name: base_1.CoinKey.FUSE,
1010
+ logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/5634.png',
1011
+ verified: true,
1012
+ chains: {
1013
+ [base_1.ChainId.FUS]: {
1014
+ address: '0x0000000000000000000000000000000000000000',
1015
+ decimals: 18,
1016
+ },
1017
+ },
1018
+ },
1019
+ // > CEL
1020
+ {
1021
+ key: base_1.CoinKey.CELO,
1022
+ name: base_1.CoinKey.CELO,
1023
+ logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/5567.png',
1024
+ verified: true,
1025
+ chains: {
1026
+ [base_1.ChainId.CEL]: {
1027
+ // The CELO token is not a native token (0x000...).
1028
+ // Instead it is this ERC20 token: https://explorer.celo.org/token/0x471EcE3750Da237f93B8E339c536989b8978a438
1029
+ address: '0x471ece3750da237f93b8e339c536989b8978a438',
1030
+ decimals: 18,
1031
+ },
1032
+ },
1033
+ },
1034
+ // > GLMR
1035
+ {
1036
+ key: base_1.CoinKey.GLMR,
1037
+ name: base_1.CoinKey.GLMR,
1038
+ logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/6836.png',
1039
+ verified: true,
1040
+ chains: {
1041
+ [base_1.ChainId.MOO]: {
1042
+ address: '0x0000000000000000000000000000000000000000',
1043
+ decimals: 18,
1044
+ },
1045
+ },
1046
+ },
1047
+ // > METIS
1048
+ {
1049
+ key: base_1.CoinKey.METIS,
1050
+ name: base_1.CoinKey.METIS,
1051
+ logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/9640.png',
1052
+ verified: true,
1053
+ chains: {
1054
+ [base_1.ChainId.MAM]: {
1055
+ address: '0x0000000000000000000000000000000000000000',
1056
+ decimals: 18,
1057
+ },
1058
+ },
1059
+ },
1060
+ // > EVM
1061
+ {
1062
+ key: base_1.CoinKey.EVM,
1063
+ name: 'Evmos',
1064
+ logoURI: 'https://raw.githubusercontent.com/cronus-finance/token-list/main/assets/evmos/0xD4949664cD82660AaE99bEdc034a0deA8A0bd517/logo.png',
1065
+ verified: true,
1066
+ chains: {
1067
+ [base_1.ChainId.EVM]: {
1068
+ address: '0x0000000000000000000000000000000000000000',
1069
+ decimals: 18,
1070
+ },
1071
+ },
1072
+ },
1073
+ ];
1074
+ exports.defaultCoins = basicCoins.map((coin) => {
1075
+ var _a, _b;
1076
+ const defaultCoin = {
1077
+ key: coin.key,
1078
+ name: coin.name,
1079
+ logoURI: coin.logoURI,
1080
+ verified: coin.verified,
1081
+ chains: {},
1082
+ };
1083
+ for (const [chainId, token] of Object.entries(coin.chains)) {
1084
+ defaultCoin.chains[chainId] = {
1085
+ address: token.address.toLowerCase(),
1086
+ decimals: token.decimals,
1087
+ symbol: (_a = token.symbol) !== null && _a !== void 0 ? _a : coin.key,
1088
+ chainId: parseInt(chainId),
1089
+ coinKey: coin.key,
1090
+ name: (_b = token.name) !== null && _b !== void 0 ? _b : coin.key,
1091
+ logoURI: coin.logoURI,
1092
+ };
1093
+ }
1094
+ return defaultCoin;
1095
+ });
1096
+ // Wrapped version of gas on chain
1097
+ exports.wrappedTokens = {
1098
+ [base_1.ChainId.ETH]: {
1099
+ // https://ww7.etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
1100
+ address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
1101
+ symbol: 'WETH',
1102
+ decimals: 18,
1103
+ chainId: base_1.ChainId.ETH,
1104
+ coinKey: base_1.CoinKey.WETH,
1105
+ name: 'WETH',
1106
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1107
+ },
1108
+ [base_1.ChainId.BSC]: {
1109
+ // https://bscscan.com/token/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
1110
+ address: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c',
1111
+ symbol: 'WBNB',
1112
+ decimals: 18,
1113
+ chainId: base_1.ChainId.BSC,
1114
+ coinKey: 'WBNB',
1115
+ name: 'WBNB',
1116
+ logoURI: 'https://zapper.fi/images/networks/binance-smart-chain/0x0000000000000000000000000000000000000000.png',
1117
+ },
1118
+ [base_1.ChainId.POL]: {
1119
+ // https://polygonscan.com/token/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270
1120
+ address: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
1121
+ symbol: 'WMATIC',
1122
+ decimals: 18,
1123
+ chainId: base_1.ChainId.POL,
1124
+ coinKey: 'WMATIC',
1125
+ name: 'WMATIC',
1126
+ logoURI: 'https://zapper.fi/images/networks/polygon/0x0000000000000000000000000000000000000000.png',
1127
+ },
1128
+ [base_1.ChainId.DAI]: {
1129
+ // https://blockscout.com/xdai/mainnet/address/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d
1130
+ address: '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d',
1131
+ symbol: 'WXDAI',
1132
+ decimals: 18,
1133
+ chainId: base_1.ChainId.DAI,
1134
+ coinKey: 'WXDAI',
1135
+ name: 'WXDAI',
1136
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x6b175474e89094c44da98b954eedeac495271d0f.png',
1137
+ },
1138
+ [base_1.ChainId.OPT]: {
1139
+ // https://optimistic.etherscan.io/token/0x4200000000000000000000000000000000000006
1140
+ address: '0x4200000000000000000000000000000000000006',
1141
+ symbol: 'WETH',
1142
+ decimals: 18,
1143
+ chainId: base_1.ChainId.OPT,
1144
+ coinKey: base_1.CoinKey.WETH,
1145
+ name: 'Wrapped ETH',
1146
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1147
+ },
1148
+ [base_1.ChainId.FTM]: {
1149
+ //
1150
+ address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
1151
+ symbol: 'wFTM',
1152
+ decimals: 18,
1153
+ chainId: base_1.ChainId.FTM,
1154
+ coinKey: 'wFTM',
1155
+ name: 'wFTM',
1156
+ logoURI: 'https://assets.spookyswap.finance/coins/0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83.png',
1157
+ },
1158
+ [base_1.ChainId.ONE]: {
1159
+ address: '0xcf664087a5bb0237a0bad6742852ec6c8d69a27a',
1160
+ symbol: 'WONE',
1161
+ decimals: 18,
1162
+ chainId: base_1.ChainId.ONE,
1163
+ coinKey: 'WONE',
1164
+ name: 'WRAPPED ONE',
1165
+ logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png',
1166
+ },
1167
+ [base_1.ChainId.AVA]: {
1168
+ address: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7',
1169
+ symbol: 'WAVAX',
1170
+ decimals: 18,
1171
+ chainId: base_1.ChainId.AVA,
1172
+ coinKey: 'WAVAX',
1173
+ name: 'Wrapped AVAX',
1174
+ logoURI: '',
1175
+ },
1176
+ [base_1.ChainId.ARB]: {
1177
+ address: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',
1178
+ symbol: 'WETH',
1179
+ decimals: 18,
1180
+ chainId: base_1.ChainId.ARB,
1181
+ coinKey: base_1.CoinKey.WETH,
1182
+ name: 'WETH',
1183
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1184
+ },
1185
+ [base_1.ChainId.MOR]: {
1186
+ address: '0x98878b06940ae243284ca214f92bb71a2b032b8a',
1187
+ symbol: 'WMOVR',
1188
+ decimals: 18,
1189
+ chainId: base_1.ChainId.MOR,
1190
+ coinKey: 'WMOVR',
1191
+ name: 'WMOVR',
1192
+ logoURI: 'https://assets.coingecko.com/coins/images/17984/small/9285.png',
1193
+ },
1194
+ [base_1.ChainId.OKT]: {
1195
+ address: '0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15',
1196
+ symbol: 'wOKT',
1197
+ decimals: 18,
1198
+ chainId: base_1.ChainId.OKT,
1199
+ coinKey: 'wOKT',
1200
+ name: 'wOKT',
1201
+ logoURI: 'https://static.debank.com/image/okt_token/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png',
1202
+ },
1203
+ [base_1.ChainId.HEC]: {
1204
+ address: '0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f',
1205
+ symbol: 'wHT',
1206
+ decimals: 18,
1207
+ chainId: base_1.ChainId.HEC,
1208
+ coinKey: 'wHT',
1209
+ name: 'wHT',
1210
+ logoURI: 'https://static.debank.com/image/heco_token/logo_url/heco/c399dcddde07e1944c4dd8f922832b53.png',
1211
+ },
1212
+ [base_1.ChainId.CRO]: {
1213
+ address: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23',
1214
+ symbol: 'WCRO',
1215
+ decimals: 18,
1216
+ chainId: base_1.ChainId.CRO,
1217
+ coinKey: 'WCRO',
1218
+ name: 'WCRO',
1219
+ logoURI: 'https://raw.githubusercontent.com/cronaswap/default-token-list/main/assets/tokens/cronos/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23/logo.png',
1220
+ },
1221
+ [base_1.ChainId.FUS]: {
1222
+ address: '0x0be9e53fd7edac9f859882afdda116645287c629',
1223
+ symbol: 'WFUSE',
1224
+ decimals: 18,
1225
+ chainId: base_1.ChainId.FUS,
1226
+ coinKey: 'WFUSE',
1227
+ name: 'Wrapped Fuse',
1228
+ logoURI: 'https://fuselogo.s3.eu-central-1.amazonaws.com/wfuse.png',
1229
+ },
1230
+ [base_1.ChainId.MOO]: {
1231
+ address: '0xacc15dc74880c9944775448304b263d191c6077f',
1232
+ symbol: 'WGLMR',
1233
+ decimals: 18,
1234
+ chainId: base_1.ChainId.MOO,
1235
+ coinKey: 'WGLMR',
1236
+ name: 'Wrapped GLMR',
1237
+ logoURI: 'https://static.debank.com/image/mobm_token/logo_url/0xacc15dc74880c9944775448304b263d191c6077f/a8442077d76b258297181c3e6eb8c9cc.png',
1238
+ },
1239
+ [base_1.ChainId.MAM]: {
1240
+ address: '0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481',
1241
+ symbol: 'WMETIS',
1242
+ decimals: 18,
1243
+ chainId: base_1.ChainId.MAM,
1244
+ coinKey: 'WMETIS',
1245
+ name: 'Wrapped Metis',
1246
+ logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/9640.png',
1247
+ },
1248
+ [base_1.ChainId.BOB]: {
1249
+ address: '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000',
1250
+ symbol: 'WETH',
1251
+ decimals: 18,
1252
+ chainId: base_1.ChainId.BOB,
1253
+ coinKey: base_1.CoinKey.WETH,
1254
+ name: 'Wrapped ETH',
1255
+ logoURI: 'https://static.debank.com/image/boba_token/logo_url/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000/b1947b38a90e559eb950453965714be4.png',
1256
+ },
1257
+ [base_1.ChainId.CEL]: {
1258
+ address: '0x471ece3750da237f93b8e339c536989b8978a438',
1259
+ symbol: 'CELO',
1260
+ decimals: 18,
1261
+ chainId: base_1.ChainId.CEL,
1262
+ coinKey: base_1.CoinKey.CELO,
1263
+ name: 'Celo native asset',
1264
+ logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/5567.png',
1265
+ },
1266
+ [base_1.ChainId.EVM]: {
1267
+ address: '0xd4949664cd82660aae99bedc034a0dea8a0bd517',
1268
+ symbol: 'WEVMOS',
1269
+ decimals: 18,
1270
+ chainId: base_1.ChainId.EVM,
1271
+ coinKey: 'WEVMOS',
1272
+ name: 'Wrapped Evmos',
1273
+ logoURI: 'https://raw.githubusercontent.com/cronus-finance/token-list/main/assets/evmos/0xD4949664cD82660AaE99bEdc034a0deA8A0bd517/logo.png',
1274
+ },
1275
+ [base_1.ChainId.AUR]: {
1276
+ address: '0x0000000000000000000000000000000000000000',
1277
+ symbol: 'AETH',
1278
+ decimals: 18,
1279
+ chainId: base_1.ChainId.AUR,
1280
+ coinKey: 'AETH',
1281
+ name: 'AETH',
1282
+ logoURI: 'https://static.debank.com/image/aurora_token/logo_url/aurora/d61441782d4a08a7479d54aea211679e.png',
1283
+ },
1284
+ // Testnets
1285
+ [base_1.ChainId.ROP]: {
1286
+ // https://ropsten.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
1287
+ address: '0xc778417e063141139fce010982780140aa0cd5ab',
1288
+ symbol: 'WETH',
1289
+ decimals: 18,
1290
+ chainId: base_1.ChainId.ROP,
1291
+ coinKey: base_1.CoinKey.WETH,
1292
+ name: 'WETH',
1293
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1294
+ },
1295
+ [base_1.ChainId.RIN]: {
1296
+ // https://rinkeby.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
1297
+ address: '0xc778417e063141139fce010982780140aa0cd5ab',
1298
+ symbol: 'WETH',
1299
+ decimals: 18,
1300
+ chainId: base_1.ChainId.RIN,
1301
+ coinKey: base_1.CoinKey.WETH,
1302
+ name: 'WETH',
1303
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1304
+ },
1305
+ [base_1.ChainId.GOR]: {
1306
+ // https://goerli.etherscan.io/token/0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6
1307
+ address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
1308
+ symbol: 'WETH',
1309
+ decimals: 18,
1310
+ chainId: base_1.ChainId.GOR,
1311
+ coinKey: base_1.CoinKey.WETH,
1312
+ name: 'WETH',
1313
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1314
+ },
1315
+ [base_1.ChainId.KOV]: {
1316
+ // https://kovan.etherscan.io/address/0xd0a1e359811322d97991e03f863a0c30c2cf029c
1317
+ address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
1318
+ symbol: 'WETH',
1319
+ decimals: 18,
1320
+ chainId: base_1.ChainId.KOV,
1321
+ coinKey: base_1.CoinKey.WETH,
1322
+ name: 'WETH',
1323
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1324
+ },
1325
+ [base_1.ChainId.MUM]: {
1326
+ // https://mumbai.polygonscan.com/token/0x9c3c9283d3e44854697cd22d3faa240cfb032889
1327
+ address: '0x9c3c9283d3e44854697cd22d3faa240cfb032889',
1328
+ symbol: 'WMATIC',
1329
+ decimals: 18,
1330
+ chainId: base_1.ChainId.MUM,
1331
+ coinKey: 'WMATIC',
1332
+ name: 'WMATIC',
1333
+ logoURI: 'https://zapper.fi/images/networks/polygon/0x0000000000000000000000000000000000000000.png',
1334
+ },
1335
+ [base_1.ChainId.ONET]: {
1336
+ address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
1337
+ symbol: 'WONE',
1338
+ decimals: 18,
1339
+ chainId: base_1.ChainId.ONET,
1340
+ coinKey: 'WONE',
1341
+ name: 'WRAPPED ONE',
1342
+ logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png',
1343
+ },
1344
+ [base_1.ChainId.ARBT]: {
1345
+ // https://testnet.arbiscan.io/token/0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681
1346
+ address: '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681',
1347
+ symbol: 'WETH',
1348
+ decimals: 18,
1349
+ chainId: base_1.ChainId.ARBT,
1350
+ coinKey: base_1.CoinKey.WETH,
1351
+ name: 'WETH',
1352
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1353
+ },
1354
+ [base_1.ChainId.OPTT]: {
1355
+ // https://kovan-optimistic.etherscan.io/token/0x4200000000000000000000000000000000000006
1356
+ address: '0x4200000000000000000000000000000000000006',
1357
+ symbol: 'WETH',
1358
+ decimals: 18,
1359
+ chainId: base_1.ChainId.OPTT,
1360
+ coinKey: base_1.CoinKey.WETH,
1361
+ name: 'WETH',
1362
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1363
+ },
1364
+ [base_1.ChainId.OPTG]: {
1365
+ // https://blockscout.com/optimism/goerli/address/0x4200000000000000000000000000000000000006
1366
+ address: '0x4200000000000000000000000000000000000006',
1367
+ symbol: 'WETH',
1368
+ decimals: 18,
1369
+ chainId: base_1.ChainId.OPTG,
1370
+ coinKey: base_1.CoinKey.WETH,
1371
+ name: 'WETH',
1372
+ logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
1373
+ },
1374
+ [base_1.ChainId.BSCT]: {
1375
+ // https://testnet.bscscan.com/token/0xae13d989dac2f0debff460ac112a837c89baa7cd
1376
+ address: '0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd',
1377
+ symbol: 'WBNB',
1378
+ decimals: 18,
1379
+ chainId: base_1.ChainId.BSCT,
1380
+ coinKey: 'WBNB',
1381
+ name: 'WBNB',
1382
+ logoURI: 'https://zapper.fi/images/networks/binance-smart-chain/0x0000000000000000000000000000000000000000.png',
1383
+ },
1384
+ };
1385
+ const findDefaultCoin = (coinKey) => {
1386
+ const coin = exports.defaultCoins.find((coin) => coin.key === coinKey);
1387
+ if (!coin) {
1388
+ throw new Error('Invalid Coin');
1389
+ }
1390
+ return coin;
1391
+ };
1392
+ exports.findDefaultCoin = findDefaultCoin;
1393
+ const findDefaultToken = (coinKey, chainId) => {
1394
+ const coin = (0, exports.findDefaultCoin)(coinKey);
1395
+ const token = coin.chains[chainId];
1396
+ if (!token) {
1397
+ throw new Error(`Invalid chain ${chainId} to coin ${coinKey}`);
1398
+ }
1399
+ return token;
1400
+ };
1401
+ exports.findDefaultToken = findDefaultToken;
1402
+ const findWrappedGasOnChain = (chainId) => {
1403
+ const token = exports.wrappedTokens[chainId];
1404
+ if (!token) {
1405
+ throw new Error(`Wrapped Gas Token not defined for chain ${chainId}.`);
1406
+ }
1407
+ return token;
1408
+ };
1409
+ exports.findWrappedGasOnChain = findWrappedGasOnChain;
1410
+ const findTokenByChainIdAndAddress = (chainId, tokenAddress) => {
1411
+ let token = null;
1412
+ exports.defaultCoins.forEach((coin) => {
1413
+ Object.values(coin.chains).forEach((coinToken) => {
1414
+ if (coinToken.chainId === chainId && coinToken.address === tokenAddress) {
1415
+ token = coinToken;
1416
+ }
1417
+ });
1418
+ });
1419
+ return token;
1420
+ };
1421
+ exports.findTokenByChainIdAndAddress = findTokenByChainIdAndAddress;