@raac/rpc 1.0.1 → 1.0.2-beta.2

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 (243) hide show
  1. package/dist/RPCLibrary.js +61 -8
  2. package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +1743 -0
  3. package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +175 -67
  4. package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +279 -0
  5. package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +1231 -195
  6. package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +153 -199
  7. package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +72 -2
  8. package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +2 -2
  9. package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.json +770 -0
  10. package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +707 -49
  11. package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +23 -84
  12. package/dist/artifacts/core/tokens/RToken.sol/RToken.json +62 -62
  13. package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +2 -2
  14. package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +774 -0
  15. package/dist/artifacts/zeno/Auction.sol/Auction.json +34 -114
  16. package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +3 -3
  17. package/dist/artifacts/zeno/Zeno.sol/Zeno.json +3 -3
  18. package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +3 -3
  19. package/dist/configs/chains/11155111.json +132 -0
  20. package/dist/configs/chains/17000.json +127 -0
  21. package/dist/configs/chains/8453.json +26 -14
  22. package/dist/configs/chains/index.js +4 -0
  23. package/dist/configs/createConfig.js +6 -0
  24. package/dist/contracts/feeCollector/claimRewardFromPool.js +24 -0
  25. package/dist/contracts/housePrices/getLatestPrice.js +1 -1
  26. package/dist/contracts/indexToken/getNextRandomNFT.js +30 -0
  27. package/dist/contracts/indexToken/redeemNFT.js +39 -0
  28. package/dist/methods/commons/estimateGasPrice.js +7 -2
  29. package/dist/nfts/getAllTokens.js +34 -0
  30. package/dist/nfts/{addNewBatch.js → getBaseUri.js} +7 -8
  31. package/dist/nfts/getMintFeePercentage.js +23 -0
  32. package/dist/nfts/getMintPrice.js +28 -0
  33. package/dist/nfts/getTokenURI.js +23 -0
  34. package/dist/nfts/getTokensByOwner.js +35 -0
  35. package/dist/nfts/getTotalPropertiesCount.js +23 -0
  36. package/dist/nfts/{getCurrentBatchSize.js → totalNFTSupply.js} +3 -3
  37. package/dist/pools/lendingPool/borrowFromLendingPool.js +4 -3
  38. package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +40 -0
  39. package/dist/pools/lendingPool/calculateInsuranceFee.js +20 -0
  40. package/dist/pools/lendingPool/claimReward.js +22 -0
  41. package/dist/pools/lendingPool/closeLiquidation.js +28 -0
  42. package/dist/pools/lendingPool/depositNFTToLendingPool.js +0 -1
  43. package/dist/pools/lendingPool/depositToLendingPool.js +2 -2
  44. package/dist/pools/lendingPool/getAllUserData.js +28 -0
  45. package/dist/pools/lendingPool/getEligibleUserDeposits.js +27 -0
  46. package/dist/pools/lendingPool/getHealthFactor.js +27 -0
  47. package/dist/pools/lendingPool/getLendingPoolInfo.js +8 -5
  48. package/dist/pools/lendingPool/getPendingReward.js +20 -0
  49. package/dist/pools/lendingPool/getPositionDebt.js +27 -0
  50. package/dist/pools/lendingPool/getPositionScaledDebt.js +27 -0
  51. package/dist/pools/lendingPool/getPositionView.js +38 -0
  52. package/dist/pools/lendingPool/getPositionsScaledDebt.js +27 -0
  53. package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +21 -0
  54. package/dist/pools/lendingPool/getUserCollateralValue.js +27 -0
  55. package/dist/pools/lendingPool/initializeLiquidation.js +28 -0
  56. package/dist/pools/lendingPool/repayToLendingPool.js +4 -8
  57. package/dist/pools/lendingPool/withdrawFromLendingPool.js +2 -2
  58. package/dist/pools/stabilityPool/depositNFTToStabilityPool.js +40 -0
  59. package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +21 -0
  60. package/dist/pools/stabilityPool/getStabilityPoolInfo.js +2 -12
  61. package/dist/scripts/index.js +90 -35
  62. package/dist/types/RPCLibrary.d.ts +61 -8
  63. package/dist/types/configs/chains/index.d.ts +5 -1
  64. package/dist/types/configs/createConfig.d.ts +6 -0
  65. package/dist/types/configs/index.d.ts +2 -0
  66. package/dist/types/contracts/feeCollector/claimRewardFromPool.d.ts +4 -0
  67. package/dist/types/contracts/housePrices/getLatestPrice.d.ts +1 -1
  68. package/dist/types/contracts/indexToken/getNextRandomNFT.d.ts +7 -0
  69. package/dist/types/contracts/indexToken/redeemNFT.d.ts +4 -0
  70. package/dist/types/nfts/getAllTokens.d.ts +7 -0
  71. package/dist/types/nfts/getBaseUri.d.ts +4 -0
  72. package/dist/types/nfts/getMintFeePercentage.d.ts +4 -0
  73. package/dist/types/nfts/getMintPrice.d.ts +7 -0
  74. package/dist/types/nfts/getTokenURI.d.ts +4 -0
  75. package/dist/types/nfts/getTokensByOwner.d.ts +10 -0
  76. package/dist/types/nfts/getTotalPropertiesCount.d.ts +4 -0
  77. package/dist/types/nfts/totalNFTSupply.d.ts +4 -0
  78. package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +1 -1
  79. package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +4 -0
  80. package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +4 -0
  81. package/dist/types/pools/lendingPool/claimReward.d.ts +4 -0
  82. package/dist/types/pools/lendingPool/closeLiquidation.d.ts +11 -0
  83. package/dist/types/pools/lendingPool/getAllUserData.d.ts +16 -0
  84. package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +11 -0
  85. package/dist/types/pools/lendingPool/getHealthFactor.d.ts +11 -0
  86. package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +2 -1
  87. package/dist/types/pools/lendingPool/getPendingReward.d.ts +4 -0
  88. package/dist/types/pools/lendingPool/getPositionDebt.d.ts +11 -0
  89. package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +11 -0
  90. package/dist/types/pools/lendingPool/getPositionView.d.ts +27 -0
  91. package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +11 -0
  92. package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +4 -0
  93. package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +11 -0
  94. package/dist/types/pools/lendingPool/initializeLiquidation.d.ts +11 -0
  95. package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +2 -2
  96. package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +1 -1
  97. package/dist/types/pools/stabilityPool/depositNFTToStabilityPool.d.ts +4 -0
  98. package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +4 -0
  99. package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +1 -3
  100. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
  101. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +35 -0
  102. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/index.d.ts +3 -0
  103. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +156 -0
  104. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
  105. package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +446 -221
  106. package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +108 -20
  107. package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +6 -16
  108. package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +166 -0
  109. package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +1 -0
  110. package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +811 -99
  111. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +152 -148
  112. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +0 -1
  113. package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +29 -2
  114. package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +65 -51
  115. package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +187 -2
  116. package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +413 -19
  117. package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +40 -40
  118. package/dist/types/typechain-types/contracts/interfaces/core/collectors/IBaseCollector.d.ts +39 -0
  119. package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +317 -130
  120. package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +1 -0
  121. package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +2 -0
  122. package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +58 -22
  123. package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +5 -3
  124. package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +86 -0
  125. package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +1 -0
  126. package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +83 -45
  127. package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +539 -54
  128. package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +92 -71
  129. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +123 -27
  130. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IIndexToken.d.ts +187 -0
  131. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +243 -17
  132. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +37 -37
  133. package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +1 -0
  134. package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseVault.d.ts +83 -0
  135. package/dist/types/typechain-types/contracts/interfaces/core/vaults/index.d.ts +1 -0
  136. package/dist/types/typechain-types/contracts/interfaces/index.d.ts +0 -1
  137. package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +0 -1
  138. package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +5 -1
  139. package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +2 -0
  140. package/dist/types/typechain-types/contracts/mocks/core/oracles/MockVRFCoordinatorV2.d.ts +530 -0
  141. package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +1 -0
  142. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolCollector.d.ts +156 -0
  143. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +557 -102
  144. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLiquidityPool.d.ts +486 -0
  145. package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +2 -0
  146. package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts +35 -0
  147. package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +1 -0
  148. package/dist/types/typechain-types/contracts/mocks/core/tokens/MockCollectableUnderlying.d.ts +292 -0
  149. package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
  150. package/dist/types/typechain-types/contracts/mocks/core/vaults/MockVault.d.ts +290 -0
  151. package/dist/types/typechain-types/contracts/mocks/core/vaults/index.d.ts +1 -0
  152. package/dist/types/typechain-types/contracts/mocks/libraries/MockStringUtils.d.ts +25 -0
  153. package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +1 -0
  154. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
  155. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +33 -0
  156. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/index.d.ts +2 -0
  157. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +171 -0
  158. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
  159. package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +571 -194
  160. package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +138 -54
  161. package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +5 -31
  162. package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +231 -0
  163. package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +1 -1
  164. package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +1 -1
  165. package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +1 -0
  166. package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +897 -64
  167. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +1 -1
  168. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +128 -161
  169. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +0 -1
  170. package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +54 -1
  171. package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +47 -29
  172. package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +317 -1
  173. package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +525 -17
  174. package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +1 -1
  175. package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +52 -52
  176. package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -1
  177. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IBaseCollector__factory.d.ts +33 -0
  178. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +409 -90
  179. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +1 -0
  180. package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +1 -0
  181. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +59 -15
  182. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +4 -0
  183. package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +78 -0
  184. package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +1 -0
  185. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +119 -39
  186. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +547 -19
  187. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +68 -67
  188. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +119 -6
  189. package/dist/types/typechain-types/factories/{erc721a/contracts/IERC721A__factory.d.ts → contracts/interfaces/core/tokens/IIndexToken__factory.d.ts} +74 -215
  190. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +274 -10
  191. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +26 -26
  192. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +1 -0
  193. package/dist/types/typechain-types/factories/contracts/interfaces/{IMarketCreator__factory.d.ts → core/vaults/IBaseVault__factory.d.ts} +78 -42
  194. package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/index.d.ts +1 -0
  195. package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +0 -1
  196. package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
  197. package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/index.d.ts +0 -1
  198. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +16 -4
  199. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +10 -1
  200. package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +1 -0
  201. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +1 -1
  202. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockVRFCoordinatorV2__factory.d.ts +620 -0
  203. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +1 -1
  204. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +1 -1
  205. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +1 -0
  206. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +234 -0
  207. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +539 -77
  208. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +1 -1
  209. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +795 -0
  210. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +1 -1
  211. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +2 -0
  212. package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +68 -0
  213. package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +1 -0
  214. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +451 -0
  215. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
  216. package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +525 -0
  217. package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/index.d.ts +1 -0
  218. package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +40 -0
  219. package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +1 -0
  220. package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +1 -1
  221. package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +1 -1
  222. package/dist/types/typechain-types/factories/index.d.ts +0 -1
  223. package/dist/types/typechain-types/index.d.ts +28 -10
  224. package/dist/types/utils/artifacts.d.ts +677 -39
  225. package/dist/types/utils/contracts.d.ts +4 -0
  226. package/dist/utils/artifacts.js +9 -0
  227. package/package.json +1 -1
  228. package/dist/nfts/getDepositedNFTs.js +0 -19
  229. package/dist/nfts/getOwnedNFTs.js +0 -34
  230. package/dist/types/nfts/addNewBatch.d.ts +0 -4
  231. package/dist/types/nfts/getCurrentBatchSize.d.ts +0 -4
  232. package/dist/types/nfts/getDepositedNFTs.d.ts +0 -7
  233. package/dist/types/nfts/getOwnedNFTs.d.ts +0 -7
  234. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/MarketCreator.d.ts +0 -274
  235. package/dist/types/typechain-types/contracts/interfaces/IMarketCreator.d.ts +0 -85
  236. package/dist/types/typechain-types/contracts/mocks/core/collectors/MockFeeCollector.d.ts +0 -708
  237. package/dist/types/typechain-types/erc721a/contracts/IERC721A.d.ts +0 -242
  238. package/dist/types/typechain-types/erc721a/contracts/index.d.ts +0 -1
  239. package/dist/types/typechain-types/erc721a/index.d.ts +0 -2
  240. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/MarketCreator__factory.d.ts +0 -405
  241. package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockFeeCollector__factory.d.ts +0 -985
  242. package/dist/types/typechain-types/factories/erc721a/contracts/index.d.ts +0 -1
  243. package/dist/types/typechain-types/factories/erc721a/index.d.ts +0 -1
