@gearbox-protocol/sdk 0.0.56 → 0.0.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -6,9 +6,10 @@ export enum AdapterInterface {
6
6
  CURVE_V1_3ASSETS, // 4 - 16
7
7
  CURVE_V1_4ASSETS, // 5 - 32
8
8
  CURVE_V1_STECRV_POOL, // 6 - 64
9
- YEARN_V2, // 7 - 128
10
- CONVEX_V1_BASE_REWARD_POOL, // 8 - 256
11
- CONVEX_V1_BOOSTER, // 9 - 512
12
- CONVEX_V1_CLAIM_ZAP, // 10 - 1024
13
- LIDO_V1 // 11 - 2048
9
+ CURVE_V1_DEPOSIT, // 7 - 128
10
+ YEARN_V2, // 8 - 256
11
+ CONVEX_V1_BASE_REWARD_POOL, // 9 - 512
12
+ CONVEX_V1_BOOSTER, // 10 - 1024
13
+ CONVEX_V1_CLAIM_ZAP, // 11 - 2048
14
+ LIDO_V1 // 12 - 4096
14
15
  }
@@ -158,6 +158,14 @@ export type CurveSteCRVPoolParams = {
158
158
  lpToken: "steCRV";
159
159
  } & BaseContractParams;
160
160
 
161
+ export type CurveDepositParams = {
162
+ protocol: Protocols.Curve;
163
+ type: AdapterInterface.CURVE_V1_DEPOSIT;
164
+ pool: Record<NetworkType, string>;
165
+ lpToken: CurveLPToken;
166
+ nCoins: number
167
+ } & BaseContractParams;
168
+
161
169
  type YearnParams = {
162
170
  protocol: Protocols.Yearn;
163
171
  type: AdapterInterface.YEARN_V2;
@@ -188,6 +196,7 @@ export type ContractParams =
188
196
  | UniswapV3Params
189
197
  | CurveParams
190
198
  | CurveSteCRVPoolParams
199
+ | CurveDepositParams
191
200
  | YearnParams
192
201
  | ConvexParams
193
202
  | ConvexPoolParams
@@ -253,9 +262,13 @@ export const contractParams: Record<SupportedContract, ContractParams> = {
253
262
  CURVE_SUSD_DEPOSIT: {
254
263
  name: "Curve SUSD Deposit",
255
264
  protocol: Protocols.Curve,
256
- type: AdapterInterface.CURVE_V1_4ASSETS,
265
+ type: AdapterInterface.CURVE_V1_DEPOSIT,
257
266
  lpToken: "crvPlain3andSUSD",
258
- tokens: ["DAI", "USDC", "USDT", "sUSD"]
267
+ pool: {
268
+ Mainnet: "0x22eE18aca7F3Ee920D01F25dA85840D12d98E8Ca",
269
+ Kovan: ""
270
+ },
271
+ nCoins: 4
259
272
  },
260
273
  CURVE_GUSD_POOL: {
261
274
  name: "Curve GUSD",