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