@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,79 +1,7 @@
1
1
  import { type ContractRunner } from "ethers";
2
- import type { IERC721A, IERC721AInterface } from "../../../erc721a/contracts/IERC721A";
3
- export declare class IERC721A__factory {
2
+ import type { IIndexToken, IIndexTokenInterface } from "../../../../../contracts/interfaces/core/tokens/IIndexToken";
3
+ export declare class IIndexToken__factory {
4
4
  static readonly abi: readonly [{
5
- readonly inputs: readonly [];
6
- readonly name: "ApprovalCallerNotOwnerNorApproved";
7
- readonly type: "error";
8
- }, {
9
- readonly inputs: readonly [];
10
- readonly name: "ApprovalQueryForNonexistentToken";
11
- readonly type: "error";
12
- }, {
13
- readonly inputs: readonly [];
14
- readonly name: "BalanceQueryForZeroAddress";
15
- readonly type: "error";
16
- }, {
17
- readonly inputs: readonly [];
18
- readonly name: "MintERC2309QuantityExceedsLimit";
19
- readonly type: "error";
20
- }, {
21
- readonly inputs: readonly [];
22
- readonly name: "MintToZeroAddress";
23
- readonly type: "error";
24
- }, {
25
- readonly inputs: readonly [];
26
- readonly name: "MintZeroQuantity";
27
- readonly type: "error";
28
- }, {
29
- readonly inputs: readonly [];
30
- readonly name: "NotCompatibleWithSpotMints";
31
- readonly type: "error";
32
- }, {
33
- readonly inputs: readonly [];
34
- readonly name: "OwnerQueryForNonexistentToken";
35
- readonly type: "error";
36
- }, {
37
- readonly inputs: readonly [];
38
- readonly name: "OwnershipNotInitializedForExtraData";
39
- readonly type: "error";
40
- }, {
41
- readonly inputs: readonly [];
42
- readonly name: "SequentialMintExceedsLimit";
43
- readonly type: "error";
44
- }, {
45
- readonly inputs: readonly [];
46
- readonly name: "SequentialUpToTooSmall";
47
- readonly type: "error";
48
- }, {
49
- readonly inputs: readonly [];
50
- readonly name: "SpotMintTokenIdTooSmall";
51
- readonly type: "error";
52
- }, {
53
- readonly inputs: readonly [];
54
- readonly name: "TokenAlreadyExists";
55
- readonly type: "error";
56
- }, {
57
- readonly inputs: readonly [];
58
- readonly name: "TransferCallerNotOwnerNorApproved";
59
- readonly type: "error";
60
- }, {
61
- readonly inputs: readonly [];
62
- readonly name: "TransferFromIncorrectOwner";
63
- readonly type: "error";
64
- }, {
65
- readonly inputs: readonly [];
66
- readonly name: "TransferToNonERC721ReceiverImplementer";
67
- readonly type: "error";
68
- }, {
69
- readonly inputs: readonly [];
70
- readonly name: "TransferToZeroAddress";
71
- readonly type: "error";
72
- }, {
73
- readonly inputs: readonly [];
74
- readonly name: "URIQueryForNonexistentToken";
75
- readonly type: "error";
76
- }, {
77
5
  readonly anonymous: false;
78
6
  readonly inputs: readonly [{
79
7
  readonly indexed: true;
@@ -83,12 +11,12 @@ export declare class IERC721A__factory {
83
11
  }, {
84
12
  readonly indexed: true;
85
13
  readonly internalType: "address";
86
- readonly name: "approved";
14
+ readonly name: "spender";
87
15
  readonly type: "address";
88
16
  }, {
89
- readonly indexed: true;
17
+ readonly indexed: false;
90
18
  readonly internalType: "uint256";
91
- readonly name: "tokenId";
19
+ readonly name: "value";
92
20
  readonly type: "uint256";
93
21
  }];
94
22
  readonly name: "Approval";
@@ -98,119 +26,96 @@ export declare class IERC721A__factory {
98
26
  readonly inputs: readonly [{
99
27
  readonly indexed: true;
100
28
  readonly internalType: "address";
101
- readonly name: "owner";
29
+ readonly name: "from";
102
30
  readonly type: "address";
103
31
  }, {
104
32
  readonly indexed: true;
105
33
  readonly internalType: "address";
106
- readonly name: "operator";
34
+ readonly name: "to";
107
35
  readonly type: "address";
108
- }, {
109
- readonly indexed: false;
110
- readonly internalType: "bool";
111
- readonly name: "approved";
112
- readonly type: "bool";
113
- }];
114
- readonly name: "ApprovalForAll";
115
- readonly type: "event";
116
- }, {
117
- readonly anonymous: false;
118
- readonly inputs: readonly [{
119
- readonly indexed: true;
120
- readonly internalType: "uint256";
121
- readonly name: "fromTokenId";
122
- readonly type: "uint256";
123
36
  }, {
124
37
  readonly indexed: false;
125
38
  readonly internalType: "uint256";
126
- readonly name: "toTokenId";
39
+ readonly name: "value";
127
40
  readonly type: "uint256";
128
- }, {
129
- readonly indexed: true;
130
- readonly internalType: "address";
131
- readonly name: "from";
132
- readonly type: "address";
133
- }, {
134
- readonly indexed: true;
135
- readonly internalType: "address";
136
- readonly name: "to";
137
- readonly type: "address";
138
41
  }];
139
- readonly name: "ConsecutiveTransfer";
42
+ readonly name: "Transfer";
140
43
  readonly type: "event";
141
44
  }, {
142
- readonly anonymous: false;
143
45
  readonly inputs: readonly [{
144
- readonly indexed: true;
145
46
  readonly internalType: "address";
146
- readonly name: "from";
47
+ readonly name: "owner";
147
48
  readonly type: "address";
148
49
  }, {
149
- readonly indexed: true;
150
50
  readonly internalType: "address";
151
- readonly name: "to";
51
+ readonly name: "spender";
152
52
  readonly type: "address";
153
- }, {
154
- readonly indexed: true;
53
+ }];
54
+ readonly name: "allowance";
55
+ readonly outputs: readonly [{
155
56
  readonly internalType: "uint256";
156
- readonly name: "tokenId";
57
+ readonly name: "";
157
58
  readonly type: "uint256";
158
59
  }];
159
- readonly name: "Transfer";
160
- readonly type: "event";
60
+ readonly stateMutability: "view";
61
+ readonly type: "function";
161
62
  }, {
162
63
  readonly inputs: readonly [{
163
64
  readonly internalType: "address";
164
- readonly name: "to";
65
+ readonly name: "spender";
165
66
  readonly type: "address";
166
67
  }, {
167
68
  readonly internalType: "uint256";
168
- readonly name: "tokenId";
69
+ readonly name: "value";
169
70
  readonly type: "uint256";
170
71
  }];
171
72
  readonly name: "approve";
172
- readonly outputs: readonly [];
173
- readonly stateMutability: "payable";
73
+ readonly outputs: readonly [{
74
+ readonly internalType: "bool";
75
+ readonly name: "";
76
+ readonly type: "bool";
77
+ }];
78
+ readonly stateMutability: "nonpayable";
174
79
  readonly type: "function";
175
80
  }, {
176
81
  readonly inputs: readonly [{
177
82
  readonly internalType: "address";
178
- readonly name: "owner";
83
+ readonly name: "account";
179
84
  readonly type: "address";
180
85
  }];
181
86
  readonly name: "balanceOf";
182
87
  readonly outputs: readonly [{
183
88
  readonly internalType: "uint256";
184
- readonly name: "balance";
89
+ readonly name: "";
185
90
  readonly type: "uint256";
186
91
  }];
187
92
  readonly stateMutability: "view";
188
93
  readonly type: "function";
189
94
  }, {
190
95
  readonly inputs: readonly [{
96
+ readonly internalType: "address";
97
+ readonly name: "nftContract";
98
+ readonly type: "address";
99
+ }, {
191
100
  readonly internalType: "uint256";
192
101
  readonly name: "tokenId";
193
102
  readonly type: "uint256";
194
103
  }];
195
- readonly name: "getApproved";
104
+ readonly name: "getNFTPrice";
196
105
  readonly outputs: readonly [{
197
- readonly internalType: "address";
198
- readonly name: "operator";
199
- readonly type: "address";
106
+ readonly internalType: "uint256";
107
+ readonly name: "";
108
+ readonly type: "uint256";
200
109
  }];
201
110
  readonly stateMutability: "view";
202
111
  readonly type: "function";
203
112
  }, {
204
113
  readonly inputs: readonly [{
205
114
  readonly internalType: "address";
206
- readonly name: "owner";
207
- readonly type: "address";
208
- }, {
209
- readonly internalType: "address";
210
- readonly name: "operator";
115
+ readonly name: "nft";
211
116
  readonly type: "address";
212
117
  }];
213
- readonly name: "isApprovedForAll";
118
+ readonly name: "isWhitelistedNFT";
214
119
  readonly outputs: readonly [{
215
120
  readonly internalType: "bool";
216
121
  readonly name: "";
@@ -218,131 +123,81 @@ export declare class IERC721A__factory {
218
123
  }];
219
124
  readonly stateMutability: "view";
220
125
  readonly type: "function";
221
- }, {
222
- readonly inputs: readonly [];
223
- readonly name: "name";
224
- readonly outputs: readonly [{
225
- readonly internalType: "string";
226
- readonly name: "";
227
- readonly type: "string";
228
- }];
229
- readonly stateMutability: "view";
230
- readonly type: "function";
231
- }, {
232
- readonly inputs: readonly [{
233
- readonly internalType: "uint256";
234
- readonly name: "tokenId";
235
- readonly type: "uint256";
236
- }];
237
- readonly name: "ownerOf";
238
- readonly outputs: readonly [{
239
- readonly internalType: "address";
240
- readonly name: "owner";
241
- readonly type: "address";
242
- }];
243
- readonly stateMutability: "view";
244
- readonly type: "function";
245
126
  }, {
246
127
  readonly inputs: readonly [{
247
- readonly internalType: "address";
248
- readonly name: "from";
249
- readonly type: "address";
250
- }, {
251
128
  readonly internalType: "address";
252
129
  readonly name: "to";
253
130
  readonly type: "address";
254
131
  }, {
255
132
  readonly internalType: "uint256";
256
- readonly name: "tokenId";
133
+ readonly name: "amount";
257
134
  readonly type: "uint256";
258
135
  }];
259
- readonly name: "safeTransferFrom";
136
+ readonly name: "mint";
260
137
  readonly outputs: readonly [];
261
- readonly stateMutability: "payable";
138
+ readonly stateMutability: "nonpayable";
262
139
  readonly type: "function";
263
140
  }, {
264
141
  readonly inputs: readonly [{
265
142
  readonly internalType: "address";
266
- readonly name: "from";
267
- readonly type: "address";
268
- }, {
269
- readonly internalType: "address";
270
- readonly name: "to";
143
+ readonly name: "nft";
271
144
  readonly type: "address";
272
145
  }, {
273
146
  readonly internalType: "uint256";
274
147
  readonly name: "tokenId";
275
148
  readonly type: "uint256";
276
- }, {
277
- readonly internalType: "bytes";
278
- readonly name: "data";
279
- readonly type: "bytes";
280
149
  }];
281
- readonly name: "safeTransferFrom";
150
+ readonly name: "receiveNFT";
282
151
  readonly outputs: readonly [];
283
- readonly stateMutability: "payable";
152
+ readonly stateMutability: "nonpayable";
284
153
  readonly type: "function";
285
154
  }, {
286
155
  readonly inputs: readonly [{
287
- readonly internalType: "address";
288
- readonly name: "operator";
289
- readonly type: "address";
290
- }, {
291
- readonly internalType: "bool";
292
- readonly name: "_approved";
293
- readonly type: "bool";
156
+ readonly internalType: "uint256";
157
+ readonly name: "amount";
158
+ readonly type: "uint256";
294
159
  }];
295
- readonly name: "setApprovalForAll";
160
+ readonly name: "redeem";
296
161
  readonly outputs: readonly [];
297
162
  readonly stateMutability: "nonpayable";
298
163
  readonly type: "function";
299
164
  }, {
300
165
  readonly inputs: readonly [{
301
- readonly internalType: "bytes4";
302
- readonly name: "interfaceId";
303
- readonly type: "bytes4";
304
- }];
305
- readonly name: "supportsInterface";
306
- readonly outputs: readonly [{
307
- readonly internalType: "bool";
308
- readonly name: "";
309
- readonly type: "bool";
166
+ readonly internalType: "address";
167
+ readonly name: "_stabilityPool";
168
+ readonly type: "address";
310
169
  }];
311
- readonly stateMutability: "view";
170
+ readonly name: "setStabilityPool";
171
+ readonly outputs: readonly [];
172
+ readonly stateMutability: "nonpayable";
312
173
  readonly type: "function";
313
174
  }, {
314
175
  readonly inputs: readonly [];
315
- readonly name: "symbol";
176
+ readonly name: "totalSupply";
316
177
  readonly outputs: readonly [{
317
- readonly internalType: "string";
178
+ readonly internalType: "uint256";
318
179
  readonly name: "";
319
- readonly type: "string";
180
+ readonly type: "uint256";
320
181
  }];
321
182
  readonly stateMutability: "view";
322
183
  readonly type: "function";
323
184
  }, {
324
185
  readonly inputs: readonly [{
186
+ readonly internalType: "address";
187
+ readonly name: "to";
188
+ readonly type: "address";
189
+ }, {
325
190
  readonly internalType: "uint256";
326
- readonly name: "tokenId";
191
+ readonly name: "value";
327
192
  readonly type: "uint256";
328
193
  }];
329
- readonly name: "tokenURI";
330
- readonly outputs: readonly [{
331
- readonly internalType: "string";
332
- readonly name: "";
333
- readonly type: "string";
334
- }];
335
- readonly stateMutability: "view";
336
- readonly type: "function";
337
- }, {
338
- readonly inputs: readonly [];
339
- readonly name: "totalSupply";
194
+ readonly name: "transfer";
340
195
  readonly outputs: readonly [{
341
- readonly internalType: "uint256";
196
+ readonly internalType: "bool";
342
197
  readonly name: "";
343
- readonly type: "uint256";
198
+ readonly type: "bool";
344
199
  }];
345
- readonly stateMutability: "view";
200
+ readonly stateMutability: "nonpayable";
346
201
  readonly type: "function";
347
202
  }, {
348
203
  readonly inputs: readonly [{
@@ -355,14 +210,18 @@ export declare class IERC721A__factory {
355
210
  readonly type: "address";
356
211
  }, {
357
212
  readonly internalType: "uint256";
358
- readonly name: "tokenId";
213
+ readonly name: "value";
359
214
  readonly type: "uint256";
360
215
  }];
361
216
  readonly name: "transferFrom";
362
- readonly outputs: readonly [];
363
- readonly stateMutability: "payable";
217
+ readonly outputs: readonly [{
218
+ readonly internalType: "bool";
219
+ readonly name: "";
220
+ readonly type: "bool";
221
+ }];
222
+ readonly stateMutability: "nonpayable";
364
223
  readonly type: "function";
365
224
  }];
366
- static createInterface(): IERC721AInterface;
367
- static connect(address: string, runner?: ContractRunner | null): IERC721A;
225
+ static createInterface(): IIndexTokenInterface;
226
+ static connect(address: string, runner?: ContractRunner | null): IIndexToken;
368
227
  }