@meterio/sumer-js 0.1.31 → 0.1.33

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 (114) hide show
  1. package/dist/browser/sumer.min.js +10 -10
  2. package/dist/nodejs/abi.d.ts +110 -12
  3. package/dist/nodejs/abi.js +6086 -4750
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/comptroller.d.ts +1 -1
  6. package/dist/nodejs/comptroller.js +20 -25
  7. package/dist/nodejs/comptroller.js.map +1 -1
  8. package/dist/nodejs/errors.d.ts +84 -0
  9. package/dist/nodejs/errors.js +84 -0
  10. package/dist/nodejs/errors.js.map +1 -1
  11. package/dist/nodejs/index.d.ts +194 -12
  12. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +21 -175
  13. package/dist/nodejs/typechain/contracts/Comptroller/RedemptionManager.d.ts +82 -79
  14. package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +13 -84
  15. package/dist/nodejs/typechain/contracts/Interfaces/IRedemptionManager.d.ts +34 -54
  16. package/dist/nodejs/typechain/contracts/Interfaces/ITimelock.d.ts +46 -49
  17. package/dist/nodejs/typechain/contracts/Library/RateLimiter.d.ts +66 -0
  18. package/dist/nodejs/typechain/contracts/Library/RateLimiter.js +3 -0
  19. package/dist/nodejs/typechain/contracts/Library/RateLimiter.js.map +1 -0
  20. package/dist/nodejs/typechain/contracts/Library/index.d.ts +1 -0
  21. package/dist/nodejs/typechain/contracts/Library/index.js +3 -0
  22. package/dist/nodejs/typechain/contracts/Library/index.js.map +1 -0
  23. package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.d.ts +1 -9
  24. package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracleSafe.d.ts +1 -9
  25. package/dist/nodejs/typechain/contracts/Timelock.d.ts +515 -0
  26. package/dist/nodejs/typechain/contracts/Timelock.js +3 -0
  27. package/dist/nodejs/typechain/contracts/Timelock.js.map +1 -0
  28. package/dist/nodejs/typechain/contracts/index.d.ts +3 -2
  29. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts +1 -1
  30. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.js +1 -1
  31. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +1 -1
  32. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js +1 -1
  33. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.d.ts +1 -1
  34. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.js +1 -1
  35. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +49 -1
  36. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +61 -1
  37. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
  38. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +49 -1
  39. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +61 -1
  40. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  41. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +48 -0
  42. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +60 -0
  43. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
  44. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +49 -1
  45. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +61 -1
  46. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  47. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +313 -1
  48. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +392 -1
  49. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
  50. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -1
  51. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -1
  52. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +49 -1
  53. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +61 -1
  54. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  55. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +1 -1
  56. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +1 -1
  57. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +77 -272
  58. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +97 -348
  59. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
  60. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +428 -94
  61. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +536 -121
  62. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
  63. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
  64. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
  65. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +19 -91
  66. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +24 -114
  67. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
  68. package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.d.ts +46 -60
  69. package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.js +45 -67
  70. package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.js.map +1 -1
  71. package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.d.ts +34 -47
  72. package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.js +37 -54
  73. package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.js.map +1 -1
  74. package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.d.ts +165 -0
  75. package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.js +228 -0
  76. package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.js.map +1 -0
  77. package/dist/nodejs/typechain/factories/contracts/Library/index.d.ts +1 -0
  78. package/dist/nodejs/typechain/factories/contracts/Library/index.js +9 -0
  79. package/dist/nodejs/typechain/factories/contracts/Library/index.js.map +1 -0
  80. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.d.ts +1 -15
  81. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.js +1 -20
  82. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.js.map +1 -1
  83. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +1 -15
  84. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +1 -20
  85. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js.map +1 -1
  86. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +49 -1
  87. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +61 -1
  88. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
  89. package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.d.ts +1 -1
  90. package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.js +1 -1
  91. package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.js.map +1 -1
  92. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +989 -0
  93. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +1277 -0
  94. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -0
  95. package/dist/nodejs/typechain/factories/contracts/index.d.ts +2 -1
  96. package/dist/nodejs/typechain/factories/contracts/index.js +4 -2
  97. package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -1
  98. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.d.ts +1 -1
  99. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.js +1 -1
  100. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.d.ts +1 -1
  101. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.js +1 -1
  102. package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.d.ts +1 -1
  103. package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.js +1 -1
  104. package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.d.ts +1 -1
  105. package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.js +1 -1
  106. package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.d.ts +1 -1
  107. package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.js +1 -1
  108. package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.d.ts +1 -1
  109. package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js +1 -1
  110. package/dist/nodejs/typechain/hardhat.d.ts +18 -18
  111. package/dist/nodejs/typechain/index.d.ts +4 -2
  112. package/dist/nodejs/typechain/index.js +5 -3
  113. package/dist/nodejs/typechain/index.js.map +1 -1
  114. 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" | "borrowVerify" | "checkMembership" | "cleanAssetGroup" | "closeFactorMantissa" | "compLogic" | "enterMarkets" | "enterMarketsForAll" | "eqAssetGroup" | "exitMarket" | "getAccountLiquidity" | "getAccountSafeLimit" | "getAllAssetGroup" | "getAllAssetGroupByIndex" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "governanceToken" | "grantRole" | "hasRole" | "heteroLiquidationIncentiveMantissa" | "homoLiquidationIncentiveMantissa" | "initialize" | "isBorrowValueLargerThanThreshold" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "maxSupply" | "minSuBorrowValue" | "mintAllowed" | "mintGuardianPaused" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redeemFaceValue" | "redeemFaceValueWithPermit" | "redeemFaceValueWithTargetPlan" | "redeemVerify" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "repayBorrowVerify" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "seizeVerify" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinSuBorrowValue" | "setRedemptionManager" | "setTimelock" | "suTokenRateMantissa" | "supportsInterface" | "sutokenLiquidationIncentiveMantissa" | "timelock" | "transferAllowed" | "transferGuardianPaused" | "updateSortedBorrowsBatch"): 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" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinSuBorrowValue" | "setRedemptionManager" | "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;
