@curvefi/api 1.13.0 → 1.16.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.
Files changed (53) hide show
  1. package/README.md +98 -1
  2. package/lib/constants/abis/abis-ethereum.js +216 -16
  3. package/lib/constants/abis/abis-polygon.js +17 -1
  4. package/lib/constants/abis/json/aave/rewards.json +107 -0
  5. package/lib/constants/abis/json/atricrypto3/swap.json +63 -63
  6. package/lib/constants/abis/json/atricrypto3/zap.json +8 -8
  7. package/lib/constants/abis/json/busd/deposit.json +5 -10
  8. package/lib/constants/abis/json/busd/swap.json +18 -36
  9. package/lib/constants/abis/json/compound/deposit.json +5 -10
  10. package/lib/constants/abis/json/compound/migration.json +1 -2
  11. package/lib/constants/abis/json/compound/oldSwap.json +16 -32
  12. package/lib/constants/abis/json/compound/swap.json +18 -36
  13. package/lib/constants/abis/json/crveth/swap.json +61 -61
  14. package/lib/constants/abis/json/eurt/swap.json +29 -29
  15. package/lib/constants/abis/json/eurtusd/deposit.json +13 -13
  16. package/lib/constants/abis/json/eurtusd/swap.json +59 -59
  17. package/lib/constants/abis/json/gauge.json +1 -1
  18. package/lib/constants/abis/json/gauge_factory.json +879 -0
  19. package/lib/constants/abis/json/gauge_rewards_only.json +649 -0
  20. package/lib/constants/abis/json/gauge_synthetix.json +590 -0
  21. package/lib/constants/abis/json/gauge_v2.json +942 -0
  22. package/lib/constants/abis/json/gauge_v3.json +954 -0
  23. package/lib/constants/abis/json/gauge_v4.json +913 -0
  24. package/lib/constants/abis/json/iearn/deposit.json +5 -10
  25. package/lib/constants/abis/json/iearn/swap.json +18 -36
  26. package/lib/constants/abis/json/minter.json +165 -0
  27. package/lib/constants/abis/json/pax/deposit.json +5 -10
  28. package/lib/constants/abis/json/pax/swap.json +19 -38
  29. package/lib/constants/abis/json/ren/swap.json +19 -38
  30. package/lib/constants/abis/json/ren-polygon/swap.json +46 -46
  31. package/lib/constants/abis/json/reth/swap.json +38 -38
  32. package/lib/constants/abis/json/sbtc/swap.json +19 -38
  33. package/lib/constants/abis/json/streamer.json +257 -0
  34. package/lib/constants/abis/json/susdv2/deposit.json +5 -10
  35. package/lib/constants/abis/json/susdv2/swap.json +16 -32
  36. package/lib/constants/abis/json/tricrypto2/deposit.json +3 -3
  37. package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
  38. package/lib/constants/abis/json/usdt/deposit.json +5 -10
  39. package/lib/constants/abis/json/usdt/swap.json +19 -37
  40. package/lib/constants/aliases.d.ts +2 -0
  41. package/lib/constants/aliases.js +3 -1
  42. package/lib/constants/coins-ethereum.js +7 -3
  43. package/lib/constants/coins-polygon.js +3 -2
  44. package/lib/curve.d.ts +1 -0
  45. package/lib/curve.js +47 -16
  46. package/lib/index.d.ts +1 -0
  47. package/lib/index.js +1 -0
  48. package/lib/interfaces.d.ts +8 -0
  49. package/lib/pools.d.ts +41 -5
  50. package/lib/pools.js +357 -69
  51. package/lib/utils.d.ts +2 -1
  52. package/lib/utils.js +42 -29
  53. 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
  ]
@@ -294,8 +294,7 @@
294
294
  }
295
295
  ],
296
296
  "inputs": [],
297
- "constant": true,
298
- "payable": false,
297
+ "stateMutability": "view",
299
298
  "type": "function",
300
299
  "gas": "5227"
301
300
  },
@@ -308,8 +307,7 @@
308
307
  }
309
308
  ],
310
309
  "inputs": [],
311
- "constant": true,
312
- "payable": false,
310
+ "stateMutability": "view",
313
311
  "type": "function",
314
312
  "gas": "1150488"
315
313
  },
@@ -331,8 +329,7 @@
331
329
  "name": "deposit"
332
330
  }
333
331
  ],
334
- "constant": true,
335
- "payable": false,
332
+ "stateMutability": "view",
336
333
  "type": "function",
337
334
  "gas": "4526955"
