@curvefi/api 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/README.md +30 -0
  2. package/lib/constants/abis/abis-ethereum.js +78 -16
  3. package/lib/constants/abis/abis-polygon.js +13 -5
  4. package/lib/constants/abis/json/aave/rewards.json +107 -0
  5. package/lib/constants/abis/json/atricrypto3/swap.json +63 -63
  6. package/lib/constants/abis/json/atricrypto3/zap.json +8 -8
  7. package/lib/constants/abis/json/crveth/swap.json +61 -61
  8. package/lib/constants/abis/json/eurt/swap.json +29 -29
  9. package/lib/constants/abis/json/eurtusd/deposit.json +13 -13
  10. package/lib/constants/abis/json/eurtusd/swap.json +59 -59
  11. package/lib/constants/abis/json/gauge.json +1 -1
  12. package/lib/constants/abis/json/gauge_factory.json +879 -0
  13. package/lib/constants/abis/json/gauge_rewards_only.json +649 -0
  14. package/lib/constants/abis/json/gauge_synthetix.json +590 -0
  15. package/lib/constants/abis/json/gauge_v2.json +942 -0
  16. package/lib/constants/abis/json/gauge_v3.json +954 -0
  17. package/lib/constants/abis/json/gauge_v4.json +913 -0
  18. package/lib/constants/abis/json/minter.json +165 -0
  19. package/lib/constants/abis/json/ren-polygon/swap.json +46 -46
  20. package/lib/constants/abis/json/reth/swap.json +38 -38
  21. package/lib/constants/abis/json/tricrypto2/deposit.json +3 -3
  22. package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
  23. package/lib/constants/aliases.d.ts +2 -0
  24. package/lib/constants/aliases.js +2 -0
  25. package/lib/constants/coins-polygon.js +3 -2
  26. package/lib/curve.d.ts +1 -0
  27. package/lib/curve.js +43 -23
  28. package/lib/interfaces.d.ts +7 -1
  29. package/lib/pools.d.ts +13 -2
  30. package/lib/pools.js +187 -25
  31. package/package.json +1 -1
@@ -0,0 +1,165 @@
1
+ [
2
+ {
3
+ "name": "Minted",
4
+ "inputs": [
5
+ {
6
+ "type": "address",
7
+ "name": "recipient",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "type": "address",
12
+ "name": "gauge",
13
+ "indexed": false
14
+ },
15
+ {
16
+ "type": "uint256",
17
+ "name": "minted",
18
+ "indexed": false
19
+ }
20
+ ],
21
+ "anonymous": false,
22
+ "type": "event"
23
+ },
24
+ {
25
+ "outputs": [],
26
+ "inputs": [
27
+ {
28
+ "type": "address",
29
+ "name": "_token"
30
+ },
31
+ {
32
+ "type": "address",
33
+ "name": "_controller"
34
+ }
35
+ ],
36
+ "stateMutability": "nonpayable",
37
+ "type": "constructor"
38
+ },
39
+ {
40
+ "name": "mint",
41
+ "outputs": [],
42
+ "inputs": [
43
+ {
44
+ "type": "address",
45
+ "name": "gauge_addr"
46
+ }
47
+ ],
48
+ "stateMutability": "nonpayable",
49
+ "type": "function",
50
+ "gas": "2006304"
51
+ },
52
+ {
53
+ "name": "mint_many",
54
+ "outputs": [],
55
+ "inputs": [
56
+ {
57
+ "type": "address[8]",
58
+ "name": "gauge_addrs"
59
+ }
60
+ ],
61
+ "stateMutability": "nonpayable",
62
+ "type": "function",
63
+ "gas": "408502"
64
+ },
65
+ {
66
+ "name": "mint_for",
67
+ "outputs": [],
68
+ "inputs": [
69
+ {
70
+ "type": "address",
71
+ "name": "gauge_addr"
72
+ },
73
+ {
74
+ "type": "address",
75
+ "name": "_for"
76
+ }
77
+ ],
78
+ "stateMutability": "nonpayable",
79
+ "type": "function",
80
+ "gas": "101219"
81
+ },
82
+ {
83
+ "name": "toggle_approve_mint",
84
+ "outputs": [],
85
+ "inputs": [
86
+ {
87
+ "type": "address",
88
+ "name": "minting_user"
89
+ }
90
+ ],
91
+ "stateMutability": "nonpayable",
92
+ "type": "function",
93
+ "gas": "36726"
94
+ },
95
+ {
96
+ "name": "token",
97
+ "outputs": [
98
+ {
99
+ "type": "address",
100
+ "name": ""
101
+ }
102
+ ],
103
+ "inputs": [],
104
+ "stateMutability": "view",
105
+ "type": "function",
106
+ "gas": "1301"
107
+ },
108
+ {
109
+ "name": "controller",
110
+ "outputs": [
111
+ {
112
+ "type": "address",
113
+ "name": ""
114
+ }
115
+ ],
116
+ "inputs": [],
117
+ "stateMutability": "view",
118
+ "type": "function",
119
+ "gas": "1331"
120
+ },
121
+ {
122
+ "name": "minted",
123
+ "outputs": [
124
+ {
125
+ "type": "uint256",
126
+ "name": ""
127
+ }
128
+ ],
129
+ "inputs": [
130
+ {
131
+ "type": "address",
132
+ "name": "arg0"
133
+ },
134
+ {
135
+ "type": "address",
136
+ "name": "arg1"
137
+ }
138
+ ],
139
+ "stateMutability": "view",
140
+ "type": "function",
141
+ "gas": "1669"
142
+ },
143
+ {
144
+ "name": "allowed_to_mint_for",
145
+ "outputs": [
146
+ {
147
+ "type": "bool",
148
+ "name": ""
149
+ }
150
+ ],
151
+ "inputs": [
152
+ {
153
+ "type": "address",
154
+ "name": "arg0"
155
+ },
156
+ {
157
+ "type": "address",
158
+ "name": "arg1"
159
+ }
160
+ ],
161
+ "stateMutability": "view",
162
+ "type": "function",
163
+ "gas": "1699"
164
+ }
165
+ ]
@@ -344,7 +344,7 @@
344
344
  "type": "uint256"
