@curvefi/api 1.12.0 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +98 -1
  2. package/lib/constants/abis/abis-ethereum.js +144 -16
  3. package/lib/constants/abis/abis-polygon.js +17 -1
  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/busd/deposit.json +5 -10
  8. package/lib/constants/abis/json/busd/swap.json +18 -36
  9. package/lib/constants/abis/json/compound/deposit.json +5 -10
  10. package/lib/constants/abis/json/compound/migration.json +1 -2
  11. package/lib/constants/abis/json/compound/oldSwap.json +16 -32
  12. package/lib/constants/abis/json/compound/swap.json +18 -36
  13. package/lib/constants/abis/json/crveth/swap.json +61 -61
  14. package/lib/constants/abis/json/eurt/swap.json +29 -29
  15. package/lib/constants/abis/json/eurtusd/deposit.json +13 -13
  16. package/lib/constants/abis/json/eurtusd/swap.json +59 -59
  17. package/lib/constants/abis/json/gauge.json +1 -1
  18. package/lib/constants/abis/json/gauge_factory.json +879 -0
  19. package/lib/constants/abis/json/gauge_rewards_only.json +649 -0
  20. package/lib/constants/abis/json/gauge_synthetix.json +590 -0
  21. package/lib/constants/abis/json/gauge_v2.json +942 -0
  22. package/lib/constants/abis/json/gauge_v3.json +954 -0
  23. package/lib/constants/abis/json/gauge_v4.json +913 -0
  24. package/lib/constants/abis/json/iearn/deposit.json +5 -10
  25. package/lib/constants/abis/json/iearn/swap.json +18 -36
  26. package/lib/constants/abis/json/minter.json +165 -0
  27. package/lib/constants/abis/json/pax/deposit.json +5 -10
  28. package/lib/constants/abis/json/pax/swap.json +19 -38
  29. package/lib/constants/abis/json/ren/swap.json +19 -38
  30. package/lib/constants/abis/json/ren-polygon/swap.json +46 -46
  31. package/lib/constants/abis/json/reth/swap.json +38 -38
  32. package/lib/constants/abis/json/sbtc/swap.json +19 -38
  33. package/lib/constants/abis/json/streamer.json +257 -0
  34. package/lib/constants/abis/json/susdv2/deposit.json +5 -10
  35. package/lib/constants/abis/json/susdv2/swap.json +16 -32
  36. package/lib/constants/abis/json/tricrypto2/deposit.json +3 -3
  37. package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
  38. package/lib/constants/abis/json/usdt/deposit.json +5 -10
  39. package/lib/constants/abis/json/usdt/swap.json +19 -37
  40. package/lib/constants/aliases.d.ts +2 -0
  41. package/lib/constants/aliases.js +3 -1
  42. package/lib/constants/coins-ethereum.js +4 -2
  43. package/lib/constants/coins-polygon.js +3 -2
  44. package/lib/curve.d.ts +1 -0
  45. package/lib/curve.js +47 -16
  46. package/lib/index.d.ts +1 -0
  47. package/lib/index.js +1 -0
  48. package/lib/interfaces.d.ts +8 -0
  49. package/lib/pools.d.ts +41 -5
  50. package/lib/pools.js +334 -52
  51. package/lib/utils.d.ts +2 -1
  52. package/lib/utils.js +42 -29
  53. package/package.json +1 -1
@@ -372,7 +372,7 @@
372
372
  "type": "address"
373
373
  }
374
374
  ],
375
- "gas": 516
375
+ "gas": "516"
376
376
  },
377
377
  {
378
378
  "stateMutability": "view",
@@ -390,7 +390,7 @@
390
390
  "type": "address"
391
391
  }
392
392
  ],
393
- "gas": 648
393
+ "gas": "648"
394
394
  },
395
395
  {
396
396
  "stateMutability": "view",
@@ -403,7 +403,7 @@
403
403
  "type": "uint256"
404
404
  }
405
405
  ],
