@curvefi/api 1.14.0 → 1.15.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 +30 -0
- package/lib/constants/abis/abis-ethereum.js +78 -16
- package/lib/constants/abis/abis-polygon.js +13 -5
- 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/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/minter.json +165 -0
- 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/tricrypto2/deposit.json +3 -3
- package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
- package/lib/constants/aliases.d.ts +2 -0
- package/lib/constants/aliases.js +2 -0
- package/lib/constants/coins-polygon.js +3 -2
- package/lib/curve.d.ts +1 -0
- package/lib/curve.js +43 -23
- package/lib/interfaces.d.ts +7 -1
- package/lib/pools.d.ts +13 -2
- package/lib/pools.js +187 -25
- package/package.json +1 -1
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"inputs": [],
|
|
299
299
|
"stateMutability": "view",
|
|
300
300
|
"type": "function",
|
|
301
|
-
"gas": 5289
|
|
301
|
+
"gas": "5289"
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
"name": "A_precise",
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
"inputs": [],
|
|
312
312
|
"stateMutability": "view",
|
|
313
313
|
"type": "function",
|
|
314
|
-
"gas": 5251
|
|
314
|
+
"gas": "5251"
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
"name": "get_virtual_price",
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
"inputs": [],
|
|
325
325
|
"stateMutability": "view",
|
|
326
326
|
"type": "function",
|
|
327
|
-
"gas": 1007693
|
|
327
|
+
"gas": "1007693"
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
330
|
"name": "calc_token_amount",
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
],
|
|
347
347
|
"stateMutability": "view",
|
|
348
348
|
"type": "function",
|
|
349
|
-
"gas": 2008092
|
|
349
|
+
"gas": "2008092"
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
352
|
"name": "add_liquidity",
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
],
|
|
369
369
|
"stateMutability": "payable",
|
|
370
370
|
"type": "function",
|
|
371
|
-
"gas": 3177140
|
|
371
|
+
"gas": "3177140"
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
"name": "get_dy",
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
],
|
|
395
395
|
"stateMutability": "view",
|
|
396
396
|
"type": "function",
|
|
397
|
-
"gas": 2444404
|
|
397
|
+
"gas": "2444404"
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
"name": "exchange",
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
],
|
|
425
425
|
"stateMutability": "payable",
|
|
426
426
|
"type": "function",
|
|
427
|
-
"gas": 2638539
|
|
427
|
+
"gas": "2638539"
|
|
428
428
|
},
|
|
429
429
|
{
|
|
430
430
|
"name": "remove_liquidity",
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
],
|
|
447
447
|
"stateMutability": "nonpayable",
|
|
448
448
|
"type": "function",
|
|
449
|
-
"gas": 230063
|
|
449
|
+
"gas": "230063"
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
452
|
"name": "remove_liquidity_imbalance",
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
],
|
|
469
469
|
"stateMutability": "nonpayable",
|
|
470
470
|
"type": "function",
|
|
471
|
-
"gas": 3240360
|
|
471
|
+
"gas": "3240360"
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
"name": "calc_withdraw_one_coin",
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
],
|
|
491
491
|
"stateMutability": "view",
|
|
492
492
|
"type": "function",
|
|
493
|
-
"gas": 1375
|
|
493
|
+
"gas": "1375"
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
"name": "remove_liquidity_one_coin",
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
],
|
|
517
517
|
"stateMutability": "nonpayable",
|
|
518
518
|
"type": "function",
|
|
519
|
-
"gas": 3899991
|
|
519
|
+
"gas": "3899991"
|
|
520
520
|
},
|
|
521
521
|
{
|
|
522
522
|
"name": "ramp_A",
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
],
|
|
534
534
|
"stateMutability": "nonpayable",
|
|
535
535
|
"type": "function",
|
|
536
|
-
"gas": 151774
|
|
536
|
+
"gas": "151774"
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
539
|
"name": "stop_ramp_A",
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
"inputs": [],
|
|
542
542
|
"stateMutability": "nonpayable",
|
|
543
543
|
"type": "function",
|
|
544
|
-
"gas": 148535
|
|
544
|
+
"gas": "148535"
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
"name": "commit_new_fee",
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
],
|
|
559
559
|
"stateMutability": "nonpayable",
|
|
560
560
|
"type": "function",
|
|
561
|
-
"gas": 110371
|
|
561
|
+
"gas": "110371"
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
564
|
"name": "apply_new_fee",
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"inputs": [],
|
|
567
567
|
"stateMutability": "nonpayable",
|
|
568
568
|
"type": "function",
|
|
569
|
-
"gas": 153055
|
|
569
|
+
"gas": "153055"
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
572
|
"name": "revert_new_parameters",
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
"inputs": [],
|
|
575
575
|
"stateMutability": "nonpayable",
|
|
576
576
|
"type": "function",
|
|
577
|
-
"gas": 21805
|
|
577
|
+
"gas": "21805"
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
580
|
"name": "commit_transfer_ownership",
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
],
|
|
588
588
|
"stateMutability": "nonpayable",
|
|
589
589
|
"type": "function",
|
|
590
|
-
"gas": 74543
|
|
590
|
+
"gas": "74543"
|
|
591
591
|
},
|
|
592
592
|
{
|
|
593
593
|
"name": "apply_transfer_ownership",
|
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
"inputs": [],
|
|
596
596
|
"stateMutability": "nonpayable",
|
|
597
597
|
"type": "function",
|
|
598
|
-
"gas": 116523
|
|
598
|
+
"gas": "116523"
|
|
599
599
|
},
|
|
600
600
|
{
|
|
601
601
|
"name": "revert_transfer_ownership",
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
"inputs": [],
|
|
604
604
|
"stateMutability": "nonpayable",
|
|
605
605
|
"type": "function",
|
|
606
|
-
"gas": 21895
|
|
606
|
+
"gas": "21895"
|
|
607
607
|
},
|
|
608
608
|
{
|
|
609
609
|
"name": "admin_balances",
|
|
@@ -621,7 +621,7 @@
|
|
|
621
621
|
],
|
|
622
622
|
"stateMutability": "view",
|
|
623
623
|
"type": "function",
|
|
624
|
-
"gas": 3453
|
|
624
|
+
"gas": "3453"
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
627
|
"name": "withdraw_admin_fees",
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
"inputs": [],
|
|
630
630
|
"stateMutability": "nonpayable",
|
|
631
631
|
"type": "function",
|
|
632
|
-
"gas": 133752
|
|
632
|
+
"gas": "133752"
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"name": "donate_admin_fees",
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
"inputs": [],
|
|
638
638
|
"stateMutability": "nonpayable",
|
|
639
639
|
"type": "function",
|
|
640
|
-
"gas": 130899
|
|
640
|
+
"gas": "130899"
|
|
641
641
|
},
|
|
642
642
|
{
|
|
643
643
|
"name": "kill_me",
|
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
"inputs": [],
|
|
646
646
|
"stateMutability": "nonpayable",
|
|
647
647
|
"type": "function",
|
|
648
|
-
"gas": 37908
|
|
648
|
+
"gas": "37908"
|
|
649
649
|
},
|
|
650
650
|
{
|
|
651
651
|
"name": "unkill_me",
|
|
@@ -653,7 +653,7 @@
|
|
|
653
653
|
"inputs": [],
|
|
654
654
|
"stateMutability": "nonpayable",
|
|
655
655
|
"type": "function",
|
|
656
|
-
"gas": 22045
|
|
656
|
+
"gas": "22045"
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
659
|
"name": "coins",
|
|
@@ -671,7 +671,7 @@
|
|
|
671
671
|
],
|
|
672
672
|
"stateMutability": "view",
|
|
673
673
|
"type": "function",
|
|
674
|
-
"gas": 2130
|
|
674
|
+
"gas": "2130"
|
|
675
675
|
},
|
|
676
676
|
{
|
|
677
677
|
"name": "balances",
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
],
|
|
690
690
|
"stateMutability": "view",
|
|
691
691
|
"type": "function",
|
|
692
|
-
"gas": 2160
|
|
692
|
+
"gas": "2160"
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
695
|
"name": "fee",
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
"inputs": [],
|
|
703
703
|
"stateMutability": "view",
|
|
704
704
|
"type": "function",
|
|
705
|
-
"gas": 2081
|
|
705
|
+
"gas": "2081"
|
|
706
706
|
},
|
|
707
707
|
{
|
|
708
708
|
"name": "admin_fee",
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
"inputs": [],
|
|
716
716
|
"stateMutability": "view",
|
|
717
717
|
"type": "function",
|
|
718
|
-
"gas": 2111
|
|
718
|
+
"gas": "2111"
|
|
719
719
|
},
|
|
720
720
|
{
|
|
721
721
|
"name": "owner",
|
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
"inputs": [],
|
|
729
729
|
"stateMutability": "view",
|
|
730
730
|
"type": "function",
|
|
731
|
-
"gas": 2141
|
|
731
|
+
"gas": "2141"
|
|
732
732
|
},
|
|
733
733
|
{
|
|
734
734
|
"name": "initial_A",
|
|
@@ -741,7 +741,7 @@
|
|
|
741
741
|
"inputs": [],
|
|
742
742
|
"stateMutability": "view",
|
|
743
743
|
"type": "function",
|
|
744
|
-
"gas": 2171
|
|
744
|
+
"gas": "2171"
|
|
745
745
|
},
|
|
746
746
|
{
|
|
747
747
|
"name": "future_A",
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
"inputs": [],
|
|
755
755
|
"stateMutability": "view",
|
|
756
756
|
"type": "function",
|
|
757
|
-
"gas": 2201
|
|
757
|
+
"gas": "2201"
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
760
|
"name": "initial_A_time",
|
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
"inputs": [],
|
|
768
768
|
"stateMutability": "view",
|
|
769
769
|
"type": "function",
|
|
770
|
-
"gas": 2231
|
|
770
|
+
"gas": "2231"
|
|
771
771
|
},
|
|
772
772
|
{
|
|
773
773
|
"name": "future_A_time",
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
"inputs": [],
|
|
781
781
|
"stateMutability": "view",
|
|
782
782
|
"type": "function",
|
|
783
|
-
"gas": 2261
|
|
783
|
+
"gas": "2261"
|
|
784
784
|
},
|
|
785
785
|
{
|
|
786
786
|
"name": "admin_actions_deadline",
|
|
@@ -793,7 +793,7 @@
|
|
|
793
793
|
"inputs": [],
|
|
794
794
|
"stateMutability": "view",
|
|
795
795
|
"type": "function",
|
|
796
|
-
"gas": 2291
|
|
796
|
+
"gas": "2291"
|
|
797
797
|
},
|
|
798
798
|
{
|
|
799
799
|
"name": "transfer_ownership_deadline",
|
|
@@ -806,7 +806,7 @@
|
|
|
806
806
|
"inputs": [],
|
|
807
807
|
"stateMutability": "view",
|
|
808
808
|
"type": "function",
|
|
809
|
-
"gas": 2321
|
|
809
|
+
"gas": "2321"
|
|
810
810
|
},
|
|
811
811
|
{
|
|
812
812
|
"name": "future_fee",
|
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
"inputs": [],
|
|
820
820
|
"stateMutability": "view",
|
|
821
821
|
"type": "function",
|
|
822
|
-
"gas": 2351
|
|
822
|
+
"gas": "2351"
|
|
823
823
|
},
|
|
824
824
|
{
|
|
825
825
|
"name": "future_admin_fee",
|
|
@@ -832,7 +832,7 @@
|
|
|
832
832
|
"inputs": [],
|
|
833
833
|
"stateMutability": "view",
|
|
834
834
|
"type": "function",
|
|
835
|
-
"gas": 2381
|
|
835
|
+
"gas": "2381"
|
|
836
836
|
},
|
|
837
837
|
{
|
|
838
838
|
"name": "future_owner",
|
|
@@ -845,6 +845,6 @@
|
|
|
845
845
|
"inputs": [],
|
|
846
846
|
"stateMutability": "view",
|
|
847
847
|
"type": "function",
|
|
848
|
-
"gas": 2411
|
|
848
|
+
"gas": "2411"
|
|
849
849
|
}
|
|
850
850
|
]
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"type": "address"
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
|
-
"gas": 2568
|
|
95
|
+
"gas": "2568"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"stateMutability": "view",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"type": "address"
|
|
106
106
|
}
|
|
107
107
|
],
|
|
108
|
-
"gas": 2598
|
|
108
|
+
"gas": "2598"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"stateMutability": "view",
|
|
@@ -123,6 +123,6 @@
|
|
|
123
123
|
"type": "address"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
|
-
"gas": 2737
|
|
126
|
+
"gas": "2737"
|
|
127
127
|
}
|
|
128
128
|
]
|