345
345
  }
346
346
  ],
347
- "gas": 10374
347
+ "gas": "10374"
348
348
  },
349
349
  {
350
350
  "stateMutability": "view",
@@ -357,7 +357,7 @@
357
357
  "type": "uint256"
358
358
  }
359
359
  ],
360
- "gas": 10336
360
+ "gas": "10336"
361
361
  },
362
362
  {
363
363
  "stateMutability": "view",
@@ -379,7 +379,7 @@
379
379
  "type": "uint256"
380
380
  }
381
381
  ],
382
- "gas": 22089
382
+ "gas": "22089"
383
383
  },
384
384
  {
385
385
  "stateMutability": "view",
@@ -397,7 +397,7 @@
397
397
  "type": "uint256"
398
398
  }
399
399
  ],
400
- "gas": 7358
400
+ "gas": "7358"
401
401
  },
402
402
  {
403
403
  "stateMutability": "view",
@@ -410,7 +410,7 @@
410
410
  "type": "uint256"
411
411
  }
412
412
  ],
413
- "gas": 2237133
413
+ "gas": "2237133"
414
414
  },
415
415
  {
416
416
  "stateMutability": "view",
@@ -432,7 +432,7 @@
432
432
  "type": "uint256"
433
433
  }
434
434
  ],
435
- "gas": 4445096
435
+ "gas": "4445096"
436
436
  },
437
437
  {
438
438
  "stateMutability": "nonpayable",
@@ -483,7 +483,7 @@
483
483
  "type": "uint256"
484
484
  }
485
485
  ],
486
- "gas": 5357975
486
+ "gas": "5357975"
487
487
  },
488
488
  {
489
489
  "stateMutability": "view",
@@ -509,7 +509,7 @@
509
509
  "type": "uint256"
510
510
  }
511
511
  ],
512
- "gas": 5358005
512
+ "gas": "5358005"
513
513
  },
514
514
  {
515
515
  "stateMutability": "nonpayable",
@@ -539,7 +539,7 @@
539
539
  "type": "uint256"
540
540
  }
541
541
  ],
542
- "gas": 5525027
542
+ "gas": "5525027"
543
543
  },
544
544
  {
545
545
  "stateMutability": "nonpayable",
@@ -569,7 +569,7 @@
569
569
  "type": "uint256"
570
570
  }
571
571
  ],
572
- "gas": 5541345
572
+ "gas": "5541345"
573
573
  },
574
574
  {
575
575
  "stateMutability": "nonpayable",
@@ -641,7 +641,7 @@
641
641
  "type": "uint256"
642
642
  }
643
643
  ],
644
- "gas": 4008194
644
+ "gas": "4008194"
645
645
  },
646
646
  {
647
647
  "stateMutability": "nonpayable",
@@ -687,7 +687,7 @@
687
687
  }
688
688
  ],
689
689
  "outputs": [],
690
- "gas": 159459
690
+ "gas": "159459"
691
691
  },
