@gearbox-protocol/sdk 3.0.0-next.237 → 3.0.0-next.239
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/contracts/index.sol +4 -0
- package/lib/apy/index.d.ts +0 -1
- package/lib/apy/index.js +0 -1
- package/lib/core/creditManager.d.ts +4 -0
- package/lib/core/creditManager.js +40 -0
- package/lib/core/{rewardClaimer.d.ts → rewardClaimer/index.d.ts} +10 -5
- package/lib/core/rewardClaimer/index.js +34 -0
- package/lib/core/{rewardConvex.d.ts → rewardClaimer/rewardConvex.d.ts} +3 -3
- package/lib/core/{rewardConvex.js → rewardClaimer/rewardConvex.js} +6 -7
- package/lib/core/{rewardConvex.spec.js → rewardClaimer/rewardConvex.spec.js} +1 -2
- package/lib/core/rewardClaimer/stakingRewards.d.ts +34 -0
- package/lib/core/rewardClaimer/stakingRewards.js +133 -0
- package/lib/core/strategy.d.ts +2 -1
- package/lib/core/strategy.js +4 -2
- package/lib/parsers/curveAdapterParser.js +1 -1
- package/lib/parsers/stakingRewardsAdapterParser.d.ts +10 -0
- package/lib/parsers/stakingRewardsAdapterParser.js +35 -0
- package/lib/parsers/txParser.js +4 -0
- package/lib/redstone/api.d.ts +0 -5
- package/lib/redstone/api.js +29 -94
- package/lib/types/IERC20ZapperDeposits.d.ts +80 -0
- package/lib/types/IERC20ZapperDeposits.js +35 -0
- package/lib/types/IStakingRewardsAdapter.d.ts +197 -0
- package/lib/types/IStakingRewardsAdapter.js +139 -0
- package/lib/types/IZapper.d.ts +38 -0
- package/lib/types/IZapper.js +17 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/package.json +6 -6
- package/lib/core/rewardClaimer.js +0 -10
- /package/lib/{apy/auraAPY.d.ts → core/rewardClaimer/aura.d.ts} +0 -0
- /package/lib/{apy/auraAPY.js → core/rewardClaimer/aura.js} +0 -0
- /package/lib/{apy → core/rewardClaimer}/auraAbi.d.ts +0 -0
- /package/lib/{apy → core/rewardClaimer}/auraAbi.js +0 -0
- /package/lib/{apy/convexAPY.d.ts → core/rewardClaimer/convex.d.ts} +0 -0
- /package/lib/{apy/convexAPY.js → core/rewardClaimer/convex.js} +0 -0
- /package/lib/core/{rewardConvex.spec.d.ts → rewardClaimer/rewardConvex.spec.d.ts} +0 -0
package/lib/types/IZapper.d.ts
CHANGED
|
@@ -88,6 +88,44 @@ export declare const iZapperAbi: readonly [{
|
|
|
88
88
|
readonly type: "uint256";
|
|
89
89
|
}];
|
|
90
90
|
readonly stateMutability: "nonpayable";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly name: "tokenOutAmount";
|
|
95
|
+
readonly internalType: "uint256";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "receiver";
|
|
99
|
+
readonly internalType: "address";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "nonce";
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "expiry";
|
|
107
|
+
readonly internalType: "uint256";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "v";
|
|
111
|
+
readonly internalType: "uint8";
|
|
112
|
+
readonly type: "uint8";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "r";
|
|
115
|
+
readonly internalType: "bytes32";
|
|
116
|
+
readonly type: "bytes32";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "s";
|
|
119
|
+
readonly internalType: "bytes32";
|
|
120
|
+
readonly type: "bytes32";
|
|
121
|
+
}];
|
|
122
|
+
readonly name: "redeemWithPermitAllowed";
|
|
123
|
+
readonly outputs: readonly [{
|
|
124
|
+
readonly name: "tokenInAmount";
|
|
125
|
+
readonly internalType: "uint256";
|
|
126
|
+
readonly type: "uint256";
|
|
127
|
+
}];
|
|
128
|
+
readonly stateMutability: "nonpayable";
|
|
91
129
|
}, {
|
|
92
130
|
readonly type: "function";
|
|
93
131
|
readonly inputs: readonly [];
|
package/lib/types/IZapper.js
CHANGED
|
@@ -62,6 +62,23 @@ exports.iZapperAbi = [
|
|
|
62
62
|
],
|
|
63
63
|
stateMutability: "nonpayable",
|
|
64
64
|
},
|
|
65
|
+
{
|
|
66
|
+
type: "function",
|
|
67
|
+
inputs: [
|
|
68
|
+
{ name: "tokenOutAmount", internalType: "uint256", type: "uint256" },
|
|
69
|
+
{ name: "receiver", internalType: "address", type: "address" },
|
|
70
|
+
{ name: "nonce", internalType: "uint256", type: "uint256" },
|
|
71
|
+
{ name: "expiry", internalType: "uint256", type: "uint256" },
|
|
72
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
73
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
74
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" },
|
|
75
|
+
],
|
|
76
|
+
name: "redeemWithPermitAllowed",
|
|
77
|
+
outputs: [
|
|
78
|
+
{ name: "tokenInAmount", internalType: "uint256", type: "uint256" },
|
|
79
|
+
],
|
|
80
|
+
stateMutability: "nonpayable",
|
|
81
|
+
},
|
|
65
82
|
{
|
|
66
83
|
type: "function",
|
|
67
84
|
inputs: [],
|
package/lib/types/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from "./IPriceFeed";
|
|
|
39
39
|
export * from "./IPriceOracleBase";
|
|
40
40
|
export * from "./IPriceOracleV3";
|
|
41
41
|
export * from "./IRouterV3";
|
|
42
|
+
export * from "./IStakingRewardsAdapter";
|
|
42
43
|
export * from "./IstETH";
|
|
43
44
|
export * from "./IUniswapV2Adapter";
|
|
44
45
|
export * from "./IUniswapV3Adapter";
|
package/lib/types/index.js
CHANGED
|
@@ -55,6 +55,7 @@ __exportStar(require("./IPriceFeed"), exports);
|
|
|
55
55
|
__exportStar(require("./IPriceOracleBase"), exports);
|
|
56
56
|
__exportStar(require("./IPriceOracleV3"), exports);
|
|
57
57
|
__exportStar(require("./IRouterV3"), exports);
|
|
58
|
+
__exportStar(require("./IStakingRewardsAdapter"), exports);
|
|
58
59
|
__exportStar(require("./IstETH"), exports);
|
|
59
60
|
__exportStar(require("./IUniswapV2Adapter"), exports);
|
|
60
61
|
__exportStar(require("./IUniswapV3Adapter"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.239",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@gearbox-protocol/bots-v3": "^1.5.1",
|
|
32
|
-
"@gearbox-protocol/sdk-gov": "
|
|
32
|
+
"@gearbox-protocol/sdk-gov": "v2.25.2-next.4",
|
|
33
33
|
"@wagmi/cli": "^2.1.13",
|
|
34
34
|
"axios": "^1.2.6",
|
|
35
35
|
"decimal.js-light": "^2.5.1",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@commitlint/cli": "^17.6.3",
|
|
43
43
|
"@commitlint/config-conventional": "^17.0.3",
|
|
44
44
|
"@gearbox-protocol/core-v2": "1.19.0-base.17",
|
|
45
|
-
"@gearbox-protocol/core-v3": "^1.
|
|
45
|
+
"@gearbox-protocol/core-v3": "^1.50.0",
|
|
46
46
|
"@gearbox-protocol/eslint-config": "^1.4.1",
|
|
47
|
-
"@gearbox-protocol/integrations-v3": "^1.
|
|
48
|
-
"@gearbox-protocol/oracles-v3": "^1.
|
|
47
|
+
"@gearbox-protocol/integrations-v3": "^1.43.0",
|
|
48
|
+
"@gearbox-protocol/oracles-v3": "^1.11.1",
|
|
49
49
|
"@gearbox-protocol/periphery-v3": "^1.6.1",
|
|
50
50
|
"@gearbox-protocol/prettier-config": "^1.4.1",
|
|
51
51
|
"@gearbox-protocol/router": "^1.5.5",
|
|
52
|
-
"@gearbox-protocol/router-v3": "^1.
|
|
52
|
+
"@gearbox-protocol/router-v3": "^1.36.1",
|
|
53
53
|
"@openzeppelin/contracts": "^4.9.3",
|
|
54
54
|
"@redstone-finance/evm-connector": "^0.5.4",
|
|
55
55
|
"@types/chai": "^4.3.3",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RewardClaimer = void 0;
|
|
4
|
-
const rewardConvex_1 = require("./rewardConvex");
|
|
5
|
-
class RewardClaimer {
|
|
6
|
-
static async findRewards(ca, cm, network, provider) {
|
|
7
|
-
return rewardConvex_1.RewardConvex.findRewards(ca, cm, network, provider);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.RewardClaimer = RewardClaimer;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|