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