@curvefi/api 1.10.0 → 1.14.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 (43) hide show
  1. package/README.md +38 -0
  2. package/lib/constants/abis/abis-ethereum.d.ts +1 -1
  3. package/lib/constants/abis/abis-ethereum.js +68 -2
  4. package/lib/constants/abis/abis-polygon.d.ts +4 -0
  5. package/lib/constants/abis/abis-polygon.js +154 -0
  6. package/lib/constants/abis/json/atricrypto3/swap.json +1269 -0
  7. package/lib/constants/abis/json/atricrypto3/zap.json +239 -0
  8. package/lib/constants/abis/json/busd/deposit.json +5 -10
  9. package/lib/constants/abis/json/busd/swap.json +18 -36
  10. package/lib/constants/abis/json/compound/deposit.json +5 -10
  11. package/lib/constants/abis/json/compound/migration.json +1 -2
  12. package/lib/constants/abis/json/compound/oldSwap.json +16 -32
  13. package/lib/constants/abis/json/compound/swap.json +18 -36
  14. package/lib/constants/abis/json/iearn/deposit.json +5 -10
  15. package/lib/constants/abis/json/iearn/swap.json +18 -36
  16. package/lib/constants/abis/json/paave/rewards.json +657 -0
  17. package/lib/constants/abis/json/pax/deposit.json +5 -10
  18. package/lib/constants/abis/json/pax/swap.json +19 -38
  19. package/lib/constants/abis/json/ren/swap.json +19 -38
  20. package/lib/constants/abis/json/ren-polygon/swap.json +1112 -0
  21. package/lib/constants/abis/json/sbtc/swap.json +19 -38
  22. package/lib/constants/abis/json/streamer.json +257 -0
  23. package/lib/constants/abis/json/susdv2/deposit.json +5 -10
  24. package/lib/constants/abis/json/susdv2/swap.json +16 -32
  25. package/lib/constants/abis/json/usdt/deposit.json +5 -10
  26. package/lib/constants/abis/json/usdt/swap.json +19 -37
  27. package/lib/constants/aliases.d.ts +16 -0
  28. package/lib/constants/aliases.js +19 -0
  29. package/lib/constants/coins-ethereum.d.ts +31 -0
  30. package/lib/constants/{coins.js → coins-ethereum.js} +48 -14
  31. package/lib/constants/coins-polygon.d.ts +31 -0
  32. package/lib/constants/coins-polygon.js +74 -0
  33. package/lib/curve.d.ts +23 -7
  34. package/lib/curve.js +133 -91
  35. package/lib/index.d.ts +2 -1
  36. package/lib/index.js +3 -0
  37. package/lib/interfaces.d.ts +3 -0
  38. package/lib/pools.d.ts +25 -4
  39. package/lib/pools.js +323 -101
  40. package/lib/utils.d.ts +1 -1
  41. package/lib/utils.js +49 -41
  42. package/package.json +6 -5
  43. package/lib/constants/coins.d.ts +0 -25
@@ -308,8 +308,7 @@
308
308
  }
309
309
  ],
310
310
  "inputs": [],
311
- "constant": true,
312
- "payable": false,
311
+ "stateMutability": "view",
313
312
  "type": "function",
314
313
  "gas": "5227"
315
314
  },
@@ -322,8 +321,7 @@
322
321
  }
323
322
  ],
324
323
  "inputs": [],
325
- "constant": true,
326
- "payable": false,
324
+ "stateMutability": "view",
327
325
  "type": "function",
328
326
  "gas": "1333259"
329
327
  },
@@ -345,8 +343,7 @@
345
343
  "name": "deposit"
346
344
  }
347
345
  ],
348
- "constant": true,
349
- "payable": false,
346
+ "stateMutability": "view",
350
347
  "type": "function",
351
348
  "gas": "5242977"
352
349
  },
@@ -390,8 +387,7 @@
390
387
  "name": "dx"
391
388
  }
392
389
  ],
393
- "constant": true,
394
- "payable": false,
390
+ "stateMutability": "view",
395
391
  "type": "function",
396
392
  "gas": "3048740"
397
393
  },
@@ -417,8 +413,7 @@
417
413
  "name": "dx"
418
414
  }
419
415
  ],
