@meterio/sumer-js 0.1.35 → 0.1.37
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 +25 -0
- package/dist/nodejs/abi.js +443 -83
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/comptroller.d.ts +10 -2
- package/dist/nodejs/comptroller.js +17 -3
- package/dist/nodejs/comptroller.js.map +1 -1
- package/dist/nodejs/constants/metertest.d.ts +0 -1
- package/dist/nodejs/constants/metertest.js +28 -39
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/errors.d.ts +4 -0
- package/dist/nodejs/errors.js +4 -0
- package/dist/nodejs/errors.js.map +1 -1
- package/dist/nodejs/index.d.ts +29 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +19 -10
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +19 -10
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +19 -10
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +14 -3
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +19 -10
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +4 -23
- package/dist/nodejs/typechain/contracts/Comptroller/RedemptionManager.d.ts +58 -17
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel.d.ts +91 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICToken.d.ts +14 -3
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/ICToken.d.ts +15 -1
- package/dist/nodejs/typechain/contracts/Timelock.d.ts +29 -2
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +18 -6
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +21 -6
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +18 -6
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +21 -6
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +9 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +11 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +17 -5
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +20 -5
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +18 -6
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +21 -6
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +5 -25
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +6 -32
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +54 -22
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +68 -28
- 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/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.d.ts +152 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.js +210 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/index.js +9 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +2 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.d.ts +26 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js +34 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.d.ts +9 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js +11 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +46 -3
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +60 -5
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +18 -0
- package/dist/nodejs/typechain/index.d.ts +2 -0
- package/dist/nodejs/typechain/index.js +4 -2
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +4 -3
|
@@ -35,7 +35,14 @@ export interface CTokenStorageInterface extends Interface {
|
|
|
35
35
|
encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
|
|
36
36
|
encodeFunctionData(functionFragment: "protocolSeizeShareMantissa", values?: undefined): string;
|
|
37
37
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
38
|
-
encodeFunctionData(functionFragment: "seize", values: [
|
|
38
|
+
encodeFunctionData(functionFragment: "seize", values: [
|
|
39
|
+
AddressLike,
|
|
40
|
+
AddressLike,
|
|
41
|
+
BigNumberish,
|
|
42
|
+
BigNumberish,
|
|
43
|
+
boolean,
|
|
44
|
+
BigNumberish
|
|
45
|
+
]): string;
|
|
39
46
|
encodeFunctionData(functionFragment: "supplyRatePerBlock", values?: undefined): string;
|
|
40
47
|
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
41
48
|
encodeFunctionData(functionFragment: "totalBorrows", values?: undefined): string;
|
|
@@ -535,7 +542,9 @@ export interface CTokenStorage extends BaseContract {
|
|
|
535
542
|
liquidator: AddressLike,
|
|
536
543
|
borrower: AddressLike,
|
|
537
544
|
seizeTokens: BigNumberish,
|
|
538
|
-
|
|
545
|
+
seizeProfitTokens: BigNumberish,
|
|
546
|
+
isRedemption: boolean,
|
|
547
|
+
redemptionRateMantissa: BigNumberish
|
|
539
548
|
], [
|
|
540
549
|
bigint
|
|
541
550
|
], "nonpayable">;
|
|
@@ -627,7 +636,9 @@ export interface CTokenStorage extends BaseContract {
|
|
|
627
636
|
liquidator: AddressLike,
|
|
628
637
|
borrower: AddressLike,
|
|
629
638
|
seizeTokens: BigNumberish,
|
|
630
|
-
|
|
639
|
+
seizeProfitTokens: BigNumberish,
|
|
640
|
+
isRedemption: boolean,
|
|
641
|
+
redemptionRateMantissa: BigNumberish
|
|
631
642
|
], [
|
|
632
643
|
bigint
|
|
633
644
|
], "nonpayable">;
|
|
@@ -57,7 +57,7 @@ export interface SuErc20Interface extends Interface {
|
|
|
57
57
|
encodeFunctionData(functionFragment: "isCToken", values?: undefined): string;
|
|
58
58
|
encodeFunctionData(functionFragment: "isDeprecated", values?: undefined): string;
|
|
59
59
|
encodeFunctionData(functionFragment: "liquidateBorrow", values: [AddressLike, BigNumberish, AddressLike]): string;
|
|
60
|
-
encodeFunctionData(functionFragment: "liquidateCalculateSeizeTokens", values: [AddressLike, BigNumberish
|
|
60
|
+
encodeFunctionData(functionFragment: "liquidateCalculateSeizeTokens", values: [AddressLike, BigNumberish]): string;
|
|
61
61
|
encodeFunctionData(functionFragment: "mint", values: [BigNumberish]): string;
|
|
62
62
|
encodeFunctionData(functionFragment: "mintWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
63
63
|
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
@@ -70,7 +70,14 @@ export interface SuErc20Interface extends Interface {
|
|
|
70
70
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
|
|
71
71
|
encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
72
72
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
73
|
-
encodeFunctionData(functionFragment: "seize", values: [
|
|
73
|
+
encodeFunctionData(functionFragment: "seize", values: [
|
|
74
|
+
AddressLike,
|
|
75
|
+
AddressLike,
|
|
76
|
+
BigNumberish,
|
|
77
|
+
BigNumberish,
|
|
78
|
+
boolean,
|
|
79
|
+
BigNumberish
|
|
80
|
+
]): string;
|
|
74
81
|
encodeFunctionData(functionFragment: "supplyRatePerBlock", values?: undefined): string;
|
|
75
82
|
encodeFunctionData(functionFragment: "sweepToken", values: [AddressLike]): string;
|
|
76
83
|
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
@@ -643,10 +650,9 @@ export interface SuErc20 extends BaseContract {
|
|
|
643
650
|
], "nonpayable">;
|
|
644
651
|
liquidateCalculateSeizeTokens: TypedContractMethod<[
|
|
645
652
|
cTokenCollateral: AddressLike,
|
|
646
|
-
actualRepayAmount: BigNumberish
|
|
647
|
-
liquidationIncentiveMantissa: BigNumberish
|
|
653
|
+
actualRepayAmount: BigNumberish
|
|
648
654
|
], [
|
|
649
|
-
[bigint, bigint]
|
|
655
|
+
[bigint, bigint, bigint]
|
|
650
656
|
], "view">;
|
|
651
657
|
mint: TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
|
|
652
658
|
mintWithPermit: TypedContractMethod<[
|
|
@@ -699,7 +705,9 @@ export interface SuErc20 extends BaseContract {
|
|
|
699
705
|
liquidator: AddressLike,
|
|
700
706
|
borrower: AddressLike,
|
|
701
707
|
seizeTokens: BigNumberish,
|
|
702
|
-
|
|
708
|
+
seizeProfitTokens: BigNumberish,
|
|
709
|
+
isRedemption: boolean,
|
|
710
|
+
redemptionRateMantissa: BigNumberish
|
|
703
711
|
], [
|
|
704
712
|
bigint
|
|
705
713
|
], "nonpayable">;
|
|
@@ -827,10 +835,9 @@ export interface SuErc20 extends BaseContract {
|
|
|
827
835
|
], "nonpayable">;
|
|
828
836
|
getFunction(nameOrSignature: "liquidateCalculateSeizeTokens"): TypedContractMethod<[
|
|
829
837
|
cTokenCollateral: AddressLike,
|
|
830
|
-
actualRepayAmount: BigNumberish
|
|
831
|
-
liquidationIncentiveMantissa: BigNumberish
|
|
838
|
+
actualRepayAmount: BigNumberish
|
|
832
839
|
], [
|
|
833
|
-
[bigint, bigint]
|
|
840
|
+
[bigint, bigint, bigint]
|
|
834
841
|
], "view">;
|
|
835
842
|
getFunction(nameOrSignature: "mint"): TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
|
|
836
843
|
getFunction(nameOrSignature: "mintWithPermit"): TypedContractMethod<[
|
|
@@ -871,7 +878,9 @@ export interface SuErc20 extends BaseContract {
|
|
|
871
878
|
liquidator: AddressLike,
|
|
872
879
|
borrower: AddressLike,
|
|
873
880
|
seizeTokens: BigNumberish,
|
|
874
|
-
|
|
881
|
+
seizeProfitTokens: BigNumberish,
|
|
882
|
+
isRedemption: boolean,
|
|
883
|
+
redemptionRateMantissa: BigNumberish
|
|
875
884
|
], [
|
|
876
885
|
bigint
|
|
877
886
|
], "nonpayable">;
|
|
@@ -32,7 +32,7 @@ export declare namespace IComptroller {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export interface ComptrollerInterface extends Interface {
|
|
35
|
-
getFunction(nameOrSignature: "CAPPER_ROLE" | "COMP_LOGIC" | "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_borrowGuardianPaused" | "_getBorrowCapGuardian" | "_getPauseGuardian" | "_mintGuardianPaused" | "_setBorrowCapGuardian" | "_setBorrowPaused" | "_setCloseFactor" | "_setLiquidationIncentive" | "_setMarketBorrowCaps" | "_setMaxSupply" | "_setMintPaused" | "_setPauseGuardian" | "_setPriceOracle" | "_setProtocolPaused" | "_setSeizePaused" | "_setTransferPaused" | "_supportMarket" | "accountAssets" | "accountLiquidity" | "allMarkets" | "assetGroupIdToIndex" | "borrowAllowed" | "borrowCapGuardian" | "borrowCaps" | "borrowGuardianPaused" | "checkMembership" | "cleanAssetGroup" | "closeFactorMantissa" | "compLogic" | "enterMarkets" | "enterMarketsForAll" | "exitMarket" | "getAccountLiquidity" | "getAccountSafeLimit" | "getAllAssetGroup" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupByIndex" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "getUnderlyingPriceNormalized" | "governanceToken" | "grantRole" | "hasRole" | "heteroLiquidationIncentiveMantissa" | "homoLiquidationIncentiveMantissa" | "initialize" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "maxSupply" | "minSuBorrowValue" | "mintAllowed" | "mintGuardianPaused" | "oracle" | "pauseGuardian" | "redeemAllowed" | "
|
|
35
|
+
getFunction(nameOrSignature: "CAPPER_ROLE" | "COMP_LOGIC" | "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_borrowGuardianPaused" | "_getBorrowCapGuardian" | "_getPauseGuardian" | "_mintGuardianPaused" | "_setBorrowCapGuardian" | "_setBorrowPaused" | "_setCloseFactor" | "_setLiquidationIncentive" | "_setMarketBorrowCaps" | "_setMaxSupply" | "_setMintPaused" | "_setPauseGuardian" | "_setPriceOracle" | "_setProtocolPaused" | "_setSeizePaused" | "_setTransferPaused" | "_supportMarket" | "accountAssets" | "accountLiquidity" | "allMarkets" | "assetGroupIdToIndex" | "borrowAllowed" | "borrowCapGuardian" | "borrowCaps" | "borrowGuardianPaused" | "checkMembership" | "cleanAssetGroup" | "closeFactorMantissa" | "compLogic" | "enterMarkets" | "enterMarketsForAll" | "exitMarket" | "getAccountLiquidity" | "getAccountSafeLimit" | "getAllAssetGroup" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupByIndex" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "getUnderlyingPriceNormalized" | "governanceToken" | "grantRole" | "hasRole" | "heteroLiquidationIncentiveMantissa" | "homoLiquidationIncentiveMantissa" | "initialize" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "maxSupply" | "minSuBorrowValue" | "mintAllowed" | "mintGuardianPaused" | "oracle" | "pauseGuardian" | "redeemAllowed" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinSuBorrowValue" | "setTimelock" | "suTokenRateMantissa" | "supportsInterface" | "sutokenLiquidationIncentiveMantissa" | "timelock" | "transferAllowed" | "transferGuardianPaused"): FunctionFragment;
|
|
36
36
|
getEvent(nameOrSignatureOrTopic: "ActionPaused" | "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "NewAssetGroup" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewCloseFactor" | "NewLiquidationIncentive" | "NewPauseGuardian" | "NewPriceOracle" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SetMaxSupply"): EventFragment;
|
|
37
37
|
encodeFunctionData(functionFragment: "CAPPER_ROLE", values?: undefined): string;
|
|
38
38
|
encodeFunctionData(functionFragment: "COMP_LOGIC", values?: undefined): string;
|
|
@@ -99,8 +99,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
99
99
|
BigNumberish,
|
|
100
100
|
BigNumberish,
|
|
101
101
|
BigNumberish,
|
|
102
|
-
BigNumberish
|
|
103
|
-
AddressLike
|
|
102
|
+
BigNumberish
|
|
104
103
|
]): string;
|
|
105
104
|
encodeFunctionData(functionFragment: "isComptroller", values?: undefined): string;
|
|
106
105
|
encodeFunctionData(functionFragment: "isListed", values: [AddressLike]): string;
|
|
@@ -115,7 +114,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
115
114
|
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
116
115
|
encodeFunctionData(functionFragment: "pauseGuardian", values?: undefined): string;
|
|
117
116
|
encodeFunctionData(functionFragment: "redeemAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
118
|
-
encodeFunctionData(functionFragment: "redemptionManager", values?: undefined): string;
|
|
119
117
|
encodeFunctionData(functionFragment: "removeAssetGroup", values: [BigNumberish]): string;
|
|
120
118
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
121
119
|
encodeFunctionData(functionFragment: "repayBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
@@ -136,7 +134,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
136
134
|
encodeFunctionData(functionFragment: "setCompSpeed", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
137
135
|
encodeFunctionData(functionFragment: "setGovTokenAddress", values: [AddressLike]): string;
|
|
138
136
|
encodeFunctionData(functionFragment: "setMinSuBorrowValue", values: [BigNumberish]): string;
|
|
139
|
-
encodeFunctionData(functionFragment: "setRedemptionManager", values: [AddressLike]): string;
|
|
140
137
|
encodeFunctionData(functionFragment: "setTimelock", values: [AddressLike]): string;
|
|
141
138
|
encodeFunctionData(functionFragment: "suTokenRateMantissa", values?: undefined): string;
|
|
142
139
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
@@ -214,7 +211,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
214
211
|
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
215
212
|
decodeFunctionResult(functionFragment: "pauseGuardian", data: BytesLike): Result;
|
|
216
213
|
decodeFunctionResult(functionFragment: "redeemAllowed", data: BytesLike): Result;
|
|
217
|
-
decodeFunctionResult(functionFragment: "redemptionManager", data: BytesLike): Result;
|
|
218
214
|
decodeFunctionResult(functionFragment: "removeAssetGroup", data: BytesLike): Result;
|
|
219
215
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
220
216
|
decodeFunctionResult(functionFragment: "repayBorrowAllowed", data: BytesLike): Result;
|
|
@@ -227,7 +223,6 @@ export interface ComptrollerInterface extends Interface {
|
|
|
227
223
|
decodeFunctionResult(functionFragment: "setCompSpeed", data: BytesLike): Result;
|
|
228
224
|
decodeFunctionResult(functionFragment: "setGovTokenAddress", data: BytesLike): Result;
|
|
229
225
|
decodeFunctionResult(functionFragment: "setMinSuBorrowValue", data: BytesLike): Result;
|
|
230
|
-
decodeFunctionResult(functionFragment: "setRedemptionManager", data: BytesLike): Result;
|
|
231
226
|
decodeFunctionResult(functionFragment: "setTimelock", data: BytesLike): Result;
|
|
232
227
|
decodeFunctionResult(functionFragment: "suTokenRateMantissa", data: BytesLike): Result;
|
|
233
228
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
@@ -760,8 +755,7 @@ export interface Comptroller extends BaseContract {
|
|
|
760
755
|
_closeFactorMantissa: BigNumberish,
|
|
761
756
|
_heteroLiquidationIncentiveMantissa: BigNumberish,
|
|
762
757
|
_homoLiquidationIncentiveMantissa: BigNumberish,
|
|
763
|
-
_sutokenLiquidationIncentiveMantissa: BigNumberish
|
|
764
|
-
_redemptionManager: AddressLike
|
|
758
|
+
_sutokenLiquidationIncentiveMantissa: BigNumberish
|
|
765
759
|
], [
|
|
766
760
|
void
|
|
767
761
|
], "nonpayable">;
|
|
@@ -817,7 +811,6 @@ export interface Comptroller extends BaseContract {
|
|
|
817
811
|
], [
|
|
818
812
|
void
|
|
819
813
|
], "nonpayable">;
|
|
820
|
-
redemptionManager: TypedContractMethod<[], [string], "view">;
|
|
821
814
|
removeAssetGroup: TypedContractMethod<[
|
|
822
815
|
groupId: BigNumberish
|
|
823
816
|
], [
|
|
@@ -891,11 +884,6 @@ export interface Comptroller extends BaseContract {
|
|
|
891
884
|
], [
|
|
892
885
|
void
|
|
893
886
|
], "nonpayable">;
|
|
894
|
-
setRedemptionManager: TypedContractMethod<[
|
|
895
|
-
_redemptionManager: AddressLike
|
|
896
|
-
], [
|
|
897
|
-
void
|
|
898
|
-
], "nonpayable">;
|
|
899
887
|
setTimelock: TypedContractMethod<[
|
|
900
888
|
_timelock: AddressLike
|
|
901
889
|
], [
|
|
@@ -1094,8 +1082,7 @@ export interface Comptroller extends BaseContract {
|
|
|
1094
1082
|
_closeFactorMantissa: BigNumberish,
|
|
1095
1083
|
_heteroLiquidationIncentiveMantissa: BigNumberish,
|
|
1096
1084
|
_homoLiquidationIncentiveMantissa: BigNumberish,
|
|
1097
|
-
_sutokenLiquidationIncentiveMantissa: BigNumberish
|
|
1098
|
-
_redemptionManager: AddressLike
|
|
1085
|
+
_sutokenLiquidationIncentiveMantissa: BigNumberish
|
|
1099
1086
|
], [
|
|
1100
1087
|
void
|
|
1101
1088
|
], "nonpayable">;
|
|
@@ -1144,7 +1131,6 @@ export interface Comptroller extends BaseContract {
|
|
|
1144
1131
|
], [
|
|
1145
1132
|
void
|
|
1146
1133
|
], "nonpayable">;
|
|
1147
|
-
getFunction(nameOrSignature: "redemptionManager"): TypedContractMethod<[], [string], "view">;
|
|
1148
1134
|
getFunction(nameOrSignature: "removeAssetGroup"): TypedContractMethod<[groupId: BigNumberish], [bigint], "nonpayable">;
|
|
1149
1135
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
1150
1136
|
role: BytesLike,
|
|
@@ -1206,11 +1192,6 @@ export interface Comptroller extends BaseContract {
|
|
|
1206
1192
|
], [
|
|
1207
1193
|
void
|
|
1208
1194
|
], "nonpayable">;
|
|
1209
|
-
getFunction(nameOrSignature: "setRedemptionManager"): TypedContractMethod<[
|
|
1210
|
-
_redemptionManager: AddressLike
|
|
1211
|
-
], [
|
|
1212
|
-
void
|
|
1213
|
-
], "nonpayable">;
|
|
1214
1195
|
getFunction(nameOrSignature: "setTimelock"): TypedContractMethod<[_timelock: AddressLike], [void], "nonpayable">;
|
|
1215
1196
|
getFunction(nameOrSignature: "suTokenRateMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
1216
1197
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface RedemptionManagerInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "BETA" | "DECIMAL_PRECISION" | "DEFAULT_ADMIN_ROLE" | "MAX_BORROWING_FEE" | "MINUTE_DECAY_FACTOR" | "REDEMPTION_FEE_FLOOR" | "SECONDS_IN_ONE_MINUTE" | "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "BaseRateUpdated" | "Initialized" | "LastFeeOpTimeUpdated" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked"): EventFragment;
|
|
4
|
+
getFunction(nameOrSignature: "BETA" | "DECIMAL_PRECISION" | "DEFAULT_ADMIN_ROLE" | "MAX_BORROWING_FEE" | "MINUTE_DECAY_FACTOR" | "REDEMPTION_FEE_FLOOR" | "SECONDS_IN_ONE_MINUTE" | "baseRate" | "baseRateMap" | "calcActualRepayAndSeize" | "comptroller" | "decayBaseRateFromBorrowing" | "getCurrentRedemptionRate" | "getRedemptionRate" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "initialize" | "lastFeeOperationTime" | "lastFeeOperationTimeMap" | "redeemFaceValue" | "redeemFaceValueWithPermit" | "redeemFaceValueWithProviderPreview" | "redemptionSigner" | "renounceRole" | "revokeRole" | "setComptroller" | "setRedemptionSigner" | "supportsInterface"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "BaseRateUpdated" | "Initialized" | "LastFeeOpTimeUpdated" | "NewComptroller" | "NewRedemptionSigner" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "BETA", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "DECIMAL_PRECISION", values?: undefined): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
@@ -10,7 +10,6 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
10
10
|
encodeFunctionData(functionFragment: "MINUTE_DECAY_FACTOR", values?: undefined): string;
|
|
11
11
|
encodeFunctionData(functionFragment: "REDEMPTION_FEE_FLOOR", values?: undefined): string;
|
|
12
12
|
encodeFunctionData(functionFragment: "SECONDS_IN_ONE_MINUTE", values?: undefined): string;
|
|
13
|
-
encodeFunctionData(functionFragment: "_redeemFaceValueSigner", values?: undefined): string;
|
|
14
13
|
encodeFunctionData(functionFragment: "baseRate", values?: undefined): string;
|
|
15
14
|
encodeFunctionData(functionFragment: "baseRateMap", values: [AddressLike]): string;
|
|
16
15
|
encodeFunctionData(functionFragment: "calcActualRepayAndSeize", values: [BigNumberish, AddressLike, AddressLike, AddressLike]): string;
|
|
@@ -23,7 +22,7 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
23
22
|
encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string;
|
|
24
23
|
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
25
24
|
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
26
|
-
encodeFunctionData(functionFragment: "initialize", values: [AddressLike]): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike, AddressLike]): string;
|
|
27
26
|
encodeFunctionData(functionFragment: "lastFeeOperationTime", values?: undefined): string;
|
|
28
27
|
encodeFunctionData(functionFragment: "lastFeeOperationTimeMap", values: [AddressLike]): string;
|
|
29
28
|
encodeFunctionData(functionFragment: "redeemFaceValue", values: [AddressLike, BigNumberish, AddressLike[], BigNumberish, BytesLike]): string;
|
|
@@ -37,11 +36,11 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
37
36
|
BytesLike
|
|
38
37
|
]): string;
|
|
39
38
|
encodeFunctionData(functionFragment: "redeemFaceValueWithProviderPreview", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
39
|
+
encodeFunctionData(functionFragment: "redemptionSigner", values?: undefined): string;
|
|
40
40
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
41
41
|
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
42
42
|
encodeFunctionData(functionFragment: "setComptroller", values: [AddressLike]): string;
|
|
43
|
-
encodeFunctionData(functionFragment: "
|
|
44
|
-
encodeFunctionData(functionFragment: "sortedBorrows", values?: undefined): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "setRedemptionSigner", values: [AddressLike]): string;
|
|
45
44
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
46
45
|
decodeFunctionResult(functionFragment: "BETA", data: BytesLike): Result;
|
|
47
46
|
decodeFunctionResult(functionFragment: "DECIMAL_PRECISION", data: BytesLike): Result;
|
|
@@ -50,7 +49,6 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
50
49
|
decodeFunctionResult(functionFragment: "MINUTE_DECAY_FACTOR", data: BytesLike): Result;
|
|
51
50
|
decodeFunctionResult(functionFragment: "REDEMPTION_FEE_FLOOR", data: BytesLike): Result;
|
|
52
51
|
decodeFunctionResult(functionFragment: "SECONDS_IN_ONE_MINUTE", data: BytesLike): Result;
|
|
53
|
-
decodeFunctionResult(functionFragment: "_redeemFaceValueSigner", data: BytesLike): Result;
|
|
54
52
|
decodeFunctionResult(functionFragment: "baseRate", data: BytesLike): Result;
|
|
55
53
|
decodeFunctionResult(functionFragment: "baseRateMap", data: BytesLike): Result;
|
|
56
54
|
decodeFunctionResult(functionFragment: "calcActualRepayAndSeize", data: BytesLike): Result;
|
|
@@ -69,11 +67,11 @@ export interface RedemptionManagerInterface extends Interface {
|
|
|
69
67
|
decodeFunctionResult(functionFragment: "redeemFaceValue", data: BytesLike): Result;
|
|
70
68
|
decodeFunctionResult(functionFragment: "redeemFaceValueWithPermit", data: BytesLike): Result;
|
|
71
69
|
decodeFunctionResult(functionFragment: "redeemFaceValueWithProviderPreview", data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: "redemptionSigner", data: BytesLike): Result;
|
|
72
71
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
73
72
|
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
74
73
|
decodeFunctionResult(functionFragment: "setComptroller", data: BytesLike): Result;
|
|
75
|
-
decodeFunctionResult(functionFragment: "
|
|
76
|
-
decodeFunctionResult(functionFragment: "sortedBorrows", data: BytesLike): Result;
|
|
74
|
+
decodeFunctionResult(functionFragment: "setRedemptionSigner", data: BytesLike): Result;
|
|
77
75
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
78
76
|
}
|
|
79
77
|
export declare namespace BaseRateUpdatedEvent {
|
|
@@ -111,6 +109,33 @@ export declare namespace LastFeeOpTimeUpdatedEvent {
|
|
|
111
109
|
type Log = TypedEventLog<Event>;
|
|
112
110
|
type LogDescription = TypedLogDescription<Event>;
|
|
113
111
|
}
|
|
112
|
+
export declare namespace NewComptrollerEvent {
|
|
113
|
+
type InputTuple = [
|
|
114
|
+
oldComptroller: AddressLike,
|
|
115
|
+
newComptroller: AddressLike
|
|
116
|
+
];
|
|
117
|
+
type OutputTuple = [oldComptroller: string, newComptroller: string];
|
|
118
|
+
interface OutputObject {
|
|
119
|
+
oldComptroller: string;
|
|
120
|
+
newComptroller: string;
|
|
121
|
+
}
|
|
122
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
123
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
124
|
+
type Log = TypedEventLog<Event>;
|
|
125
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
126
|
+
}
|
|
127
|
+
export declare namespace NewRedemptionSignerEvent {
|
|
128
|
+
type InputTuple = [oldSigner: AddressLike, newSigner: AddressLike];
|
|
129
|
+
type OutputTuple = [oldSigner: string, newSigner: string];
|
|
130
|
+
interface OutputObject {
|
|
131
|
+
oldSigner: string;
|
|
132
|
+
newSigner: string;
|
|
133
|
+
}
|
|
134
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
135
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
136
|
+
type Log = TypedEventLog<Event>;
|
|
137
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
138
|
+
}
|
|
114
139
|
export declare namespace RoleAdminChangedEvent {
|
|
115
140
|
type InputTuple = [
|
|
116
141
|
role: BytesLike,
|
|
@@ -186,7 +211,6 @@ export interface RedemptionManager extends BaseContract {
|
|
|
186
211
|
MINUTE_DECAY_FACTOR: TypedContractMethod<[], [bigint], "view">;
|
|
187
212
|
REDEMPTION_FEE_FLOOR: TypedContractMethod<[], [bigint], "view">;
|
|
188
213
|
SECONDS_IN_ONE_MINUTE: TypedContractMethod<[], [bigint], "view">;
|
|
189
|
-
_redeemFaceValueSigner: TypedContractMethod<[], [string], "view">;
|
|
190
214
|
baseRate: TypedContractMethod<[], [bigint], "view">;
|
|
191
215
|
baseRateMap: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
192
216
|
calcActualRepayAndSeize: TypedContractMethod<[
|
|
@@ -235,7 +259,13 @@ export interface RedemptionManager extends BaseContract {
|
|
|
235
259
|
], [
|
|
236
260
|
boolean
|
|
237
261
|
], "view">;
|
|
238
|
-
initialize: TypedContractMethod<[
|
|
262
|
+
initialize: TypedContractMethod<[
|
|
263
|
+
_admin: AddressLike,
|
|
264
|
+
_comptroller: AddressLike,
|
|
265
|
+
_redemptionSigner: AddressLike
|
|
266
|
+
], [
|
|
267
|
+
void
|
|
268
|
+
], "nonpayable">;
|
|
239
269
|
lastFeeOperationTime: TypedContractMethod<[], [bigint], "view">;
|
|
240
270
|
lastFeeOperationTimeMap: TypedContractMethod<[
|
|
241
271
|
arg0: AddressLike
|
|
@@ -271,6 +301,7 @@ export interface RedemptionManager extends BaseContract {
|
|
|
271
301
|
], [
|
|
272
302
|
[bigint, bigint, bigint, bigint, bigint, bigint]
|
|
273
303
|
], "nonpayable">;
|
|
304
|
+
redemptionSigner: TypedContractMethod<[], [string], "view">;
|
|
274
305
|
renounceRole: TypedContractMethod<[
|
|
275
306
|
role: BytesLike,
|
|
276
307
|
account: AddressLike
|
|
@@ -288,12 +319,11 @@ export interface RedemptionManager extends BaseContract {
|
|
|
288
319
|
], [
|
|
289
320
|
void
|
|
290
321
|
], "nonpayable">;
|
|
291
|
-
|
|
322
|
+
setRedemptionSigner: TypedContractMethod<[
|
|
292
323
|
signer: AddressLike
|
|
293
324
|
], [
|
|
294
325
|
void
|
|
295
326
|
], "nonpayable">;
|
|
296
|
-
sortedBorrows: TypedContractMethod<[], [string], "view">;
|
|
297
327
|
supportsInterface: TypedContractMethod<[
|
|
298
328
|
interfaceId: BytesLike
|
|
299
329
|
], [
|
|
@@ -307,7 +337,6 @@ export interface RedemptionManager extends BaseContract {
|
|
|
307
337
|
getFunction(nameOrSignature: "MINUTE_DECAY_FACTOR"): TypedContractMethod<[], [bigint], "view">;
|
|
308
338
|
getFunction(nameOrSignature: "REDEMPTION_FEE_FLOOR"): TypedContractMethod<[], [bigint], "view">;
|
|
309
339
|
getFunction(nameOrSignature: "SECONDS_IN_ONE_MINUTE"): TypedContractMethod<[], [bigint], "view">;
|
|
310
|
-
getFunction(nameOrSignature: "_redeemFaceValueSigner"): TypedContractMethod<[], [string], "view">;
|
|
311
340
|
getFunction(nameOrSignature: "baseRate"): TypedContractMethod<[], [bigint], "view">;
|
|
312
341
|
getFunction(nameOrSignature: "baseRateMap"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
313
342
|
getFunction(nameOrSignature: "calcActualRepayAndSeize"): TypedContractMethod<[
|
|
@@ -348,7 +377,13 @@ export interface RedemptionManager extends BaseContract {
|
|
|
348
377
|
], [
|
|
349
378
|
boolean
|
|
350
379
|
], "view">;
|
|
351
|
-
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
380
|
+
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
381
|
+
_admin: AddressLike,
|
|
382
|
+
_comptroller: AddressLike,
|
|
383
|
+
_redemptionSigner: AddressLike
|
|
384
|
+
], [
|
|
385
|
+
void
|
|
386
|
+
], "nonpayable">;
|
|
352
387
|
getFunction(nameOrSignature: "lastFeeOperationTime"): TypedContractMethod<[], [bigint], "view">;
|
|
353
388
|
getFunction(nameOrSignature: "lastFeeOperationTimeMap"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
354
389
|
getFunction(nameOrSignature: "redeemFaceValue"): TypedContractMethod<[
|
|
@@ -380,6 +415,7 @@ export interface RedemptionManager extends BaseContract {
|
|
|
380
415
|
], [
|
|
381
416
|
[bigint, bigint, bigint, bigint, bigint, bigint]
|
|
382
417
|
], "nonpayable">;
|
|
418
|
+
getFunction(nameOrSignature: "redemptionSigner"): TypedContractMethod<[], [string], "view">;
|
|
383
419
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
384
420
|
role: BytesLike,
|
|
385
421
|
account: AddressLike
|
|
@@ -393,12 +429,13 @@ export interface RedemptionManager extends BaseContract {
|
|
|
393
429
|
void
|
|
394
430
|
], "nonpayable">;
|
|
395
431
|
getFunction(nameOrSignature: "setComptroller"): TypedContractMethod<[_comptroller: AddressLike], [void], "nonpayable">;
|
|
396
|
-
getFunction(nameOrSignature: "
|
|
397
|
-
getFunction(nameOrSignature: "sortedBorrows"): TypedContractMethod<[], [string], "view">;
|
|
432
|
+
getFunction(nameOrSignature: "setRedemptionSigner"): TypedContractMethod<[signer: AddressLike], [void], "nonpayable">;
|
|
398
433
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
399
434
|
getEvent(key: "BaseRateUpdated"): TypedContractEvent<BaseRateUpdatedEvent.InputTuple, BaseRateUpdatedEvent.OutputTuple, BaseRateUpdatedEvent.OutputObject>;
|
|
400
435
|
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
401
436
|
getEvent(key: "LastFeeOpTimeUpdated"): TypedContractEvent<LastFeeOpTimeUpdatedEvent.InputTuple, LastFeeOpTimeUpdatedEvent.OutputTuple, LastFeeOpTimeUpdatedEvent.OutputObject>;
|
|
437
|
+
getEvent(key: "NewComptroller"): TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
|
|
438
|
+
getEvent(key: "NewRedemptionSigner"): TypedContractEvent<NewRedemptionSignerEvent.InputTuple, NewRedemptionSignerEvent.OutputTuple, NewRedemptionSignerEvent.OutputObject>;
|
|
402
439
|
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
403
440
|
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
404
441
|
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
@@ -409,6 +446,10 @@ export interface RedemptionManager extends BaseContract {
|
|
|
409
446
|
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
410
447
|
"LastFeeOpTimeUpdated(address,uint256)": TypedContractEvent<LastFeeOpTimeUpdatedEvent.InputTuple, LastFeeOpTimeUpdatedEvent.OutputTuple, LastFeeOpTimeUpdatedEvent.OutputObject>;
|
|
411
448
|
LastFeeOpTimeUpdated: TypedContractEvent<LastFeeOpTimeUpdatedEvent.InputTuple, LastFeeOpTimeUpdatedEvent.OutputTuple, LastFeeOpTimeUpdatedEvent.OutputObject>;
|
|
449
|
+
"NewComptroller(address,address)": TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
|
|
450
|
+
NewComptroller: TypedContractEvent<NewComptrollerEvent.InputTuple, NewComptrollerEvent.OutputTuple, NewComptrollerEvent.OutputObject>;
|
|
451
|
+
"NewRedemptionSigner(address,address)": TypedContractEvent<NewRedemptionSignerEvent.InputTuple, NewRedemptionSignerEvent.OutputTuple, NewRedemptionSignerEvent.OutputObject>;
|
|
452
|
+
NewRedemptionSigner: TypedContractEvent<NewRedemptionSignerEvent.InputTuple, NewRedemptionSignerEvent.OutputTuple, NewRedemptionSignerEvent.OutputObject>;
|
|
412
453
|
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
413
454
|
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
414
455
|
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel.d.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface FixedRateModelInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "borrowRate" | "changeOwner" | "getBorrowRate" | "getSupplyRate" | "isInterestRateModel" | "owner" | "setBorrowRate" | "setSupplyRate" | "supplyRate"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "borrowRate", values?: undefined): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "changeOwner", values: [AddressLike]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "getBorrowRate", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "getSupplyRate", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "isInterestRateModel", values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "setBorrowRate", values: [BigNumberish]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "setSupplyRate", values: [BigNumberish]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "supplyRate", values?: undefined): string;
|
|
14
|
+
decodeFunctionResult(functionFragment: "borrowRate", data: BytesLike): Result;
|
|
15
|
+
decodeFunctionResult(functionFragment: "changeOwner", data: BytesLike): Result;
|
|
16
|
+
decodeFunctionResult(functionFragment: "getBorrowRate", data: BytesLike): Result;
|
|
17
|
+
decodeFunctionResult(functionFragment: "getSupplyRate", data: BytesLike): Result;
|
|
18
|
+
decodeFunctionResult(functionFragment: "isInterestRateModel", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
20
|
+
decodeFunctionResult(functionFragment: "setBorrowRate", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "setSupplyRate", data: BytesLike): Result;
|
|
22
|
+
decodeFunctionResult(functionFragment: "supplyRate", data: BytesLike): Result;
|
|
23
|
+
}
|
|
24
|
+
export interface FixedRateModel extends BaseContract {
|
|
25
|
+
connect(runner?: ContractRunner | null): FixedRateModel;
|
|
26
|
+
waitForDeployment(): Promise<this>;
|
|
27
|
+
interface: FixedRateModelInterface;
|
|
28
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
29
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
30
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
31
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
32
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
33
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
34
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
35
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
36
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
37
|
+
borrowRate: TypedContractMethod<[], [bigint], "view">;
|
|
38
|
+
changeOwner: TypedContractMethod<[owner_: AddressLike], [void], "nonpayable">;
|
|
39
|
+
getBorrowRate: TypedContractMethod<[
|
|
40
|
+
cash: BigNumberish,
|
|
41
|
+
borrows: BigNumberish,
|
|
42
|
+
reserves: BigNumberish
|
|
43
|
+
], [
|
|
44
|
+
bigint
|
|
45
|
+
], "view">;
|
|
46
|
+
getSupplyRate: TypedContractMethod<[
|
|
47
|
+
cash: BigNumberish,
|
|
48
|
+
borrows: BigNumberish,
|
|
49
|
+
reserves: BigNumberish,
|
|
50
|
+
reserveFactorMantissa: BigNumberish
|
|
51
|
+
], [
|
|
52
|
+
bigint
|
|
53
|
+
], "view">;
|
|
54
|
+
isInterestRateModel: TypedContractMethod<[], [boolean], "view">;
|
|
55
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
56
|
+
setBorrowRate: TypedContractMethod<[
|
|
57
|
+
rate: BigNumberish
|
|
58
|
+
], [
|
|
59
|
+
void
|
|
60
|
+
], "nonpayable">;
|
|
61
|
+
setSupplyRate: TypedContractMethod<[
|
|
62
|
+
rate: BigNumberish
|
|
63
|
+
], [
|
|
64
|
+
void
|
|
65
|
+
], "nonpayable">;
|
|
66
|
+
supplyRate: TypedContractMethod<[], [bigint], "view">;
|
|
67
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
68
|
+
getFunction(nameOrSignature: "borrowRate"): TypedContractMethod<[], [bigint], "view">;
|
|
69
|
+
getFunction(nameOrSignature: "changeOwner"): TypedContractMethod<[owner_: AddressLike], [void], "nonpayable">;
|
|
70
|
+
getFunction(nameOrSignature: "getBorrowRate"): TypedContractMethod<[
|
|
71
|
+
cash: BigNumberish,
|
|
72
|
+
borrows: BigNumberish,
|
|
73
|
+
reserves: BigNumberish
|
|
74
|
+
], [
|
|
75
|
+
bigint
|
|
76
|
+
], "view">;
|
|
77
|
+
getFunction(nameOrSignature: "getSupplyRate"): TypedContractMethod<[
|
|
78
|
+
cash: BigNumberish,
|
|
79
|
+
borrows: BigNumberish,
|
|
80
|
+
reserves: BigNumberish,
|
|
81
|
+
reserveFactorMantissa: BigNumberish
|
|
82
|
+
], [
|
|
83
|
+
bigint
|
|
84
|
+
], "view">;
|
|
85
|
+
getFunction(nameOrSignature: "isInterestRateModel"): TypedContractMethod<[], [boolean], "view">;
|
|
86
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
87
|
+
getFunction(nameOrSignature: "setBorrowRate"): TypedContractMethod<[rate: BigNumberish], [void], "nonpayable">;
|
|
88
|
+
getFunction(nameOrSignature: "setSupplyRate"): TypedContractMethod<[rate: BigNumberish], [void], "nonpayable">;
|
|
89
|
+
getFunction(nameOrSignature: "supplyRate"): TypedContractMethod<[], [bigint], "view">;
|
|
90
|
+
filters: {};
|
|
91
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FixedRateModel.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { FixedRateModel } from "./FixedRateModel";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/InterestRateModel/FixedInterestModel.sol/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type * as fixedInterestModelSol from "./FixedInterestModel.sol";
|
|
2
|
+
export type { fixedInterestModelSol };
|
|
1
3
|
import type * as suTokenInterestModelSol from "./suTokenInterestModel.sol";
|
|
2
4
|
export type { suTokenInterestModelSol };
|
|
3
5
|
export type { InterestRateModel } from "./InterestRateModel";
|
|
@@ -24,7 +24,14 @@ export interface ICTokenInterface extends Interface {
|
|
|
24
24
|
encodeFunctionData(functionFragment: "exchangeRateStored", values?: undefined): string;
|
|
25
25
|
encodeFunctionData(functionFragment: "getAccountSnapshot", values: [AddressLike]): string;
|
|
26
26
|
encodeFunctionData(functionFragment: "getCash", values?: undefined): string;
|
|
27
|
-
encodeFunctionData(functionFragment: "seize", values: [
|
|
27
|
+
encodeFunctionData(functionFragment: "seize", values: [
|
|
28
|
+
AddressLike,
|
|
29
|
+
AddressLike,
|
|
30
|
+
BigNumberish,
|
|
31
|
+
BigNumberish,
|
|
32
|
+
boolean,
|
|
33
|
+
BigNumberish
|
|
34
|
+
]): string;
|
|
28
35
|
encodeFunctionData(functionFragment: "supplyRatePerBlock", values?: undefined): string;
|
|
29
36
|
encodeFunctionData(functionFragment: "totalBorrowsCurrent", values?: undefined): string;
|
|
30
37
|
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
@@ -492,7 +499,9 @@ export interface ICToken extends BaseContract {
|
|
|
492
499
|
liquidator: AddressLike,
|
|
493
500
|
borrower: AddressLike,
|
|
494
501
|
seizeTokens: BigNumberish,
|
|
495
|
-
|
|
502
|
+
seizeProfitTokens: BigNumberish,
|
|
503
|
+
isRedemption: boolean,
|
|
504
|
+
redemptionRateMantissa: BigNumberish
|
|
496
505
|
], [
|
|
497
506
|
bigint
|
|
498
507
|
], "nonpayable">;
|
|
@@ -568,7 +577,9 @@ export interface ICToken extends BaseContract {
|
|
|
568
577
|
liquidator: AddressLike,
|
|
569
578
|
borrower: AddressLike,
|
|
570
579
|
seizeTokens: BigNumberish,
|
|
571
|
-
|
|
580
|
+
seizeProfitTokens: BigNumberish,
|
|
581
|
+
isRedemption: boolean,
|
|
582
|
+
redemptionRateMantissa: BigNumberish
|
|
572
583
|
], [
|
|
573
584
|
bigint
|
|
574
585
|
], "nonpayable">;
|