692
692
  {
693
693
  "stateMutability": "nonpayable",
@@ -695,7 +695,7 @@
695
695
  "name": "stop_ramp_A",
696
696
  "inputs": [],
697
697
  "outputs": [],
698
- "gas": 154920
698
+ "gas": "154920"
699
699
  },
700
700
  {
701
701
  "stateMutability": "nonpayable",
@@ -716,7 +716,7 @@
716
716
  }
717
717
  ],
718
718
  "outputs": [],
719
- "gas": 148809
719
+ "gas": "148809"
720
720
  },
721
721
  {
722
722
  "stateMutability": "nonpayable",
@@ -724,7 +724,7 @@
724
724
  "name": "apply_new_fee",
725
725
  "inputs": [],
726
726
  "outputs": [],
727
- "gas": 141271
727
+ "gas": "141271"
728
728
  },
729
729
  {
730
730
  "stateMutability": "nonpayable",
@@ -732,7 +732,7 @@
732
732
  "name": "revert_new_parameters",
733
733
  "inputs": [],
734
734
  "outputs": [],
735
- "gas": 23012
735
+ "gas": "23012"
736
736
  },
737
737
  {
738
738
  "stateMutability": "nonpayable",
@@ -745,7 +745,7 @@
745
745
  }
746
746
  ],
747
747
  "outputs": [],
748
- "gas": 77050
748
+ "gas": "77050"
749
749
  },
750
750
  {
751
751
  "stateMutability": "nonpayable",
@@ -753,7 +753,7 @@
753
753
  "name": "apply_transfer_ownership",
754
754
  "inputs": [],
755
755
  "outputs": [],
756
- "gas": 65727
756
+ "gas": "65727"
757
757
  },
758
758
  {
759
759
  "stateMutability": "nonpayable",
@@ -761,7 +761,7 @@
761
761
  "name": "revert_transfer_ownership",
762
762
  "inputs": [],
763
763
  "outputs": [],
764
- "gas": 23102
764
+ "gas": "23102"
765
765
  },
766
766
  {
767
767
  "stateMutability": "nonpayable",
@@ -769,7 +769,7 @@
769
769
  "name": "withdraw_admin_fees",
770
770
  "inputs": [],
771
771
  "outputs": [],
772
- "gas": 61714
772
+ "gas": "61714"
773
773
  },
774
774
  {
775
775
  "stateMutability": "nonpayable",
@@ -777,7 +777,7 @@
777
777
  "name": "donate_admin_fees",
778
778
  "inputs": [],
779
779
  "outputs": [],
780
- "gas": 43291
780
+ "gas": "43291"
781
781
  },
782
782
  {
783
783
  "stateMutability": "nonpayable",
@@ -785,7 +785,7 @@
785
785
  "name": "kill_me",
786
786
  "inputs": [],
787
787
  "outputs": [],
788
- "gas": 40385
788
+ "gas": "40385"
789
789
  },
790
790
  {
791
791
  "stateMutability": "nonpayable",
@@ -793,7 +793,7 @@
793
793
  "name": "unkill_me",
794
794
  "inputs": [],
795
795
  "outputs": [],
796
- "gas": 23222
796
+ "gas": "23222"
797
797
  },
798
798
  {
799
799
  "stateMutability": "nonpayable",
@@ -806,7 +806,7 @@
806
806
  }
807
807
  ],
808
808
  "outputs": [],
809
- "gas": 38352
809
+ "gas": "38352"
810
810
  },
811
811
  {
812
812
  "stateMutability": "nonpayable",
@@ -819,7 +819,7 @@
819
819
  }
820
820
  ],
821
821
  "outputs": [],
822
- "gas": 38385
822
+ "gas": "38385"
823
823
  },
824
824
  {
825
825
  "stateMutability": "nonpayable",
@@ -832,7 +832,7 @@
832
832
  }
833
833
  ],
834
834
  "outputs": [],
835
- "gas": 38415
835
+ "gas": "38415"
836
836
  },
837
837
  {
838
838
  "stateMutability": "view",
@@ -850,7 +850,7 @@
850
850
  "type": "address"
851
851
  }
852
852
  ],
853
- "gas": 3397
853
+ "gas": "3397"
854
854
  },
855
855
  {
856
856
  "stateMutability": "view",
@@ -868,7 +868,7 @@
868
868
  "type": "address"
869
869
  }
870
870
  ],
871
- "gas": 3427
871
+ "gas": "3427"
872
872
  },
873
873
  {
874
874
  "stateMutability": "view",
@@ -886,7 +886,7 @@
886
886
  "type": "uint256"
887
887
  }
888
888
  ],
889
- "gas": 3457
889
+ "gas": "3457"
890
890
  },
