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