@gearbox-protocol/sdk 0.0.51 → 0.0.54
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 +2 -1
- package/lib/core/contracts.js +5 -4
- package/lib/core/token.js +350 -34
- package/lib/core/tradeTypes.d.ts +21 -6
- package/lib/core/tradeTypes.js +5 -2
- package/package.json +1 -1
- package/src/core/contracts.ts +8 -10
- package/src/core/token.ts +383 -67
- package/src/core/tradeTypes.ts +24 -6
package/package.json
CHANGED
package/src/core/contracts.ts
CHANGED
|
@@ -7,12 +7,8 @@
|
|
|
7
7
|
import { AdapterInterface } from "./adapters";
|
|
8
8
|
import { NetworkType } from "./constants";
|
|
9
9
|
import { Protocols } from "./protocols";
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
CurveLPToken,
|
|
13
|
-
NormalToken,
|
|
14
|
-
tokenDataByNetwork
|
|
15
|
-
} from "./token";
|
|
10
|
+
import { CurveLPToken, NormalToken, ConvexStakedPhantomToken, tokenDataByNetwork } from "./token";
|
|
11
|
+
|
|
16
12
|
|
|
17
13
|
export type UniswapV2Contract = "UNISWAP_V2_ROUTER" | "SUSHISWAP_ROUTER";
|
|
18
14
|
|
|
@@ -127,6 +123,7 @@ export interface CurveSteCRVPoolParams {
|
|
|
127
123
|
protocol: Protocols.Curve;
|
|
128
124
|
type: AdapterInterface.CURVE_V1_STECRV_POOL;
|
|
129
125
|
pool: Record<NetworkType, string>;
|
|
126
|
+
lpToken: "steCRV";
|
|
130
127
|
}
|
|
131
128
|
|
|
132
129
|
export interface LidoParams {
|
|
@@ -198,7 +195,8 @@ export const contractParams: Record<SupportedContract, ContractParams> = {
|
|
|
198
195
|
pool: {
|
|
199
196
|
Mainnet: "0xDC24316b9AE028F1497c275EB9192a3Ea0f67022",
|
|
200
197
|
Kovan: "0xF695d3aa358D5087A0C157DBb9449d4f0d8E534a"
|
|
201
|
-
}
|
|
198
|
+
},
|
|
199
|
+
lpToken: "steCRV"
|
|
202
200
|
},
|
|
203
201
|
CURVE_FRAX_POOL: {
|
|
204
202
|
protocol: Protocols.Curve,
|
|
@@ -210,13 +208,13 @@ export const contractParams: Record<SupportedContract, ContractParams> = {
|
|
|
210
208
|
protocol: Protocols.Curve,
|
|
211
209
|
type: AdapterInterface.CURVE_V1_2ASSETS,
|
|
212
210
|
lpToken: "LUSD3CRV",
|
|
213
|
-
tokens: ["3Crv", "
|
|
211
|
+
tokens: ["3Crv", "LUSD"]
|
|
214
212
|
},
|
|
215
213
|
CURVE_SUSD_POOL: {
|
|
216
214
|
protocol: Protocols.Curve,
|
|
217
|
-
type: AdapterInterface.
|
|
215
|
+
type: AdapterInterface.CURVE_V1_4ASSETS,
|
|
218
216
|
lpToken: "crvPlain3andSUSD",
|
|
219
|
-
tokens: ["
|
|
217
|
+
tokens: ["DAI", "USDC", "USDT", "sUSD"]
|
|
220
218
|
},
|
|
221
219
|
CURVE_GUSD_POOL: {
|
|
222
220
|
protocol: Protocols.Curve,
|