@curvefi/api 2.18.0 → 2.18.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/lib/index.d.ts CHANGED
@@ -34,8 +34,16 @@ declare const curve: {
34
34
  getPoolList: () => string[];
35
35
  getFactoryPoolList: () => string[];
36
36
  getCryptoFactoryPoolList: () => string[];
37
+ getUserPoolListByLiquidity: (address?: string) => Promise<string[]>;
38
+ getUserPoolListByClaimable: (address?: string) => Promise<string[]>;
37
39
  getUserPoolList: (address?: string) => Promise<string[]>;
38
40
  getUserLiquidityUSD: (pools: string[], address?: string) => Promise<string[]>;
41
+ getUserClaimable: (pools: string[], address?: string) => Promise<{
42
+ token: string;
43
+ symbol: string;
44
+ amount: string;
45
+ price: number;
46
+ }[][]>;
39
47
  PoolTemplate: typeof PoolTemplate;
40
48
  getPool: (poolId: string) => PoolTemplate;
41
49
  getUsdRate: (coin: string) => Promise<number>;
package/lib/index.js CHANGED
@@ -119,8 +119,11 @@ var curve = {
119
119
  getPoolList: utils_1.getPoolList,
120
120
  getFactoryPoolList: utils_1.getFactoryPoolList,
121
121
  getCryptoFactoryPoolList: utils_1.getCryptoFactoryPoolList,
122
+ getUserPoolListByLiquidity: utils_1.getUserPoolListByLiquidity,
123
+ getUserPoolListByClaimable: utils_1.getUserPoolListByClaimable,
122
124
  getUserPoolList: utils_1.getUserPoolList,
123
125
  getUserLiquidityUSD: utils_1.getUserLiquidityUSD,
126
+ getUserClaimable: utils_1.getUserClaimable,
124
127
  PoolTemplate: pools_1.PoolTemplate,
125
128
  getPool: pools_1.getPool,
126
129
  getUsdRate: utils_2.getUsdRate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.18.0",
3
+ "version": "2.18.1",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",