@@ -63,21 +63,19 @@ export interface ComptrollerInterface extends Interface {
63
63
  encodeFunctionData(functionFragment: "borrowCapGuardian", values?: undefined): string;
64
64
  encodeFunctionData(functionFragment: "borrowCaps", values: [AddressLike]): string;
65
65
  encodeFunctionData(functionFragment: "borrowGuardianPaused", values: [AddressLike]): string;
66
- encodeFunctionData(functionFragment: "borrowVerify", values: [AddressLike, AddressLike, BigNumberish]): string;
67
66
  encodeFunctionData(functionFragment: "checkMembership", values: [AddressLike, AddressLike]): string;
68
67
  encodeFunctionData(functionFragment: "cleanAssetGroup", values?: undefined): string;
69
68
  encodeFunctionData(functionFragment: "closeFactorMantissa", values?: undefined): string;
70
69
  encodeFunctionData(functionFragment: "compLogic", values?: undefined): string;
71
70
  encodeFunctionData(functionFragment: "enterMarkets", values: [AddressLike[]]): string;
72
71
  encodeFunctionData(functionFragment: "enterMarketsForAll", values: [AddressLike[]]): string;
73
- encodeFunctionData(functionFragment: "eqAssetGroup", values: [BigNumberish]): string;
74
72
  encodeFunctionData(functionFragment: "exitMarket", values: [AddressLike]): string;
75
73
  encodeFunctionData(functionFragment: "getAccountLiquidity", values: [AddressLike]): string;
76
74
  encodeFunctionData(functionFragment: "getAccountSafeLimit", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
77
75
  encodeFunctionData(functionFragment: "getAllAssetGroup", values?: undefined): string;
78
- encodeFunctionData(functionFragment: "getAllAssetGroupByIndex", values: [BigNumberish]): string;
79
76
  encodeFunctionData(functionFragment: "getAllMarkets", values?: undefined): string;
80
77
  encodeFunctionData(functionFragment: "getAssetGroup", values: [BigNumberish]): string;
78
+ encodeFunctionData(functionFragment: "getAssetGroupByIndex", values: [BigNumberish]): string;
81
79
  encodeFunctionData(functionFragment: "getAssetGroupNum", values?: undefined): string;
82
80
  encodeFunctionData(functionFragment: "getAssetsIn", values: [AddressLike]): string;
83
81
  encodeFunctionData(functionFragment: "getCollateralRate", values: [AddressLike, AddressLike]): string;
@@ -86,6 +84,7 @@ export interface ComptrollerInterface extends Interface {
86
84
  encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
87
85
  encodeFunctionData(functionFragment: "getRoleMember", values: [BytesLike, BigNumberish]): string;
88
86
  encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string;
87
+ encodeFunctionData(functionFragment: "getUnderlyingPriceNormalized", values: [AddressLike]): string;
89
88
  encodeFunctionData(functionFragment: "governanceToken", values?: undefined): string;
90
89
  encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
91
90
  encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
@@ -103,7 +102,6 @@ export interface ComptrollerInterface extends Interface {
103
102
  BigNumberish,
104
103
  AddressLike
105
104
  ]): string;
106
- encodeFunctionData(functionFragment: "isBorrowValueLargerThanThreshold", values: [AddressLike, AddressLike, BigNumberish]): string;
107
105
  encodeFunctionData(functionFragment: "isComptroller", values?: undefined): string;
108
106
  encodeFunctionData(functionFragment: "isListed", values: [AddressLike]): string;
109
107
  encodeFunctionData(functionFragment: "liquidateBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
@@ -117,19 +115,13 @@ export interface ComptrollerInterface extends Interface {
117
115
  encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
118
116
  encodeFunctionData(functionFragment: "pauseGuardian", values?: undefined): string;
119
117
  encodeFunctionData(functionFragment: "redeemAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
120
- encodeFunctionData(functionFragment: "redeemFaceValue", values: [AddressLike, BigNumberish]): string;
121
- encodeFunctionData(functionFragment: "redeemFaceValueWithPermit", values: [AddressLike, BigNumberish, BigNumberish, BytesLike]): string;
122
- encodeFunctionData(functionFragment: "redeemFaceValueWithTargetPlan", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
123
- encodeFunctionData(functionFragment: "redeemVerify", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
124
118
  encodeFunctionData(functionFragment: "redemptionManager", values?: undefined): string;
125
119
  encodeFunctionData(functionFragment: "removeAssetGroup", values: [BigNumberish]): string;
126
120
  encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
127
121
  encodeFunctionData(functionFragment: "repayBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
128
- encodeFunctionData(functionFragment: "repayBorrowVerify", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
129
122
  encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
130
123
  encodeFunctionData(functionFragment: "seizeAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
131
124
  encodeFunctionData(functionFragment: "seizeGuardianPaused", values?: undefined): string;
132
- encodeFunctionData(functionFragment: "seizeVerify", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
133
125
  encodeFunctionData(functionFragment: "setAccountLiquidity", values: [AddressLike]): string;
134
126
  encodeFunctionData(functionFragment: "setAssetGroup", values: [
135
127
  BigNumberish,
@@ -152,7 +144,6 @@ export interface ComptrollerInterface extends Interface {
152
144
  encodeFunctionData(functionFragment: "timelock", values?: undefined): string;
153
145
  encodeFunctionData(functionFragment: "transferAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
154
146
  encodeFunctionData(functionFragment: "transferGuardianPaused", values?: undefined): string;
155
- encodeFunctionData(functionFragment: "updateSortedBorrowsBatch", values: [AddressLike[]]): string;
156
147
  decodeFunctionResult(functionFragment: "CAPPER_ROLE", data: BytesLike): Result;
157
148
  decodeFunctionResult(functionFragment: "COMP_LOGIC", data: BytesLike): Result;
158
149
  decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
@@ -182,21 +173,19 @@ export interface ComptrollerInterface extends Interface {
182
173
  decodeFunctionResult(functionFragment: "borrowCapGuardian", data: BytesLike): Result;
183
174
  decodeFunctionResult(functionFragment: "borrowCaps", data: BytesLike): Result;
184
175
  decodeFunctionResult(functionFragment: "borrowGuardianPaused", data: BytesLike): Result;
185
- decodeFunctionResult(functionFragment: "borrowVerify", data: BytesLike): Result;
186
176
  decodeFunctionResult(functionFragment: "checkMembership", data: BytesLike): Result;
187
177
  decodeFunctionResult(functionFragment: "cleanAssetGroup", data: BytesLike): Result;
188
178
  decodeFunctionResult(functionFragment: "closeFactorMantissa", data: BytesLike): Result;
189
179
  decodeFunctionResult(functionFragment: "compLogic", data: BytesLike): Result;
190
180
  decodeFunctionResult(functionFragment: "enterMarkets", data: BytesLike): Result;
191
181
  decodeFunctionResult(functionFragment: "enterMarketsForAll", data: BytesLike): Result;
192
- decodeFunctionResult(functionFragment: "eqAssetGroup", data: BytesLike): Result;
193
182
  decodeFunctionResult(functionFragment: "exitMarket", data: BytesLike): Result;
194
183
  decodeFunctionResult(functionFragment: "getAccountLiquidity", data: BytesLike): Result;
195
184
  decodeFunctionResult(functionFragment: "getAccountSafeLimit", data: BytesLike): Result;
196
185
  decodeFunctionResult(functionFragment: "getAllAssetGroup", data: BytesLike): Result;
197
- decodeFunctionResult(functionFragment: "getAllAssetGroupByIndex", data: BytesLike): Result;
198
186
  decodeFunctionResult(functionFragment: "getAllMarkets", data: BytesLike): Result;
199
187
  decodeFunctionResult(functionFragment: "getAssetGroup", data: BytesLike): Result;
188
+ decodeFunctionResult(functionFragment: "getAssetGroupByIndex", data: BytesLike): Result;
200
189
  decodeFunctionResult(functionFragment: "getAssetGroupNum", data: BytesLike): Result;
201
190
  decodeFunctionResult(functionFragment: "getAssetsIn", data: BytesLike): Result;
202
191
  decodeFunctionResult(functionFragment: "getCollateralRate", data: BytesLike): Result;
@@ -205,13 +194,13 @@ export interface ComptrollerInterface extends Interface {
205
194
  decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
206
195
  decodeFunctionResult(functionFragment: "getRoleMember", data: BytesLike): Result;
207
196
  decodeFunctionResult(functionFragment: "getRoleMemberCount", data: BytesLike): Result;
197
+ decodeFunctionResult(functionFragment: "getUnderlyingPriceNormalized", data: BytesLike): Result;
208
198
  decodeFunctionResult(functionFragment: "governanceToken", data: BytesLike): Result;
209
199
  decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
210
200
  decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
211
201
  decodeFunctionResult(functionFragment: "heteroLiquidationIncentiveMantissa", data: BytesLike): Result;
212
202
  decodeFunctionResult(functionFragment: "homoLiquidationIncentiveMantissa", data: BytesLike): Result;
213
203
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
214
- decodeFunctionResult(functionFragment: "isBorrowValueLargerThanThreshold", data: BytesLike): Result;
215
204
  decodeFunctionResult(functionFragment: "isComptroller", data: BytesLike): Result;
216
205
  decodeFunctionResult(functionFragment: "isListed", data: BytesLike): Result;
217
206
  decodeFunctionResult(functionFragment: "liquidateBorrowAllowed", data: BytesLike): Result;
@@ -225,19 +214,13 @@ export interface ComptrollerInterface extends Interface {
225
214
  decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
226
215
  decodeFunctionResult(functionFragment: "pauseGuardian", data: BytesLike): Result;
227
216
  decodeFunctionResult(functionFragment: "redeemAllowed", data: BytesLike): Result;
228
- decodeFunctionResult(functionFragment: "redeemFaceValue", data: BytesLike): Result;
229
- decodeFunctionResult(functionFragment: "redeemFaceValueWithPermit", data: BytesLike): Result;
230
- decodeFunctionResult(functionFragment: "redeemFaceValueWithTargetPlan", data: BytesLike): Result;
231
- decodeFunctionResult(functionFragment: "redeemVerify", data: BytesLike): Result;
232
217
  decodeFunctionResult(functionFragment: "redemptionManager", data: BytesLike): Result;
233
218
  decodeFunctionResult(functionFragment: "removeAssetGroup", data: BytesLike): Result;
234
219
  decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
235
220
  decodeFunctionResult(functionFragment: "repayBorrowAllowed", data: BytesLike): Result;
236
- decodeFunctionResult(functionFragment: "repayBorrowVerify", data: BytesLike): Result;
237
221
  decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
238
222
  decodeFunctionResult(functionFragment: "seizeAllowed", data: BytesLike): Result;
239
223
  decodeFunctionResult(functionFragment: "seizeGuardianPaused", data: BytesLike): Result;
240
- decodeFunctionResult(functionFragment: "seizeVerify", data: BytesLike): Result;
241
224
  decodeFunctionResult(functionFragment: "setAccountLiquidity", data: BytesLike): Result;
242
225
  decodeFunctionResult(functionFragment: "setAssetGroup", data: BytesLike): Result;
243
226
  decodeFunctionResult(functionFragment: "setCompLogic", data: BytesLike): Result;
@@ -252,7 +235,6 @@ export interface ComptrollerInterface extends Interface {
252
235
  decodeFunctionResult(functionFragment: "timelock", data: BytesLike): Result;
253
236
  decodeFunctionResult(functionFragment: "transferAllowed", data: BytesLike): Result;
254
237
  decodeFunctionResult(functionFragment: "transferGuardianPaused", data: BytesLike): Result;
255
- decodeFunctionResult(functionFragment: "updateSortedBorrowsBatch", data: BytesLike): Result;
256
238
  }
257
239
  export declare namespace ActionPausedEvent {
258
240
  type InputTuple = [
@@ -672,13 +654,6 @@ export interface Comptroller extends BaseContract {
672
654
  ], [
673
655
  boolean
674
656
  ], "view">;
675
- borrowVerify: TypedContractMethod<[
676
- cToken: AddressLike,
677
- borrower: AddressLike,
678
- borrowAmount: BigNumberish
679
- ], [
680
- void
681
- ], "nonpayable">;
682
657
  checkMembership: TypedContractMethod<[
683
658
  account: AddressLike,
684
659
  cToken: AddressLike
@@ -698,11 +673,6 @@ export interface Comptroller extends BaseContract {
698
673
  ], [
699
674
  void
700
675
  ], "nonpayable">;
701
- eqAssetGroup: TypedContractMethod<[
702
- groupId: BigNumberish
703
- ], [
704
- IComptroller.AssetGroupStructOutput
705
- ], "view">;
706
676
  exitMarket: TypedContractMethod<[
707
677
  cTokenAddress: AddressLike
708
678
  ], [
@@ -725,17 +695,17 @@ export interface Comptroller extends BaseContract {
725
695
  ], [
726
696
  IComptroller.AssetGroupStructOutput[]
727
697
  ], "view">;
728
- getAllAssetGroupByIndex: TypedContractMethod<[
729
- groupIndex: BigNumberish
730
- ], [
731
- IComptroller.AssetGroupStructOutput
732
- ], "view">;
733
698
  getAllMarkets: TypedContractMethod<[], [string[]], "view">;
734
699
  getAssetGroup: TypedContractMethod<[
735
700
  groupId: BigNumberish
736
701
  ], [
737
702
  IComptroller.AssetGroupStructOutput
738
703
  ], "view">;
704
+ getAssetGroupByIndex: TypedContractMethod<[
705
+ groupIndex: BigNumberish
706
+ ], [
707
+ IComptroller.AssetGroupStructOutput
708
+ ], "view">;
739
709
  getAssetGroupNum: TypedContractMethod<[], [bigint], "view">;
740
710
  getAssetsIn: TypedContractMethod<[account: AddressLike], [string[]], "view">;
741
711
  getCollateralRate: TypedContractMethod<[
@@ -761,6 +731,11 @@ export interface Comptroller extends BaseContract {
761
731
  string
762
732
  ], "view">;
763
733
  getRoleMemberCount: TypedContractMethod<[role: BytesLike], [bigint], "view">;
734
+ getUnderlyingPriceNormalized: TypedContractMethod<[
735
+ cToken: AddressLike
736
+ ], [
737
+ bigint
738
+ ], "view">;
764
739
  governanceToken: TypedContractMethod<[], [string], "view">;
765
740
  grantRole: TypedContractMethod<[
766
741
  role: BytesLike,
@@ -790,13 +765,6 @@ export interface Comptroller extends BaseContract {
790
765
  ], [
791
766
  void
792
767
  ], "nonpayable">;
793
- isBorrowValueLargerThanThreshold: TypedContractMethod<[
794
- cToken: AddressLike,
795
- account: AddressLike,
796
- extraBorrowAmount: BigNumberish
797
- ], [
798
- boolean
799
- ], "view">;
800
768
  isComptroller: TypedContractMethod<[], [boolean], "view">;
801
769
  isListed: TypedContractMethod<[asset: AddressLike], [boolean], "view">;
802
770
  liquidateBorrowAllowed: TypedContractMethod<[
@@ -849,37 +817,6 @@ export interface Comptroller extends BaseContract {
849
817
  ], [
850
818
  void
851
819
  ], "nonpayable">;
852
- redeemFaceValue: TypedContractMethod<[
853
- suToken: AddressLike,
854
- amount: BigNumberish
855
- ], [
856
- void
857
- ], "nonpayable">;
858
- redeemFaceValueWithPermit: TypedContractMethod<[
859
- suToken: AddressLike,
860
- amount: BigNumberish,
861
- deadline: BigNumberish,
862
- signature: BytesLike
863
- ], [
864
- void
865
- ], "nonpayable">;
866
- redeemFaceValueWithTargetPlan: TypedContractMethod<[
867
- redeemer: AddressLike,
868
- provider: AddressLike,
869
- cToken: AddressLike,
870
- suToken: AddressLike,
871
- redeemAmount: BigNumberish
872
- ], [
873
- [bigint, bigint, bigint, bigint, bigint, bigint]
874
- ], "nonpayable">;
875
- redeemVerify: TypedContractMethod<[
876
- cToken: AddressLike,
877
- redeemer: AddressLike,
878
- redeemAmount: BigNumberish,
879
- redeemTokens: BigNumberish
880
- ], [
881
- void
882
- ], "nonpayable">;
883
820
  redemptionManager: TypedContractMethod<[], [string], "view">;
884
821
  removeAssetGroup: TypedContractMethod<[
885
822
  groupId: BigNumberish
@@ -900,15 +837,6 @@ export interface Comptroller extends BaseContract {
900
837
  ], [
901
838
  void
902
839
  ], "nonpayable">;
903
- repayBorrowVerify: TypedContractMethod<[
904
- cToken: AddressLike,
905
- payer: AddressLike,
906
- borrower: AddressLike,
907
- actualRepayAmount: BigNumberish,
908
- borrowerIndex: BigNumberish
909
- ], [
910
- void
911
- ], "nonpayable">;
912
840
  revokeRole: TypedContractMethod<[
913
841
  role: BytesLike,
914
842
  account: AddressLike
@@ -925,15 +853,6 @@ export interface Comptroller extends BaseContract {
925
853
  void
926
854
  ], "nonpayable">;
927
855
  seizeGuardianPaused: TypedContractMethod<[], [boolean], "view">;
928
- seizeVerify: TypedContractMethod<[
929
- cTokenCollateral: AddressLike,
930
- cTokenBorrowed: AddressLike,
931
- liquidator: AddressLike,
932
- borrower: AddressLike,
933
- seizeTokens: BigNumberish
934
- ], [
935
- void
936
- ], "nonpayable">;
937
856
  setAccountLiquidity: TypedContractMethod<[
938
857
  _accountLiquidity: AddressLike
939
858
  ], [
@@ -1002,11 +921,6 @@ export interface Comptroller extends BaseContract {
1002
921
  void
1003
922
  ], "nonpayable">;
1004
923
  transferGuardianPaused: TypedContractMethod<[], [boolean], "view">;
1005
- updateSortedBorrowsBatch: TypedContractMethod<[
1006
- borrowers: AddressLike[]
1007
- ], [
1008
- void
1009
- ], "nonpayable">;
1010
924
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
1011
925
  getFunction(nameOrSignature: "CAPPER_ROLE"): TypedContractMethod<[], [string], "view">;
1012
926
  getFunction(nameOrSignature: "COMP_LOGIC"): TypedContractMethod<[], [string], "view">;
@@ -1093,13 +1007,6 @@ export interface Comptroller extends BaseContract {
1093
1007
  getFunction(nameOrSignature: "borrowCapGuardian"): TypedContractMethod<[], [string], "view">;
1094
1008
  getFunction(nameOrSignature: "borrowCaps"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
1095
1009
  getFunction(nameOrSignature: "borrowGuardianPaused"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
1096
- getFunction(nameOrSignature: "borrowVerify"): TypedContractMethod<[
1097
- cToken: AddressLike,
1098
- borrower: AddressLike,
1099
- borrowAmount: BigNumberish
1100
- ], [
1101
- void
1102
- ], "nonpayable">;
1103
1010
  getFunction(nameOrSignature: "checkMembership"): TypedContractMethod<[
1104
1011
  account: AddressLike,
1105
1012
  cToken: AddressLike
@@ -1111,11 +1018,6 @@ export interface Comptroller extends BaseContract {
1111
1018
  getFunction(nameOrSignature: "compLogic"): TypedContractMethod<[], [string], "view">;
1112
1019
  getFunction(nameOrSignature: "enterMarkets"): TypedContractMethod<[cTokens: AddressLike[]], [bigint[]], "nonpayable">;
1113
1020
  getFunction(nameOrSignature: "enterMarketsForAll"): TypedContractMethod<[accounts: AddressLike[]], [void], "nonpayable">;
1114
- getFunction(nameOrSignature: "eqAssetGroup"): TypedContractMethod<[
1115
- groupId: BigNumberish
1116
- ], [
1117
- IComptroller.AssetGroupStructOutput
1118
- ], "view">;
1119
1021
  getFunction(nameOrSignature: "exitMarket"): TypedContractMethod<[cTokenAddress: AddressLike], [bigint], "nonpayable">;
1120
1022
  getFunction(nameOrSignature: "getAccountLiquidity"): TypedContractMethod<[
1121
1023
  account: AddressLike
@@ -1131,17 +1033,17 @@ export interface Comptroller extends BaseContract {
1131
1033
  bigint
1132
1034
  ], "view">;
1133
1035
  getFunction(nameOrSignature: "getAllAssetGroup"): TypedContractMethod<[], [IComptroller.AssetGroupStructOutput[]], "view">;
1134
- getFunction(nameOrSignature: "getAllAssetGroupByIndex"): TypedContractMethod<[
1135
- groupIndex: BigNumberish
1136
- ], [
1137
- IComptroller.AssetGroupStructOutput
1138
- ], "view">;
1139
1036
  getFunction(nameOrSignature: "getAllMarkets"): TypedContractMethod<[], [string[]], "view">;
1140
1037
  getFunction(nameOrSignature: "getAssetGroup"): TypedContractMethod<[
1141
1038
  groupId: BigNumberish
1142
1039
  ], [
1143
1040
  IComptroller.AssetGroupStructOutput
1144
1041
  ], "view">;
1042
+ getFunction(nameOrSignature: "getAssetGroupByIndex"): TypedContractMethod<[
1043
+ groupIndex: BigNumberish
1044
+ ], [
1045
+ IComptroller.AssetGroupStructOutput
1046
+ ], "view">;
1145
1047
  getFunction(nameOrSignature: "getAssetGroupNum"): TypedContractMethod<[], [bigint], "view">;
1146
1048
  getFunction(nameOrSignature: "getAssetsIn"): TypedContractMethod<[account: AddressLike], [string[]], "view">;
1147
1049
  getFunction(nameOrSignature: "getCollateralRate"): TypedContractMethod<[
@@ -1167,6 +1069,7 @@ export interface Comptroller extends BaseContract {
1167
1069
  string
1168
1070
  ], "view">;
1169
1071
  getFunction(nameOrSignature: "getRoleMemberCount"): TypedContractMethod<[role: BytesLike], [bigint], "view">;
1072
+ getFunction(nameOrSignature: "getUnderlyingPriceNormalized"): TypedContractMethod<[cToken: AddressLike], [bigint], "view">;
1170
1073
  getFunction(nameOrSignature: "governanceToken"): TypedContractMethod<[], [string], "view">;
1171
1074
  getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
1172
1075
  role: BytesLike,
@@ -1196,13 +1099,6 @@ export interface Comptroller extends BaseContract {
1196
1099
  ], [
1197
1100
  void
1198
1101
  ], "nonpayable">;
1199
- getFunction(nameOrSignature: "isBorrowValueLargerThanThreshold"): TypedContractMethod<[
1200
- cToken: AddressLike,
1201
- account: AddressLike,
1202
- extraBorrowAmount: BigNumberish
1203
- ], [
1204
- boolean
1205
- ], "view">;
1206
1102
  getFunction(nameOrSignature: "isComptroller"): TypedContractMethod<[], [boolean], "view">;
1207
1103
  getFunction(nameOrSignature: "isListed"): TypedContractMethod<[asset: AddressLike], [boolean], "view">;
1208
1104
  getFunction(nameOrSignature: "liquidateBorrowAllowed"): TypedContractMethod<[
@@ -1248,37 +1144,6 @@ export interface Comptroller extends BaseContract {
1248
1144
  ], [
1249
1145
  void
1250
1146
  ], "nonpayable">;
1251
- getFunction(nameOrSignature: "redeemFaceValue"): TypedContractMethod<[
1252
- suToken: AddressLike,
1253
- amount: BigNumberish
1254
- ], [
1255
- void
1256
- ], "nonpayable">;
1257
- getFunction(nameOrSignature: "redeemFaceValueWithPermit"): TypedContractMethod<[
1258
- suToken: AddressLike,
1259
- amount: BigNumberish,
1260
- deadline: BigNumberish,
1261
- signature: BytesLike
1262
- ], [
1263
- void
1264
- ], "nonpayable">;
1265
- getFunction(nameOrSignature: "redeemFaceValueWithTargetPlan"): TypedContractMethod<[
1266
- redeemer: AddressLike,
1267
- provider: AddressLike,
1268
- cToken: AddressLike,
1269
- suToken: AddressLike,
1270
- redeemAmount: BigNumberish
1271
- ], [
1272
- [bigint, bigint, bigint, bigint, bigint, bigint]
1273
- ], "nonpayable">;
1274
- getFunction(nameOrSignature: "redeemVerify"): TypedContractMethod<[
1275
- cToken: AddressLike,
1276
- redeemer: AddressLike,
1277
- redeemAmount: BigNumberish,
1278
- redeemTokens: BigNumberish
1279
- ], [
1280
- void
1281
- ], "nonpayable">;
1282
1147
  getFunction(nameOrSignature: "redemptionManager"): TypedContractMethod<[], [string], "view">;
1283
1148
  getFunction(nameOrSignature: "removeAssetGroup"): TypedContractMethod<[groupId: BigNumberish], [bigint], "nonpayable">;
1284
1149
  getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
@@ -1295,15 +1160,6 @@ export interface Comptroller extends BaseContract {
1295
1160
  ], [
1296
1161
  void
1297
1162
  ], "nonpayable">;
1298
- getFunction(nameOrSignature: "repayBorrowVerify"): TypedContractMethod<[
1299
- cToken: AddressLike,
1300
- payer: AddressLike,
1301
- borrower: AddressLike,
1302
- actualRepayAmount: BigNumberish,
1303
- borrowerIndex: BigNumberish
1304
- ], [
1305
- void
1306
- ], "nonpayable">;
1307
1163
  getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
1308
1164
  role: BytesLike,
1309
1165
  account: AddressLike
@@ -1320,15 +1176,6 @@ export interface Comptroller extends BaseContract {
1320
1176
  void
1321
1177
  ], "nonpayable">;
1322
1178
  getFunction(nameOrSignature: "seizeGuardianPaused"): TypedContractMethod<[], [boolean], "view">;
1323
- getFunction(nameOrSignature: "seizeVerify"): TypedContractMethod<[
1324
- cTokenCollateral: AddressLike,
1325
- cTokenBorrowed: AddressLike,
1326
- liquidator: AddressLike,
1327
- borrower: AddressLike,
1328
- seizeTokens: BigNumberish
1329
- ], [
1330
- void
1331
- ], "nonpayable">;
1332
1179
  getFunction(nameOrSignature: "setAccountLiquidity"): TypedContractMethod<[
1333
1180
  _accountLiquidity: AddressLike
1334
1181
  ], [
@@ -1378,7 +1225,6 @@ export interface Comptroller extends BaseContract {
1378
1225
  void
1379
1226
  ], "nonpayable">;
1380
1227
  getFunction(nameOrSignature: "transferGuardianPaused"): TypedContractMethod<[], [boolean], "view">;
1381
- getFunction(nameOrSignature: "updateSortedBorrowsBatch"): TypedContractMethod<[borrowers: AddressLike[]], [void], "nonpayable">;
1382
1228
  getEvent(key: "ActionPaused"): TypedContractEvent<ActionPausedEvent.InputTuple, ActionPausedEvent.OutputTuple, ActionPausedEvent.OutputObject>;
1383
1229
  getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
1384
1230
  getEvent(key: "MarketEntered"): TypedContractEvent<MarketEnteredEvent.InputTuple, MarketEnteredEvent.OutputTuple, MarketEnteredEvent.OutputObject>;