@meterio/sumer-js 0.1.35 → 0.1.36

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.
Files changed (85) hide show
  1. package/dist/browser/sumer.min.js +5 -5
  2. package/dist/nodejs/abi.d.ts +25 -0
  3. package/dist/nodejs/abi.js +443 -83
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/metertest.d.ts +0 -1
  6. package/dist/nodejs/constants/metertest.js +28 -39
  7. package/dist/nodejs/constants/metertest.js.map +1 -1
  8. package/dist/nodejs/errors.d.ts +4 -0
  9. package/dist/nodejs/errors.js +4 -0
  10. package/dist/nodejs/errors.js.map +1 -1
  11. package/dist/nodejs/index.d.ts +29 -0
  12. package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +19 -10
  13. package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +19 -10
  14. package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +19 -10
  15. package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +14 -3
  16. package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +19 -10
  17. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +4 -23
  18. package/dist/nodejs/typechain/contracts/Comptroller/RedemptionManager.d.ts +58 -17
  19. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel.d.ts +91 -0
  20. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel.js +3 -0
  21. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel.js.map +1 -0
  22. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/index.d.ts +1 -0
  23. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/index.js +3 -0
  24. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestModel.sol/index.js.map +1 -0
  25. package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +2 -0
  26. package/dist/nodejs/typechain/contracts/Interfaces/ICToken.d.ts +14 -3
  27. package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/ICToken.d.ts +15 -1
  28. package/dist/nodejs/typechain/contracts/Timelock.d.ts +29 -2
  29. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +18 -6
  30. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +21 -6
  31. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
  32. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +18 -6
  33. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +21 -6
  34. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  35. package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +9 -1
  36. package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +11 -1
  37. package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
  38. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +17 -5
  39. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +20 -5
  40. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
  41. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +18 -6
  42. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +21 -6
  43. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  44. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +5 -1
  45. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +6 -1
  46. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
  47. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -1
  48. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -1
  49. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +5 -1
  50. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +6 -1
  51. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  52. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +5 -25
  53. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +6 -32
  54. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
  55. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +54 -22
  56. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +68 -28
  57. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
  58. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
  59. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
  60. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.d.ts +152 -0
  61. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.js +210 -0
  62. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.js.map +1 -0
  63. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/index.d.ts +1 -0
  64. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/index.js +9 -0
  65. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/index.js.map +1 -0
  66. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +1 -0
  67. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +2 -1
  68. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
  69. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.d.ts +26 -0
  70. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js +34 -0
  71. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js.map +1 -1
  72. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.d.ts +9 -1
  73. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js +11 -1
  74. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js.map +1 -1
  75. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +5 -1
  76. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +6 -1
  77. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
  78. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +46 -3
  79. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +60 -5
  80. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
  81. package/dist/nodejs/typechain/hardhat.d.ts +18 -0
  82. package/dist/nodejs/typechain/index.d.ts +2 -0
  83. package/dist/nodejs/typechain/index.js +4 -2
  84. package/dist/nodejs/typechain/index.js.map +1 -1
  85. package/package.json +1 -1
@@ -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" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinSuBorrowValue" | "setRedemptionManager" | "setTimelock" | "suTokenRateMantissa" | "supportsInterface" | "sutokenLiquidationIncentiveMantissa" | "timelock" | "transferAllowed" | "transferGuardianPaused"): FunctionFragment;
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" | "_redeemFaceValueSigner" | "baseRate" | "baseRateMap" | "calcActualRepayAndSeize" | "comptroller" | "decayBaseRateFromBorrowing" | "getCurrentRedemptionRate" | "getRedemptionRate" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "initialize" | "lastFeeOperationTime" | "lastFeeOperationTimeMap" | "redeemFaceValue" | "redeemFaceValueWithPermit" | "redeemFaceValueWithProviderPreview" | "renounceRole" | "revokeRole" | "setComptroller" | "setRedeemFaceValueSigner" | "sortedBorrows" | "supportsInterface"): FunctionFragment;
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: "setRedeemFaceValueSigner", values: [AddressLike]): string;
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: "setRedeemFaceValueSigner", data: BytesLike): Result;
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<[_admin: AddressLike], [void], "nonpayable">;
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
- setRedeemFaceValueSigner: TypedContractMethod<[
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<[_admin: AddressLike], [void], "nonpayable">;
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: "setRedeemFaceValueSigner"): TypedContractMethod<[signer: AddressLike], [void], "nonpayable">;
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>;
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FixedRateModel.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -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: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
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
- protocolShareMantissa: BigNumberish
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
- protocolShareMantissa: BigNumberish
580
+ seizeProfitTokens: BigNumberish,
581
+ isRedemption: boolean,
582
+ redemptionRateMantissa: BigNumberish
572
583
  ], [
573
584
  bigint
574
585
  ], "nonpayable">;