406
- "gas": 685
406
+ "gas": "685"
407
407
  },
408
408
  {
409
409
  "stateMutability": "view",
@@ -416,7 +416,7 @@
416
416
  "type": "uint256"
417
417
  }
418
418
  ],
419
- "gas": 6589
419
+ "gas": "6589"
420
420
  },
421
421
  {
422
422
  "stateMutability": "view",
@@ -429,7 +429,7 @@
429
429
  "type": "uint256"
430
430
  }
431
431
  ],
432
- "gas": 9833
432
+ "gas": "9833"
433
433
  },
434
434
  {
435
435
  "stateMutability": "view",
@@ -442,7 +442,7 @@
442
442
  "type": "uint256"
443
443
  }
444
444
  ],
445
- "gas": 360797
445
+ "gas": "360797"
446
446
  },
447
447
  {
448
448
  "stateMutability": "payable",
@@ -472,7 +472,7 @@
472
472
  "type": "uint256"
473
473
  }
474
474
  ],
475
- "gas": 16709798
475
+ "gas": "16709798"
476
476
  },
477
477
  {
478
478
  "stateMutability": "payable",
@@ -502,7 +502,7 @@
502
502
  "type": "uint256"
503
503
  }
504
504
  ],
505
- "gas": 16709596
505
+ "gas": "16709596"
506
506
  },
507
507
  {
508
508
  "stateMutability": "view",
@@ -528,7 +528,7 @@
528
528
  "type": "uint256"
529
529
  }
530
530
  ],
531
- "gas": 4558015
531
+ "gas": "4558015"
532
532
  },
533
533
  {
534
534
  "stateMutability": "payable",
@@ -554,7 +554,7 @@
554
554
  "type": "uint256"
555
555
  }
556
556
  ],
557
- "gas": 17626221
557
+ "gas": "17626221"
558
558
  },
559
559
  {
560
560
  "stateMutability": "nonpayable",
@@ -575,7 +575,7 @@
575
575
  }
576
576
  ],
577
577
  "outputs": [],
578
- "gas": 246329
578
+ "gas": "246329"
579
579
  },
580
580
  {
581
581
  "stateMutability": "view",
@@ -593,7 +593,7 @@
593
593
  "type": "uint256"
594
594
  }
595
595
  ],
596
- "gas": 5182647
596
+ "gas": "5182647"
597
597
  },
598
598
  {
599
599
  "stateMutability": "view",
@@ -615,7 +615,7 @@
615
615
  "type": "uint256"
616
616
  }
617
617
  ],
618
- "gas": 7384
618
+ "gas": "7384"
619
619
  },
620
620
  {
621
621
  "stateMutability": "nonpayable",
@@ -645,7 +645,7 @@
645
645
  "type": "uint256"
646
646
  }
647
647
  ],
648
- "gas": 16638278
648
+ "gas": "16638278"
649
649
  },
650
650
  {
651
651
  "stateMutability": "nonpayable",
@@ -653,7 +653,7 @@
653
653
  "name": "claim_admin_fees",
654
654
  "inputs": [],
655
655
  "outputs": [],
656
- "gas": 3227185
656
+ "gas": "3227185"
657
657
  },
658
658
  {
659
659
  "stateMutability": "nonpayable",
@@ -674,7 +674,7 @@
674
674
  }
675
675
  ],
676
676
  "outputs": [],
677
- "gas": 153898
677
+ "gas": "153898"
678
678
  },
679
679
  {
680
680
  "stateMutability": "nonpayable",
@@ -682,7 +682,7 @@
682
682
  "name": "stop_ramp_A_gamma",
683
683
  "inputs": [],
684
684
  "outputs": [],
685
- "gas": 150243
685
+ "gas": "150243"
686
686
  },
687
687
  {
688
688
  "stateMutability": "nonpayable",
@@ -719,7 +719,7 @@
719
719
  }
720
720
  ],
721
721
  "outputs": [],
722
- "gas": 293384
722
+ "gas": "293384"
723
723
  },
