@gearbox-protocol/sdk 0.0.47 → 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.
- package/lib/core/contracts.d.ts +12 -10
- package/package.json +1 -1
- package/src/core/contracts.ts +14 -10
package/lib/core/contracts.d.ts
CHANGED
|
@@ -9,6 +9,16 @@ 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
|
+
}
|
|
17
|
+
export interface LidoParams {
|
|
18
|
+
protocol: Protocols.Lido;
|
|
19
|
+
type: AdapterInterface.LIDO_V1;
|
|
20
|
+
contract: Record<NetworkType, string>;
|
|
21
|
+
}
|
|
12
22
|
export declare type ContractParams = {
|
|
13
23
|
protocol: Protocols.Uniswap | Protocols.Sushiswap;
|
|
14
24
|
type: AdapterInterface.UNISWAP_V2_ROUTER;
|
|
@@ -21,11 +31,7 @@ export declare type ContractParams = {
|
|
|
21
31
|
type: AdapterInterface.CURVE_V1_2ASSETS | AdapterInterface.CURVE_V1_3ASSETS | AdapterInterface.CURVE_V1_4ASSETS;
|
|
22
32
|
lpToken: CurveLPToken;
|
|
23
33
|
tokens: Array<NormalToken | CurveLPToken>;
|
|
24
|
-
} | {
|
|
25
|
-
protocol: Protocols.Curve;
|
|
26
|
-
type: AdapterInterface.CURVE_V1_STECRV_POOL;
|
|
27
|
-
pool: Record<NetworkType, string>;
|
|
28
|
-
} | {
|
|
34
|
+
} | CurveSteCRVPoolParams | {
|
|
29
35
|
protocol: Protocols.Yearn;
|
|
30
36
|
type: AdapterInterface.YEARN_V2;
|
|
31
37
|
} | {
|
|
@@ -35,9 +41,5 @@ export declare type ContractParams = {
|
|
|
35
41
|
protocol: Protocols.Convex;
|
|
36
42
|
type: AdapterInterface.CONVEX_V1_BASE_REWARD_POOL;
|
|
37
43
|
stakedToken: ConvexStakedPhantomToken;
|
|
38
|
-
} |
|
|
39
|
-
protocol: Protocols.Lido;
|
|
40
|
-
type: AdapterInterface.LIDO_V1;
|
|
41
|
-
contract: Record<NetworkType, string>;
|
|
42
|
-
};
|
|
44
|
+
} | LidoParams;
|
|
43
45
|
export declare const contractParams: Record<SupportedContract, ContractParams>;
|
package/package.json
CHANGED
package/src/core/contracts.ts
CHANGED
|
@@ -123,6 +123,18 @@ 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
|
+
|
|
132
|
+
export interface LidoParams {
|
|
133
|
+
protocol: Protocols.Lido;
|
|
134
|
+
type: AdapterInterface.LIDO_V1;
|
|
135
|
+
contract: Record<NetworkType, string>;
|
|
136
|
+
}
|
|
137
|
+
|
|
126
138
|
export type ContractParams =
|
|
127
139
|
| {
|
|
128
140
|
protocol: Protocols.Uniswap | Protocols.Sushiswap;
|
|
@@ -142,11 +154,7 @@ export type ContractParams =
|
|
|
142
154
|
lpToken: CurveLPToken;
|
|
143
155
|
tokens: Array<NormalToken | CurveLPToken>;
|
|
144
156
|
}
|
|
145
|
-
|
|
|
146
|
-
protocol: Protocols.Curve;
|
|
147
|
-
type: AdapterInterface.CURVE_V1_STECRV_POOL;
|
|
148
|
-
pool: Record<NetworkType, string>;
|
|
149
|
-
}
|
|
157
|
+
| CurveSteCRVPoolParams
|
|
150
158
|
| {
|
|
151
159
|
protocol: Protocols.Yearn;
|
|
152
160
|
type: AdapterInterface.YEARN_V2;
|
|
@@ -162,11 +170,7 @@ export type ContractParams =
|
|
|
162
170
|
type: AdapterInterface.CONVEX_V1_BASE_REWARD_POOL;
|
|
163
171
|
stakedToken: ConvexStakedPhantomToken;
|
|
164
172
|
}
|
|
165
|
-
|
|
|
166
|
-
protocol: Protocols.Lido;
|
|
167
|
-
type: AdapterInterface.LIDO_V1;
|
|
168
|
-
contract: Record<NetworkType, string>;
|
|
169
|
-
};
|
|
173
|
+
| LidoParams;
|
|
170
174
|
|
|
171
175
|
export const contractParams: Record<SupportedContract, ContractParams> = {
|
|
172
176
|
UNISWAP_V2_ROUTER: {
|