@meterio/sumer-js 0.2.114 → 0.2.115
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 +10 -10
- package/dist/nodejs/abi.d.ts +542 -123
- package/dist/nodejs/abi.js +19858 -9807
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/cToken.js +1 -7
- package/dist/nodejs/cToken.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.d.ts +11 -3
- package/dist/nodejs/constants/arbitrum.js +149 -22
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/b2main.d.ts +8 -3
- package/dist/nodejs/constants/b2main.js +65 -13
- package/dist/nodejs/constants/b2main.js.map +1 -1
- package/dist/nodejs/constants/basemain.d.ts +12 -5
- package/dist/nodejs/constants/basemain.js +127 -19
- package/dist/nodejs/constants/basemain.js.map +1 -1
- package/dist/nodejs/constants/basetest.d.ts +10 -21
- package/dist/nodejs/constants/basetest.js +35 -21
- package/dist/nodejs/constants/basetest.js.map +1 -1
- package/dist/nodejs/constants/berabartio.d.ts +6 -3
- package/dist/nodejs/constants/berabartio.js +139 -5
- package/dist/nodejs/constants/berabartio.js.map +1 -1
- package/dist/nodejs/constants/beramain.d.ts +12 -7
- package/dist/nodejs/constants/beramain.js +93 -48
- package/dist/nodejs/constants/beramain.js.map +1 -1
- package/dist/nodejs/constants/bsc.d.ts +10 -15
- package/dist/nodejs/constants/bsc.js +92 -13
- package/dist/nodejs/constants/bsc.js.map +1 -1
- package/dist/nodejs/constants/core.d.ts +8 -7
- package/dist/nodejs/constants/core.js +105 -28
- package/dist/nodejs/constants/core.js.map +1 -1
- package/dist/nodejs/constants/ethereum.d.ts +11 -4
- package/dist/nodejs/constants/ethereum.js +264 -18
- package/dist/nodejs/constants/ethereum.js.map +1 -1
- package/dist/nodejs/constants/index.js +0 -2
- package/dist/nodejs/constants/index.js.map +1 -1
- package/dist/nodejs/constants/merlin.d.ts +7 -3
- package/dist/nodejs/constants/merlin.js +45 -7
- package/dist/nodejs/constants/merlin.js.map +1 -1
- package/dist/nodejs/constants/metermain.d.ts +8 -3
- package/dist/nodejs/constants/metermain.js +53 -12
- package/dist/nodejs/constants/metermain.js.map +1 -1
- package/dist/nodejs/constants/metertest.d.ts +9 -4
- package/dist/nodejs/constants/metertest.js +113 -13
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/constants/monadtest.d.ts +6 -3
- package/dist/nodejs/constants/monadtest.js +89 -5
- package/dist/nodejs/constants/monadtest.js.map +1 -1
- package/dist/nodejs/constants/sepolia.d.ts +6 -3
- package/dist/nodejs/constants/sepolia.js +53 -5
- package/dist/nodejs/constants/sepolia.js.map +1 -1
- package/dist/nodejs/constants/zklink.d.ts +11 -7
- package/dist/nodejs/constants/zklink.js +82 -11
- package/dist/nodejs/constants/zklink.js.map +1 -1
- package/dist/nodejs/errorABIs.js +2261 -0
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +542 -123
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Bera/CBeraVault.d.ts +36 -40
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +36 -40
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +40 -44
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +1 -9
- package/dist/nodejs/typechain/contracts/Comptroller/MockComptroller.d.ts +1237 -0
- package/dist/nodejs/typechain/contracts/{Oracle/BalancerLPAdapter.sol/IBalancerVault.js → Comptroller/MockComptroller.js} +1 -1
- package/dist/nodejs/typechain/contracts/Comptroller/MockComptroller.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.d.ts +129 -107
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredRewards.d.ts +16 -16
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +1 -9
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +5 -76
- package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +6 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.d.ts +1 -43
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +0 -2
- package/dist/nodejs/typechain/contracts/index.d.ts +4 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js +3 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.d.ts +18 -90
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.js +18 -125
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +18 -90
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +18 -125
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +0 -56
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +0 -70
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +20 -100
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +20 -139
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -67
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -84
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/MockComptroller__factory.d.ts +1880 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/MockComptroller__factory.js +2415 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/MockComptroller__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.d.ts +143 -170
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.js +170 -224
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.d.ts +11 -26
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.js +14 -33
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.d.ts +0 -10
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js +0 -13
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +0 -86
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +0 -109
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +4 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Multicall2__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Multicall2__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +1 -47
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +1 -61
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +1 -2
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/index.js +2 -1
- package/dist/nodejs/typechain/factories/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +324 -54
- package/dist/nodejs/typechain/index.d.ts +34 -8
- package/dist/nodejs/typechain/index.js +35 -11
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/nodejs/constants/hemi.d.ts +0 -69
- package/dist/nodejs/constants/hemi.js +0 -151
- package/dist/nodejs/constants/hemi.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.d.ts +0 -149
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.js +0 -3
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.d.ts +0 -186
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.js +0 -3
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.d.ts +0 -217
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.js +0 -3
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.d.ts +0 -33
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.js +0 -3
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.d.ts +0 -93
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.d.ts +0 -33
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault.d.ts +0 -49
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.d.ts +0 -25
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.d.ts +0 -4
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.d.ts +0 -29
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.d.ts +0 -25
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.d.ts +0 -25
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.d.ts +0 -169
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.js +0 -229
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.d.ts +0 -219
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.js +0 -296
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.d.ts +0 -241
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.js +0 -323
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.d.ts +0 -37
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.js +0 -59
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter__factory.d.ts +0 -158
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter__factory.js +0 -214
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.d.ts +0 -37
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.js +0 -59
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.d.ts +0 -29
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.js +0 -49
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.d.ts +0 -21
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.js +0 -39
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.d.ts +0 -4
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.js +0 -15
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter__factory.d.ts +0 -54
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter__factory.js +0 -82
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.d.ts +0 -21
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.js +0 -39
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.d.ts +0 -17
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.js +0 -33
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +0 -3
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js +0 -13
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js.map +0 -1
|
@@ -0,0 +1,1237 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
|
+
export type GlobalConfigStruct = {
|
|
4
|
+
closeFactorPercent: BigNumberish;
|
|
5
|
+
minCloseValue: BigNumberish;
|
|
6
|
+
minSuBorrowValue: BigNumberish;
|
|
7
|
+
minWaitBeforeLiquidatable: BigNumberish;
|
|
8
|
+
largestGroupId: BigNumberish;
|
|
9
|
+
};
|
|
10
|
+
export type GlobalConfigStructOutput = [
|
|
11
|
+
closeFactorPercent: bigint,
|
|
12
|
+
minCloseValue: bigint,
|
|
13
|
+
minSuBorrowValue: bigint,
|
|
14
|
+
minWaitBeforeLiquidatable: bigint,
|
|
15
|
+
largestGroupId: bigint
|
|
16
|
+
] & {
|
|
17
|
+
closeFactorPercent: bigint;
|
|
18
|
+
minCloseValue: bigint;
|
|
19
|
+
minSuBorrowValue: bigint;
|
|
20
|
+
minWaitBeforeLiquidatable: bigint;
|
|
21
|
+
largestGroupId: bigint;
|
|
22
|
+
};
|
|
23
|
+
export type LiquidationIncentiveStruct = {
|
|
24
|
+
heteroPercent: BigNumberish;
|
|
25
|
+
homoPercent: BigNumberish;
|
|
26
|
+
sutokenPercent: BigNumberish;
|
|
27
|
+
};
|
|
28
|
+
export type LiquidationIncentiveStructOutput = [
|
|
29
|
+
heteroPercent: bigint,
|
|
30
|
+
homoPercent: bigint,
|
|
31
|
+
sutokenPercent: bigint
|
|
32
|
+
] & {
|
|
33
|
+
heteroPercent: bigint;
|
|
34
|
+
homoPercent: bigint;
|
|
35
|
+
sutokenPercent: bigint;
|
|
36
|
+
};
|
|
37
|
+
export type GroupVarStruct = {
|
|
38
|
+
groupId: BigNumberish;
|
|
39
|
+
cDepositVal: BigNumberish;
|
|
40
|
+
cBorrowVal: BigNumberish;
|
|
41
|
+
suDepositVal: BigNumberish;
|
|
42
|
+
suBorrowVal: BigNumberish;
|
|
43
|
+
intraCRate: BigNumberish;
|
|
44
|
+
intraMintRate: BigNumberish;
|
|
45
|
+
intraSuRate: BigNumberish;
|
|
46
|
+
interCRate: BigNumberish;
|
|
47
|
+
interSuRate: BigNumberish;
|
|
48
|
+
};
|
|
49
|
+
export type GroupVarStructOutput = [
|
|
50
|
+
groupId: bigint,
|
|
51
|
+
cDepositVal: bigint,
|
|
52
|
+
cBorrowVal: bigint,
|
|
53
|
+
suDepositVal: bigint,
|
|
54
|
+
suBorrowVal: bigint,
|
|
55
|
+
intraCRate: bigint,
|
|
56
|
+
intraMintRate: bigint,
|
|
57
|
+
intraSuRate: bigint,
|
|
58
|
+
interCRate: bigint,
|
|
59
|
+
interSuRate: bigint
|
|
60
|
+
] & {
|
|
61
|
+
groupId: bigint;
|
|
62
|
+
cDepositVal: bigint;
|
|
63
|
+
cBorrowVal: bigint;
|
|
64
|
+
suDepositVal: bigint;
|
|
65
|
+
suBorrowVal: bigint;
|
|
66
|
+
intraCRate: bigint;
|
|
67
|
+
intraMintRate: bigint;
|
|
68
|
+
intraSuRate: bigint;
|
|
69
|
+
interCRate: bigint;
|
|
70
|
+
interSuRate: bigint;
|
|
71
|
+
};
|
|
72
|
+
export interface MockComptrollerInterface extends Interface {
|
|
73
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_changeGroupIdForAsset" | "_pause" | "_setCaps" | "_setGlobalConfig" | "_setGovTokenAddress" | "_setInterMintAllowed" | "_setLargestGroupId" | "_setLiquidationIncentive" | "_setPauseGuardian" | "_setPriceOracle" | "_setTimelock" | "_supportMarket" | "_unlistMarket" | "accountAssets" | "allMarkets" | "assetGroup" | "borrowAllowed" | "borrowVerify" | "compLogic" | "enterMarketsFor" | "exitMarketFor" | "getAllMarkets" | "getAssetsIn" | "getHypoStep1" | "getHypoStep2" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getUnderlyingPriceNormalized" | "globalConfig" | "governanceToken" | "grantRole" | "hasRole" | "interMintAllowed" | "isComptroller" | "isListed" | "lastBorrowedAt" | "liquidateBorrowAllowed" | "liquidateBorrowVerify" | "liquidationIncentive" | "marketConfig" | "markets" | "mintAllowed" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redeemVerify" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "repayBorrowVerify" | "revokeRole" | "seizeAllowed" | "setAssetGroup" | "supportsInterface" | "timelock" | "transferAllowed" | "version"): FunctionFragment;
|
|
74
|
+
getEvent(nameOrSignatureOrTopic: "MarketEntered" | "MarketExited" | "MarketListed" | "MarketUnlisted" | "NewCap" | "NewDependencies" | "NewGlobalConfig" | "NewLiquidationIncentive" | "NewPause" | "NewPauseGuardian" | "NewPriceOracle" | "NewTimelock" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "UpdateAssetGroup"): EventFragment;
|
|
75
|
+
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
76
|
+
encodeFunctionData(functionFragment: "PAUSER_ROLE", values?: undefined): string;
|
|
77
|
+
encodeFunctionData(functionFragment: "_changeGroupIdForAsset", values: [AddressLike, BigNumberish]): string;
|
|
78
|
+
encodeFunctionData(functionFragment: "_pause", values: [AddressLike, boolean, boolean, boolean, boolean]): string;
|
|
79
|
+
encodeFunctionData(functionFragment: "_setCaps", values: [AddressLike[], BigNumberish[], BigNumberish[]]): string;
|
|
80
|
+
encodeFunctionData(functionFragment: "_setGlobalConfig", values: [GlobalConfigStruct]): string;
|
|
81
|
+
encodeFunctionData(functionFragment: "_setGovTokenAddress", values: [AddressLike]): string;
|
|
82
|
+
encodeFunctionData(functionFragment: "_setInterMintAllowed", values: [boolean]): string;
|
|
83
|
+
encodeFunctionData(functionFragment: "_setLargestGroupId", values: [BigNumberish]): string;
|
|
84
|
+
encodeFunctionData(functionFragment: "_setLiquidationIncentive", values: [LiquidationIncentiveStruct]): string;
|
|
85
|
+
encodeFunctionData(functionFragment: "_setPauseGuardian", values: [AddressLike]): string;
|
|
86
|
+
encodeFunctionData(functionFragment: "_setPriceOracle", values: [AddressLike]): string;
|
|
87
|
+
encodeFunctionData(functionFragment: "_setTimelock", values: [AddressLike]): string;
|
|
88
|
+
encodeFunctionData(functionFragment: "_supportMarket", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
89
|
+
encodeFunctionData(functionFragment: "_unlistMarket", values: [AddressLike]): string;
|
|
90
|
+
encodeFunctionData(functionFragment: "accountAssets", values: [AddressLike, BigNumberish]): string;
|
|
91
|
+
encodeFunctionData(functionFragment: "allMarkets", values: [BigNumberish]): string;
|
|
92
|
+
encodeFunctionData(functionFragment: "assetGroup", values: [BigNumberish]): string;
|
|
93
|
+
encodeFunctionData(functionFragment: "borrowAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
94
|
+
encodeFunctionData(functionFragment: "borrowVerify", values: [AddressLike, BigNumberish]): string;
|
|
95
|
+
encodeFunctionData(functionFragment: "compLogic", values?: undefined): string;
|
|
96
|
+
encodeFunctionData(functionFragment: "enterMarketsFor", values: [AddressLike, AddressLike[]]): string;
|
|
97
|
+
encodeFunctionData(functionFragment: "exitMarketFor", values: [AddressLike, AddressLike]): string;
|
|
98
|
+
encodeFunctionData(functionFragment: "getAllMarkets", values?: undefined): string;
|
|
99
|
+
encodeFunctionData(functionFragment: "getAssetsIn", values: [AddressLike]): string;
|
|
100
|
+
encodeFunctionData(functionFragment: "getHypoStep1", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
101
|
+
encodeFunctionData(functionFragment: "getHypoStep2", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
102
|
+
encodeFunctionData(functionFragment: "getHypotheticalAccountLiquidity", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
103
|
+
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
104
|
+
encodeFunctionData(functionFragment: "getUnderlyingPriceNormalized", values: [AddressLike]): string;
|
|
105
|
+
encodeFunctionData(functionFragment: "globalConfig", values?: undefined): string;
|
|
106
|
+
encodeFunctionData(functionFragment: "governanceToken", values?: undefined): string;
|
|
107
|
+
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
108
|
+
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
109
|
+
encodeFunctionData(functionFragment: "interMintAllowed", values?: undefined): string;
|
|
110
|
+
encodeFunctionData(functionFragment: "isComptroller", values?: undefined): string;
|
|
111
|
+
encodeFunctionData(functionFragment: "isListed", values: [AddressLike]): string;
|
|
112
|
+
encodeFunctionData(functionFragment: "lastBorrowedAt", values: [AddressLike]): string;
|
|
113
|
+
encodeFunctionData(functionFragment: "liquidateBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
114
|
+
encodeFunctionData(functionFragment: "liquidateBorrowVerify", values: [
|
|
115
|
+
AddressLike,
|
|
116
|
+
AddressLike,
|
|
117
|
+
AddressLike,
|
|
118
|
+
AddressLike,
|
|
119
|
+
BigNumberish,
|
|
120
|
+
BigNumberish
|
|
121
|
+
]): string;
|
|
122
|
+
encodeFunctionData(functionFragment: "liquidationIncentive", values?: undefined): string;
|
|
123
|
+
encodeFunctionData(functionFragment: "marketConfig", values: [AddressLike]): string;
|
|
124
|
+
encodeFunctionData(functionFragment: "markets", values: [AddressLike]): string;
|
|
125
|
+
encodeFunctionData(functionFragment: "mintAllowed", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
126
|
+
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
127
|
+
encodeFunctionData(functionFragment: "pauseGuardian", values?: undefined): string;
|
|
128
|
+
encodeFunctionData(functionFragment: "redeemAllowed", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
129
|
+
encodeFunctionData(functionFragment: "redeemVerify", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
130
|
+
encodeFunctionData(functionFragment: "redemptionManager", values?: undefined): string;
|
|
131
|
+
encodeFunctionData(functionFragment: "removeAssetGroup", values: [BigNumberish]): string;
|
|
132
|
+
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
133
|
+
encodeFunctionData(functionFragment: "repayBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
134
|
+
encodeFunctionData(functionFragment: "repayBorrowVerify", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
135
|
+
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
136
|
+
encodeFunctionData(functionFragment: "seizeAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
137
|
+
encodeFunctionData(functionFragment: "setAssetGroup", values: [
|
|
138
|
+
BigNumberish,
|
|
139
|
+
BigNumberish,
|
|
140
|
+
BigNumberish,
|
|
141
|
+
BigNumberish,
|
|
142
|
+
BigNumberish,
|
|
143
|
+
BigNumberish
|
|
144
|
+
]): string;
|
|
145
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
146
|
+
encodeFunctionData(functionFragment: "timelock", values?: undefined): string;
|
|
147
|
+
encodeFunctionData(functionFragment: "transferAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
148
|
+
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
149
|
+
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
150
|
+
decodeFunctionResult(functionFragment: "PAUSER_ROLE", data: BytesLike): Result;
|
|
151
|
+
decodeFunctionResult(functionFragment: "_changeGroupIdForAsset", data: BytesLike): Result;
|
|
152
|
+
decodeFunctionResult(functionFragment: "_pause", data: BytesLike): Result;
|
|
153
|
+
decodeFunctionResult(functionFragment: "_setCaps", data: BytesLike): Result;
|
|
154
|
+
decodeFunctionResult(functionFragment: "_setGlobalConfig", data: BytesLike): Result;
|
|
155
|
+
decodeFunctionResult(functionFragment: "_setGovTokenAddress", data: BytesLike): Result;
|
|
156
|
+
decodeFunctionResult(functionFragment: "_setInterMintAllowed", data: BytesLike): Result;
|
|
157
|
+
decodeFunctionResult(functionFragment: "_setLargestGroupId", data: BytesLike): Result;
|
|
158
|
+
decodeFunctionResult(functionFragment: "_setLiquidationIncentive", data: BytesLike): Result;
|
|
159
|
+
decodeFunctionResult(functionFragment: "_setPauseGuardian", data: BytesLike): Result;
|
|
160
|
+
decodeFunctionResult(functionFragment: "_setPriceOracle", data: BytesLike): Result;
|
|
161
|
+
decodeFunctionResult(functionFragment: "_setTimelock", data: BytesLike): Result;
|
|
162
|
+
decodeFunctionResult(functionFragment: "_supportMarket", data: BytesLike): Result;
|
|
163
|
+
decodeFunctionResult(functionFragment: "_unlistMarket", data: BytesLike): Result;
|
|
164
|
+
decodeFunctionResult(functionFragment: "accountAssets", data: BytesLike): Result;
|
|
165
|
+
decodeFunctionResult(functionFragment: "allMarkets", data: BytesLike): Result;
|
|
166
|
+
decodeFunctionResult(functionFragment: "assetGroup", data: BytesLike): Result;
|
|
167
|
+
decodeFunctionResult(functionFragment: "borrowAllowed", data: BytesLike): Result;
|
|
168
|
+
decodeFunctionResult(functionFragment: "borrowVerify", data: BytesLike): Result;
|
|
169
|
+
decodeFunctionResult(functionFragment: "compLogic", data: BytesLike): Result;
|
|
170
|
+
decodeFunctionResult(functionFragment: "enterMarketsFor", data: BytesLike): Result;
|
|
171
|
+
decodeFunctionResult(functionFragment: "exitMarketFor", data: BytesLike): Result;
|
|
172
|
+
decodeFunctionResult(functionFragment: "getAllMarkets", data: BytesLike): Result;
|
|
173
|
+
decodeFunctionResult(functionFragment: "getAssetsIn", data: BytesLike): Result;
|
|
174
|
+
decodeFunctionResult(functionFragment: "getHypoStep1", data: BytesLike): Result;
|
|
175
|
+
decodeFunctionResult(functionFragment: "getHypoStep2", data: BytesLike): Result;
|
|
176
|
+
decodeFunctionResult(functionFragment: "getHypotheticalAccountLiquidity", data: BytesLike): Result;
|
|
177
|
+
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
178
|
+
decodeFunctionResult(functionFragment: "getUnderlyingPriceNormalized", data: BytesLike): Result;
|
|
179
|
+
decodeFunctionResult(functionFragment: "globalConfig", data: BytesLike): Result;
|
|
180
|
+
decodeFunctionResult(functionFragment: "governanceToken", data: BytesLike): Result;
|
|
181
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
182
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
183
|
+
decodeFunctionResult(functionFragment: "interMintAllowed", data: BytesLike): Result;
|
|
184
|
+
decodeFunctionResult(functionFragment: "isComptroller", data: BytesLike): Result;
|
|
185
|
+
decodeFunctionResult(functionFragment: "isListed", data: BytesLike): Result;
|
|
186
|
+
decodeFunctionResult(functionFragment: "lastBorrowedAt", data: BytesLike): Result;
|
|
187
|
+
decodeFunctionResult(functionFragment: "liquidateBorrowAllowed", data: BytesLike): Result;
|
|
188
|
+
decodeFunctionResult(functionFragment: "liquidateBorrowVerify", data: BytesLike): Result;
|
|
189
|
+
decodeFunctionResult(functionFragment: "liquidationIncentive", data: BytesLike): Result;
|
|
190
|
+
decodeFunctionResult(functionFragment: "marketConfig", data: BytesLike): Result;
|
|
191
|
+
decodeFunctionResult(functionFragment: "markets", data: BytesLike): Result;
|
|
192
|
+
decodeFunctionResult(functionFragment: "mintAllowed", data: BytesLike): Result;
|
|
193
|
+
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
194
|
+
decodeFunctionResult(functionFragment: "pauseGuardian", data: BytesLike): Result;
|
|
195
|
+
decodeFunctionResult(functionFragment: "redeemAllowed", data: BytesLike): Result;
|
|
196
|
+
decodeFunctionResult(functionFragment: "redeemVerify", data: BytesLike): Result;
|
|
197
|
+
decodeFunctionResult(functionFragment: "redemptionManager", data: BytesLike): Result;
|
|
198
|
+
decodeFunctionResult(functionFragment: "removeAssetGroup", data: BytesLike): Result;
|
|
199
|
+
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
200
|
+
decodeFunctionResult(functionFragment: "repayBorrowAllowed", data: BytesLike): Result;
|
|
201
|
+
decodeFunctionResult(functionFragment: "repayBorrowVerify", data: BytesLike): Result;
|
|
202
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
203
|
+
decodeFunctionResult(functionFragment: "seizeAllowed", data: BytesLike): Result;
|
|
204
|
+
decodeFunctionResult(functionFragment: "setAssetGroup", data: BytesLike): Result;
|
|
205
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
206
|
+
decodeFunctionResult(functionFragment: "timelock", data: BytesLike): Result;
|
|
207
|
+
decodeFunctionResult(functionFragment: "transferAllowed", data: BytesLike): Result;
|
|
208
|
+
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
209
|
+
}
|
|
210
|
+
export declare namespace MarketEnteredEvent {
|
|
211
|
+
type InputTuple = [cToken: AddressLike, account: AddressLike];
|
|
212
|
+
type OutputTuple = [cToken: string, account: string];
|
|
213
|
+
interface OutputObject {
|
|
214
|
+
cToken: string;
|
|
215
|
+
account: string;
|
|
216
|
+
}
|
|
217
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
218
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
219
|
+
type Log = TypedEventLog<Event>;
|
|
220
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
221
|
+
}
|
|
222
|
+
export declare namespace MarketExitedEvent {
|
|
223
|
+
type InputTuple = [cToken: AddressLike, account: AddressLike];
|
|
224
|
+
type OutputTuple = [cToken: string, account: string];
|
|
225
|
+
interface OutputObject {
|
|
226
|
+
cToken: string;
|
|
227
|
+
account: string;
|
|
228
|
+
}
|
|
229
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
230
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
231
|
+
type Log = TypedEventLog<Event>;
|
|
232
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
233
|
+
}
|
|
234
|
+
export declare namespace MarketListedEvent {
|
|
235
|
+
type InputTuple = [cToken: AddressLike];
|
|
236
|
+
type OutputTuple = [cToken: string];
|
|
237
|
+
interface OutputObject {
|
|
238
|
+
cToken: string;
|
|
239
|
+
}
|
|
240
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
241
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
242
|
+
type Log = TypedEventLog<Event>;
|
|
243
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
244
|
+
}
|
|
245
|
+
export declare namespace MarketUnlistedEvent {
|
|
246
|
+
type InputTuple = [cToken: AddressLike];
|
|
247
|
+
type OutputTuple = [cToken: string];
|
|
248
|
+
interface OutputObject {
|
|
249
|
+
cToken: string;
|
|
250
|
+
}
|
|
251
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
252
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
253
|
+
type Log = TypedEventLog<Event>;
|
|
254
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
255
|
+
}
|
|
256
|
+
export declare namespace NewCapEvent {
|
|
257
|
+
type InputTuple = [
|
|
258
|
+
cToken: AddressLike,
|
|
259
|
+
borrowCap: BigNumberish,
|
|
260
|
+
supplyCap: BigNumberish
|
|
261
|
+
];
|
|
262
|
+
type OutputTuple = [
|
|
263
|
+
cToken: string,
|
|
264
|
+
borrowCap: bigint,
|
|
265
|
+
supplyCap: bigint
|
|
266
|
+
];
|
|
267
|
+
interface OutputObject {
|
|
268
|
+
cToken: string;
|
|
269
|
+
borrowCap: bigint;
|
|
270
|
+
supplyCap: bigint;
|
|
271
|
+
}
|
|
272
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
273
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
274
|
+
type Log = TypedEventLog<Event>;
|
|
275
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
276
|
+
}
|
|
277
|
+
export declare namespace NewDependenciesEvent {
|
|
278
|
+
type InputTuple = [
|
|
279
|
+
compLogic: AddressLike,
|
|
280
|
+
redemptionManager: AddressLike
|
|
281
|
+
];
|
|
282
|
+
type OutputTuple = [compLogic: string, redemptionManager: string];
|
|
283
|
+
interface OutputObject {
|
|
284
|
+
compLogic: string;
|
|
285
|
+
redemptionManager: string;
|
|
286
|
+
}
|
|
287
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
288
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
289
|
+
type Log = TypedEventLog<Event>;
|
|
290
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
291
|
+
}
|
|
292
|
+
export declare namespace NewGlobalConfigEvent {
|
|
293
|
+
type InputTuple = [
|
|
294
|
+
closeFactorPercent: BigNumberish,
|
|
295
|
+
minCloseValue: BigNumberish,
|
|
296
|
+
minSuBorrowValue: BigNumberish,
|
|
297
|
+
minWaitBeforeLiquidatable: BigNumberish,
|
|
298
|
+
largestGroupId: BigNumberish
|
|
299
|
+
];
|
|
300
|
+
type OutputTuple = [
|
|
301
|
+
closeFactorPercent: bigint,
|
|
302
|
+
minCloseValue: bigint,
|
|
303
|
+
minSuBorrowValue: bigint,
|
|
304
|
+
minWaitBeforeLiquidatable: bigint,
|
|
305
|
+
largestGroupId: bigint
|
|
306
|
+
];
|
|
307
|
+
interface OutputObject {
|
|
308
|
+
closeFactorPercent: bigint;
|
|
309
|
+
minCloseValue: bigint;
|
|
310
|
+
minSuBorrowValue: bigint;
|
|
311
|
+
minWaitBeforeLiquidatable: bigint;
|
|
312
|
+
largestGroupId: bigint;
|
|
313
|
+
}
|
|
314
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
315
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
316
|
+
type Log = TypedEventLog<Event>;
|
|
317
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
318
|
+
}
|
|
319
|
+
export declare namespace NewLiquidationIncentiveEvent {
|
|
320
|
+
type InputTuple = [
|
|
321
|
+
heteroPercent: BigNumberish,
|
|
322
|
+
homoPercent: BigNumberish,
|
|
323
|
+
sutokenPercent: BigNumberish
|
|
324
|
+
];
|
|
325
|
+
type OutputTuple = [
|
|
326
|
+
heteroPercent: bigint,
|
|
327
|
+
homoPercent: bigint,
|
|
328
|
+
sutokenPercent: bigint
|
|
329
|
+
];
|
|
330
|
+
interface OutputObject {
|
|
331
|
+
heteroPercent: bigint;
|
|
332
|
+
homoPercent: bigint;
|
|
333
|
+
sutokenPercent: bigint;
|
|
334
|
+
}
|
|
335
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
336
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
337
|
+
type Log = TypedEventLog<Event>;
|
|
338
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
339
|
+
}
|
|
340
|
+
export declare namespace NewPauseEvent {
|
|
341
|
+
type InputTuple = [
|
|
342
|
+
ctoken: AddressLike,
|
|
343
|
+
mintPaused: boolean,
|
|
344
|
+
borrowPaused: boolean,
|
|
345
|
+
transferPaused: boolean,
|
|
346
|
+
seizePaused: boolean
|
|
347
|
+
];
|
|
348
|
+
type OutputTuple = [
|
|
349
|
+
ctoken: string,
|
|
350
|
+
mintPaused: boolean,
|
|
351
|
+
borrowPaused: boolean,
|
|
352
|
+
transferPaused: boolean,
|
|
353
|
+
seizePaused: boolean
|
|
354
|
+
];
|
|
355
|
+
interface OutputObject {
|
|
356
|
+
ctoken: string;
|
|
357
|
+
mintPaused: boolean;
|
|
358
|
+
borrowPaused: boolean;
|
|
359
|
+
transferPaused: boolean;
|
|
360
|
+
seizePaused: boolean;
|
|
361
|
+
}
|
|
362
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
363
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
364
|
+
type Log = TypedEventLog<Event>;
|
|
365
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
366
|
+
}
|
|
367
|
+
export declare namespace NewPauseGuardianEvent {
|
|
368
|
+
type InputTuple = [
|
|
369
|
+
oldPauseGuardian: AddressLike,
|
|
370
|
+
newPauseGuardian: AddressLike
|
|
371
|
+
];
|
|
372
|
+
type OutputTuple = [
|
|
373
|
+
oldPauseGuardian: string,
|
|
374
|
+
newPauseGuardian: string
|
|
375
|
+
];
|
|
376
|
+
interface OutputObject {
|
|
377
|
+
oldPauseGuardian: string;
|
|
378
|
+
newPauseGuardian: string;
|
|
379
|
+
}
|
|
380
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
381
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
382
|
+
type Log = TypedEventLog<Event>;
|
|
383
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
384
|
+
}
|
|
385
|
+
export declare namespace NewPriceOracleEvent {
|
|
386
|
+
type InputTuple = [priceOracle: AddressLike];
|
|
387
|
+
type OutputTuple = [priceOracle: string];
|
|
388
|
+
interface OutputObject {
|
|
389
|
+
priceOracle: string;
|
|
390
|
+
}
|
|
391
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
392
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
393
|
+
type Log = TypedEventLog<Event>;
|
|
394
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
395
|
+
}
|
|
396
|
+
export declare namespace NewTimelockEvent {
|
|
397
|
+
type InputTuple = [timelock: AddressLike];
|
|
398
|
+
type OutputTuple = [timelock: string];
|
|
399
|
+
interface OutputObject {
|
|
400
|
+
timelock: string;
|
|
401
|
+
}
|
|
402
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
403
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
404
|
+
type Log = TypedEventLog<Event>;
|
|
405
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
406
|
+
}
|
|
407
|
+
export declare namespace RemoveAssetGroupEvent {
|
|
408
|
+
type InputTuple = [groupId: BigNumberish];
|
|
409
|
+
type OutputTuple = [groupId: bigint];
|
|
410
|
+
interface OutputObject {
|
|
411
|
+
groupId: bigint;
|
|
412
|
+
}
|
|
413
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
414
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
415
|
+
type Log = TypedEventLog<Event>;
|
|
416
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
417
|
+
}
|
|
418
|
+
export declare namespace RoleAdminChangedEvent {
|
|
419
|
+
type InputTuple = [
|
|
420
|
+
role: BytesLike,
|
|
421
|
+
previousAdminRole: BytesLike,
|
|
422
|
+
newAdminRole: BytesLike
|
|
423
|
+
];
|
|
424
|
+
type OutputTuple = [
|
|
425
|
+
role: string,
|
|
426
|
+
previousAdminRole: string,
|
|
427
|
+
newAdminRole: string
|
|
428
|
+
];
|
|
429
|
+
interface OutputObject {
|
|
430
|
+
role: string;
|
|
431
|
+
previousAdminRole: string;
|
|
432
|
+
newAdminRole: string;
|
|
433
|
+
}
|
|
434
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
435
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
436
|
+
type Log = TypedEventLog<Event>;
|
|
437
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
438
|
+
}
|
|
439
|
+
export declare namespace RoleGrantedEvent {
|
|
440
|
+
type InputTuple = [
|
|
441
|
+
role: BytesLike,
|
|
442
|
+
account: AddressLike,
|
|
443
|
+
sender: AddressLike
|
|
444
|
+
];
|
|
445
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
446
|
+
interface OutputObject {
|
|
447
|
+
role: string;
|
|
448
|
+
account: string;
|
|
449
|
+
sender: string;
|
|
450
|
+
}
|
|
451
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
452
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
453
|
+
type Log = TypedEventLog<Event>;
|
|
454
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
455
|
+
}
|
|
456
|
+
export declare namespace RoleRevokedEvent {
|
|
457
|
+
type InputTuple = [
|
|
458
|
+
role: BytesLike,
|
|
459
|
+
account: AddressLike,
|
|
460
|
+
sender: AddressLike
|
|
461
|
+
];
|
|
462
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
463
|
+
interface OutputObject {
|
|
464
|
+
role: string;
|
|
465
|
+
account: string;
|
|
466
|
+
sender: string;
|
|
467
|
+
}
|
|
468
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
469
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
470
|
+
type Log = TypedEventLog<Event>;
|
|
471
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
472
|
+
}
|
|
473
|
+
export declare namespace UpdateAssetGroupEvent {
|
|
474
|
+
type InputTuple = [
|
|
475
|
+
groupId: BigNumberish,
|
|
476
|
+
intraCRatePercent: BigNumberish,
|
|
477
|
+
intraMintRatePercent: BigNumberish,
|
|
478
|
+
intraSuRatePercent: BigNumberish,
|
|
479
|
+
interCRatePercent: BigNumberish,
|
|
480
|
+
interSuRatePercent: BigNumberish,
|
|
481
|
+
isNewGroup: boolean
|
|
482
|
+
];
|
|
483
|
+
type OutputTuple = [
|
|
484
|
+
groupId: bigint,
|
|
485
|
+
intraCRatePercent: bigint,
|
|
486
|
+
intraMintRatePercent: bigint,
|
|
487
|
+
intraSuRatePercent: bigint,
|
|
488
|
+
interCRatePercent: bigint,
|
|
489
|
+
interSuRatePercent: bigint,
|
|
490
|
+
isNewGroup: boolean
|
|
491
|
+
];
|
|
492
|
+
interface OutputObject {
|
|
493
|
+
groupId: bigint;
|
|
494
|
+
intraCRatePercent: bigint;
|
|
495
|
+
intraMintRatePercent: bigint;
|
|
496
|
+
intraSuRatePercent: bigint;
|
|
497
|
+
interCRatePercent: bigint;
|
|
498
|
+
interSuRatePercent: bigint;
|
|
499
|
+
isNewGroup: boolean;
|
|
500
|
+
}
|
|
501
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
502
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
503
|
+
type Log = TypedEventLog<Event>;
|
|
504
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
505
|
+
}
|
|
506
|
+
export interface MockComptroller extends BaseContract {
|
|
507
|
+
connect(runner?: ContractRunner | null): MockComptroller;
|
|
508
|
+
waitForDeployment(): Promise<this>;
|
|
509
|
+
interface: MockComptrollerInterface;
|
|
510
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
511
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
512
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
513
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
514
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
515
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
516
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
517
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
518
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
519
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
520
|
+
PAUSER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
521
|
+
_changeGroupIdForAsset: TypedContractMethod<[
|
|
522
|
+
cToken: AddressLike,
|
|
523
|
+
newGroupId: BigNumberish
|
|
524
|
+
], [
|
|
525
|
+
void
|
|
526
|
+
], "nonpayable">;
|
|
527
|
+
_pause: TypedContractMethod<[
|
|
528
|
+
cToken: AddressLike,
|
|
529
|
+
mintPaused: boolean,
|
|
530
|
+
borrowPaused: boolean,
|
|
531
|
+
transferPaused: boolean,
|
|
532
|
+
seizePaused: boolean
|
|
533
|
+
], [
|
|
534
|
+
void
|
|
535
|
+
], "nonpayable">;
|
|
536
|
+
_setCaps: TypedContractMethod<[
|
|
537
|
+
cTokens: AddressLike[],
|
|
538
|
+
borrowCaps: BigNumberish[],
|
|
539
|
+
supplyCaps: BigNumberish[]
|
|
540
|
+
], [
|
|
541
|
+
void
|
|
542
|
+
], "nonpayable">;
|
|
543
|
+
_setGlobalConfig: TypedContractMethod<[
|
|
544
|
+
globalConfig_: GlobalConfigStruct
|
|
545
|
+
], [
|
|
546
|
+
void
|
|
547
|
+
], "nonpayable">;
|
|
548
|
+
_setGovTokenAddress: TypedContractMethod<[
|
|
549
|
+
_governanceToken: AddressLike
|
|
550
|
+
], [
|
|
551
|
+
void
|
|
552
|
+
], "nonpayable">;
|
|
553
|
+
_setInterMintAllowed: TypedContractMethod<[
|
|
554
|
+
allowed: boolean
|
|
555
|
+
], [
|
|
556
|
+
void
|
|
557
|
+
], "nonpayable">;
|
|
558
|
+
_setLargestGroupId: TypedContractMethod<[
|
|
559
|
+
largestGroupId: BigNumberish
|
|
560
|
+
], [
|
|
561
|
+
void
|
|
562
|
+
], "nonpayable">;
|
|
563
|
+
_setLiquidationIncentive: TypedContractMethod<[
|
|
564
|
+
liquidationIncentive_: LiquidationIncentiveStruct
|
|
565
|
+
], [
|
|
566
|
+
void
|
|
567
|
+
], "nonpayable">;
|
|
568
|
+
_setPauseGuardian: TypedContractMethod<[
|
|
569
|
+
newPauseGuardian: AddressLike
|
|
570
|
+
], [
|
|
571
|
+
void
|
|
572
|
+
], "nonpayable">;
|
|
573
|
+
_setPriceOracle: TypedContractMethod<[
|
|
574
|
+
_oracle: AddressLike
|
|
575
|
+
], [
|
|
576
|
+
void
|
|
577
|
+
], "nonpayable">;
|
|
578
|
+
_setTimelock: TypedContractMethod<[
|
|
579
|
+
_timelock: AddressLike
|
|
580
|
+
], [
|
|
581
|
+
void
|
|
582
|
+
], "nonpayable">;
|
|
583
|
+
_supportMarket: TypedContractMethod<[
|
|
584
|
+
cToken: AddressLike,
|
|
585
|
+
groupId: BigNumberish,
|
|
586
|
+
borrowCap: BigNumberish,
|
|
587
|
+
supplyCap: BigNumberish
|
|
588
|
+
], [
|
|
589
|
+
void
|
|
590
|
+
], "nonpayable">;
|
|
591
|
+
_unlistMarket: TypedContractMethod<[
|
|
592
|
+
cToken: AddressLike
|
|
593
|
+
], [
|
|
594
|
+
void
|
|
595
|
+
], "nonpayable">;
|
|
596
|
+
accountAssets: TypedContractMethod<[
|
|
597
|
+
arg0: AddressLike,
|
|
598
|
+
arg1: BigNumberish
|
|
599
|
+
], [
|
|
600
|
+
string
|
|
601
|
+
], "view">;
|
|
602
|
+
allMarkets: TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
603
|
+
assetGroup: TypedContractMethod<[
|
|
604
|
+
arg0: BigNumberish
|
|
605
|
+
], [
|
|
606
|
+
[
|
|
607
|
+
bigint,
|
|
608
|
+
bigint,
|
|
609
|
+
bigint,
|
|
610
|
+
bigint,
|
|
611
|
+
bigint,
|
|
612
|
+
bigint
|
|
613
|
+
] & {
|
|
614
|
+
groupId: bigint;
|
|
615
|
+
intraCRatePercent: bigint;
|
|
616
|
+
intraMintRatePercent: bigint;
|
|
617
|
+
intraSuRatePercent: bigint;
|
|
618
|
+
interCRatePercent: bigint;
|
|
619
|
+
interSuRatePercent: bigint;
|
|
620
|
+
}
|
|
621
|
+
], "view">;
|
|
622
|
+
borrowAllowed: TypedContractMethod<[
|
|
623
|
+
cToken: AddressLike,
|
|
624
|
+
borrower: AddressLike,
|
|
625
|
+
borrowAmount: BigNumberish
|
|
626
|
+
], [
|
|
627
|
+
void
|
|
628
|
+
], "nonpayable">;
|
|
629
|
+
borrowVerify: TypedContractMethod<[
|
|
630
|
+
borrower: AddressLike,
|
|
631
|
+
borrowAmount: BigNumberish
|
|
632
|
+
], [
|
|
633
|
+
void
|
|
634
|
+
], "nonpayable">;
|
|
635
|
+
compLogic: TypedContractMethod<[], [string], "view">;
|
|
636
|
+
enterMarketsFor: TypedContractMethod<[
|
|
637
|
+
owner: AddressLike,
|
|
638
|
+
cTokens: AddressLike[]
|
|
639
|
+
], [
|
|
640
|
+
void
|
|
641
|
+
], "nonpayable">;
|
|
642
|
+
exitMarketFor: TypedContractMethod<[
|
|
643
|
+
owner: AddressLike,
|
|
644
|
+
cTokenAddress: AddressLike
|
|
645
|
+
], [
|
|
646
|
+
void
|
|
647
|
+
], "nonpayable">;
|
|
648
|
+
getAllMarkets: TypedContractMethod<[], [string[]], "view">;
|
|
649
|
+
getAssetsIn: TypedContractMethod<[account: AddressLike], [string[]], "view">;
|
|
650
|
+
getHypoStep1: TypedContractMethod<[
|
|
651
|
+
account: AddressLike,
|
|
652
|
+
cTokenModify: AddressLike,
|
|
653
|
+
redeemTokens: BigNumberish,
|
|
654
|
+
borrowAmount: BigNumberish
|
|
655
|
+
], [
|
|
656
|
+
GroupVarStructOutput[]
|
|
657
|
+
], "view">;
|
|
658
|
+
getHypoStep2: TypedContractMethod<[
|
|
659
|
+
account: AddressLike,
|
|
660
|
+
cTokenModify: AddressLike,
|
|
661
|
+
redeemTokens: BigNumberish,
|
|
662
|
+
borrowAmount: BigNumberish
|
|
663
|
+
], [
|
|
664
|
+
[bigint, bigint, bigint, bigint, GroupVarStructOutput]
|
|
665
|
+
], "view">;
|
|
666
|
+
getHypotheticalAccountLiquidity: TypedContractMethod<[
|
|
667
|
+
account: AddressLike,
|
|
668
|
+
cTokenModify: AddressLike,
|
|
669
|
+
redeemTokens: BigNumberish,
|
|
670
|
+
borrowAmount: BigNumberish
|
|
671
|
+
], [
|
|
672
|
+
[bigint, bigint]
|
|
673
|
+
], "view">;
|
|
674
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
675
|
+
getUnderlyingPriceNormalized: TypedContractMethod<[
|
|
676
|
+
cToken: AddressLike
|
|
677
|
+
], [
|
|
678
|
+
bigint
|
|
679
|
+
], "view">;
|
|
680
|
+
globalConfig: TypedContractMethod<[
|
|
681
|
+
], [
|
|
682
|
+
[
|
|
683
|
+
bigint,
|
|
684
|
+
bigint,
|
|
685
|
+
bigint,
|
|
686
|
+
bigint,
|
|
687
|
+
bigint
|
|
688
|
+
] & {
|
|
689
|
+
closeFactorPercent: bigint;
|
|
690
|
+
minCloseValue: bigint;
|
|
691
|
+
minSuBorrowValue: bigint;
|
|
692
|
+
minWaitBeforeLiquidatable: bigint;
|
|
693
|
+
largestGroupId: bigint;
|
|
694
|
+
}
|
|
695
|
+
], "view">;
|
|
696
|
+
governanceToken: TypedContractMethod<[], [string], "view">;
|
|
697
|
+
grantRole: TypedContractMethod<[
|
|
698
|
+
role: BytesLike,
|
|
699
|
+
account: AddressLike
|
|
700
|
+
], [
|
|
701
|
+
void
|
|
702
|
+
], "nonpayable">;
|
|
703
|
+
hasRole: TypedContractMethod<[
|
|
704
|
+
role: BytesLike,
|
|
705
|
+
account: AddressLike
|
|
706
|
+
], [
|
|
707
|
+
boolean
|
|
708
|
+
], "view">;
|
|
709
|
+
interMintAllowed: TypedContractMethod<[], [boolean], "view">;
|
|
710
|
+
isComptroller: TypedContractMethod<[], [boolean], "view">;
|
|
711
|
+
isListed: TypedContractMethod<[asset: AddressLike], [boolean], "view">;
|
|
712
|
+
lastBorrowedAt: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
713
|
+
liquidateBorrowAllowed: TypedContractMethod<[
|
|
714
|
+
cTokenBorrowed: AddressLike,
|
|
715
|
+
cTokenCollateral: AddressLike,
|
|
716
|
+
liquidator: AddressLike,
|
|
717
|
+
borrower: AddressLike,
|
|
718
|
+
repayAmount: BigNumberish
|
|
719
|
+
], [
|
|
720
|
+
void
|
|
721
|
+
], "view">;
|
|
722
|
+
liquidateBorrowVerify: TypedContractMethod<[
|
|
723
|
+
cTokenBorrowed: AddressLike,
|
|
724
|
+
cTokenCollateral: AddressLike,
|
|
725
|
+
liquidator: AddressLike,
|
|
726
|
+
borrower: AddressLike,
|
|
727
|
+
actualRepayAmount: BigNumberish,
|
|
728
|
+
seizeTokens: BigNumberish
|
|
729
|
+
], [
|
|
730
|
+
void
|
|
731
|
+
], "nonpayable">;
|
|
732
|
+
liquidationIncentive: TypedContractMethod<[
|
|
733
|
+
], [
|
|
734
|
+
[
|
|
735
|
+
bigint,
|
|
736
|
+
bigint,
|
|
737
|
+
bigint
|
|
738
|
+
] & {
|
|
739
|
+
heteroPercent: bigint;
|
|
740
|
+
homoPercent: bigint;
|
|
741
|
+
sutokenPercent: bigint;
|
|
742
|
+
}
|
|
743
|
+
], "view">;
|
|
744
|
+
marketConfig: TypedContractMethod<[
|
|
745
|
+
arg0: AddressLike
|
|
746
|
+
], [
|
|
747
|
+
[
|
|
748
|
+
boolean,
|
|
749
|
+
boolean,
|
|
750
|
+
boolean,
|
|
751
|
+
boolean,
|
|
752
|
+
bigint,
|
|
753
|
+
bigint
|
|
754
|
+
] & {
|
|
755
|
+
mintPaused: boolean;
|
|
756
|
+
borrowPaused: boolean;
|
|
757
|
+
transferPaused: boolean;
|
|
758
|
+
seizePaused: boolean;
|
|
759
|
+
borrowCap: bigint;
|
|
760
|
+
supplyCap: bigint;
|
|
761
|
+
}
|
|
762
|
+
], "view">;
|
|
763
|
+
markets: TypedContractMethod<[
|
|
764
|
+
arg0: AddressLike
|
|
765
|
+
], [
|
|
766
|
+
[
|
|
767
|
+
boolean,
|
|
768
|
+
bigint,
|
|
769
|
+
boolean
|
|
770
|
+
] & {
|
|
771
|
+
isListed: boolean;
|
|
772
|
+
assetGroupId: bigint;
|
|
773
|
+
isComped: boolean;
|
|
774
|
+
}
|
|
775
|
+
], "view">;
|
|
776
|
+
mintAllowed: TypedContractMethod<[
|
|
777
|
+
cToken: AddressLike,
|
|
778
|
+
minter: AddressLike,
|
|
779
|
+
mintAmount: BigNumberish,
|
|
780
|
+
exchangeRate: BigNumberish
|
|
781
|
+
], [
|
|
782
|
+
void
|
|
783
|
+
], "nonpayable">;
|
|
784
|
+
oracle: TypedContractMethod<[], [string], "view">;
|
|
785
|
+
pauseGuardian: TypedContractMethod<[], [string], "view">;
|
|
786
|
+
redeemAllowed: TypedContractMethod<[
|
|
787
|
+
cToken: AddressLike,
|
|
788
|
+
redeemer: AddressLike,
|
|
789
|
+
redeemTokens: BigNumberish,
|
|
790
|
+
exchangeRate: BigNumberish
|
|
791
|
+
], [
|
|
792
|
+
void
|
|
793
|
+
], "nonpayable">;
|
|
794
|
+
redeemVerify: TypedContractMethod<[
|
|
795
|
+
cToken: AddressLike,
|
|
796
|
+
redeemer: AddressLike,
|
|
797
|
+
redeemAmount: BigNumberish,
|
|
798
|
+
redeemTokens: BigNumberish
|
|
799
|
+
], [
|
|
800
|
+
void
|
|
801
|
+
], "nonpayable">;
|
|
802
|
+
redemptionManager: TypedContractMethod<[], [string], "view">;
|
|
803
|
+
removeAssetGroup: TypedContractMethod<[
|
|
804
|
+
groupId: BigNumberish
|
|
805
|
+
], [
|
|
806
|
+
void
|
|
807
|
+
], "nonpayable">;
|
|
808
|
+
renounceRole: TypedContractMethod<[
|
|
809
|
+
role: BytesLike,
|
|
810
|
+
account: AddressLike
|
|
811
|
+
], [
|
|
812
|
+
void
|
|
813
|
+
], "nonpayable">;
|
|
814
|
+
repayBorrowAllowed: TypedContractMethod<[
|
|
815
|
+
cToken: AddressLike,
|
|
816
|
+
payer: AddressLike,
|
|
817
|
+
borrower: AddressLike,
|
|
818
|
+
repayAmount: BigNumberish
|
|
819
|
+
], [
|
|
820
|
+
void
|
|
821
|
+
], "nonpayable">;
|
|
822
|
+
repayBorrowVerify: TypedContractMethod<[
|
|
823
|
+
cToken: AddressLike,
|
|
824
|
+
payer: AddressLike,
|
|
825
|
+
borrower: AddressLike,
|
|
826
|
+
actualRepayAmount: BigNumberish,
|
|
827
|
+
borrowIndex: BigNumberish
|
|
828
|
+
], [
|
|
829
|
+
void
|
|
830
|
+
], "nonpayable">;
|
|
831
|
+
revokeRole: TypedContractMethod<[
|
|
832
|
+
role: BytesLike,
|
|
833
|
+
account: AddressLike
|
|
834
|
+
], [
|
|
835
|
+
void
|
|
836
|
+
], "nonpayable">;
|
|
837
|
+
seizeAllowed: TypedContractMethod<[
|
|
838
|
+
cTokenCollateral: AddressLike,
|
|
839
|
+
cTokenBorrowed: AddressLike,
|
|
840
|
+
liquidator: AddressLike,
|
|
841
|
+
borrower: AddressLike,
|
|
842
|
+
seizeTokens: BigNumberish
|
|
843
|
+
], [
|
|
844
|
+
void
|
|
845
|
+
], "nonpayable">;
|
|
846
|
+
setAssetGroup: TypedContractMethod<[
|
|
847
|
+
groupId: BigNumberish,
|
|
848
|
+
intraCRatePercent: BigNumberish,
|
|
849
|
+
intraMintRatePercent: BigNumberish,
|
|
850
|
+
intraSuRatePercent: BigNumberish,
|
|
851
|
+
interCRatePercent: BigNumberish,
|
|
852
|
+
interSuRatePercent: BigNumberish
|
|
853
|
+
], [
|
|
854
|
+
void
|
|
855
|
+
], "nonpayable">;
|
|
856
|
+
supportsInterface: TypedContractMethod<[
|
|
857
|
+
interfaceId: BytesLike
|
|
858
|
+
], [
|
|
859
|
+
boolean
|
|
860
|
+
], "view">;
|
|
861
|
+
timelock: TypedContractMethod<[], [string], "view">;
|
|
862
|
+
transferAllowed: TypedContractMethod<[
|
|
863
|
+
cToken: AddressLike,
|
|
864
|
+
src: AddressLike,
|
|
865
|
+
dst: AddressLike,
|
|
866
|
+
transferTokens: BigNumberish
|
|
867
|
+
], [
|
|
868
|
+
void
|
|
869
|
+
], "nonpayable">;
|
|
870
|
+
version: TypedContractMethod<[], [bigint], "view">;
|
|
871
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
872
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
873
|
+
getFunction(nameOrSignature: "PAUSER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
874
|
+
getFunction(nameOrSignature: "_changeGroupIdForAsset"): TypedContractMethod<[
|
|
875
|
+
cToken: AddressLike,
|
|
876
|
+
newGroupId: BigNumberish
|
|
877
|
+
], [
|
|
878
|
+
void
|
|
879
|
+
], "nonpayable">;
|
|
880
|
+
getFunction(nameOrSignature: "_pause"): TypedContractMethod<[
|
|
881
|
+
cToken: AddressLike,
|
|
882
|
+
mintPaused: boolean,
|
|
883
|
+
borrowPaused: boolean,
|
|
884
|
+
transferPaused: boolean,
|
|
885
|
+
seizePaused: boolean
|
|
886
|
+
], [
|
|
887
|
+
void
|
|
888
|
+
], "nonpayable">;
|
|
889
|
+
getFunction(nameOrSignature: "_setCaps"): TypedContractMethod<[
|
|
890
|
+
cTokens: AddressLike[],
|
|
891
|
+
borrowCaps: BigNumberish[],
|
|
892
|
+
supplyCaps: BigNumberish[]
|
|
893
|
+
], [
|
|
894
|
+
void
|
|
895
|
+
], "nonpayable">;
|
|
896
|
+
getFunction(nameOrSignature: "_setGlobalConfig"): TypedContractMethod<[
|
|
897
|
+
globalConfig_: GlobalConfigStruct
|
|
898
|
+
], [
|
|
899
|
+
void
|
|
900
|
+
], "nonpayable">;
|
|
901
|
+
getFunction(nameOrSignature: "_setGovTokenAddress"): TypedContractMethod<[_governanceToken: AddressLike], [void], "nonpayable">;
|
|
902
|
+
getFunction(nameOrSignature: "_setInterMintAllowed"): TypedContractMethod<[allowed: boolean], [void], "nonpayable">;
|
|
903
|
+
getFunction(nameOrSignature: "_setLargestGroupId"): TypedContractMethod<[largestGroupId: BigNumberish], [void], "nonpayable">;
|
|
904
|
+
getFunction(nameOrSignature: "_setLiquidationIncentive"): TypedContractMethod<[
|
|
905
|
+
liquidationIncentive_: LiquidationIncentiveStruct
|
|
906
|
+
], [
|
|
907
|
+
void
|
|
908
|
+
], "nonpayable">;
|
|
909
|
+
getFunction(nameOrSignature: "_setPauseGuardian"): TypedContractMethod<[newPauseGuardian: AddressLike], [void], "nonpayable">;
|
|
910
|
+
getFunction(nameOrSignature: "_setPriceOracle"): TypedContractMethod<[_oracle: AddressLike], [void], "nonpayable">;
|
|
911
|
+
getFunction(nameOrSignature: "_setTimelock"): TypedContractMethod<[_timelock: AddressLike], [void], "nonpayable">;
|
|
912
|
+
getFunction(nameOrSignature: "_supportMarket"): TypedContractMethod<[
|
|
913
|
+
cToken: AddressLike,
|
|
914
|
+
groupId: BigNumberish,
|
|
915
|
+
borrowCap: BigNumberish,
|
|
916
|
+
supplyCap: BigNumberish
|
|
917
|
+
], [
|
|
918
|
+
void
|
|
919
|
+
], "nonpayable">;
|
|
920
|
+
getFunction(nameOrSignature: "_unlistMarket"): TypedContractMethod<[cToken: AddressLike], [void], "nonpayable">;
|
|
921
|
+
getFunction(nameOrSignature: "accountAssets"): TypedContractMethod<[
|
|
922
|
+
arg0: AddressLike,
|
|
923
|
+
arg1: BigNumberish
|
|
924
|
+
], [
|
|
925
|
+
string
|
|
926
|
+
], "view">;
|
|
927
|
+
getFunction(nameOrSignature: "allMarkets"): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
928
|
+
getFunction(nameOrSignature: "assetGroup"): TypedContractMethod<[
|
|
929
|
+
arg0: BigNumberish
|
|
930
|
+
], [
|
|
931
|
+
[
|
|
932
|
+
bigint,
|
|
933
|
+
bigint,
|
|
934
|
+
bigint,
|
|
935
|
+
bigint,
|
|
936
|
+
bigint,
|
|
937
|
+
bigint
|
|
938
|
+
] & {
|
|
939
|
+
groupId: bigint;
|
|
940
|
+
intraCRatePercent: bigint;
|
|
941
|
+
intraMintRatePercent: bigint;
|
|
942
|
+
intraSuRatePercent: bigint;
|
|
943
|
+
interCRatePercent: bigint;
|
|
944
|
+
interSuRatePercent: bigint;
|
|
945
|
+
}
|
|
946
|
+
], "view">;
|
|
947
|
+
getFunction(nameOrSignature: "borrowAllowed"): TypedContractMethod<[
|
|
948
|
+
cToken: AddressLike,
|
|
949
|
+
borrower: AddressLike,
|
|
950
|
+
borrowAmount: BigNumberish
|
|
951
|
+
], [
|
|
952
|
+
void
|
|
953
|
+
], "nonpayable">;
|
|
954
|
+
getFunction(nameOrSignature: "borrowVerify"): TypedContractMethod<[
|
|
955
|
+
borrower: AddressLike,
|
|
956
|
+
borrowAmount: BigNumberish
|
|
957
|
+
], [
|
|
958
|
+
void
|
|
959
|
+
], "nonpayable">;
|
|
960
|
+
getFunction(nameOrSignature: "compLogic"): TypedContractMethod<[], [string], "view">;
|
|
961
|
+
getFunction(nameOrSignature: "enterMarketsFor"): TypedContractMethod<[
|
|
962
|
+
owner: AddressLike,
|
|
963
|
+
cTokens: AddressLike[]
|
|
964
|
+
], [
|
|
965
|
+
void
|
|
966
|
+
], "nonpayable">;
|
|
967
|
+
getFunction(nameOrSignature: "exitMarketFor"): TypedContractMethod<[
|
|
968
|
+
owner: AddressLike,
|
|
969
|
+
cTokenAddress: AddressLike
|
|
970
|
+
], [
|
|
971
|
+
void
|
|
972
|
+
], "nonpayable">;
|
|
973
|
+
getFunction(nameOrSignature: "getAllMarkets"): TypedContractMethod<[], [string[]], "view">;
|
|
974
|
+
getFunction(nameOrSignature: "getAssetsIn"): TypedContractMethod<[account: AddressLike], [string[]], "view">;
|
|
975
|
+
getFunction(nameOrSignature: "getHypoStep1"): TypedContractMethod<[
|
|
976
|
+
account: AddressLike,
|
|
977
|
+
cTokenModify: AddressLike,
|
|
978
|
+
redeemTokens: BigNumberish,
|
|
979
|
+
borrowAmount: BigNumberish
|
|
980
|
+
], [
|
|
981
|
+
GroupVarStructOutput[]
|
|
982
|
+
], "view">;
|
|
983
|
+
getFunction(nameOrSignature: "getHypoStep2"): TypedContractMethod<[
|
|
984
|
+
account: AddressLike,
|
|
985
|
+
cTokenModify: AddressLike,
|
|
986
|
+
redeemTokens: BigNumberish,
|
|
987
|
+
borrowAmount: BigNumberish
|
|
988
|
+
], [
|
|
989
|
+
[bigint, bigint, bigint, bigint, GroupVarStructOutput]
|
|
990
|
+
], "view">;
|
|
991
|
+
getFunction(nameOrSignature: "getHypotheticalAccountLiquidity"): TypedContractMethod<[
|
|
992
|
+
account: AddressLike,
|
|
993
|
+
cTokenModify: AddressLike,
|
|
994
|
+
redeemTokens: BigNumberish,
|
|
995
|
+
borrowAmount: BigNumberish
|
|
996
|
+
], [
|
|
997
|
+
[bigint, bigint]
|
|
998
|
+
], "view">;
|
|
999
|
+
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
1000
|
+
getFunction(nameOrSignature: "getUnderlyingPriceNormalized"): TypedContractMethod<[cToken: AddressLike], [bigint], "view">;
|
|
1001
|
+
getFunction(nameOrSignature: "globalConfig"): TypedContractMethod<[
|
|
1002
|
+
], [
|
|
1003
|
+
[
|
|
1004
|
+
bigint,
|
|
1005
|
+
bigint,
|
|
1006
|
+
bigint,
|
|
1007
|
+
bigint,
|
|
1008
|
+
bigint
|
|
1009
|
+
] & {
|
|
1010
|
+
closeFactorPercent: bigint;
|
|
1011
|
+
minCloseValue: bigint;
|
|
1012
|
+
minSuBorrowValue: bigint;
|
|
1013
|
+
minWaitBeforeLiquidatable: bigint;
|
|
1014
|
+
largestGroupId: bigint;
|
|
1015
|
+
}
|
|
1016
|
+
], "view">;
|
|
1017
|
+
getFunction(nameOrSignature: "governanceToken"): TypedContractMethod<[], [string], "view">;
|
|
1018
|
+
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
1019
|
+
role: BytesLike,
|
|
1020
|
+
account: AddressLike
|
|
1021
|
+
], [
|
|
1022
|
+
void
|
|
1023
|
+
], "nonpayable">;
|
|
1024
|
+
getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
|
|
1025
|
+
role: BytesLike,
|
|
1026
|
+
account: AddressLike
|
|
1027
|
+
], [
|
|
1028
|
+
boolean
|
|
1029
|
+
], "view">;
|
|
1030
|
+
getFunction(nameOrSignature: "interMintAllowed"): TypedContractMethod<[], [boolean], "view">;
|
|
1031
|
+
getFunction(nameOrSignature: "isComptroller"): TypedContractMethod<[], [boolean], "view">;
|
|
1032
|
+
getFunction(nameOrSignature: "isListed"): TypedContractMethod<[asset: AddressLike], [boolean], "view">;
|
|
1033
|
+
getFunction(nameOrSignature: "lastBorrowedAt"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
1034
|
+
getFunction(nameOrSignature: "liquidateBorrowAllowed"): TypedContractMethod<[
|
|
1035
|
+
cTokenBorrowed: AddressLike,
|
|
1036
|
+
cTokenCollateral: AddressLike,
|
|
1037
|
+
liquidator: AddressLike,
|
|
1038
|
+
borrower: AddressLike,
|
|
1039
|
+
repayAmount: BigNumberish
|
|
1040
|
+
], [
|
|
1041
|
+
void
|
|
1042
|
+
], "view">;
|
|
1043
|
+
getFunction(nameOrSignature: "liquidateBorrowVerify"): TypedContractMethod<[
|
|
1044
|
+
cTokenBorrowed: AddressLike,
|
|
1045
|
+
cTokenCollateral: AddressLike,
|
|
1046
|
+
liquidator: AddressLike,
|
|
1047
|
+
borrower: AddressLike,
|
|
1048
|
+
actualRepayAmount: BigNumberish,
|
|
1049
|
+
seizeTokens: BigNumberish
|
|
1050
|
+
], [
|
|
1051
|
+
void
|
|
1052
|
+
], "nonpayable">;
|
|
1053
|
+
getFunction(nameOrSignature: "liquidationIncentive"): TypedContractMethod<[
|
|
1054
|
+
], [
|
|
1055
|
+
[
|
|
1056
|
+
bigint,
|
|
1057
|
+
bigint,
|
|
1058
|
+
bigint
|
|
1059
|
+
] & {
|
|
1060
|
+
heteroPercent: bigint;
|
|
1061
|
+
homoPercent: bigint;
|
|
1062
|
+
sutokenPercent: bigint;
|
|
1063
|
+
}
|
|
1064
|
+
], "view">;
|
|
1065
|
+
getFunction(nameOrSignature: "marketConfig"): TypedContractMethod<[
|
|
1066
|
+
arg0: AddressLike
|
|
1067
|
+
], [
|
|
1068
|
+
[
|
|
1069
|
+
boolean,
|
|
1070
|
+
boolean,
|
|
1071
|
+
boolean,
|
|
1072
|
+
boolean,
|
|
1073
|
+
bigint,
|
|
1074
|
+
bigint
|
|
1075
|
+
] & {
|
|
1076
|
+
mintPaused: boolean;
|
|
1077
|
+
borrowPaused: boolean;
|
|
1078
|
+
transferPaused: boolean;
|
|
1079
|
+
seizePaused: boolean;
|
|
1080
|
+
borrowCap: bigint;
|
|
1081
|
+
supplyCap: bigint;
|
|
1082
|
+
}
|
|
1083
|
+
], "view">;
|
|
1084
|
+
getFunction(nameOrSignature: "markets"): TypedContractMethod<[
|
|
1085
|
+
arg0: AddressLike
|
|
1086
|
+
], [
|
|
1087
|
+
[
|
|
1088
|
+
boolean,
|
|
1089
|
+
bigint,
|
|
1090
|
+
boolean
|
|
1091
|
+
] & {
|
|
1092
|
+
isListed: boolean;
|
|
1093
|
+
assetGroupId: bigint;
|
|
1094
|
+
isComped: boolean;
|
|
1095
|
+
}
|
|
1096
|
+
], "view">;
|
|
1097
|
+
getFunction(nameOrSignature: "mintAllowed"): TypedContractMethod<[
|
|
1098
|
+
cToken: AddressLike,
|
|
1099
|
+
minter: AddressLike,
|
|
1100
|
+
mintAmount: BigNumberish,
|
|
1101
|
+
exchangeRate: BigNumberish
|
|
1102
|
+
], [
|
|
1103
|
+
void
|
|
1104
|
+
], "nonpayable">;
|
|
1105
|
+
getFunction(nameOrSignature: "oracle"): TypedContractMethod<[], [string], "view">;
|
|
1106
|
+
getFunction(nameOrSignature: "pauseGuardian"): TypedContractMethod<[], [string], "view">;
|
|
1107
|
+
getFunction(nameOrSignature: "redeemAllowed"): TypedContractMethod<[
|
|
1108
|
+
cToken: AddressLike,
|
|
1109
|
+
redeemer: AddressLike,
|
|
1110
|
+
redeemTokens: BigNumberish,
|
|
1111
|
+
exchangeRate: BigNumberish
|
|
1112
|
+
], [
|
|
1113
|
+
void
|
|
1114
|
+
], "nonpayable">;
|
|
1115
|
+
getFunction(nameOrSignature: "redeemVerify"): TypedContractMethod<[
|
|
1116
|
+
cToken: AddressLike,
|
|
1117
|
+
redeemer: AddressLike,
|
|
1118
|
+
redeemAmount: BigNumberish,
|
|
1119
|
+
redeemTokens: BigNumberish
|
|
1120
|
+
], [
|
|
1121
|
+
void
|
|
1122
|
+
], "nonpayable">;
|
|
1123
|
+
getFunction(nameOrSignature: "redemptionManager"): TypedContractMethod<[], [string], "view">;
|
|
1124
|
+
getFunction(nameOrSignature: "removeAssetGroup"): TypedContractMethod<[groupId: BigNumberish], [void], "nonpayable">;
|
|
1125
|
+
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
1126
|
+
role: BytesLike,
|
|
1127
|
+
account: AddressLike
|
|
1128
|
+
], [
|
|
1129
|
+
void
|
|
1130
|
+
], "nonpayable">;
|
|
1131
|
+
getFunction(nameOrSignature: "repayBorrowAllowed"): TypedContractMethod<[
|
|
1132
|
+
cToken: AddressLike,
|
|
1133
|
+
payer: AddressLike,
|
|
1134
|
+
borrower: AddressLike,
|
|
1135
|
+
repayAmount: BigNumberish
|
|
1136
|
+
], [
|
|
1137
|
+
void
|
|
1138
|
+
], "nonpayable">;
|
|
1139
|
+
getFunction(nameOrSignature: "repayBorrowVerify"): TypedContractMethod<[
|
|
1140
|
+
cToken: AddressLike,
|
|
1141
|
+
payer: AddressLike,
|
|
1142
|
+
borrower: AddressLike,
|
|
1143
|
+
actualRepayAmount: BigNumberish,
|
|
1144
|
+
borrowIndex: BigNumberish
|
|
1145
|
+
], [
|
|
1146
|
+
void
|
|
1147
|
+
], "nonpayable">;
|
|
1148
|
+
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
1149
|
+
role: BytesLike,
|
|
1150
|
+
account: AddressLike
|
|
1151
|
+
], [
|
|
1152
|
+
void
|
|
1153
|
+
], "nonpayable">;
|
|
1154
|
+
getFunction(nameOrSignature: "seizeAllowed"): TypedContractMethod<[
|
|
1155
|
+
cTokenCollateral: AddressLike,
|
|
1156
|
+
cTokenBorrowed: AddressLike,
|
|
1157
|
+
liquidator: AddressLike,
|
|
1158
|
+
borrower: AddressLike,
|
|
1159
|
+
seizeTokens: BigNumberish
|
|
1160
|
+
], [
|
|
1161
|
+
void
|
|
1162
|
+
], "nonpayable">;
|
|
1163
|
+
getFunction(nameOrSignature: "setAssetGroup"): TypedContractMethod<[
|
|
1164
|
+
groupId: BigNumberish,
|
|
1165
|
+
intraCRatePercent: BigNumberish,
|
|
1166
|
+
intraMintRatePercent: BigNumberish,
|
|
1167
|
+
intraSuRatePercent: BigNumberish,
|
|
1168
|
+
interCRatePercent: BigNumberish,
|
|
1169
|
+
interSuRatePercent: BigNumberish
|
|
1170
|
+
], [
|
|
1171
|
+
void
|
|
1172
|
+
], "nonpayable">;
|
|
1173
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
1174
|
+
getFunction(nameOrSignature: "timelock"): TypedContractMethod<[], [string], "view">;
|
|
1175
|
+
getFunction(nameOrSignature: "transferAllowed"): TypedContractMethod<[
|
|
1176
|
+
cToken: AddressLike,
|
|
1177
|
+
src: AddressLike,
|
|
1178
|
+
dst: AddressLike,
|
|
1179
|
+
transferTokens: BigNumberish
|
|
1180
|
+
], [
|
|
1181
|
+
void
|
|
1182
|
+
], "nonpayable">;
|
|
1183
|
+
getFunction(nameOrSignature: "version"): TypedContractMethod<[], [bigint], "view">;
|
|
1184
|
+
getEvent(key: "MarketEntered"): TypedContractEvent<MarketEnteredEvent.InputTuple, MarketEnteredEvent.OutputTuple, MarketEnteredEvent.OutputObject>;
|
|
1185
|
+
getEvent(key: "MarketExited"): TypedContractEvent<MarketExitedEvent.InputTuple, MarketExitedEvent.OutputTuple, MarketExitedEvent.OutputObject>;
|
|
1186
|
+
getEvent(key: "MarketListed"): TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1187
|
+
getEvent(key: "MarketUnlisted"): TypedContractEvent<MarketUnlistedEvent.InputTuple, MarketUnlistedEvent.OutputTuple, MarketUnlistedEvent.OutputObject>;
|
|
1188
|
+
getEvent(key: "NewCap"): TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1189
|
+
getEvent(key: "NewDependencies"): TypedContractEvent<NewDependenciesEvent.InputTuple, NewDependenciesEvent.OutputTuple, NewDependenciesEvent.OutputObject>;
|
|
1190
|
+
getEvent(key: "NewGlobalConfig"): TypedContractEvent<NewGlobalConfigEvent.InputTuple, NewGlobalConfigEvent.OutputTuple, NewGlobalConfigEvent.OutputObject>;
|
|
1191
|
+
getEvent(key: "NewLiquidationIncentive"): TypedContractEvent<NewLiquidationIncentiveEvent.InputTuple, NewLiquidationIncentiveEvent.OutputTuple, NewLiquidationIncentiveEvent.OutputObject>;
|
|
1192
|
+
getEvent(key: "NewPause"): TypedContractEvent<NewPauseEvent.InputTuple, NewPauseEvent.OutputTuple, NewPauseEvent.OutputObject>;
|
|
1193
|
+
getEvent(key: "NewPauseGuardian"): TypedContractEvent<NewPauseGuardianEvent.InputTuple, NewPauseGuardianEvent.OutputTuple, NewPauseGuardianEvent.OutputObject>;
|
|
1194
|
+
getEvent(key: "NewPriceOracle"): TypedContractEvent<NewPriceOracleEvent.InputTuple, NewPriceOracleEvent.OutputTuple, NewPriceOracleEvent.OutputObject>;
|
|
1195
|
+
getEvent(key: "NewTimelock"): TypedContractEvent<NewTimelockEvent.InputTuple, NewTimelockEvent.OutputTuple, NewTimelockEvent.OutputObject>;
|
|
1196
|
+
getEvent(key: "RemoveAssetGroup"): TypedContractEvent<RemoveAssetGroupEvent.InputTuple, RemoveAssetGroupEvent.OutputTuple, RemoveAssetGroupEvent.OutputObject>;
|
|
1197
|
+
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
1198
|
+
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
1199
|
+
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
1200
|
+
getEvent(key: "UpdateAssetGroup"): TypedContractEvent<UpdateAssetGroupEvent.InputTuple, UpdateAssetGroupEvent.OutputTuple, UpdateAssetGroupEvent.OutputObject>;
|
|
1201
|
+
filters: {
|
|
1202
|
+
"MarketEntered(address,address)": TypedContractEvent<MarketEnteredEvent.InputTuple, MarketEnteredEvent.OutputTuple, MarketEnteredEvent.OutputObject>;
|
|
1203
|
+
MarketEntered: TypedContractEvent<MarketEnteredEvent.InputTuple, MarketEnteredEvent.OutputTuple, MarketEnteredEvent.OutputObject>;
|
|
1204
|
+
"MarketExited(address,address)": TypedContractEvent<MarketExitedEvent.InputTuple, MarketExitedEvent.OutputTuple, MarketExitedEvent.OutputObject>;
|
|
1205
|
+
MarketExited: TypedContractEvent<MarketExitedEvent.InputTuple, MarketExitedEvent.OutputTuple, MarketExitedEvent.OutputObject>;
|
|
1206
|
+
"MarketListed(address)": TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1207
|
+
MarketListed: TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1208
|
+
"MarketUnlisted(address)": TypedContractEvent<MarketUnlistedEvent.InputTuple, MarketUnlistedEvent.OutputTuple, MarketUnlistedEvent.OutputObject>;
|
|
1209
|
+
MarketUnlisted: TypedContractEvent<MarketUnlistedEvent.InputTuple, MarketUnlistedEvent.OutputTuple, MarketUnlistedEvent.OutputObject>;
|
|
1210
|
+
"NewCap(address,uint120,uint120)": TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1211
|
+
NewCap: TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1212
|
+
"NewDependencies(address,address)": TypedContractEvent<NewDependenciesEvent.InputTuple, NewDependenciesEvent.OutputTuple, NewDependenciesEvent.OutputObject>;
|
|
1213
|
+
NewDependencies: TypedContractEvent<NewDependenciesEvent.InputTuple, NewDependenciesEvent.OutputTuple, NewDependenciesEvent.OutputObject>;
|
|
1214
|
+
"NewGlobalConfig(uint16,uint32,uint32,uint32,uint8)": TypedContractEvent<NewGlobalConfigEvent.InputTuple, NewGlobalConfigEvent.OutputTuple, NewGlobalConfigEvent.OutputObject>;
|
|
1215
|
+
NewGlobalConfig: TypedContractEvent<NewGlobalConfigEvent.InputTuple, NewGlobalConfigEvent.OutputTuple, NewGlobalConfigEvent.OutputObject>;
|
|
1216
|
+
"NewLiquidationIncentive(uint16,uint64,uint64)": TypedContractEvent<NewLiquidationIncentiveEvent.InputTuple, NewLiquidationIncentiveEvent.OutputTuple, NewLiquidationIncentiveEvent.OutputObject>;
|
|
1217
|
+
NewLiquidationIncentive: TypedContractEvent<NewLiquidationIncentiveEvent.InputTuple, NewLiquidationIncentiveEvent.OutputTuple, NewLiquidationIncentiveEvent.OutputObject>;
|
|
1218
|
+
"NewPause(address,bool,bool,bool,bool)": TypedContractEvent<NewPauseEvent.InputTuple, NewPauseEvent.OutputTuple, NewPauseEvent.OutputObject>;
|
|
1219
|
+
NewPause: TypedContractEvent<NewPauseEvent.InputTuple, NewPauseEvent.OutputTuple, NewPauseEvent.OutputObject>;
|
|
1220
|
+
"NewPauseGuardian(address,address)": TypedContractEvent<NewPauseGuardianEvent.InputTuple, NewPauseGuardianEvent.OutputTuple, NewPauseGuardianEvent.OutputObject>;
|
|
1221
|
+
NewPauseGuardian: TypedContractEvent<NewPauseGuardianEvent.InputTuple, NewPauseGuardianEvent.OutputTuple, NewPauseGuardianEvent.OutputObject>;
|
|
1222
|
+
"NewPriceOracle(address)": TypedContractEvent<NewPriceOracleEvent.InputTuple, NewPriceOracleEvent.OutputTuple, NewPriceOracleEvent.OutputObject>;
|
|
1223
|
+
NewPriceOracle: TypedContractEvent<NewPriceOracleEvent.InputTuple, NewPriceOracleEvent.OutputTuple, NewPriceOracleEvent.OutputObject>;
|
|
1224
|
+
"NewTimelock(address)": TypedContractEvent<NewTimelockEvent.InputTuple, NewTimelockEvent.OutputTuple, NewTimelockEvent.OutputObject>;
|
|
1225
|
+
NewTimelock: TypedContractEvent<NewTimelockEvent.InputTuple, NewTimelockEvent.OutputTuple, NewTimelockEvent.OutputObject>;
|
|
1226
|
+
"RemoveAssetGroup(uint8)": TypedContractEvent<RemoveAssetGroupEvent.InputTuple, RemoveAssetGroupEvent.OutputTuple, RemoveAssetGroupEvent.OutputObject>;
|
|
1227
|
+
RemoveAssetGroup: TypedContractEvent<RemoveAssetGroupEvent.InputTuple, RemoveAssetGroupEvent.OutputTuple, RemoveAssetGroupEvent.OutputObject>;
|
|
1228
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
1229
|
+
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
1230
|
+
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
1231
|
+
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
1232
|
+
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
1233
|
+
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
1234
|
+
"UpdateAssetGroup(uint8,uint16,uint16,uint16,uint16,uint16,bool)": TypedContractEvent<UpdateAssetGroupEvent.InputTuple, UpdateAssetGroupEvent.OutputTuple, UpdateAssetGroupEvent.OutputObject>;
|
|
1235
|
+
UpdateAssetGroup: TypedContractEvent<UpdateAssetGroupEvent.InputTuple, UpdateAssetGroupEvent.OutputTuple, UpdateAssetGroupEvent.OutputObject>;
|
|
1236
|
+
};
|
|
1237
|
+
}
|