@@ -1,66 +1,144 @@
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
+ export declare namespace ILendingPool {
4
+ type NFTPositionViewStruct = {
5
+ rawDebtBalance: BigNumberish;
6
+ scaledDebtBalance: BigNumberish;
7
+ healthFactor: BigNumberish;
8
+ isUnderLiquidation: boolean;
9
+ liquidationStartTime: BigNumberish;
10
+ positionIndex: BigNumberish;
11
+ isInsured: boolean;
12
+ };
13
+ type NFTPositionViewStructOutput = [
14
+ rawDebtBalance: bigint,
15
+ scaledDebtBalance: bigint,
16
+ healthFactor: bigint,
17
+ isUnderLiquidation: boolean,
18
+ liquidationStartTime: bigint,
19
+ positionIndex: bigint,
20
+ isInsured: boolean
21
+ ] & {
22
+ rawDebtBalance: bigint;
23
+ scaledDebtBalance: bigint;
24
+ healthFactor: bigint;
25
+ isUnderLiquidation: boolean;
26
+ liquidationStartTime: bigint;
27
+ positionIndex: bigint;
28
+ isInsured: boolean;
29
+ };
30
+ type UserDataViewStruct = {
31
+ nftTokenIds: BigNumberish[];
32
+ scaledDebtBalance: BigNumberish;
33
+ collateralValue: BigNumberish;
34
+ positions: ILendingPool.NFTPositionViewStruct[];
35
+ };
36
+ type UserDataViewStructOutput = [
37
+ nftTokenIds: bigint[],
38
+ scaledDebtBalance: bigint,
39
+ collateralValue: bigint,
40
+ positions: ILendingPool.NFTPositionViewStructOutput[]
41
+ ] & {
42
+ nftTokenIds: bigint[];
43
+ scaledDebtBalance: bigint;
44
+ collateralValue: bigint;
45
+ positions: ILendingPool.NFTPositionViewStructOutput[];
46
+ };
47
+ type NFTPositionStruct = {
48
+ rawDebtBalance: BigNumberish;
49
+ isUnderLiquidation: boolean;
50
+ liquidationStartTime: BigNumberish;
51
+ positionIndex: BigNumberish;
52
+ isInsured: boolean;
53
+ rawInsuredBalance: BigNumberish;
54
+ };
55
+ type NFTPositionStructOutput = [
56
+ rawDebtBalance: bigint,
57
+ isUnderLiquidation: boolean,
58
+ liquidationStartTime: bigint,
59
+ positionIndex: bigint,
60
+ isInsured: boolean,
61
+ rawInsuredBalance: bigint
62
+ ] & {
63
+ rawDebtBalance: bigint;
64
+ isUnderLiquidation: boolean;
65
+ liquidationStartTime: bigint;
66
+ positionIndex: bigint;
67
+ isInsured: boolean;
68
+ rawInsuredBalance: bigint;
69
+ };
70
+ }
3
71
  export interface MockLendingPoolDebtTokenInterface extends Interface {
4
- getFunction(nameOrSignature: "borrow" | "calculateHealthFactor" | "closeLiquidation" | "deposit" | "depositNFT" | "finalizeLiquidation" | "getNFTPrice" | "getNormalizedDebt" | "getNormalizedIncome" | "getPrimeRate" | "getUserCollateralValue" | "getUserDebt" | "initiateLiquidation" | "onERC721Received" | "pauseWithdrawals" | "repay" | "repayOnBehalf" | "setHealthFactorLiquidationThreshold" | "setLiquidationGracePeriod" | "setLiquidationThreshold" | "setNormalizedDebt" | "setParameter" | "setPrimeRate" | "setProtocolFeeRate" | "setStabilityPool" | "transferAccruedDust" | "unpauseWithdrawals" | "updateState" | "withdraw" | "withdrawNFT"): FunctionFragment;
5
- getEvent(nameOrSignatureOrTopic: "Borrow" | "CanPaybackDebtChanged" | "CurveVaultUpdated" | "Deposit" | "Liquidation" | "LiquidationClosed" | "LiquidationFinalized" | "LiquidationInitiated" | "LiquidationParametersUpdated" | "LiquidityBufferRatioUpdated" | "LiquidityRebalanced" | "NFTDeposited" | "NFTWithdrawn" | "Repay" | "StabilityPoolUpdated" | "Withdraw" | "WithdrawalsPauseStatusChanged"): EventFragment;
6
- encodeFunctionData(functionFragment: "borrow", values: [BigNumberish]): string;
7
- encodeFunctionData(functionFragment: "calculateHealthFactor", values: [AddressLike]): string;
8
- encodeFunctionData(functionFragment: "closeLiquidation", values?: undefined): string;
72
+ getFunction(nameOrSignature: "borrow" | "calculateHealthFactor" | "claimCollectorRewards" | "claimReward" | "closeLiquidation" | "deposit" | "depositNFT" | "depositRewardTokens" | "finalizeLiquidation" | "getAllUserData" | "getNFTPrice" | "getNormalizedDebt" | "getNormalizedIncome" | "getPendingReward" | "getPosition" | "getPositionData" | "getPositionDebt" | "getPositionScaledDebt" | "getPositionsScaledDebt" | "getRAACNFTAddress" | "getUserCollateralValue" | "getUserDebt" | "initiateLiquidation" | "onERC721Received" | "repay" | "repayOnBehalf" | "setNormalizedDebt" | "setParameter" | "setPrimeRate" | "setStabilityPool" | "transferAccruedDust" | "updateState" | "updateUserReward" | "withdraw" | "withdrawNFT"): FunctionFragment;
73
+ getEvent(nameOrSignatureOrTopic: "Borrow" | "CanPaybackDebtChanged" | "Deposit" | "FeeCollectorUpdated" | "InsufficientFees" | "InsuranceFeeUpdated" | "InsuredNFT" | "Liquidation" | "LiquidationClosed" | "LiquidationFinalized" | "LiquidationInitiated" | "LiquidationParametersUpdated" | "LiquidityBufferRatioUpdated" | "LiquidityRebalanced" | "NFTDeposited" | "NFTWithdrawn" | "NotFeeCollector" | "ProtocolFeeRateUpdated" | "ProtocolFeesCollected" | "ProtocolFeesWithdrawn" | "Repay" | "RewardClaimed" | "RewardDistributed" | "RewardParametersUpdated" | "RewardTokenAdded" | "RewardTokensDeposited" | "StabilityPoolUpdated" | "VaultRewardsClaimed" | "VaultUpdated" | "VaultWithdrawalFailed" | "Withdraw" | "WithdrawalsPauseStatusChanged"): EventFragment;
74
+ encodeFunctionData(functionFragment: "borrow", values: [BigNumberish, BigNumberish]): string;
75
+ encodeFunctionData(functionFragment: "calculateHealthFactor", values: [AddressLike, BigNumberish]): string;
76
+ encodeFunctionData(functionFragment: "claimCollectorRewards", values?: undefined): string;
77
+ encodeFunctionData(functionFragment: "claimReward", values?: undefined): string;
78
+ encodeFunctionData(functionFragment: "closeLiquidation", values: [BigNumberish]): string;
9
79
  encodeFunctionData(functionFragment: "deposit", values: [BigNumberish]): string;
10
80
  encodeFunctionData(functionFragment: "depositNFT", values: [BigNumberish]): string;
11
- encodeFunctionData(functionFragment: "finalizeLiquidation", values: [AddressLike]): string;
81
+ encodeFunctionData(functionFragment: "depositRewardTokens", values: [BigNumberish]): string;
82
+ encodeFunctionData(functionFragment: "finalizeLiquidation", values: [AddressLike, BigNumberish]): string;
83
+ encodeFunctionData(functionFragment: "getAllUserData", values: [AddressLike]): string;
12
84
  encodeFunctionData(functionFragment: "getNFTPrice", values: [BigNumberish]): string;
13
85
  encodeFunctionData(functionFragment: "getNormalizedDebt", values?: undefined): string;
14
86
  encodeFunctionData(functionFragment: "getNormalizedIncome", values?: undefined): string;
15
- encodeFunctionData(functionFragment: "getPrimeRate", values?: undefined): string;
87
+ encodeFunctionData(functionFragment: "getPendingReward", values: [AddressLike]): string;
88
+ encodeFunctionData(functionFragment: "getPosition", values: [AddressLike, BigNumberish]): string;
89
+ encodeFunctionData(functionFragment: "getPositionData", values: [AddressLike, BigNumberish]): string;
90
+ encodeFunctionData(functionFragment: "getPositionDebt", values: [AddressLike, BigNumberish]): string;
91
+ encodeFunctionData(functionFragment: "getPositionScaledDebt", values: [AddressLike, BigNumberish]): string;
92
+ encodeFunctionData(functionFragment: "getPositionsScaledDebt", values: [AddressLike]): string;
93
+ encodeFunctionData(functionFragment: "getRAACNFTAddress", values?: undefined): string;
16
94
  encodeFunctionData(functionFragment: "getUserCollateralValue", values: [AddressLike]): string;
17
95
  encodeFunctionData(functionFragment: "getUserDebt", values: [AddressLike]): string;
18
- encodeFunctionData(functionFragment: "initiateLiquidation", values: [AddressLike]): string;
96
+ encodeFunctionData(functionFragment: "initiateLiquidation", values: [AddressLike, BigNumberish]): string;
19
97
  encodeFunctionData(functionFragment: "onERC721Received", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
20
- encodeFunctionData(functionFragment: "pauseWithdrawals", values?: undefined): string;
21
- encodeFunctionData(functionFragment: "repay", values: [BigNumberish]): string;
22
- encodeFunctionData(functionFragment: "repayOnBehalf", values: [BigNumberish, AddressLike]): string;
23
- encodeFunctionData(functionFragment: "setHealthFactorLiquidationThreshold", values: [BigNumberish]): string;
24
- encodeFunctionData(functionFragment: "setLiquidationGracePeriod", values: [BigNumberish]): string;
25
- encodeFunctionData(functionFragment: "setLiquidationThreshold", values: [BigNumberish]): string;
98
+ encodeFunctionData(functionFragment: "repay", values: [BigNumberish, BigNumberish]): string;
99
+ encodeFunctionData(functionFragment: "repayOnBehalf", values: [BigNumberish, BigNumberish, AddressLike]): string;
26
100
  encodeFunctionData(functionFragment: "setNormalizedDebt", values: [BigNumberish]): string;
27
101
  encodeFunctionData(functionFragment: "setParameter", values: [BigNumberish, BigNumberish]): string;
28
102
  encodeFunctionData(functionFragment: "setPrimeRate", values: [BigNumberish]): string;
29
- encodeFunctionData(functionFragment: "setProtocolFeeRate", values: [BigNumberish]): string;
30
103
  encodeFunctionData(functionFragment: "setStabilityPool", values: [AddressLike]): string;
31
104
  encodeFunctionData(functionFragment: "transferAccruedDust", values: [AddressLike, BigNumberish]): string;
32
- encodeFunctionData(functionFragment: "unpauseWithdrawals", values?: undefined): string;
33
105
  encodeFunctionData(functionFragment: "updateState", values?: undefined): string;
106
+ encodeFunctionData(functionFragment: "updateUserReward", values: [AddressLike]): string;
34
107
  encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
35
108
  encodeFunctionData(functionFragment: "withdrawNFT", values: [BigNumberish]): string;
36
109
  decodeFunctionResult(functionFragment: "borrow", data: BytesLike): Result;
37
110
  decodeFunctionResult(functionFragment: "calculateHealthFactor", data: BytesLike): Result;
111
+ decodeFunctionResult(functionFragment: "claimCollectorRewards", data: BytesLike): Result;
112
+ decodeFunctionResult(functionFragment: "claimReward", data: BytesLike): Result;
38
113
  decodeFunctionResult(functionFragment: "closeLiquidation", data: BytesLike): Result;
39
114
  decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
40
115
  decodeFunctionResult(functionFragment: "depositNFT", data: BytesLike): Result;
116
+ decodeFunctionResult(functionFragment: "depositRewardTokens", data: BytesLike): Result;
41
117
  decodeFunctionResult(functionFragment: "finalizeLiquidation", data: BytesLike): Result;
118
+ decodeFunctionResult(functionFragment: "getAllUserData", data: BytesLike): Result;
42
119
  decodeFunctionResult(functionFragment: "getNFTPrice", data: BytesLike): Result;
43
120
  decodeFunctionResult(functionFragment: "getNormalizedDebt", data: BytesLike): Result;
44
121
  decodeFunctionResult(functionFragment: "getNormalizedIncome", data: BytesLike): Result;
45
- decodeFunctionResult(functionFragment: "getPrimeRate", data: BytesLike): Result;
122
+ decodeFunctionResult(functionFragment: "getPendingReward", data: BytesLike): Result;
123
+ decodeFunctionResult(functionFragment: "getPosition", data: BytesLike): Result;
124
+ decodeFunctionResult(functionFragment: "getPositionData", data: BytesLike): Result;
125
+ decodeFunctionResult(functionFragment: "getPositionDebt", data: BytesLike): Result;
126
+ decodeFunctionResult(functionFragment: "getPositionScaledDebt", data: BytesLike): Result;
127
+ decodeFunctionResult(functionFragment: "getPositionsScaledDebt", data: BytesLike): Result;
128
+ decodeFunctionResult(functionFragment: "getRAACNFTAddress", data: BytesLike): Result;
46
129
  decodeFunctionResult(functionFragment: "getUserCollateralValue", data: BytesLike): Result;
47
130
  decodeFunctionResult(functionFragment: "getUserDebt", data: BytesLike): Result;
48
131
  decodeFunctionResult(functionFragment: "initiateLiquidation", data: BytesLike): Result;
49
132
  decodeFunctionResult(functionFragment: "onERC721Received", data: BytesLike): Result;
50
- decodeFunctionResult(functionFragment: "pauseWithdrawals", data: BytesLike): Result;
51
133
  decodeFunctionResult(functionFragment: "repay", data: BytesLike): Result;
52
134
  decodeFunctionResult(functionFragment: "repayOnBehalf", data: BytesLike): Result;
53
- decodeFunctionResult(functionFragment: "setHealthFactorLiquidationThreshold", data: BytesLike): Result;
54
- decodeFunctionResult(functionFragment: "setLiquidationGracePeriod", data: BytesLike): Result;
55
- decodeFunctionResult(functionFragment: "setLiquidationThreshold", data: BytesLike): Result;
56
135
  decodeFunctionResult(functionFragment: "setNormalizedDebt", data: BytesLike): Result;
57
136
  decodeFunctionResult(functionFragment: "setParameter", data: BytesLike): Result;
58
137
  decodeFunctionResult(functionFragment: "setPrimeRate", data: BytesLike): Result;
59
- decodeFunctionResult(functionFragment: "setProtocolFeeRate", data: BytesLike): Result;
60
138
  decodeFunctionResult(functionFragment: "setStabilityPool", data: BytesLike): Result;
61
139
  decodeFunctionResult(functionFragment: "transferAccruedDust", data: BytesLike): Result;
62
- decodeFunctionResult(functionFragment: "unpauseWithdrawals", data: BytesLike): Result;
63
140
  decodeFunctionResult(functionFragment: "updateState", data: BytesLike): Result;
141
+ decodeFunctionResult(functionFragment: "updateUserReward", data: BytesLike): Result;
64
142
  decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
65
143
  decodeFunctionResult(functionFragment: "withdrawNFT", data: BytesLike): Result;
66
144
  }
@@ -87,18 +165,6 @@ export declare namespace CanPaybackDebtChangedEvent {
87
165
  type Log = TypedEventLog<Event>;
88
166
  type LogDescription = TypedLogDescription<Event>;
89
167
  }
90
- export declare namespace CurveVaultUpdatedEvent {
91
- type InputTuple = [oldVault: AddressLike, newVault: AddressLike];
92
- type OutputTuple = [oldVault: string, newVault: string];
93
- interface OutputObject {
94
- oldVault: string;
95
- newVault: string;
96
- }
97
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
98
- type Filter = TypedDeferredTopicFilter<Event>;
99
- type Log = TypedEventLog<Event>;
100
- type LogDescription = TypedLogDescription<Event>;
101
- }
102
168
  export declare namespace DepositEvent {
103
169
  type InputTuple = [
104
170
  user: AddressLike,
@@ -120,6 +186,58 @@ export declare namespace DepositEvent {
120
186
  type Log = TypedEventLog<Event>;
121
187
  type LogDescription = TypedLogDescription<Event>;
122
188
  }
189
+ export declare namespace FeeCollectorUpdatedEvent {
190
+ type InputTuple = [
191
+ oldFeeCollector: AddressLike,
192
+ newFeeCollector: AddressLike
193
+ ];
194
+ type OutputTuple = [oldFeeCollector: string, newFeeCollector: string];
195
+ interface OutputObject {
196
+ oldFeeCollector: string;
197
+ newFeeCollector: string;
198
+ }
199
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
200
+ type Filter = TypedDeferredTopicFilter<Event>;
201
+ type Log = TypedEventLog<Event>;
202
+ type LogDescription = TypedLogDescription<Event>;
203
+ }
204
+ export declare namespace InsufficientFeesEvent {
205
+ type InputTuple = [];
206
+ type OutputTuple = [];
207
+ interface OutputObject {
208
+ }
209
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
210
+ type Filter = TypedDeferredTopicFilter<Event>;
211
+ type Log = TypedEventLog<Event>;
212
+ type LogDescription = TypedLogDescription<Event>;
213
+ }
214
+ export declare namespace InsuranceFeeUpdatedEvent {
215
+ type InputTuple = [
216
+ oldInsuranceFee: BigNumberish,
217
+ newInsuranceFee: BigNumberish
218
+ ];
219
+ type OutputTuple = [oldInsuranceFee: bigint, newInsuranceFee: bigint];
220
+ interface OutputObject {
221
+ oldInsuranceFee: bigint;
222
+ newInsuranceFee: bigint;
223
+ }
224
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
225
+ type Filter = TypedDeferredTopicFilter<Event>;
226
+ type Log = TypedEventLog<Event>;
227
+ type LogDescription = TypedLogDescription<Event>;
228
+ }
229
+ export declare namespace InsuredNFTEvent {
230
+ type InputTuple = [tokenId: BigNumberish, amount: BigNumberish];
231
+ type OutputTuple = [tokenId: bigint, amount: bigint];
232
+ interface OutputObject {
233
+ tokenId: bigint;
234
+ amount: bigint;
235
+ }
236
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
237
+ type Filter = TypedDeferredTopicFilter<Event>;
238
+ type Log = TypedEventLog<Event>;
239
+ type LogDescription = TypedLogDescription<Event>;
240
+ }
123
241
  export declare namespace LiquidationEvent {
124
242
  type InputTuple = [
125
243
  liquidator: AddressLike,
@@ -145,10 +263,11 @@ export declare namespace LiquidationEvent {
145
263
  type LogDescription = TypedLogDescription<Event>;
146
264
  }
147
265
  export declare namespace LiquidationClosedEvent {
148
- type InputTuple = [user: AddressLike];
149
- type OutputTuple = [user: string];
266
+ type InputTuple = [user: AddressLike, tokenId: BigNumberish];
267
+ type OutputTuple = [user: string, tokenId: bigint];
150
268
  interface OutputObject {
151
269
  user: string;
270
+ tokenId: bigint;
152
271
  }
153
272
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
154
273
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -159,18 +278,21 @@ export declare namespace LiquidationFinalizedEvent {
159
278
  type InputTuple = [
160
279
  liquidator: AddressLike,
161
280
  user: AddressLike,
281
+ tokenId: BigNumberish,
162
282
  debtRepaid: BigNumberish,
163
283
  collateralLiquidated: BigNumberish
164
284
  ];
165
285
  type OutputTuple = [
166
286
  liquidator: string,
167
287
  user: string,
288
+ tokenId: bigint,
168
289
  debtRepaid: bigint,
169
290
  collateralLiquidated: bigint
170
291
  ];
171
292
  interface OutputObject {
172
293
  liquidator: string;
173
294
  user: string;
295
+ tokenId: bigint;
174
296
  debtRepaid: bigint;
175
297
  collateralLiquidated: bigint;
176
298
  }
@@ -180,11 +302,16 @@ export declare namespace LiquidationFinalizedEvent {
180
302
  type LogDescription = TypedLogDescription<Event>;
181
303
  }
182
304
  export declare namespace LiquidationInitiatedEvent {
183
- type InputTuple = [liquidator: AddressLike, user: AddressLike];
184
- type OutputTuple = [liquidator: string, user: string];
305
+ type InputTuple = [
306
+ liquidator: AddressLike,
307
+ user: AddressLike,
308
+ tokenId: BigNumberish
309
+ ];
310
+ type OutputTuple = [liquidator: string, user: string, tokenId: bigint];
185
311
  interface OutputObject {
186
312
  liquidator: string;
187
313
  user: string;
314
+ tokenId: bigint;
188
315
  }
189
316
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
190
317
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -263,6 +390,58 @@ export declare namespace NFTWithdrawnEvent {
263
390
  type Log = TypedEventLog<Event>;
264
391
  type LogDescription = TypedLogDescription<Event>;
265
392
  }
393
+ export declare namespace NotFeeCollectorEvent {
394
+ type InputTuple = [];
395
+ type OutputTuple = [];
396
+ interface OutputObject {
397
+ }
398
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
399
+ type Filter = TypedDeferredTopicFilter<Event>;
400
+ type Log = TypedEventLog<Event>;
401
+ type LogDescription = TypedLogDescription<Event>;
402
+ }
403
+ export declare namespace ProtocolFeeRateUpdatedEvent {
404
+ type InputTuple = [oldValue: BigNumberish, newValue: BigNumberish];
405
+ type OutputTuple = [oldValue: bigint, newValue: bigint];
406
+ interface OutputObject {
407
+ oldValue: bigint;
408
+ newValue: bigint;
409
+ }
410
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
411
+ type Filter = TypedDeferredTopicFilter<Event>;
412
+ type Log = TypedEventLog<Event>;
413
+ type LogDescription = TypedLogDescription<Event>;
414
+ }
415
+ export declare namespace ProtocolFeesCollectedEvent {
416
+ type InputTuple = [
417
+ protocolFee: BigNumberish,
418
+ accumulatedProtocolFees: BigNumberish
419
+ ];
420
+ type OutputTuple = [
421
+ protocolFee: bigint,
422
+ accumulatedProtocolFees: bigint
423
+ ];
424
+ interface OutputObject {
425
+ protocolFee: bigint;
426
+ accumulatedProtocolFees: bigint;
427
+ }
428
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
429
+ type Filter = TypedDeferredTopicFilter<Event>;
430
+ type Log = TypedEventLog<Event>;
431
+ type LogDescription = TypedLogDescription<Event>;
432
+ }
433
+ export declare namespace ProtocolFeesWithdrawnEvent {
434
+ type InputTuple = [feeCollector: AddressLike, amount: BigNumberish];
435
+ type OutputTuple = [feeCollector: string, amount: bigint];
436
+ interface OutputObject {
437
+ feeCollector: string;
438
+ amount: bigint;
439
+ }
440
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
441
+ type Filter = TypedDeferredTopicFilter<Event>;
442
+ type Log = TypedEventLog<Event>;
443
+ type LogDescription = TypedLogDescription<Event>;
444
+ }
266
445
  export declare namespace RepayEvent {
267
446
  type InputTuple = [
268
447
  user: AddressLike,
@@ -280,6 +459,89 @@ export declare namespace RepayEvent {
280
459
  type Log = TypedEventLog<Event>;
281
460
  type LogDescription = TypedLogDescription<Event>;
282
461
  }
462
+ export declare namespace RewardClaimedEvent {
463
+ type InputTuple = [
464
+ user: AddressLike,
465
+ token: AddressLike,
466
+ amount: BigNumberish
467
+ ];
468
+ type OutputTuple = [user: string, token: string, amount: bigint];
469
+ interface OutputObject {
470
+ user: string;
471
+ token: string;
472
+ amount: bigint;
473
+ }
474
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
475
+ type Filter = TypedDeferredTopicFilter<Event>;
476
+ type Log = TypedEventLog<Event>;
477
+ type LogDescription = TypedLogDescription<Event>;
478
+ }
479
+ export declare namespace RewardDistributedEvent {
480
+ type InputTuple = [user: AddressLike, amount: BigNumberish];
481
+ type OutputTuple = [user: string, amount: bigint];
482
+ interface OutputObject {
483
+ user: string;
484
+ amount: bigint;
485
+ }
486
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
487
+ type Filter = TypedDeferredTopicFilter<Event>;
488
+ type Log = TypedEventLog<Event>;
489
+ type LogDescription = TypedLogDescription<Event>;
490
+ }
491
+ export declare namespace RewardParametersUpdatedEvent {
492
+ type InputTuple = [
493
+ token: AddressLike,
494
+ rewardRate: BigNumberish,
495
+ duration: BigNumberish
496
+ ];
497
+ type OutputTuple = [
498
+ token: string,
499
+ rewardRate: bigint,
500
+ duration: bigint
501
+ ];
502
+ interface OutputObject {
503
+ token: string;
504
+ rewardRate: bigint;
505
+ duration: bigint;
506
+ }
507
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
508
+ type Filter = TypedDeferredTopicFilter<Event>;
509
+ type Log = TypedEventLog<Event>;
510
+ type LogDescription = TypedLogDescription<Event>;
511
+ }
512
+ export declare namespace RewardTokenAddedEvent {
513
+ type InputTuple = [
514
+ token: AddressLike,
515
+ rewardRate: BigNumberish,
516
+ duration: BigNumberish
517
+ ];
518
+ type OutputTuple = [
519
+ token: string,
520
+ rewardRate: bigint,
521
+ duration: bigint
522
+ ];
523
+ interface OutputObject {
524
+ token: string;
525
+ rewardRate: bigint;
526
+ duration: bigint;
527
+ }
528
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
529
+ type Filter = TypedDeferredTopicFilter<Event>;
530
+ type Log = TypedEventLog<Event>;
531
+ type LogDescription = TypedLogDescription<Event>;
532
+ }
533
+ export declare namespace RewardTokensDepositedEvent {
534
+ type InputTuple = [user: AddressLike, amount: BigNumberish];
535
+ type OutputTuple = [user: string, amount: bigint];
536
+ interface OutputObject {
537
+ user: string;
538
+ amount: bigint;
539
+ }
540
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
541
+ type Filter = TypedDeferredTopicFilter<Event>;
542
+ type Log = TypedEventLog<Event>;
543
+ type LogDescription = TypedLogDescription<Event>;
544
+ }
283
545
  export declare namespace StabilityPoolUpdatedEvent {
284
546
  type InputTuple = [
285
547
  oldStabilityPool: AddressLike,
@@ -298,6 +560,40 @@ export declare namespace StabilityPoolUpdatedEvent {
298
560
  type Log = TypedEventLog<Event>;
299
561
  type LogDescription = TypedLogDescription<Event>;
300
562
  }
563
+ export declare namespace VaultRewardsClaimedEvent {
564
+ type InputTuple = [amount: BigNumberish];
565
+ type OutputTuple = [amount: bigint];
566
+ interface OutputObject {
567
+ amount: bigint;
568
+ }
569
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
570
+ type Filter = TypedDeferredTopicFilter<Event>;
571
+ type Log = TypedEventLog<Event>;
572
+ type LogDescription = TypedLogDescription<Event>;
573
+ }
574
+ export declare namespace VaultUpdatedEvent {
575
+ type InputTuple = [oldVault: AddressLike, newVault: AddressLike];
576
+ type OutputTuple = [oldVault: string, newVault: string];
577
+ interface OutputObject {
578
+ oldVault: string;
579
+ newVault: string;
580
+ }
581
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
582
+ type Filter = TypedDeferredTopicFilter<Event>;
583
+ type Log = TypedEventLog<Event>;
584
+ type LogDescription = TypedLogDescription<Event>;
585
+ }
586
+ export declare namespace VaultWithdrawalFailedEvent {
587
+ type InputTuple = [vault: AddressLike];
588
+ type OutputTuple = [vault: string];
589
+ interface OutputObject {
590
+ vault: string;
591
+ }
592
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
593
+ type Filter = TypedDeferredTopicFilter<Event>;
594
+ type Log = TypedEventLog<Event>;
595
+ type LogDescription = TypedLogDescription<Event>;
596
+ }
301
597
  export declare namespace WithdrawEvent {
302
598
  type InputTuple = [user: AddressLike, amount: BigNumberish];
303
599
  type OutputTuple = [user: string, amount: bigint];
@@ -334,32 +630,94 @@ export interface MockLendingPoolDebtToken extends BaseContract {
334
630
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
335
631
  listeners(eventName?: string): Promise<Array<Listener>>;
336
632
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
337
- borrow: TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
633
+ borrow: TypedContractMethod<[
634
+ tokenId: BigNumberish,
635
+ amount: BigNumberish
636
+ ], [
637
+ void
638
+ ], "nonpayable">;
338
639
  calculateHealthFactor: TypedContractMethod<[
339
- arg0: AddressLike
640
+ userAddress: AddressLike,
641
+ tokenId: BigNumberish
340
642
  ], [
341
643
  bigint
342
644
  ], "view">;
343
- closeLiquidation: TypedContractMethod<[], [void], "nonpayable">;
344
- deposit: TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
345
- depositNFT: TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
645
+ claimCollectorRewards: TypedContractMethod<[], [bigint], "nonpayable">;
646
+ claimReward: TypedContractMethod<[], [boolean], "nonpayable">;
647
+ closeLiquidation: TypedContractMethod<[
648
+ tokenId: BigNumberish
649
+ ], [
650
+ void
651
+ ], "nonpayable">;
652
+ deposit: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
653
+ depositNFT: TypedContractMethod<[
654
+ tokenId: BigNumberish
655
+ ], [
656
+ void
657
+ ], "nonpayable">;
658
+ depositRewardTokens: TypedContractMethod<[
659
+ amount: BigNumberish
660
+ ], [
661
+ void
662
+ ], "nonpayable">;
346
663
  finalizeLiquidation: TypedContractMethod<[
347
- arg0: AddressLike
664
+ userAddress: AddressLike,
665
+ tokenId: BigNumberish
348
666
  ], [
349
667
  void
350
668
  ], "nonpayable">;
351
- getNFTPrice: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
669
+ getAllUserData: TypedContractMethod<[
670
+ userAddress: AddressLike
671
+ ], [
672
+ ILendingPool.UserDataViewStructOutput
673
+ ], "view">;
674
+ getNFTPrice: TypedContractMethod<[tokenId: BigNumberish], [bigint], "view">;
352
675
  getNormalizedDebt: TypedContractMethod<[], [bigint], "view">;
353
676
  getNormalizedIncome: TypedContractMethod<[], [bigint], "view">;
354
- getPrimeRate: TypedContractMethod<[], [bigint], "view">;
677
+ getPendingReward: TypedContractMethod<[user: AddressLike], [bigint], "view">;
678
+ getPosition: TypedContractMethod<[
679
+ userAddress: AddressLike,
680
+ tokenId: BigNumberish
681
+ ], [
682
+ ILendingPool.NFTPositionStructOutput
683
+ ], "view">;
684
+ getPositionData: TypedContractMethod<[
685
+ userAddress: AddressLike,
686
+ tokenId: BigNumberish
687
+ ], [
688
+ [bigint, bigint]
689
+ ], "view">;
690
+ getPositionDebt: TypedContractMethod<[
691
+ userAddress: AddressLike,
692
+ tokenId: BigNumberish
693
+ ], [
694
+ bigint
695
+ ], "view">;
696
+ getPositionScaledDebt: TypedContractMethod<[
697
+ userAddress: AddressLike,
698
+ tokenId: BigNumberish
699
+ ], [
700
+ bigint
701
+ ], "view">;
702
+ getPositionsScaledDebt: TypedContractMethod<[
703
+ userAddress: AddressLike
704
+ ], [
705
+ bigint
706
+ ], "view">;
707
+ getRAACNFTAddress: TypedContractMethod<[], [string], "view">;
355
708
  getUserCollateralValue: TypedContractMethod<[
356
- arg0: AddressLike
709
+ userAddress: AddressLike
710
+ ], [
711
+ bigint
712
+ ], "view">;
713
+ getUserDebt: TypedContractMethod<[
714
+ userAddress: AddressLike
357
715
  ], [
358
716
  bigint
359
717
  ], "view">;
360
- getUserDebt: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
361
718
  initiateLiquidation: TypedContractMethod<[
362
- arg0: AddressLike
719
+ userAddress: AddressLike,
720
+ tokenId: BigNumberish
363
721
  ], [
364
722
  void
365
723
  ], "nonpayable">;
@@ -371,26 +729,16 @@ export interface MockLendingPoolDebtToken extends BaseContract {
371
729
  ], [
372
730
  string
373
731
  ], "view">;
374
- pauseWithdrawals: TypedContractMethod<[], [void], "nonpayable">;
375
- repay: TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
376
- repayOnBehalf: TypedContractMethod<[
377
- arg0: BigNumberish,
378
- arg1: AddressLike
379
- ], [
380
- void
381
- ], "nonpayable">;
382
- setHealthFactorLiquidationThreshold: TypedContractMethod<[
383
- arg0: BigNumberish
384
- ], [
385
- void
386
- ], "nonpayable">;
387
- setLiquidationGracePeriod: TypedContractMethod<[
388
- arg0: BigNumberish
732
+ repay: TypedContractMethod<[
733
+ tokenId: BigNumberish,
734
+ amount: BigNumberish
389
735
  ], [
390
736
  void
391
737
  ], "nonpayable">;
392
- setLiquidationThreshold: TypedContractMethod<[
393
- arg0: BigNumberish
738
+ repayOnBehalf: TypedContractMethod<[
739
+ tokenId: BigNumberish,
740
+ amount: BigNumberish,
741
+ onBehalfOf: AddressLike
394
742
  ], [
395
743
  void
396
744
  ], "nonpayable">;
@@ -405,9 +753,8 @@ export interface MockLendingPoolDebtToken extends BaseContract {
405
753
  ], [
406
754
  void
407
755
  ], "nonpayable">;
408
- setPrimeRate: TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
409
- setProtocolFeeRate: TypedContractMethod<[
410
- arg0: BigNumberish
756
+ setPrimeRate: TypedContractMethod<[
757
+ newPrimeRate: BigNumberish
411
758
  ], [
412
759
  void
413
760
  ], "nonpayable">;
@@ -422,24 +769,86 @@ export interface MockLendingPoolDebtToken extends BaseContract {
422
769
  ], [
423
770
  void
424
771
  ], "nonpayable">;
425
- unpauseWithdrawals: TypedContractMethod<[], [void], "nonpayable">;
426
772
  updateState: TypedContractMethod<[], [void], "nonpayable">;
427
- withdraw: TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
428
- withdrawNFT: TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
773
+ updateUserReward: TypedContractMethod<[
774
+ user: AddressLike
775
+ ], [
776
+ void
777
+ ], "nonpayable">;
778
+ withdraw: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
779
+ withdrawNFT: TypedContractMethod<[
780
+ tokenId: BigNumberish
781
+ ], [
782
+ void
783
+ ], "nonpayable">;
429
784
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
430
- getFunction(nameOrSignature: "borrow"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
431
- getFunction(nameOrSignature: "calculateHealthFactor"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
432
- getFunction(nameOrSignature: "closeLiquidation"): TypedContractMethod<[], [void], "nonpayable">;
433
- getFunction(nameOrSignature: "deposit"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
434
- getFunction(nameOrSignature: "depositNFT"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
435
- getFunction(nameOrSignature: "finalizeLiquidation"): TypedContractMethod<[arg0: AddressLike], [void], "nonpayable">;
436
- getFunction(nameOrSignature: "getNFTPrice"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
785
+ getFunction(nameOrSignature: "borrow"): TypedContractMethod<[
786
+ tokenId: BigNumberish,
787
+ amount: BigNumberish
788
+ ], [
789
+ void
790
+ ], "nonpayable">;
791
+ getFunction(nameOrSignature: "calculateHealthFactor"): TypedContractMethod<[
792
+ userAddress: AddressLike,
793
+ tokenId: BigNumberish
794
+ ], [
795
+ bigint
796
+ ], "view">;
797
+ getFunction(nameOrSignature: "claimCollectorRewards"): TypedContractMethod<[], [bigint], "nonpayable">;
798
+ getFunction(nameOrSignature: "claimReward"): TypedContractMethod<[], [boolean], "nonpayable">;
799
+ getFunction(nameOrSignature: "closeLiquidation"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
800
+ getFunction(nameOrSignature: "deposit"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
801
+ getFunction(nameOrSignature: "depositNFT"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
802
+ getFunction(nameOrSignature: "depositRewardTokens"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
803
+ getFunction(nameOrSignature: "finalizeLiquidation"): TypedContractMethod<[
804
+ userAddress: AddressLike,
805
+ tokenId: BigNumberish
806
+ ], [
807
+ void
808
+ ], "nonpayable">;
809
+ getFunction(nameOrSignature: "getAllUserData"): TypedContractMethod<[
810
+ userAddress: AddressLike
811
+ ], [
812
+ ILendingPool.UserDataViewStructOutput
813
+ ], "view">;
814
+ getFunction(nameOrSignature: "getNFTPrice"): TypedContractMethod<[tokenId: BigNumberish], [bigint], "view">;
437
815
  getFunction(nameOrSignature: "getNormalizedDebt"): TypedContractMethod<[], [bigint], "view">;
438
816
  getFunction(nameOrSignature: "getNormalizedIncome"): TypedContractMethod<[], [bigint], "view">;
439
- getFunction(nameOrSignature: "getPrimeRate"): TypedContractMethod<[], [bigint], "view">;
440
- getFunction(nameOrSignature: "getUserCollateralValue"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
441
- getFunction(nameOrSignature: "getUserDebt"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
442
- getFunction(nameOrSignature: "initiateLiquidation"): TypedContractMethod<[arg0: AddressLike], [void], "nonpayable">;
817
+ getFunction(nameOrSignature: "getPendingReward"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
818
+ getFunction(nameOrSignature: "getPosition"): TypedContractMethod<[
819
+ userAddress: AddressLike,
820
+ tokenId: BigNumberish
821
+ ], [
822
+ ILendingPool.NFTPositionStructOutput
823
+ ], "view">;
824
+ getFunction(nameOrSignature: "getPositionData"): TypedContractMethod<[
825
+ userAddress: AddressLike,
826
+ tokenId: BigNumberish
827
+ ], [
828
+ [bigint, bigint]
829
+ ], "view">;
830
+ getFunction(nameOrSignature: "getPositionDebt"): TypedContractMethod<[
831
+ userAddress: AddressLike,
832
+ tokenId: BigNumberish
833
+ ], [
834
+ bigint
835
+ ], "view">;
836
+ getFunction(nameOrSignature: "getPositionScaledDebt"): TypedContractMethod<[
837
+ userAddress: AddressLike,
838
+ tokenId: BigNumberish
839
+ ], [
840
+ bigint
841
+ ], "view">;
842
+ getFunction(nameOrSignature: "getPositionsScaledDebt"): TypedContractMethod<[userAddress: AddressLike], [bigint], "view">;
843
+ getFunction(nameOrSignature: "getRAACNFTAddress"): TypedContractMethod<[], [string], "view">;
844
+ getFunction(nameOrSignature: "getUserCollateralValue"): TypedContractMethod<[userAddress: AddressLike], [bigint], "view">;
845
+ getFunction(nameOrSignature: "getUserDebt"): TypedContractMethod<[userAddress: AddressLike], [bigint], "view">;
846
+ getFunction(nameOrSignature: "initiateLiquidation"): TypedContractMethod<[
847
+ userAddress: AddressLike,
848
+ tokenId: BigNumberish
849
+ ], [
850
+ void
851
+ ], "nonpayable">;
443
852
  getFunction(nameOrSignature: "onERC721Received"): TypedContractMethod<[
444
853
  arg0: AddressLike,
445
854
  arg1: AddressLike,
@@ -448,17 +857,19 @@ export interface MockLendingPoolDebtToken extends BaseContract {
448
857
  ], [
449
858
  string
450
859
  ], "view">;
451
- getFunction(nameOrSignature: "pauseWithdrawals"): TypedContractMethod<[], [void], "nonpayable">;
452
- getFunction(nameOrSignature: "repay"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
860
+ getFunction(nameOrSignature: "repay"): TypedContractMethod<[
861
+ tokenId: BigNumberish,
862
+ amount: BigNumberish
863
+ ], [
864
+ void
865
+ ], "nonpayable">;
453
866
  getFunction(nameOrSignature: "repayOnBehalf"): TypedContractMethod<[
454
- arg0: BigNumberish,
455
- arg1: AddressLike
867
+ tokenId: BigNumberish,
868
+ amount: BigNumberish,
869
+ onBehalfOf: AddressLike
456
870
  ], [
457
871
  void
458
872
  ], "nonpayable">;
459
- getFunction(nameOrSignature: "setHealthFactorLiquidationThreshold"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
460
- getFunction(nameOrSignature: "setLiquidationGracePeriod"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
461
- getFunction(nameOrSignature: "setLiquidationThreshold"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
462
873
  getFunction(nameOrSignature: "setNormalizedDebt"): TypedContractMethod<[
463
874
  newNormalizedDebt: BigNumberish
464
875
  ], [
@@ -470,8 +881,7 @@ export interface MockLendingPoolDebtToken extends BaseContract {
470
881
  ], [
471
882
  void
472
883
  ], "nonpayable">;
473
- getFunction(nameOrSignature: "setPrimeRate"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
474
- getFunction(nameOrSignature: "setProtocolFeeRate"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
884
+ getFunction(nameOrSignature: "setPrimeRate"): TypedContractMethod<[newPrimeRate: BigNumberish], [void], "nonpayable">;
475
885
  getFunction(nameOrSignature: "setStabilityPool"): TypedContractMethod<[newStabilityPool: AddressLike], [void], "nonpayable">;
476
886
  getFunction(nameOrSignature: "transferAccruedDust"): TypedContractMethod<[
477
887
  recipient: AddressLike,
@@ -479,14 +889,17 @@ export interface MockLendingPoolDebtToken extends BaseContract {
479
889
  ], [
480
890
  void
481
891
  ], "nonpayable">;
482
- getFunction(nameOrSignature: "unpauseWithdrawals"): TypedContractMethod<[], [void], "nonpayable">;
483
892
  getFunction(nameOrSignature: "updateState"): TypedContractMethod<[], [void], "nonpayable">;
484
- getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
485
- getFunction(nameOrSignature: "withdrawNFT"): TypedContractMethod<[arg0: BigNumberish], [void], "nonpayable">;
893
+ getFunction(nameOrSignature: "updateUserReward"): TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
894
+ getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
895
+ getFunction(nameOrSignature: "withdrawNFT"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
486
896
  getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
487
897
  getEvent(key: "CanPaybackDebtChanged"): TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
488
- getEvent(key: "CurveVaultUpdated"): TypedContractEvent<CurveVaultUpdatedEvent.InputTuple, CurveVaultUpdatedEvent.OutputTuple, CurveVaultUpdatedEvent.OutputObject>;
489
898
  getEvent(key: "Deposit"): TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
899
+ getEvent(key: "FeeCollectorUpdated"): TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
900
+ getEvent(key: "InsufficientFees"): TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
901
+ getEvent(key: "InsuranceFeeUpdated"): TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
902
+ getEvent(key: "InsuredNFT"): TypedContractEvent<InsuredNFTEvent.InputTuple, InsuredNFTEvent.OutputTuple, InsuredNFTEvent.OutputObject>;
490
903
  getEvent(key: "Liquidation"): TypedContractEvent<LiquidationEvent.InputTuple, LiquidationEvent.OutputTuple, LiquidationEvent.OutputObject>;
491
904
  getEvent(key: "LiquidationClosed"): TypedContractEvent<LiquidationClosedEvent.InputTuple, LiquidationClosedEvent.OutputTuple, LiquidationClosedEvent.OutputObject>;
492
905
  getEvent(key: "LiquidationFinalized"): TypedContractEvent<LiquidationFinalizedEvent.InputTuple, LiquidationFinalizedEvent.OutputTuple, LiquidationFinalizedEvent.OutputObject>;
@@ -496,8 +909,20 @@ export interface MockLendingPoolDebtToken extends BaseContract {
496
909
  getEvent(key: "LiquidityRebalanced"): TypedContractEvent<LiquidityRebalancedEvent.InputTuple, LiquidityRebalancedEvent.OutputTuple, LiquidityRebalancedEvent.OutputObject>;
497
910
  getEvent(key: "NFTDeposited"): TypedContractEvent<NFTDepositedEvent.InputTuple, NFTDepositedEvent.OutputTuple, NFTDepositedEvent.OutputObject>;
498
911
  getEvent(key: "NFTWithdrawn"): TypedContractEvent<NFTWithdrawnEvent.InputTuple, NFTWithdrawnEvent.OutputTuple, NFTWithdrawnEvent.OutputObject>;
912
+ getEvent(key: "NotFeeCollector"): TypedContractEvent<NotFeeCollectorEvent.InputTuple, NotFeeCollectorEvent.OutputTuple, NotFeeCollectorEvent.OutputObject>;
913
+ getEvent(key: "ProtocolFeeRateUpdated"): TypedContractEvent<ProtocolFeeRateUpdatedEvent.InputTuple, ProtocolFeeRateUpdatedEvent.OutputTuple, ProtocolFeeRateUpdatedEvent.OutputObject>;
914
+ getEvent(key: "ProtocolFeesCollected"): TypedContractEvent<ProtocolFeesCollectedEvent.InputTuple, ProtocolFeesCollectedEvent.OutputTuple, ProtocolFeesCollectedEvent.OutputObject>;
915
+ getEvent(key: "ProtocolFeesWithdrawn"): TypedContractEvent<ProtocolFeesWithdrawnEvent.InputTuple, ProtocolFeesWithdrawnEvent.OutputTuple, ProtocolFeesWithdrawnEvent.OutputObject>;
499
916
  getEvent(key: "Repay"): TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
917
+ getEvent(key: "RewardClaimed"): TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
918
+ getEvent(key: "RewardDistributed"): TypedContractEvent<RewardDistributedEvent.InputTuple, RewardDistributedEvent.OutputTuple, RewardDistributedEvent.OutputObject>;
919
+ getEvent(key: "RewardParametersUpdated"): TypedContractEvent<RewardParametersUpdatedEvent.InputTuple, RewardParametersUpdatedEvent.OutputTuple, RewardParametersUpdatedEvent.OutputObject>;
920
+ getEvent(key: "RewardTokenAdded"): TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
921
+ getEvent(key: "RewardTokensDeposited"): TypedContractEvent<RewardTokensDepositedEvent.InputTuple, RewardTokensDepositedEvent.OutputTuple, RewardTokensDepositedEvent.OutputObject>;
500
922
  getEvent(key: "StabilityPoolUpdated"): TypedContractEvent<StabilityPoolUpdatedEvent.InputTuple, StabilityPoolUpdatedEvent.OutputTuple, StabilityPoolUpdatedEvent.OutputObject>;
923
+ getEvent(key: "VaultRewardsClaimed"): TypedContractEvent<VaultRewardsClaimedEvent.InputTuple, VaultRewardsClaimedEvent.OutputTuple, VaultRewardsClaimedEvent.OutputObject>;
924
+ getEvent(key: "VaultUpdated"): TypedContractEvent<VaultUpdatedEvent.InputTuple, VaultUpdatedEvent.OutputTuple, VaultUpdatedEvent.OutputObject>;
925
+ getEvent(key: "VaultWithdrawalFailed"): TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
501
926
  getEvent(key: "Withdraw"): TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
502
927
  getEvent(key: "WithdrawalsPauseStatusChanged"): TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
503
928
  filters: {
@@ -505,17 +930,23 @@ export interface MockLendingPoolDebtToken extends BaseContract {
505
930
  Borrow: TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
506
931
  "CanPaybackDebtChanged(bool)": TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
507
932
  CanPaybackDebtChanged: TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
508
- "CurveVaultUpdated(address,address)": TypedContractEvent<CurveVaultUpdatedEvent.InputTuple, CurveVaultUpdatedEvent.OutputTuple, CurveVaultUpdatedEvent.OutputObject>;
509
- CurveVaultUpdated: TypedContractEvent<CurveVaultUpdatedEvent.InputTuple, CurveVaultUpdatedEvent.OutputTuple, CurveVaultUpdatedEvent.OutputObject>;
510
933
  "Deposit(address,uint256,uint256)": TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
511
934
  Deposit: TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
935
+ "FeeCollectorUpdated(address,address)": TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
936
+ FeeCollectorUpdated: TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
937
+ "InsufficientFees()": TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
938
+ InsufficientFees: TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
939
+ "InsuranceFeeUpdated(uint256,uint256)": TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
940
+ InsuranceFeeUpdated: TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
941
+ "InsuredNFT(uint256,uint256)": TypedContractEvent<InsuredNFTEvent.InputTuple, InsuredNFTEvent.OutputTuple, InsuredNFTEvent.OutputObject>;
942
+ InsuredNFT: TypedContractEvent<InsuredNFTEvent.InputTuple, InsuredNFTEvent.OutputTuple, InsuredNFTEvent.OutputObject>;
512
943
  "Liquidation(address,address,uint256,uint256)": TypedContractEvent<LiquidationEvent.InputTuple, LiquidationEvent.OutputTuple, LiquidationEvent.OutputObject>;
513
944
  Liquidation: TypedContractEvent<LiquidationEvent.InputTuple, LiquidationEvent.OutputTuple, LiquidationEvent.OutputObject>;
514
- "LiquidationClosed(address)": TypedContractEvent<LiquidationClosedEvent.InputTuple, LiquidationClosedEvent.OutputTuple, LiquidationClosedEvent.OutputObject>;
945
+ "LiquidationClosed(address,uint256)": TypedContractEvent<LiquidationClosedEvent.InputTuple, LiquidationClosedEvent.OutputTuple, LiquidationClosedEvent.OutputObject>;
515
946
  LiquidationClosed: TypedContractEvent<LiquidationClosedEvent.InputTuple, LiquidationClosedEvent.OutputTuple, LiquidationClosedEvent.OutputObject>;
516
- "LiquidationFinalized(address,address,uint256,uint256)": TypedContractEvent<LiquidationFinalizedEvent.InputTuple, LiquidationFinalizedEvent.OutputTuple, LiquidationFinalizedEvent.OutputObject>;
947
+ "LiquidationFinalized(address,address,uint256,uint256,uint256)": TypedContractEvent<LiquidationFinalizedEvent.InputTuple, LiquidationFinalizedEvent.OutputTuple, LiquidationFinalizedEvent.OutputObject>;
517
948
  LiquidationFinalized: TypedContractEvent<LiquidationFinalizedEvent.InputTuple, LiquidationFinalizedEvent.OutputTuple, LiquidationFinalizedEvent.OutputObject>;
518
- "LiquidationInitiated(address,address)": TypedContractEvent<LiquidationInitiatedEvent.InputTuple, LiquidationInitiatedEvent.OutputTuple, LiquidationInitiatedEvent.OutputObject>;
949
+ "LiquidationInitiated(address,address,uint256)": TypedContractEvent<LiquidationInitiatedEvent.InputTuple, LiquidationInitiatedEvent.OutputTuple, LiquidationInitiatedEvent.OutputObject>;
519
950
  LiquidationInitiated: TypedContractEvent<LiquidationInitiatedEvent.InputTuple, LiquidationInitiatedEvent.OutputTuple, LiquidationInitiatedEvent.OutputObject>;
520
951
  "LiquidationParametersUpdated(uint256,uint256,uint256)": TypedContractEvent<LiquidationParametersUpdatedEvent.InputTuple, LiquidationParametersUpdatedEvent.OutputTuple, LiquidationParametersUpdatedEvent.OutputObject>;
521
952
  LiquidationParametersUpdated: TypedContractEvent<LiquidationParametersUpdatedEvent.InputTuple, LiquidationParametersUpdatedEvent.OutputTuple, LiquidationParametersUpdatedEvent.OutputObject>;
@@ -527,10 +958,34 @@ export interface MockLendingPoolDebtToken extends BaseContract {
527
958
  NFTDeposited: TypedContractEvent<NFTDepositedEvent.InputTuple, NFTDepositedEvent.OutputTuple, NFTDepositedEvent.OutputObject>;
528
959
  "NFTWithdrawn(address,uint256)": TypedContractEvent<NFTWithdrawnEvent.InputTuple, NFTWithdrawnEvent.OutputTuple, NFTWithdrawnEvent.OutputObject>;
529
960
  NFTWithdrawn: TypedContractEvent<NFTWithdrawnEvent.InputTuple, NFTWithdrawnEvent.OutputTuple, NFTWithdrawnEvent.OutputObject>;
961
+ "NotFeeCollector()": TypedContractEvent<NotFeeCollectorEvent.InputTuple, NotFeeCollectorEvent.OutputTuple, NotFeeCollectorEvent.OutputObject>;
962
+ NotFeeCollector: TypedContractEvent<NotFeeCollectorEvent.InputTuple, NotFeeCollectorEvent.OutputTuple, NotFeeCollectorEvent.OutputObject>;
963
+ "ProtocolFeeRateUpdated(uint256,uint256)": TypedContractEvent<ProtocolFeeRateUpdatedEvent.InputTuple, ProtocolFeeRateUpdatedEvent.OutputTuple, ProtocolFeeRateUpdatedEvent.OutputObject>;
964
+ ProtocolFeeRateUpdated: TypedContractEvent<ProtocolFeeRateUpdatedEvent.InputTuple, ProtocolFeeRateUpdatedEvent.OutputTuple, ProtocolFeeRateUpdatedEvent.OutputObject>;
965
+ "ProtocolFeesCollected(uint256,uint256)": TypedContractEvent<ProtocolFeesCollectedEvent.InputTuple, ProtocolFeesCollectedEvent.OutputTuple, ProtocolFeesCollectedEvent.OutputObject>;
966
+ ProtocolFeesCollected: TypedContractEvent<ProtocolFeesCollectedEvent.InputTuple, ProtocolFeesCollectedEvent.OutputTuple, ProtocolFeesCollectedEvent.OutputObject>;
967
+ "ProtocolFeesWithdrawn(address,uint256)": TypedContractEvent<ProtocolFeesWithdrawnEvent.InputTuple, ProtocolFeesWithdrawnEvent.OutputTuple, ProtocolFeesWithdrawnEvent.OutputObject>;
968
+ ProtocolFeesWithdrawn: TypedContractEvent<ProtocolFeesWithdrawnEvent.InputTuple, ProtocolFeesWithdrawnEvent.OutputTuple, ProtocolFeesWithdrawnEvent.OutputObject>;
530
969
  "Repay(address,address,uint256)": TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
531
970
  Repay: TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
971
+ "RewardClaimed(address,address,uint256)": TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
972
+ RewardClaimed: TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
973
+ "RewardDistributed(address,uint256)": TypedContractEvent<RewardDistributedEvent.InputTuple, RewardDistributedEvent.OutputTuple, RewardDistributedEvent.OutputObject>;
974
+ RewardDistributed: TypedContractEvent<RewardDistributedEvent.InputTuple, RewardDistributedEvent.OutputTuple, RewardDistributedEvent.OutputObject>;
975
+ "RewardParametersUpdated(address,uint256,uint256)": TypedContractEvent<RewardParametersUpdatedEvent.InputTuple, RewardParametersUpdatedEvent.OutputTuple, RewardParametersUpdatedEvent.OutputObject>;
976
+ RewardParametersUpdated: TypedContractEvent<RewardParametersUpdatedEvent.InputTuple, RewardParametersUpdatedEvent.OutputTuple, RewardParametersUpdatedEvent.OutputObject>;
977
+ "RewardTokenAdded(address,uint256,uint256)": TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
978
+ RewardTokenAdded: TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
979
+ "RewardTokensDeposited(address,uint256)": TypedContractEvent<RewardTokensDepositedEvent.InputTuple, RewardTokensDepositedEvent.OutputTuple, RewardTokensDepositedEvent.OutputObject>;
980
+ RewardTokensDeposited: TypedContractEvent<RewardTokensDepositedEvent.InputTuple, RewardTokensDepositedEvent.OutputTuple, RewardTokensDepositedEvent.OutputObject>;
532
981
  "StabilityPoolUpdated(address,address)": TypedContractEvent<StabilityPoolUpdatedEvent.InputTuple, StabilityPoolUpdatedEvent.OutputTuple, StabilityPoolUpdatedEvent.OutputObject>;
533
982
  StabilityPoolUpdated: TypedContractEvent<StabilityPoolUpdatedEvent.InputTuple, StabilityPoolUpdatedEvent.OutputTuple, StabilityPoolUpdatedEvent.OutputObject>;
983
+ "VaultRewardsClaimed(uint256)": TypedContractEvent<VaultRewardsClaimedEvent.InputTuple, VaultRewardsClaimedEvent.OutputTuple, VaultRewardsClaimedEvent.OutputObject>;
984
+ VaultRewardsClaimed: TypedContractEvent<VaultRewardsClaimedEvent.InputTuple, VaultRewardsClaimedEvent.OutputTuple, VaultRewardsClaimedEvent.OutputObject>;
985
+ "VaultUpdated(address,address)": TypedContractEvent<VaultUpdatedEvent.InputTuple, VaultUpdatedEvent.OutputTuple, VaultUpdatedEvent.OutputObject>;
986
+ VaultUpdated: TypedContractEvent<VaultUpdatedEvent.InputTuple, VaultUpdatedEvent.OutputTuple, VaultUpdatedEvent.OutputObject>;
987
+ "VaultWithdrawalFailed(address)": TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
988
+ VaultWithdrawalFailed: TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
534
989
  "Withdraw(address,uint256)": TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
535
990
  Withdraw: TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
536
991
  "WithdrawalsPauseStatusChanged(bool)": TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;