@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
@@ -14,7 +14,7 @@ export declare class MockStabilityPool__factory extends ContractFactory {
14
14
  deploymentTransaction(): ContractTransactionResponse;
15
15
  }>;
16
16
  connect(runner: ContractRunner | null): MockStabilityPool__factory;
17
- static readonly bytecode = "0x608060405234801561001057600080fd5b506040516108cf3803806108cf83398101604081905261002f91610054565b600180546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b61083c806100936000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063168a48221461011f5780633dd404401461013a578063a9059cbb1461014f578063ba8b42a214610172578063cda6a45514610192578063e40963f2146101a5575b600061006e368261049d565b6001600160e01b03198116600090815260208190526040812080549293509091610097906104cd565b80601f01602080910402602001604051908101604052809291908181526020018280546100c3906104cd565b80156101105780601f106100e557610100808354040283529160200191610110565b820191906000526020600020905b8154815290600101906020018083116100f357829003601f168201915b50505050509050805160208201f35b6101276101d0565b6040519081526020015b60405180910390f35b61014d610148366004610507565b6102c1565b005b61016261015d366004610520565b61031d565b6040519015158152602001610131565b610185610180366004610575565b6103e0565b6040516101319190610597565b61014d6101a03660046105fb565b61047a565b6001546101b8906001600160a01b031681565b6040516001600160a01b039091168152602001610131565b630b45241160e11b600081815260208190527f7f815eeb72517d88f5edf68b6e08b6b037368d18dd627ff3d61e557f02267da78054919291839190610214906104cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610240906104cd565b801561028d5780601f106102625761010080835404028352916020019161028d565b820191906000526020600020905b81548152906001019060200180831161027057829003601f168201915b5050505050905080516000036102a65760009250505090565b808060200190518101906102ba91906106bd565b9250505090565b604080516020808201849052825180830382018152918301909252630b45241160e11b60008181529092527f7f815eeb72517d88f5edf68b6e08b6b037368d18dd627ff3d61e557f02267da7906103189082610724565b505050565b60015460405163a9059cbb60e01b81526001600160a01b03848116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015610371573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039591906107e4565b6103d75760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640160405180910390fd5b50600192915050565b600060208190529081526040902080546103f9906104cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610425906104cd565b80156104725780601f1061044757610100808354040283529160200191610472565b820191906000526020600020905b81548152906001019060200180831161045557829003601f168201915b505050505081565b6001600160e01b0319821660009081526020819052604090206103188282610724565b6001600160e01b031981358181169160048510156104c55780818660040360031b1b83161692505b505092915050565b600181811c908216806104e157607f821691505b60208210810361050157634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561051957600080fd5b5035919050565b6000806040838503121561053357600080fd5b82356001600160a01b038116811461054a57600080fd5b946020939093013593505050565b80356001600160e01b03198116811461057057600080fd5b919050565b60006020828403121561058757600080fd5b61059082610558565b9392505050565b600060208083528351808285015260005b818110156105c4578581018301518582016040015282016105a8565b506000604082860101526040601f19601f8301168501019250505092915050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561060e57600080fd5b61061783610558565b9150602083013567ffffffffffffffff8082111561063457600080fd5b818501915085601f83011261064857600080fd5b81358181111561065a5761065a6105e5565b604051601f8201601f19908116603f01168101908382118183101715610682576106826105e5565b8160405282815288602084870101111561069b57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000602082840312156106cf57600080fd5b5051919050565b601f82111561031857600081815260208120601f850160051c810160208610156106fd5750805b601f850160051c820191505b8181101561071c57828155600101610709565b505050505050565b815167ffffffffffffffff81111561073e5761073e6105e5565b6107528161074c84546104cd565b846106d6565b602080601f831160018114610787576000841561076f5750858301515b600019600386901b1c1916600185901b17855561071c565b600085815260208120601f198616915b828110156107b657888601518255948401946001909101908401610797565b50858210156107d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156107f657600080fd5b8151801515811461059057600080fdfea2646970667358221220a810857d7cc794734a2c1dee17dcbea120e5de6c9ce7bbd68fb0bdf660595e0764736f6c63430008140033";
17
+ static readonly bytecode = "0x608060405234801561001057600080fd5b506040516108cf3803806108cf83398101604081905261002f91610054565b600180546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b61083c806100936000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063168a48221461011f5780633dd404401461013a578063a9059cbb1461014f578063ba8b42a214610172578063cda6a45514610192578063e40963f2146101a5575b600061006e368261049d565b6001600160e01b03198116600090815260208190526040812080549293509091610097906104cd565b80601f01602080910402602001604051908101604052809291908181526020018280546100c3906104cd565b80156101105780601f106100e557610100808354040283529160200191610110565b820191906000526020600020905b8154815290600101906020018083116100f357829003601f168201915b50505050509050805160208201f35b6101276101d0565b6040519081526020015b60405180910390f35b61014d610148366004610507565b6102c1565b005b61016261015d366004610520565b61031d565b6040519015158152602001610131565b610185610180366004610575565b6103e0565b6040516101319190610597565b61014d6101a03660046105fb565b61047a565b6001546101b8906001600160a01b031681565b6040516001600160a01b039091168152602001610131565b630b45241160e11b600081815260208190527f7f815eeb72517d88f5edf68b6e08b6b037368d18dd627ff3d61e557f02267da78054919291839190610214906104cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610240906104cd565b801561028d5780601f106102625761010080835404028352916020019161028d565b820191906000526020600020905b81548152906001019060200180831161027057829003601f168201915b5050505050905080516000036102a65760009250505090565b808060200190518101906102ba91906106bd565b9250505090565b604080516020808201849052825180830382018152918301909252630b45241160e11b60008181529092527f7f815eeb72517d88f5edf68b6e08b6b037368d18dd627ff3d61e557f02267da7906103189082610724565b505050565b60015460405163a9059cbb60e01b81526001600160a01b03848116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015610371573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039591906107e4565b6103d75760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640160405180910390fd5b50600192915050565b600060208190529081526040902080546103f9906104cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610425906104cd565b80156104725780601f1061044757610100808354040283529160200191610472565b820191906000526020600020905b81548152906001019060200180831161045557829003601f168201915b505050505081565b6001600160e01b0319821660009081526020819052604090206103188282610724565b6001600160e01b031981358181169160048510156104c55780818660040360031b1b83161692505b505092915050565b600181811c908216806104e157607f821691505b60208210810361050157634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561051957600080fd5b5035919050565b6000806040838503121561053357600080fd5b82356001600160a01b038116811461054a57600080fd5b946020939093013593505050565b80356001600160e01b03198116811461057057600080fd5b919050565b60006020828403121561058757600080fd5b61059082610558565b9392505050565b600060208083528351808285015260005b818110156105c4578581018301518582016040015282016105a8565b506000604082860101526040601f19601f8301168501019250505092915050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561060e57600080fd5b61061783610558565b9150602083013567ffffffffffffffff8082111561063457600080fd5b818501915085601f83011261064857600080fd5b81358181111561065a5761065a6105e5565b604051601f8201601f19908116603f01168101908382118183101715610682576106826105e5565b8160405282815288602084870101111561069b57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000602082840312156106cf57600080fd5b5051919050565b601f82111561031857600081815260208120601f850160051c810160208610156106fd5750805b601f850160051c820191505b8181101561071c57828155600101610709565b505050505050565b815167ffffffffffffffff81111561073e5761073e6105e5565b6107528161074c84546104cd565b846106d6565b602080601f831160018114610787576000841561076f5750858301515b600019600386901b1c1916600185901b17855561071c565b600085815260208120601f198616915b828110156107b657888601518255948401946001909101908401610797565b50858210156107d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156107f657600080fd5b8151801515811461059057600080fdfea264697066735822122019d2e341056ffc4e8ca6eaae2cd1a4d94158f85b4e621917ead07a1f19fbd75e64736f6c63430008140033";
18
18
  static readonly abi: readonly [{
19
19
  readonly inputs: readonly [{
20
20
  readonly internalType: "address";
@@ -1,4 +1,6 @@
1
1
  export { MockLendingPool__factory } from "./MockLendingPool__factory";
2
+ export { MockLendingPoolCollector__factory } from "./MockLendingPoolCollector__factory";
2
3
  export { MockLendingPoolDebtToken__factory } from "./MockLendingPoolDebtToken__factory";
4
+ export { MockLiquidityPool__factory } from "./MockLiquidityPool__factory";
3
5
  export { MockPool__factory } from "./MockPool__factory";
4
6
  export { MockStabilityPool__factory } from "./MockStabilityPool__factory";
@@ -0,0 +1,68 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../../../../../common";
4
+ import type { MockDistributableContract, MockDistributableContractInterface } from "../../../../../contracts/mocks/core/primitives/MockDistributableContract";
5
+ type MockDistributableContractConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class MockDistributableContract__factory extends ContractFactory {
7
+ constructor(...args: MockDistributableContractConstructorParams);
8
+ getDeployTransaction(overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<MockDistributableContract & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): MockDistributableContract__factory;
17
+ static readonly bytecode = "0x608060405234801561001057600080fd5b5061033a806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a8031a1d14610030575b600080fd5b61004361003e36600461027b565b610057565b604051901515815260200160405180910390f35b600061006e6001600160a01b038416333085610077565b50600192915050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526100d19085906100d7565b50505050565b60006100ec6001600160a01b03841683610144565b9050805160001415801561011157508080602001905181019061010f91906102b3565b155b1561013f57604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b505050565b606061015283836000610159565b9392505050565b60608147101561017e5760405163cd78605960e01b8152306004820152602401610136565b600080856001600160a01b0316848660405161019a91906102d5565b60006040518083038185875af1925050503d80600081146101d7576040519150601f19603f3d011682016040523d82523d6000602084013e6101dc565b606091505b50915091506101ec8683836101f6565b9695505050505050565b60608261020b5761020682610252565b610152565b815115801561022257506001600160a01b0384163b155b1561024b57604051639996b31560e01b81526001600160a01b0385166004820152602401610136565b5080610152565b8051156102625780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6000806040838503121561028e57600080fd5b82356001600160a01b03811681146102a557600080fd5b946020939093013593505050565b6000602082840312156102c557600080fd5b8151801515811461015257600080fd5b6000825160005b818110156102f657602081860181015185830152016102dc565b50600092019182525091905056fea2646970667358221220c3cb688482f30448b30db216296601b8f162ce33bb454bea3578d094d8b314cc64736f6c63430008140033";
18
+ static readonly abi: readonly [{
19
+ readonly inputs: readonly [{
20
+ readonly internalType: "address";
21
+ readonly name: "target";
22
+ readonly type: "address";
23
+ }];
24
+ readonly name: "AddressEmptyCode";
25
+ readonly type: "error";
26
+ }, {
27
+ readonly inputs: readonly [{
28
+ readonly internalType: "address";
29
+ readonly name: "account";
30
+ readonly type: "address";
31
+ }];
32
+ readonly name: "AddressInsufficientBalance";
33
+ readonly type: "error";
34
+ }, {
35
+ readonly inputs: readonly [];
36
+ readonly name: "FailedInnerCall";
37
+ readonly type: "error";
38
+ }, {
39
+ readonly inputs: readonly [{
40
+ readonly internalType: "address";
41
+ readonly name: "token";
42
+ readonly type: "address";
43
+ }];
44
+ readonly name: "SafeERC20FailedOperation";
45
+ readonly type: "error";
46
+ }, {
47
+ readonly inputs: readonly [{
48
+ readonly internalType: "address";
49
+ readonly name: "token";
50
+ readonly type: "address";
51
+ }, {
52
+ readonly internalType: "uint256";
53
+ readonly name: "amount";
54
+ readonly type: "uint256";
55
+ }];
56
+ readonly name: "distributeRewards";
57
+ readonly outputs: readonly [{
58
+ readonly internalType: "bool";
59
+ readonly name: "";
60
+ readonly type: "bool";
61
+ }];
62
+ readonly stateMutability: "nonpayable";
63
+ readonly type: "function";
64
+ }];
65
+ static createInterface(): MockDistributableContractInterface;
66
+ static connect(address: string, runner?: ContractRunner | null): MockDistributableContract;
67
+ }
68
+ export {};
@@ -1,3 +1,4 @@
1
1
  export { MockContract__factory } from "./MockContract__factory";
2
2
  export { MockContractWithConfig__factory } from "./MockContractWithConfig__factory";
3
+ export { MockDistributableContract__factory } from "./MockDistributableContract__factory";
3
4
  export { RAACHousePricesMock__factory } from "./RAACHousePricesMock__factory";
@@ -0,0 +1,451 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../../../../../common";
4
+ import type { MockCollectableUnderlying, MockCollectableUnderlyingInterface } from "../../../../../contracts/mocks/core/tokens/MockCollectableUnderlying";
5
+ type MockCollectableUnderlyingConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class MockCollectableUnderlying__factory extends ContractFactory {
7
+ constructor(...args: MockCollectableUnderlyingConstructorParams);
8
+ getDeployTransaction(_token: AddressLike, overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(_token: AddressLike, overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<MockCollectableUnderlying & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): MockCollectableUnderlying__factory;
17
+ static readonly bytecode = "0x60806040523480156200001157600080fd5b5060405162000ef438038062000ef483398101604081905262000034916200024b565b6001805533806200005f57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200006a816200014a565b506001600160a01b038116620000935760405163e6c4247b60e01b815260040160405180910390fd5b600380546001600160a01b0319166001600160a01b038316179055620000bb6000336200019c565b50620000e87fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200019c565b50620001157f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec336200019c565b50620001427f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200019c565b50506200027d565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff1662000241576000838152602081815260408083206001600160a01b03861684529091529020805460ff19166001179055620001f83390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600162000245565b5060005b92915050565b6000602082840312156200025e57600080fd5b81516001600160a01b03811681146200027657600080fd5b9392505050565b610c67806200028d6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063830de4b1116100b8578063d3072d821161007c578063d3072d82146102b3578063d5391393146102c7578063d547741f146102ee578063e02023a114610301578063f2fde38b14610328578063fc0c546a1461033b57600080fd5b8063830de4b11461026b5780638da5cb5b1461027457806391d1485414610285578063a217fddf14610298578063c5969d94146102a057600080fd5b806336568abe116100ff57806336568abe1461020357806339761385146102165780636813d78714610229578063715018a61461023c57806375b238fc1461024457600080fd5b806301ffc9a71461013c5780630c0662a814610164578063248a9ca3146101925780632f2ff15d146101c35780632f796f50146101d8575b600080fd5b61014f61014a366004610abf565b61034e565b60405190151581526020015b60405180910390f35b600454600554600654604080519384526001600160a01b03928316602085015291169082015260600161015b565b6101b56101a0366004610ae9565b60009081526020819052604090206001015490565b60405190815260200161015b565b6101d66101d1366004610b1e565b61035f565b005b6006546101eb906001600160a01b031681565b6040516001600160a01b03909116815260200161015b565b6101d6610211366004610b1e565b61038a565b6005546101eb906001600160a01b031681565b6101d6610237366004610b58565b6103c2565b6101d661040b565b6101b57fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6101b560045481565b6002546001600160a01b03166101eb565b61014f610293366004610b1e565b61041f565b6101b5600081565b61014f6102ae366004610b75565b610448565b60035461014f90600160a01b900460ff1681565b6101b57f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6101d66102fc366004610b1e565b61064e565b6101b57f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec81565b6101d6610336366004610bb1565b610673565b6003546101eb906001600160a01b031681565b6000610359826106b1565b92915050565b60008281526020819052604090206001015461037a816106e6565b61038483836106f0565b50505050565b6001600160a01b03811633146103b35760405163334bd91960e11b815260040160405180910390fd5b6103bd8282610782565b505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756103ec816106e6565b5060038054911515600160a01b0260ff60a01b19909216919091179055565b6104136107ed565b61041d600061081a565b565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60007f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec610474816106e6565b61047c61086c565b600354600160a01b900460ff16156104fa5760405162461bcd60e51b815260206004820152603660248201527f4d6f636b436f6c6c65637461626c65556e6465726c79696e673a2077697468646044820152751c985dd55b99195c9b1e5a5b99c81c995d995c9d195960521b60648201526084015b60405180910390fd5b6001600160a01b0385166105215760405163e6c4247b60e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa158015610568573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058c9190610bcc565b9050808411156105af57604051631e9acf1760e31b815260040160405180910390fd5b6004849055600580546001600160a01b038088166001600160a01b0319928316179092556006805492891692909116821790556105ed908686610896565b604080516001600160a01b038089168252871660208201529081018590527fe053678fd0ae2b8513808adfbb2315b748e5483fa5223543cd4535636319164a9060600160405180910390a1600192505061064660018055565b509392505050565b600082815260208190526040902060010154610669816106e6565b6103848383610782565b61067b6107ed565b6001600160a01b0381166106a557604051631e4fbdf760e01b8152600060048201526024016104f1565b6106ae8161081a565b50565b60006001600160e01b03198216637965db0b60e01b148061035957506301ffc9a760e01b6001600160e01b0319831614610359565b6106ae81336108e8565b60006106fc838361041f565b61077a576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556107323390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610359565b506000610359565b600061078e838361041f565b1561077a576000838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610359565b6002546001600160a01b0316331461041d5760405163118cdaa760e01b81523360048201526024016104f1565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026001540361088f57604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526103bd908490610925565b6108f2828261041f565b6109215760405163e2517d3f60e01b81526001600160a01b0382166004820152602481018390526044016104f1565b5050565b600061093a6001600160a01b03841683610988565b9050805160001415801561095f57508080602001905181019061095d9190610be5565b155b156103bd57604051635274afe760e01b81526001600160a01b03841660048201526024016104f1565b60606109968383600061099d565b9392505050565b6060814710156109c25760405163cd78605960e01b81523060048201526024016104f1565b600080856001600160a01b031684866040516109de9190610c02565b60006040518083038185875af1925050503d8060008114610a1b576040519150601f19603f3d011682016040523d82523d6000602084013e610a20565b606091505b5091509150610a30868383610a3a565b9695505050505050565b606082610a4f57610a4a82610a96565b610996565b8151158015610a6657506001600160a01b0384163b155b15610a8f57604051639996b31560e01b81526001600160a01b03851660048201526024016104f1565b5080610996565b805115610aa65780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610ad157600080fd5b81356001600160e01b03198116811461099657600080fd5b600060208284031215610afb57600080fd5b5035919050565b80356001600160a01b0381168114610b1957600080fd5b919050565b60008060408385031215610b3157600080fd5b82359150610b4160208401610b02565b90509250929050565b80151581146106ae57600080fd5b600060208284031215610b6a57600080fd5b813561099681610b4a565b600080600060608486031215610b8a57600080fd5b610b9384610b02565b9250610ba160208501610b02565b9150604084013590509250925092565b600060208284031215610bc357600080fd5b61099682610b02565b600060208284031215610bde57600080fd5b5051919050565b600060208284031215610bf757600080fd5b815161099681610b4a565b6000825160005b81811015610c235760208186018101518583015201610c09565b50600092019182525091905056fea2646970667358221220cf7fbcc4070ff648dc7d05df12b9aa170481daef27ac809cbb159a507eafff4664736f6c63430008140033";
18
+ static readonly abi: readonly [{
19
+ readonly inputs: readonly [{
20
+ readonly internalType: "address";
21
+ readonly name: "_token";
22
+ readonly type: "address";
23
+ }];
24
+ readonly stateMutability: "nonpayable";
25
+ readonly type: "constructor";
26
+ }, {
27
+ readonly inputs: readonly [];
28
+ readonly name: "AccessControlBadConfirmation";
29
+ readonly type: "error";
30
+ }, {
31
+ readonly inputs: readonly [{
32
+ readonly internalType: "address";
33
+ readonly name: "account";
34
+ readonly type: "address";
35
+ }, {
36
+ readonly internalType: "bytes32";
37
+ readonly name: "neededRole";
38
+ readonly type: "bytes32";
39
+ }];
40
+ readonly name: "AccessControlUnauthorizedAccount";
41
+ readonly type: "error";
42
+ }, {
43
+ readonly inputs: readonly [{
44
+ readonly internalType: "address";
45
+ readonly name: "target";
46
+ readonly type: "address";
47
+ }];
48
+ readonly name: "AddressEmptyCode";
49
+ readonly type: "error";
50
+ }, {
51
+ readonly inputs: readonly [{
52
+ readonly internalType: "address";
53
+ readonly name: "account";
54
+ readonly type: "address";
55
+ }];
56
+ readonly name: "AddressInsufficientBalance";
57
+ readonly type: "error";
58
+ }, {
59
+ readonly inputs: readonly [];
60
+ readonly name: "FailedInnerCall";
61
+ readonly type: "error";
62
+ }, {
63
+ readonly inputs: readonly [];
64
+ readonly name: "InsufficientBalance";
65
+ readonly type: "error";
66
+ }, {
67
+ readonly inputs: readonly [];
68
+ readonly name: "InvalidAddress";
69
+ readonly type: "error";
70
+ }, {
71
+ readonly inputs: readonly [{
72
+ readonly internalType: "address";
73
+ readonly name: "owner";
74
+ readonly type: "address";
75
+ }];
76
+ readonly name: "OwnableInvalidOwner";
77
+ readonly type: "error";
78
+ }, {
79
+ readonly inputs: readonly [{
80
+ readonly internalType: "address";
81
+ readonly name: "account";
82
+ readonly type: "address";
83
+ }];
84
+ readonly name: "OwnableUnauthorizedAccount";
85
+ readonly type: "error";
86
+ }, {
87
+ readonly inputs: readonly [];
88
+ readonly name: "ReentrancyGuardReentrantCall";
89
+ readonly type: "error";
90
+ }, {
91
+ readonly inputs: readonly [{
92
+ readonly internalType: "address";
93
+ readonly name: "token";
94
+ readonly type: "address";
95
+ }];
96
+ readonly name: "SafeERC20FailedOperation";
97
+ readonly type: "error";
98
+ }, {
99
+ readonly anonymous: false;
100
+ readonly inputs: readonly [{
101
+ readonly indexed: true;
102
+ readonly internalType: "address";
103
+ readonly name: "previousOwner";
104
+ readonly type: "address";
105
+ }, {
106
+ readonly indexed: true;
107
+ readonly internalType: "address";
108
+ readonly name: "newOwner";
109
+ readonly type: "address";
110
+ }];
111
+ readonly name: "OwnershipTransferred";
112
+ readonly type: "event";
113
+ }, {
114
+ readonly anonymous: false;
115
+ readonly inputs: readonly [{
116
+ readonly indexed: true;
117
+ readonly internalType: "bytes32";
118
+ readonly name: "role";
119
+ readonly type: "bytes32";
120
+ }, {
121
+ readonly indexed: true;
122
+ readonly internalType: "bytes32";
123
+ readonly name: "previousAdminRole";
124
+ readonly type: "bytes32";
125
+ }, {
126
+ readonly indexed: true;
127
+ readonly internalType: "bytes32";
128
+ readonly name: "newAdminRole";
129
+ readonly type: "bytes32";
130
+ }];
131
+ readonly name: "RoleAdminChanged";
132
+ readonly type: "event";
133
+ }, {
134
+ readonly anonymous: false;
135
+ readonly inputs: readonly [{
136
+ readonly indexed: true;
137
+ readonly internalType: "bytes32";
138
+ readonly name: "role";
139
+ readonly type: "bytes32";
140
+ }, {
141
+ readonly indexed: true;
142
+ readonly internalType: "address";
143
+ readonly name: "account";
144
+ readonly type: "address";
145
+ }, {
146
+ readonly indexed: true;
147
+ readonly internalType: "address";
148
+ readonly name: "sender";
149
+ readonly type: "address";
150
+ }];
151
+ readonly name: "RoleGranted";
152
+ readonly type: "event";
153
+ }, {
154
+ readonly anonymous: false;
155
+ readonly inputs: readonly [{
156
+ readonly indexed: true;
157
+ readonly internalType: "bytes32";
158
+ readonly name: "role";
159
+ readonly type: "bytes32";
160
+ }, {
161
+ readonly indexed: true;
162
+ readonly internalType: "address";
163
+ readonly name: "account";
164
+ readonly type: "address";
165
+ }, {
166
+ readonly indexed: true;
167
+ readonly internalType: "address";
168
+ readonly name: "sender";
169
+ readonly type: "address";
170
+ }];
171
+ readonly name: "RoleRevoked";
172
+ readonly type: "event";
173
+ }, {
174
+ readonly anonymous: false;
175
+ readonly inputs: readonly [{
176
+ readonly indexed: false;
177
+ readonly internalType: "address";
178
+ readonly name: "token";
179
+ readonly type: "address";
180
+ }, {
181
+ readonly indexed: false;
182
+ readonly internalType: "address";
183
+ readonly name: "to";
184
+ readonly type: "address";
185
+ }, {
186
+ readonly indexed: false;
187
+ readonly internalType: "uint256";
188
+ readonly name: "amount";
189
+ readonly type: "uint256";
190
+ }];
191
+ readonly name: "WithdrawUnderlyingExecuted";
192
+ readonly type: "event";
193
+ }, {
194
+ readonly inputs: readonly [];
195
+ readonly name: "ADMIN_ROLE";
196
+ readonly outputs: readonly [{
197
+ readonly internalType: "bytes32";
198
+ readonly name: "";
199
+ readonly type: "bytes32";
200
+ }];
201
+ readonly stateMutability: "view";
202
+ readonly type: "function";
203
+ }, {
204
+ readonly inputs: readonly [];
205
+ readonly name: "DEFAULT_ADMIN_ROLE";
206
+ readonly outputs: readonly [{
207
+ readonly internalType: "bytes32";
208
+ readonly name: "";
209
+ readonly type: "bytes32";
210
+ }];
211
+ readonly stateMutability: "view";
212
+ readonly type: "function";
213
+ }, {
214
+ readonly inputs: readonly [];
215
+ readonly name: "MINTER_ROLE";
216
+ readonly outputs: readonly [{
217
+ readonly internalType: "bytes32";
218
+ readonly name: "";
219
+ readonly type: "bytes32";
220
+ }];
221
+ readonly stateMutability: "view";
222
+ readonly type: "function";
223
+ }, {
224
+ readonly inputs: readonly [];
225
+ readonly name: "WITHDRAW_ROLE";
226
+ readonly outputs: readonly [{
227
+ readonly internalType: "bytes32";
228
+ readonly name: "";
229
+ readonly type: "bytes32";
230
+ }];
231
+ readonly stateMutability: "view";
232
+ readonly type: "function";
233
+ }, {
234
+ readonly inputs: readonly [];
235
+ readonly name: "getLastWithdrawal";
236
+ readonly outputs: readonly [{
237
+ readonly internalType: "uint256";
238
+ readonly name: "amount";
239
+ readonly type: "uint256";
240
+ }, {
241
+ readonly internalType: "address";
242
+ readonly name: "withdrawer";
243
+ readonly type: "address";
244
+ }, {
245
+ readonly internalType: "address";
246
+ readonly name: "tokenAddress";
247
+ readonly type: "address";
248
+ }];
249
+ readonly stateMutability: "view";
250
+ readonly type: "function";
251
+ }, {
252
+ readonly inputs: readonly [{
253
+ readonly internalType: "bytes32";
254
+ readonly name: "role";
255
+ readonly type: "bytes32";
256
+ }];
257
+ readonly name: "getRoleAdmin";
258
+ readonly outputs: readonly [{
259
+ readonly internalType: "bytes32";
260
+ readonly name: "";
261
+ readonly type: "bytes32";
262
+ }];
263
+ readonly stateMutability: "view";
264
+ readonly type: "function";
265
+ }, {
266
+ readonly inputs: readonly [{
267
+ readonly internalType: "bytes32";
268
+ readonly name: "role";
269
+ readonly type: "bytes32";
270
+ }, {
271
+ readonly internalType: "address";
272
+ readonly name: "account";
273
+ readonly type: "address";
274
+ }];
275
+ readonly name: "grantRole";
276
+ readonly outputs: readonly [];
277
+ readonly stateMutability: "nonpayable";
278
+ readonly type: "function";
279
+ }, {
280
+ readonly inputs: readonly [{
281
+ readonly internalType: "bytes32";
282
+ readonly name: "role";
283
+ readonly type: "bytes32";
284
+ }, {
285
+ readonly internalType: "address";
286
+ readonly name: "account";
287
+ readonly type: "address";
288
+ }];
289
+ readonly name: "hasRole";
290
+ readonly outputs: readonly [{
291
+ readonly internalType: "bool";
292
+ readonly name: "";
293
+ readonly type: "bool";
294
+ }];
295
+ readonly stateMutability: "view";
296
+ readonly type: "function";
297
+ }, {
298
+ readonly inputs: readonly [];
299
+ readonly name: "lastToken";
300
+ readonly outputs: readonly [{
301
+ readonly internalType: "address";
302
+ readonly name: "";
303
+ readonly type: "address";
304
+ }];
305
+ readonly stateMutability: "view";
306
+ readonly type: "function";
307
+ }, {
308
+ readonly inputs: readonly [];
309
+ readonly name: "lastWithdrawer";
310
+ readonly outputs: readonly [{
311
+ readonly internalType: "address";
312
+ readonly name: "";
313
+ readonly type: "address";
314
+ }];
315
+ readonly stateMutability: "view";
316
+ readonly type: "function";
317
+ }, {
318
+ readonly inputs: readonly [];
319
+ readonly name: "owner";
320
+ readonly outputs: readonly [{
321
+ readonly internalType: "address";
322
+ readonly name: "";
323
+ readonly type: "address";
324
+ }];
325
+ readonly stateMutability: "view";
326
+ readonly type: "function";
327
+ }, {
328
+ readonly inputs: readonly [];
329
+ readonly name: "renounceOwnership";
330
+ readonly outputs: readonly [];
331
+ readonly stateMutability: "nonpayable";
332
+ readonly type: "function";
333
+ }, {
334
+ readonly inputs: readonly [{
335
+ readonly internalType: "bytes32";
336
+ readonly name: "role";
337
+ readonly type: "bytes32";
338
+ }, {
339
+ readonly internalType: "address";
340
+ readonly name: "callerConfirmation";
341
+ readonly type: "address";
342
+ }];
343
+ readonly name: "renounceRole";
344
+ readonly outputs: readonly [];
345
+ readonly stateMutability: "nonpayable";
346
+ readonly type: "function";
347
+ }, {
348
+ readonly inputs: readonly [{
349
+ readonly internalType: "bytes32";
350
+ readonly name: "role";
351
+ readonly type: "bytes32";
352
+ }, {
353
+ readonly internalType: "address";
354
+ readonly name: "account";
355
+ readonly type: "address";
356
+ }];
357
+ readonly name: "revokeRole";
358
+ readonly outputs: readonly [];
359
+ readonly stateMutability: "nonpayable";
360
+ readonly type: "function";
361
+ }, {
362
+ readonly inputs: readonly [{
363
+ readonly internalType: "bool";
364
+ readonly name: "_shouldRevert";
365
+ readonly type: "bool";
366
+ }];
367
+ readonly name: "setShouldRevert";
368
+ readonly outputs: readonly [];
369
+ readonly stateMutability: "nonpayable";
370
+ readonly type: "function";
371
+ }, {
372
+ readonly inputs: readonly [];
373
+ readonly name: "shouldRevert";
374
+ readonly outputs: readonly [{
375
+ readonly internalType: "bool";
376
+ readonly name: "";
377
+ readonly type: "bool";
378
+ }];
379
+ readonly stateMutability: "view";
380
+ readonly type: "function";
381
+ }, {
382
+ readonly inputs: readonly [{
383
+ readonly internalType: "bytes4";
384
+ readonly name: "interfaceId";
385
+ readonly type: "bytes4";
386
+ }];
387
+ readonly name: "supportsInterface";
388
+ readonly outputs: readonly [{
389
+ readonly internalType: "bool";
390
+ readonly name: "";
391
+ readonly type: "bool";
392
+ }];
393
+ readonly stateMutability: "view";
394
+ readonly type: "function";
395
+ }, {
396
+ readonly inputs: readonly [];
397
+ readonly name: "token";
398
+ readonly outputs: readonly [{
399
+ readonly internalType: "contract IERC20";
400
+ readonly name: "";
401
+ readonly type: "address";
402
+ }];
403
+ readonly stateMutability: "view";
404
+ readonly type: "function";
405
+ }, {
406
+ readonly inputs: readonly [{
407
+ readonly internalType: "address";
408
+ readonly name: "newOwner";
409
+ readonly type: "address";
410
+ }];
411
+ readonly name: "transferOwnership";
412
+ readonly outputs: readonly [];
413
+ readonly stateMutability: "nonpayable";
414
+ readonly type: "function";
415
+ }, {
416
+ readonly inputs: readonly [{
417
+ readonly internalType: "address";
418
+ readonly name: "tokenAddress";
419
+ readonly type: "address";
420
+ }, {
421
+ readonly internalType: "address";
422
+ readonly name: "to";
423
+ readonly type: "address";
424
+ }, {
425
+ readonly internalType: "uint256";
426
+ readonly name: "amount";
427
+ readonly type: "uint256";
428
+ }];
429
+ readonly name: "withdrawUnderlying";
430
+ readonly outputs: readonly [{
431
+ readonly internalType: "bool";
432
+ readonly name: "";
433
+ readonly type: "bool";
434
+ }];
435
+ readonly stateMutability: "nonpayable";
436
+ readonly type: "function";
437
+ }, {
438
+ readonly inputs: readonly [];
439
+ readonly name: "withdrawnAmount";
440
+ readonly outputs: readonly [{
441
+ readonly internalType: "uint256";
442
+ readonly name: "";
443
+ readonly type: "uint256";
444
+ }];
445
+ readonly stateMutability: "view";
446
+ readonly type: "function";
447
+ }];
448
+ static createInterface(): MockCollectableUnderlyingInterface;
449
+ static connect(address: string, runner?: ContractRunner | null): MockCollectableUnderlying;
450
+ }
451
+ export {};
@@ -1,5 +1,6 @@
1
1
  export { ERC20Mock__factory } from "./ERC20Mock__factory";
2
2
  export { ERC721Mock__factory } from "./ERC721Mock__factory";
3
+ export { MockCollectableUnderlying__factory } from "./MockCollectableUnderlying__factory";
3
4
  export { MockFeeCollectorToken__factory } from "./MockFeeCollectorToken__factory";
4
5
  export { MockToken__factory } from "./MockToken__factory";
5
6
  export { MockUSDC__factory } from "./MockUSDC__factory";