@yodlpay/tokenlists 0.3.40 → 0.3.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chainlist-v1.json +10 -25
- package/dist/routerlist-v1.json +42 -0
- package/dist/tokenlist-v1.json +0 -15
- package/dist/tokenlists.cjs.development.js +633 -16
- package/dist/tokenlists.cjs.development.js.map +1 -1
- package/dist/tokenlists.cjs.production.min.js +1 -1
- package/dist/tokenlists.cjs.production.min.js.map +1 -1
- package/dist/tokenlists.esm.js +633 -16
- package/dist/tokenlists.esm.js.map +1 -1
- package/package.json +3 -5
package/dist/tokenlists.esm.js
CHANGED
|
@@ -22,21 +22,6 @@ var tokens = [
|
|
|
22
22
|
],
|
|
23
23
|
address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
|
|
24
24
|
},
|
|
25
|
-
{
|
|
26
|
-
chainId: 1,
|
|
27
|
-
coinGeckoId: "pyusd",
|
|
28
|
-
name: "Paypal USD",
|
|
29
|
-
symbol: "PYUSD",
|
|
30
|
-
currency: "USD",
|
|
31
|
-
logoUri: "https://assets.coingecko.com/coins/images/31212/standard/PYUSD_Logo_%282%29.png",
|
|
32
|
-
decimals: 6,
|
|
33
|
-
tags: [
|
|
34
|
-
"Mainnet",
|
|
35
|
-
"Native Token",
|
|
36
|
-
"Top10"
|
|
37
|
-
],
|
|
38
|
-
address: "0x6c3ea9036406852006290770bedfcaba0e23a0e8"
|
|
39
|
-
},
|
|
40
25
|
{
|
|
41
26
|
chainId: 10,
|
|
42
27
|
coinGeckoId: "ethereum",
|
|
@@ -836,6 +821,7 @@ var chains = [
|
|
|
836
821
|
timestamp: "2024-06-17T14:52:05+00:00",
|
|
837
822
|
feeTreasury: "0x46959a8a332eca1a05Bd4F18115b8F2E1C2F2f05",
|
|
838
823
|
priceFeeds: {
|
|
824
|
+
BRL: "0x0b0E64c05083FdF9ED7C5D3d8262c4216eFc9394",
|
|
839
825
|
EUR: "0xc91D87E81faB8f93699ECf7Ee9B44D11e1D53F0F"
|
|
840
826
|
},
|
|
841
827
|
tokenFeeds: {
|
|
@@ -914,6 +900,13 @@ var routers = [
|
|
|
914
900
|
version: "0.2",
|
|
915
901
|
fee: "0.002"
|
|
916
902
|
},
|
|
903
|
+
{
|
|
904
|
+
chainId: 1,
|
|
905
|
+
address: "0x3E30748c33981E97CBA36d4Fc5eD0237E8Bab52A",
|
|
906
|
+
timestamp: "2024-06-02T00:00:00+00:00",
|
|
907
|
+
version: "0.3",
|
|
908
|
+
fee: "0.002"
|
|
909
|
+
},
|
|
917
910
|
{
|
|
918
911
|
chainId: 5,
|
|
919
912
|
address: "0x8412D3c11aa605EbaF14D0b6BC7705ab45143Ee8",
|
|
@@ -935,6 +928,13 @@ var routers = [
|
|
|
935
928
|
version: "0.2",
|
|
936
929
|
fee: "0.002"
|
|
937
930
|
},
|
|
931
|
+
{
|
|
932
|
+
chainId: 10,
|
|
933
|
+
address: "0x2BaE9Bb53BCe89c760dBfA55D854D43ab96EE19f",
|
|
934
|
+
timestamp: "2024-06-20T00:00:00+00:00",
|
|
935
|
+
version: "0.3",
|
|
936
|
+
fee: "0.002"
|
|
937
|
+
},
|
|
938
938
|
{
|
|
939
939
|
chainId: 42161,
|
|
940
940
|
address: "0x334264f4fbb56a84f80df722ba765d210f0cf555",
|
|
@@ -949,6 +949,13 @@ var routers = [
|
|
|
949
949
|
version: "0.2",
|
|
950
950
|
fee: "0.002"
|
|
951
951
|
},
|
|
952
|
+
{
|
|
953
|
+
chainId: 42161,
|
|
954
|
+
address: "0x2bae9bb53bce89c760dbfa55d854d43ab96ee19f",
|
|
955
|
+
timestamp: "2024-06-20T00:00:00+00:00",
|
|
956
|
+
version: "0.3",
|
|
957
|
+
fee: "0.002"
|
|
958
|
+
},
|
|
952
959
|
{
|
|
953
960
|
chainId: 100,
|
|
954
961
|
address: "0x448fabd2d16bc48ecdbe68890414de7a1b6348fd",
|
|
@@ -963,6 +970,13 @@ var routers = [
|
|
|
963
970
|
version: "0.2",
|
|
964
971
|
fee: "0.002"
|
|
965
972
|
},
|
|
973
|
+
{
|
|
974
|
+
chainId: 100,
|
|
975
|
+
address: "0x2BaE9Bb53BCe89c760dBfA55D854D43ab96EE19f",
|
|
976
|
+
timestamp: "2024-06-20T00:00:00+00:00",
|
|
977
|
+
version: "0.3",
|
|
978
|
+
fee: "0.002"
|
|
979
|
+
},
|
|
966
980
|
{
|
|
967
981
|
chainId: 137,
|
|
968
982
|
address: "0x8866DAFa2762346c85098C5b2201fA7CB2dA6100",
|
|
@@ -970,6 +984,13 @@ var routers = [
|
|
|
970
984
|
version: "0.2",
|
|
971
985
|
fee: "0.002"
|
|
972
986
|
},
|
|
987
|
+
{
|
|
988
|
+
chainId: 137,
|
|
989
|
+
address: "0x42ecf39814824a684529d57e1635d30a90fb9c33",
|
|
990
|
+
timestamp: "2024-06-20T00:00:00+00:00",
|
|
991
|
+
version: "0.3",
|
|
992
|
+
fee: "0.002"
|
|
993
|
+
},
|
|
973
994
|
{
|
|
974
995
|
chainId: 8453,
|
|
975
996
|
address: "0x2BaE9Bb53BCe89c760dBfA55D854D43ab96EE19f",
|
|
@@ -983,6 +1004,13 @@ var routers = [
|
|
|
983
1004
|
timestamp: "2024-06-18T17:50:00+00:00",
|
|
984
1005
|
version: "0.2",
|
|
985
1006
|
fee: "0.002"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
chainId: 8453,
|
|
1010
|
+
address: "0x2bfDCe58C5f3533617013aa2e4f8C6BD6dc4398e",
|
|
1011
|
+
timestamp: "2024-06-20T15:50:00+00:00",
|
|
1012
|
+
version: "0.3",
|
|
1013
|
+
fee: "0.002"
|
|
986
1014
|
}
|
|
987
1015
|
];
|
|
988
1016
|
var routerlist = {
|
|
@@ -2459,10 +2487,599 @@ var HiroRouterV02 = [
|
|
|
2459
2487
|
}
|
|
2460
2488
|
];
|
|
2461
2489
|
|
|
2490
|
+
var HiroRouterV03 = [
|
|
2491
|
+
{
|
|
2492
|
+
inputs: [
|
|
2493
|
+
{
|
|
2494
|
+
internalType: "address",
|
|
2495
|
+
name: "_feeTreasury",
|
|
2496
|
+
type: "address"
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
internalType: "uint256",
|
|
2500
|
+
name: "_baseFeeBps",
|
|
2501
|
+
type: "uint256"
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
internalType: "string",
|
|
2505
|
+
name: "_version",
|
|
2506
|
+
type: "string"
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
internalType: "address",
|
|
2510
|
+
name: "_uniswapRouter",
|
|
2511
|
+
type: "address"
|
|
2512
|
+
},
|
|
2513
|
+
{
|
|
2514
|
+
internalType: "address",
|
|
2515
|
+
name: "_curveRouter",
|
|
2516
|
+
type: "address"
|
|
2517
|
+
},
|
|
2518
|
+
{
|
|
2519
|
+
internalType: "address",
|
|
2520
|
+
name: "_wrappedNativeToken",
|
|
2521
|
+
type: "address"
|
|
2522
|
+
}
|
|
2523
|
+
],
|
|
2524
|
+
stateMutability: "nonpayable",
|
|
2525
|
+
type: "constructor"
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
anonymous: false,
|
|
2529
|
+
inputs: [
|
|
2530
|
+
{
|
|
2531
|
+
indexed: true,
|
|
2532
|
+
internalType: "address",
|
|
2533
|
+
name: "priceFeed0",
|
|
2534
|
+
type: "address"
|
|
2535
|
+
},
|
|
2536
|
+
{
|
|
2537
|
+
indexed: true,
|
|
2538
|
+
internalType: "address",
|
|
2539
|
+
name: "priceFeed1",
|
|
2540
|
+
type: "address"
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
indexed: false,
|
|
2544
|
+
internalType: "int256",
|
|
2545
|
+
name: "exchangeRate0",
|
|
2546
|
+
type: "int256"
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
indexed: false,
|
|
2550
|
+
internalType: "int256",
|
|
2551
|
+
name: "exchangeRate1",
|
|
2552
|
+
type: "int256"
|
|
2553
|
+
}
|
|
2554
|
+
],
|
|
2555
|
+
name: "Convert",
|
|
2556
|
+
type: "event"
|
|
2557
|
+
},
|
|
2558
|
+
{
|
|
2559
|
+
anonymous: false,
|
|
2560
|
+
inputs: [
|
|
2561
|
+
{
|
|
2562
|
+
indexed: true,
|
|
2563
|
+
internalType: "address",
|
|
2564
|
+
name: "previousOwner",
|
|
2565
|
+
type: "address"
|
|
2566
|
+
},
|
|
2567
|
+
{
|
|
2568
|
+
indexed: true,
|
|
2569
|
+
internalType: "address",
|
|
2570
|
+
name: "newOwner",
|
|
2571
|
+
type: "address"
|
|
2572
|
+
}
|
|
2573
|
+
],
|
|
2574
|
+
name: "OwnershipTransferred",
|
|
2575
|
+
type: "event"
|
|
2576
|
+
},
|
|
2577
|
+
{
|
|
2578
|
+
inputs: [
|
|
2579
|
+
],
|
|
2580
|
+
name: "renounceOwnership",
|
|
2581
|
+
outputs: [
|
|
2582
|
+
],
|
|
2583
|
+
stateMutability: "nonpayable",
|
|
2584
|
+
type: "function"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
inputs: [
|
|
2588
|
+
{
|
|
2589
|
+
internalType: "address",
|
|
2590
|
+
name: "token",
|
|
2591
|
+
type: "address"
|
|
2592
|
+
}
|
|
2593
|
+
],
|
|
2594
|
+
name: "sweep",
|
|
2595
|
+
outputs: [
|
|
2596
|
+
],
|
|
2597
|
+
stateMutability: "nonpayable",
|
|
2598
|
+
type: "function"
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
inputs: [
|
|
2602
|
+
{
|
|
2603
|
+
internalType: "address",
|
|
2604
|
+
name: "newOwner",
|
|
2605
|
+
type: "address"
|
|
2606
|
+
}
|
|
2607
|
+
],
|
|
2608
|
+
name: "transferOwnership",
|
|
2609
|
+
outputs: [
|
|
2610
|
+
],
|
|
2611
|
+
stateMutability: "nonpayable",
|
|
2612
|
+
type: "function"
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
anonymous: false,
|
|
2616
|
+
inputs: [
|
|
2617
|
+
{
|
|
2618
|
+
indexed: true,
|
|
2619
|
+
internalType: "address",
|
|
2620
|
+
name: "sender",
|
|
2621
|
+
type: "address"
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
indexed: true,
|
|
2625
|
+
internalType: "address",
|
|
2626
|
+
name: "receiver",
|
|
2627
|
+
type: "address"
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
indexed: false,
|
|
2631
|
+
internalType: "address",
|
|
2632
|
+
name: "token",
|
|
2633
|
+
type: "address"
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
indexed: false,
|
|
2637
|
+
internalType: "uint256",
|
|
2638
|
+
name: "amount",
|
|
2639
|
+
type: "uint256"
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
indexed: false,
|
|
2643
|
+
internalType: "uint256",
|
|
2644
|
+
name: "fees",
|
|
2645
|
+
type: "uint256"
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
indexed: false,
|
|
2649
|
+
internalType: "bytes32",
|
|
2650
|
+
name: "memo",
|
|
2651
|
+
type: "bytes32"
|
|
2652
|
+
}
|
|
2653
|
+
],
|
|
2654
|
+
name: "Yodl",
|
|
2655
|
+
type: "event"
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
anonymous: false,
|
|
2659
|
+
inputs: [
|
|
2660
|
+
{
|
|
2661
|
+
indexed: true,
|
|
2662
|
+
internalType: "address",
|
|
2663
|
+
name: "sender",
|
|
2664
|
+
type: "address"
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
indexed: true,
|
|
2668
|
+
internalType: "address",
|
|
2669
|
+
name: "receiver",
|
|
2670
|
+
type: "address"
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
indexed: true,
|
|
2674
|
+
internalType: "uint256",
|
|
2675
|
+
name: "amount",
|
|
2676
|
+
type: "uint256"
|
|
2677
|
+
}
|
|
2678
|
+
],
|
|
2679
|
+
name: "YodlNativeTokenTransfer",
|
|
2680
|
+
type: "event"
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
inputs: [
|
|
2684
|
+
{
|
|
2685
|
+
components: [
|
|
2686
|
+
{
|
|
2687
|
+
internalType: "address",
|
|
2688
|
+
name: "sender",
|
|
2689
|
+
type: "address"
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
internalType: "address",
|
|
2693
|
+
name: "receiver",
|
|
2694
|
+
type: "address"
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
internalType: "uint256",
|
|
2698
|
+
name: "amountIn",
|
|
2699
|
+
type: "uint256"
|
|
2700
|
+
},
|
|
2701
|
+
{
|
|
2702
|
+
internalType: "uint256",
|
|
2703
|
+
name: "amountOut",
|
|
2704
|
+
type: "uint256"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
internalType: "bytes32",
|
|
2708
|
+
name: "memo",
|
|
2709
|
+
type: "bytes32"
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
internalType: "address[9]",
|
|
2713
|
+
name: "route",
|
|
2714
|
+
type: "address[9]"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
internalType: "uint256[3][4]",
|
|
2718
|
+
name: "swapParams",
|
|
2719
|
+
type: "uint256[3][4]"
|
|
2720
|
+
},
|
|
2721
|
+
{
|
|
2722
|
+
internalType: "address[4]",
|
|
2723
|
+
name: "factoryAddresses",
|
|
2724
|
+
type: "address[4]"
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
internalType: "address[2]",
|
|
2728
|
+
name: "priceFeeds",
|
|
2729
|
+
type: "address[2]"
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
internalType: "address",
|
|
2733
|
+
name: "extraFeeReceiver",
|
|
2734
|
+
type: "address"
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
internalType: "uint256",
|
|
2738
|
+
name: "extraFeeBps",
|
|
2739
|
+
type: "uint256"
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
internalType: "bool",
|
|
2743
|
+
name: "returnRemainder",
|
|
2744
|
+
type: "bool"
|
|
2745
|
+
}
|
|
2746
|
+
],
|
|
2747
|
+
internalType: "struct YodlRouterV1.YodlCurveParams",
|
|
2748
|
+
name: "params",
|
|
2749
|
+
type: "tuple"
|
|
2750
|
+
}
|
|
2751
|
+
],
|
|
2752
|
+
name: "yodlWithCurve",
|
|
2753
|
+
outputs: [
|
|
2754
|
+
{
|
|
2755
|
+
internalType: "uint256",
|
|
2756
|
+
name: "",
|
|
2757
|
+
type: "uint256"
|
|
2758
|
+
}
|
|
2759
|
+
],
|
|
2760
|
+
stateMutability: "payable",
|
|
2761
|
+
type: "function"
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
inputs: [
|
|
2765
|
+
{
|
|
2766
|
+
internalType: "bytes32",
|
|
2767
|
+
name: "memo",
|
|
2768
|
+
type: "bytes32"
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
internalType: "uint256",
|
|
2772
|
+
name: "amount",
|
|
2773
|
+
type: "uint256"
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
internalType: "address[2]",
|
|
2777
|
+
name: "priceFeeds",
|
|
2778
|
+
type: "address[2]"
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
internalType: "address",
|
|
2782
|
+
name: "token",
|
|
2783
|
+
type: "address"
|
|
2784
|
+
},
|
|
2785
|
+
{
|
|
2786
|
+
internalType: "address",
|
|
2787
|
+
name: "receiver",
|
|
2788
|
+
type: "address"
|
|
2789
|
+
},
|
|
2790
|
+
{
|
|
2791
|
+
internalType: "address",
|
|
2792
|
+
name: "extraFeeReceiver",
|
|
2793
|
+
type: "address"
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
internalType: "uint256",
|
|
2797
|
+
name: "extraFeeBps",
|
|
2798
|
+
type: "uint256"
|
|
2799
|
+
}
|
|
2800
|
+
],
|
|
2801
|
+
name: "yodlWithToken",
|
|
2802
|
+
outputs: [
|
|
2803
|
+
{
|
|
2804
|
+
internalType: "bool",
|
|
2805
|
+
name: "",
|
|
2806
|
+
type: "bool"
|
|
2807
|
+
}
|
|
2808
|
+
],
|
|
2809
|
+
stateMutability: "payable",
|
|
2810
|
+
type: "function"
|
|
2811
|
+
},
|
|
2812
|
+
{
|
|
2813
|
+
inputs: [
|
|
2814
|
+
{
|
|
2815
|
+
components: [
|
|
2816
|
+
{
|
|
2817
|
+
internalType: "address",
|
|
2818
|
+
name: "sender",
|
|
2819
|
+
type: "address"
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
internalType: "address",
|
|
2823
|
+
name: "receiver",
|
|
2824
|
+
type: "address"
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
internalType: "uint256",
|
|
2828
|
+
name: "amountIn",
|
|
2829
|
+
type: "uint256"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
internalType: "uint256",
|
|
2833
|
+
name: "amountOut",
|
|
2834
|
+
type: "uint256"
|
|
2835
|
+
},
|
|
2836
|
+
{
|
|
2837
|
+
internalType: "bytes32",
|
|
2838
|
+
name: "memo",
|
|
2839
|
+
type: "bytes32"
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
internalType: "bytes",
|
|
2843
|
+
name: "path",
|
|
2844
|
+
type: "bytes"
|
|
2845
|
+
},
|
|
2846
|
+
{
|
|
2847
|
+
internalType: "address[2]",
|
|
2848
|
+
name: "priceFeeds",
|
|
2849
|
+
type: "address[2]"
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
internalType: "address",
|
|
2853
|
+
name: "extraFeeReceiver",
|
|
2854
|
+
type: "address"
|
|
2855
|
+
},
|
|
2856
|
+
{
|
|
2857
|
+
internalType: "uint256",
|
|
2858
|
+
name: "extraFeeBps",
|
|
2859
|
+
type: "uint256"
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
internalType: "bool",
|
|
2863
|
+
name: "returnRemainder",
|
|
2864
|
+
type: "bool"
|
|
2865
|
+
},
|
|
2866
|
+
{
|
|
2867
|
+
internalType: "enum YodlRouterV1.SwapType",
|
|
2868
|
+
name: "swapType",
|
|
2869
|
+
type: "uint8"
|
|
2870
|
+
}
|
|
2871
|
+
],
|
|
2872
|
+
internalType: "struct YodlRouterV1.YodlUniswapParams",
|
|
2873
|
+
name: "params",
|
|
2874
|
+
type: "tuple"
|
|
2875
|
+
}
|
|
2876
|
+
],
|
|
2877
|
+
name: "yodlWithUniswap",
|
|
2878
|
+
outputs: [
|
|
2879
|
+
{
|
|
2880
|
+
internalType: "uint256",
|
|
2881
|
+
name: "",
|
|
2882
|
+
type: "uint256"
|
|
2883
|
+
}
|
|
2884
|
+
],
|
|
2885
|
+
stateMutability: "payable",
|
|
2886
|
+
type: "function"
|
|
2887
|
+
},
|
|
2888
|
+
{
|
|
2889
|
+
stateMutability: "payable",
|
|
2890
|
+
type: "receive"
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
inputs: [
|
|
2894
|
+
],
|
|
2895
|
+
name: "baseFeeBps",
|
|
2896
|
+
outputs: [
|
|
2897
|
+
{
|
|
2898
|
+
internalType: "uint256",
|
|
2899
|
+
name: "",
|
|
2900
|
+
type: "uint256"
|
|
2901
|
+
}
|
|
2902
|
+
],
|
|
2903
|
+
stateMutability: "view",
|
|
2904
|
+
type: "function"
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
inputs: [
|
|
2908
|
+
{
|
|
2909
|
+
internalType: "uint256",
|
|
2910
|
+
name: "amount",
|
|
2911
|
+
type: "uint256"
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
internalType: "uint256",
|
|
2915
|
+
name: "feeBps",
|
|
2916
|
+
type: "uint256"
|
|
2917
|
+
}
|
|
2918
|
+
],
|
|
2919
|
+
name: "calculateFee",
|
|
2920
|
+
outputs: [
|
|
2921
|
+
{
|
|
2922
|
+
internalType: "uint256",
|
|
2923
|
+
name: "",
|
|
2924
|
+
type: "uint256"
|
|
2925
|
+
}
|
|
2926
|
+
],
|
|
2927
|
+
stateMutability: "pure",
|
|
2928
|
+
type: "function"
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
inputs: [
|
|
2932
|
+
],
|
|
2933
|
+
name: "curveRouter",
|
|
2934
|
+
outputs: [
|
|
2935
|
+
{
|
|
2936
|
+
internalType: "contract ICurveRouter",
|
|
2937
|
+
name: "",
|
|
2938
|
+
type: "address"
|
|
2939
|
+
}
|
|
2940
|
+
],
|
|
2941
|
+
stateMutability: "view",
|
|
2942
|
+
type: "function"
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
inputs: [
|
|
2946
|
+
{
|
|
2947
|
+
internalType: "address[2]",
|
|
2948
|
+
name: "priceFeeds",
|
|
2949
|
+
type: "address[2]"
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
internalType: "uint256",
|
|
2953
|
+
name: "amount",
|
|
2954
|
+
type: "uint256"
|
|
2955
|
+
}
|
|
2956
|
+
],
|
|
2957
|
+
name: "exchangeRate",
|
|
2958
|
+
outputs: [
|
|
2959
|
+
{
|
|
2960
|
+
internalType: "uint256",
|
|
2961
|
+
name: "converted",
|
|
2962
|
+
type: "uint256"
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
internalType: "address[2]",
|
|
2966
|
+
name: "priceFeedsUsed",
|
|
2967
|
+
type: "address[2]"
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
internalType: "int256[2]",
|
|
2971
|
+
name: "prices",
|
|
2972
|
+
type: "int256[2]"
|
|
2973
|
+
}
|
|
2974
|
+
],
|
|
2975
|
+
stateMutability: "view",
|
|
2976
|
+
type: "function"
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
inputs: [
|
|
2980
|
+
],
|
|
2981
|
+
name: "feeTreasury",
|
|
2982
|
+
outputs: [
|
|
2983
|
+
{
|
|
2984
|
+
internalType: "address",
|
|
2985
|
+
name: "",
|
|
2986
|
+
type: "address"
|
|
2987
|
+
}
|
|
2988
|
+
],
|
|
2989
|
+
stateMutability: "view",
|
|
2990
|
+
type: "function"
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
inputs: [
|
|
2994
|
+
],
|
|
2995
|
+
name: "MAX_FEE_BPS",
|
|
2996
|
+
outputs: [
|
|
2997
|
+
{
|
|
2998
|
+
internalType: "uint256",
|
|
2999
|
+
name: "",
|
|
3000
|
+
type: "uint256"
|
|
3001
|
+
}
|
|
3002
|
+
],
|
|
3003
|
+
stateMutability: "view",
|
|
3004
|
+
type: "function"
|
|
3005
|
+
},
|
|
3006
|
+
{
|
|
3007
|
+
inputs: [
|
|
3008
|
+
],
|
|
3009
|
+
name: "NATIVE_TOKEN",
|
|
3010
|
+
outputs: [
|
|
3011
|
+
{
|
|
3012
|
+
internalType: "address",
|
|
3013
|
+
name: "",
|
|
3014
|
+
type: "address"
|
|
3015
|
+
}
|
|
3016
|
+
],
|
|
3017
|
+
stateMutability: "view",
|
|
3018
|
+
type: "function"
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
inputs: [
|
|
3022
|
+
],
|
|
3023
|
+
name: "owner",
|
|
3024
|
+
outputs: [
|
|
3025
|
+
{
|
|
3026
|
+
internalType: "address",
|
|
3027
|
+
name: "",
|
|
3028
|
+
type: "address"
|
|
3029
|
+
}
|
|
3030
|
+
],
|
|
3031
|
+
stateMutability: "view",
|
|
3032
|
+
type: "function"
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
inputs: [
|
|
3036
|
+
],
|
|
3037
|
+
name: "uniswapRouter",
|
|
3038
|
+
outputs: [
|
|
3039
|
+
{
|
|
3040
|
+
internalType: "contract ISwapRouter",
|
|
3041
|
+
name: "",
|
|
3042
|
+
type: "address"
|
|
3043
|
+
}
|
|
3044
|
+
],
|
|
3045
|
+
stateMutability: "view",
|
|
3046
|
+
type: "function"
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
inputs: [
|
|
3050
|
+
],
|
|
3051
|
+
name: "version",
|
|
3052
|
+
outputs: [
|
|
3053
|
+
{
|
|
3054
|
+
internalType: "string",
|
|
3055
|
+
name: "",
|
|
3056
|
+
type: "string"
|
|
3057
|
+
}
|
|
3058
|
+
],
|
|
3059
|
+
stateMutability: "view",
|
|
3060
|
+
type: "function"
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
inputs: [
|
|
3064
|
+
],
|
|
3065
|
+
name: "wrappedNativeToken",
|
|
3066
|
+
outputs: [
|
|
3067
|
+
{
|
|
3068
|
+
internalType: "contract IWETH9",
|
|
3069
|
+
name: "",
|
|
3070
|
+
type: "address"
|
|
3071
|
+
}
|
|
3072
|
+
],
|
|
3073
|
+
stateMutability: "view",
|
|
3074
|
+
type: "function"
|
|
3075
|
+
}
|
|
3076
|
+
];
|
|
3077
|
+
|
|
2462
3078
|
var HIRO_ROUTER_ABIS = {
|
|
2463
3079
|
"0.1": HiroRouterV01,
|
|
2464
3080
|
"0.2": HiroRouterV02,
|
|
2465
|
-
"
|
|
3081
|
+
"0.3": HiroRouterV03,
|
|
3082
|
+
"test": HiroRouterV03
|
|
2466
3083
|
};
|
|
2467
3084
|
var CURVE_ROUTER_ABI = CurveRouterV13Abi;
|
|
2468
3085
|
|