@lifi/types 1.4.0 → 1.5.1

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