@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
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
"type": "uint256"
|
|
384
384
|
}
|
|
385
385
|
],
|
|
386
|
-
"gas": 288
|
|
386
|
+
"gas": "288"
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"stateMutability": "nonpayable",
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
"type": "bool"
|
|
406
406
|
}
|
|
407
407
|
],
|
|
408
|
-
"gas": 75317
|
|
408
|
+
"gas": "75317"
|
|
409
409
|
},
|
|
410
410
|
{
|
|
411
411
|
"stateMutability": "nonpayable",
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
"type": "bool"
|
|
432
432
|
}
|
|
433
433
|
],
|
|
434
|
-
"gas": 111952
|
|
434
|
+
"gas": "111952"
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
437
|
"stateMutability": "nonpayable",
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
"type": "bool"
|
|
454
454
|
}
|
|
455
455
|
],
|
|
456
|
-
"gas": 37821
|
|
456
|
+
"gas": "37821"
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
"stateMutability": "view",
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
"type": "uint256[2]"
|
|
467
467
|
}
|
|
468
468
|
],
|
|
469
|
-
"gas": 2221
|
|
469
|
+
"gas": "2221"
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
472
|
"stateMutability": "view",
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
"type": "uint256[2]"
|
|
480
480
|
}
|
|
481
481
|
],
|
|
482
|
-
"gas": 2251
|
|
482
|
+
"gas": "2251"
|
|
483
483
|
},
|
|
484
484
|
{
|
|
485
485
|
"stateMutability": "view",
|
|
@@ -505,7 +505,7 @@
|
|
|
505
505
|
"type": "uint256[2]"
|
|
506
506
|
}
|
|
507
507
|
],
|
|
508
|
-
"gas": 1489
|
|
508
|
+
"gas": "1489"
|
|
509
509
|
},
|
|
510
510
|
{
|
|
511
511
|
"stateMutability": "view",
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
"type": "uint256[2]"
|
|
519
519
|
}
|
|
520
520
|
],
|
|
521
|
-
"gas": 2311
|
|
521
|
+
"gas": "2311"
|
|
522
522
|
},
|
|
523
523
|
{
|
|
524
524
|
"stateMutability": "view",
|
|
@@ -531,7 +531,7 @@
|
|
|
531
531
|
"type": "uint256"
|
|
532
532
|
}
|
|
533
533
|
],
|
|
534
|
-
"gas": 5654
|
|
534
|
+
"gas": "5654"
|
|
535
535
|
},
|
|
536
536
|
{
|
|
537
537
|
"stateMutability": "view",
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
"type": "uint256"
|
|
545
545
|
}
|
|
546
546
|
],
|
|
547
|
-
"gas": 5616
|
|
547
|
+
"gas": "5616"
|
|
548
548
|
},
|
|
549
549
|
{
|
|
550
550
|
"stateMutability": "view",
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
"type": "uint256"
|
|
558
558
|
}
|
|
559
559
|
],
|
|
560
|
-
"gas": 1010459
|
|
560
|
+
"gas": "1010459"
|
|
561
561
|
},
|
|
562
562
|
{
|
|
563
563
|
"stateMutability": "view",
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
}
|
|
813
813
|
],
|
|
814
814
|
"outputs": [],
|
|
815
|
-
"gas": 152079
|
|
815
|
+
"gas": "152079"
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
818
|
"stateMutability": "nonpayable",
|
|
@@ -820,7 +820,7 @@
|
|
|
820
820
|
"name": "stop_ramp_A",
|
|
821
821
|
"inputs": [],
|
|
822
822
|
"outputs": [],
|
|
823
|
-
"gas": 148840
|
|
823
|
+
"gas": "148840"
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
826
|
"stateMutability": "nonpayable",
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
}
|
|
838
838
|
],
|
|
839
839
|
"outputs": [],
|
|
840
|
-
"gas": 110458
|
|
840
|
+
"gas": "110458"
|
|
841
841
|
},
|
|
842
842
|
{
|
|
843
843
|
"stateMutability": "nonpayable",
|
|
@@ -845,7 +845,7 @@
|
|
|
845
845
|
"name": "apply_new_fee",
|
|
846
846
|
"inputs": [],
|
|
847
847
|
"outputs": [],
|
|
848
|
-
"gas": 97239
|
|
848
|
+
"gas": "97239"
|
|
849
849
|
},
|
|
850
850
|
{
|
|
851
851
|
"stateMutability": "nonpayable",
|
|
@@ -853,7 +853,7 @@
|
|
|
853
853
|
"name": "revert_new_parameters",
|
|
854
854
|
"inputs": [],
|
|
855
855
|
"outputs": [],
|
|
856
|
-
"gas": 21892
|
|
856
|
+
"gas": "21892"
|
|
857
857
|
},
|
|
858
858
|
{
|
|
859
859
|
"stateMutability": "nonpayable",
|
|
@@ -866,7 +866,7 @@
|
|
|
866
866
|
}
|
|
867
867
|
],
|
|
868
868
|
"outputs": [],
|
|
869
|
-
"gas": 74630
|
|
869
|
+
"gas": "74630"
|
|
870
870
|
},
|
|
871
871
|
{
|
|
872
872
|
"stateMutability": "nonpayable",
|
|
@@ -874,7 +874,7 @@
|
|
|
874
874
|
"name": "apply_transfer_ownership",
|
|
875
875
|
"inputs": [],
|
|
876
876
|
"outputs": [],
|
|
877
|
-
"gas": 60707
|
|
877
|
+
"gas": "60707"
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
880
|
"stateMutability": "nonpayable",
|
|
@@ -882,7 +882,7 @@
|
|
|
882
882
|
"name": "revert_transfer_ownership",
|
|
883
883
|
"inputs": [],
|
|
884
884
|
"outputs": [],
|
|
885
|
-
"gas": 21982
|
|
885
|
+
"gas": "21982"
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
"stateMutability": "view",
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
"type": "uint256"
|
|
901
901
|
}
|
|
902
902
|
],
|
|
903
|
-
"gas": 3478
|
|
903
|
+
"gas": "3478"
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
906
|
"stateMutability": "nonpayable",
|
|
@@ -908,7 +908,7 @@
|
|
|
908
908
|
"name": "withdraw_admin_fees",
|
|
909
909
|
"inputs": [],
|
|
910
910
|
"outputs": [],
|
|
911
|
-
"gas": 10340
|
|
911
|
+
"gas": "10340"
|
|
912
912
|
},
|
|
913
913
|
{
|
|
914
914
|
"stateMutability": "nonpayable",
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
"name": "donate_admin_fees",
|
|
917
917
|
"inputs": [],
|
|
918
918
|
"outputs": [],
|
|
919
|
-
"gas": 74962
|
|
919
|
+
"gas": "74962"
|
|
920
920
|
},
|
|
921
921
|
{
|
|
922
922
|
"stateMutability": "nonpayable",
|
|
@@ -924,7 +924,7 @@
|
|
|
924
924
|
"name": "kill_me",
|
|
925
925
|
"inputs": [],
|
|
926
926
|
"outputs": [],
|
|
927
|
-
"gas": 37995
|
|
927
|
+
"gas": "37995"
|
|
928
928
|
},
|
|
929
929
|
{
|
|
930
930
|
"stateMutability": "nonpayable",
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
"name": "unkill_me",
|
|
933
933
|
"inputs": [],
|
|
934
934
|
"outputs": [],
|
|
935
|
-
"gas": 22132
|
|
935
|
+
"gas": "22132"
|
|
936
936
|
},
|
|
937
937
|
{
|
|
938
938
|
"stateMutability": "view",
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
"type": "address"
|
|
951
951
|
}
|
|
952
952
|
],
|
|
953
|
-
"gas": 2217
|
|
953
|
+
"gas": "2217"
|
|
954
954
|
},
|
|
955
955
|
{
|
|
956
956
|
"stateMutability": "view",
|
|
@@ -968,7 +968,7 @@
|
|
|
968
968
|
"type": "uint256"
|
|
969
969
|
}
|
|
970
970
|
],
|
|
971
|
-
"gas": 2247
|
|
971
|
+
"gas": "2247"
|
|
972
972
|
},
|
|
973
973
|
{
|
|
974
974
|
"stateMutability": "view",
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
"type": "uint256"
|
|
982
982
|
}
|
|
983
983
|
],
|
|
984
|
-
"gas": 2168
|
|
984
|
+
"gas": "2168"
|
|
985
985
|
},
|
|
986
986
|
{
|
|
987
987
|
"stateMutability": "view",
|
|
@@ -994,7 +994,7 @@
|
|
|
994
994
|
"type": "uint256"
|
|
995
995
|
}
|
|
996
996
|
],
|
|
997
|
-
"gas": 2198
|
|
997
|
+
"gas": "2198"
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
1000
|
"stateMutability": "view",
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
"type": "uint256"
|
|
1008
1008
|
}
|
|
1009
1009
|
],
|
|
1010
|
-
"gas": 2228
|
|
1010
|
+
"gas": "2228"
|
|
1011
1011
|
},
|
|
1012
1012
|
{
|
|
1013
1013
|
"stateMutability": "view",
|
|
@@ -1020,7 +1020,7 @@
|
|
|
1020
1020
|
"type": "address"
|
|
1021
1021
|
}
|
|
1022
1022
|
],
|
|
1023
|
-
"gas": 2258
|
|
1023
|
+
"gas": "2258"
|
|
1024
1024
|
},
|
|
1025
1025
|
{
|
|
1026
1026
|
"stateMutability": "view",
|
|
@@ -1033,7 +1033,7 @@
|
|
|
1033
1033
|
"type": "uint256"
|
|
1034
1034
|
}
|
|
1035
1035
|
],
|
|
1036
|
-
"gas": 2288
|
|
1036
|
+
"gas": "2288"
|
|
1037
1037
|
},
|
|
1038
1038
|
{
|
|
1039
1039
|
"stateMutability": "view",
|
|
@@ -1046,7 +1046,7 @@
|
|
|
1046
1046
|
"type": "uint256"
|
|
1047
1047
|
}
|
|
1048
1048
|
],
|
|
1049
|
-
"gas": 2318
|
|
1049
|
+
"gas": "2318"
|
|
1050
1050
|
},
|
|
1051
1051
|
{
|
|
1052
1052
|
"stateMutability": "view",
|
|
@@ -1059,7 +1059,7 @@
|
|
|
1059
1059
|
"type": "uint256"
|
|
1060
1060
|
}
|
|
1061
1061
|
],
|
|
1062
|
-
"gas": 2348
|
|
1062
|
+
"gas": "2348"
|
|
1063
1063
|
},
|
|
1064
1064
|
{
|
|
1065
1065
|
"stateMutability": "view",
|
|
@@ -1072,7 +1072,7 @@
|
|
|
1072
1072
|
"type": "uint256"
|
|
1073
1073
|
}
|
|
1074
1074
|
],
|
|
1075
|
-
"gas": 2378
|
|
1075
|
+
"gas": "2378"
|
|
1076
1076
|
},
|
|
1077
1077
|
{
|
|
1078
1078
|
"stateMutability": "view",
|
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
"type": "uint256"
|
|
1086
1086
|
}
|
|
1087
1087
|
],
|
|
1088
|
-
"gas": 2408
|
|
1088
|
+
"gas": "2408"
|
|
1089
1089
|
},
|
|
1090
1090
|
{
|
|
1091
1091
|
"stateMutability": "view",
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
"type": "uint256"
|
|
1099
1099
|
}
|
|
1100
1100
|
],
|
|
1101
|
-
"gas": 2438
|
|
1101
|
+
"gas": "2438"
|
|
1102
1102
|
},
|
|
1103
1103
|
{
|
|
1104
1104
|
"stateMutability": "view",
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
"type": "uint256"
|
|
1112
1112
|
}
|
|
1113
1113
|
],
|
|
1114
|
-
"gas": 2468
|
|
1114
|
+
"gas": "2468"
|
|
1115
1115
|
},
|
|
1116
1116
|
{
|
|
1117
1117
|
"stateMutability": "view",
|
|
@@ -1124,7 +1124,7 @@
|
|
|
1124
1124
|
"type": "uint256"
|
|
1125
1125
|
}
|
|
1126
1126
|
],
|
|
1127
|
-
"gas": 2498
|
|
1127
|
+
"gas": "2498"
|
|
1128
1128
|
},
|
|
1129
1129
|
{
|
|
1130
1130
|
"stateMutability": "view",
|
|
@@ -1137,7 +1137,7 @@
|
|
|
1137
1137
|
"type": "address"
|
|
1138
1138
|
}
|
|
1139
1139
|
],
|
|
1140
|
-
"gas": 2528
|
|
1140
|
+
"gas": "2528"
|
|
1141
1141
|
},
|
|
1142
1142
|
{
|
|
1143
1143
|
"stateMutability": "view",
|
|
@@ -1150,7 +1150,7 @@
|
|
|
1150
1150
|
"type": "string"
|
|
1151
1151
|
}
|
|
1152
1152
|
],
|
|
1153
|
-
"gas": 8960
|
|
1153
|
+
"gas": "8960"
|
|
1154
1154
|
},
|
|
1155
1155
|
{
|
|
1156
1156
|
"stateMutability": "view",
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
"type": "string"
|
|
1164
1164
|
}
|
|
1165
1165
|
],
|
|
1166
|
-
"gas": 8013
|
|
1166
|
+
"gas": "8013"
|
|
1167
1167
|
},
|
|
1168
1168
|
{
|
|
1169
1169
|
"stateMutability": "view",
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
"type": "uint256"
|
|
1182
1182
|
}
|
|
1183
1183
|
],
|
|
1184
|
-
"gas": 2833
|
|
1184
|
+
"gas": "2833"
|
|
1185
1185
|
},
|
|
1186
1186
|
{
|
|
1187
1187
|
"stateMutability": "view",
|
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
"type": "uint256"
|
|
1204
1204
|
}
|
|
1205
1205
|
],
|
|
1206
|
-
"gas": 3078
|
|
1206
|
+
"gas": "3078"
|
|
1207
1207
|
},
|
|
1208
1208
|
{
|
|
1209
1209
|
"stateMutability": "view",
|
|
@@ -1216,6 +1216,6 @@
|
|
|
1216
1216
|
"type": "uint256"
|
|
1217
1217
|
}
|
|
1218
1218
|
],
|
|
1219
|
-
"gas": 2678
|
|
1219
|
+
"gas": "2678"
|
|
1220
1220
|
}
|
|
1221
1221
|
]
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"type": "uint256"
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
|
-
"gas": 25605
|
|
37
|
+
"gas": "25605"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"stateMutability": "nonpayable",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"type": "uint256[3]"
|
|
57
57
|
}
|
|
58
58
|
],
|
|
59
|
-
"gas": 26803
|
|
59
|
+
"gas": "26803"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"stateMutability": "nonpayable",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"type": "uint256"
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
|
-
"gas": 14494
|
|
85
|
+
"gas": "14494"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"stateMutability": "nonpayable",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"type": "uint256"
|
|
105
105
|
}
|
|
106
106
|
],
|
|
107
|
-
"gas": 32024
|
|
107
|
+
"gas": "32024"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"stateMutability": "view",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"type": "uint256"
|
|
127
127
|
}
|
|
128
128
|
],
|
|
129
|
-
"gas": 3174
|
|
129
|
+
"gas": "3174"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"stateMutability": "view",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"type": "uint256"
|
|
149
149
|
}
|
|
150
150
|
],
|
|
151
|
-
"gas": 3998
|
|
151
|
+
"gas": "3998"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"stateMutability": "view",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"type": "address"
|
|
162
162
|
}
|
|
163
163
|
],
|
|
164
|
-
"gas": 1268
|
|
164
|
+
"gas": "1268"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"stateMutability": "view",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"type": "address"
|
|
175
175
|
}
|
|
176
176
|
],
|
|
177
|
-
"gas": 1298
|
|
177
|
+
"gas": "1298"
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"stateMutability": "view",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"type": "address"
|
|
193
193
|
}
|
|
194
194
|
],
|
|
195
|
-
"gas": 1437
|
|
195
|
+
"gas": "1437"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"stateMutability": "view",
|
|
@@ -210,6 +210,6 @@
|
|
|
210
210
|
"type": "address"
|
|
211
211
|
}
|
|
212
212
|
],
|
|
213
|
-
"gas": 1467
|
|
213
|
+
"gas": "1467"
|
|
214
214
|
}
|
|
215
215
|
]
|