@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
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
"type": "uint256"
|
|
377
377
|
}
|
|
378
378
|
],
|
|
379
|
-
"gas": 3361
|
|
379
|
+
"gas": "3361"
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
382
|
"stateMutability": "view",
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
"type": "uint256"
|
|
395
395
|
}
|
|
396
396
|
],
|
|
397
|
-
"gas": 3391
|
|
397
|
+
"gas": "3391"
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
"stateMutability": "view",
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"type": "uint256"
|
|
413
413
|
}
|
|
414
414
|
],
|
|
415
|
-
"gas": 3421
|
|
415
|
+
"gas": "3421"
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
"stateMutability": "view",
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
"type": "address"
|
|
426
426
|
}
|
|
427
427
|
],
|
|
428
|
-
"gas": 468
|
|
428
|
+
"gas": "468"
|
|
429
429
|
},
|
|
430
430
|
{
|
|
431
431
|
"stateMutability": "view",
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
"type": "address"
|
|
444
444
|
}
|
|
445
445
|
],
|
|
446
|
-
"gas": 582
|
|
446
|
+
"gas": "582"
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
449
|
"stateMutability": "view",
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
"type": "uint256"
|
|
457
457
|
}
|
|
458
458
|
],
|
|
459
|
-
"gas": 597
|
|
459
|
+
"gas": "597"
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
462
|
"stateMutability": "view",
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
"type": "uint256"
|
|
470
470
|
}
|
|
471
471
|
],
|
|
472
|
-
"gas": 11991
|
|
472
|
+
"gas": "11991"
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
"stateMutability": "view",
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
"type": "uint256"
|
|
483
483
|
}
|
|
484
484
|
],
|
|
485
|
-
"gas": 21481
|
|
485
|
+
"gas": "21481"
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"stateMutability": "view",
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
"type": "uint256"
|
|
501
501
|
}
|
|
502
502
|
],
|
|
503
|
-
"gas": 11096
|
|
503
|
+
"gas": "11096"
|
|
504
504
|
},
|
|
505
505
|
{
|
|
506
506
|
"stateMutability": "view",
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
"type": "uint256"
|
|
514
514
|
}
|
|
515
515
|
],
|
|
516
|
-
"gas": 11582
|
|
516
|
+
"gas": "11582"
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
"stateMutability": "payable",
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
"type": "uint256"
|
|
569
569
|
}
|
|
570
570
|
],
|
|
571
|
-
"gas": 3122
|
|
571
|
+
"gas": "3122"
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
574
|
"stateMutability": "view",
|
|
@@ -590,7 +590,7 @@
|
|
|
590
590
|
"type": "uint256"
|
|
591
591
|
}
|
|
592
592
|
],
|
|
593
|
-
"gas": 26582
|
|
593
|
+
"gas": "26582"
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
596
|
"stateMutability": "nonpayable",
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
}
|
|
608
608
|
],
|
|
609
609
|
"outputs": [],
|
|
610
|
-
"gas": 1400833
|
|
610
|
+
"gas": "1400833"
|
|
611
611
|
},
|
|
612
612
|
{
|
|
613
613
|
"stateMutability": "nonpayable",
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
}
|
|
625
625
|
],
|
|
626
626
|
"outputs": [],
|
|
627
|
-
"gas": 233573
|
|
627
|
+
"gas": "233573"
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
630
|
"stateMutability": "view",
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
"type": "uint256"
|
|
647
647
|
}
|
|
648
648
|
],
|
|
649
|
-
"gas": 3429
|
|
649
|
+
"gas": "3429"
|
|
650
650
|
},
|
|
651
651
|
{
|
|
652
652
|
"stateMutability": "view",
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
"type": "uint256"
|
|
669
669
|
}
|
|
670
670
|
],
|
|
671
|
-
"gas": 13432
|
|
671
|
+
"gas": "13432"
|
|
672
672
|
},
|
|
673
673
|
{
|
|
674
674
|
"stateMutability": "nonpayable",
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
}
|
|
690
690
|
],
|
|
691
691
|
"outputs": [],
|
|
692
|
-
"gas": 1310913
|
|
692
|
+
"gas": "1310913"
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
695
|
"stateMutability": "nonpayable",
|
|
@@ -697,7 +697,7 @@
|
|
|
697
697
|
"name": "claim_admin_fees",
|
|
698
698
|
"inputs": [],
|
|
699
699
|
"outputs": [],
|
|
700
|
-
"gas": 389296
|
|
700
|
+
"gas": "389296"
|
|
701
701
|
},
|
|
702
702
|
{
|
|
703
703
|
"stateMutability": "nonpayable",
|
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
}
|
|
719
719
|
],
|
|
720
720
|
"outputs": [],
|
|
721
|
-
"gas": 163102
|
|
721
|
+
"gas": "163102"
|
|
722
722
|
},
|
|
723
723
|
{
|
|
724
724
|
"stateMutability": "nonpayable",
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
"name": "stop_ramp_A_gamma",
|
|
727
727
|
"inputs": [],
|
|
728
728
|
"outputs": [],
|
|
729
|
-
"gas": 157247
|
|
729
|
+
"gas": "157247"
|
|
730
730
|
},
|
|
731
731
|
{
|
|
732
732
|
"stateMutability": "nonpayable",
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
}
|
|
764
764
|
],
|
|
765
765
|
"outputs": [],
|
|
766
|
-
"gas": 306190
|
|
766
|
+
"gas": "306190"
|
|
767
767
|
},
|
|
768
768
|
{
|
|
769
769
|
"stateMutability": "nonpayable",
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
"name": "apply_new_parameters",
|
|
772
772
|
"inputs": [],
|
|
773
773
|
"outputs": [],
|
|
774
|
-
"gas": 682926
|
|
774
|
+
"gas": "682926"
|
|
775
775
|
},
|
|
776
776
|
{
|
|
777
777
|
"stateMutability": "nonpayable",
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
"name": "revert_new_parameters",
|
|
780
780
|
"inputs": [],
|
|
781
781
|
"outputs": [],
|
|
782
|
-
"gas": 23222
|
|
782
|
+
"gas": "23222"
|
|
783
783
|
},
|
|
784
784
|
{
|
|
785
785
|
"stateMutability": "nonpayable",
|
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
}
|
|
793
793
|
],
|
|
794
794
|
"outputs": [],
|
|
795
|
-
"gas": 77260
|
|
795
|
+
"gas": "77260"
|
|
796
796
|
},
|
|
797
797
|
{
|
|
798
798
|
"stateMutability": "nonpayable",
|
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
"name": "apply_transfer_ownership",
|
|
801
801
|
"inputs": [],
|
|
802
802
|
"outputs": [],
|
|
803
|
-
"gas": 65937
|
|
803
|
+
"gas": "65937"
|
|
804
804
|
},
|
|
805
805
|
{
|
|
806
806
|
"stateMutability": "nonpayable",
|
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
"name": "revert_transfer_ownership",
|
|
809
809
|
"inputs": [],
|
|
810
810
|
"outputs": [],
|
|
811
|
-
"gas": 23312
|
|
811
|
+
"gas": "23312"
|
|
812
812
|
},
|
|
813
813
|
{
|
|
814
814
|
"stateMutability": "nonpayable",
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
"name": "kill_me",
|
|
817
817
|
"inputs": [],
|
|
818
818
|
"outputs": [],
|
|
819
|
-
"gas": 40535
|
|
819
|
+
"gas": "40535"
|
|
820
820
|
},
|
|
821
821
|
{
|
|
822
822
|
"stateMutability": "nonpayable",
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
"name": "unkill_me",
|
|
825
825
|
"inputs": [],
|
|
826
826
|
"outputs": [],
|
|
827
|
-
"gas": 23372
|
|
827
|
+
"gas": "23372"
|
|
828
828
|
},
|
|
829
829
|
{
|
|
830
830
|
"stateMutability": "nonpayable",
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
}
|
|
838
838
|
],
|
|
839
839
|
"outputs": [],
|
|
840
|
-
"gas": 38505
|
|
840
|
+
"gas": "38505"
|
|
841
841
|
},
|
|
842
842
|
{
|
|
843
843
|
"stateMutability": "view",
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
"type": "uint256"
|
|
851
851
|
}
|
|
852
852
|
],
|
|
853
|
-
"gas": 3378
|
|
853
|
+
"gas": "3378"
|
|
854
854
|
},
|
|
855
855
|
{
|
|
856
856
|
"stateMutability": "view",
|
|
@@ -863,7 +863,7 @@
|
|
|
863
863
|
"type": "uint256"
|
|
864
864
|
}
|
|
865
865
|
],
|
|
866
|
-
"gas": 3408
|
|
866
|
+
"gas": "3408"
|
|
867
867
|
},
|
|
868
868
|
{
|
|
869
869
|
"stateMutability": "view",
|
|
@@ -876,7 +876,7 @@
|
|
|
876
876
|
"type": "uint256"
|
|
877
877
|
}
|
|
878
878
|
],
|
|
879
|
-
"gas": 3438
|
|
879
|
+
"gas": "3438"
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
"stateMutability": "view",
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
"type": "uint256"
|
|
890
890
|
}
|
|
891
891
|
],
|
|
892
|
-
"gas": 3468
|
|
892
|
+
"gas": "3468"
|
|
893
893
|
},
|
|
894
894
|
{
|
|
895
895
|
"stateMutability": "view",
|
|
@@ -902,7 +902,7 @@
|
|
|
902
902
|
"type": "uint256"
|
|
903
903
|
}
|
|
904
904
|
],
|
|
905
|
-
"gas": 3498
|
|
905
|
+
"gas": "3498"
|
|
906
906
|
},
|
|
907
907
|
{
|
|
908
908
|
"stateMutability": "view",
|
|
@@ -915,7 +915,7 @@
|
|
|
915
915
|
"type": "uint256"
|
|
916
916
|
}
|
|
917
917
|
],
|
|
918
|
-
"gas": 3528
|
|
918
|
+
"gas": "3528"
|
|
919
919
|
},
|
|
920
920
|
{
|
|
921
921
|
"stateMutability": "view",
|
|
@@ -928,7 +928,7 @@
|
|
|
928
928
|
"type": "uint256"
|
|
929
929
|
}
|
|
930
930
|
],
|
|
931
|
-
"gas": 3558
|
|
931
|
+
"gas": "3558"
|
|
932
932
|
},
|
|
933
933
|
{
|
|
934
934
|
"stateMutability": "view",
|
|
@@ -941,7 +941,7 @@
|
|
|
941
941
|
"type": "uint256"
|
|
942
942
|
}
|
|
943
943
|
],
|
|
944
|
-
"gas": 3588
|
|
944
|
+
"gas": "3588"
|
|
945
945
|
},
|
|
946
946
|
{
|
|
947
947
|
"stateMutability": "view",
|
|
@@ -954,7 +954,7 @@
|
|
|
954
954
|
"type": "uint256"
|
|
955
955
|
}
|
|
956
956
|
],
|
|
957
|
-
"gas": 3618
|
|
957
|
+
"gas": "3618"
|
|
958
958
|
},
|
|
959
959
|
{
|
|
960
960
|
"stateMutability": "view",
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
"type": "uint256"
|
|
968
968
|
}
|
|
969
969
|
],
|
|
970
|
-
"gas": 3648
|
|
970
|
+
"gas": "3648"
|
|
971
971
|
},
|
|
972
972
|
{
|
|
973
973
|
"stateMutability": "view",
|
|
@@ -980,7 +980,7 @@
|
|
|
980
980
|
"type": "uint256"
|
|
981
981
|
}
|
|
982
982
|
],
|
|
983
|
-
"gas": 3678
|
|
983
|
+
"gas": "3678"
|
|
984
984
|
},
|
|
985
985
|
{
|
|
986
986
|
"stateMutability": "view",
|
|
@@ -993,7 +993,7 @@
|
|
|
993
993
|
"type": "uint256"
|
|
994
994
|
}
|
|
995
995
|
],
|
|
996
|
-
"gas": 3708
|
|
996
|
+
"gas": "3708"
|
|
997
997
|
},
|
|
998
998
|
{
|
|
999
999
|
"stateMutability": "view",
|
|
@@ -1006,7 +1006,7 @@
|
|
|
1006
1006
|
"type": "uint256"
|
|
1007
1007
|
}
|
|
1008
1008
|
],
|
|
1009
|
-
"gas": 3738
|
|
1009
|
+
"gas": "3738"
|
|
1010
1010
|
},
|
|
1011
1011
|
{
|
|
1012
1012
|
"stateMutability": "view",
|
|
@@ -1019,7 +1019,7 @@
|
|
|
1019
1019
|
"type": "uint256"
|
|
1020
1020
|
}
|
|
1021
1021
|
],
|
|
1022
|
-
"gas": 3768
|
|
1022
|
+
"gas": "3768"
|
|
1023
1023
|
},
|
|
1024
1024
|
{
|
|
1025
1025
|
"stateMutability": "view",
|
|
@@ -1032,7 +1032,7 @@
|
|
|
1032
1032
|
"type": "uint256"
|
|
1033
1033
|
}
|
|
1034
1034
|
],
|
|
1035
|
-
"gas": 3798
|
|
1035
|
+
"gas": "3798"
|
|
1036
1036
|
},
|
|
1037
1037
|
{
|
|
1038
1038
|
"stateMutability": "view",
|
|
@@ -1045,7 +1045,7 @@
|
|
|
1045
1045
|
"type": "uint256"
|
|
1046
1046
|
}
|
|
1047
1047
|
],
|
|
1048
|
-
"gas": 3828
|
|
1048
|
+
"gas": "3828"
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
1051
1051
|
"stateMutability": "view",
|
|
@@ -1058,7 +1058,7 @@
|
|
|
1058
1058
|
"type": "uint256"
|
|
1059
1059
|
}
|
|
1060
1060
|
],
|
|
1061
|
-
"gas": 3858
|
|
1061
|
+
"gas": "3858"
|
|
1062
1062
|
},
|
|
1063
1063
|
{
|
|
1064
1064
|
"stateMutability": "view",
|
|
@@ -1071,7 +1071,7 @@
|
|
|
1071
1071
|
"type": "uint256"
|
|
1072
1072
|
}
|
|
1073
1073
|
],
|
|
1074
|
-
"gas": 3888
|
|
1074
|
+
"gas": "3888"
|
|
1075
1075
|
},
|
|
1076
1076
|
{
|
|
1077
1077
|
"stateMutability": "view",
|
|
@@ -1084,7 +1084,7 @@
|
|
|
1084
1084
|
"type": "uint256"
|
|
1085
1085
|
}
|
|
1086
1086
|
],
|
|
1087
|
-
"gas": 3918
|
|
1087
|
+
"gas": "3918"
|
|
1088
1088
|
},
|
|
1089
1089
|
{
|
|
1090
1090
|
"stateMutability": "view",
|
|
@@ -1102,7 +1102,7 @@
|
|
|
1102
1102
|
"type": "uint256"
|
|
1103
1103
|
}
|
|
1104
1104
|
],
|
|
1105
|
-
"gas": 3993
|
|
1105
|
+
"gas": "3993"
|
|
1106
1106
|
},
|
|
1107
1107
|
{
|
|
1108
1108
|
"stateMutability": "view",
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
"type": "uint256"
|
|
1116
1116
|
}
|
|
1117
1117
|
],
|
|
1118
|
-
"gas": 3978
|
|
1118
|
+
"gas": "3978"
|
|
1119
1119
|
},
|
|
1120
1120
|
{
|
|
1121
1121
|
"stateMutability": "view",
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
"type": "address"
|
|
1129
1129
|
}
|
|
1130
1130
|
],
|
|
1131
|
-
"gas": 4008
|
|
1131
|
+
"gas": "4008"
|
|
1132
1132
|
},
|
|
1133
1133
|
{
|
|
1134
1134
|
"stateMutability": "view",
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
"type": "address"
|
|
1142
1142
|
}
|
|
1143
1143
|
],
|
|
1144
|
-
"gas": 4038
|
|
1144
|
+
"gas": "4038"
|
|
1145
1145
|
},
|
|
1146
1146
|
{
|
|
1147
1147
|
"stateMutability": "view",
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
"type": "uint256"
|
|
1155
1155
|
}
|
|
1156
1156
|
],
|
|
1157
|
-
"gas": 4068
|
|
1157
|
+
"gas": "4068"
|
|
1158
1158
|
},
|
|
1159
1159
|
{
|
|
1160
1160
|
"stateMutability": "view",
|
|
@@ -1167,7 +1167,7 @@
|
|
|
1167
1167
|
"type": "uint256"
|
|
1168
1168
|
}
|
|
1169
1169
|
],
|
|
1170
|
-
"gas": 4098
|
|
1170
|
+
"gas": "4098"
|
|
1171
1171
|
},
|
|
1172
1172
|
{
|
|
1173
1173
|
"stateMutability": "view",
|
|
@@ -1180,7 +1180,7 @@
|
|
|
1180
1180
|
"type": "uint256"
|
|
1181
1181
|
}
|
|
1182
1182
|
],
|
|
1183
|
-
"gas": 4128
|
|
1183
|
+
"gas": "4128"
|
|
1184
1184
|
},
|
|
1185
1185
|
{
|
|
1186
1186
|
"stateMutability": "view",
|
|
@@ -1193,7 +1193,7 @@
|
|
|
1193
1193
|
"type": "bool"
|
|
1194
1194
|
}
|
|
1195
1195
|
],
|
|
1196
|
-
"gas": 4158
|
|
1196
|
+
"gas": "4158"
|
|
1197
1197
|
},
|
|
1198
1198
|
{
|
|
1199
1199
|
"stateMutability": "view",
|
|
@@ -1206,7 +1206,7 @@
|
|
|
1206
1206
|
"type": "uint256"
|
|
1207
1207
|
}
|
|
1208
1208
|
],
|
|
1209
|
-
"gas": 4188
|
|
1209
|
+
"gas": "4188"
|
|
1210
1210
|
},
|
|
1211
1211
|
{
|
|
1212
1212
|
"stateMutability": "view",
|
|
@@ -1219,7 +1219,7 @@
|
|
|
1219
1219
|
"type": "uint256"
|
|
1220
1220
|
}
|
|
1221
1221
|
],
|
|
1222
|
-
"gas": 4218
|
|
1222
|
+
"gas": "4218"
|
|
1223
1223
|
},
|
|
1224
1224
|
{
|
|
1225
1225
|
"stateMutability": "view",
|
|
@@ -1232,7 +1232,7 @@
|
|
|
1232
1232
|
"type": "uint256"
|
|
1233
1233
|
}
|
|
1234
1234
|
],
|
|
1235
|
-
"gas": 4248
|
|
1235
|
+
"gas": "4248"
|
|
1236
1236
|
},
|
|
1237
1237
|
{
|
|
1238
1238
|
"stateMutability": "view",
|
|
@@ -1245,6 +1245,6 @@
|
|
|
1245
1245
|
"type": "address"
|
|
1246
1246
|
}
|
|
1247
1247
|
],
|
|
1248
|
-
"gas": 4278
|
|
1248
|
+
"gas": "4278"
|
|
1249
1249
|
}
|
|
1250
1250
|
]
|
package/lib/constants/aliases.js
CHANGED
|
@@ -11,6 +11,7 @@ export var ALIASES_ETHEREUM = lowerCaseValues({
|
|
|
11
11
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
12
12
|
"factory": '0xb9fc157394af804a3578134a6585c0dc9cc990d4',
|
|
13
13
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
14
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
14
15
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
15
16
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
16
17
|
"registry_exchange": "",
|
|
@@ -28,6 +29,7 @@ export var ALIASES_POLYGON = lowerCaseValues({
|
|
|
28
29
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
29
30
|
"factory": '0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee',
|
|
30
31
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
32
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
31
33
|
"crypto_factory": "0xE5De15A9C9bBedb4F5EC13B131E61245f2983A69",
|
|
32
34
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
33
35
|
"registry_exchange": "",
|
|
@@ -45,6 +47,7 @@ export var ALIASES_FANTOM = lowerCaseValues({
|
|
|
45
47
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
46
48
|
"factory": "0x686d67265703d1f124c45e33d47d794c566889ba",
|
|
47
49
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
50
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
48
51
|
"crypto_factory": "0xE5De15A9C9bBedb4F5EC13B131E61245f2983A69",
|
|
49
52
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
50
53
|
"registry_exchange": "",
|
|
@@ -62,6 +65,7 @@ export var ALIASES_AVALANCHE = lowerCaseValues({
|
|
|
62
65
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
63
66
|
"factory": '0xb17b674D9c5CB2e441F8e196a2f048A81355d031',
|
|
64
67
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
68
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
65
69
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
66
70
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
67
71
|
"registry_exchange": "",
|
|
@@ -79,6 +83,7 @@ export var ALIASES_ARBITRUM = lowerCaseValues({
|
|
|
79
83
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
80
84
|
"factory": '0xb17b674D9c5CB2e441F8e196a2f048A81355d031',
|
|
81
85
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
86
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
82
87
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
83
88
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
84
89
|
"registry_exchange": "",
|
|
@@ -96,6 +101,7 @@ export var ALIASES_OPTIMISM = lowerCaseValues({
|
|
|
96
101
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
97
102
|
"factory": '0x2db0E83599a91b508Ac268a6197b8B14F5e72840',
|
|
98
103
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
104
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
99
105
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
100
106
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
101
107
|
"registry_exchange": "",
|
|
@@ -113,6 +119,7 @@ export var ALIASES_XDAI = lowerCaseValues({
|
|
|
113
119
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
114
120
|
"factory": '0xD19Baeadc667Cf2015e395f2B08668Ef120f41F5',
|
|
115
121
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
122
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
116
123
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
117
124
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
118
125
|
"registry_exchange": "",
|
|
@@ -130,6 +137,7 @@ export var ALIASES_MOONBEAM = lowerCaseValues({
|
|
|
130
137
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
131
138
|
"factory": '0x4244eB811D6e0Ef302326675207A95113dB4E1F8',
|
|
132
139
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
140
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
133
141
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
134
142
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
135
143
|
"registry_exchange": "",
|
|
@@ -147,6 +155,7 @@ export var ALIASES_AURORA = lowerCaseValues({
|
|
|
147
155
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
148
156
|
"factory": '0xb9fc157394af804a3578134a6585c0dc9cc990d4',
|
|
149
157
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
158
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
150
159
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
151
160
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
152
161
|
"registry_exchange": "",
|
|
@@ -164,6 +173,7 @@ export var ALIASES_KAVA = lowerCaseValues({
|
|
|
164
173
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
165
174
|
"factory": '0x40bc62805471eF53DdD5C5cF99ed3d9e5aa81b48',
|
|
166
175
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
176
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
167
177
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
168
178
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
169
179
|
"registry_exchange": "",
|
|
@@ -181,6 +191,7 @@ export var ALIASES_CELO = lowerCaseValues({
|
|
|
181
191
|
"stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
182
192
|
"factory": '0x5277A0226d10392295E8D383E9724D6E416d6e6C',
|
|
183
193
|
"crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
|
|
194
|
+
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
184
195
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
185
196
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
186
197
|
"registry_exchange": "",
|
package/lib/curve.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ethers, Contract, Networkish, BigNumberish, Numeric } from "ethers";
|
|
2
2
|
import { Provider as MulticallProvider, Contract as MulticallContract } from 'ethcall';
|
|
3
|
-
import { IPoolData, IDict, ICurve, INetworkName, IChainId } from "./interfaces";
|
|
3
|
+
import { IPoolData, IDict, ICurve, INetworkName, IChainId, IFactoryPoolType } from "./interfaces";
|
|
4
4
|
export declare const NATIVE_TOKENS: {
|
|
5
5
|
[index: number]: {
|
|
6
6
|
symbol: string;
|
|
@@ -49,12 +49,14 @@ declare class Curve implements ICurve {
|
|
|
49
49
|
POOLS_DATA: IDict<IPoolData>;
|
|
50
50
|
FACTORY_POOLS_DATA: IDict<IPoolData>;
|
|
51
51
|
CRVUSD_FACTORY_POOLS_DATA: IDict<IPoolData>;
|
|
52
|
+
EYWA_FACTORY_POOLS_DATA: IDict<IPoolData>;
|
|
52
53
|
CRYPTO_FACTORY_POOLS_DATA: IDict<IPoolData>;
|
|
53
54
|
TRICRYPTO_FACTORY_POOLS_DATA: IDict<IPoolData>;
|
|
54
55
|
LLAMMAS_DATA: IDict<IPoolData>;
|
|
55
56
|
COINS: IDict<string>;
|
|
56
57
|
DECIMALS: IDict<number>;
|
|
57
58
|
GAUGES: string[];
|
|
59
|
+
FACTORY_GAUGE_IMPLEMENTATIONS: IDict<IFactoryPoolType>;
|
|
58
60
|
ZERO_ADDRESS: string;
|
|
59
61
|
};
|
|
60
62
|
constructor();
|
|
@@ -77,6 +79,7 @@ declare class Curve implements ICurve {
|
|
|
77
79
|
_updateDecimalsAndGauges(pools: IDict<IPoolData>): void;
|
|
78
80
|
fetchFactoryPools: (useApi?: boolean) => Promise<void>;
|
|
79
81
|
fetchCrvusdFactoryPools: (useApi?: boolean) => Promise<void>;
|
|
82
|
+
fetchEywaFactoryPools: (useApi?: boolean) => Promise<void>;
|
|
80
83
|
fetchCryptoFactoryPools: (useApi?: boolean) => Promise<void>;
|
|
81
84
|
fetchTricryptoFactoryPools: (useApi?: boolean) => Promise<void>;
|
|
82
85
|
fetchNewFactoryPools: () => Promise<string[]>;
|
|
@@ -88,10 +91,12 @@ declare class Curve implements ICurve {
|
|
|
88
91
|
getMainPoolList: () => string[];
|
|
89
92
|
getFactoryPoolList: () => string[];
|
|
90
93
|
getCrvusdFactoryPoolList: () => string[];
|
|
94
|
+
getEywaFactoryPoolList: () => string[];
|
|
91
95
|
getCryptoFactoryPoolList: () => string[];
|
|
92
96
|
getTricryptoFactoryPoolList: () => string[];
|
|
93
97
|
getPoolList: () => string[];
|
|
94
98
|
getPoolsData: () => IDict<IPoolData>;
|
|
99
|
+
getGaugeImplementation: (factoryType: IFactoryPoolType) => string;
|
|
95
100
|
setCustomFeeData(customFeeData: {
|
|
96
101
|
gasPrice?: number;
|
|
97
102
|
maxFeePerGas?: number;
|