@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,2 +1,3 @@
1
+ export { IBaseCollector__factory } from "./IBaseCollector__factory";
1
2
  export { IFeeCollector__factory } from "./IFeeCollector__factory";
2
3
  export { ITreasury__factory } from "./ITreasury__factory";
@@ -4,3 +4,4 @@ export * as minters from "./minters";
4
4
  export * as oracles from "./oracles";
5
5
  export * as pools from "./pools";
6
6
  export * as tokens from "./tokens";
7
+ export * as vaults from "./vaults";
@@ -45,6 +45,10 @@ export declare class IRAACMinter__factory {
45
45
  readonly inputs: readonly [];
46
46
  readonly name: "InvalidUtilizationTarget";
47
47
  readonly type: "error";
48
+ }, {
49
+ readonly inputs: readonly [];
50
+ readonly name: "MaxSupplyReached";
51
+ readonly type: "error";
48
52
  }, {
49
53
  readonly inputs: readonly [];
50
54
  readonly name: "NoOwnershipTransferPending";
@@ -99,6 +103,36 @@ export declare class IRAACMinter__factory {
99
103
  }];
100
104
  readonly name: "BenchmarkRateUpdated";
101
105
  readonly type: "event";
106
+ }, {
107
+ readonly anonymous: false;
108
+ readonly inputs: readonly [{
109
+ readonly indexed: true;
110
+ readonly internalType: "address";
111
+ readonly name: "pool";
112
+ readonly type: "address";
113
+ }, {
114
+ readonly indexed: false;
115
+ readonly internalType: "uint256";
116
+ readonly name: "amount";
117
+ readonly type: "uint256";
118
+ }];
119
+ readonly name: "DistributionFailed";
120
+ readonly type: "event";
121
+ }, {
122
+ readonly anonymous: false;
123
+ readonly inputs: readonly [{
124
+ readonly indexed: true;
125
+ readonly internalType: "address";
126
+ readonly name: "pool";
127
+ readonly type: "address";
128
+ }, {
129
+ readonly indexed: false;
130
+ readonly internalType: "uint256";
131
+ readonly name: "weight";
132
+ readonly type: "uint256";
133
+ }];
134
+ readonly name: "DistributionPoolUpdated";
135
+ readonly type: "event";
102
136
  }, {
103
137
  readonly anonymous: false;
104
138
  readonly inputs: readonly [{
@@ -117,6 +151,11 @@ export declare class IRAACMinter__factory {
117
151
  }, {
118
152
  readonly anonymous: false;
119
153
  readonly inputs: readonly [{
154
+ readonly indexed: false;
155
+ readonly internalType: "uint256";
156
+ readonly name: "oldRate";
157
+ readonly type: "uint256";
158
+ }, {
120
159
  readonly indexed: false;
121
160
  readonly internalType: "uint256";
122
161
  readonly name: "newRate";
@@ -229,6 +268,21 @@ export declare class IRAACMinter__factory {
229
268
  }];
230
269
  readonly name: "RAACTokenOwnershipTransferred";
231
270
  readonly type: "event";
271
+ }, {
272
+ readonly anonymous: false;
273
+ readonly inputs: readonly [{
274
+ readonly indexed: true;
275
+ readonly internalType: "address";
276
+ readonly name: "pool";
277
+ readonly type: "address";
278
+ }, {
279
+ readonly indexed: false;
280
+ readonly internalType: "uint256";
281
+ readonly name: "amount";
282
+ readonly type: "uint256";
283
+ }];
284
+ readonly name: "RewardsDistributed";
285
+ readonly type: "event";
232
286
  }, {
233
287
  readonly anonymous: false;
234
288
  readonly inputs: readonly [{
@@ -288,20 +342,6 @@ export declare class IRAACMinter__factory {
288
342
  }];
289
343
  readonly stateMutability: "view";
290
344
  readonly type: "function";
291
- }, {
292
- readonly inputs: readonly [{
293
- readonly internalType: "address";
294
- readonly name: "to";
295
- readonly type: "address";
296
- }, {
297
- readonly internalType: "uint256";
298
- readonly name: "amount";
299
- readonly type: "uint256";
300
- }];
301
- readonly name: "mintRewards";
302
- readonly outputs: readonly [];
303
- readonly stateMutability: "nonpayable";
304
- readonly type: "function";
305
345
  }, {
306
346
  readonly inputs: readonly [{
307
347
  readonly internalType: "uint256";
@@ -369,7 +409,11 @@ export declare class IRAACMinter__factory {
369
409
  readonly stateMutability: "nonpayable";
370
410
  readonly type: "function";
371
411
  }, {
372
- readonly inputs: readonly [];
412
+ readonly inputs: readonly [{
413
+ readonly internalType: "uint256";
414
+ readonly name: "_newRate";
415
+ readonly type: "uint256";
416
+ }];
373
417
  readonly name: "updateEmissionRate";
374
418
  readonly outputs: readonly [];
375
419
  readonly stateMutability: "nonpayable";
@@ -157,6 +157,10 @@ export declare class IReleaseOrchestrator__factory {
157
157
  readonly internalType: "uint256";
158
158
  readonly name: "startTime";
159
159
  readonly type: "uint256";
160
+ }, {
161
+ readonly internalType: "uint256";
162
+ readonly name: "vestingDuration";
163
+ readonly type: "uint256";
160
164
  }];
161
165
  readonly name: "createVestingSchedule";
162
166
  readonly outputs: readonly [];
@@ -0,0 +1,78 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IBaseVRFv2Consumer, IBaseVRFv2ConsumerInterface } from "../../../../../contracts/interfaces/core/oracles/IBaseVRFv2Consumer";
3
+ export declare class IBaseVRFv2Consumer__factory {
4
+ static readonly abi: readonly [{
5
+ readonly inputs: readonly [];
6
+ readonly name: "RequestNotFound";
7
+ readonly type: "error";
8
+ }, {
9
+ readonly inputs: readonly [];
10
+ readonly name: "RequestNotFulfilled";
11
+ readonly type: "error";
12
+ }, {
13
+ readonly anonymous: false;
14
+ readonly inputs: readonly [{
15
+ readonly indexed: false;
16
+ readonly internalType: "uint256";
17
+ readonly name: "requestId";
18
+ readonly type: "uint256";
19
+ }, {
20
+ readonly indexed: false;
21
+ readonly internalType: "uint256[]";
22
+ readonly name: "randomWords";
23
+ readonly type: "uint256[]";
24
+ }];
25
+ readonly name: "RequestFulfilled";
26
+ readonly type: "event";
27
+ }, {
28
+ readonly anonymous: false;
29
+ readonly inputs: readonly [{
30
+ readonly indexed: false;
31
+ readonly internalType: "uint256";
32
+ readonly name: "requestId";
33
+ readonly type: "uint256";
34
+ }, {
35
+ readonly indexed: false;
36
+ readonly internalType: "uint32";
37
+ readonly name: "numWords";
38
+ readonly type: "uint32";
39
+ }];
40
+ readonly name: "RequestSent";
41
+ readonly type: "event";
42
+ }, {
43
+ readonly inputs: readonly [];
44
+ readonly name: "getRequestStatus";
45
+ readonly outputs: readonly [{
46
+ readonly components: readonly [{
47
+ readonly internalType: "bool";
48
+ readonly name: "fulfilled";
49
+ readonly type: "bool";
50
+ }, {
51
+ readonly internalType: "bool";
52
+ readonly name: "exists";
53
+ readonly type: "bool";
54
+ }, {
55
+ readonly internalType: "uint256[]";
56
+ readonly name: "randomWords";
57
+ readonly type: "uint256[]";
58
+ }];
59
+ readonly internalType: "struct IBaseVRFv2Consumer.RequestStatus";
60
+ readonly name: "";
61
+ readonly type: "tuple";
62
+ }];
63
+ readonly stateMutability: "view";
64
+ readonly type: "function";
65
+ }, {
66
+ readonly inputs: readonly [];
67
+ readonly name: "requestRandomWords";
68
+ readonly outputs: readonly [{
69
+ readonly internalType: "uint256";
70
+ readonly name: "requestId";
71
+ readonly type: "uint256";
72
+ }];
73
+ readonly stateMutability: "nonpayable";
74
+ readonly type: "function";
75
+ }];
76
+ static createInterface(): IBaseVRFv2ConsumerInterface;
77
+ static connect(address: string, runner?: ContractRunner | null): IBaseVRFv2Consumer;
78
+ }
@@ -1 +1,2 @@
1
+ export { IBaseVRFv2Consumer__factory } from "./IBaseVRFv2Consumer__factory";
1
2
  export { IRAACHousePrices__factory } from "./IRAACHousePrices__factory";
@@ -2,37 +2,97 @@ import { type ContractRunner } from "ethers";
2
2
  import type { ILiquidityPool, ILiquidityPoolInterface } from "../../../../../contracts/interfaces/core/pools/ILiquidityPool";
3
3
  export declare class ILiquidityPool__factory {
4
4
  static readonly abi: readonly [{
5
- readonly inputs: readonly [{
6
- readonly internalType: "address";
7
- readonly name: "_pairedToken";
8
- readonly type: "address";
9
- }, {
5
+ readonly inputs: readonly [];
6
+ readonly name: "A";
7
+ readonly outputs: readonly [{
10
8
  readonly internalType: "uint256";
11
- readonly name: "raacAmount";
9
+ readonly name: "";
12
10
  readonly type: "uint256";
11
+ }];
12
+ readonly stateMutability: "view";
13
+ readonly type: "function";
14
+ }, {
15
+ readonly inputs: readonly [{
16
+ readonly internalType: "uint256[2]";
17
+ readonly name: "amounts";
18
+ readonly type: "uint256[2]";
13
19
  }, {
14
20
  readonly internalType: "uint256";
15
- readonly name: "pairedAmount";
21
+ readonly name: "min_mint_amount";
16
22
  readonly type: "uint256";
17
- }, {
23
+ }];
24
+ readonly name: "add_liquidity";
25
+ readonly outputs: readonly [{
18
26
  readonly internalType: "uint256";
19
- readonly name: "minLPAmount";
27
+ readonly name: "";
20
28
  readonly type: "uint256";
21
29
  }];
22
- readonly name: "addLiquidity";
23
- readonly outputs: readonly [];
24
30
  readonly stateMutability: "nonpayable";
25
31
  readonly type: "function";
26
32
  }, {
27
33
  readonly inputs: readonly [{
34
+ readonly internalType: "uint256";
35
+ readonly name: "i";
36
+ readonly type: "uint256";
37
+ }];
38
+ readonly name: "balances";
39
+ readonly outputs: readonly [{
40
+ readonly internalType: "uint256";
41
+ readonly name: "";
42
+ readonly type: "uint256";
43
+ }];
44
+ readonly stateMutability: "view";
45
+ readonly type: "function";
46
+ }, {
47
+ readonly inputs: readonly [{
48
+ readonly internalType: "uint256";
49
+ readonly name: "i";
50
+ readonly type: "uint256";
51
+ }];
52
+ readonly name: "coins";
53
+ readonly outputs: readonly [{
28
54
  readonly internalType: "address";
29
- readonly name: "_pairedToken";
55
+ readonly name: "";
30
56
  readonly type: "address";
31
57
  }];
32
- readonly name: "addMarket";
33
- readonly outputs: readonly [];
58
+ readonly stateMutability: "view";
59
+ readonly type: "function";
60
+ }, {
61
+ readonly inputs: readonly [{
62
+ readonly internalType: "int128";
63
+ readonly name: "i";
64
+ readonly type: "int128";
65
+ }, {
66
+ readonly internalType: "int128";
67
+ readonly name: "j";
68
+ readonly type: "int128";
69
+ }, {
70
+ readonly internalType: "uint256";
71
+ readonly name: "dx";
72
+ readonly type: "uint256";
73
+ }, {
74
+ readonly internalType: "uint256";
75
+ readonly name: "min_dy";
76
+ readonly type: "uint256";
77
+ }];
78
+ readonly name: "exchange";
79
+ readonly outputs: readonly [{
80
+ readonly internalType: "uint256";
81
+ readonly name: "";
82
+ readonly type: "uint256";
83
+ }];
34
84
  readonly stateMutability: "nonpayable";
35
85
  readonly type: "function";
86
+ }, {
87
+ readonly inputs: readonly [];
88
+ readonly name: "fee";
89
+ readonly outputs: readonly [{
90
+ readonly internalType: "uint256";
91
+ readonly name: "";
92
+ readonly type: "uint256";
93
+ }];
94
+ readonly stateMutability: "view";
95
+ readonly type: "function";
36
96
  }, {
37
97
  readonly inputs: readonly [{
38
98
  readonly internalType: "address";
@@ -51,16 +111,6 @@ export declare class ILiquidityPool__factory {
51
111
  }];
52
112
  readonly stateMutability: "view";
53
113
  readonly type: "function";
54
- }, {
55
- readonly inputs: readonly [];
56
- readonly name: "getMarkets";
57
- readonly outputs: readonly [{
58
- readonly internalType: "address[]";
59
- readonly name: "";
60
- readonly type: "address[]";
61
- }];
62
- readonly stateMutability: "view";
63
- readonly type: "function";
64
114
  }, {
65
115
  readonly inputs: readonly [{
66
116
  readonly internalType: "address";
@@ -117,34 +167,64 @@ export declare class ILiquidityPool__factory {
117
167
  readonly type: "function";
118
168
  }, {
119
169
  readonly inputs: readonly [{
120
- readonly internalType: "address";
121
- readonly name: "_pairedToken";
122
- readonly type: "address";
170
+ readonly internalType: "int128";
171
+ readonly name: "i";
172
+ readonly type: "int128";
173
+ }, {
174
+ readonly internalType: "int128";
175
+ readonly name: "j";
176
+ readonly type: "int128";
123
177
  }, {
124
178
  readonly internalType: "uint256";
125
- readonly name: "lpAmount";
179
+ readonly name: "dx";
126
180
  readonly type: "uint256";
127
- }, {
181
+ }];
182
+ readonly name: "get_dy";
183
+ readonly outputs: readonly [{
128
184
  readonly internalType: "uint256";
129
- readonly name: "minRaacAmount";
185
+ readonly name: "";
130
186
  readonly type: "uint256";
131
- }, {
187
+ }];
188
+ readonly stateMutability: "view";
189
+ readonly type: "function";
190
+ }, {
191
+ readonly inputs: readonly [{
132
192
  readonly internalType: "uint256";
133
- readonly name: "minPairedAmount";
193
+ readonly name: "_amount";
134
194
  readonly type: "uint256";
195
+ }, {
196
+ readonly internalType: "uint256[2]";
197
+ readonly name: "min_amounts";
198
+ readonly type: "uint256[2]";
199
+ }];
200
+ readonly name: "remove_liquidity";
201
+ readonly outputs: readonly [{
202
+ readonly internalType: "uint256[2]";
203
+ readonly name: "";
204
+ readonly type: "uint256[2]";
135
205
  }];
136
- readonly name: "removeLiquidity";
137
- readonly outputs: readonly [];
138
206
  readonly stateMutability: "nonpayable";
139
207
  readonly type: "function";
140
208
  }, {
141
209
  readonly inputs: readonly [{
142
- readonly internalType: "address";
143
- readonly name: "_pairedToken";
144
- readonly type: "address";
210
+ readonly internalType: "uint256";
211
+ readonly name: "token_amount";
212
+ readonly type: "uint256";
213
+ }, {
214
+ readonly internalType: "int128";
215
+ readonly name: "i";
216
+ readonly type: "int128";
217
+ }, {
218
+ readonly internalType: "uint256";
219
+ readonly name: "min_amount";
220
+ readonly type: "uint256";
221
+ }];
222
+ readonly name: "remove_liquidity_one_coin";
223
+ readonly outputs: readonly [{
224
+ readonly internalType: "uint256";
225
+ readonly name: "";
226
+ readonly type: "uint256";
145
227
  }];
146
- readonly name: "removeMarket";
147
- readonly outputs: readonly [];
148
228
  readonly stateMutability: "nonpayable";
149
229
  readonly type: "function";
150
230
  }];