891
891
  {
892
892
  "stateMutability": "view",
@@ -899,7 +899,7 @@
899
899
  "type": "uint256"
900
900
  }
901
901
  ],
902
- "gas": 3378
902
+ "gas": "3378"
903
903
  },
904
904
  {
905
905
  "stateMutability": "view",
@@ -912,7 +912,7 @@
912
912
  "type": "uint256"
913
913
  }
914
914
  ],
915
- "gas": 3408
915
+ "gas": "3408"
916
916
  },
917
917
  {
918
918
  "stateMutability": "view",
@@ -925,7 +925,7 @@
925
925
  "type": "uint256"
926
926
  }
927
927
  ],
928
- "gas": 3438
928
+ "gas": "3438"
929
929
  },
930
930
  {
931
931
  "stateMutability": "view",
@@ -938,7 +938,7 @@
938
938
  "type": "address"
939
939
  }
940
940
  ],
941
- "gas": 3468
941
+ "gas": "3468"
942
942
  },
943
943
  {
944
944
  "stateMutability": "view",
@@ -951,7 +951,7 @@
951
951
  "type": "address"
952
952
  }
953
953
  ],
954
- "gas": 3498
954
+ "gas": "3498"
955
955
  },
956
956
  {
957
957
  "stateMutability": "view",
@@ -964,7 +964,7 @@
964
964
  "type": "uint256"
965
965
  }
966
966
  ],
967
- "gas": 3528
967
+ "gas": "3528"
968
968
  },
969
969
  {
970
970
  "stateMutability": "view",
@@ -977,7 +977,7 @@
977
977
  "type": "uint256"
978
978
  }
979
979
  ],
980
- "gas": 3558
980
+ "gas": "3558"
981
981
  },
982
982
  {
983
983
  "stateMutability": "view",
@@ -990,7 +990,7 @@
990
990
  "type": "uint256"
991
991
  }
992
992
  ],
993
- "gas": 3588
993
+ "gas": "3588"
994
994
  },
995
995
  {
996
996
  "stateMutability": "view",
@@ -1003,7 +1003,7 @@
1003
1003
  "type": "uint256"
1004
1004
  }
1005
1005
  ],
1006
- "gas": 3618
1006
+ "gas": "3618"
1007
1007
  },
1008
1008
  {
1009
1009
  "stateMutability": "view",
@@ -1016,7 +1016,7 @@
1016
1016
  "type": "uint256"
1017
1017
  }
1018
1018
  ],
1019
- "gas": 3648
1019
+ "gas": "3648"
1020
1020
  },
1021
1021
  {
1022
1022
  "stateMutability": "view",
@@ -1029,7 +1029,7 @@
1029
1029
  "type": "uint256"
1030
1030
  }
1031
1031
  ],
1032
- "gas": 3678
1032
+ "gas": "3678"
1033
1033
  },
1034
1034
  {
1035
1035
  "stateMutability": "view",
@@ -1042,7 +1042,7 @@
1042
1042
  "type": "uint256"
1043
1043
  }
1044
1044
  ],
1045
- "gas": 3708
1045
+ "gas": "3708"
1046
1046
  },
1047
1047
  {
1048
1048
  "stateMutability": "view",
@@ -1055,7 +1055,7 @@
1055
1055
  "type": "uint256"
1056
1056
  }
1057
1057
  ],
1058
- "gas": 3738
1058
+ "gas": "3738"
1059
1059
  },
1060
1060
  {
1061
1061
  "stateMutability": "view",
@@ -1068,7 +1068,7 @@
1068
1068
  "type": "uint256"
1069
1069
  }
1070
1070
  ],
1071
- "gas": 3768
1071
+ "gas": "3768"
1072
1072
  },
1073
1073
  {
1074
1074
  "stateMutability": "view",
@@ -1081,7 +1081,7 @@
1081
1081
  "type": "address"
1082
1082
  }
1083
1083
  ],
1084
- "gas": 3798
1084
+ "gas": "3798"
1085
1085
  },
1086
1086
  {
1087
1087
  "stateMutability": "view",
@@ -1094,7 +1094,7 @@
1094
1094
  "type": "address"
1095
1095
  }
1096
1096
  ],
1097
- "gas": 3828
1097
+ "gas": "3828"
1098
1098
  },
1099
1099
  {
1100
1100
  "stateMutability": "view",
@@ -1107,6 +1107,6 @@
1107
1107
  "type": "address"
1108
1108
  }
1109
1109
  ],
1110
- "gas": 3858
1110
+ "gas": "3858"
1111
1111
  }
1112
1112
  ]