420
- "constant": true,
421
- "payable": false,
416
+ "stateMutability": "view",
422
417
  "type": "function",
423
418
  "gas": "3048570"
424
419
  },
@@ -647,8 +642,7 @@
647
642
  "name": "arg0"
648
643
  }
649
644
  ],
650
- "constant": true,
651
- "payable": false,
645
+ "stateMutability": "view",
652
646
  "type": "function",
653
647
  "gas": "2220"
654
648
  },
@@ -666,8 +660,7 @@
666
660
  "name": "arg0"
667
661
  }
668
662
  ],
669
- "constant": true,
670
- "payable": false,
663
+ "stateMutability": "view",
671
664
  "type": "function",
672
665
  "gas": "2250"
673
666
  },
@@ -698,8 +691,7 @@
698
691
  }
699
692
  ],
700
693
  "inputs": [],
701
- "constant": true,
702
- "payable": false,
694
+ "stateMutability": "view",
703
695
  "type": "function",
704
696
  "gas": "2111"
705
697
  },
@@ -712,8 +704,7 @@
712
704
  }
713
705
  ],
714
706
  "inputs": [],
715
- "constant": true,
716
- "payable": false,
707
+ "stateMutability": "view",
717
708
  "type": "function",
718
709
  "gas": "2141"
719
710
  },
@@ -726,8 +717,7 @@
726
717
  }
727
718
  ],
728
719
  "inputs": [],
729
- "constant": true,
730
- "payable": false,
720
+ "stateMutability": "view",
731
721
  "type": "function",
732
722
  "gas": "2171"
733
723
  },
@@ -740,8 +730,7 @@
740
730
  }
741
731
  ],
742
732
  "inputs": [],
743
- "constant": true,
744
- "payable": false,
733
+ "stateMutability": "view",
745
734
  "type": "function",
746
735
  "gas": "2201"
747
736
  },
@@ -754,8 +743,7 @@
754
743
  }
755
744
  ],
756
745
  "inputs": [],
757
- "constant": true,
758
- "payable": false,
746
+ "stateMutability": "view",
759
747
  "type": "function",
760
748
  "gas": "2231"
761
749
  },
@@ -769,8 +757,7 @@
769
757
  }
770
758
  ],
771
759
  "inputs": [],
772
- "constant": true,
773
- "payable": false,
760
+ "stateMutability": "view",
774
761
  "type": "function",
775
762
  "gas": "2261"
776
763
  },
@@ -784,8 +771,7 @@
784
771
  }
785
772
  ],
786
773
  "inputs": [],
787
- "constant": true,
788
- "payable": false,
774
+ "stateMutability": "view",
789
775
  "type": "function",
790
776
  "gas": "2291"
791
777
  },
@@ -799,8 +785,7 @@
799
785
  }
800
786
  ],
801
787
  "inputs": [],
802
- "constant": true,
803
- "payable": false,
788
+ "stateMutability": "view",
804
789
  "type": "function",
805
790
  "gas": "2321"
806
791
  },
@@ -814,8 +799,7 @@
814
799
  }
815
800
  ],
816
801
  "inputs": [],
817
- "constant": true,
818
- "payable": false,
802
+ "stateMutability": "view",
819
803
  "type": "function",
820
804
  "gas": "2351"
821
805
  },
@@ -828,8 +812,7 @@
828
812
  }
829
813
  ],
830
814
  "inputs": [],
831
- "constant": true,
832
- "payable": false,
815
+ "stateMutability": "view",
833
816
  "type": "function",
834
817
  "gas": "2381"
835
818
  },
@@ -842,8 +825,7 @@
842
825
  }
843
826
  ],
844
827
  "inputs": [],
845
- "constant": true,
846
- "payable": false,
828
+ "stateMutability": "view",
847
829
  "type": "function",
848
830
  "gas": "2411"
849
831
  },
@@ -856,8 +838,7 @@
856
838
  }
857
839
  ],
858
840
  "inputs": [],
859
- "constant": true,
860
- "payable": false,
841
+ "stateMutability": "view",
861
842
  "type": "function",
862
843
  "gas": "2441"
863
844
  }
@@ -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": "967716"
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": "3810860"
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": "2327087"
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": "2326882"
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": "79380"
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
  }