@meterio/sumer-js 0.2.82 → 0.2.84
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 +6 -6
- package/dist/nodejs/constants/berabartio.d.ts +2 -0
- package/dist/nodejs/constants/berabartio.js +14 -0
- package/dist/nodejs/constants/berabartio.js.map +1 -1
- package/dist/nodejs/constants/index.js +2 -0
- package/dist/nodejs/constants/index.js.map +1 -1
- package/dist/nodejs/constants/merlin.d.ts +59 -0
- package/dist/nodejs/constants/merlin.js +135 -0
- package/dist/nodejs/constants/merlin.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +1 -9
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +31 -90
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +1 -9
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +1 -68
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +0 -8
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -37
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -46
- 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 -37
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -46
- 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 -36
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +0 -45
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -37
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -46
- 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 -47
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -59
- 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 -37
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -46
- 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 +30 -134
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +35 -168
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -37
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -46
- 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 +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 -78
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +0 -99
- 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/index.d.ts +0 -4
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +1 -5
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +1 -37
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +1 -46
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +1 -37
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +1 -46
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +0 -144
- package/dist/nodejs/typechain/index.d.ts +0 -16
- package/dist/nodejs/typechain/index.js +2 -18
- 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" | "
|
|
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" | "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" | "NewAssetGroup" | "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,7 +51,6 @@ 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;
|
|
55
54
|
encodeFunctionData(functionFragment: "accountAssets", values: [AddressLike, BigNumberish]): string;
|
|
56
55
|
encodeFunctionData(functionFragment: "allMarkets", values: [BigNumberish]): string;
|
|
57
56
|
encodeFunctionData(functionFragment: "assetGroup", values: [BigNumberish]): string;
|
|
@@ -82,14 +81,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
82
81
|
encodeFunctionData(functionFragment: "isListed", values: [AddressLike]): string;
|
|
83
82
|
encodeFunctionData(functionFragment: "lastBorrowedAt", values: [AddressLike]): string;
|
|
84
83
|
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;
|
|
93
84
|
encodeFunctionData(functionFragment: "liquidationIncentive", values?: undefined): string;
|
|
94
85
|
encodeFunctionData(functionFragment: "marketConfig", values: [AddressLike]): string;
|
|
95
86
|
encodeFunctionData(functionFragment: "markets", values: [AddressLike]): string;
|
|
@@ -97,12 +88,10 @@ export interface ComptrollerInterface extends Interface {
|
|
|
97
88
|
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
98
89
|
encodeFunctionData(functionFragment: "pauseGuardian", values?: undefined): string;
|
|
99
90
|
encodeFunctionData(functionFragment: "redeemAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
100
|
-
encodeFunctionData(functionFragment: "redeemVerify", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
101
91
|
encodeFunctionData(functionFragment: "redemptionManager", values?: undefined): string;
|
|
102
92
|
encodeFunctionData(functionFragment: "removeAssetGroup", values: [BigNumberish]): string;
|
|
103
93
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
104
94
|
encodeFunctionData(functionFragment: "repayBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
105
|
-
encodeFunctionData(functionFragment: "repayBorrowVerify", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
106
95
|
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
107
96
|
encodeFunctionData(functionFragment: "seizeAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
108
97
|
encodeFunctionData(functionFragment: "setAssetGroup", values: [
|
|
@@ -131,7 +120,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
131
120
|
decodeFunctionResult(functionFragment: "_setPriceOracle", data: BytesLike): Result;
|
|
132
121
|
decodeFunctionResult(functionFragment: "_setTimelock", data: BytesLike): Result;
|
|
133
122
|
decodeFunctionResult(functionFragment: "_supportMarket", data: BytesLike): Result;
|
|
134
|
-
decodeFunctionResult(functionFragment: "_unlistMarket", data: BytesLike): Result;
|
|
135
123
|
decodeFunctionResult(functionFragment: "accountAssets", data: BytesLike): Result;
|
|
136
124
|
decodeFunctionResult(functionFragment: "allMarkets", data: BytesLike): Result;
|
|
137
125
|
decodeFunctionResult(functionFragment: "assetGroup", data: BytesLike): Result;
|
|
@@ -155,7 +143,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
155
143
|
decodeFunctionResult(functionFragment: "isListed", data: BytesLike): Result;
|
|
156
144
|
decodeFunctionResult(functionFragment: "lastBorrowedAt", data: BytesLike): Result;
|
|
157
145
|
decodeFunctionResult(functionFragment: "liquidateBorrowAllowed", data: BytesLike): Result;
|
|
158
|
-
decodeFunctionResult(functionFragment: "liquidateBorrowVerify", data: BytesLike): Result;
|
|
159
146
|
decodeFunctionResult(functionFragment: "liquidationIncentive", data: BytesLike): Result;
|
|
160
147
|
decodeFunctionResult(functionFragment: "marketConfig", data: BytesLike): Result;
|
|
161
148
|
decodeFunctionResult(functionFragment: "markets", data: BytesLike): Result;
|
|
@@ -163,12 +150,10 @@ export interface ComptrollerInterface extends Interface {
|
|
|
163
150
|
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
164
151
|
decodeFunctionResult(functionFragment: "pauseGuardian", data: BytesLike): Result;
|
|
165
152
|
decodeFunctionResult(functionFragment: "redeemAllowed", data: BytesLike): Result;
|
|
166
|
-
decodeFunctionResult(functionFragment: "redeemVerify", data: BytesLike): Result;
|
|
167
153
|
decodeFunctionResult(functionFragment: "redemptionManager", data: BytesLike): Result;
|
|
168
154
|
decodeFunctionResult(functionFragment: "removeAssetGroup", data: BytesLike): Result;
|
|
169
155
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
170
156
|
decodeFunctionResult(functionFragment: "repayBorrowAllowed", data: BytesLike): Result;
|
|
171
|
-
decodeFunctionResult(functionFragment: "repayBorrowVerify", data: BytesLike): Result;
|
|
172
157
|
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
173
158
|
decodeFunctionResult(functionFragment: "seizeAllowed", data: BytesLike): Result;
|
|
174
159
|
decodeFunctionResult(functionFragment: "setAssetGroup", data: BytesLike): Result;
|
|
@@ -223,11 +208,30 @@ export declare namespace MarketListedEvent {
|
|
|
223
208
|
type Log = TypedEventLog<Event>;
|
|
224
209
|
type LogDescription = TypedLogDescription<Event>;
|
|
225
210
|
}
|
|
226
|
-
export declare namespace
|
|
227
|
-
type InputTuple = [
|
|
228
|
-
|
|
211
|
+
export declare namespace NewAssetGroupEvent {
|
|
212
|
+
type InputTuple = [
|
|
213
|
+
groupId: BigNumberish,
|
|
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
|
+
];
|
|
229
228
|
interface OutputObject {
|
|
230
|
-
|
|
229
|
+
groupId: bigint;
|
|
230
|
+
intraCRatePercent: bigint;
|
|
231
|
+
intraMintRatePercent: bigint;
|
|
232
|
+
intraSuRatePercent: bigint;
|
|
233
|
+
interCRatePercent: bigint;
|
|
234
|
+
interSuRatePercent: bigint;
|
|
231
235
|
}
|
|
232
236
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
233
237
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -458,8 +462,7 @@ export declare namespace UpdateAssetGroupEvent {
|
|
|
458
462
|
intraMintRatePercent: BigNumberish,
|
|
459
463
|
intraSuRatePercent: BigNumberish,
|
|
460
464
|
interCRatePercent: BigNumberish,
|
|
461
|
-
interSuRatePercent: BigNumberish
|
|
462
|
-
isNewGroup: boolean
|
|
465
|
+
interSuRatePercent: BigNumberish
|
|
463
466
|
];
|
|
464
467
|
type OutputTuple = [
|
|
465
468
|
groupId: bigint,
|
|
@@ -467,8 +470,7 @@ export declare namespace UpdateAssetGroupEvent {
|
|
|
467
470
|
intraMintRatePercent: bigint,
|
|
468
471
|
intraSuRatePercent: bigint,
|
|
469
472
|
interCRatePercent: bigint,
|
|
470
|
-
interSuRatePercent: bigint
|
|
471
|
-
isNewGroup: boolean
|
|
473
|
+
interSuRatePercent: bigint
|
|
472
474
|
];
|
|
473
475
|
interface OutputObject {
|
|
474
476
|
groupId: bigint;
|
|
@@ -477,7 +479,6 @@ export declare namespace UpdateAssetGroupEvent {
|
|
|
477
479
|
intraSuRatePercent: bigint;
|
|
478
480
|
interCRatePercent: bigint;
|
|
479
481
|
interSuRatePercent: bigint;
|
|
480
|
-
isNewGroup: boolean;
|
|
481
482
|
}
|
|
482
483
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
483
484
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -569,11 +570,6 @@ export interface Comptroller extends BaseContract {
|
|
|
569
570
|
], [
|
|
570
571
|
void
|
|
571
572
|
], "nonpayable">;
|
|
572
|
-
_unlistMarket: TypedContractMethod<[
|
|
573
|
-
cToken: AddressLike
|
|
574
|
-
], [
|
|
575
|
-
void
|
|
576
|
-
], "nonpayable">;
|
|
577
573
|
accountAssets: TypedContractMethod<[
|
|
578
574
|
arg0: AddressLike,
|
|
579
575
|
arg1: BigNumberish
|
|
@@ -692,16 +688,6 @@ export interface Comptroller extends BaseContract {
|
|
|
692
688
|
], [
|
|
693
689
|
void
|
|
694
690
|
], "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">;
|
|
705
691
|
liquidationIncentive: TypedContractMethod<[
|
|
706
692
|
], [
|
|
707
693
|
[
|
|
@@ -762,14 +748,6 @@ export interface Comptroller extends BaseContract {
|
|
|
762
748
|
], [
|
|
763
749
|
void
|
|
764
750
|
], "nonpayable">;
|
|
765
|
-
redeemVerify: TypedContractMethod<[
|
|
766
|
-
cToken: AddressLike,
|
|
767
|
-
redeemer: AddressLike,
|
|
768
|
-
redeemAmount: BigNumberish,
|
|
769
|
-
redeemTokens: BigNumberish
|
|
770
|
-
], [
|
|
771
|
-
void
|
|
772
|
-
], "nonpayable">;
|
|
773
751
|
redemptionManager: TypedContractMethod<[], [string], "view">;
|
|
774
752
|
removeAssetGroup: TypedContractMethod<[
|
|
775
753
|
groupId: BigNumberish
|
|
@@ -790,15 +768,6 @@ export interface Comptroller extends BaseContract {
|
|
|
790
768
|
], [
|
|
791
769
|
void
|
|
792
770
|
], "nonpayable">;
|
|
793
|
-
repayBorrowVerify: TypedContractMethod<[
|
|
794
|
-
cToken: AddressLike,
|
|
795
|
-
payer: AddressLike,
|
|
796
|
-
borrower: AddressLike,
|
|
797
|
-
actualRepayAmount: BigNumberish,
|
|
798
|
-
borrowIndex: BigNumberish
|
|
799
|
-
], [
|
|
800
|
-
void
|
|
801
|
-
], "nonpayable">;
|
|
802
771
|
revokeRole: TypedContractMethod<[
|
|
803
772
|
role: BytesLike,
|
|
804
773
|
account: AddressLike
|
|
@@ -888,7 +857,6 @@ export interface Comptroller extends BaseContract {
|
|
|
888
857
|
], [
|
|
889
858
|
void
|
|
890
859
|
], "nonpayable">;
|
|
891
|
-
getFunction(nameOrSignature: "_unlistMarket"): TypedContractMethod<[cToken: AddressLike], [void], "nonpayable">;
|
|
892
860
|
getFunction(nameOrSignature: "accountAssets"): TypedContractMethod<[
|
|
893
861
|
arg0: AddressLike,
|
|
894
862
|
arg1: BigNumberish
|
|
@@ -995,16 +963,6 @@ export interface Comptroller extends BaseContract {
|
|
|
995
963
|
], [
|
|
996
964
|
void
|
|
997
965
|
], "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">;
|
|
1008
966
|
getFunction(nameOrSignature: "liquidationIncentive"): TypedContractMethod<[
|
|
1009
967
|
], [
|
|
1010
968
|
[
|
|
@@ -1065,14 +1023,6 @@ export interface Comptroller extends BaseContract {
|
|
|
1065
1023
|
], [
|
|
1066
1024
|
void
|
|
1067
1025
|
], "nonpayable">;
|
|
1068
|
-
getFunction(nameOrSignature: "redeemVerify"): TypedContractMethod<[
|
|
1069
|
-
cToken: AddressLike,
|
|
1070
|
-
redeemer: AddressLike,
|
|
1071
|
-
redeemAmount: BigNumberish,
|
|
1072
|
-
redeemTokens: BigNumberish
|
|
1073
|
-
], [
|
|
1074
|
-
void
|
|
1075
|
-
], "nonpayable">;
|
|
1076
1026
|
getFunction(nameOrSignature: "redemptionManager"): TypedContractMethod<[], [string], "view">;
|
|
1077
1027
|
getFunction(nameOrSignature: "removeAssetGroup"): TypedContractMethod<[groupId: BigNumberish], [void], "nonpayable">;
|
|
1078
1028
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
@@ -1089,15 +1039,6 @@ export interface Comptroller extends BaseContract {
|
|
|
1089
1039
|
], [
|
|
1090
1040
|
void
|
|
1091
1041
|
], "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">;
|
|
1101
1042
|
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
1102
1043
|
role: BytesLike,
|
|
1103
1044
|
account: AddressLike
|
|
@@ -1138,7 +1079,7 @@ export interface Comptroller extends BaseContract {
|
|
|
1138
1079
|
getEvent(key: "MarketEntered"): TypedContractEvent<MarketEnteredEvent.InputTuple, MarketEnteredEvent.OutputTuple, MarketEnteredEvent.OutputObject>;
|
|
1139
1080
|
getEvent(key: "MarketExited"): TypedContractEvent<MarketExitedEvent.InputTuple, MarketExitedEvent.OutputTuple, MarketExitedEvent.OutputObject>;
|
|
1140
1081
|
getEvent(key: "MarketListed"): TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1141
|
-
getEvent(key: "
|
|
1082
|
+
getEvent(key: "NewAssetGroup"): TypedContractEvent<NewAssetGroupEvent.InputTuple, NewAssetGroupEvent.OutputTuple, NewAssetGroupEvent.OutputObject>;
|
|
1142
1083
|
getEvent(key: "NewCap"): TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1143
1084
|
getEvent(key: "NewDependencies"): TypedContractEvent<NewDependenciesEvent.InputTuple, NewDependenciesEvent.OutputTuple, NewDependenciesEvent.OutputObject>;
|
|
1144
1085
|
getEvent(key: "NewGlobalConfig"): TypedContractEvent<NewGlobalConfigEvent.InputTuple, NewGlobalConfigEvent.OutputTuple, NewGlobalConfigEvent.OutputObject>;
|
|
@@ -1161,8 +1102,8 @@ export interface Comptroller extends BaseContract {
|
|
|
1161
1102
|
MarketExited: TypedContractEvent<MarketExitedEvent.InputTuple, MarketExitedEvent.OutputTuple, MarketExitedEvent.OutputObject>;
|
|
1162
1103
|
"MarketListed(address)": TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1163
1104
|
MarketListed: TypedContractEvent<MarketListedEvent.InputTuple, MarketListedEvent.OutputTuple, MarketListedEvent.OutputObject>;
|
|
1164
|
-
"
|
|
1165
|
-
|
|
1105
|
+
"NewAssetGroup(uint8,uint16,uint16,uint16,uint16,uint16)": TypedContractEvent<NewAssetGroupEvent.InputTuple, NewAssetGroupEvent.OutputTuple, NewAssetGroupEvent.OutputObject>;
|
|
1106
|
+
NewAssetGroup: TypedContractEvent<NewAssetGroupEvent.InputTuple, NewAssetGroupEvent.OutputTuple, NewAssetGroupEvent.OutputObject>;
|
|
1166
1107
|
"NewCap(address,uint120,uint120)": TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1167
1108
|
NewCap: TypedContractEvent<NewCapEvent.InputTuple, NewCapEvent.OutputTuple, NewCapEvent.OutputObject>;
|
|
1168
1109
|
"NewDependencies(address,address)": TypedContractEvent<NewDependenciesEvent.InputTuple, NewDependenciesEvent.OutputTuple, NewDependenciesEvent.OutputObject>;
|
|
@@ -1187,7 +1128,7 @@ export interface Comptroller extends BaseContract {
|
|
|
1187
1128
|
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
1188
1129
|
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
1189
1130
|
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
1190
|
-
"UpdateAssetGroup(uint8,uint16,uint16,uint16,uint16,uint16
|
|
1131
|
+
"UpdateAssetGroup(uint8,uint16,uint16,uint16,uint16,uint16)": TypedContractEvent<UpdateAssetGroupEvent.InputTuple, UpdateAssetGroupEvent.OutputTuple, UpdateAssetGroupEvent.OutputObject>;
|
|
1191
1132
|
UpdateAssetGroup: TypedContractEvent<UpdateAssetGroupEvent.InputTuple, UpdateAssetGroupEvent.OutputTuple, UpdateAssetGroupEvent.OutputObject>;
|
|
1192
1133
|
};
|
|
1193
1134
|
}
|
|
@@ -9,13 +9,12 @@ export declare namespace ICompLogic {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export interface ICompLogicInterface extends Interface {
|
|
12
|
-
getFunction(nameOrSignature: "distributeBorrowerComp" | "distributeSupplierComp" | "getHypotheticalSafeLimit" | "initializeMarket" | "setCompSpeed" | "
|
|
12
|
+
getFunction(nameOrSignature: "distributeBorrowerComp" | "distributeSupplierComp" | "getHypotheticalSafeLimit" | "initializeMarket" | "setCompSpeed" | "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;
|
|
19
18
|
encodeFunctionData(functionFragment: "updateCompBorrowIndex", values: [AddressLike, ICompLogic.ExpStruct]): string;
|
|
20
19
|
encodeFunctionData(functionFragment: "updateCompSupplyIndex", values: [AddressLike]): string;
|
|
21
20
|
decodeFunctionResult(functionFragment: "distributeBorrowerComp", data: BytesLike): Result;
|
|
@@ -23,7 +22,6 @@ export interface ICompLogicInterface extends Interface {
|
|
|
23
22
|
decodeFunctionResult(functionFragment: "getHypotheticalSafeLimit", data: BytesLike): Result;
|
|
24
23
|
decodeFunctionResult(functionFragment: "initializeMarket", data: BytesLike): Result;
|
|
25
24
|
decodeFunctionResult(functionFragment: "setCompSpeed", data: BytesLike): Result;
|
|
26
|
-
decodeFunctionResult(functionFragment: "uninitializeMarket", data: BytesLike): Result;
|
|
27
25
|
decodeFunctionResult(functionFragment: "updateCompBorrowIndex", data: BytesLike): Result;
|
|
28
26
|
decodeFunctionResult(functionFragment: "updateCompSupplyIndex", data: BytesLike): Result;
|
|
29
27
|
}
|
|
@@ -74,11 +72,6 @@ export interface ICompLogic extends BaseContract {
|
|
|
74
72
|
], [
|
|
75
73
|
void
|
|
76
74
|
], "nonpayable">;
|
|
77
|
-
uninitializeMarket: TypedContractMethod<[
|
|
78
|
-
cToken: AddressLike
|
|
79
|
-
], [
|
|
80
|
-
void
|
|
81
|
-
], "nonpayable">;
|
|
82
75
|
updateCompBorrowIndex: TypedContractMethod<[
|
|
83
76
|
cToken: AddressLike,
|
|
84
77
|
marketBorrowIndex: ICompLogic.ExpStruct
|
|
@@ -125,7 +118,6 @@ export interface ICompLogic extends BaseContract {
|
|
|
125
118
|
], [
|
|
126
119
|
void
|
|
127
120
|
], "nonpayable">;
|
|
128
|
-
getFunction(nameOrSignature: "uninitializeMarket"): TypedContractMethod<[cToken: AddressLike], [void], "nonpayable">;
|
|
129
121
|
getFunction(nameOrSignature: "updateCompBorrowIndex"): TypedContractMethod<[
|
|
130
122
|
cToken: AddressLike,
|
|
131
123
|
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" | "
|
|
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;
|
|
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,24 +99,14 @@ 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;
|
|
110
102
|
encodeFunctionData(functionFragment: "liquidationIncentive", values?: undefined): string;
|
|
111
103
|
encodeFunctionData(functionFragment: "marketConfig", values: [AddressLike]): string;
|
|
112
104
|
encodeFunctionData(functionFragment: "markets", values: [AddressLike]): string;
|
|
113
105
|
encodeFunctionData(functionFragment: "mintAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
114
106
|
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
115
107
|
encodeFunctionData(functionFragment: "redeemAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
116
|
-
encodeFunctionData(functionFragment: "redeemVerify", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
117
108
|
encodeFunctionData(functionFragment: "redemptionManager", values?: undefined): string;
|
|
118
109
|
encodeFunctionData(functionFragment: "repayBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
119
|
-
encodeFunctionData(functionFragment: "repayBorrowVerify", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
120
110
|
encodeFunctionData(functionFragment: "seizeAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
121
111
|
encodeFunctionData(functionFragment: "seizeVerify", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
122
112
|
encodeFunctionData(functionFragment: "timelock", values?: undefined): string;
|
|
@@ -137,17 +127,14 @@ export interface IComptrollerInterface extends Interface {
|
|
|
137
127
|
decodeFunctionResult(functionFragment: "isComptroller", data: BytesLike): Result;
|
|
138
128
|
decodeFunctionResult(functionFragment: "isListed", data: BytesLike): Result;
|
|
139
129
|
decodeFunctionResult(functionFragment: "liquidateBorrowAllowed", data: BytesLike): Result;
|
|
140
|
-
decodeFunctionResult(functionFragment: "liquidateBorrowVerify", data: BytesLike): Result;
|
|
141
130
|
decodeFunctionResult(functionFragment: "liquidationIncentive", data: BytesLike): Result;
|
|
142
131
|
decodeFunctionResult(functionFragment: "marketConfig", data: BytesLike): Result;
|
|
143
132
|
decodeFunctionResult(functionFragment: "markets", data: BytesLike): Result;
|
|
144
133
|
decodeFunctionResult(functionFragment: "mintAllowed", data: BytesLike): Result;
|
|
145
134
|
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
146
135
|
decodeFunctionResult(functionFragment: "redeemAllowed", data: BytesLike): Result;
|
|
147
|
-
decodeFunctionResult(functionFragment: "redeemVerify", data: BytesLike): Result;
|
|
148
136
|
decodeFunctionResult(functionFragment: "redemptionManager", data: BytesLike): Result;
|
|
149
137
|
decodeFunctionResult(functionFragment: "repayBorrowAllowed", data: BytesLike): Result;
|
|
150
|
-
decodeFunctionResult(functionFragment: "repayBorrowVerify", data: BytesLike): Result;
|
|
151
138
|
decodeFunctionResult(functionFragment: "seizeAllowed", data: BytesLike): Result;
|
|
152
139
|
decodeFunctionResult(functionFragment: "seizeVerify", data: BytesLike): Result;
|
|
153
140
|
decodeFunctionResult(functionFragment: "timelock", data: BytesLike): Result;
|
|
@@ -304,16 +291,6 @@ export interface IComptroller extends BaseContract {
|
|
|
304
291
|
], [
|
|
305
292
|
void
|
|
306
293
|
], "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">;
|
|
317
294
|
liquidationIncentive: TypedContractMethod<[
|
|
318
295
|
], [
|
|
319
296
|
LiquidationIncentiveStructOutput
|
|
@@ -343,14 +320,6 @@ export interface IComptroller extends BaseContract {
|
|
|
343
320
|
], [
|
|
344
321
|
void
|
|
345
322
|
], "nonpayable">;
|
|
346
|
-
redeemVerify: TypedContractMethod<[
|
|
347
|
-
cToken: AddressLike,
|
|
348
|
-
redeemer: AddressLike,
|
|
349
|
-
redeemAmount: BigNumberish,
|
|
350
|
-
redeemTokens: BigNumberish
|
|
351
|
-
], [
|
|
352
|
-
void
|
|
353
|
-
], "nonpayable">;
|
|
354
323
|
redemptionManager: TypedContractMethod<[], [string], "view">;
|
|
355
324
|
repayBorrowAllowed: TypedContractMethod<[
|
|
356
325
|
cToken: AddressLike,
|
|
@@ -360,15 +329,6 @@ export interface IComptroller extends BaseContract {
|
|
|
360
329
|
], [
|
|
361
330
|
void
|
|
362
331
|
], "nonpayable">;
|
|
363
|
-
repayBorrowVerify: TypedContractMethod<[
|
|
364
|
-
cToken: AddressLike,
|
|
365
|
-
payer: AddressLike,
|
|
366
|
-
borrower: AddressLike,
|
|
367
|
-
actualRepayAmount: BigNumberish,
|
|
368
|
-
borrowIndex: BigNumberish
|
|
369
|
-
], [
|
|
370
|
-
void
|
|
371
|
-
], "nonpayable">;
|
|
372
332
|
seizeAllowed: TypedContractMethod<[
|
|
373
333
|
cTokenCollateral: AddressLike,
|
|
374
334
|
cTokenBorrowed: AddressLike,
|
|
@@ -443,16 +403,6 @@ export interface IComptroller extends BaseContract {
|
|
|
443
403
|
], [
|
|
444
404
|
void
|
|
445
405
|
], "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">;
|
|
456
406
|
getFunction(nameOrSignature: "liquidationIncentive"): TypedContractMethod<[], [LiquidationIncentiveStructOutput], "view">;
|
|
457
407
|
getFunction(nameOrSignature: "marketConfig"): TypedContractMethod<[
|
|
458
408
|
cToken: AddressLike
|
|
@@ -479,14 +429,6 @@ export interface IComptroller extends BaseContract {
|
|
|
479
429
|
], [
|
|
480
430
|
void
|
|
481
431
|
], "nonpayable">;
|
|
482
|
-
getFunction(nameOrSignature: "redeemVerify"): TypedContractMethod<[
|
|
483
|
-
cToken: AddressLike,
|
|
484
|
-
redeemer: AddressLike,
|
|
485
|
-
redeemAmount: BigNumberish,
|
|
486
|
-
redeemTokens: BigNumberish
|
|
487
|
-
], [
|
|
488
|
-
void
|
|
489
|
-
], "nonpayable">;
|
|
490
432
|
getFunction(nameOrSignature: "redemptionManager"): TypedContractMethod<[], [string], "view">;
|
|
491
433
|
getFunction(nameOrSignature: "repayBorrowAllowed"): TypedContractMethod<[
|
|
492
434
|
cToken: AddressLike,
|
|
@@ -496,15 +438,6 @@ export interface IComptroller extends BaseContract {
|
|
|
496
438
|
], [
|
|
497
439
|
void
|
|
498
440
|
], "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">;
|
|
508
441
|
getFunction(nameOrSignature: "seizeAllowed"): TypedContractMethod<[
|
|
509
442
|
cTokenCollateral: AddressLike,
|
|
510
443
|
cTokenBorrowed: AddressLike,
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import type * as api3AdapterSol from "./API3Adapter.sol";
|
|
2
|
-
export type { api3AdapterSol };
|
|
3
1
|
import type * as priceOracleSol from "./PriceOracle.sol";
|
|
4
2
|
export type { priceOracleSol };
|
|
5
|
-
import type * as stakedAngleAdapterSol from "./StakedAngleAdapter.sol";
|
|
6
|
-
export type { stakedAngleAdapterSol };
|
|
7
3
|
import type * as wstEthAdapterSol from "./WstETHAdapter.sol";
|
|
8
4
|
export type { wstEthAdapterSol };
|
|
9
5
|
import type * as wstMtrgAdapterSol from "./WstMTRGAdapter.sol";
|
|
10
6
|
export type { wstMtrgAdapterSol };
|
|
11
|
-
import type * as stEurAdapterSol from "./stEURAdapter.sol";
|
|
12
|
-
export type { stEurAdapterSol };
|
|
13
|
-
import type * as stUsdAdapterSol from "./stUSDAdapter.sol";
|
|
14
|
-
export type { stUsdAdapterSol };
|
|
15
7
|
import type * as wstMtrgOracleSol from "./wstMTRGOracle.sol";
|
|
16
8
|
export type { wstMtrgOracleSol };
|
|
17
9
|
export type { FeedPriceOracle } from "./FeedPriceOracle";
|