@yodlpay/tokenlists 0.1.46

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.
@@ -0,0 +1,2605 @@
1
+ var name = "Default";
2
+ var logoUri = "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7/logo.png";
3
+ var keywords = [
4
+ ];
5
+ var version = {
6
+ major: 0,
7
+ minor: 0,
8
+ patch: 1
9
+ };
10
+ var tokens = [
11
+ {
12
+ chainId: 1,
13
+ coinGeckoId: "ethereum",
14
+ name: "Ether",
15
+ symbol: "ETH",
16
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/ETH.svg",
17
+ decimals: 18,
18
+ tags: [
19
+ "Mainnet",
20
+ "Native Token",
21
+ "Top10"
22
+ ],
23
+ address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
24
+ },
25
+ {
26
+ chainId: 10,
27
+ coinGeckoId: "ethereum",
28
+ name: "Ether",
29
+ symbol: "ETH",
30
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/ETH.svg",
31
+ decimals: 18,
32
+ tags: [
33
+ "Optimism",
34
+ "Native Token",
35
+ "Top10"
36
+ ],
37
+ address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
38
+ },
39
+ {
40
+ chainId: 42161,
41
+ coinGeckoId: "ethereum",
42
+ name: "Ether",
43
+ symbol: "ETH",
44
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/ETH.svg",
45
+ decimals: 18,
46
+ tags: [
47
+ "Arbitrum",
48
+ "Native Token",
49
+ "Top10"
50
+ ],
51
+ address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
52
+ },
53
+ {
54
+ chainId: 1,
55
+ coinGeckoId: "weth",
56
+ name: "Wrapped Ether",
57
+ symbol: "WETH",
58
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/WETH.svg",
59
+ decimals: 18,
60
+ tags: [
61
+ "Mainnet",
62
+ "Native Token"
63
+ ],
64
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
65
+ },
66
+ {
67
+ chainId: 10,
68
+ coinGeckoId: "weth",
69
+ name: "Wrapped Ether",
70
+ symbol: "WETH",
71
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/WETH.svg",
72
+ decimals: 18,
73
+ tags: [
74
+ "Optimism",
75
+ "Native Token"
76
+ ],
77
+ address: "0x4200000000000000000000000000000000000006"
78
+ },
79
+ {
80
+ chainId: 42161,
81
+ coinGeckoId: "weth",
82
+ name: "Wrapped Ether",
83
+ symbol: "WETH",
84
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/WETH.svg",
85
+ decimals: 18,
86
+ tags: [
87
+ "Arbitrum",
88
+ "Native Token"
89
+ ],
90
+ address: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"
91
+ },
92
+ {
93
+ chainId: 1,
94
+ coinGeckoId: "tether",
95
+ name: "Tether",
96
+ symbol: "USDT",
97
+ currency: "USD",
98
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDT.svg",
99
+ decimals: 6,
100
+ tags: [
101
+ "Mainnet",
102
+ "Stablecoin",
103
+ "Top10",
104
+ "USD"
105
+ ],
106
+ address: "0xdac17f958d2ee523a2206206994597c13d831ec7"
107
+ },
108
+ {
109
+ chainId: 10,
110
+ coinGeckoId: "tether",
111
+ name: "Tether",
112
+ symbol: "USDT",
113
+ currency: "USD",
114
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDT.svg",
115
+ decimals: 6,
116
+ tags: [
117
+ "Optimism",
118
+ "Stablecoin",
119
+ "Top10",
120
+ "USD"
121
+ ],
122
+ address: "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58"
123
+ },
124
+ {
125
+ chainId: 42161,
126
+ coinGeckoId: "tether",
127
+ name: "Tether",
128
+ symbol: "USDT",
129
+ currency: "USD",
130
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDT.svg",
131
+ decimals: 6,
132
+ tags: [
133
+ "Arbitrum",
134
+ "Stablecoin",
135
+ "Top10",
136
+ "USD"
137
+ ],
138
+ address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"
139
+ },
140
+ {
141
+ chainId: 1,
142
+ coinGeckoId: "usd-coin",
143
+ name: "USD Coin",
144
+ symbol: "USDC",
145
+ currency: "USD",
146
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg",
147
+ decimals: 6,
148
+ tags: [
149
+ "Mainnet",
150
+ "Stablecoin",
151
+ "Top10",
152
+ "USD"
153
+ ],
154
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
155
+ },
156
+ {
157
+ chainId: 10,
158
+ coinGeckoId: "usd-coin",
159
+ name: "USD Coin",
160
+ symbol: "USDC",
161
+ currency: "USD",
162
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg",
163
+ decimals: 6,
164
+ tags: [
165
+ "Optimism",
166
+ "Stablecoin",
167
+ "Top10",
168
+ "USD"
169
+ ],
170
+ address: "0x7f5c764cbc14f9669b88837ca1490cca17c31607"
171
+ },
172
+ {
173
+ chainId: 42161,
174
+ coinGeckoId: "usd-coin",
175
+ name: "USD Coin",
176
+ symbol: "USDC",
177
+ currency: "USD",
178
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg",
179
+ decimals: 6,
180
+ tags: [
181
+ "Arbitrum",
182
+ "Stablecoin",
183
+ "Top10",
184
+ "USD"
185
+ ],
186
+ address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
187
+ },
188
+ {
189
+ chainId: 42161,
190
+ coinGeckoId: "usd-coin",
191
+ name: "USD Coin - Bridged",
192
+ symbol: "USDC.e",
193
+ currency: "USD",
194
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg",
195
+ decimals: 6,
196
+ tags: [
197
+ "Arbitrum",
198
+ "Stablecoin",
199
+ "Top10",
200
+ "USD"
201
+ ],
202
+ address: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8"
203
+ },
204
+ {
205
+ chainId: 1,
206
+ coinGeckoId: "dai",
207
+ name: "DAI",
208
+ symbol: "DAI",
209
+ currency: "USD",
210
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/DAI.svg",
211
+ decimals: 18,
212
+ tags: [
213
+ "Mainnet",
214
+ "Stablecoin",
215
+ "Top10",
216
+ "USD"
217
+ ],
218
+ address: "0x6b175474e89094c44da98b954eedeac495271d0f"
219
+ },
220
+ {
221
+ chainId: 10,
222
+ coinGeckoId: "dai",
223
+ name: "DAI",
224
+ symbol: "DAI",
225
+ currency: "USD",
226
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/DAI.svg",
227
+ decimals: 18,
228
+ tags: [
229
+ "Optimism",
230
+ "Stablecoin",
231
+ "Top10",
232
+ "USD"
233
+ ],
234
+ address: "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1"
235
+ },
236
+ {
237
+ chainId: 42161,
238
+ coinGeckoId: "dai",
239
+ name: "DAI",
240
+ symbol: "DAI",
241
+ currency: "USD",
242
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/DAI.svg",
243
+ decimals: 18,
244
+ tags: [
245
+ "Arbitrum",
246
+ "Stablecoin",
247
+ "Top10",
248
+ "USD"
249
+ ],
250
+ address: "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1"
251
+ },
252
+ {
253
+ chainId: 1,
254
+ coinGeckoId: "crvusd",
255
+ name: "crvUSD",
256
+ symbol: "crvUSD",
257
+ currency: "USD",
258
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/crvUSD.svg",
259
+ decimals: 18,
260
+ tags: [
261
+ "Mainnet",
262
+ "Stablecoin",
263
+ "USD"
264
+ ],
265
+ address: "0xf939e0a03fb07f59a73314e73794be0e57ac1b4e"
266
+ },
267
+ {
268
+ chainId: 1,
269
+ coinGeckoId: "monerium-eur-money",
270
+ name: "EURe",
271
+ symbol: "EURe",
272
+ currency: "EUR",
273
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/EURe.svg",
274
+ decimals: 18,
275
+ tags: [
276
+ "Mainnet",
277
+ "Stablecoin",
278
+ "EUR"
279
+ ],
280
+ address: "0x3231Cb76718CDeF2155FC47b5286d82e6eDA273f"
281
+ },
282
+ {
283
+ chainId: 5,
284
+ name: "XUSD",
285
+ symbol: "XUSD",
286
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg",
287
+ decimals: 18,
288
+ tags: [
289
+ "TESTNET"
290
+ ],
291
+ address: "0x33ca3889bb0032e9c3794b608a242d27e7293353"
292
+ },
293
+ {
294
+ chainId: 5,
295
+ name: "USDC.test",
296
+ symbol: "USDC",
297
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg",
298
+ decimals: 18,
299
+ tags: [
300
+ "TESTNET"
301
+ ],
302
+ address: "0xe5768E2dDEc1E50Ac2672a2d75D63d36A8Ec88d9"
303
+ },
304
+ {
305
+ chainId: 5,
306
+ name: "USDT.test",
307
+ symbol: "USDT",
308
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDT.svg",
309
+ decimals: 18,
310
+ tags: [
311
+ "TESTNET"
312
+ ],
313
+ address: "0xeB87E5d9c773d3E802989295147564985B5B358C"
314
+ },
315
+ {
316
+ chainId: 43114,
317
+ coinGeckoId: "dai",
318
+ address: "0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",
319
+ decimals: 18,
320
+ name: "Dai Stablecoin",
321
+ symbol: "DAI.e",
322
+ currency: "USD",
323
+ tags: [
324
+ "Avalanche",
325
+ "Stablecoins"
326
+ ],
327
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/DAI.svg"
328
+ },
329
+ {
330
+ chainId: 43114,
331
+ coinGeckoId: "tether",
332
+ address: "0xc7198437980c041c805A1EDcbA50c1Ce5db95118",
333
+ decimals: 6,
334
+ name: "Tether - Bridged",
335
+ symbol: "USDT.e",
336
+ currency: "USD",
337
+ tags: [
338
+ "Avalanche",
339
+ "Stablecoins"
340
+ ],
341
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDT.svg"
342
+ },
343
+ {
344
+ chainId: 43114,
345
+ coinGeckoId: "usd-coin",
346
+ address: "0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664",
347
+ decimals: 6,
348
+ name: "USD Coin - Bridged",
349
+ symbol: "USDC.e",
350
+ currency: "USD",
351
+ tags: [
352
+ "Avalanche",
353
+ "Stablecoins"
354
+ ],
355
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg"
356
+ },
357
+ {
358
+ chainId: 43114,
359
+ coinGeckoId: "magic-internet-money",
360
+ address: "0x130966628846BFd36ff31a822705796e8cb8C18D",
361
+ decimals: 18,
362
+ name: "Magic Internet Money",
363
+ symbol: "MIM",
364
+ tags: [
365
+ "Avalanche",
366
+ "Stablecoins"
367
+ ],
368
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/MIM.svg"
369
+ },
370
+ {
371
+ chainId: 43114,
372
+ coinGeckoId: "usd-coin",
373
+ address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
374
+ decimals: 6,
375
+ name: "USD Coin",
376
+ symbol: "USDC",
377
+ currency: "USD",
378
+ tags: [
379
+ "Avalanche",
380
+ "Stablecoin",
381
+ "Top10"
382
+ ],
383
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg"
384
+ },
385
+ {
386
+ chainId: 43114,
387
+ coinGeckoId: "tether",
388
+ address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
389
+ decimals: 6,
390
+ name: "Tether",
391
+ symbol: "USDT",
392
+ currency: "USD",
393
+ tags: [
394
+ "Avalanche",
395
+ "Stablecoin",
396
+ "Top10"
397
+ ],
398
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDT.svg"
399
+ },
400
+ {
401
+ chainId: 100,
402
+ coinGeckoId: "tether",
403
+ address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
404
+ decimals: 6,
405
+ name: "Tether",
406
+ symbol: "USDT",
407
+ currency: "USD",
408
+ tags: [
409
+ "Gnosis",
410
+ "Stablecoin",
411
+ "Top10"
412
+ ],
413
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDT.svg"
414
+ },
415
+ {
416
+ chainId: 100,
417
+ coinGeckoId: "usd-coin",
418
+ address: "0xddafbb505ad214d7b80b1f830fccc89b60fb7a83",
419
+ decimals: 6,
420
+ name: "USD Coin",
421
+ symbol: "USDC",
422
+ currency: "USD",
423
+ tags: [
424
+ "Gnosis",
425
+ "Stablecoin",
426
+ "Top10"
427
+ ],
428
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg"
429
+ },
430
+ {
431
+ chainId: 100,
432
+ coinGeckoId: "xdai",
433
+ address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
434
+ decimals: 18,
435
+ name: "xDAI",
436
+ symbol: "xDAI",
437
+ currency: "USD",
438
+ tags: [
439
+ "Gnosis",
440
+ "Stablecoin",
441
+ "Native Token"
442
+ ],
443
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/xDAI.svg"
444
+ },
445
+ {
446
+ chainId: 100,
447
+ coinGeckoId: "wrapped-xdai",
448
+ address: "0xe91d153e0b41518a2ce8dd3d7944fa863463a97d",
449
+ decimals: 18,
450
+ name: "wxDAI",
451
+ symbol: "wxDAI",
452
+ currency: "USD",
453
+ tags: [
454
+ "Gnosis",
455
+ "Stablecoin",
456
+ "Native Token"
457
+ ],
458
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/wxDAI.svg"
459
+ },
460
+ {
461
+ chainId: 100,
462
+ coinGeckoId: "monerium-eur-money",
463
+ address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
464
+ decimals: 18,
465
+ name: "EURe",
466
+ symbol: "EURe",
467
+ currency: "EUR",
468
+ tags: [
469
+ "Gnosis",
470
+ "Stablecoin"
471
+ ],
472
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/EURe.svg"
473
+ },
474
+ {
475
+ chainId: 137,
476
+ coinGeckoId: "matic-network",
477
+ name: "MATIC",
478
+ symbol: "MATIC",
479
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/137/logo.svg",
480
+ decimals: 18,
481
+ tags: [
482
+ "Polygon",
483
+ "Native Token"
484
+ ],
485
+ address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
486
+ },
487
+ {
488
+ chainId: 137,
489
+ coinGeckoId: "matic-network",
490
+ name: "Wrapped MATIC",
491
+ symbol: "WMATIC",
492
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/137/logo.svg",
493
+ decimals: 18,
494
+ tags: [
495
+ "Polygon",
496
+ "Native Token"
497
+ ],
498
+ address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"
499
+ },
500
+ {
501
+ chainId: 137,
502
+ coinGeckoId: "tether",
503
+ name: "Tether",
504
+ symbol: "USDT",
505
+ currency: "USD",
506
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDT.svg",
507
+ decimals: 6,
508
+ tags: [
509
+ "Polygon",
510
+ "Stablecoin",
511
+ "Top10",
512
+ "USD"
513
+ ],
514
+ address: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F"
515
+ },
516
+ {
517
+ chainId: 137,
518
+ coinGeckoId: "usd-coin",
519
+ name: "USD Coin",
520
+ symbol: "USDC",
521
+ currency: "USD",
522
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDC.svg",
523
+ decimals: 6,
524
+ tags: [
525
+ "Polygon",
526
+ "Stablecoin",
527
+ "Top10",
528
+ "USD"
529
+ ],
530
+ address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
531
+ },
532
+ {
533
+ chainId: 137,
534
+ coinGeckoId: "dai",
535
+ name: "DAI",
536
+ symbol: "DAI",
537
+ currency: "USD",
538
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/DAI.svg",
539
+ decimals: 18,
540
+ tags: [
541
+ "Polygon",
542
+ "Stablecoin",
543
+ "Top10",
544
+ "USD"
545
+ ],
546
+ address: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"
547
+ },
548
+ {
549
+ chainId: 137,
550
+ coinGeckoId: "monerium-eur-money",
551
+ address: "0x18ec0A6E18E5bc3784fDd3a3634b31245ab704F6",
552
+ decimals: 18,
553
+ name: "EURe",
554
+ symbol: "EURe",
555
+ currency: "EUR",
556
+ tags: [
557
+ "Polygon",
558
+ "Stablecoin"
559
+ ],
560
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/EURe.svg"
561
+ }
562
+ ];
563
+ var timestamp = "2021-09-07T00:00:00+00:00";
564
+ var tokenlist = {
565
+ name: name,
566
+ logoUri: logoUri,
567
+ keywords: keywords,
568
+ version: version,
569
+ tokens: tokens,
570
+ timestamp: timestamp
571
+ };
572
+
573
+ var name$1 = "Default";
574
+ var logoUri$1 = "";
575
+ var keywords$1 = [
576
+ ];
577
+ var version$1 = {
578
+ major: 0,
579
+ minor: 0,
580
+ patch: 1
581
+ };
582
+ var chains = [
583
+ {
584
+ chainName: "Ethereum",
585
+ shortName: "eth",
586
+ testnet: false,
587
+ chainId: 1,
588
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/1/logo.svg",
589
+ rpcUrls: [
590
+ "https://rpc.ankr.com/eth"
591
+ ],
592
+ wrappedNativeToken: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
593
+ explorerUrl: "https://etherscan.io",
594
+ timestamp: "2022-12-29T18:52:20+00:00",
595
+ feeTreasury: "0x9C48d180e4eEE0dA2A899EE1E4c533cA5e92db77",
596
+ priceFeeds: {
597
+ AUD: "0x77f9710e7d0a19669a13c055f62cd80d313df022",
598
+ CAD: "0xa34317db73e77d453b1b8d04550c44d10e981c8e",
599
+ CHF: "0x449d117117838ffa61263b61da6301aa2a88b13a",
600
+ EUR: "0xb49f677943bc038e9857d61e7d053caa2c1734c1",
601
+ ETH: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
602
+ GBP: "0x5c0ab2d9b5a7ed9f470386e82bb36a3613cdd4b5",
603
+ JPY: "0xbce206cae7f0ec07b545edde332a47c2f75bbeb3",
604
+ CNY: "0xef8a4af35cd47424672e3c590abd37fbb7a7759a",
605
+ KRW: "0x01435677fb11763550905594a16b645847c1d0f3",
606
+ NZD: "0x3977cfc9e4f29c184d4675f4eb8e0013236e5f3e",
607
+ SGD: "0xe25277ff4bbf9081c75ab0eb13b4a13a721f3e13",
608
+ TRY: "0xb09fc5fd3f11cf9eb5e1c5dba43114e3c9f477b5"
609
+ },
610
+ curveRouterAddress: "0x99a58482BD75cbab83b27EC03CA68fF489b5788f"
611
+ },
612
+ {
613
+ chainName: "Ethereum Goerli",
614
+ shortName: "gor",
615
+ testnet: true,
616
+ chainId: 5,
617
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/5/logo.svg",
618
+ rpcUrls: [
619
+ "https://rpc.ankr.com/eth_goerli"
620
+ ],
621
+ wrappedNativeToken: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
622
+ explorerUrl: "https://goerli.etherscan.io",
623
+ timestamp: "2022-12-28T14:10:09+00:00",
624
+ feeTreasury: "0x3E8A61F0532BA2b58660606d61110cC9E90c4D29",
625
+ priceFeeds: {
626
+ CZK: "0xAE45DCb3eB59E27f05C170752B218C6174394Df8",
627
+ JPY: "0x295b398c95cEB896aFA18F25d0c6431Fd17b1431"
628
+ }
629
+ },
630
+ {
631
+ chainName: "Arbitrum One",
632
+ shortName: "arb1",
633
+ testnet: false,
634
+ chainId: 42161,
635
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/42161/logo.svg",
636
+ rpcUrls: [
637
+ "https://rpc.ankr.com/arbitrum"
638
+ ],
639
+ wrappedNativeToken: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
640
+ explorerUrl: "https://arbiscan.io",
641
+ timestamp: "2023-01-13T14:52:05+00:00",
642
+ feeTreasury: "0x5f0947253a8218894af13438ac2e2e0ced30d234",
643
+ priceFeeds: {
644
+ AUD: "0x9854e9a850e7c354c1de177ea953a6b1fba8fc22",
645
+ CNY: "0xcc3370bde6afe51e1205a5038947b9836371eccb",
646
+ EUR: "0xa14d53bc1f1c0f31b4aa3bd109344e5009051a84",
647
+ ETH: "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612",
648
+ CAD: "0xf6da27749484843c4f02f5ad1378cee723dd61d4",
649
+ CHF: "0xe32AccC8c4eC03F6E75bd3621BfC9Fbb234E1FC3",
650
+ GBP: "0x9c4424fd84c6661f97d8d6b3fc3c1aac2bedd137",
651
+ JPY: "0x3dd6e51cb9cae717d5a8778cf79a04029f9cfdf8",
652
+ KRW: "0x85bb02e0ae286600d1c68bb6ce22cc998d411916",
653
+ SEK: "0xde89a55d04ded40a410877ab87d4f567ee66a1f0",
654
+ SGD: "0xf0d38324d1f86a176ac727a4b0c43c9f9d9c5eb1"
655
+ },
656
+ curveRouterAddress: "0x4c2af2df2a7e567b5155879720619ea06c5bb15d"
657
+ },
658
+ {
659
+ chainName: "Optimism",
660
+ shortName: "oeth",
661
+ testnet: false,
662
+ chainId: 10,
663
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/10/logo.svg",
664
+ rpcUrls: [
665
+ "https://mainnet.optimism.io"
666
+ ],
667
+ wrappedNativeToken: "0x4200000000000000000000000000000000000006",
668
+ explorerUrl: "https://optimistic.etherscan.io",
669
+ timestamp: "2023-02-27T14:52:05+00:00",
670
+ feeTreasury: "0x5f0947253a8218894af13438ac2e2e0ced30d234",
671
+ priceFeeds: {
672
+ AUD: "0x39be70e93d2d285c9e71be7f70fc5a45a7777b14",
673
+ EUR: "0x3626369857a10ccc6cc3a6e4f5c2f5984a519f20",
674
+ ETH: "0x13e3Ee699D1909E989722E753853AE30b17e08c5",
675
+ GBP: "0x540d48c01f946e729174517e013ad0bdae5f08c0",
676
+ JPY: "0x536944c3a71feb7c1e5c66ee37d1a148d8d8f619",
677
+ INR: "0x5535e67d8f99c8ebe961e1fc1f6ddae96fec82c9"
678
+ },
679
+ curveRouterAddress: "0x89287c32c2cac1c76227f6d300b2dbbab6b75c08"
680
+ },
681
+ {
682
+ chainName: "Avalanche",
683
+ shortName: "avax",
684
+ testnet: false,
685
+ chainId: 43114,
686
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/43113/logo.svg",
687
+ rpcUrls: [
688
+ "https://api.avax.network/ext/bc/C/rpc"
689
+ ],
690
+ wrappedNativeToken: "0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB",
691
+ explorerUrl: "https://snowtrace.io",
692
+ timestamp: "2023-01-13T14:52:05+00:00",
693
+ feeTreasury: "0x25e22F3ceE59F34622f7DC9a2078B85f17BfBe95",
694
+ priceFeeds: {
695
+ AVAX: "0x0A77230d17318075983913bC2145DB16C7366156",
696
+ BRL: "0x609dddb75518aa4af84ac228b62261ae68e52989",
697
+ CHF: "0x3b37950485b450edf90cbb85d0cd27308af4ab9a",
698
+ EUR: "0x192f2dba961bb0277520c082d6bfa87d5961333e",
699
+ JPY: "0xf8b283ad4d969ecfd70005714dd5910160565b94",
700
+ TRY: "0xa61bf273688ea095b5e4c11f1af5e763f7aeee91"
701
+ }
702
+ },
703
+ {
704
+ chainName: "Gnosis",
705
+ shortName: "gno",
706
+ testnet: false,
707
+ chainId: 100,
708
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/100/logo.svg",
709
+ rpcUrls: [
710
+ "https://rpc.gnosis.gateway.fm"
711
+ ],
712
+ wrappedNativeToken: "0xe91d153e0b41518a2ce8dd3d7944fa863463a97d",
713
+ explorerUrl: "https://gnosisscan.io",
714
+ timestamp: "2023-07-27T14:52:05+00:00",
715
+ feeTreasury: "0x775aaf73a50C25eEBd308BBb9C34C73D081B423b",
716
+ priceFeeds: {
717
+ CHF: "0xFb00261Af80ADb1629D3869E377ae1EEC7bE659F",
718
+ DAI: "0x678df3415fc31947dA4324eC63212874be5a82f8",
719
+ EUR: "0xab70BCB260073d036d1660201e9d5405F5829b7a",
720
+ GNO: "0x22441d81416430A54336aB28765abd31a792Ad37",
721
+ JPY: "0x2AfB993C670C01e9dA1550c58e8039C1D8b8A317"
722
+ },
723
+ curveRouterAddress: "0xe6358f6a45b502477e83cc1cda759f540e4459ee"
724
+ },
725
+ {
726
+ chainName: "Polygon",
727
+ shortName: "matic",
728
+ testnet: false,
729
+ chainId: 137,
730
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/chains/137/logo.svg",
731
+ rpcUrls: [
732
+ "https://polygon-rpc.com"
733
+ ],
734
+ wrappedNativeToken: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
735
+ explorerUrl: "https://polygonscan.com",
736
+ timestamp: "2023-09-07T00:00:00+00:00",
737
+ feeTreasury: "0x5f0947253a8218894af13438ac2e2E0CeD30d234",
738
+ priceFeeds: {
739
+ AED: "0x3fd911749Fce21a38704B76FFaBcB6BeF2567F2E",
740
+ AUD: "0x062Df9C4efd2030e243ffCc398b652e8b8F95C6f",
741
+ CAD: "0xACA44ABb8B04D07D883202F99FA5E3c53ed57Fb5",
742
+ CHF: "0xc76f762CedF0F78a439727861628E0fdfE1e70c2",
743
+ CNY: "0x04bB437Aa63E098236FA47365f0268547f6EAB32",
744
+ EUR: "0x73366Fe0AA0Ded304479862808e02506FE556a98",
745
+ GBP: "0x099a2540848573e94fb1Ca0Fa420b00acbBc845a",
746
+ HKD: "0x82d43B72573f902F960126a19581BcBbA5b014F5",
747
+ ILS: "0x8d5eB34C509261533235b91350d359EdcB969D33",
748
+ INR: "0xDA0F8Df6F5dB15b346f4B8D1156722027E194E60",
749
+ JPY: "0xD647a6fC9BC6402301583C91decC5989d8Bc382D",
750
+ KRW: "0x24B820870F726dA9B0D83B0B28a93885061dbF50",
751
+ MATIC: "0xAB594600376Ec9fD91F8e885dADF0CE036862dE0",
752
+ MXN: "0x171b16562EA3476F5C61d1b8dad031DbA0768545",
753
+ NZD: "0xa302a0B8a499fD0f00449df0a490DedE21105955",
754
+ PHP: "0x218231089Bebb2A31970c3b77E96eCfb3BA006D1",
755
+ PLN: "0xB34BCE11040702f71c11529D00179B2959BcE6C0",
756
+ SEK: "0xbd92B4919ae82be8473859295dEF0e778A626302",
757
+ SGD: "0x8CE3cAc0E6635ce04783709ca3CC4F5fc5304299",
758
+ THB: "0x5164Ad28fb12a5e55946090Ec3eE1B748AFb3785",
759
+ TRY: "0xd78325DcA0F90F0FFe53cCeA1B02Bb12E1bf8FdB"
760
+ },
761
+ curveRouterAddress: "0x2a426b3Bb4fa87488387545f15D01d81352732F9"
762
+ }
763
+ ];
764
+ var chainlist = {
765
+ name: name$1,
766
+ logoUri: logoUri$1,
767
+ keywords: keywords$1,
768
+ version: version$1,
769
+ chains: chains
770
+ };
771
+
772
+ var name$2 = "Default";
773
+ var logoUri$2 = "";
774
+ var keywords$2 = [
775
+ ];
776
+ var version$2 = {
777
+ major: 0,
778
+ minor: 0,
779
+ patch: 1
780
+ };
781
+ var routers = [
782
+ {
783
+ chainId: 1,
784
+ address: "0x4cafd841df0df6da5739f729491887d64ad2794c",
785
+ timestamp: "2022-12-30T00:00:00+00:00",
786
+ version: "0.1",
787
+ fee: "0.002"
788
+ },
789
+ {
790
+ chainId: 1,
791
+ address: "0x061888246A29fEB9bb3f168CD8589B3Cf4115668",
792
+ timestamp: "2023-09-01T00:00:00+00:00",
793
+ version: "0.2",
794
+ fee: "0.002"
795
+ },
796
+ {
797
+ chainId: 5,
798
+ address: "0x8412D3c11aa605EbaF14D0b6BC7705ab45143Ee8",
799
+ timestamp: "2022-12-23T00:00:00+00:00",
800
+ version: "0.1",
801
+ fee: "0.002"
802
+ },
803
+ {
804
+ chainId: 10,
805
+ address: "0xfbA75752D73d3Fb3aA13e7BC7cfD142E73E78a8A",
806
+ timestamp: "2023-02-27T00:00:00+00:00",
807
+ version: "0.1",
808
+ fee: "0.002"
809
+ },
810
+ {
811
+ chainId: 10,
812
+ address: "0x408EB3F5A578b3eEcFe2c0cD58988fAb306885b4",
813
+ timestamp: "2023-09-01T00:00:00+00:00",
814
+ version: "0.2",
815
+ fee: "0.002"
816
+ },
817
+ {
818
+ chainId: 42161,
819
+ address: "0x334264f4fbb56a84f80df722ba765d210f0cf555",
820
+ timestamp: "2023-02-23T00:00:00+00:00",
821
+ version: "0.1",
822
+ fee: "0.002"
823
+ },
824
+ {
825
+ chainId: 42161,
826
+ address: "0x408EB3F5A578b3eEcFe2c0cD58988fAb306885b4",
827
+ timestamp: "2023-09-01T00:00:00+00:00",
828
+ version: "0.2",
829
+ fee: "0.002"
830
+ },
831
+ {
832
+ chainId: 100,
833
+ address: "0x448fabd2d16bc48ecdbe68890414de7a1b6348fd",
834
+ timestamp: "2023-07-27T00:00:00+00:00",
835
+ version: "0.1",
836
+ fee: "0.002"
837
+ },
838
+ {
839
+ chainId: 100,
840
+ address: "0x5faD44Dc5B63f1717523c340de357ef399FeA0F2",
841
+ timestamp: "2023-09-01T00:00:00+00:00",
842
+ version: "0.2",
843
+ fee: "0.002"
844
+ },
845
+ {
846
+ chainId: 137,
847
+ address: "0x8866DAFa2762346c85098C5b2201fA7CB2dA6100",
848
+ timestamp: "2023-09-07T00:00:00+00:00",
849
+ version: "0.2",
850
+ fee: "0.002"
851
+ }
852
+ ];
853
+ var routerlist = {
854
+ name: name$2,
855
+ logoUri: logoUri$2,
856
+ keywords: keywords$2,
857
+ version: version$2,
858
+ routers: routers
859
+ };
860
+
861
+ var name$3 = "Default";
862
+ var logoUri$3 = "";
863
+ var keywords$3 = [
864
+ ];
865
+ var version$3 = {
866
+ major: 0,
867
+ minor: 0,
868
+ patch: 1
869
+ };
870
+ var faucets = [
871
+ {
872
+ chainId: 5,
873
+ token: "0x33ca3889bb0032e9c3794b608a242d27e7293353",
874
+ address: "0xd2bc1d97793763b7262987a67f1945169c763389"
875
+ },
876
+ {
877
+ chainId: 5,
878
+ token: "0xe5768E2dDEc1E50Ac2672a2d75D63d36A8Ec88d9",
879
+ address: "0x5A3380C7d6A05AF3Ce68C939142658C35Efc066d"
880
+ },
881
+ {
882
+ chainId: 5,
883
+ token: "0xeB87E5d9c773d3E802989295147564985B5B358C",
884
+ address: "0xF47661BCe78194b44675547873ef58Ca8Db9b145"
885
+ }
886
+ ];
887
+ var testnetfaucets = {
888
+ name: name$3,
889
+ logoUri: logoUri$3,
890
+ keywords: keywords$3,
891
+ version: version$3,
892
+ faucets: faucets
893
+ };
894
+
895
+ var CurveRouterV13Abi = [
896
+ {
897
+ name: "TokenExchange",
898
+ inputs: [
899
+ {
900
+ name: "buyer",
901
+ type: "address",
902
+ indexed: true
903
+ },
904
+ {
905
+ name: "receiver",
906
+ type: "address",
907
+ indexed: true
908
+ },
909
+ {
910
+ name: "pool",
911
+ type: "address",
912
+ indexed: true
913
+ },
914
+ {
915
+ name: "token_sold",
916
+ type: "address",
917
+ indexed: false
918
+ },
919
+ {
920
+ name: "token_bought",
921
+ type: "address",
922
+ indexed: false
923
+ },
924
+ {
925
+ name: "amount_sold",
926
+ type: "uint256",
927
+ indexed: false
928
+ },
929
+ {
930
+ name: "amount_bought",
931
+ type: "uint256",
932
+ indexed: false
933
+ }
934
+ ],
935
+ anonymous: false,
936
+ type: "event"
937
+ },
938
+ {
939
+ name: "ExchangeMultiple",
940
+ inputs: [
941
+ {
942
+ name: "buyer",
943
+ type: "address",
944
+ indexed: true
945
+ },
946
+ {
947
+ name: "receiver",
948
+ type: "address",
949
+ indexed: true
950
+ },
951
+ {
952
+ name: "route",
953
+ type: "address[9]",
954
+ indexed: false
955
+ },
956
+ {
957
+ name: "swap_params",
958
+ type: "uint256[3][4]",
959
+ indexed: false
960
+ },
961
+ {
962
+ name: "pools",
963
+ type: "address[4]",
964
+ indexed: false
965
+ },
966
+ {
967
+ name: "amount_sold",
968
+ type: "uint256",
969
+ indexed: false
970
+ },
971
+ {
972
+ name: "amount_bought",
973
+ type: "uint256",
974
+ indexed: false
975
+ }
976
+ ],
977
+ anonymous: false,
978
+ type: "event"
979
+ },
980
+ {
981
+ stateMutability: "nonpayable",
982
+ type: "constructor",
983
+ inputs: [
984
+ {
985
+ name: "_address_provider",
986
+ type: "address"
987
+ },
988
+ {
989
+ name: "_calculator",
990
+ type: "address"
991
+ },
992
+ {
993
+ name: "_weth",
994
+ type: "address"
995
+ }
996
+ ],
997
+ outputs: [
998
+ ]
999
+ },
1000
+ {
1001
+ stateMutability: "payable",
1002
+ type: "fallback"
1003
+ },
1004
+ {
1005
+ stateMutability: "payable",
1006
+ type: "function",
1007
+ name: "exchange_with_best_rate",
1008
+ inputs: [
1009
+ {
1010
+ name: "_from",
1011
+ type: "address"
1012
+ },
1013
+ {
1014
+ name: "_to",
1015
+ type: "address"
1016
+ },
1017
+ {
1018
+ name: "_amount",
1019
+ type: "uint256"
1020
+ },
1021
+ {
1022
+ name: "_expected",
1023
+ type: "uint256"
1024
+ }
1025
+ ],
1026
+ outputs: [
1027
+ {
1028
+ name: "",
1029
+ type: "uint256"
1030
+ }
1031
+ ]
1032
+ },
1033
+ {
1034
+ stateMutability: "payable",
1035
+ type: "function",
1036
+ name: "exchange_with_best_rate",
1037
+ inputs: [
1038
+ {
1039
+ name: "_from",
1040
+ type: "address"
1041
+ },
1042
+ {
1043
+ name: "_to",
1044
+ type: "address"
1045
+ },
1046
+ {
1047
+ name: "_amount",
1048
+ type: "uint256"
1049
+ },
1050
+ {
1051
+ name: "_expected",
1052
+ type: "uint256"
1053
+ },
1054
+ {
1055
+ name: "_receiver",
1056
+ type: "address"
1057
+ }
1058
+ ],
1059
+ outputs: [
1060
+ {
1061
+ name: "",
1062
+ type: "uint256"
1063
+ }
1064
+ ]
1065
+ },
1066
+ {
1067
+ stateMutability: "payable",
1068
+ type: "function",
1069
+ name: "exchange",
1070
+ inputs: [
1071
+ {
1072
+ name: "_pool",
1073
+ type: "address"
1074
+ },
1075
+ {
1076
+ name: "_from",
1077
+ type: "address"
1078
+ },
1079
+ {
1080
+ name: "_to",
1081
+ type: "address"
1082
+ },
1083
+ {
1084
+ name: "_amount",
1085
+ type: "uint256"
1086
+ },
1087
+ {
1088
+ name: "_expected",
1089
+ type: "uint256"
1090
+ }
1091
+ ],
1092
+ outputs: [
1093
+ {
1094
+ name: "",
1095
+ type: "uint256"
1096
+ }
1097
+ ]
1098
+ },
1099
+ {
1100
+ stateMutability: "payable",
1101
+ type: "function",
1102
+ name: "exchange",
1103
+ inputs: [
1104
+ {
1105
+ name: "_pool",
1106
+ type: "address"
1107
+ },
1108
+ {
1109
+ name: "_from",
1110
+ type: "address"
1111
+ },
1112
+ {
1113
+ name: "_to",
1114
+ type: "address"
1115
+ },
1116
+ {
1117
+ name: "_amount",
1118
+ type: "uint256"
1119
+ },
1120
+ {
1121
+ name: "_expected",
1122
+ type: "uint256"
1123
+ },
1124
+ {
1125
+ name: "_receiver",
1126
+ type: "address"
1127
+ }
1128
+ ],
1129
+ outputs: [
1130
+ {
1131
+ name: "",
1132
+ type: "uint256"
1133
+ }
1134
+ ]
1135
+ },
1136
+ {
1137
+ stateMutability: "payable",
1138
+ type: "function",
1139
+ name: "exchange_multiple",
1140
+ inputs: [
1141
+ {
1142
+ name: "_route",
1143
+ type: "address[9]"
1144
+ },
1145
+ {
1146
+ name: "_swap_params",
1147
+ type: "uint256[3][4]"
1148
+ },
1149
+ {
1150
+ name: "_amount",
1151
+ type: "uint256"
1152
+ },
1153
+ {
1154
+ name: "_expected",
1155
+ type: "uint256"
1156
+ }
1157
+ ],
1158
+ outputs: [
1159
+ {
1160
+ name: "",
1161
+ type: "uint256"
1162
+ }
1163
+ ]
1164
+ },
1165
+ {
1166
+ stateMutability: "payable",
1167
+ type: "function",
1168
+ name: "exchange_multiple",
1169
+ inputs: [
1170
+ {
1171
+ name: "_route",
1172
+ type: "address[9]"
1173
+ },
1174
+ {
1175
+ name: "_swap_params",
1176
+ type: "uint256[3][4]"
1177
+ },
1178
+ {
1179
+ name: "_amount",
1180
+ type: "uint256"
1181
+ },
1182
+ {
1183
+ name: "_expected",
1184
+ type: "uint256"
1185
+ },
1186
+ {
1187
+ name: "_pools",
1188
+ type: "address[4]"
1189
+ }
1190
+ ],
1191
+ outputs: [
1192
+ {
1193
+ name: "",
1194
+ type: "uint256"
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ stateMutability: "payable",
1200
+ type: "function",
1201
+ name: "exchange_multiple",
1202
+ inputs: [
1203
+ {
1204
+ name: "_route",
1205
+ type: "address[9]"
1206
+ },
1207
+ {
1208
+ name: "_swap_params",
1209
+ type: "uint256[3][4]"
1210
+ },
1211
+ {
1212
+ name: "_amount",
1213
+ type: "uint256"
1214
+ },
1215
+ {
1216
+ name: "_expected",
1217
+ type: "uint256"
1218
+ },
1219
+ {
1220
+ name: "_pools",
1221
+ type: "address[4]"
1222
+ },
1223
+ {
1224
+ name: "_receiver",
1225
+ type: "address"
1226
+ }
1227
+ ],
1228
+ outputs: [
1229
+ {
1230
+ name: "",
1231
+ type: "uint256"
1232
+ }
1233
+ ]
1234
+ },
1235
+ {
1236
+ stateMutability: "view",
1237
+ type: "function",
1238
+ name: "get_best_rate",
1239
+ inputs: [
1240
+ {
1241
+ name: "_from",
1242
+ type: "address"
1243
+ },
1244
+ {
1245
+ name: "_to",
1246
+ type: "address"
1247
+ },
1248
+ {
1249
+ name: "_amount",
1250
+ type: "uint256"
1251
+ }
1252
+ ],
1253
+ outputs: [
1254
+ {
1255
+ name: "",
1256
+ type: "address"
1257
+ },
1258
+ {
1259
+ name: "",
1260
+ type: "uint256"
1261
+ }
1262
+ ]
1263
+ },
1264
+ {
1265
+ stateMutability: "view",
1266
+ type: "function",
1267
+ name: "get_best_rate",
1268
+ inputs: [
1269
+ {
1270
+ name: "_from",
1271
+ type: "address"
1272
+ },
1273
+ {
1274
+ name: "_to",
1275
+ type: "address"
1276
+ },
1277
+ {
1278
+ name: "_amount",
1279
+ type: "uint256"
1280
+ },
1281
+ {
1282
+ name: "_exclude_pools",
1283
+ type: "address[8]"
1284
+ }
1285
+ ],
1286
+ outputs: [
1287
+ {
1288
+ name: "",
1289
+ type: "address"
1290
+ },
1291
+ {
1292
+ name: "",
1293
+ type: "uint256"
1294
+ }
1295
+ ]
1296
+ },
1297
+ {
1298
+ stateMutability: "view",
1299
+ type: "function",
1300
+ name: "get_exchange_amount",
1301
+ inputs: [
1302
+ {
1303
+ name: "_pool",
1304
+ type: "address"
1305
+ },
1306
+ {
1307
+ name: "_from",
1308
+ type: "address"
1309
+ },
1310
+ {
1311
+ name: "_to",
1312
+ type: "address"
1313
+ },
1314
+ {
1315
+ name: "_amount",
1316
+ type: "uint256"
1317
+ }
1318
+ ],
1319
+ outputs: [
1320
+ {
1321
+ name: "",
1322
+ type: "uint256"
1323
+ }
1324
+ ]
1325
+ },
1326
+ {
1327
+ stateMutability: "view",
1328
+ type: "function",
1329
+ name: "get_input_amount",
1330
+ inputs: [
1331
+ {
1332
+ name: "_pool",
1333
+ type: "address"
1334
+ },
1335
+ {
1336
+ name: "_from",
1337
+ type: "address"
1338
+ },
1339
+ {
1340
+ name: "_to",
1341
+ type: "address"
1342
+ },
1343
+ {
1344
+ name: "_amount",
1345
+ type: "uint256"
1346
+ }
1347
+ ],
1348
+ outputs: [
1349
+ {
1350
+ name: "",
1351
+ type: "uint256"
1352
+ }
1353
+ ]
1354
+ },
1355
+ {
1356
+ stateMutability: "view",
1357
+ type: "function",
1358
+ name: "get_exchange_amounts",
1359
+ inputs: [
1360
+ {
1361
+ name: "_pool",
1362
+ type: "address"
1363
+ },
1364
+ {
1365
+ name: "_from",
1366
+ type: "address"
1367
+ },
1368
+ {
1369
+ name: "_to",
1370
+ type: "address"
1371
+ },
1372
+ {
1373
+ name: "_amounts",
1374
+ type: "uint256[100]"
1375
+ }
1376
+ ],
1377
+ outputs: [
1378
+ {
1379
+ name: "",
1380
+ type: "uint256[100]"
1381
+ }
1382
+ ]
1383
+ },
1384
+ {
1385
+ stateMutability: "view",
1386
+ type: "function",
1387
+ name: "get_exchange_multiple_amount",
1388
+ inputs: [
1389
+ {
1390
+ name: "_route",
1391
+ type: "address[9]"
1392
+ },
1393
+ {
1394
+ name: "_swap_params",
1395
+ type: "uint256[3][4]"
1396
+ },
1397
+ {
1398
+ name: "_amount",
1399
+ type: "uint256"
1400
+ }
1401
+ ],
1402
+ outputs: [
1403
+ {
1404
+ name: "",
1405
+ type: "uint256"
1406
+ }
1407
+ ]
1408
+ },
1409
+ {
1410
+ stateMutability: "view",
1411
+ type: "function",
1412
+ name: "get_exchange_multiple_amount",
1413
+ inputs: [
1414
+ {
1415
+ name: "_route",
1416
+ type: "address[9]"
1417
+ },
1418
+ {
1419
+ name: "_swap_params",
1420
+ type: "uint256[3][4]"
1421
+ },
1422
+ {
1423
+ name: "_amount",
1424
+ type: "uint256"
1425
+ },
1426
+ {
1427
+ name: "_pools",
1428
+ type: "address[4]"
1429
+ }
1430
+ ],
1431
+ outputs: [
1432
+ {
1433
+ name: "",
1434
+ type: "uint256"
1435
+ }
1436
+ ]
1437
+ },
1438
+ {
1439
+ stateMutability: "view",
1440
+ type: "function",
1441
+ name: "get_calculator",
1442
+ inputs: [
1443
+ {
1444
+ name: "_pool",
1445
+ type: "address"
1446
+ }
1447
+ ],
1448
+ outputs: [
1449
+ {
1450
+ name: "",
1451
+ type: "address"
1452
+ }
1453
+ ]
1454
+ },
1455
+ {
1456
+ stateMutability: "nonpayable",
1457
+ type: "function",
1458
+ name: "update_registry_address",
1459
+ inputs: [
1460
+ ],
1461
+ outputs: [
1462
+ {
1463
+ name: "",
1464
+ type: "bool"
1465
+ }
1466
+ ]
1467
+ },
1468
+ {
1469
+ stateMutability: "nonpayable",
1470
+ type: "function",
1471
+ name: "set_calculator",
1472
+ inputs: [
1473
+ {
1474
+ name: "_pool",
1475
+ type: "address"
1476
+ },
1477
+ {
1478
+ name: "_calculator",
1479
+ type: "address"
1480
+ }
1481
+ ],
1482
+ outputs: [
1483
+ {
1484
+ name: "",
1485
+ type: "bool"
1486
+ }
1487
+ ]
1488
+ },
1489
+ {
1490
+ stateMutability: "nonpayable",
1491
+ type: "function",
1492
+ name: "set_default_calculator",
1493
+ inputs: [
1494
+ {
1495
+ name: "_calculator",
1496
+ type: "address"
1497
+ }
1498
+ ],
1499
+ outputs: [
1500
+ {
1501
+ name: "",
1502
+ type: "bool"
1503
+ }
1504
+ ]
1505
+ },
1506
+ {
1507
+ stateMutability: "nonpayable",
1508
+ type: "function",
1509
+ name: "claim_balance",
1510
+ inputs: [
1511
+ {
1512
+ name: "_token",
1513
+ type: "address"
1514
+ }
1515
+ ],
1516
+ outputs: [
1517
+ {
1518
+ name: "",
1519
+ type: "bool"
1520
+ }
1521
+ ]
1522
+ },
1523
+ {
1524
+ stateMutability: "nonpayable",
1525
+ type: "function",
1526
+ name: "set_killed",
1527
+ inputs: [
1528
+ {
1529
+ name: "_is_killed",
1530
+ type: "bool"
1531
+ }
1532
+ ],
1533
+ outputs: [
1534
+ {
1535
+ name: "",
1536
+ type: "bool"
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ stateMutability: "view",
1542
+ type: "function",
1543
+ name: "registry",
1544
+ inputs: [
1545
+ ],
1546
+ outputs: [
1547
+ {
1548
+ name: "",
1549
+ type: "address"
1550
+ }
1551
+ ]
1552
+ },
1553
+ {
1554
+ stateMutability: "view",
1555
+ type: "function",
1556
+ name: "factory_registry",
1557
+ inputs: [
1558
+ ],
1559
+ outputs: [
1560
+ {
1561
+ name: "",
1562
+ type: "address"
1563
+ }
1564
+ ]
1565
+ },
1566
+ {
1567
+ stateMutability: "view",
1568
+ type: "function",
1569
+ name: "crypto_registry",
1570
+ inputs: [
1571
+ ],
1572
+ outputs: [
1573
+ {
1574
+ name: "",
1575
+ type: "address"
1576
+ }
1577
+ ]
1578
+ },
1579
+ {
1580
+ stateMutability: "view",
1581
+ type: "function",
1582
+ name: "default_calculator",
1583
+ inputs: [
1584
+ ],
1585
+ outputs: [
1586
+ {
1587
+ name: "",
1588
+ type: "address"
1589
+ }
1590
+ ]
1591
+ },
1592
+ {
1593
+ stateMutability: "view",
1594
+ type: "function",
1595
+ name: "is_killed",
1596
+ inputs: [
1597
+ ],
1598
+ outputs: [
1599
+ {
1600
+ name: "",
1601
+ type: "bool"
1602
+ }
1603
+ ]
1604
+ }
1605
+ ];
1606
+
1607
+ var HiroRouterV01 = [
1608
+ {
1609
+ inputs: [
1610
+ {
1611
+ internalType: "address",
1612
+ name: "_feeTreasury",
1613
+ type: "address"
1614
+ },
1615
+ {
1616
+ internalType: "uint256",
1617
+ name: "_baseFeeDivisor",
1618
+ type: "uint256"
1619
+ },
1620
+ {
1621
+ internalType: "string",
1622
+ name: "_version",
1623
+ type: "string"
1624
+ }
1625
+ ],
1626
+ stateMutability: "nonpayable",
1627
+ type: "constructor"
1628
+ },
1629
+ {
1630
+ anonymous: false,
1631
+ inputs: [
1632
+ {
1633
+ indexed: true,
1634
+ internalType: "address",
1635
+ name: "priceFeed",
1636
+ type: "address"
1637
+ },
1638
+ {
1639
+ indexed: false,
1640
+ internalType: "int256",
1641
+ name: "exchangeRate",
1642
+ type: "int256"
1643
+ }
1644
+ ],
1645
+ name: "Convert",
1646
+ type: "event"
1647
+ },
1648
+ {
1649
+ anonymous: false,
1650
+ inputs: [
1651
+ {
1652
+ indexed: true,
1653
+ internalType: "address",
1654
+ name: "sender",
1655
+ type: "address"
1656
+ },
1657
+ {
1658
+ indexed: true,
1659
+ internalType: "address",
1660
+ name: "receiver",
1661
+ type: "address"
1662
+ },
1663
+ {
1664
+ indexed: false,
1665
+ internalType: "address",
1666
+ name: "token",
1667
+ type: "address"
1668
+ },
1669
+ {
1670
+ indexed: false,
1671
+ internalType: "uint256",
1672
+ name: "amount",
1673
+ type: "uint256"
1674
+ },
1675
+ {
1676
+ indexed: false,
1677
+ internalType: "uint256",
1678
+ name: "fees",
1679
+ type: "uint256"
1680
+ },
1681
+ {
1682
+ indexed: false,
1683
+ internalType: "bytes32",
1684
+ name: "memo",
1685
+ type: "bytes32"
1686
+ }
1687
+ ],
1688
+ name: "Payment",
1689
+ type: "event"
1690
+ },
1691
+ {
1692
+ inputs: [
1693
+ {
1694
+ internalType: "address[]",
1695
+ name: "_priceFeeds",
1696
+ type: "address[]"
1697
+ },
1698
+ {
1699
+ internalType: "uint256",
1700
+ name: "_amount",
1701
+ type: "uint256"
1702
+ }
1703
+ ],
1704
+ name: "exchangeRate",
1705
+ outputs: [
1706
+ {
1707
+ internalType: "uint256",
1708
+ name: "converted",
1709
+ type: "uint256"
1710
+ },
1711
+ {
1712
+ internalType: "address",
1713
+ name: "priceFeed",
1714
+ type: "address"
1715
+ },
1716
+ {
1717
+ internalType: "int256",
1718
+ name: "price",
1719
+ type: "int256"
1720
+ }
1721
+ ],
1722
+ stateMutability: "view",
1723
+ type: "function"
1724
+ },
1725
+ {
1726
+ inputs: [
1727
+ {
1728
+ internalType: "bytes32",
1729
+ name: "_memo",
1730
+ type: "bytes32"
1731
+ },
1732
+ {
1733
+ internalType: "uint256",
1734
+ name: "_amount",
1735
+ type: "uint256"
1736
+ },
1737
+ {
1738
+ internalType: "address[]",
1739
+ name: "_priceFeeds",
1740
+ type: "address[]"
1741
+ },
1742
+ {
1743
+ internalType: "address",
1744
+ name: "_token",
1745
+ type: "address"
1746
+ },
1747
+ {
1748
+ internalType: "address",
1749
+ name: "_receiver",
1750
+ type: "address"
1751
+ },
1752
+ {
1753
+ internalType: "address",
1754
+ name: "_extraFeeReceiver",
1755
+ type: "address"
1756
+ },
1757
+ {
1758
+ internalType: "uint256",
1759
+ name: "_extraFeeDivisor",
1760
+ type: "uint256"
1761
+ }
1762
+ ],
1763
+ name: "payWithToken",
1764
+ outputs: [
1765
+ {
1766
+ internalType: "bool",
1767
+ name: "",
1768
+ type: "bool"
1769
+ }
1770
+ ],
1771
+ stateMutability: "nonpayable",
1772
+ type: "function"
1773
+ }
1774
+ ];
1775
+
1776
+ var HiroRouterV02 = [
1777
+ {
1778
+ inputs: [
1779
+ {
1780
+ internalType: "address",
1781
+ name: "_feeTreasury",
1782
+ type: "address"
1783
+ },
1784
+ {
1785
+ internalType: "uint256",
1786
+ name: "_baseFeeBps",
1787
+ type: "uint256"
1788
+ },
1789
+ {
1790
+ internalType: "string",
1791
+ name: "_version",
1792
+ type: "string"
1793
+ },
1794
+ {
1795
+ internalType: "address",
1796
+ name: "_uniswapRouter",
1797
+ type: "address"
1798
+ },
1799
+ {
1800
+ internalType: "address",
1801
+ name: "_curveRouter",
1802
+ type: "address"
1803
+ },
1804
+ {
1805
+ internalType: "address",
1806
+ name: "_wrappedNativeToken",
1807
+ type: "address"
1808
+ }
1809
+ ],
1810
+ stateMutability: "nonpayable",
1811
+ type: "constructor"
1812
+ },
1813
+ {
1814
+ anonymous: false,
1815
+ inputs: [
1816
+ {
1817
+ indexed: true,
1818
+ internalType: "address",
1819
+ name: "priceFeed",
1820
+ type: "address"
1821
+ },
1822
+ {
1823
+ indexed: false,
1824
+ internalType: "int256",
1825
+ name: "exchangeRate",
1826
+ type: "int256"
1827
+ }
1828
+ ],
1829
+ name: "Convert",
1830
+ type: "event"
1831
+ },
1832
+ {
1833
+ anonymous: false,
1834
+ inputs: [
1835
+ {
1836
+ indexed: true,
1837
+ internalType: "address",
1838
+ name: "previousOwner",
1839
+ type: "address"
1840
+ },
1841
+ {
1842
+ indexed: true,
1843
+ internalType: "address",
1844
+ name: "newOwner",
1845
+ type: "address"
1846
+ }
1847
+ ],
1848
+ name: "OwnershipTransferred",
1849
+ type: "event"
1850
+ },
1851
+ {
1852
+ anonymous: false,
1853
+ inputs: [
1854
+ {
1855
+ indexed: true,
1856
+ internalType: "address",
1857
+ name: "sender",
1858
+ type: "address"
1859
+ },
1860
+ {
1861
+ indexed: true,
1862
+ internalType: "address",
1863
+ name: "receiver",
1864
+ type: "address"
1865
+ },
1866
+ {
1867
+ indexed: false,
1868
+ internalType: "address",
1869
+ name: "token",
1870
+ type: "address"
1871
+ },
1872
+ {
1873
+ indexed: false,
1874
+ internalType: "uint256",
1875
+ name: "amount",
1876
+ type: "uint256"
1877
+ },
1878
+ {
1879
+ indexed: false,
1880
+ internalType: "uint256",
1881
+ name: "fees",
1882
+ type: "uint256"
1883
+ },
1884
+ {
1885
+ indexed: false,
1886
+ internalType: "bytes32",
1887
+ name: "memo",
1888
+ type: "bytes32"
1889
+ }
1890
+ ],
1891
+ name: "Payment",
1892
+ type: "event"
1893
+ },
1894
+ {
1895
+ inputs: [
1896
+ ],
1897
+ name: "MAX_FEE_BPS",
1898
+ outputs: [
1899
+ {
1900
+ internalType: "uint256",
1901
+ name: "",
1902
+ type: "uint256"
1903
+ }
1904
+ ],
1905
+ stateMutability: "view",
1906
+ type: "function"
1907
+ },
1908
+ {
1909
+ inputs: [
1910
+ ],
1911
+ name: "NATIVE_TOKEN",
1912
+ outputs: [
1913
+ {
1914
+ internalType: "address",
1915
+ name: "",
1916
+ type: "address"
1917
+ }
1918
+ ],
1919
+ stateMutability: "view",
1920
+ type: "function"
1921
+ },
1922
+ {
1923
+ inputs: [
1924
+ ],
1925
+ name: "baseFeeBps",
1926
+ outputs: [
1927
+ {
1928
+ internalType: "uint256",
1929
+ name: "",
1930
+ type: "uint256"
1931
+ }
1932
+ ],
1933
+ stateMutability: "view",
1934
+ type: "function"
1935
+ },
1936
+ {
1937
+ inputs: [
1938
+ {
1939
+ internalType: "uint256",
1940
+ name: "amount",
1941
+ type: "uint256"
1942
+ },
1943
+ {
1944
+ internalType: "uint256",
1945
+ name: "feeBps",
1946
+ type: "uint256"
1947
+ }
1948
+ ],
1949
+ name: "calculateFee",
1950
+ outputs: [
1951
+ {
1952
+ internalType: "uint256",
1953
+ name: "",
1954
+ type: "uint256"
1955
+ }
1956
+ ],
1957
+ stateMutability: "pure",
1958
+ type: "function"
1959
+ },
1960
+ {
1961
+ inputs: [
1962
+ ],
1963
+ name: "curveRouter",
1964
+ outputs: [
1965
+ {
1966
+ internalType: "contract ICurveRouter",
1967
+ name: "",
1968
+ type: "address"
1969
+ }
1970
+ ],
1971
+ stateMutability: "view",
1972
+ type: "function"
1973
+ },
1974
+ {
1975
+ inputs: [
1976
+ {
1977
+ internalType: "address[2]",
1978
+ name: "priceFeeds",
1979
+ type: "address[2]"
1980
+ },
1981
+ {
1982
+ internalType: "uint256",
1983
+ name: "amount",
1984
+ type: "uint256"
1985
+ }
1986
+ ],
1987
+ name: "exchangeRate",
1988
+ outputs: [
1989
+ {
1990
+ internalType: "uint256",
1991
+ name: "converted",
1992
+ type: "uint256"
1993
+ },
1994
+ {
1995
+ internalType: "address[2]",
1996
+ name: "priceFeedsUsed",
1997
+ type: "address[2]"
1998
+ },
1999
+ {
2000
+ internalType: "int256[2]",
2001
+ name: "prices",
2002
+ type: "int256[2]"
2003
+ }
2004
+ ],
2005
+ stateMutability: "view",
2006
+ type: "function"
2007
+ },
2008
+ {
2009
+ inputs: [
2010
+ ],
2011
+ name: "feeTreasury",
2012
+ outputs: [
2013
+ {
2014
+ internalType: "address",
2015
+ name: "",
2016
+ type: "address"
2017
+ }
2018
+ ],
2019
+ stateMutability: "view",
2020
+ type: "function"
2021
+ },
2022
+ {
2023
+ inputs: [
2024
+ ],
2025
+ name: "owner",
2026
+ outputs: [
2027
+ {
2028
+ internalType: "address",
2029
+ name: "",
2030
+ type: "address"
2031
+ }
2032
+ ],
2033
+ stateMutability: "view",
2034
+ type: "function"
2035
+ },
2036
+ {
2037
+ inputs: [
2038
+ {
2039
+ components: [
2040
+ {
2041
+ internalType: "address",
2042
+ name: "sender",
2043
+ type: "address"
2044
+ },
2045
+ {
2046
+ internalType: "address",
2047
+ name: "receiver",
2048
+ type: "address"
2049
+ },
2050
+ {
2051
+ internalType: "uint256",
2052
+ name: "amountIn",
2053
+ type: "uint256"
2054
+ },
2055
+ {
2056
+ internalType: "uint256",
2057
+ name: "amountOut",
2058
+ type: "uint256"
2059
+ },
2060
+ {
2061
+ internalType: "bytes32",
2062
+ name: "memo",
2063
+ type: "bytes32"
2064
+ },
2065
+ {
2066
+ internalType: "address[9]",
2067
+ name: "route",
2068
+ type: "address[9]"
2069
+ },
2070
+ {
2071
+ internalType: "uint256[3][4]",
2072
+ name: "swapParams",
2073
+ type: "uint256[3][4]"
2074
+ },
2075
+ {
2076
+ internalType: "address[4]",
2077
+ name: "factoryAddresses",
2078
+ type: "address[4]"
2079
+ },
2080
+ {
2081
+ internalType: "address[2]",
2082
+ name: "priceFeeds",
2083
+ type: "address[2]"
2084
+ },
2085
+ {
2086
+ internalType: "address",
2087
+ name: "extraFeeReceiver",
2088
+ type: "address"
2089
+ },
2090
+ {
2091
+ internalType: "uint256",
2092
+ name: "extraFeeBps",
2093
+ type: "uint256"
2094
+ },
2095
+ {
2096
+ internalType: "bool",
2097
+ name: "returnRemainder",
2098
+ type: "bool"
2099
+ }
2100
+ ],
2101
+ internalType: "struct HiroRouterV1.HiroCurveParams",
2102
+ name: "params",
2103
+ type: "tuple"
2104
+ }
2105
+ ],
2106
+ name: "payWithCurve",
2107
+ outputs: [
2108
+ {
2109
+ internalType: "uint256",
2110
+ name: "",
2111
+ type: "uint256"
2112
+ }
2113
+ ],
2114
+ stateMutability: "payable",
2115
+ type: "function"
2116
+ },
2117
+ {
2118
+ inputs: [
2119
+ {
2120
+ internalType: "bytes32",
2121
+ name: "memo",
2122
+ type: "bytes32"
2123
+ },
2124
+ {
2125
+ internalType: "uint256",
2126
+ name: "amount",
2127
+ type: "uint256"
2128
+ },
2129
+ {
2130
+ internalType: "address[2]",
2131
+ name: "priceFeeds",
2132
+ type: "address[2]"
2133
+ },
2134
+ {
2135
+ internalType: "address",
2136
+ name: "token",
2137
+ type: "address"
2138
+ },
2139
+ {
2140
+ internalType: "address",
2141
+ name: "receiver",
2142
+ type: "address"
2143
+ },
2144
+ {
2145
+ internalType: "address",
2146
+ name: "extraFeeReceiver",
2147
+ type: "address"
2148
+ },
2149
+ {
2150
+ internalType: "uint256",
2151
+ name: "extraFeeBps",
2152
+ type: "uint256"
2153
+ }
2154
+ ],
2155
+ name: "payWithToken",
2156
+ outputs: [
2157
+ {
2158
+ internalType: "bool",
2159
+ name: "",
2160
+ type: "bool"
2161
+ }
2162
+ ],
2163
+ stateMutability: "payable",
2164
+ type: "function"
2165
+ },
2166
+ {
2167
+ inputs: [
2168
+ {
2169
+ components: [
2170
+ {
2171
+ internalType: "address",
2172
+ name: "sender",
2173
+ type: "address"
2174
+ },
2175
+ {
2176
+ internalType: "address",
2177
+ name: "receiver",
2178
+ type: "address"
2179
+ },
2180
+ {
2181
+ internalType: "uint256",
2182
+ name: "amountIn",
2183
+ type: "uint256"
2184
+ },
2185
+ {
2186
+ internalType: "uint256",
2187
+ name: "amountOut",
2188
+ type: "uint256"
2189
+ },
2190
+ {
2191
+ internalType: "bytes32",
2192
+ name: "memo",
2193
+ type: "bytes32"
2194
+ },
2195
+ {
2196
+ internalType: "bytes",
2197
+ name: "path",
2198
+ type: "bytes"
2199
+ },
2200
+ {
2201
+ internalType: "address[2]",
2202
+ name: "priceFeeds",
2203
+ type: "address[2]"
2204
+ },
2205
+ {
2206
+ internalType: "address",
2207
+ name: "extraFeeReceiver",
2208
+ type: "address"
2209
+ },
2210
+ {
2211
+ internalType: "uint256",
2212
+ name: "extraFeeBps",
2213
+ type: "uint256"
2214
+ },
2215
+ {
2216
+ internalType: "bool",
2217
+ name: "returnRemainder",
2218
+ type: "bool"
2219
+ },
2220
+ {
2221
+ internalType: "enum HiroRouterV1.SwapType",
2222
+ name: "swapType",
2223
+ type: "uint8"
2224
+ }
2225
+ ],
2226
+ internalType: "struct HiroRouterV1.HiroUniswapParams",
2227
+ name: "params",
2228
+ type: "tuple"
2229
+ }
2230
+ ],
2231
+ name: "payWithUniswap",
2232
+ outputs: [
2233
+ {
2234
+ internalType: "uint256",
2235
+ name: "",
2236
+ type: "uint256"
2237
+ }
2238
+ ],
2239
+ stateMutability: "payable",
2240
+ type: "function"
2241
+ },
2242
+ {
2243
+ inputs: [
2244
+ ],
2245
+ name: "renounceOwnership",
2246
+ outputs: [
2247
+ ],
2248
+ stateMutability: "nonpayable",
2249
+ type: "function"
2250
+ },
2251
+ {
2252
+ inputs: [
2253
+ {
2254
+ internalType: "address",
2255
+ name: "token",
2256
+ type: "address"
2257
+ }
2258
+ ],
2259
+ name: "sweep",
2260
+ outputs: [
2261
+ ],
2262
+ stateMutability: "nonpayable",
2263
+ type: "function"
2264
+ },
2265
+ {
2266
+ inputs: [
2267
+ {
2268
+ internalType: "address",
2269
+ name: "newOwner",
2270
+ type: "address"
2271
+ }
2272
+ ],
2273
+ name: "transferOwnership",
2274
+ outputs: [
2275
+ ],
2276
+ stateMutability: "nonpayable",
2277
+ type: "function"
2278
+ },
2279
+ {
2280
+ inputs: [
2281
+ ],
2282
+ name: "uniswapRouter",
2283
+ outputs: [
2284
+ {
2285
+ internalType: "contract ISwapRouter",
2286
+ name: "",
2287
+ type: "address"
2288
+ }
2289
+ ],
2290
+ stateMutability: "view",
2291
+ type: "function"
2292
+ },
2293
+ {
2294
+ inputs: [
2295
+ ],
2296
+ name: "version",
2297
+ outputs: [
2298
+ {
2299
+ internalType: "string",
2300
+ name: "",
2301
+ type: "string"
2302
+ }
2303
+ ],
2304
+ stateMutability: "view",
2305
+ type: "function"
2306
+ },
2307
+ {
2308
+ inputs: [
2309
+ ],
2310
+ name: "wrappedNativeToken",
2311
+ outputs: [
2312
+ {
2313
+ internalType: "contract IWETH9",
2314
+ name: "",
2315
+ type: "address"
2316
+ }
2317
+ ],
2318
+ stateMutability: "view",
2319
+ type: "function"
2320
+ },
2321
+ {
2322
+ stateMutability: "payable",
2323
+ type: "receive"
2324
+ }
2325
+ ];
2326
+
2327
+ var HIRO_ROUTER_ABIS = {
2328
+ "0.1": HiroRouterV01,
2329
+ "0.2": HiroRouterV02,
2330
+ "test": HiroRouterV02
2331
+ };
2332
+ var CURVE_ROUTER_ABI = CurveRouterV13Abi;
2333
+
2334
+ var TokenListTagNames;
2335
+
2336
+ (function (TokenListTagNames) {
2337
+ // Networks
2338
+ TokenListTagNames["MAINNET"] = "Mainnet";
2339
+ TokenListTagNames["OPTIMISM"] = "Optimism";
2340
+ TokenListTagNames["ARBITRUM"] = "Arbitrum";
2341
+ TokenListTagNames["AVALANCHE"] = "Avalanche";
2342
+ TokenListTagNames["TESTNET"] = "TESTNET"; // Coin/currency
2343
+
2344
+ TokenListTagNames["STABLECOIN"] = "Stablecoin";
2345
+ TokenListTagNames["USD"] = "USD";
2346
+ TokenListTagNames["EUR"] = "EUR"; // Misc
2347
+
2348
+ TokenListTagNames["TOP_10"] = "Top10";
2349
+ TokenListTagNames["NATIVE_TOKEN"] = "Native Token";
2350
+ })(TokenListTagNames || (TokenListTagNames = {}));
2351
+
2352
+ /**
2353
+ * Comparator function that allows sorting version from lowest to highest
2354
+ * @param versionA version A to compare
2355
+ * @param versionB version B to compare
2356
+ * @returns -1 if versionA comes before versionB, 0 if versionA is equal to version B, and 1 if version A comes after version B
2357
+ */
2358
+ function versionComparator(versionA, versionB) {
2359
+ if (versionA.major < versionB.major) {
2360
+ return -1;
2361
+ } else if (versionA.major > versionB.major) {
2362
+ return 1;
2363
+ } else if (versionA.minor < versionB.minor) {
2364
+ return -1;
2365
+ } else if (versionA.minor > versionB.minor) {
2366
+ return 1;
2367
+ } else if (versionA.patch < versionB.patch) {
2368
+ return -1;
2369
+ } else if (versionA.patch > versionB.patch) {
2370
+ return 1;
2371
+ } else {
2372
+ return 0;
2373
+ }
2374
+ }
2375
+
2376
+ /**
2377
+ * Returns true if versionB is an update over versionA
2378
+ */
2379
+
2380
+ function isVersionUpdate(base, update) {
2381
+ return versionComparator(base, update) < 0;
2382
+ }
2383
+
2384
+ /**
2385
+ * Enum describing types of version differences
2386
+ */
2387
+ var VersionUpgrade;
2388
+
2389
+ (function (VersionUpgrade) {
2390
+ VersionUpgrade[VersionUpgrade["NONE"] = 0] = "NONE";
2391
+ VersionUpgrade[VersionUpgrade["PATCH"] = 1] = "PATCH";
2392
+ VersionUpgrade[VersionUpgrade["MINOR"] = 2] = "MINOR";
2393
+ VersionUpgrade[VersionUpgrade["MAJOR"] = 3] = "MAJOR";
2394
+ })(VersionUpgrade || (VersionUpgrade = {}));
2395
+ /**
2396
+ * Return the upgrade type from the base version to the update version.
2397
+ * Note that downgrades and equivalent versions are both treated as `NONE`.
2398
+ * @param base base list
2399
+ * @param update update to the list
2400
+ */
2401
+
2402
+
2403
+ function getVersionUpgrade(base, update) {
2404
+ if (update.major > base.major) {
2405
+ return VersionUpgrade.MAJOR;
2406
+ }
2407
+
2408
+ if (update.major < base.major) {
2409
+ return VersionUpgrade.NONE;
2410
+ }
2411
+
2412
+ if (update.minor > base.minor) {
2413
+ return VersionUpgrade.MINOR;
2414
+ }
2415
+
2416
+ if (update.minor < base.minor) {
2417
+ return VersionUpgrade.NONE;
2418
+ }
2419
+
2420
+ return update.patch > base.patch ? VersionUpgrade.PATCH : VersionUpgrade.NONE;
2421
+ }
2422
+
2423
+ /**
2424
+ * compares two token info key values
2425
+ * this subset of full deep equal functionality does not work on objects or object arrays
2426
+ * @param a comparison item a
2427
+ * @param b comparison item b
2428
+ */
2429
+ function compareTokenInfoProperty(a, b) {
2430
+ if (a === b) return true;
2431
+ if (typeof a !== typeof b) return false;
2432
+
2433
+ if (Array.isArray(a) && Array.isArray(b)) {
2434
+ return a.every(function (el, i) {
2435
+ return b[i] === el;
2436
+ });
2437
+ }
2438
+
2439
+ return false;
2440
+ }
2441
+ /**
2442
+ * Computes the diff of a token list where the first argument is the base and the second argument is the updated list.
2443
+ * @param base base list
2444
+ * @param update updated list
2445
+ */
2446
+
2447
+
2448
+ function diffTokenLists(base, update) {
2449
+ var indexedBase = base.reduce(function (memo, tokenInfo) {
2450
+ if (!memo[tokenInfo.chainId]) memo[tokenInfo.chainId] = {};
2451
+ memo[tokenInfo.chainId][tokenInfo.address] = tokenInfo;
2452
+ return memo;
2453
+ }, {});
2454
+ var newListUpdates = update.reduce(function (memo, tokenInfo) {
2455
+ var _indexedBase$tokenInf;
2456
+
2457
+ var baseToken = (_indexedBase$tokenInf = indexedBase[tokenInfo.chainId]) == null ? void 0 : _indexedBase$tokenInf[tokenInfo.address];
2458
+
2459
+ if (!baseToken) {
2460
+ memo.added.push(tokenInfo);
2461
+ } else {
2462
+ var changes = Object.keys(tokenInfo).filter(function (s) {
2463
+ return s !== "address" && s !== "chainId";
2464
+ }).filter(function (s) {
2465
+ return !compareTokenInfoProperty(tokenInfo[s], baseToken[s]);
2466
+ });
2467
+
2468
+ if (changes.length > 0) {
2469
+ if (!memo.changed[tokenInfo.chainId]) {
2470
+ memo.changed[tokenInfo.chainId] = {};
2471
+ }
2472
+
2473
+ memo.changed[tokenInfo.chainId][tokenInfo.address] = changes;
2474
+ }
2475
+ }
2476
+
2477
+ if (!memo.index[tokenInfo.chainId]) {
2478
+ var _memo$index$tokenInfo;
2479
+
2480
+ memo.index[tokenInfo.chainId] = (_memo$index$tokenInfo = {}, _memo$index$tokenInfo[tokenInfo.address] = true, _memo$index$tokenInfo);
2481
+ } else {
2482
+ memo.index[tokenInfo.chainId][tokenInfo.address] = true;
2483
+ }
2484
+
2485
+ return memo;
2486
+ }, {
2487
+ added: [],
2488
+ changed: {},
2489
+ index: {}
2490
+ });
2491
+ var removed = base.reduce(function (list, curr) {
2492
+ if (!newListUpdates.index[curr.chainId] || !newListUpdates.index[curr.chainId][curr.address]) {
2493
+ list.push(curr);
2494
+ }
2495
+
2496
+ return list;
2497
+ }, []);
2498
+ return {
2499
+ added: newListUpdates.added,
2500
+ changed: newListUpdates.changed,
2501
+ removed: removed
2502
+ };
2503
+ }
2504
+
2505
+ /**
2506
+ * Returns the minimum version bump for the given list
2507
+ * @param baseList the base list of tokens
2508
+ * @param updatedList the updated list of tokens
2509
+ */
2510
+
2511
+ function minVersionBump(baseList, updatedList) {
2512
+ var diff = diffTokenLists(baseList, updatedList);
2513
+ if (diff.removed.length > 0) return VersionUpgrade.MAJOR;
2514
+ if (diff.added.length > 0) return VersionUpgrade.MINOR;
2515
+ if (Object.keys(diff.changed).length > 0) return VersionUpgrade.PATCH;
2516
+ return VersionUpgrade.NONE;
2517
+ }
2518
+
2519
+ /**
2520
+ * Returns the next version of the list given a base version and the upgrade type
2521
+ * @param base current version
2522
+ * @param bump the upgrade type
2523
+ */
2524
+
2525
+ function nextVersion(base, bump) {
2526
+ switch (bump) {
2527
+ case VersionUpgrade.NONE:
2528
+ return base;
2529
+
2530
+ case VersionUpgrade.MAJOR:
2531
+ return {
2532
+ major: base.major + 1,
2533
+ minor: 0,
2534
+ patch: 0
2535
+ };
2536
+
2537
+ case VersionUpgrade.MINOR:
2538
+ return {
2539
+ major: base.major,
2540
+ minor: base.minor + 1,
2541
+ patch: 0
2542
+ };
2543
+
2544
+ case VersionUpgrade.PATCH:
2545
+ return {
2546
+ major: base.major,
2547
+ minor: base.minor,
2548
+ patch: base.patch + 1
2549
+ };
2550
+ }
2551
+ }
2552
+
2553
+ function getChain(chainId) {
2554
+ return chainlist.chains.find(function (needle) {
2555
+ return needle.chainId === chainId;
2556
+ });
2557
+ }
2558
+ function getTokenByAddress(tokenAddress, chainId) {
2559
+ var _tokenlist$tokens$fin;
2560
+
2561
+ return (_tokenlist$tokens$fin = tokenlist.tokens.find(function (token) {
2562
+ return token.address === tokenAddress && (!chainId || token.chainId === chainId);
2563
+ })) != null ? _tokenlist$tokens$fin : null;
2564
+ }
2565
+ function getTokenBySymbol(tokenSymbol, chainId) {
2566
+ var _tokenlist$tokens$fin2;
2567
+
2568
+ return (_tokenlist$tokens$fin2 = tokenlist.tokens.find(function (token) {
2569
+ return token.symbol === tokenSymbol && (!chainId || token.chainId === chainId);
2570
+ })) != null ? _tokenlist$tokens$fin2 : null;
2571
+ }
2572
+ function getTokens(chainId) {
2573
+ return tokenlist.tokens.filter(function (needle) {
2574
+ return needle.chainId === chainId;
2575
+ });
2576
+ }
2577
+ function getFaucetAddress(tokenInfo) {
2578
+ return testnetfaucets.faucets.find(function (needle) {
2579
+ return needle.token === tokenInfo.address && needle.chainId === tokenInfo.chainId;
2580
+ });
2581
+ }
2582
+ function getRouters(chainId) {
2583
+ return routerlist.routers.filter(function (needle) {
2584
+ return needle.chainId === chainId;
2585
+ });
2586
+ }
2587
+ function getRouter(chainId, version) {
2588
+ return routerlist.routers.find(function (needle) {
2589
+ return needle.chainId === chainId && needle.version === version;
2590
+ });
2591
+ }
2592
+ function getLatestRouter(chainId) {
2593
+ var sorted = getRouters(chainId).sort(function (a, b) {
2594
+ return Date.parse(a.timestamp) - Date.parse(b.timestamp);
2595
+ });
2596
+ return sorted[sorted.length - 1];
2597
+ }
2598
+ function getShortNames() {
2599
+ return chainlist.chains.map(function (chain) {
2600
+ return chain.shortName;
2601
+ });
2602
+ }
2603
+
2604
+ export { CURVE_ROUTER_ABI, HIRO_ROUTER_ABIS, TokenListTagNames, VersionUpgrade, chainlist, diffTokenLists, getChain, getFaucetAddress, getLatestRouter, getRouter, getRouters, getShortNames, getTokenByAddress, getTokenBySymbol, getTokens, getVersionUpgrade, isVersionUpdate, minVersionBump, nextVersion, routerlist, tokenlist, tokenlist as tokenschema, versionComparator };
2605
+ //# sourceMappingURL=tokenlists.esm.js.map