@meterio/sumer-js 0.2.1 → 0.2.3
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/browser/sumer.min.js +9 -9
- package/dist/nodejs/abi.d.ts +80 -0
- package/dist/nodejs/abi.js +143 -0
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/metertest.d.ts +2 -0
- package/dist/nodejs/constants/metertest.js +14 -0
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/index.d.ts +80 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +26 -1
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +26 -1
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +26 -1
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +26 -1
- package/dist/nodejs/typechain/contracts/Timelock.d.ts +9 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +24 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +32 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +24 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +32 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +23 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +31 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +24 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +32 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +15 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +20 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,8 @@ exports.metertest = {
|
|
|
16
16
|
"Comptroller": "0x7D33ea1F5797FB613BE8938C13B969a75A74eAfE",
|
|
17
17
|
"sdrMTR": "0xF5f86Bf56eA2232454745412f5f482Eb8cB11B1D",
|
|
18
18
|
"MTR": "0x0000000000000000000000000000000000000000",
|
|
19
|
+
"sdrUSDX": "0xd6200eda6BBD223c9C8166455d1Da6427972B6F4",
|
|
20
|
+
"USDX": "0x4b770584943e2b7788D2C6307d0B95E4Ab215445",
|
|
19
21
|
"sdrUSDC": "0xFB6AC915da7acfC59487C8d593c56a08b0D49cA3",
|
|
20
22
|
"USDC": "0x2b27f5f7f2867ad9d2b7065f81e985c1bd1b7274",
|
|
21
23
|
"sdrUSDT": "0xdA46e7E8881d637Da1633e3A0b45FDD43F566eE0",
|
|
@@ -37,6 +39,17 @@ exports.metertest = {
|
|
|
37
39
|
"Timelock": "0x37D74AC09CF8a27eD08D7366b0c1361b443dFf5d"
|
|
38
40
|
},
|
|
39
41
|
"tokenPairs": [
|
|
42
|
+
{
|
|
43
|
+
"ctokenSym": "sdrUSDX",
|
|
44
|
+
"ctokenAddr": "0xd6200eda6BBD223c9C8166455d1Da6427972B6F4",
|
|
45
|
+
"underlySym": "USDX",
|
|
46
|
+
"ctokenDecimal": 6,
|
|
47
|
+
"underlyDecimal": 6,
|
|
48
|
+
"ctokenIsEther": false,
|
|
49
|
+
"permitEnabled": false,
|
|
50
|
+
"underlyAddr": "0x4b770584943e2b7788D2C6307d0B95E4Ab215445",
|
|
51
|
+
"assetGroupId": 1
|
|
52
|
+
},
|
|
40
53
|
{
|
|
41
54
|
"ctokenSym": "sdrUSDC",
|
|
42
55
|
"ctokenAddr": "0xFB6AC915da7acfC59487C8d593c56a08b0D49cA3",
|
|
@@ -152,6 +165,7 @@ exports.metertest = {
|
|
|
152
165
|
"name": "JumpRateModelV2",
|
|
153
166
|
"address": "0x17ef44f6Dd82354c672d083037EDA60CaB42D73D",
|
|
154
167
|
"tokens": [
|
|
168
|
+
"USDX",
|
|
155
169
|
"USDC",
|
|
156
170
|
"USDT",
|
|
157
171
|
"MTRG",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metertest.js","sourceRoot":"","sources":["../../../src/constants/metertest.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,WAAW,EAAE;QACX,YAAY,EAAE,4CAA4C;QAC1D,yBAAyB,EAAE,4CAA4C;QACvE,YAAY,EAAE,4CAA4C;QAC1D,OAAO,EAAE,4CAA4C;QACrD,OAAO,EAAE,4CAA4C;QACrD,cAAc,EAAE,4CAA4C;QAC5D,iBAAiB,EAAE,4CAA4C;QAC/D,kBAAkB,EAAE,4CAA4C;QAChE,WAAW,EAAE,4CAA4C;QACzD,mBAAmB,EAAE,4CAA4C;QACjE,aAAa,EAAE,4CAA4C;QAC3D,QAAQ,EAAE,4CAA4C;QACtD,KAAK,EAAE,4CAA4C;QACnD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CA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AA4C;YAC3D,cAAc,EAAE,CAAC;SAClB;QACD;YACE,WAAW,EAAE,QAAQ;YACrB,YAAY,EAAE,4CAA4C;YAC1D,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;YACpB,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,4CAA4C;SAC5D;KACF;IACD,YAAY,EAAE;QACZ;YACE,MAAM,EAAE,iBAAiB;YACzB,SAAS,EAAE,4CAA4C;YACvD,QAAQ,EAAE;gBACR,MAAM;gBACN,MAAM;gBACN,MAAM;gBACN,KAAK;gBACL,KAAK;gBACL,KAAK;aACN;YACD,iBAAiB,EAAE,IAAI;YACvB,mBAAmB,EAAE,IAAI;YACzB,uBAAuB,EAAE,CAAC;YAC1B,MAAM,EAAE,IAAI;SACb;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,SAAS,EAAE,4CAA4C;YACvD,QAAQ,EAAE;gBACR,SAAS;aACV;YACD,iBAAiB,EAAE,CAAC;YACpB,mBAAmB,EAAE,IAAI;YACzB,uBAAuB,EAAE,GAAG;YAC5B,MAAM,EAAE,IAAI;SACb;KACF;CACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"metertest.js","sourceRoot":"","sources":["../../../src/constants/metertest.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,WAAW,EAAE;QACX,YAAY,EAAE,4CAA4C;QAC1D,yBAAyB,EAAE,4CAA4C;QACvE,YAAY,EAAE,4CAA4C;QAC1D,OAAO,EAAE,4CAA4C;QACrD,OAAO,EAAE,4CAA4C;QACrD,cAAc,EAAE,4CAA4C;QAC5D,iBAAiB,EAAE,4CAA4C;QAC/D,kBAAkB,EAAE,4CAA4C;QAChE,WAAW,EAAE,4CAA4C;QACzD,mBAAmB,EAAE,4CAA4C;QACjE,aAAa,EAAE,4CAA4C;QAC3D,QAAQ,EAAE,4CAA4C;QACtD,KAAK,EAAE,4CA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ts
CHANGED
|
@@ -264,6 +264,26 @@ declare const Sumer: {
|
|
|
264
264
|
stateMutability: string;
|
|
265
265
|
type: string;
|
|
266
266
|
anonymous?: undefined;
|
|
267
|
+
} | {
|
|
268
|
+
inputs: {
|
|
269
|
+
internalType: string;
|
|
270
|
+
name: string;
|
|
271
|
+
type: string;
|
|
272
|
+
}[];
|
|
273
|
+
name: string;
|
|
274
|
+
outputs: {
|
|
275
|
+
components: {
|
|
276
|
+
internalType: string;
|
|
277
|
+
name: string;
|
|
278
|
+
type: string;
|
|
279
|
+
}[];
|
|
280
|
+
internalType: string;
|
|
281
|
+
name: string;
|
|
282
|
+
type: string;
|
|
283
|
+
}[];
|
|
284
|
+
stateMutability: string;
|
|
285
|
+
type: string;
|
|
286
|
+
anonymous?: undefined;
|
|
267
287
|
})[];
|
|
268
288
|
CEther: ({
|
|
269
289
|
inputs: {
|
|
@@ -303,6 +323,26 @@ declare const Sumer: {
|
|
|
303
323
|
stateMutability: string;
|
|
304
324
|
type: string;
|
|
305
325
|
anonymous?: undefined;
|
|
326
|
+
} | {
|
|
327
|
+
inputs: {
|
|
328
|
+
internalType: string;
|
|
329
|
+
name: string;
|
|
330
|
+
type: string;
|
|
331
|
+
}[];
|
|
332
|
+
name: string;
|
|
333
|
+
outputs: {
|
|
334
|
+
components: {
|
|
335
|
+
internalType: string;
|
|
336
|
+
name: string;
|
|
337
|
+
type: string;
|
|
338
|
+
}[];
|
|
339
|
+
internalType: string;
|
|
340
|
+
name: string;
|
|
341
|
+
type: string;
|
|
342
|
+
}[];
|
|
343
|
+
stateMutability: string;
|
|
344
|
+
type: string;
|
|
345
|
+
anonymous?: undefined;
|
|
306
346
|
} | {
|
|
307
347
|
stateMutability: string;
|
|
308
348
|
type: string;
|
|
@@ -349,6 +389,26 @@ declare const Sumer: {
|
|
|
349
389
|
stateMutability: string;
|
|
350
390
|
type: string;
|
|
351
391
|
anonymous?: undefined;
|
|
392
|
+
} | {
|
|
393
|
+
inputs: {
|
|
394
|
+
internalType: string;
|
|
395
|
+
name: string;
|
|
396
|
+
type: string;
|
|
397
|
+
}[];
|
|
398
|
+
name: string;
|
|
399
|
+
outputs: {
|
|
400
|
+
components: {
|
|
401
|
+
internalType: string;
|
|
402
|
+
name: string;
|
|
403
|
+
type: string;
|
|
404
|
+
}[];
|
|
405
|
+
internalType: string;
|
|
406
|
+
name: string;
|
|
407
|
+
type: string;
|
|
408
|
+
}[];
|
|
409
|
+
stateMutability: string;
|
|
410
|
+
type: string;
|
|
411
|
+
anonymous?: undefined;
|
|
352
412
|
})[];
|
|
353
413
|
CTokenStorage: ({
|
|
354
414
|
anonymous: boolean;
|
|
@@ -416,6 +476,26 @@ declare const Sumer: {
|
|
|
416
476
|
stateMutability: string;
|
|
417
477
|
type: string;
|
|
418
478
|
anonymous?: undefined;
|
|
479
|
+
} | {
|
|
480
|
+
inputs: {
|
|
481
|
+
internalType: string;
|
|
482
|
+
name: string;
|
|
483
|
+
type: string;
|
|
484
|
+
}[];
|
|
485
|
+
name: string;
|
|
486
|
+
outputs: {
|
|
487
|
+
components: {
|
|
488
|
+
internalType: string;
|
|
489
|
+
name: string;
|
|
490
|
+
type: string;
|
|
491
|
+
}[];
|
|
492
|
+
internalType: string;
|
|
493
|
+
name: string;
|
|
494
|
+
type: string;
|
|
495
|
+
}[];
|
|
496
|
+
stateMutability: string;
|
|
497
|
+
type: string;
|
|
498
|
+
anonymous?: undefined;
|
|
419
499
|
})[];
|
|
420
500
|
AccountLiquidity: ({
|
|
421
501
|
inputs: {
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
|
+
export declare namespace CTokenStorage {
|
|
4
|
+
type BorrowSnapshotStruct = {
|
|
5
|
+
principal: BigNumberish;
|
|
6
|
+
interestIndex: BigNumberish;
|
|
7
|
+
};
|
|
8
|
+
type BorrowSnapshotStructOutput = [
|
|
9
|
+
principal: bigint,
|
|
10
|
+
interestIndex: bigint
|
|
11
|
+
] & {
|
|
12
|
+
principal: bigint;
|
|
13
|
+
interestIndex: bigint;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
3
16
|
export interface CErc20Interface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
17
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getBorrowSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
18
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
19
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
20
|
encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
|
|
@@ -31,6 +44,7 @@ export interface CErc20Interface extends Interface {
|
|
|
31
44
|
encodeFunctionData(functionFragment: "exchangeRateCurrent", values?: undefined): string;
|
|
32
45
|
encodeFunctionData(functionFragment: "exchangeRateStored", values?: undefined): string;
|
|
33
46
|
encodeFunctionData(functionFragment: "getAccountSnapshot", values: [AddressLike]): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "getBorrowSnapshot", values: [AddressLike]): string;
|
|
34
48
|
encodeFunctionData(functionFragment: "getCash", values?: undefined): string;
|
|
35
49
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
36
50
|
AddressLike,
|
|
@@ -108,6 +122,7 @@ export interface CErc20Interface extends Interface {
|
|
|
108
122
|
decodeFunctionResult(functionFragment: "exchangeRateCurrent", data: BytesLike): Result;
|
|
109
123
|
decodeFunctionResult(functionFragment: "exchangeRateStored", data: BytesLike): Result;
|
|
110
124
|
decodeFunctionResult(functionFragment: "getAccountSnapshot", data: BytesLike): Result;
|
|
125
|
+
decodeFunctionResult(functionFragment: "getBorrowSnapshot", data: BytesLike): Result;
|
|
111
126
|
decodeFunctionResult(functionFragment: "getCash", data: BytesLike): Result;
|
|
112
127
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
113
128
|
decodeFunctionResult(functionFragment: "interestRateModel", data: BytesLike): Result;
|
|
@@ -601,6 +616,11 @@ export interface CErc20 extends BaseContract {
|
|
|
601
616
|
], [
|
|
602
617
|
[bigint, bigint, bigint, bigint]
|
|
603
618
|
], "view">;
|
|
619
|
+
getBorrowSnapshot: TypedContractMethod<[
|
|
620
|
+
borrower: AddressLike
|
|
621
|
+
], [
|
|
622
|
+
CTokenStorage.BorrowSnapshotStructOutput
|
|
623
|
+
], "view">;
|
|
604
624
|
getCash: TypedContractMethod<[], [bigint], "view">;
|
|
605
625
|
initialize: TypedContractMethod<[
|
|
606
626
|
underlying_: AddressLike,
|
|
@@ -769,6 +789,11 @@ export interface CErc20 extends BaseContract {
|
|
|
769
789
|
], [
|
|
770
790
|
[bigint, bigint, bigint, bigint]
|
|
771
791
|
], "view">;
|
|
792
|
+
getFunction(nameOrSignature: "getBorrowSnapshot"): TypedContractMethod<[
|
|
793
|
+
borrower: AddressLike
|
|
794
|
+
], [
|
|
795
|
+
CTokenStorage.BorrowSnapshotStructOutput
|
|
796
|
+
], "view">;
|
|
772
797
|
getFunction(nameOrSignature: "getCash"): TypedContractMethod<[], [bigint], "view">;
|
|
773
798
|
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
774
799
|
underlying_: AddressLike,
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
|
+
export declare namespace CTokenStorage {
|
|
4
|
+
type BorrowSnapshotStruct = {
|
|
5
|
+
principal: BigNumberish;
|
|
6
|
+
interestIndex: BigNumberish;
|
|
7
|
+
};
|
|
8
|
+
type BorrowSnapshotStructOutput = [
|
|
9
|
+
principal: bigint,
|
|
10
|
+
interestIndex: bigint
|
|
11
|
+
] & {
|
|
12
|
+
principal: bigint;
|
|
13
|
+
interestIndex: bigint;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
3
16
|
export interface CEtherInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
17
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getBorrowSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
18
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
19
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
20
|
encodeFunctionData(functionFragment: "_addReserves", values?: undefined): string;
|
|
@@ -31,6 +44,7 @@ export interface CEtherInterface extends Interface {
|
|
|
31
44
|
encodeFunctionData(functionFragment: "exchangeRateCurrent", values?: undefined): string;
|
|
32
45
|
encodeFunctionData(functionFragment: "exchangeRateStored", values?: undefined): string;
|
|
33
46
|
encodeFunctionData(functionFragment: "getAccountSnapshot", values: [AddressLike]): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "getBorrowSnapshot", values: [AddressLike]): string;
|
|
34
48
|
encodeFunctionData(functionFragment: "getCash", values?: undefined): string;
|
|
35
49
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
36
50
|
AddressLike,
|
|
@@ -104,6 +118,7 @@ export interface CEtherInterface extends Interface {
|
|
|
104
118
|
decodeFunctionResult(functionFragment: "exchangeRateCurrent", data: BytesLike): Result;
|
|
105
119
|
decodeFunctionResult(functionFragment: "exchangeRateStored", data: BytesLike): Result;
|
|
106
120
|
decodeFunctionResult(functionFragment: "getAccountSnapshot", data: BytesLike): Result;
|
|
121
|
+
decodeFunctionResult(functionFragment: "getBorrowSnapshot", data: BytesLike): Result;
|
|
107
122
|
decodeFunctionResult(functionFragment: "getCash", data: BytesLike): Result;
|
|
108
123
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
109
124
|
decodeFunctionResult(functionFragment: "interestRateModel", data: BytesLike): Result;
|
|
@@ -590,6 +605,11 @@ export interface CEther extends BaseContract {
|
|
|
590
605
|
], [
|
|
591
606
|
[bigint, bigint, bigint, bigint]
|
|
592
607
|
], "view">;
|
|
608
|
+
getBorrowSnapshot: TypedContractMethod<[
|
|
609
|
+
borrower: AddressLike
|
|
610
|
+
], [
|
|
611
|
+
CTokenStorage.BorrowSnapshotStructOutput
|
|
612
|
+
], "view">;
|
|
593
613
|
getCash: TypedContractMethod<[], [bigint], "view">;
|
|
594
614
|
initialize: TypedContractMethod<[
|
|
595
615
|
comptroller_: AddressLike,
|
|
@@ -736,6 +756,11 @@ export interface CEther extends BaseContract {
|
|
|
736
756
|
], [
|
|
737
757
|
[bigint, bigint, bigint, bigint]
|
|
738
758
|
], "view">;
|
|
759
|
+
getFunction(nameOrSignature: "getBorrowSnapshot"): TypedContractMethod<[
|
|
760
|
+
borrower: AddressLike
|
|
761
|
+
], [
|
|
762
|
+
CTokenStorage.BorrowSnapshotStructOutput
|
|
763
|
+
], "view">;
|
|
739
764
|
getFunction(nameOrSignature: "getCash"): TypedContractMethod<[], [bigint], "view">;
|
|
740
765
|
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
741
766
|
comptroller_: AddressLike,
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
|
+
export declare namespace CTokenStorage {
|
|
4
|
+
type BorrowSnapshotStruct = {
|
|
5
|
+
principal: BigNumberish;
|
|
6
|
+
interestIndex: BigNumberish;
|
|
7
|
+
};
|
|
8
|
+
type BorrowSnapshotStructOutput = [
|
|
9
|
+
principal: bigint,
|
|
10
|
+
interestIndex: bigint
|
|
11
|
+
] & {
|
|
12
|
+
principal: bigint;
|
|
13
|
+
interestIndex: bigint;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
3
16
|
export interface CTokenInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateCalculateSeizeTokens" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
17
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getBorrowSnapshot" | "getCash" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateCalculateSeizeTokens" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
18
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
19
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
20
|
encodeFunctionData(functionFragment: "_reduceReserves", values: [BigNumberish]): string;
|
|
@@ -29,6 +42,7 @@ export interface CTokenInterface extends Interface {
|
|
|
29
42
|
encodeFunctionData(functionFragment: "exchangeRateCurrent", values?: undefined): string;
|
|
30
43
|
encodeFunctionData(functionFragment: "exchangeRateStored", values?: undefined): string;
|
|
31
44
|
encodeFunctionData(functionFragment: "getAccountSnapshot", values: [AddressLike]): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "getBorrowSnapshot", values: [AddressLike]): string;
|
|
32
46
|
encodeFunctionData(functionFragment: "getCash", values?: undefined): string;
|
|
33
47
|
encodeFunctionData(functionFragment: "interestRateModel", values?: undefined): string;
|
|
34
48
|
encodeFunctionData(functionFragment: "isCEther", values?: undefined): string;
|
|
@@ -83,6 +97,7 @@ export interface CTokenInterface extends Interface {
|
|
|
83
97
|
decodeFunctionResult(functionFragment: "exchangeRateCurrent", data: BytesLike): Result;
|
|
84
98
|
decodeFunctionResult(functionFragment: "exchangeRateStored", data: BytesLike): Result;
|
|
85
99
|
decodeFunctionResult(functionFragment: "getAccountSnapshot", data: BytesLike): Result;
|
|
100
|
+
decodeFunctionResult(functionFragment: "getBorrowSnapshot", data: BytesLike): Result;
|
|
86
101
|
decodeFunctionResult(functionFragment: "getCash", data: BytesLike): Result;
|
|
87
102
|
decodeFunctionResult(functionFragment: "interestRateModel", data: BytesLike): Result;
|
|
88
103
|
decodeFunctionResult(functionFragment: "isCEther", data: BytesLike): Result;
|
|
@@ -545,6 +560,11 @@ export interface CToken extends BaseContract {
|
|
|
545
560
|
], [
|
|
546
561
|
[bigint, bigint, bigint, bigint]
|
|
547
562
|
], "view">;
|
|
563
|
+
getBorrowSnapshot: TypedContractMethod<[
|
|
564
|
+
borrower: AddressLike
|
|
565
|
+
], [
|
|
566
|
+
CTokenStorage.BorrowSnapshotStructOutput
|
|
567
|
+
], "view">;
|
|
548
568
|
getCash: TypedContractMethod<[], [bigint], "view">;
|
|
549
569
|
interestRateModel: TypedContractMethod<[], [string], "view">;
|
|
550
570
|
isCEther: TypedContractMethod<[], [boolean], "view">;
|
|
@@ -653,6 +673,11 @@ export interface CToken extends BaseContract {
|
|
|
653
673
|
], [
|
|
654
674
|
[bigint, bigint, bigint, bigint]
|
|
655
675
|
], "view">;
|
|
676
|
+
getFunction(nameOrSignature: "getBorrowSnapshot"): TypedContractMethod<[
|
|
677
|
+
borrower: AddressLike
|
|
678
|
+
], [
|
|
679
|
+
CTokenStorage.BorrowSnapshotStructOutput
|
|
680
|
+
], "view">;
|
|
656
681
|
getFunction(nameOrSignature: "getCash"): TypedContractMethod<[], [bigint], "view">;
|
|
657
682
|
getFunction(nameOrSignature: "interestRateModel"): TypedContractMethod<[], [string], "view">;
|
|
658
683
|
getFunction(nameOrSignature: "isCEther"): TypedContractMethod<[], [boolean], "view">;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
|
+
export declare namespace CTokenStorage {
|
|
4
|
+
type BorrowSnapshotStruct = {
|
|
5
|
+
principal: BigNumberish;
|
|
6
|
+
interestIndex: BigNumberish;
|
|
7
|
+
};
|
|
8
|
+
type BorrowSnapshotStructOutput = [
|
|
9
|
+
principal: bigint,
|
|
10
|
+
interestIndex: bigint
|
|
11
|
+
] & {
|
|
12
|
+
principal: bigint;
|
|
13
|
+
interestIndex: bigint;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
3
16
|
export interface SuErc20Interface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "protectedMint" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
17
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "executeRedemption" | "getAccountSnapshot" | "getBorrowSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "protectedMint" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
18
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
19
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
20
|
encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
|
|
@@ -39,6 +52,7 @@ export interface SuErc20Interface extends Interface {
|
|
|
39
52
|
BigNumberish
|
|
40
53
|
]): string;
|
|
41
54
|
encodeFunctionData(functionFragment: "getAccountSnapshot", values: [AddressLike]): string;
|
|
55
|
+
encodeFunctionData(functionFragment: "getBorrowSnapshot", values: [AddressLike]): string;
|
|
42
56
|
encodeFunctionData(functionFragment: "getCash", values?: undefined): string;
|
|
43
57
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
44
58
|
AddressLike,
|
|
@@ -118,6 +132,7 @@ export interface SuErc20Interface extends Interface {
|
|
|
118
132
|
decodeFunctionResult(functionFragment: "exchangeRateStored", data: BytesLike): Result;
|
|
119
133
|
decodeFunctionResult(functionFragment: "executeRedemption", data: BytesLike): Result;
|
|
120
134
|
decodeFunctionResult(functionFragment: "getAccountSnapshot", data: BytesLike): Result;
|
|
135
|
+
decodeFunctionResult(functionFragment: "getBorrowSnapshot", data: BytesLike): Result;
|
|
121
136
|
decodeFunctionResult(functionFragment: "getCash", data: BytesLike): Result;
|
|
122
137
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
123
138
|
decodeFunctionResult(functionFragment: "interestRateModel", data: BytesLike): Result;
|
|
@@ -622,6 +637,11 @@ export interface SuErc20 extends BaseContract {
|
|
|
622
637
|
], [
|
|
623
638
|
[bigint, bigint, bigint, bigint]
|
|
624
639
|
], "view">;
|
|
640
|
+
getBorrowSnapshot: TypedContractMethod<[
|
|
641
|
+
borrower: AddressLike
|
|
642
|
+
], [
|
|
643
|
+
CTokenStorage.BorrowSnapshotStructOutput
|
|
644
|
+
], "view">;
|
|
625
645
|
getCash: TypedContractMethod<[], [bigint], "view">;
|
|
626
646
|
initialize: TypedContractMethod<[
|
|
627
647
|
underlying_: AddressLike,
|
|
@@ -807,6 +827,11 @@ export interface SuErc20 extends BaseContract {
|
|
|
807
827
|
], [
|
|
808
828
|
[bigint, bigint, bigint, bigint]
|
|
809
829
|
], "view">;
|
|
830
|
+
getFunction(nameOrSignature: "getBorrowSnapshot"): TypedContractMethod<[
|
|
831
|
+
borrower: AddressLike
|
|
832
|
+
], [
|
|
833
|
+
CTokenStorage.BorrowSnapshotStructOutput
|
|
834
|
+
], "view">;
|
|
810
835
|
getFunction(nameOrSignature: "getCash"): TypedContractMethod<[], [bigint], "view">;
|
|
811
836
|
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
812
837
|
underlying_: AddressLike,
|
|
@@ -65,7 +65,7 @@ export declare namespace ITimelock {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
export interface TimelockInterface extends Interface {
|
|
68
|
-
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ADMIN" | "agreementCount" | "agreements" | "balances" | "claim" | "consumeValue" | "consumeValuePreview" | "createAgreement" | "currentState" | "freeze" | "freezeAgreement" | "frozen" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "isAgreementMature" | "maxDelay" | "minDelay" | "renounceRole" | "rescueERC20" | "revokeRole" | "setLimiter" | "setMaxDelay" | "setMinDelay" | "setRateLimiterConfig" | "setThreshold" | "supportsInterface" | "threshold" | "unfreeze" | "unfreezeAgreement" | "userAgreements"): FunctionFragment;
|
|
68
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ADMIN" | "agreementCount" | "agreements" | "balances" | "claim" | "consumeValue" | "consumeValuePreview" | "createAgreement" | "currentState" | "freeze" | "freezeAgreement" | "frozen" | "getMinWaitInSeconds" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "isAgreementMature" | "maxDelay" | "minDelay" | "renounceRole" | "rescueERC20" | "revokeRole" | "setLimiter" | "setMaxDelay" | "setMinDelay" | "setRateLimiterConfig" | "setThreshold" | "supportsInterface" | "threshold" | "unfreeze" | "unfreezeAgreement" | "userAgreements"): FunctionFragment;
|
|
69
69
|
getEvent(nameOrSignatureOrTopic: "AgreementClaimed" | "AgreementCreated" | "AgreementFrozen" | "NewLimiter" | "NewMaxDelay" | "NewMinDelay" | "NewThreshold" | "RescueERC20" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TimeLockFrozen"): EventFragment;
|
|
70
70
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
71
71
|
encodeFunctionData(functionFragment: "EMERGENCY_ADMIN", values?: undefined): string;
|
|
@@ -80,6 +80,7 @@ export interface TimelockInterface extends Interface {
|
|
|
80
80
|
encodeFunctionData(functionFragment: "freeze", values?: undefined): string;
|
|
81
81
|
encodeFunctionData(functionFragment: "freezeAgreement", values: [BigNumberish]): string;
|
|
82
82
|
encodeFunctionData(functionFragment: "frozen", values?: undefined): string;
|
|
83
|
+
encodeFunctionData(functionFragment: "getMinWaitInSeconds", values: [BigNumberish]): string;
|
|
83
84
|
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
84
85
|
encodeFunctionData(functionFragment: "getRoleMember", values: [BytesLike, BigNumberish]): string;
|
|
85
86
|
encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string;
|
|
@@ -114,6 +115,7 @@ export interface TimelockInterface extends Interface {
|
|
|
114
115
|
decodeFunctionResult(functionFragment: "freeze", data: BytesLike): Result;
|
|
115
116
|
decodeFunctionResult(functionFragment: "freezeAgreement", data: BytesLike): Result;
|
|
116
117
|
decodeFunctionResult(functionFragment: "frozen", data: BytesLike): Result;
|
|
118
|
+
decodeFunctionResult(functionFragment: "getMinWaitInSeconds", data: BytesLike): Result;
|
|
117
119
|
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
118
120
|
decodeFunctionResult(functionFragment: "getRoleMember", data: BytesLike): Result;
|
|
119
121
|
decodeFunctionResult(functionFragment: "getRoleMemberCount", data: BytesLike): Result;
|
|
@@ -420,6 +422,11 @@ export interface Timelock extends BaseContract {
|
|
|
420
422
|
void
|
|
421
423
|
], "nonpayable">;
|
|
422
424
|
frozen: TypedContractMethod<[], [boolean], "view">;
|
|
425
|
+
getMinWaitInSeconds: TypedContractMethod<[
|
|
426
|
+
agreementId: BigNumberish
|
|
427
|
+
], [
|
|
428
|
+
bigint
|
|
429
|
+
], "view">;
|
|
423
430
|
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
424
431
|
getRoleMember: TypedContractMethod<[
|
|
425
432
|
role: BytesLike,
|
|
@@ -554,6 +561,7 @@ export interface Timelock extends BaseContract {
|
|
|
554
561
|
getFunction(nameOrSignature: "freeze"): TypedContractMethod<[], [void], "nonpayable">;
|
|
555
562
|
getFunction(nameOrSignature: "freezeAgreement"): TypedContractMethod<[agreementId: BigNumberish], [void], "nonpayable">;
|
|
556
563
|
getFunction(nameOrSignature: "frozen"): TypedContractMethod<[], [boolean], "view">;
|
|
564
|
+
getFunction(nameOrSignature: "getMinWaitInSeconds"): TypedContractMethod<[agreementId: BigNumberish], [bigint], "view">;
|
|
557
565
|
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
558
566
|
getFunction(nameOrSignature: "getRoleMember"): TypedContractMethod<[
|
|
559
567
|
role: BytesLike,
|