@gearbox-protocol/sdk 0.0.49 → 0.0.50

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.
@@ -9,10 +9,15 @@ export declare type ConvexPoolContract = "CONVEX_3CRV" | "CONVEX_GUSD" | "CONVEX
9
9
  export declare type SupportedContract = UniswapV2Contract | "UNISWAP_V3_ROUTER" | CurvePoolContract | YearnVaultContract | "CONVEX_BOOSTER" | ConvexPoolContract | "CONVEX_CLAIM_ZAP" | "LIDO_STETH_GATEWAY";
10
10
  export declare const contractsByNetwork: Record<NetworkType, Record<SupportedContract, string>>;
11
11
  export declare const UNISWAP_V3_QUOTER = "0xb27308f9f90d607463bb33ea1bebb41c27ce5ab6";
12
+ export interface CurveSteCRVPoolParams {
13
+ protocol: Protocols.Curve;
14
+ type: AdapterInterface.CURVE_V1_STECRV_POOL;
15
+ pool: Record<NetworkType, string>;
16
+ }
12
17
  export interface LidoParams {
13
18
  protocol: Protocols.Lido;
14
19
  type: AdapterInterface.LIDO_V1;
15
- curvePool: CurvePoolContract;
20
+ contract: Record<NetworkType, string>;
16
21
  }
17
22
  export declare type ContractParams = {
18
23
  protocol: Protocols.Uniswap | Protocols.Sushiswap;
@@ -26,11 +31,7 @@ export declare type ContractParams = {
26
31
  type: AdapterInterface.CURVE_V1_2ASSETS | AdapterInterface.CURVE_V1_3ASSETS | AdapterInterface.CURVE_V1_4ASSETS;
27
32
  lpToken: CurveLPToken;
28
33
  tokens: Array<NormalToken | CurveLPToken>;
29
- } | {
30
- protocol: Protocols.Curve;
31
- type: AdapterInterface.CURVE_V1_STECRV_POOL;
32
- pool: Record<NetworkType, string>;
33
- } | {
34
+ } | CurveSteCRVPoolParams | {
34
35
  protocol: Protocols.Yearn;
35
36
  type: AdapterInterface.YEARN_V2;
36
37
  } | {
@@ -70,7 +70,6 @@ exports.contractsByNetwork = {
70
70
  }
71
71
  };
72
72
  exports.UNISWAP_V3_QUOTER = "0xb27308f9f90d607463bb33ea1bebb41c27ce5ab6";
73
- ;
74
73
  exports.contractParams = {
75
74
  UNISWAP_V2_ROUTER: {
76
75
  protocol: protocols_1.Protocols.Uniswap,
@@ -183,6 +182,9 @@ exports.contractParams = {
183
182
  LIDO_STETH_GATEWAY: {
184
183
  protocol: protocols_1.Protocols.Lido,
185
184
  type: adapters_1.AdapterInterface.LIDO_V1,
186
- curvePool: "CURVE_STETH_GATEWAY"
185
+ contract: {
186
+ Mainnet: "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
187
+ Kovan: ""
188
+ }
187
189
  }
188
190
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -123,11 +123,17 @@ export const contractsByNetwork: Record<
123
123
 
124
124
  export const UNISWAP_V3_QUOTER = "0xb27308f9f90d607463bb33ea1bebb41c27ce5ab6";
125
125
 
126
+ export interface CurveSteCRVPoolParams {
127
+ protocol: Protocols.Curve;
128
+ type: AdapterInterface.CURVE_V1_STECRV_POOL;
129
+ pool: Record<NetworkType, string>;
130
+ }
131
+
126
132
  export interface LidoParams {
127
133
  protocol: Protocols.Lido;
128
134
  type: AdapterInterface.LIDO_V1;
129
- curvePool: CurvePoolContract
130
- };
135
+ contract: Record<NetworkType, string>;
136
+ }
131
137
 
132
138
  export type ContractParams =
133
139
  | {
@@ -148,11 +154,7 @@ export type ContractParams =
148
154
  lpToken: CurveLPToken;
149
155
  tokens: Array<NormalToken | CurveLPToken>;
150
156
  }
151
- | {
152
- protocol: Protocols.Curve;
153
- type: AdapterInterface.CURVE_V1_STECRV_POOL;
154
- pool: Record<NetworkType, string>;
155
- }
157
+ | CurveSteCRVPoolParams
156
158
  | {
157
159
  protocol: Protocols.Yearn;
158
160
  type: AdapterInterface.YEARN_V2;
@@ -283,6 +285,9 @@ export const contractParams: Record<SupportedContract, ContractParams> = {
283
285
  LIDO_STETH_GATEWAY: {
284
286
  protocol: Protocols.Lido,
285
287
  type: AdapterInterface.LIDO_V1,
286
- curvePool: "CURVE_STETH_GATEWAY"
288
+ contract: {
289
+ Mainnet: "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
290
+ Kovan: ""
291
+ }
287
292
  }
288
293
  };