@curvefi/api 2.40.1 → 2.41.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.
- package/README.md +20 -0
- package/lib/constants/abis/eursusd2/swap.json +59 -59
- package/lib/constants/abis/eursusd2/zap.json +14 -14
- package/lib/constants/abis/factory-eywa.json +1057 -0
- package/lib/constants/abis/factory-v2/Plain6Balances.json +936 -0
- package/lib/constants/abis/factory-v2/Plain6Basic.json +936 -0
- package/lib/constants/abis/factory-v2/Plain6ETH.json +936 -0
- package/lib/constants/abis/factory-v2/Plain6Optimized.json +936 -0
- package/lib/constants/abis/fusdt/swap.json +44 -44
- package/lib/constants/abis/fusdt/zap.json +10 -10
- package/lib/constants/abis/ren-arbitrum/swap.json +43 -43
- package/lib/constants/abis/tricrypto/swapNoZap.json +60 -60
- package/lib/constants/aliases.js +11 -0
- package/lib/curve.d.ts +6 -1
- package/lib/curve.js +84 -24
- package/lib/external-api.js +1 -0
- package/lib/factory/constants.js +9 -0
- package/lib/factory/factory-api.d.ts +2 -2
- package/lib/factory/factory-crypto.js +1 -0
- package/lib/factory/factory.js +2 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.js +7 -0
- package/lib/interfaces.d.ts +2 -1
- package/lib/pools/PoolTemplate.js +1 -1
- package/package.json +1 -1
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
"type": "uint256"
|
|
348
348
|
}
|
|
349
349
|
],
|
|
350
|
-
"gas": 288
|
|
350
|
+
"gas": "288"
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"stateMutability": "nonpayable",
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"type": "bool"
|
|
370
370
|
}
|
|
371
371
|
],
|
|
372
|
-
"gas": 79157
|
|
372
|
+
"gas": "79157"
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
375
|
"stateMutability": "nonpayable",
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
"type": "bool"
|
|
396
396
|
}
|
|
397
397
|
],
|
|
398
|
-
"gas": 117092
|
|
398
|
+
"gas": "117092"
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
"stateMutability": "nonpayable",
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
"type": "bool"
|
|
418
418
|
}
|
|
419
419
|
],
|
|
420
|
-
"gas": 39121
|
|
420
|
+
"gas": "39121"
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
"stateMutability": "view",
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
"type": "uint256[2]"
|
|
431
431
|
}
|
|
432
432
|
],
|
|
433
|
-
"gas": 4677
|
|
433
|
+
"gas": "4677"
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
436
|
"stateMutability": "view",
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
"type": "uint256"
|
|
444
444
|
}
|
|
445
445
|
],
|
|
446
|
-
"gas": 10674
|
|
446
|
+
"gas": "10674"
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
449
|
"stateMutability": "view",
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
"type": "uint256"
|
|
457
457
|
}
|
|
458
458
|
],
|
|
459
|
-
"gas": 10636
|
|
459
|
+
"gas": "10636"
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
462
|
"stateMutability": "view",
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
"type": "uint256"
|
|
470
470
|
}
|
|
471
471
|
],
|
|
472
|
-
"gas": 844048
|
|
472
|
+
"gas": "844048"
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
"stateMutability": "view",
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
"type": "uint256"
|
|
492
492
|
}
|
|
493
493
|
],
|
|
494
|
-
"gas": 3326331
|
|
494
|
+
"gas": "3326331"
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
"stateMutability": "nonpayable",
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
"type": "uint256"
|
|
539
539
|
}
|
|
540
540
|
],
|
|
541
|
-
"gas": 2112598
|
|
541
|
+
"gas": "2112598"
|
|
542
542
|
},
|
|
543
543
|
{
|
|
544
544
|
"stateMutability": "nonpayable",
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
"type": "uint256"
|
|
632
632
|
}
|
|
633
633
|
],
|
|
634
|
-
"gas": 1018
|
|
634
|
+
"gas": "1018"
|
|
635
635
|
},
|
|
636
636
|
{
|
|
637
637
|
"stateMutability": "nonpayable",
|
|
@@ -673,7 +673,7 @@
|
|
|
673
673
|
}
|
|
674
674
|
],
|
|
675
675
|
"outputs": [],
|
|
676
|
-
"gas": 159505
|
|
676
|
+
"gas": "159505"
|
|
677
677
|
},
|
|
678
678
|
{
|
|
679
679
|
"stateMutability": "nonpayable",
|
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
"name": "stop_ramp_A",
|
|
682
682
|
"inputs": [],
|
|
683
683
|
"outputs": [],
|
|
684
|
-
"gas": 155422
|
|
684
|
+
"gas": "155422"
|
|
685
685
|
},
|
|
686
686
|
{
|
|
687
687
|
"stateMutability": "nonpayable",
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
}
|
|
699
699
|
],
|
|
700
700
|
"outputs": [],
|
|
701
|
-
"gas": 113605
|
|
701
|
+
"gas": "113605"
|
|
702
702
|
},
|
|
703
703
|
{
|
|
704
704
|
"stateMutability": "nonpayable",
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
"name": "apply_new_fee",
|
|
707
707
|
"inputs": [],
|
|
708
708
|
"outputs": [],
|
|
709
|
-
"gas": 103911
|
|
709
|
+
"gas": "103911"
|
|
710
710
|
},
|
|
711
711
|
{
|
|
712
712
|
"stateMutability": "nonpayable",
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
"name": "revert_new_parameters",
|
|
715
715
|
"inputs": [],
|
|
716
716
|
"outputs": [],
|
|
717
|
-
"gas": 23042
|
|
717
|
+
"gas": "23042"
|
|
718
718
|
},
|
|
719
719
|
{
|
|
720
720
|
"stateMutability": "nonpayable",
|
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
}
|
|
728
728
|
],
|
|
729
729
|
"outputs": [],
|
|
730
|
-
"gas": 78640
|
|
730
|
+
"gas": "78640"
|
|
731
731
|
},
|
|
732
732
|
{
|
|
733
733
|
"stateMutability": "nonpayable",
|
|
@@ -735,7 +735,7 @@
|
|
|
735
735
|
"name": "apply_transfer_ownership",
|
|
736
736
|
"inputs": [],
|
|
737
737
|
"outputs": [],
|
|
738
|
-
"gas": 66942
|
|
738
|
+
"gas": "66942"
|
|
739
739
|
},
|
|
740
740
|
{
|
|
741
741
|
"stateMutability": "nonpayable",
|
|
@@ -743,7 +743,7 @@
|
|
|
743
743
|
"name": "revert_transfer_ownership",
|
|
744
744
|
"inputs": [],
|
|
745
745
|
"outputs": [],
|
|
746
|
-
"gas": 23132
|
|
746
|
+
"gas": "23132"
|
|
747
747
|
},
|
|
748
748
|
{
|
|
749
749
|
"stateMutability": "view",
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
"type": "uint256"
|
|
762
762
|
}
|
|
763
763
|
],
|
|
764
|
-
"gas": 7860
|
|
764
|
+
"gas": "7860"
|
|
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": 21859
|
|
772
|
+
"gas": "21859"
|
|
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": 82576
|
|
780
|
+
"gas": "82576"
|
|
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": 40445
|
|
788
|
+
"gas": "40445"
|
|
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": 23282
|
|
796
|
+
"gas": "23282"
|
|
797
797
|
},
|
|
798
798
|
{
|
|
799
799
|
"stateMutability": "view",
|
|
@@ -811,7 +811,7 @@
|
|
|
811
811
|
"type": "address"
|
|
812
812
|
}
|
|
813
813
|
],
|
|
814
|
-
"gas": 3303
|
|
814
|
+
"gas": "3303"
|
|
815
815
|
},
|
|
816
816
|
{
|
|
817
817
|
"stateMutability": "view",
|
|
@@ -829,7 +829,7 @@
|
|
|
829
829
|
"type": "uint256"
|
|
830
830
|
}
|
|
831
831
|
],
|
|
832
|
-
"gas": 3333
|
|
832
|
+
"gas": "3333"
|
|
833
833
|
},
|
|
834
834
|
{
|
|
835
835
|
"stateMutability": "view",
|
|
@@ -842,7 +842,7 @@
|
|
|
842
842
|
"type": "uint256"
|
|
843
843
|
}
|
|
844
844
|
],
|
|
845
|
-
"gas": 3318
|
|
845
|
+
"gas": "3318"
|
|
846
846
|
},
|
|
847
847
|
{
|
|
848
848
|
"stateMutability": "view",
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
"type": "uint256"
|
|
856
856
|
}
|
|
857
857
|
],
|
|
858
|
-
"gas": 3348
|
|
858
|
+
"gas": "3348"
|
|
859
859
|
},
|
|
860
860
|
{
|
|
861
861
|
"stateMutability": "view",
|
|
@@ -868,7 +868,7 @@
|
|
|
868
868
|
"type": "address"
|
|
869
869
|
}
|
|
870
870
|
],
|
|
871
|
-
"gas": 3378
|
|
871
|
+
"gas": "3378"
|
|
872
872
|
},
|
|
873
873
|
{
|
|
874
874
|
"stateMutability": "view",
|
|
@@ -881,7 +881,7 @@
|
|
|
881
881
|
"type": "uint256"
|
|
882
882
|
}
|
|
883
883
|
],
|
|
884
|
-
"gas": 3408
|
|
884
|
+
"gas": "3408"
|
|
885
885
|
},
|
|
886
886
|
{
|
|
887
887
|
"stateMutability": "view",
|
|
@@ -894,7 +894,7 @@
|
|
|
894
894
|
"type": "uint256"
|
|
895
895
|
}
|
|
896
896
|
],
|
|
897
|
-
"gas": 3438
|
|
897
|
+
"gas": "3438"
|
|
898
898
|
},
|
|
899
899
|
{
|
|
900
900
|
"stateMutability": "view",
|
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
"type": "uint256"
|
|
908
908
|
}
|
|
909
909
|
],
|
|
910
|
-
"gas": 3468
|
|
910
|
+
"gas": "3468"
|
|
911
911
|
},
|
|
912
912
|
{
|
|
913
913
|
"stateMutability": "view",
|
|
@@ -920,7 +920,7 @@
|
|
|
920
920
|
"type": "uint256"
|
|
921
921
|
}
|
|
922
922
|
],
|
|
923
|
-
"gas": 3498
|
|
923
|
+
"gas": "3498"
|
|
924
924
|
},
|
|
925
925
|
{
|
|
926
926
|
"stateMutability": "view",
|
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
"type": "uint256"
|
|
934
934
|
}
|
|
935
935
|
],
|
|
936
|
-
"gas": 3528
|
|
936
|
+
"gas": "3528"
|
|
937
937
|
},
|
|
938
938
|
{
|
|
939
939
|
"stateMutability": "view",
|
|
@@ -946,7 +946,7 @@
|
|
|
946
946
|
"type": "uint256"
|
|
947
947
|
}
|
|
948
948
|
],
|
|
949
|
-
"gas": 3558
|
|
949
|
+
"gas": "3558"
|
|
950
950
|
},
|
|
951
951
|
{
|
|
952
952
|
"stateMutability": "view",
|
|
@@ -959,7 +959,7 @@
|
|
|
959
959
|
"type": "uint256"
|
|
960
960
|
}
|
|
961
961
|
],
|
|
962
|
-
"gas": 3588
|
|
962
|
+
"gas": "3588"
|
|
963
963
|
},
|
|
964
964
|
{
|
|
965
965
|
"stateMutability": "view",
|
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
"type": "uint256"
|
|
973
973
|
}
|
|
974
974
|
],
|
|
975
|
-
"gas": 3618
|
|
975
|
+
"gas": "3618"
|
|
976
976
|
},
|
|
977
977
|
{
|
|
978
978
|
"stateMutability": "view",
|
|
@@ -985,7 +985,7 @@
|
|
|
985
985
|
"type": "address"
|
|
986
986
|
}
|
|
987
987
|
],
|
|
988
|
-
"gas": 3648
|
|
988
|
+
"gas": "3648"
|
|
989
989
|
},
|
|
990
990
|
{
|
|
991
991
|
"stateMutability": "view",
|
|
@@ -998,7 +998,7 @@
|
|
|
998
998
|
"type": "string"
|
|
999
999
|
}
|
|
1000
1000
|
],
|
|
1001
|
-
"gas": 13908
|
|
1001
|
+
"gas": "13908"
|
|
1002
1002
|
},
|
|
1003
1003
|
{
|
|
1004
1004
|
"stateMutability": "view",
|
|
@@ -1011,7 +1011,7 @@
|
|
|
1011
1011
|
"type": "string"
|
|
1012
1012
|
}
|
|
1013
1013
|
],
|
|
1014
|
-
"gas": 11661
|
|
1014
|
+
"gas": "11661"
|
|
1015
1015
|
},
|
|
1016
1016
|
{
|
|
1017
1017
|
"stateMutability": "view",
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
"type": "uint256"
|
|
1030
1030
|
}
|
|
1031
1031
|
],
|
|
1032
|
-
"gas": 3953
|
|
1032
|
+
"gas": "3953"
|
|
1033
1033
|
},
|
|
1034
1034
|
{
|
|
1035
1035
|
"stateMutability": "view",
|
|
@@ -1051,7 +1051,7 @@
|
|
|
1051
1051
|
"type": "uint256"
|
|
1052
1052
|
}
|
|
1053
1053
|
],
|
|
1054
|
-
"gas": 4198
|
|
1054
|
+
"gas": "4198"
|
|
1055
1055
|
},
|
|
1056
1056
|
{
|
|
1057
1057
|
"stateMutability": "view",
|
|
@@ -1064,6 +1064,6 @@
|
|
|
1064
1064
|
"type": "uint256"
|
|
1065
1065
|
}
|
|
1066
1066
|
],
|
|
1067
|
-
"gas": 3798
|
|
1067
|
+
"gas": "3798"
|
|
1068
1068
|
}
|
|
1069
1069
|
]
|