@gearbox-protocol/sdk 11.9.0 → 11.10.1
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/dist/cjs/plugins/bots/index.js +2 -0
- package/dist/cjs/sdk/market/credit/CreditSuite.js +3 -0
- package/dist/esm/plugins/bots/index.js +1 -0
- package/dist/esm/sdk/market/credit/CreditSuite.js +3 -0
- package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +14 -0
- package/dist/types/plugins/bots/index.d.ts +1 -0
- package/dist/types/sdk/market/credit/CreditSuite.d.ts +1 -0
- package/package.json +11 -11
|
@@ -18,11 +18,13 @@ module.exports = __toCommonJS(bots_exports);
|
|
|
18
18
|
__reExport(bots_exports, require("./abi/index.js"), module.exports);
|
|
19
19
|
__reExport(bots_exports, require("./BotsPlugin.js"), module.exports);
|
|
20
20
|
__reExport(bots_exports, require("./PartialLiquidationBotV300Contract.js"), module.exports);
|
|
21
|
+
__reExport(bots_exports, require("./PartialLiquidationBotV310Contract.js"), module.exports);
|
|
21
22
|
__reExport(bots_exports, require("./types.js"), module.exports);
|
|
22
23
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23
24
|
0 && (module.exports = {
|
|
24
25
|
...require("./abi/index.js"),
|
|
25
26
|
...require("./BotsPlugin.js"),
|
|
26
27
|
...require("./PartialLiquidationBotV300Contract.js"),
|
|
28
|
+
...require("./PartialLiquidationBotV310Contract.js"),
|
|
27
29
|
...require("./types.js")
|
|
28
30
|
});
|
|
@@ -60,6 +60,9 @@ class CreditSuite extends import_base.SDKConstruct {
|
|
|
60
60
|
get router() {
|
|
61
61
|
return this.sdk.routerFor(this);
|
|
62
62
|
}
|
|
63
|
+
get isExpired() {
|
|
64
|
+
return this.creditFacade.expirable && this.creditFacade.expirationDate > 0 && this.creditFacade.expirationDate < this.sdk.timestamp;
|
|
65
|
+
}
|
|
63
66
|
get dirty() {
|
|
64
67
|
return this.creditFacade.dirty || this.creditManager.dirty || this.creditConfigurator.dirty;
|
|
65
68
|
}
|
|
@@ -27,6 +27,9 @@ class CreditSuite extends SDKConstruct {
|
|
|
27
27
|
get router() {
|
|
28
28
|
return this.sdk.routerFor(this);
|
|
29
29
|
}
|
|
30
|
+
get isExpired() {
|
|
31
|
+
return this.creditFacade.expirable && this.creditFacade.expirationDate > 0 && this.creditFacade.expirationDate < this.sdk.timestamp;
|
|
32
|
+
}
|
|
30
33
|
get dirty() {
|
|
31
34
|
return this.creditFacade.dirty || this.creditManager.dirty || this.creditConfigurator.dirty;
|
|
32
35
|
}
|
|
@@ -164,6 +164,20 @@ declare const abi: readonly [{
|
|
|
164
164
|
readonly type: "bool";
|
|
165
165
|
}];
|
|
166
166
|
readonly stateMutability: "nonpayable";
|
|
167
|
+
}, {
|
|
168
|
+
readonly type: "function";
|
|
169
|
+
readonly inputs: readonly [{
|
|
170
|
+
readonly name: "leftoverAmount";
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
readonly type: "uint256";
|
|
173
|
+
}];
|
|
174
|
+
readonly name: "requestRedeemDiff";
|
|
175
|
+
readonly outputs: readonly [{
|
|
176
|
+
readonly name: "";
|
|
177
|
+
readonly internalType: "bool";
|
|
178
|
+
readonly type: "bool";
|
|
179
|
+
}];
|
|
180
|
+
readonly stateMutability: "nonpayable";
|
|
167
181
|
}, {
|
|
168
182
|
readonly type: "function";
|
|
169
183
|
readonly inputs: readonly [];
|
|
@@ -16,6 +16,7 @@ export declare class CreditSuite extends SDKConstruct {
|
|
|
16
16
|
readonly state: CreditSuiteState;
|
|
17
17
|
constructor(sdk: GearboxSDK, marketData: MarketData, index: number);
|
|
18
18
|
get router(): IRouterContract;
|
|
19
|
+
get isExpired(): boolean;
|
|
19
20
|
get dirty(): boolean;
|
|
20
21
|
get watchAddresses(): Set<Address>;
|
|
21
22
|
stateHuman(raw?: boolean): CreditSuiteStateHuman;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.10.1",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/sdk/index.js",
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
"prepare": "husky",
|
|
49
49
|
"check": "biome check --write",
|
|
50
50
|
"check:ci": "biome check --diagnostic-level=error",
|
|
51
|
-
"typecheck:ci": "tsc --noEmit"
|
|
51
|
+
"typecheck:ci": "tsc --noEmit --moduleResolution bundler --module preserve"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@gearbox-protocol/integrations-v3": "1.
|
|
54
|
+
"@gearbox-protocol/integrations-v3": "1.52.1",
|
|
55
55
|
"@redstone-finance/evm-connector": "^0.9.0",
|
|
56
56
|
"@redstone-finance/protocol": "^0.9.0",
|
|
57
57
|
"@redstone-finance/sdk": "^0.9.0",
|
|
58
58
|
"@types/bn.js": "^5.2.0",
|
|
59
|
-
"abitype": "^1.2.
|
|
59
|
+
"abitype": "^1.2.1",
|
|
60
60
|
"bn.js": "^5.2.2",
|
|
61
61
|
"buffer": "^6.0.3",
|
|
62
62
|
"date-fns": "^4.1.0",
|
|
@@ -65,22 +65,22 @@
|
|
|
65
65
|
"zod": "^4.1.13"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@biomejs/biome": "^2.3.
|
|
69
|
-
"@commitlint/cli": "^20.
|
|
70
|
-
"@commitlint/config-conventional": "^20.
|
|
71
|
-
"@gearbox-protocol/biome-config": "^1.0.
|
|
68
|
+
"@biomejs/biome": "^2.3.8",
|
|
69
|
+
"@commitlint/cli": "^20.2.0",
|
|
70
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
71
|
+
"@gearbox-protocol/biome-config": "^1.0.14",
|
|
72
72
|
"@types/cross-spawn": "^6.0.6",
|
|
73
73
|
"axios": "^1.13.2",
|
|
74
74
|
"cross-spawn": "^7.0.6",
|
|
75
75
|
"husky": "^9.1.7",
|
|
76
76
|
"lint-staged": "^16.2.7",
|
|
77
77
|
"pino": "^10.1.0",
|
|
78
|
-
"pino-pretty": "^13.1.
|
|
78
|
+
"pino-pretty": "^13.1.3",
|
|
79
79
|
"tsup": "^8.5.1",
|
|
80
|
-
"tsx": "^4.
|
|
80
|
+
"tsx": "^4.21.0",
|
|
81
81
|
"typescript": "^5.9.3",
|
|
82
82
|
"viem-deal": "^2.0.4",
|
|
83
|
-
"vitest": "^4.0.
|
|
83
|
+
"vitest": "^4.0.15"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"axios": "^1.0.0",
|