338
335
  },
@@ -376,8 +373,7 @@
376
373
  "name": "dx"
377
374
  }
378
375
  ],
379
- "constant": true,
380
- "payable": false,
376
+ "stateMutability": "view",
381
377
  "type": "function",
382
378
  "gas": "2687932"
383
379
  },
@@ -403,8 +399,7 @@
403
399
  "name": "dx"
404
400
  }
405
401
  ],
406
- "constant": true,
407
- "payable": false,
402
+ "stateMutability": "view",
408
403
  "type": "function",
409
404
  "gas": "2687745"
410
405
  },
@@ -488,8 +483,7 @@
488
483
  "name": "i"
489
484
  }
490
485
  ],
491
- "constant": true,
492
- "payable": false,
486
+ "stateMutability": "view",
493
487
  "type": "function",
494
488
  "gas": "73000"
495
489
  },
@@ -652,8 +646,7 @@
652
646
  "name": "arg0"
653
647
  }
654
648
  ],
655
- "constant": true,
656
- "payable": false,
649
+ "stateMutability": "view",
657
650
  "type": "function",
658
651
  "gas": "2310"
659
652
  },
@@ -684,8 +677,7 @@
684
677
  }
685
678
  ],
686
679
  "inputs": [],
687
- "constant": true,
688
- "payable": false,
680
+ "stateMutability": "view",
689
681
  "type": "function",
690
682
  "gas": "2171"
691
683
  },
@@ -698,8 +690,7 @@
698
690
  }
699
691
  ],
700
692
  "inputs": [],
701
- "constant": true,
702
- "payable": false,
693
+ "stateMutability": "view",
703
694
  "type": "function",
704
695
  "gas": "2201"
705
696
  },
@@ -712,8 +703,7 @@
712
703
  }
713
704
  ],
714
705
  "inputs": [],
715
- "constant": true,
716
- "payable": false,
706
+ "stateMutability": "view",
717
707
  "type": "function",
718
708
  "gas": "2231"
719
709
  },
@@ -726,8 +716,7 @@
726
716
  }
727
717
  ],
728
718
  "inputs": [],
729
- "constant": true,
730
- "payable": false,
719
+ "stateMutability": "view",
731
720
  "type": "function",
732
721
  "gas": "2261"
733
722
  },
@@ -740,8 +729,7 @@
740
729
  }
741
730
  ],
742
731
  "inputs": [],
743
- "constant": true,
744
- "payable": false,
732
+ "stateMutability": "view",
745
733
  "type": "function",
746
734
  "gas": "2291"
747
735
  },
@@ -755,8 +743,7 @@
755
743
  }
756
744
  ],
757
745
  "inputs": [],
758
- "constant": true,
759
- "payable": false,
746
+ "stateMutability": "view",
760
747
  "type": "function",
761
748
  "gas": "2321"
762
749
  },
@@ -770,8 +757,7 @@
770
757
  }
771
758
  ],
772
759
  "inputs": [],
773
- "constant": true,
774
- "payable": false,
760
+ "stateMutability": "view",
775
761
  "type": "function",
776
762
  "gas": "2351"
777
763
  },
@@ -785,8 +771,7 @@
785
771
  }
786
772
  ],
787
773
  "inputs": [],
788
- "constant": true,
789
- "payable": false,
774
+ "stateMutability": "view",
790
775
  "type": "function",
791
776
  "gas": "2381"
792
777
  },
@@ -800,8 +785,7 @@
800
785
  }
801
786
  ],
802
787
  "inputs": [],
803
- "constant": true,
804
- "payable": false,
788
+ "stateMutability": "view",
805
789
  "type": "function",
806
790
  "gas": "2411"
807
791
  },
@@ -814,8 +798,7 @@
814
798
  }
815
799
  ],
816
800
  "inputs": [],
817
- "constant": true,
818
- "payable": false,
801
+ "stateMutability": "view",
819
802
  "type": "function",
820
803
  "gas": "2441"
821
804
  },
@@ -828,8 +811,7 @@
828
811
  }
829
812
  ],
830
813
  "inputs": [],
831
- "constant": true,
832
- "payable": false,
814
+ "stateMutability": "view",
833
815
  "type": "function",
834
816
  "gas": "2471"
835
817
  },
@@ -842,8 +824,7 @@
842
824
  }
843
825
  ],
844
826
  "inputs": [],
845
- "constant": true,
846
- "payable": false,
827
+ "stateMutability": "view",
847
828
  "type": "function",
848
829
  "gas": "2501"
849
830
  }