@gearbox-protocol/sdk 3.0.0-vfour.362 → 3.0.0-vfour.364
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.
|
@@ -150,12 +150,6 @@ const chains = {
|
|
|
150
150
|
wellKnownToken: {
|
|
151
151
|
address: "0x4eB2Bd7beE16F38B1F4a0A5796Fffd028b6040e9",
|
|
152
152
|
symbol: "WETH"
|
|
153
|
-
},
|
|
154
|
-
contracts: {
|
|
155
|
-
multicall3: {
|
|
156
|
-
address: "0xB1F60733C7B76F8F4085af3d9f6e374C43E462f8"
|
|
157
|
-
},
|
|
158
|
-
...import_chains.megaethTestnet.contracts
|
|
159
153
|
}
|
|
160
154
|
}),
|
|
161
155
|
Monad: (0, import_viem.defineChain)({
|
|
@@ -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;
|
|
@@ -131,12 +131,6 @@ const chains = {
|
|
|
131
131
|
wellKnownToken: {
|
|
132
132
|
address: "0x4eB2Bd7beE16F38B1F4a0A5796Fffd028b6040e9",
|
|
133
133
|
symbol: "WETH"
|
|
134
|
-
},
|
|
135
|
-
contracts: {
|
|
136
|
-
multicall3: {
|
|
137
|
-
address: "0xB1F60733C7B76F8F4085af3d9f6e374C43E462f8"
|
|
138
|
-
},
|
|
139
|
-
...megaethTestnet.contracts
|
|
140
134
|
}
|
|
141
135
|
}),
|
|
142
136
|
Monad: defineChain({
|
|
@@ -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;
|