@gearbox-protocol/sdk 0.0.50 → 0.0.53
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 +4 -4
- package/lib/core/contracts.js +53 -53
- package/lib/core/contractsRegister.js +5 -5
- package/lib/core/priceFeeds.js +1 -1
- package/lib/core/token.d.ts +1 -1
- package/lib/core/token.js +375 -59
- 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 +71 -75
- package/src/core/contractsRegister.ts +5 -5
- package/src/core/priceFeeds.ts +1 -1
- package/src/core/token.ts +409 -93
- package/src/core/tradeTypes.ts +24 -6
package/src/core/tradeTypes.ts
CHANGED
|
@@ -22,9 +22,12 @@ export enum TradeType {
|
|
|
22
22
|
YearnDeposit,
|
|
23
23
|
YearnWithdraw,
|
|
24
24
|
LidoStake,
|
|
25
|
-
|
|
25
|
+
ConvexDepositLP,
|
|
26
26
|
ConvexStake,
|
|
27
|
-
|
|
27
|
+
ConvexDepositLPAndStake,
|
|
28
|
+
ConvexWithdrawLP,
|
|
29
|
+
ConvexWithdraw,
|
|
30
|
+
ConvexWithdrawAndUnwrap
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
export type TradeAction =
|
|
@@ -67,8 +70,8 @@ export type TradeAction =
|
|
|
67
70
|
tokenOut: NormalToken;
|
|
68
71
|
}
|
|
69
72
|
| {
|
|
70
|
-
type: TradeType.
|
|
71
|
-
contract:
|
|
73
|
+
type: TradeType.ConvexDepositLP;
|
|
74
|
+
contract: "CONVEX_BOOSTER";
|
|
72
75
|
tokenOut: ConvexLPToken;
|
|
73
76
|
}
|
|
74
77
|
| {
|
|
@@ -77,7 +80,22 @@ export type TradeAction =
|
|
|
77
80
|
tokenOut: ConvexStakedPhantomToken;
|
|
78
81
|
}
|
|
79
82
|
| {
|
|
80
|
-
type: TradeType.
|
|
81
|
-
contract:
|
|
83
|
+
type: TradeType.ConvexDepositLPAndStake;
|
|
84
|
+
contract: "CONVEX_BOOSTER";
|
|
82
85
|
tokenOut: ConvexStakedPhantomToken;
|
|
86
|
+
}
|
|
87
|
+
| {
|
|
88
|
+
type: TradeType.ConvexWithdrawLP;
|
|
89
|
+
contract: "CONVEX_BOOSTER";
|
|
90
|
+
tokenOut: CurveLPToken;
|
|
91
|
+
}
|
|
92
|
+
| {
|
|
93
|
+
type: TradeType.ConvexWithdraw;
|
|
94
|
+
contract: ConvexPoolContract;
|
|
95
|
+
tokenOut: ConvexLPToken;
|
|
96
|
+
}
|
|
97
|
+
| {
|
|
98
|
+
type: TradeType.ConvexWithdrawAndUnwrap;
|
|
99
|
+
contract: ConvexPoolContract;
|
|
100
|
+
tokenOut: CurveLPToken;
|
|
83
101
|
};
|