@gearbox-protocol/sdk 0.0.47 → 0.0.48
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
CHANGED
|
@@ -9,6 +9,11 @@ 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 LidoParams {
|
|
13
|
+
protocol: Protocols.Lido;
|
|
14
|
+
type: AdapterInterface.LIDO_V1;
|
|
15
|
+
contract: Record<NetworkType, string>;
|
|
16
|
+
}
|
|
12
17
|
export declare type ContractParams = {
|
|
13
18
|
protocol: Protocols.Uniswap | Protocols.Sushiswap;
|
|
14
19
|
type: AdapterInterface.UNISWAP_V2_ROUTER;
|
|
@@ -35,9 +40,5 @@ export declare type ContractParams = {
|
|
|
35
40
|
protocol: Protocols.Convex;
|
|
36
41
|
type: AdapterInterface.CONVEX_V1_BASE_REWARD_POOL;
|
|
37
42
|
stakedToken: ConvexStakedPhantomToken;
|
|
38
|
-
} |
|
|
39
|
-
protocol: Protocols.Lido;
|
|
40
|
-
type: AdapterInterface.LIDO_V1;
|
|
41
|
-
contract: Record<NetworkType, string>;
|
|
42
|
-
};
|
|
43
|
+
} | LidoParams;
|
|
43
44
|
export declare const contractParams: Record<SupportedContract, ContractParams>;
|
package/lib/core/contracts.js
CHANGED
package/package.json
CHANGED
package/src/core/contracts.ts
CHANGED
|
@@ -123,6 +123,12 @@ export const contractsByNetwork: Record<
|
|
|
123
123
|
|
|
124
124
|
export const UNISWAP_V3_QUOTER = "0xb27308f9f90d607463bb33ea1bebb41c27ce5ab6";
|
|
125
125
|
|
|
126
|
+
export interface LidoParams {
|
|
127
|
+
protocol: Protocols.Lido;
|
|
128
|
+
type: AdapterInterface.LIDO_V1;
|
|
129
|
+
contract: Record<NetworkType, string>;
|
|
130
|
+
};
|
|
131
|
+
|
|
126
132
|
export type ContractParams =
|
|
127
133
|
| {
|
|
128
134
|
protocol: Protocols.Uniswap | Protocols.Sushiswap;
|
|
@@ -162,11 +168,7 @@ export type ContractParams =
|
|
|
162
168
|
type: AdapterInterface.CONVEX_V1_BASE_REWARD_POOL;
|
|
163
169
|
stakedToken: ConvexStakedPhantomToken;
|
|
164
170
|
}
|
|
165
|
-
|
|
|
166
|
-
protocol: Protocols.Lido;
|
|
167
|
-
type: AdapterInterface.LIDO_V1;
|
|
168
|
-
contract: Record<NetworkType, string>;
|
|
169
|
-
};
|
|
171
|
+
| LidoParams;
|
|
170
172
|
|
|
171
173
|
export const contractParams: Record<SupportedContract, ContractParams> = {
|
|
172
174
|
UNISWAP_V2_ROUTER: {
|