@meterio/sumer-js 0.2.69 → 0.2.70
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 +8 -8
- package/dist/nodejs/abi.d.ts +64 -0
- package/dist/nodejs/abi.js +889 -48
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.d.ts +4 -0
- package/dist/nodejs/constants/arbitrum.js +29 -1
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/ethereum.js +11 -0
- package/dist/nodejs/constants/ethereum.js.map +1 -1
- package/dist/nodejs/errorABIs.js +460 -0
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +64 -0
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +9 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +90 -31
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +9 -1
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +68 -1
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/API3Adapter.d.ts +89 -0
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/API3Adapter.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/API3Adapter.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/IAPI3Proxy.d.ts +41 -0
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/IAPI3Proxy.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/IAPI3Proxy.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/API3Adapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +37 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +46 -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 +37 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +46 -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 +36 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +45 -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 +37 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +47 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +59 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +37 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +46 -1
- 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 +134 -30
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +168 -35
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +37 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +46 -1
- 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/Interfaces/ICompLogic__factory.d.ts +10 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js +13 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +78 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +99 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.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/API3Adapter.sol/API3Adapter__factory.d.ts +134 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/API3Adapter__factory.js +183 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/API3Adapter__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/IAPI3Proxy__factory.d.ts +31 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/IAPI3Proxy__factory.js +51 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/IAPI3Proxy__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +2 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +37 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +37 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +36 -0
- package/dist/nodejs/typechain/index.d.ts +4 -0
- package/dist/nodejs/typechain/index.js +6 -2
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -35,8 +35,8 @@ export type LiquidationIncentiveStructOutput = [
|
|
|
35
35
|
sutokenPercent: bigint;
|
|
36
36
|
};
|
|
37
37
|
export interface ComptrollerInterface extends Interface {
|
|
38
|
-
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_changeGroupIdForAsset" | "_pause" | "_setCaps" | "_setGlobalConfig" | "_setGovTokenAddress" | "_setInterMintAllowed" | "_setLargestGroupId" | "_setLiquidationIncentive" | "_setPauseGuardian" | "_setPriceOracle" | "_setTimelock" | "_supportMarket" | "accountAssets" | "allMarkets" | "assetGroup" | "borrowAllowed" | "borrowVerify" | "compLogic" | "enterMarkets" | "exitMarket" | "getAllMarkets" | "getAssetsIn" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getUnderlyingPriceNormalized" | "globalConfig" | "governanceToken" | "grantRole" | "hasRole" | "initialize" | "interMintAllowed" | "isComptroller" | "isListed" | "lastBorrowedAt" | "liquidateBorrowAllowed" | "liquidationIncentive" | "marketConfig" | "markets" | "mintAllowed" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "revokeRole" | "seizeAllowed" | "setAssetGroup" | "supportsInterface" | "timelock" | "transferAllowed" | "version"): FunctionFragment;
|
|
39
|
-
getEvent(nameOrSignatureOrTopic: "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "
|
|
38
|
+
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" | "enterMarkets" | "exitMarket" | "getAllMarkets" | "getAssetsIn" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getUnderlyingPriceNormalized" | "globalConfig" | "governanceToken" | "grantRole" | "hasRole" | "initialize" | "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;
|
|
39
|
+
getEvent(nameOrSignatureOrTopic: "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "MarketUnlisted" | "NewCap" | "NewDependencies" | "NewGlobalConfig" | "NewLiquidationIncentive" | "NewPause" | "NewPauseGuardian" | "NewPriceOracle" | "NewTimelock" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "UpdateAssetGroup"): EventFragment;
|
|
40
40
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
41
41
|
encodeFunctionData(functionFragment: "PAUSER_ROLE", values?: undefined): string;
|
|
42
42
|
encodeFunctionData(functionFragment: "_changeGroupIdForAsset", values: [AddressLike, BigNumberish]): string;
|
|
@@ -51,6 +51,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
51
51
|
encodeFunctionData(functionFragment: "_setPriceOracle", values: [AddressLike]): string;
|
|
52
52
|
encodeFunctionData(functionFragment: "_setTimelock", values: [AddressLike]): string;
|
|
53
53
|
encodeFunctionData(functionFragment: "_supportMarket", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "_unlistMarket", values: [AddressLike]): string;
|
|
54
55
|
encodeFunctionData(functionFragment: "accountAssets", values: [AddressLike, BigNumberish]): string;
|
|
55
56
|
encodeFunctionData(functionFragment: "allMarkets", values: [BigNumberish]): string;
|
|
56
57
|
encodeFunctionData(functionFragment: "assetGroup", values: [BigNumberish]): string;
|
|
@@ -81,6 +82,14 @@ export interface ComptrollerInterface extends Interface {
|
|
|
81
82
|
encodeFunctionData(functionFragment: "isListed", values: [AddressLike]): string;
|
|
82
83
|
encodeFunctionData(functionFragment: "lastBorrowedAt", values: [AddressLike]): string;
|
|
83
84
|
encodeFunctionData(functionFragment: "liquidateBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
85
|
+
encodeFunctionData(functionFragment: "liquidateBorrowVerify", values: [
|
|
86
|
+
AddressLike,
|
|
87
|
+
AddressLike,
|
|
88
|
+
AddressLike,
|
|
89
|
+
AddressLike,
|
|
90
|
+
BigNumberish,
|
|
91
|
+
BigNumberish
|
|
92
|
+
]): string;
|
|
84
93
|
encodeFunctionData(functionFragment: "liquidationIncentive", values?: undefined): string;
|
|
85
94
|
encodeFunctionData(functionFragment: "marketConfig", values: [AddressLike]): string;
|
|
86
95
|
encodeFunctionData(functionFragment: "markets", values: [AddressLike]): string;
|
|
@@ -88,10 +97,12 @@ export interface ComptrollerInterface extends Interface {
|
|
|
88
97
|
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
89
98
|
encodeFunctionData(functionFragment: "pauseGuardian", values?: undefined): string;
|
|
90
99
|
encodeFunctionData(functionFragment: "redeemAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
100
|
+
encodeFunctionData(functionFragment: "redeemVerify", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
91
101
|
encodeFunctionData(functionFragment: "redemptionManager", values?: undefined): string;
|
|
92
102
|
encodeFunctionData(functionFragment: "removeAssetGroup", values: [BigNumberish]): string;
|
|
93
103
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
94
104
|
encodeFunctionData(functionFragment: "repayBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
105
|
+
encodeFunctionData(functionFragment: "repayBorrowVerify", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
95
106
|
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
96
107
|
encodeFunctionData(functionFragment: "seizeAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
97
108
|
encodeFunctionData(functionFragment: "setAssetGroup", values: [
|
|
@@ -120,6 +131,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
120
131
|
decodeFunctionResult(functionFragment: "_setPriceOracle", data: BytesLike): Result;
|
|
121
132
|
decodeFunctionResult(functionFragment: "_setTimelock", data: BytesLike): Result;
|
|
122
133
|
decodeFunctionResult(functionFragment: "_supportMarket", data: BytesLike): Result;
|
|
134
|
+
decodeFunctionResult(functionFragment: "_unlistMarket", data: BytesLike): Result;
|
|
123
135
|
decodeFunctionResult(functionFragment: "accountAssets", data: BytesLike): Result;
|
|
124
136
|
decodeFunctionResult(functionFragment: "allMarkets", data: BytesLike): Result;
|
|
125
137
|
decodeFunctionResult(functionFragment: "assetGroup", data: BytesLike): Result;
|
|
@@ -143,6 +155,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
143
155
|
decodeFunctionResult(functionFragment: "isListed", data: BytesLike): Result;
|
|
144
156
|
decodeFunctionResult(functionFragment: "lastBorrowedAt", data: BytesLike): Result;
|
|
145
157
|
decodeFunctionResult(functionFragment: "liquidateBorrowAllowed", data: BytesLike): Result;
|
|
158
|
+
decodeFunctionResult(functionFragment: "liquidateBorrowVerify", data: BytesLike): Result;
|
|
146
159
|
decodeFunctionResult(functionFragment: "liquidationIncentive", data: BytesLike): Result;
|
|
147
160
|
decodeFunctionResult(functionFragment: "marketConfig", data: BytesLike): Result;
|
|
148
161
|
decodeFunctionResult(functionFragment: "markets", data: BytesLike): Result;
|
|
@@ -150,10 +163,12 @@ export interface ComptrollerInterface extends Interface {
|
|
|
150
163
|
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
151
164
|
decodeFunctionResult(functionFragment: "pauseGuardian", data: BytesLike): Result;
|
|
152
165
|
decodeFunctionResult(functionFragment: "redeemAllowed", data: BytesLike): Result;
|
|
166
|
+
decodeFunctionResult(functionFragment: "redeemVerify", data: BytesLike): Result;
|
|
153
167
|
decodeFunctionResult(functionFragment: "redemptionManager", data: BytesLike): Result;
|
|
154
168
|
decodeFunctionResult(functionFragment: "removeAssetGroup", data: BytesLike): Result;
|
|
155
169
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
156
170
|
decodeFunctionResult(functionFragment: "repayBorrowAllowed", data: BytesLike): Result;
|
|
171
|
+
decodeFunctionResult(functionFragment: "repayBorrowVerify", data: BytesLike): Result;
|
|
157
172
|
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
158
173
|
decodeFunctionResult(functionFragment: "seizeAllowed", data: BytesLike): Result;
|
|
159
174
|
decodeFunctionResult(functionFragment: "setAssetGroup", data: BytesLike): Result;
|
|
@@ -208,30 +223,11 @@ export declare namespace MarketListedEvent {
|
|
|
208
223
|
type Log = TypedEventLog<Event>;
|
|
209
224
|
type LogDescription = TypedLogDescription<Event>;
|
|
210
225
|
}
|
|
211
|
-
export declare namespace
|
|
212
|
-
type InputTuple = [
|
|
213
|
-
|
|
214
|
-
intraCRatePercent: BigNumberish,
|
|
215
|
-
intraMintRatePercent: BigNumberish,
|
|
216
|
-
intraSuRatePercent: BigNumberish,
|
|
217
|
-
interCRatePercent: BigNumberish,
|
|
218
|
-
interSuRatePercent: BigNumberish
|
|
219
|
-
];
|
|
220
|
-
type OutputTuple = [
|
|
221
|
-
groupId: bigint,
|
|
222
|
-
intraCRatePercent: bigint,
|
|
223
|
-
intraMintRatePercent: bigint,
|
|
224
|
-
intraSuRatePercent: bigint,
|
|
225
|
-
interCRatePercent: bigint,
|
|
226
|
-
interSuRatePercent: bigint
|
|
227
|
-
];
|
|
226
|
+
export declare namespace MarketUnlistedEvent {
|
|
227
|
+
type InputTuple = [cToken: AddressLike];
|
|
228
|
+
type OutputTuple = [cToken: string];
|
|
228
229
|
interface OutputObject {
|
|
229
|
-
|
|
230
|
-
intraCRatePercent: bigint;
|
|
231
|
-
intraMintRatePercent: bigint;
|
|
232
|
-
intraSuRatePercent: bigint;
|
|
233
|
-
interCRatePercent: bigint;
|
|
234
|
-
interSuRatePercent: bigint;
|
|
230
|
+
cToken: string;
|
|
235
231
|
}
|
|
236
232
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
237
233
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -462,7 +458,8 @@ export declare namespace UpdateAssetGroupEvent {
|
|
|
462
458
|
intraMintRatePercent: BigNumberish,
|
|
463
459
|
intraSuRatePercent: BigNumberish,
|
|
464
460
|
interCRatePercent: BigNumberish,
|
|
465
|
-
interSuRatePercent: BigNumberish
|
|
461
|
+
interSuRatePercent: BigNumberish,
|
|
462
|
+
isNewGroup: boolean
|
|
466
463
|
];
|
|
467
464
|
type OutputTuple = [
|
|
468
465
|
groupId: bigint,
|
|
@@ -470,7 +467,8 @@ export declare namespace UpdateAssetGroupEvent {
|
|
|
470
467
|
intraMintRatePercent: bigint,
|
|
471
468
|
intraSuRatePercent: bigint,
|
|
472
469
|
interCRatePercent: bigint,
|
|
473
|
-
interSuRatePercent: bigint
|
|
470
|
+
interSuRatePercent: bigint,
|
|
471
|
+
isNewGroup: boolean
|
|
474
472
|
];
|
|
475
473
|
interface OutputObject {
|
|
476
474
|
groupId: bigint;
|
|
@@ -479,6 +477,7 @@ export declare namespace UpdateAssetGroupEvent {
|
|
|
479
477
|
intraSuRatePercent: bigint;
|
|
480
478
|
interCRatePercent: bigint;
|
|
481
479
|
interSuRatePercent: bigint;
|
|
480
|
+
isNewGroup: boolean;
|
|
482
481
|
}
|
|
483
482
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
484
483
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -570,6 +569,11 @@ export interface Comptroller extends BaseContract {
|
|
|
570
569
|
], [
|
|
571
570
|
void
|
|
572
571
|
], "nonpayable">;
|
|
572
|
+
_unlistMarket: TypedContractMethod<[
|
|
573
|
+
cToken: AddressLike
|
|
574
|
+
], [
|
|
575
|
+
void
|
|
576
|
+
], "nonpayable">;
|
|
573
577
|
accountAssets: TypedContractMethod<[
|
|
574
578
|
arg0: AddressLike,
|
|
575
579
|
arg1: BigNumberish
|
|
@@ -688,6 +692,16 @@ export interface Comptroller extends BaseContract {
|
|
|
688
692
|
], [
|
|
689
693
|
void
|
|
690
694
|
], "view">;
|
|
695
|
+
liquidateBorrowVerify: TypedContractMethod<[
|
|
696
|
+
cTokenBorrowed: AddressLike,
|
|
697
|
+
cTokenCollateral: AddressLike,
|
|
698
|
+
liquidator: AddressLike,
|
|
699
|
+
borrower: AddressLike,
|
|
700
|
+
actualRepayAmount: BigNumberish,
|
|
701
|
+
seizeTokens: BigNumberish
|
|
702
|
+
], [
|
|
703
|
+
void
|
|
704
|
+
], "nonpayable">;
|
|
691
705
|
liquidationIncentive: TypedContractMethod<[
|
|
692
706
|
], [
|
|
693
707
|
[
|
|
@@ -748,6 +762,14 @@ export interface Comptroller extends BaseContract {
|
|
|
748
762
|
], [
|
|
749
763
|
void
|
|
750
764
|
], "nonpayable">;
|
|
765
|
+
redeemVerify: TypedContractMethod<[
|
|
766
|
+
cToken: AddressLike,
|
|
767
|
+
redeemer: AddressLike,
|
|
768
|
+
redeemAmount: BigNumberish,
|
|
769
|
+
redeemTokens: BigNumberish
|
|
770
|
+
], [
|
|
771
|
+
void
|
|
772
|
+
], "nonpayable">;
|
|
751
773
|
redemptionManager: TypedContractMethod<[], [string], "view">;
|
|
752
774
|
removeAssetGroup: TypedContractMethod<[
|
|
753
775
|
groupId: BigNumberish
|
|
@@ -768,6 +790,15 @@ export interface Comptroller extends BaseContract {
|
|
|
768
790
|
], [
|
|
769
791
|
void
|
|
770
792
|
], "nonpayable">;
|
|
793
|
+
repayBorrowVerify: TypedContractMethod<[
|
|
794
|
+
cToken: AddressLike,
|
|
795
|
+
payer: AddressLike,
|
|
796
|
+
borrower: AddressLike,
|
|
797
|
+
actualRepayAmount: BigNumberish,
|
|
798
|
+
borrowIndex: BigNumberish
|
|
799
|
+
], [
|
|
800
|
+
void
|
|
801
|
+
], "nonpayable">;
|
|
771
802
|
revokeRole: TypedContractMethod<[
|
|
772
803
|
role: BytesLike,
|
|
773
804
|
account: AddressLike
|
|
@@ -857,6 +888,7 @@ export interface Comptroller extends BaseContract {
|
|
|
857
888
|
], [
|
|
858
889
|
void
|
|
859
890
|
], "nonpayable">;
|
|
891
|
+
getFunction(nameOrSignature: "_unlistMarket"): TypedContractMethod<[cToken: AddressLike], [void], "nonpayable">;
|
|
860
892
|
getFunction(nameOrSignature: "accountAssets"): TypedContractMethod<[
|
|
861
893
|
arg0: AddressLike,
|
|
862
894
|
arg1: BigNumberish
|
|
@@ -963,6 +995,16 @@ export interface Comptroller extends BaseContract {
|
|
|
963
995
|
], [
|
|
964
996
|
void
|
|
965
997
|
], "view">;
|
|
998
|
+
getFunction(nameOrSignature: "liquidateBorrowVerify"): TypedContractMethod<[
|
|
999
|
+
cTokenBorrowed: AddressLike,
|
|
1000
|
+
cTokenCollateral: AddressLike,
|
|
1001
|
+
liquidator: AddressLike,
|
|
1002
|
+
borrower: AddressLike,
|
|
1003
|
+
actualRepayAmount: BigNumberish,
|
|
1004
|
+
seizeTokens: BigNumberish
|
|
1005
|
+
], [
|
|
1006
|
+
void
|
|
1007
|
+
], "nonpayable">;
|
|
966
1008
|
getFunction(nameOrSignature: "liquidationIncentive"): TypedContractMethod<[
|
|
967
1009
|
], [
|
|
968
1010
|
[
|
|
@@ -1023,6 +1065,14 @@ export interface Comptroller extends BaseContract {
|
|
|
1023
1065
|
], [
|
|
1024
1066
|
void
|
|
1025
1067
|
], "nonpayable">;
|
|
1068
|
+
getFunction(nameOrSignature: "redeemVerify"): TypedContractMethod<[
|
|
1069
|
+
cToken: AddressLike,
|
|
1070
|
+
redeemer: AddressLike,
|
|
1071
|
+
redeemAmount: BigNumberish,
|
|
1072
|
+
redeemTokens: BigNumberish
|
|
1073
|
+
], [
|
|
1074
|
+
void
|
|
1075
|
+
], "nonpayable">;
|
|
1026
1076
|
getFunction(nameOrSignature: "redemptionManager"): TypedContractMethod<[], [string], "view">;
|
|
1027
1077
|
getFunction(nameOrSignature: "removeAssetGroup"): TypedContractMethod<[groupId: BigNumberish], [void], "nonpayable">;
|
|
1028
1078
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
@@ -1039,6 +1089,15 @@ export interface Comptroller extends BaseContract {
|
|
|
1039
1089
|
], [
|
|
1040
1090
|
void
|
|
1041
1091
|
], "nonpayable">;
|
|
1092
|
+
getFunction(nameOrSignature: "repayBorrowVerify"): TypedContractMethod<[
|
|
1093
|
+
cToken: AddressLike,
|
|
1094
|
+
payer: AddressLike,
|
|
1095
|
+
borrower: AddressLike,
|
|
1096
|
+
actualRepayAmount: BigNumberish,
|
|
1097
|
+
borrowIndex: BigNumberish
|
|
1098
|
+
], [
|
|
1099
|
+
void
|
|
1100
|
+
], "nonpayable">;
|
|
1042
1101
|
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
1043
1102
|
role: BytesLike,
|
|
1044
1103
|
account: AddressLike
|
|
@@ -1079,7 +1138,7 @@ export interface Comptroller extends BaseContract {
|
|
|
1079
1138
|
getEvent(key: "MarketEntered"): TypedContractEvent<MarketEnteredEvent.InputTuple, MarketEnteredEvent.OutputTuple, MarketEnteredEvent.OutputObject>;
|
|
1080
1139
|
getEvent(key: "MarketExited"): TypedContractEvent<MarketExitedEvent.InputTuple, MarketExitedEvent.OutputTuple, MarketExitedEvent.OutputObject>;
|
|
1081
1140
|
getEvent(key: "MarketListed"): TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1082
|
-
getEvent(key: "
|
|
1141
|
+
getEvent(key: "MarketUnlisted"): TypedContractEvent<MarketUnlistedEvent.InputTuple, MarketUnlistedEvent.OutputTuple, MarketUnlistedEvent.OutputObject>;
|
|
1083
1142
|
getEvent(key: "NewCap"): TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1084
1143
|
getEvent(key: "NewDependencies"): TypedContractEvent<NewDependenciesEvent.InputTuple, NewDependenciesEvent.OutputTuple, NewDependenciesEvent.OutputObject>;
|
|
1085
1144
|
getEvent(key: "NewGlobalConfig"): TypedContractEvent<NewGlobalConfigEvent.InputTuple, NewGlobalConfigEvent.OutputTuple, NewGlobalConfigEvent.OutputObject>;
|
|
@@ -1102,8 +1161,8 @@ export interface Comptroller extends BaseContract {
|
|
|
1102
1161
|
MarketExited: TypedContractEvent<MarketExitedEvent.InputTuple, MarketExitedEvent.OutputTuple, MarketExitedEvent.OutputObject>;
|
|
1103
1162
|
"MarketListed(address)": TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1104
1163
|
MarketListed: TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1105
|
-
"
|
|
1106
|
-
|
|
1164
|
+
"MarketUnlisted(address)": TypedContractEvent<MarketUnlistedEvent.InputTuple, MarketUnlistedEvent.OutputTuple, MarketUnlistedEvent.OutputObject>;
|
|
1165
|
+
MarketUnlisted: TypedContractEvent<MarketUnlistedEvent.InputTuple, MarketUnlistedEvent.OutputTuple, MarketUnlistedEvent.OutputObject>;
|
|
1107
1166
|
"NewCap(address,uint120,uint120)": TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1108
1167
|
NewCap: TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1109
1168
|
"NewDependencies(address,address)": TypedContractEvent<NewDependenciesEvent.InputTuple, NewDependenciesEvent.OutputTuple, NewDependenciesEvent.OutputObject>;
|
|
@@ -1128,7 +1187,7 @@ export interface Comptroller extends BaseContract {
|
|
|
1128
1187
|
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
1129
1188
|
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
1130
1189
|
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
1131
|
-
"UpdateAssetGroup(uint8,uint16,uint16,uint16,uint16,uint16)": TypedContractEvent<UpdateAssetGroupEvent.InputTuple, UpdateAssetGroupEvent.OutputTuple, UpdateAssetGroupEvent.OutputObject>;
|
|
1190
|
+
"UpdateAssetGroup(uint8,uint16,uint16,uint16,uint16,uint16,bool)": TypedContractEvent<UpdateAssetGroupEvent.InputTuple, UpdateAssetGroupEvent.OutputTuple, UpdateAssetGroupEvent.OutputObject>;
|
|
1132
1191
|
UpdateAssetGroup: TypedContractEvent<UpdateAssetGroupEvent.InputTuple, UpdateAssetGroupEvent.OutputTuple, UpdateAssetGroupEvent.OutputObject>;
|
|
1133
1192
|
};
|
|
1134
1193
|
}
|
|
@@ -9,12 +9,13 @@ export declare namespace ICompLogic {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export interface ICompLogicInterface extends Interface {
|
|
12
|
-
getFunction(nameOrSignature: "distributeBorrowerComp" | "distributeSupplierComp" | "getHypotheticalSafeLimit" | "initializeMarket" | "setCompSpeed" | "updateCompBorrowIndex" | "updateCompSupplyIndex"): FunctionFragment;
|
|
12
|
+
getFunction(nameOrSignature: "distributeBorrowerComp" | "distributeSupplierComp" | "getHypotheticalSafeLimit" | "initializeMarket" | "setCompSpeed" | "uninitializeMarket" | "updateCompBorrowIndex" | "updateCompSupplyIndex"): FunctionFragment;
|
|
13
13
|
encodeFunctionData(functionFragment: "distributeBorrowerComp", values: [AddressLike, AddressLike, ICompLogic.ExpStruct]): string;
|
|
14
14
|
encodeFunctionData(functionFragment: "distributeSupplierComp", values: [AddressLike, AddressLike]): string;
|
|
15
15
|
encodeFunctionData(functionFragment: "getHypotheticalSafeLimit", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
16
16
|
encodeFunctionData(functionFragment: "initializeMarket", values: [AddressLike, BigNumberish]): string;
|
|
17
17
|
encodeFunctionData(functionFragment: "setCompSpeed", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "uninitializeMarket", values: [AddressLike]): string;
|
|
18
19
|
encodeFunctionData(functionFragment: "updateCompBorrowIndex", values: [AddressLike, ICompLogic.ExpStruct]): string;
|
|
19
20
|
encodeFunctionData(functionFragment: "updateCompSupplyIndex", values: [AddressLike]): string;
|
|
20
21
|
decodeFunctionResult(functionFragment: "distributeBorrowerComp", data: BytesLike): Result;
|
|
@@ -22,6 +23,7 @@ export interface ICompLogicInterface extends Interface {
|
|
|
22
23
|
decodeFunctionResult(functionFragment: "getHypotheticalSafeLimit", data: BytesLike): Result;
|
|
23
24
|
decodeFunctionResult(functionFragment: "initializeMarket", data: BytesLike): Result;
|
|
24
25
|
decodeFunctionResult(functionFragment: "setCompSpeed", data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: "uninitializeMarket", data: BytesLike): Result;
|
|
25
27
|
decodeFunctionResult(functionFragment: "updateCompBorrowIndex", data: BytesLike): Result;
|
|
26
28
|
decodeFunctionResult(functionFragment: "updateCompSupplyIndex", data: BytesLike): Result;
|
|
27
29
|
}
|
|
@@ -72,6 +74,11 @@ export interface ICompLogic extends BaseContract {
|
|
|
72
74
|
], [
|
|
73
75
|
void
|
|
74
76
|
], "nonpayable">;
|
|
77
|
+
uninitializeMarket: TypedContractMethod<[
|
|
78
|
+
cToken: AddressLike
|
|
79
|
+
], [
|
|
80
|
+
void
|
|
81
|
+
], "nonpayable">;
|
|
75
82
|
updateCompBorrowIndex: TypedContractMethod<[
|
|
76
83
|
cToken: AddressLike,
|
|
77
84
|
marketBorrowIndex: ICompLogic.ExpStruct
|
|
@@ -118,6 +125,7 @@ export interface ICompLogic extends BaseContract {
|
|
|
118
125
|
], [
|
|
119
126
|
void
|
|
120
127
|
], "nonpayable">;
|
|
128
|
+
getFunction(nameOrSignature: "uninitializeMarket"): TypedContractMethod<[cToken: AddressLike], [void], "nonpayable">;
|
|
121
129
|
getFunction(nameOrSignature: "updateCompBorrowIndex"): TypedContractMethod<[
|
|
122
130
|
cToken: AddressLike,
|
|
123
131
|
marketBorrowIndex: ICompLogic.ExpStruct
|
|
@@ -81,7 +81,7 @@ export type MarketConfigStructOutput = [
|
|
|
81
81
|
supplyCap: bigint;
|
|
82
82
|
};
|
|
83
83
|
export interface IComptrollerInterface extends Interface {
|
|
84
|
-
getFunction(nameOrSignature: "assetGroup" | "borrowAllowed" | "borrowVerify" | "claimSumer" | "compAccrued" | "enterMarkets" | "exitMarket" | "getAllMarkets" | "getAssetsIn" | "getHypotheticalAccountLiquidity" | "getUnderlyingPriceNormalized" | "globalConfig" | "interMintAllowed" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentive" | "marketConfig" | "markets" | "mintAllowed" | "oracle" | "redeemAllowed" | "redemptionManager" | "repayBorrowAllowed" | "seizeAllowed" | "seizeVerify" | "timelock" | "transferAllowed"): FunctionFragment;
|
|
84
|
+
getFunction(nameOrSignature: "assetGroup" | "borrowAllowed" | "borrowVerify" | "claimSumer" | "compAccrued" | "enterMarkets" | "exitMarket" | "getAllMarkets" | "getAssetsIn" | "getHypotheticalAccountLiquidity" | "getUnderlyingPriceNormalized" | "globalConfig" | "interMintAllowed" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidateBorrowVerify" | "liquidationIncentive" | "marketConfig" | "markets" | "mintAllowed" | "oracle" | "redeemAllowed" | "redeemVerify" | "redemptionManager" | "repayBorrowAllowed" | "repayBorrowVerify" | "seizeAllowed" | "seizeVerify" | "timelock" | "transferAllowed"): FunctionFragment;
|
|
85
85
|
getEvent(nameOrSignatureOrTopic: "ActionPaused" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewPauseGuardian" | "RemoveAssetGroup"): EventFragment;
|
|
86
86
|
encodeFunctionData(functionFragment: "assetGroup", values: [BigNumberish]): string;
|
|
87
87
|
encodeFunctionData(functionFragment: "borrowAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
@@ -99,14 +99,24 @@ export interface IComptrollerInterface extends Interface {
|
|
|
99
99
|
encodeFunctionData(functionFragment: "isComptroller", values?: undefined): string;
|
|
100
100
|
encodeFunctionData(functionFragment: "isListed", values: [AddressLike]): string;
|
|
101
101
|
encodeFunctionData(functionFragment: "liquidateBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
102
|
+
encodeFunctionData(functionFragment: "liquidateBorrowVerify", values: [
|
|
103
|
+
AddressLike,
|
|
104
|
+
AddressLike,
|
|
105
|
+
AddressLike,
|
|
106
|
+
AddressLike,
|
|
107
|
+
BigNumberish,
|
|
108
|
+
BigNumberish
|
|
109
|
+
]): string;
|
|
102
110
|
encodeFunctionData(functionFragment: "liquidationIncentive", values?: undefined): string;
|
|
103
111
|
encodeFunctionData(functionFragment: "marketConfig", values: [AddressLike]): string;
|
|
104
112
|
encodeFunctionData(functionFragment: "markets", values: [AddressLike]): string;
|
|
105
113
|
encodeFunctionData(functionFragment: "mintAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
106
114
|
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
107
115
|
encodeFunctionData(functionFragment: "redeemAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
116
|
+
encodeFunctionData(functionFragment: "redeemVerify", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
108
117
|
encodeFunctionData(functionFragment: "redemptionManager", values?: undefined): string;
|
|
109
118
|
encodeFunctionData(functionFragment: "repayBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
119
|
+
encodeFunctionData(functionFragment: "repayBorrowVerify", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
110
120
|
encodeFunctionData(functionFragment: "seizeAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
111
121
|
encodeFunctionData(functionFragment: "seizeVerify", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
112
122
|
encodeFunctionData(functionFragment: "timelock", values?: undefined): string;
|
|
@@ -127,14 +137,17 @@ export interface IComptrollerInterface extends Interface {
|
|
|
127
137
|
decodeFunctionResult(functionFragment: "isComptroller", data: BytesLike): Result;
|
|
128
138
|
decodeFunctionResult(functionFragment: "isListed", data: BytesLike): Result;
|
|
129
139
|
decodeFunctionResult(functionFragment: "liquidateBorrowAllowed", data: BytesLike): Result;
|
|
140
|
+
decodeFunctionResult(functionFragment: "liquidateBorrowVerify", data: BytesLike): Result;
|
|
130
141
|
decodeFunctionResult(functionFragment: "liquidationIncentive", data: BytesLike): Result;
|
|
131
142
|
decodeFunctionResult(functionFragment: "marketConfig", data: BytesLike): Result;
|
|
132
143
|
decodeFunctionResult(functionFragment: "markets", data: BytesLike): Result;
|
|
133
144
|
decodeFunctionResult(functionFragment: "mintAllowed", data: BytesLike): Result;
|
|
134
145
|
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
135
146
|
decodeFunctionResult(functionFragment: "redeemAllowed", data: BytesLike): Result;
|
|
147
|
+
decodeFunctionResult(functionFragment: "redeemVerify", data: BytesLike): Result;
|
|
136
148
|
decodeFunctionResult(functionFragment: "redemptionManager", data: BytesLike): Result;
|
|
137
149
|
decodeFunctionResult(functionFragment: "repayBorrowAllowed", data: BytesLike): Result;
|
|
150
|
+
decodeFunctionResult(functionFragment: "repayBorrowVerify", data: BytesLike): Result;
|
|
138
151
|
decodeFunctionResult(functionFragment: "seizeAllowed", data: BytesLike): Result;
|
|
139
152
|
decodeFunctionResult(functionFragment: "seizeVerify", data: BytesLike): Result;
|
|
140
153
|
decodeFunctionResult(functionFragment: "timelock", data: BytesLike): Result;
|
|
@@ -291,6 +304,16 @@ export interface IComptroller extends BaseContract {
|
|
|
291
304
|
], [
|
|
292
305
|
void
|
|
293
306
|
], "view">;
|
|
307
|
+
liquidateBorrowVerify: TypedContractMethod<[
|
|
308
|
+
cTokenBorrowed: AddressLike,
|
|
309
|
+
cTokenCollateral: AddressLike,
|
|
310
|
+
liquidator: AddressLike,
|
|
311
|
+
borrower: AddressLike,
|
|
312
|
+
repayAmount: BigNumberish,
|
|
313
|
+
seizeTokens: BigNumberish
|
|
314
|
+
], [
|
|
315
|
+
void
|
|
316
|
+
], "nonpayable">;
|
|
294
317
|
liquidationIncentive: TypedContractMethod<[
|
|
295
318
|
], [
|
|
296
319
|
LiquidationIncentiveStructOutput
|
|
@@ -320,6 +343,14 @@ export interface IComptroller extends BaseContract {
|
|
|
320
343
|
], [
|
|
321
344
|
void
|
|
322
345
|
], "nonpayable">;
|
|
346
|
+
redeemVerify: TypedContractMethod<[
|
|
347
|
+
cToken: AddressLike,
|
|
348
|
+
redeemer: AddressLike,
|
|
349
|
+
redeemAmount: BigNumberish,
|
|
350
|
+
redeemTokens: BigNumberish
|
|
351
|
+
], [
|
|
352
|
+
void
|
|
353
|
+
], "nonpayable">;
|
|
323
354
|
redemptionManager: TypedContractMethod<[], [string], "view">;
|
|
324
355
|
repayBorrowAllowed: TypedContractMethod<[
|
|
325
356
|
cToken: AddressLike,
|
|
@@ -329,6 +360,15 @@ export interface IComptroller extends BaseContract {
|
|
|
329
360
|
], [
|
|
330
361
|
void
|
|
331
362
|
], "nonpayable">;
|
|
363
|
+
repayBorrowVerify: TypedContractMethod<[
|
|
364
|
+
cToken: AddressLike,
|
|
365
|
+
payer: AddressLike,
|
|
366
|
+
borrower: AddressLike,
|
|
367
|
+
actualRepayAmount: BigNumberish,
|
|
368
|
+
borrowIndex: BigNumberish
|
|
369
|
+
], [
|
|
370
|
+
void
|
|
371
|
+
], "nonpayable">;
|
|
332
372
|
seizeAllowed: TypedContractMethod<[
|
|
333
373
|
cTokenCollateral: AddressLike,
|
|
334
374
|
cTokenBorrowed: AddressLike,
|
|
@@ -403,6 +443,16 @@ export interface IComptroller extends BaseContract {
|
|
|
403
443
|
], [
|
|
404
444
|
void
|
|
405
445
|
], "view">;
|
|
446
|
+
getFunction(nameOrSignature: "liquidateBorrowVerify"): TypedContractMethod<[
|
|
447
|
+
cTokenBorrowed: AddressLike,
|
|
448
|
+
cTokenCollateral: AddressLike,
|
|
449
|
+
liquidator: AddressLike,
|
|
450
|
+
borrower: AddressLike,
|
|
451
|
+
repayAmount: BigNumberish,
|
|
452
|
+
seizeTokens: BigNumberish
|
|
453
|
+
], [
|
|
454
|
+
void
|
|
455
|
+
], "nonpayable">;
|
|
406
456
|
getFunction(nameOrSignature: "liquidationIncentive"): TypedContractMethod<[], [LiquidationIncentiveStructOutput], "view">;
|
|
407
457
|
getFunction(nameOrSignature: "marketConfig"): TypedContractMethod<[
|
|
408
458
|
cToken: AddressLike
|
|
@@ -429,6 +479,14 @@ export interface IComptroller extends BaseContract {
|
|
|
429
479
|
], [
|
|
430
480
|
void
|
|
431
481
|
], "nonpayable">;
|
|
482
|
+
getFunction(nameOrSignature: "redeemVerify"): TypedContractMethod<[
|
|
483
|
+
cToken: AddressLike,
|
|
484
|
+
redeemer: AddressLike,
|
|
485
|
+
redeemAmount: BigNumberish,
|
|
486
|
+
redeemTokens: BigNumberish
|
|
487
|
+
], [
|
|
488
|
+
void
|
|
489
|
+
], "nonpayable">;
|
|
432
490
|
getFunction(nameOrSignature: "redemptionManager"): TypedContractMethod<[], [string], "view">;
|
|
433
491
|
getFunction(nameOrSignature: "repayBorrowAllowed"): TypedContractMethod<[
|
|
434
492
|
cToken: AddressLike,
|
|
@@ -438,6 +496,15 @@ export interface IComptroller extends BaseContract {
|
|
|
438
496
|
], [
|
|
439
497
|
void
|
|
440
498
|
], "nonpayable">;
|
|
499
|
+
getFunction(nameOrSignature: "repayBorrowVerify"): TypedContractMethod<[
|
|
500
|
+
cToken: AddressLike,
|
|
501
|
+
payer: AddressLike,
|
|
502
|
+
borrower: AddressLike,
|
|
503
|
+
actualRepayAmount: BigNumberish,
|
|
504
|
+
borrowIndex: BigNumberish
|
|
505
|
+
], [
|
|
506
|
+
void
|
|
507
|
+
], "nonpayable">;
|
|
441
508
|
getFunction(nameOrSignature: "seizeAllowed"): TypedContractMethod<[
|
|
442
509
|
cTokenCollateral: AddressLike,
|
|
443
510
|
cTokenBorrowed: AddressLike,
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface API3AdapterInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "acceptOwnership" | "exchangeRate" | "owner" | "pendingOwner" | "renounceOwnership" | "setAPI3Proxy" | "transferOwnership"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted" | "OwnershipTransferred"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "exchangeRate", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "pendingOwner", values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "setAPI3Proxy", values: [AddressLike]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
13
|
+
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
14
|
+
decodeFunctionResult(functionFragment: "exchangeRate", data: BytesLike): Result;
|
|
15
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
16
|
+
decodeFunctionResult(functionFragment: "pendingOwner", data: BytesLike): Result;
|
|
17
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
18
|
+
decodeFunctionResult(functionFragment: "setAPI3Proxy", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace OwnershipTransferStartedEvent {
|
|
22
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
23
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
24
|
+
interface OutputObject {
|
|
25
|
+
previousOwner: string;
|
|
26
|
+
newOwner: string;
|
|
27
|
+
}
|
|
28
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
29
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
30
|
+
type Log = TypedEventLog<Event>;
|
|
31
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace OwnershipTransferredEvent {
|
|
34
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
35
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
36
|
+
interface OutputObject {
|
|
37
|
+
previousOwner: string;
|
|
38
|
+
newOwner: string;
|
|
39
|
+
}
|
|
40
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
41
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
42
|
+
type Log = TypedEventLog<Event>;
|
|
43
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
44
|
+
}
|
|
45
|
+
export interface API3Adapter extends BaseContract {
|
|
46
|
+
connect(runner?: ContractRunner | null): API3Adapter;
|
|
47
|
+
waitForDeployment(): Promise<this>;
|
|
48
|
+
interface: API3AdapterInterface;
|
|
49
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
50
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
51
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
52
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
53
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
54
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
55
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
56
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
57
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
58
|
+
acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
59
|
+
exchangeRate: TypedContractMethod<[], [bigint], "view">;
|
|
60
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
61
|
+
pendingOwner: TypedContractMethod<[], [string], "view">;
|
|
62
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
63
|
+
setAPI3Proxy: TypedContractMethod<[
|
|
64
|
+
_proxy: AddressLike
|
|
65
|
+
], [
|
|
66
|
+
void
|
|
67
|
+
], "nonpayable">;
|
|
68
|
+
transferOwnership: TypedContractMethod<[
|
|
69
|
+
newOwner: AddressLike
|
|
70
|
+
], [
|
|
71
|
+
void
|
|
72
|
+
], "nonpayable">;
|
|
73
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
74
|
+
getFunction(nameOrSignature: "acceptOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
75
|
+
getFunction(nameOrSignature: "exchangeRate"): TypedContractMethod<[], [bigint], "view">;
|
|
76
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
77
|
+
getFunction(nameOrSignature: "pendingOwner"): TypedContractMethod<[], [string], "view">;
|
|
78
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
79
|
+
getFunction(nameOrSignature: "setAPI3Proxy"): TypedContractMethod<[_proxy: AddressLike], [void], "nonpayable">;
|
|
80
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
81
|
+
getEvent(key: "OwnershipTransferStarted"): TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
82
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
83
|
+
filters: {
|
|
84
|
+
"OwnershipTransferStarted(address,address)": TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
85
|
+
OwnershipTransferStarted: TypedContractEvent<OwnershipTransferStartedEvent.InputTuple, OwnershipTransferStartedEvent.OutputTuple, OwnershipTransferStartedEvent.OutputObject>;
|
|
86
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
87
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"API3Adapter.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Oracle/API3Adapter.sol/API3Adapter.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface IAPI3ProxyInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "api3ServerV1" | "read"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "api3ServerV1", values?: undefined): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "read", values?: undefined): string;
|
|
7
|
+
decodeFunctionResult(functionFragment: "api3ServerV1", data: BytesLike): Result;
|
|
8
|
+
decodeFunctionResult(functionFragment: "read", data: BytesLike): Result;
|
|
9
|
+
}
|
|
10
|
+
export interface IAPI3Proxy extends BaseContract {
|
|
11
|
+
connect(runner?: ContractRunner | null): IAPI3Proxy;
|
|
12
|
+
waitForDeployment(): Promise<this>;
|
|
13
|
+
interface: IAPI3ProxyInterface;
|
|
14
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
15
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
16
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
17
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
18
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
19
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
20
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
21
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
22
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
23
|
+
api3ServerV1: TypedContractMethod<[], [string], "view">;
|
|
24
|
+
read: TypedContractMethod<[
|
|
25
|
+
], [
|
|
26
|
+
[bigint, bigint] & {
|
|
27
|
+
value: bigint;
|
|
28
|
+
timestamp: bigint;
|
|
29
|
+
}
|
|
30
|
+
], "view">;
|
|
31
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
32
|
+
getFunction(nameOrSignature: "api3ServerV1"): TypedContractMethod<[], [string], "view">;
|
|
33
|
+
getFunction(nameOrSignature: "read"): TypedContractMethod<[
|
|
34
|
+
], [
|
|
35
|
+
[bigint, bigint] & {
|
|
36
|
+
value: bigint;
|
|
37
|
+
timestamp: bigint;
|
|
38
|
+
}
|
|
39
|
+
], "view">;
|
|
40
|
+
filters: {};
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAPI3Proxy.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Oracle/API3Adapter.sol/IAPI3Proxy.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Oracle/API3Adapter.sol/index.ts"],"names":[],"mappings":""}
|