@lifi/types 1.4.0 → 1.5.1

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