724
724
  {
725
725
  "stateMutability": "nonpayable",
@@ -727,7 +727,7 @@
727
727
  "name": "apply_new_parameters",
728
728
  "inputs": [],
729
729
  "outputs": [],
730
- "gas": 3505075
730
+ "gas": "3505075"
731
731
  },
732
732
  {
733
733
  "stateMutability": "nonpayable",
@@ -735,7 +735,7 @@
735
735
  "name": "revert_new_parameters",
736
736
  "inputs": [],
737
737
  "outputs": [],
738
- "gas": 21842
738
+ "gas": "21842"
739
739
  },
740
740
  {
741
741
  "stateMutability": "nonpayable",
@@ -748,7 +748,7 @@
748
748
  }
749
749
  ],
750
750
  "outputs": [],
751
- "gas": 76227
751
+ "gas": "76227"
752
752
  },
753
753
  {
754
754
  "stateMutability": "nonpayable",
@@ -756,7 +756,7 @@
756
756
  "name": "apply_transfer_ownership",
757
757
  "inputs": [],
758
758
  "outputs": [],
759
- "gas": 61842
759
+ "gas": "61842"
760
760
  },
761
761
  {
762
762
  "stateMutability": "nonpayable",
@@ -764,7 +764,7 @@
764
764
  "name": "revert_transfer_ownership",
765
765
  "inputs": [],
766
766
  "outputs": [],
767
- "gas": 21932
767
+ "gas": "21932"
768
768
  },
769
769
  {
770
770
  "stateMutability": "nonpayable",
@@ -772,7 +772,7 @@
772
772
  "name": "kill_me",
773
773
  "inputs": [],
774
774
  "outputs": [],
775
- "gas": 37855
775
+ "gas": "37855"
776
776
  },
777
777
  {
778
778
  "stateMutability": "nonpayable",
@@ -780,7 +780,7 @@
780
780
  "name": "unkill_me",
781
781
  "inputs": [],
782
782
  "outputs": [],
783
- "gas": 21992
783
+ "gas": "21992"
784
784
  },
785
785
  {
786
786
  "stateMutability": "nonpayable",
@@ -793,7 +793,7 @@
793
793
  }
794
794
  ],
795
795
  "outputs": [],
796
- "gas": 37182
796
+ "gas": "37182"
797
797
  },
798
798
  {
799
799
  "stateMutability": "view",
@@ -806,7 +806,7 @@
806
806
  "type": "uint256"
807
807
  }
808
808
  ],
809
- "gas": 214446
809
+ "gas": "214446"
810
810
  },
811
811
  {
812
812
  "stateMutability": "view",
@@ -819,7 +819,7 @@
819
819
  "type": "uint256"
820
820
  }
821
821
  ],
822
- "gas": 2126
822
+ "gas": "2126"
823
823
  },
824
824
  {
825
825
  "stateMutability": "view",
@@ -832,7 +832,7 @@
832
832
  "type": "uint256"
833
833
  }
834
834
  ],
835
- "gas": 2156
835
+ "gas": "2156"
836
836
  },
837
837
  {
838
838
  "stateMutability": "view",
@@ -845,7 +845,7 @@
845
845
  "type": "uint256"
846
846
  }
847
847
  ],
848
- "gas": 2186
848
+ "gas": "2186"
849
849
  },
850
850
  {
851
851
  "stateMutability": "view",
@@ -858,7 +858,7 @@
858
858
  "type": "uint256"
859
859
  }
860
860
  ],
861
- "gas": 2216
861
+ "gas": "2216"
862
862
  },
863
863
  {
864
864
  "stateMutability": "view",
@@ -871,7 +871,7 @@
871
871
  "type": "uint256"
872
872
  }
873
873
  ],
874
- "gas": 2246
874
+ "gas": "2246"
875
875
  },
876
876
  {
877
877
  "stateMutability": "view",
@@ -884,7 +884,7 @@
884
884
  "type": "uint256"
885
885
  }
