@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.
- package/README.md +98 -1
- package/lib/constants/abis/abis-ethereum.js +144 -16
- package/lib/constants/abis/abis-polygon.js +17 -1
- package/lib/constants/abis/json/aave/rewards.json +107 -0
- package/lib/constants/abis/json/atricrypto3/swap.json +63 -63
- package/lib/constants/abis/json/atricrypto3/zap.json +8 -8
- package/lib/constants/abis/json/busd/deposit.json +5 -10
- package/lib/constants/abis/json/busd/swap.json +18 -36
- package/lib/constants/abis/json/compound/deposit.json +5 -10
- package/lib/constants/abis/json/compound/migration.json +1 -2
- package/lib/constants/abis/json/compound/oldSwap.json +16 -32
- package/lib/constants/abis/json/compound/swap.json +18 -36
- package/lib/constants/abis/json/crveth/swap.json +61 -61
- package/lib/constants/abis/json/eurt/swap.json +29 -29
- package/lib/constants/abis/json/eurtusd/deposit.json +13 -13
- package/lib/constants/abis/json/eurtusd/swap.json +59 -59
- package/lib/constants/abis/json/gauge.json +1 -1
- package/lib/constants/abis/json/gauge_factory.json +879 -0
- package/lib/constants/abis/json/gauge_rewards_only.json +649 -0
- package/lib/constants/abis/json/gauge_synthetix.json +590 -0
- package/lib/constants/abis/json/gauge_v2.json +942 -0
- package/lib/constants/abis/json/gauge_v3.json +954 -0
- package/lib/constants/abis/json/gauge_v4.json +913 -0
- package/lib/constants/abis/json/iearn/deposit.json +5 -10
- package/lib/constants/abis/json/iearn/swap.json +18 -36
- package/lib/constants/abis/json/minter.json +165 -0
- package/lib/constants/abis/json/pax/deposit.json +5 -10
- package/lib/constants/abis/json/pax/swap.json +19 -38
- package/lib/constants/abis/json/ren/swap.json +19 -38
- package/lib/constants/abis/json/ren-polygon/swap.json +46 -46
- package/lib/constants/abis/json/reth/swap.json +38 -38
- package/lib/constants/abis/json/sbtc/swap.json +19 -38
- package/lib/constants/abis/json/streamer.json +257 -0
- package/lib/constants/abis/json/susdv2/deposit.json +5 -10
- package/lib/constants/abis/json/susdv2/swap.json +16 -32
- package/lib/constants/abis/json/tricrypto2/deposit.json +3 -3
- package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
- package/lib/constants/abis/json/usdt/deposit.json +5 -10
- package/lib/constants/abis/json/usdt/swap.json +19 -37
- package/lib/constants/aliases.d.ts +2 -0
- package/lib/constants/aliases.js +3 -1
- package/lib/constants/coins-ethereum.js +4 -2
- package/lib/constants/coins-polygon.js +3 -2
- package/lib/curve.d.ts +1 -0
- package/lib/curve.js +47 -16
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/interfaces.d.ts +8 -0
- package/lib/pools.d.ts +41 -5
- package/lib/pools.js +334 -52
- package/lib/utils.d.ts +2 -1
- package/lib/utils.js +42 -29
- package/package.json +1 -1
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
}
|
|
275
275
|
],
|
|
276
276
|
"outputs": [],
|
|
277
|
-
"gas": 471502
|
|
277
|
+
"gas": "471502"
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
"stateMutability": "view",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"type": "uint256"
|
|
288
288
|
}
|
|
289
289
|
],
|
|
290
|
-
"gas": 318
|
|
290
|
+
"gas": "318"
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"stateMutability": "nonpayable",
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
"type": "bool"
|
|
310
310
|
}
|
|
311
311
|
],
|
|
312
|
-
"gas": 77977
|
|
312
|
+
"gas": "77977"
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
315
|
"stateMutability": "nonpayable",
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"type": "bool"
|
|
336
336
|
}
|
|
337
337
|
],
|
|
338
|
-
"gas": 115912
|
|
338
|
+
"gas": "115912"
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"stateMutability": "nonpayable",
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"type": "bool"
|
|
358
358
|
}
|
|
359
359
|
],
|
|
360
|
-
"gas": 37851
|
|
360
|
+
"gas": "37851"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
"stateMutability": "view",
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"type": "uint256[2]"
|
|
371
371
|
}
|
|
372
372
|
],
|
|
373
|
-
"gas": 4707
|
|
373
|
+
"gas": "4707"
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
376
|
"stateMutability": "view",
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
"type": "uint256"
|
|
384
384
|
}
|
|
385
385
|
],
|
|
386
|
-
"gas": 468
|
|
386
|
+
"gas": "468"
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"stateMutability": "view",
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
"type": "uint256"
|
|
397
397
|
}
|
|
398
398
|
],
|
|
399
|
-
"gas": 10764
|
|
399
|
+
"gas": "10764"
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
"stateMutability": "view",
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
"type": "uint256"
|
|
410
410
|
}
|
|
411
411
|
],
|
|
412
|
-
"gas": 10726
|
|
412
|
+
"gas": "10726"
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
415
|
"stateMutability": "view",
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
"type": "uint256"
|
|
423
423
|
}
|
|
424
424
|
],
|
|
425
|
-
"gas": 848656
|
|
425
|
+
"gas": "848656"
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
"stateMutability": "view",
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"type": "uint256"
|
|
445
445
|
}
|
|
446
446
|
],
|
|
447
|
-
"gas": 3336308
|
|
447
|
+
"gas": "3336308"
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
450
|
"stateMutability": "nonpayable",
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
"type": "uint256"
|
|
492
492
|
}
|
|
493
493
|
],
|
|
494
|
-
"gas": 2117591
|
|
494
|
+
"gas": "2117591"
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
"stateMutability": "nonpayable",
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
"type": "uint256"
|
|
585
585
|
}
|
|
586
586
|
],
|
|
587
|
-
"gas": 1100
|
|
587
|
+
"gas": "1100"
|
|
588
588
|
},
|
|
589
589
|
{
|
|
590
590
|
"stateMutability": "nonpayable",
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
}
|
|
627
627
|
],
|
|
628
628
|
"outputs": [],
|
|
629
|
-
"gas": 162101
|
|
629
|
+
"gas": "162101"
|
|
630
630
|
},
|
|
631
631
|
{
|
|
632
632
|
"stateMutability": "nonpayable",
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
"name": "stop_ramp_A",
|
|
635
635
|
"inputs": [],
|
|
636
636
|
"outputs": [],
|
|
637
|
-
"gas": 157565
|
|
637
|
+
"gas": "157565"
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
640
|
"stateMutability": "view",
|
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
"type": "uint256"
|
|
653
653
|
}
|
|
654
654
|
],
|
|
655
|
-
"gas": 7740
|
|
655
|
+
"gas": "7740"
|
|
656
656
|
},
|
|
657
657
|
{
|
|
658
658
|
"stateMutability": "nonpayable",
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
"name": "withdraw_admin_fees",
|
|
661
661
|
"inputs": [],
|
|
662
662
|
"outputs": [],
|
|
663
|
-
"gas": 33182
|
|
663
|
+
"gas": "33182"
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
666
|
"stateMutability": "view",
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
"type": "address"
|
|
679
679
|
}
|
|
680
680
|
],
|
|
681
|
-
"gas": 3093
|
|
681
|
+
"gas": "3093"
|
|
682
682
|
},
|
|
683
683
|
{
|
|
684
684
|
"stateMutability": "view",
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
"type": "uint256"
|
|
697
697
|
}
|
|
698
698
|
],
|
|
699
|
-
"gas": 3123
|
|
699
|
+
"gas": "3123"
|
|
700
700
|
},
|
|
701
701
|
{
|
|
702
702
|
"stateMutability": "view",
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
"type": "uint256"
|
|
710
710
|
}
|
|
711
711
|
],
|
|
712
|
-
"gas": 3108
|
|
712
|
+
"gas": "3108"
|
|
713
713
|
},
|
|
714
714
|
{
|
|
715
715
|
"stateMutability": "view",
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
"type": "uint256"
|
|
723
723
|
}
|
|
724
724
|
],
|
|
725
|
-
"gas": 3138
|
|
725
|
+
"gas": "3138"
|
|
726
726
|
},
|
|
727
727
|
{
|
|
728
728
|
"stateMutability": "view",
|
|
@@ -735,7 +735,7 @@
|
|
|
735
735
|
"type": "uint256"
|
|
736
736
|
}
|
|
737
737
|
],
|
|
738
|
-
"gas": 3168
|
|
738
|
+
"gas": "3168"
|
|
739
739
|
},
|
|
740
740
|
{
|
|
741
741
|
"stateMutability": "view",
|
|
@@ -748,7 +748,7 @@
|
|
|
748
748
|
"type": "uint256"
|
|
749
749
|
}
|
|
750
750
|
],
|
|
751
|
-
"gas": 3198
|
|
751
|
+
"gas": "3198"
|
|
752
752
|
},
|
|
753
753
|
{
|
|
754
754
|
"stateMutability": "view",
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
"type": "uint256"
|
|
762
762
|
}
|
|
763
763
|
],
|
|
764
|
-
"gas": 3228
|
|
764
|
+
"gas": "3228"
|
|
765
765
|
},
|
|
766
766
|
{
|
|
767
767
|
"stateMutability": "view",
|
|
@@ -774,7 +774,7 @@
|
|
|
774
774
|
"type": "string"
|
|
775
775
|
}
|
|
776
776
|
],
|
|
777
|
-
"gas": 13488
|
|
777
|
+
"gas": "13488"
|
|
778
778
|
},
|
|
779
779
|
{
|
|
780
780
|
"stateMutability": "view",
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
"type": "string"
|
|
788
788
|
}
|
|
789
789
|
],
|
|
790
|
-
"gas": 11241
|
|
790
|
+
"gas": "11241"
|
|
791
791
|
},
|
|
792
792
|
{
|
|
793
793
|
"stateMutability": "view",
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
"type": "uint256"
|
|
806
806
|
}
|
|
807
807
|
],
|
|
808
|
-
"gas": 3533
|
|
808
|
+
"gas": "3533"
|
|
809
809
|
},
|
|
810
810
|
{
|
|
811
811
|
"stateMutability": "view",
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
"type": "uint256"
|
|
828
828
|
}
|
|
829
829
|
],
|
|
830
|
-
"gas": 3778
|
|
830
|
+
"gas": "3778"
|
|
831
831
|
},
|
|
832
832
|
{
|
|
833
833
|
"stateMutability": "view",
|
|
@@ -840,6 +840,6 @@
|
|
|
840
840
|
"type": "uint256"
|
|
841
841
|
}
|
|
842
842
|
],
|
|
843
|
-
"gas": 3378
|
|
843
|
+
"gas": "3378"
|
|
844
844
|
}
|
|
845
845
|
]
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"type": "uint256"
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
|
-
"gas": 4244
|
|
29
|
+
"gas": "4244"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"stateMutability": "nonpayable",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
"outputs": [],
|
|
46
|
-
"gas": 26265
|
|
46
|
+
"gas": "26265"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"stateMutability": "nonpayable",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"type": "uint256"
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
|
-
"gas": 20845
|
|
76
|
+
"gas": "20845"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"stateMutability": "nonpayable",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
],
|
|
92
92
|
"outputs": [],
|
|
93
|
-
"gas": 37086
|
|
93
|
+
"gas": "37086"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
"stateMutability": "nonpayable",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
],
|
|
113
113
|
"outputs": [],
|
|
114
|
-
"gas": 13300
|
|
114
|
+
"gas": "13300"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"stateMutability": "view",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"type": "uint256"
|
|
138
138
|
}
|
|
139
139
|
],
|
|
140
|
-
"gas": 9447
|
|
140
|
+
"gas": "9447"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"stateMutability": "view",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"type": "uint256"
|
|
156
156
|
}
|
|
157
157
|
],
|
|
158
|
-
"gas": 4967
|
|
158
|
+
"gas": "4967"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"stateMutability": "view",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"type": "uint256"
|
|
178
178
|
}
|
|
179
179
|
],
|
|
180
|
-
"gas": 6555
|
|
180
|
+
"gas": "6555"
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"stateMutability": "view",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"type": "address"
|
|
196
196
|
}
|
|
197
197
|
],
|
|
198
|
-
"gas": 1505
|
|
198
|
+
"gas": "1505"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
"stateMutability": "view",
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"type": "address"
|
|
214
214
|
}
|
|
215
215
|
],
|
|
216
|
-
"gas": 1541
|
|
216
|
+
"gas": "1541"
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
"stateMutability": "view",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"type": "address"
|
|
227
227
|
}
|
|
228
228
|
],
|
|
229
|
-
"gas": 1526
|
|
229
|
+
"gas": "1526"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"stateMutability": "view",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"type": "address"
|
|
240
240
|
}
|
|
241
241
|
],
|
|
242
|
-
"gas": 1556
|
|
242
|
+
"gas": "1556"
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
"stateMutability": "view",
|
|
@@ -252,6 +252,6 @@
|
|
|
252
252
|
"type": "address"
|
|
253
253
|
}
|
|
254
254
|
],
|
|
255
|
-
"gas": 1586
|
|
255
|
+
"gas": "1586"
|
|
256
256
|
}
|
|
257
257
|
]
|