@@ -1,7 +1,7 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
2
  import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
3
3
  export interface ICTokenInterface extends Interface {
4
- getFunction(nameOrSignature: "accrueInterest" | "allowance" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "delegates" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "getCurrentVotes" | "getPriorVotes" | "isCEther" | "isCToken" | "isDeprecated" | "reserveFactorMantissa" | "supplyRatePerBlock" | "totalBorrows" | "totalReserves" | "totalSupply" | "underlying"): FunctionFragment;
4
+ getFunction(nameOrSignature: "accrueInterest" | "allowance" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "delegates" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "getCurrentVotes" | "getPriorVotes" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateCalculateSeizeTokens" | "reserveFactorMantissa" | "supplyRatePerBlock" | "totalBorrows" | "totalReserves" | "totalSupply" | "underlying"): FunctionFragment;
5
5
  encodeFunctionData(functionFragment: "accrueInterest", values?: undefined): string;
6
6
  encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
7
7
  encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
@@ -31,6 +31,7 @@ export interface ICTokenInterface extends Interface {
31
31
  encodeFunctionData(functionFragment: "isCEther", values?: undefined): string;
32
32
  encodeFunctionData(functionFragment: "isCToken", values?: undefined): string;
33
33
  encodeFunctionData(functionFragment: "isDeprecated", values?: undefined): string;
34
+ encodeFunctionData(functionFragment: "liquidateCalculateSeizeTokens", values: [AddressLike, BigNumberish]): string;
34
35
  encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
35
36
  encodeFunctionData(functionFragment: "supplyRatePerBlock", values?: undefined): string;
36
37
  encodeFunctionData(functionFragment: "totalBorrows", values?: undefined): string;
@@ -59,6 +60,7 @@ export interface ICTokenInterface extends Interface {
59
60
  decodeFunctionResult(functionFragment: "isCEther", data: BytesLike): Result;
60
61
  decodeFunctionResult(functionFragment: "isCToken", data: BytesLike): Result;
61
62
  decodeFunctionResult(functionFragment: "isDeprecated", data: BytesLike): Result;
63
+ decodeFunctionResult(functionFragment: "liquidateCalculateSeizeTokens", data: BytesLike): Result;
62
64
  decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
63
65
  decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
64
66
  decodeFunctionResult(functionFragment: "totalBorrows", data: BytesLike): Result;
@@ -140,6 +142,12 @@ export interface ICToken extends BaseContract {
140
142
  isCEther: TypedContractMethod<[], [boolean], "view">;
141
143
  isCToken: TypedContractMethod<[], [boolean], "view">;
142
144
  isDeprecated: TypedContractMethod<[], [boolean], "view">;
145
+ liquidateCalculateSeizeTokens: TypedContractMethod<[
146
+ cTokenCollateral: AddressLike,
147
+ actualRepayAmount: BigNumberish
148
+ ], [
149
+ [bigint, bigint, bigint]
150
+ ], "view">;
143
151
  reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
144
152
  supplyRatePerBlock: TypedContractMethod<[], [bigint], "view">;
145
153
  totalBorrows: TypedContractMethod<[], [bigint], "view">;
@@ -192,6 +200,12 @@ export interface ICToken extends BaseContract {
192
200
  getFunction(nameOrSignature: "isCEther"): TypedContractMethod<[], [boolean], "view">;
193
201
  getFunction(nameOrSignature: "isCToken"): TypedContractMethod<[], [boolean], "view">;
194
202
  getFunction(nameOrSignature: "isDeprecated"): TypedContractMethod<[], [boolean], "view">;
203
+ getFunction(nameOrSignature: "liquidateCalculateSeizeTokens"): TypedContractMethod<[
204
+ cTokenCollateral: AddressLike,
205
+ actualRepayAmount: BigNumberish
206
+ ], [
207
+ [bigint, bigint, bigint]
208
+ ], "view">;
195
209
  getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
196
210
  getFunction(nameOrSignature: "supplyRatePerBlock"): TypedContractMethod<[], [bigint], "view">;
197
211
  getFunction(nameOrSignature: "totalBorrows"): TypedContractMethod<[], [bigint], "view">;
@@ -45,8 +45,8 @@ export declare namespace ITimelock {
45
45
  };
46
46
  }
47
47
  export interface TimelockInterface extends Interface {
48
- getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ADMIN" | "agreementCount" | "agreements" | "balances" | "claim" | "consumeValue" | "consumeValuePreview" | "createAgreement" | "freeze" | "freezeAgreement" | "frozen" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "maxDelay" | "renounceRole" | "rescueERC20" | "revokeRole" | "setRateLimiterConfig" | "supportsInterface" | "unfreeze" | "unfreezeAgreement" | "userAgreements"): FunctionFragment;
49
- getEvent(nameOrSignatureOrTopic: "AgreementClaimed" | "AgreementCreated" | "AgreementFrozen" | "RescueERC20" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TimeLockFrozen"): EventFragment;
48
+ getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ADMIN" | "agreementCount" | "agreements" | "balances" | "claim" | "consumeValue" | "consumeValuePreview" | "createAgreement" | "freeze" | "freezeAgreement" | "frozen" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "maxDelay" | "renounceRole" | "rescueERC20" | "revokeRole" | "setRateLimiterConfig" | "setThreshold" | "supportsInterface" | "threshold" | "unfreeze" | "unfreezeAgreement" | "userAgreements"): FunctionFragment;
49
+ getEvent(nameOrSignatureOrTopic: "AgreementClaimed" | "AgreementCreated" | "AgreementFrozen" | "NewThreshold" | "RescueERC20" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TimeLockFrozen"): EventFragment;
50
50
  encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
51
51
  encodeFunctionData(functionFragment: "EMERGENCY_ADMIN", values?: undefined): string;
52
52
  encodeFunctionData(functionFragment: "agreementCount", values?: undefined): string;
@@ -69,7 +69,9 @@ export interface TimelockInterface extends Interface {
69
69
  encodeFunctionData(functionFragment: "rescueERC20", values: [AddressLike, AddressLike, BigNumberish]): string;
70
70
  encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
71
71
  encodeFunctionData(functionFragment: "setRateLimiterConfig", values: [RateLimiter.ConfigStruct]): string;
72
+ encodeFunctionData(functionFragment: "setThreshold", values: [BigNumberish]): string;
72
73
  encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
74
+ encodeFunctionData(functionFragment: "threshold", values?: undefined): string;
73
75
  encodeFunctionData(functionFragment: "unfreeze", values?: undefined): string;
74
76
  encodeFunctionData(functionFragment: "unfreezeAgreement", values: [BigNumberish]): string;
75
77
  encodeFunctionData(functionFragment: "userAgreements", values: [AddressLike]): string;
@@ -95,7 +97,9 @@ export interface TimelockInterface extends Interface {
95
97
  decodeFunctionResult(functionFragment: "rescueERC20", data: BytesLike): Result;
96
98
  decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
97
99
  decodeFunctionResult(functionFragment: "setRateLimiterConfig", data: BytesLike): Result;
100
+ decodeFunctionResult(functionFragment: "setThreshold", data: BytesLike): Result;
98
101
  decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
102
+ decodeFunctionResult(functionFragment: "threshold", data: BytesLike): Result;
99
103
  decodeFunctionResult(functionFragment: "unfreeze", data: BytesLike): Result;
100
104
  decodeFunctionResult(functionFragment: "unfreezeAgreement", data: BytesLike): Result;
101
105
  decodeFunctionResult(functionFragment: "userAgreements", data: BytesLike): Result;
@@ -169,6 +173,18 @@ export declare namespace AgreementFrozenEvent {
169
173
  type Log = TypedEventLog<Event>;
170
174
  type LogDescription = TypedLogDescription<Event>;
171
175
  }
176
+ export declare namespace NewThresholdEvent {
177
+ type InputTuple = [oldValue: BigNumberish, newValue: BigNumberish];
178
+ type OutputTuple = [oldValue: bigint, newValue: bigint];
179
+ interface OutputObject {
180
+ oldValue: bigint;
181
+ newValue: bigint;
182
+ }
183
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
184
+ type Filter = TypedDeferredTopicFilter<Event>;
185
+ type Log = TypedEventLog<Event>;
186
+ type LogDescription = TypedLogDescription<Event>;
187
+ }
172
188
  export declare namespace RescueERC20Event {
173
189
  type InputTuple = [
174
190
  token: AddressLike,
@@ -367,11 +383,17 @@ export interface Timelock extends BaseContract {
367
383
  ], [
368
384
  void
369
385
  ], "nonpayable">;
386
+ setThreshold: TypedContractMethod<[
387
+ newThreshold: BigNumberish
388
+ ], [
389
+ void
390
+ ], "nonpayable">;
370
391
  supportsInterface: TypedContractMethod<[
371
392
  interfaceId: BytesLike
372
393
  ], [
373
394
  boolean
374
395
  ], "view">;
396
+ threshold: TypedContractMethod<[], [bigint], "view">;
375
397
  unfreeze: TypedContractMethod<[], [void], "nonpayable">;
376
398
  unfreezeAgreement: TypedContractMethod<[
377
399
  agreementId: BigNumberish
@@ -478,7 +500,9 @@ export interface Timelock extends BaseContract {
478
500
  ], [
479
501
  void
480
502
  ], "nonpayable">;
503
+ getFunction(nameOrSignature: "setThreshold"): TypedContractMethod<[newThreshold: BigNumberish], [void], "nonpayable">;
481
504
  getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
505
+ getFunction(nameOrSignature: "threshold"): TypedContractMethod<[], [bigint], "view">;
482
506
  getFunction(nameOrSignature: "unfreeze"): TypedContractMethod<[], [void], "nonpayable">;
483
507
  getFunction(nameOrSignature: "unfreezeAgreement"): TypedContractMethod<[agreementId: BigNumberish], [void], "nonpayable">;
484
508
  getFunction(nameOrSignature: "userAgreements"): TypedContractMethod<[
@@ -489,6 +513,7 @@ export interface Timelock extends BaseContract {
489
513
  getEvent(key: "AgreementClaimed"): TypedContractEvent<AgreementClaimedEvent.InputTuple, AgreementClaimedEvent.OutputTuple, AgreementClaimedEvent.OutputObject>;
490
514
  getEvent(key: "AgreementCreated"): TypedContractEvent<AgreementCreatedEvent.InputTuple, AgreementCreatedEvent.OutputTuple, AgreementCreatedEvent.OutputObject>;
491
515
  getEvent(key: "AgreementFrozen"): TypedContractEvent<AgreementFrozenEvent.InputTuple, AgreementFrozenEvent.OutputTuple, AgreementFrozenEvent.OutputObject>;
516
+ getEvent(key: "NewThreshold"): TypedContractEvent<NewThresholdEvent.InputTuple, NewThresholdEvent.OutputTuple, NewThresholdEvent.OutputObject>;
492
517
  getEvent(key: "RescueERC20"): TypedContractEvent<RescueERC20Event.InputTuple, RescueERC20Event.OutputTuple, RescueERC20Event.OutputObject>;
493
518
  getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
494
519
  getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
@@ -501,6 +526,8 @@ export interface Timelock extends BaseContract {
501
526
  AgreementCreated: TypedContractEvent<AgreementCreatedEvent.InputTuple, AgreementCreatedEvent.OutputTuple, AgreementCreatedEvent.OutputObject>;
502
527
  "AgreementFrozen(uint256,bool)": TypedContractEvent<AgreementFrozenEvent.InputTuple, AgreementFrozenEvent.OutputTuple, AgreementFrozenEvent.OutputObject>;
503
528
  AgreementFrozen: TypedContractEvent<AgreementFrozenEvent.InputTuple, AgreementFrozenEvent.OutputTuple, AgreementFrozenEvent.OutputObject>;
529
+ "NewThreshold(uint256,uint256)": TypedContractEvent<NewThresholdEvent.InputTuple, NewThresholdEvent.OutputTuple, NewThresholdEvent.OutputObject>;
530
+ NewThreshold: TypedContractEvent<NewThresholdEvent.InputTuple, NewThresholdEvent.OutputTuple, NewThresholdEvent.OutputObject>;
504
531
  "RescueERC20(address,address,uint256)": TypedContractEvent<RescueERC20Event.InputTuple, RescueERC20Event.OutputTuple, RescueERC20Event.OutputObject>;
505
532
  RescueERC20: TypedContractEvent<RescueERC20Event.InputTuple, RescueERC20Event.OutputTuple, RescueERC20Event.OutputObject>;
506
533
  "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;