@gearbox-protocol/sdk 3.0.0-vfour.363 → 3.0.0-vfour.365
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.
|
@@ -38,6 +38,7 @@ var import_createPoolQuotaKeeper = __toESM(require("./createPoolQuotaKeeper.js")
|
|
|
38
38
|
var import_createRateKeeper = __toESM(require("./createRateKeeper.js"));
|
|
39
39
|
var import_GaugeContract = require("./GaugeContract.js");
|
|
40
40
|
var import_LinearInterestRateModelContract = require("./LinearInterestRateModelContract.js");
|
|
41
|
+
var import_TumblerContract = require("./TumblerContract.js");
|
|
41
42
|
class PoolSuite extends import_base.SDKConstruct {
|
|
42
43
|
pool;
|
|
43
44
|
pqk;
|
|
@@ -61,6 +62,14 @@ class PoolSuite extends import_base.SDKConstruct {
|
|
|
61
62
|
"Rate keeper is not a gauge, but a " + this.rateKeeper.contractType
|
|
62
63
|
);
|
|
63
64
|
}
|
|
65
|
+
get tumbler() {
|
|
66
|
+
if (this.rateKeeper instanceof import_TumblerContract.TumblerContract) {
|
|
67
|
+
return this.rateKeeper;
|
|
68
|
+
}
|
|
69
|
+
throw new Error(
|
|
70
|
+
"Rate keeper is not a tumbler, but a " + this.rateKeeper.contractType
|
|
71
|
+
);
|
|
72
|
+
}
|
|
64
73
|
get linearModel() {
|
|
65
74
|
if (this.interestRateModel instanceof import_LinearInterestRateModelContract.LinearInterestRateModelContract) {
|
|
66
75
|
return this.interestRateModel;
|
|
@@ -5,6 +5,7 @@ import createPoolQuotaKeeper from "./createPoolQuotaKeeper.js";
|
|
|
5
5
|
import createRateKeeper from "./createRateKeeper.js";
|
|
6
6
|
import { GaugeContract } from "./GaugeContract.js";
|
|
7
7
|
import { LinearInterestRateModelContract } from "./LinearInterestRateModelContract.js";
|
|
8
|
+
import { TumblerContract } from "./TumblerContract.js";
|
|
8
9
|
class PoolSuite extends SDKConstruct {
|
|
9
10
|
pool;
|
|
10
11
|
pqk;
|
|
@@ -28,6 +29,14 @@ class PoolSuite extends SDKConstruct {
|
|
|
28
29
|
"Rate keeper is not a gauge, but a " + this.rateKeeper.contractType
|
|
29
30
|
);
|
|
30
31
|
}
|
|
32
|
+
get tumbler() {
|
|
33
|
+
if (this.rateKeeper instanceof TumblerContract) {
|
|
34
|
+
return this.rateKeeper;
|
|
35
|
+
}
|
|
36
|
+
throw new Error(
|
|
37
|
+
"Rate keeper is not a tumbler, but a " + this.rateKeeper.contractType
|
|
38
|
+
);
|
|
39
|
+
}
|
|
31
40
|
get linearModel() {
|
|
32
41
|
if (this.interestRateModel instanceof LinearInterestRateModelContract) {
|
|
33
42
|
return this.interestRateModel;
|
|
@@ -5,6 +5,7 @@ import type { GearboxSDK } from "../../GearboxSDK.js";
|
|
|
5
5
|
import type { PoolSuiteStateHuman } from "../../types/index.js";
|
|
6
6
|
import { GaugeContract } from "./GaugeContract.js";
|
|
7
7
|
import { LinearInterestRateModelContract } from "./LinearInterestRateModelContract.js";
|
|
8
|
+
import { TumblerContract } from "./TumblerContract.js";
|
|
8
9
|
import type { IInterestRateModelContract, IRateKeeperContract, PoolContract, PoolQuotaKeeperContract } from "./types.js";
|
|
9
10
|
export declare class PoolSuite extends SDKConstruct {
|
|
10
11
|
readonly pool: PoolContract;
|
|
@@ -13,6 +14,7 @@ export declare class PoolSuite extends SDKConstruct {
|
|
|
13
14
|
readonly interestRateModel: IInterestRateModelContract;
|
|
14
15
|
constructor(sdk: GearboxSDK, data: MarketData);
|
|
15
16
|
get gauge(): GaugeContract;
|
|
17
|
+
get tumbler(): TumblerContract;
|
|
16
18
|
get linearModel(): LinearInterestRateModelContract;
|
|
17
19
|
get underlying(): Address;
|
|
18
20
|
get dirty(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-vfour.
|
|
3
|
+
"version": "3.0.0-vfour.365",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/sdk/index.js",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"tsup": "^8.4.0",
|
|
96
96
|
"tsx": "^4.19.3",
|
|
97
97
|
"typescript": "^5.8.2",
|
|
98
|
-
"vitest": "^3.
|
|
98
|
+
"vitest": "^3.1.1"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
101
|
"axios": "^1.0.0"
|