@curvefi/api 1.18.0 → 1.19.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 +44 -24
- package/lib/constants/abis/json/factory-crypto/factory-crypto-pool-2.json +1112 -0
- package/lib/constants/abis/json/factory-crypto.json +635 -0
- package/lib/constants/aliases.d.ts +2 -0
- package/lib/constants/aliases.js +2 -0
- package/lib/curve.d.ts +2 -0
- package/lib/curve.js +35 -7
- package/lib/factory-crypto.d.ts +32 -0
- package/lib/factory-crypto.js +377 -0
- package/lib/factory.js +3 -3
- package/lib/index.d.ts +3 -0
- package/lib/index.js +14 -0
- package/lib/interfaces.d.ts +1 -0
- package/lib/pools.d.ts +1 -0
- package/lib/pools.js +56 -19
- package/lib/utils.d.ts +1 -0
- package/lib/utils.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -781,37 +781,57 @@ Add liquidity and deposit into gauge in one transaction.
|
|
|
781
781
|
|
|
782
782
|
## Factory
|
|
783
783
|
All the methods above can be used for factory pools. It's only needed to fetch them.
|
|
784
|
-
|
|
785
|
-
### Stable factory pools
|
|
786
784
|
```ts
|
|
787
785
|
import curve from "@curvefi/api";
|
|
788
786
|
|
|
789
787
|
(async () => {
|
|
790
788
|
await curve.init('JsonRpc', {}, { chainId: 1 });
|
|
791
789
|
await curve.fetchFactoryPools();
|
|
790
|
+
await curve.fetchCryptoFactoryPools();
|
|
792
791
|
|
|
793
792
|
const factoryPools = curve.getFactoryPoolList();
|
|
794
793
|
// [
|
|
795
|
-
// 'ibEUR+sEUR', 'ibKRW+sKRW',
|
|
796
|
-
// 'jGBP+TGBP',
|
|
797
|
-
// '
|
|
798
|
-
// '
|
|
799
|
-
// '
|
|
800
|
-
// '
|
|
801
|
-
// '
|
|
802
|
-
// '
|
|
803
|
-
// '
|
|
804
|
-
// '
|
|
805
|
-
// '
|
|
806
|
-
// 'ETH
|
|
807
|
-
// '
|
|
808
|
-
// '
|
|
809
|
-
// '
|
|
810
|
-
// '
|
|
811
|
-
// '
|
|
812
|
-
// '
|
|
813
|
-
// '
|
|
814
|
-
// '
|
|
815
|
-
//
|
|
816
|
-
|
|
794
|
+
// 'ibEUR+sEUR-f', 'ibKRW+sKRW-f', 'ibEUR+sEUR-2-f',
|
|
795
|
+
// 'crvCRVsCRV-f', 'jGBP+TGBP-f', '2CRV-f',
|
|
796
|
+
// 'crvCRV-f', 'ibbtc/sbtcCRV-f', 'OUSD3CRV-f',
|
|
797
|
+
// 'aUSDC+aDAI-f', 'FEI3CRV3CRV-f', 'GrapeFUSD3CRV-f',
|
|
798
|
+
// 'SifuETH3CRV-f', 'RC_INV3CRV-f', 'RC_xRULER3CRV-f',
|
|
799
|
+
// 'RC_xCOVER3CRV-f', 'nUSD3CRV-f', 'cvxcrv-f',
|
|
800
|
+
// 'USDM3CRV-f', 'mEUR-f', 'waUSD3CRV-f',
|
|
801
|
+
// 'waBTC/sbtcCRV-f', 'DOLA3POOL3CRV-f', 'ibJPY+sJPY-f',
|
|
802
|
+
// 'ibAUD+sAUD-f', 'ibGBP+sGBP-f', 'ibCHF+sCHF-f',
|
|
803
|
+
// 'OPEN MATIC-f', 'EURN/EURT-f', 'sdCRV-f',
|
|
804
|
+
// 'BTCpx/sbtcCRV-f', 'PWRD3CRV3CRV-f', 'sansUSDT-f',
|
|
805
|
+
// 'alETH+ETH-f', '17PctCypt3CRV-f', '17PctCypt3CRV-2-f',
|
|
806
|
+
// 'tbtc2/sbtcCRV-f', 'kusd3pool3CRV-f', 'tusd3pool3CRV-f',
|
|
807
|
+
// 'PWRD3CRV-f', 'fUSD3CRV-f', 'TPD3CRV-f',
|
|
808
|
+
// 'DEI3CRV-f', 'MIM-UST-f', 'ETH/vETH2-f',
|
|
809
|
+
// 'QBITWELLS3CRV-f', 'QWell13CRV-f', 'bveCVX-CVX-f',
|
|
810
|
+
// 'UST_whv23CRV-f', 'DSU+3Crv3CRV-f', 'DSU3CRV-f',
|
|
811
|
+
// 'aETHb-f', 'D3-f', 'aMATICb-f',
|
|
812
|
+
// 'pax-usdp3CRV-f', 'ibbtc/sbtcCRV-2-f', 'fxEUR_CRV-f',
|
|
813
|
+
// 'ORK/sbtcCRV-f', 'agEUR/sEUR-f', 'ibZAR+ZARP-f',
|
|
814
|
+
// '3DYDX3CRV-f', '3EURpool-f', 'tWETH+WETH-f',
|
|
815
|
+
// 'XSTUSD3CRV-f', 'XIM3CRV3CRV-f', 'XIM3CRV-f',
|
|
816
|
+
// 'RAMP rUSD3CRV-f', 'bhome3CRV-f', 'JPYC+ibJPY-f',
|
|
817
|
+
// 'UST-FRAX-f', 'FEIPCV-1-f', 'bentcvx-f',
|
|
818
|
+
// 'USX3CRV3CRV-f', 'ag+ib-EUR-f', 'tFRAX+FRAX-f',
|
|
819
|
+
// 'ELONXSWAP3CRV-f', 'BEAN3CRV-f', 'USDV3CRV-f',
|
|
820
|
+
// 'PARUSDC3CRV-f', 'baoUSD-3CRV-f', 'sUSD3CRV-f',
|
|
821
|
+
// 'AETHV13CRV-f',
|
|
822
|
+
// ];
|
|
823
|
+
|
|
824
|
+
const cryptoFactoryPools = curve.getCryptoFactoryPoolList()
|
|
825
|
+
// [
|
|
826
|
+
// 'FXSETH-fV2', 'FXSETH-2-fV2',
|
|
827
|
+
// 'FXSETH-3-fV2', 'FXSETH-4-fV2',
|
|
828
|
+
// 'BADGERWBTC-fV2', 'INVDOLA-fV2',
|
|
829
|
+
// 'RAIFRAX-fV2', 'RAIETH-fV2',
|
|
830
|
+
// 'YFIETH-fV2', 'palStkAAVE-fV2',
|
|
831
|
+
// 'DYDXETH-fV2', 'SDTETH-fV2',
|
|
832
|
+
// 'CADCUSDC-fV2', 'RAIAGEUR-fV2',
|
|
833
|
+
// 'rp-eth-fV2', 'PARUSDC-fV2',
|
|
834
|
+
// 'DUCKETH-fV2', 'BTRFLYETH-fV2',
|
|
835
|
+
// ];
|
|
817
836
|
})()
|
|
837
|
+
```
|