886
886
  ],
887
- "gas": 2276
887
+ "gas": "2276"
888
888
  },
889
889
  {
890
890
  "stateMutability": "view",
@@ -897,7 +897,7 @@
897
897
  "type": "uint256"
898
898
  }
899
899
  ],
900
- "gas": 2306
900
+ "gas": "2306"
901
901
  },
902
902
  {
903
903
  "stateMutability": "view",
@@ -910,7 +910,7 @@
910
910
  "type": "uint256"
911
911
  }
912
912
  ],
913
- "gas": 2336
913
+ "gas": "2336"
914
914
  },
915
915
  {
916
916
  "stateMutability": "view",
@@ -923,7 +923,7 @@
923
923
  "type": "uint256"
924
924
  }
925
925
  ],
926
- "gas": 2366
926
+ "gas": "2366"
927
927
  },
928
928
  {
929
929
  "stateMutability": "view",
@@ -936,7 +936,7 @@
936
936
  "type": "uint256"
937
937
  }
938
938
  ],
939
- "gas": 2396
939
+ "gas": "2396"
940
940
  },
941
941
  {
942
942
  "stateMutability": "view",
@@ -949,7 +949,7 @@
949
949
  "type": "uint256"
950
950
  }
951
951
  ],
952
- "gas": 2426
952
+ "gas": "2426"
953
953
  },
954
954
  {
955
955
  "stateMutability": "view",
@@ -962,7 +962,7 @@
962
962
  "type": "uint256"
963
963
  }
964
964
  ],
965
- "gas": 2456
965
+ "gas": "2456"
966
966
  },
967
967
  {
968
968
  "stateMutability": "view",
@@ -975,7 +975,7 @@
975
975
  "type": "uint256"
976
976
  }
977
977
  ],
978
- "gas": 2486
978
+ "gas": "2486"
979
979
  },
980
980
  {
981
981
  "stateMutability": "view",
@@ -988,7 +988,7 @@
988
988
  "type": "uint256"
989
989
  }
990
990
  ],
991
- "gas": 2516
991
+ "gas": "2516"
992
992
  },
993
993
  {
994
994
  "stateMutability": "view",
@@ -1001,7 +1001,7 @@
1001
1001
  "type": "uint256"
1002
1002
  }
1003
1003
  ],
1004
- "gas": 2546
1004
+ "gas": "2546"
1005
1005
  },
1006
1006
  {
1007
1007
  "stateMutability": "view",
@@ -1014,7 +1014,7 @@
1014
1014
  "type": "uint256"
1015
1015
  }
1016
1016
  ],
1017
- "gas": 2576
1017
+ "gas": "2576"
1018
1018
  },
1019
1019
  {
1020
1020
  "stateMutability": "view",
@@ -1027,7 +1027,7 @@
1027
1027
  "type": "uint256"
1028
1028
  }
1029
1029
  ],
1030
- "gas": 2606
1030
+ "gas": "2606"
1031
1031
  },
1032
1032
  {
1033
1033
  "stateMutability": "view",
@@ -1040,7 +1040,7 @@
1040
1040
  "type": "uint256"
1041
1041
  }
1042
1042
  ],
1043
- "gas": 2636
1043
+ "gas": "2636"
1044
1044
  },
1045
1045
  {
1046
1046
  "stateMutability": "view",
@@ -1053,7 +1053,7 @@
1053
1053
  "type": "uint256"
1054
1054
  }
1055
1055
  ],
1056
- "gas": 2666
1056
+ "gas": "2666"
1057
1057
  },
1058
1058
  {
1059
1059
  "stateMutability": "view",
@@ -1066,7 +1066,7 @@
1066
1066
  "type": "uint256"
1067
1067
  }
1068
1068
  ],
1069
- "gas": 2696
1069
+ "gas": "2696"
1070
1070
  },
1071
1071
  {
1072
1072
  "stateMutability": "view",
@@ -1079,7 +1079,7 @@
1079
1079
  "type": "uint256"
1080
1080
  }
1081
1081
  ],
1082
- "gas": 2726
1082
+ "gas": "2726"
1083
1083
  },
1084
1084
  {
1085
1085
  "stateMutability": "view",
@@ -1092,7 +1092,7 @@
1092
1092
  "type": "uint256"
1093
1093
  }
1094
1094
  ],
1095
- "gas": 2756
1095
+ "gas": "2756"
1096
1096
  },
1097
1097
  {
1098
1098
  "stateMutability": "view",
@@ -1110,7 +1110,7 @@
1110
1110
  "type": "uint256"
1111
1111
  }
1112
1112
  ],
1113
- "gas": 2831
1113
+ "gas": "2831"
1114
1114
  },
1115
1115
  {
1116
1116
  "stateMutability": "view",
@@ -1123,7 +1123,7 @@
1123
1123
  "type": "uint256"
1124
1124
  }
1125
1125
  ],
1126
- "gas": 2816
1126
+ "gas": "2816"
1127
1127
  },
1128
1128
  {
1129
1129
  "stateMutability": "view",
@@ -1136,7 +1136,7 @@
1136
1136
  "type": "address"
1137
1137
  }
1138
1138
  ],
1139
- "gas": 2846
1139
+ "gas": "2846"
1140
1140
  },
1141
1141
  {
1142
1142
  "stateMutability": "view",
@@ -1149,7 +1149,7 @@
1149
1149
  "type": "address"
1150
1150
  }
1151
1151
  ],
1152
- "gas": 2876
1152
+ "gas": "2876"
1153
1153
  },
1154
1154
  {
1155
1155
  "stateMutability": "view",
@@ -1162,7 +1162,7 @@
1162
1162
  "type": "uint256"
1163
1163
  }
1164
1164
  ],
1165
- "gas": 2906
1165
+ "gas": "2906"
1166
1166
  },
1167
1167
  {
1168
1168
  "stateMutability": "view",
@@ -1175,7 +1175,7 @@
1175
1175
  "type": "uint256"
1176
1176
  }
1177
1177
  ],
1178
- "gas": 2936
1178
+ "gas": "2936"
1179
1179
  },
1180
1180
  {
1181
1181
  "stateMutability": "view",
@@ -1188,7 +1188,7 @@
1188
1188
  "type": "uint256"
1189
1189
  }
1190
1190
  ],
1191
- "gas": 2966
1191
+ "gas": "2966"
1192
1192
  },
1193
1193
  {
1194
1194
  "stateMutability": "view",
@@ -1201,7 +1201,7 @@
1201
1201
  "type": "bool"
1202
1202
  }
1203
1203
  ],
1204
- "gas": 2996
1204
+ "gas": "2996"
1205
1205
  },
1206
1206
  {
1207
1207
  "stateMutability": "view",
@@ -1214,7 +1214,7 @@
1214
1214
  "type": "uint256"
1215
1215
  }
1216
1216
  ],
1217
- "gas": 3026
1217
+ "gas": "3026"
1218
1218
  },
1219
1219
  {
1220
1220
  "stateMutability": "view",
@@ -1227,7 +1227,7 @@
1227
1227
  "type": "uint256"
1228
1228
  }
1229
1229
  ],
1230
- "gas": 3056
1230
+ "gas": "3056"
1231
1231
  },
1232
1232
  {
1233
1233
  "stateMutability": "view",
@@ -1240,7 +1240,7 @@
1240
1240
  "type": "uint256"
1241
1241
  }
1242
1242
  ],
1243
- "gas": 3086
1243
+ "gas": "3086"
1244
1244
  },
1245
1245
  {
1246
1246
  "stateMutability": "view",
@@ -1253,6 +1253,6 @@
1253
1253
  "type": "address"
1254
1254
  }
1255
1255
  ],
1256
- "gas": 3116
1256
+ "gas": "3116"
1257
1257
  }
1258
1258
  ]