@raac/rpc 1.0.1 → 1.0.2-beta.1

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 (241) 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/17000.json +127 -0
  20. package/dist/configs/chains/8453.json +26 -14
  21. package/dist/configs/chains/index.js +2 -0
  22. package/dist/configs/createConfig.js +6 -0
  23. package/dist/contracts/feeCollector/claimRewardFromPool.js +24 -0
  24. package/dist/contracts/housePrices/getLatestPrice.js +1 -1
  25. package/dist/contracts/indexToken/getNextRandomNFT.js +30 -0
  26. package/dist/contracts/indexToken/redeemNFT.js +39 -0
  27. package/dist/nfts/getAllTokens.js +34 -0
  28. package/dist/nfts/{addNewBatch.js → getBaseUri.js} +7 -8
  29. package/dist/nfts/getMintFeePercentage.js +23 -0
  30. package/dist/nfts/getMintPrice.js +28 -0
  31. package/dist/nfts/getTokenURI.js +23 -0
  32. package/dist/nfts/getTokensByOwner.js +35 -0
  33. package/dist/nfts/getTotalPropertiesCount.js +23 -0
  34. package/dist/nfts/{getCurrentBatchSize.js → totalNFTSupply.js} +3 -3
  35. package/dist/pools/lendingPool/borrowFromLendingPool.js +4 -3
  36. package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +40 -0
  37. package/dist/pools/lendingPool/calculateInsuranceFee.js +20 -0
  38. package/dist/pools/lendingPool/claimReward.js +22 -0
  39. package/dist/pools/lendingPool/closeLiquidation.js +28 -0
  40. package/dist/pools/lendingPool/depositNFTToLendingPool.js +0 -1
  41. package/dist/pools/lendingPool/depositToLendingPool.js +2 -2
  42. package/dist/pools/lendingPool/getAllUserData.js +28 -0
  43. package/dist/pools/lendingPool/getEligibleUserDeposits.js +27 -0
  44. package/dist/pools/lendingPool/getHealthFactor.js +27 -0
  45. package/dist/pools/lendingPool/getLendingPoolInfo.js +8 -5
  46. package/dist/pools/lendingPool/getPendingReward.js +20 -0
  47. package/dist/pools/lendingPool/getPositionDebt.js +27 -0
  48. package/dist/pools/lendingPool/getPositionScaledDebt.js +27 -0
  49. package/dist/pools/lendingPool/getPositionView.js +38 -0
  50. package/dist/pools/lendingPool/getPositionsScaledDebt.js +27 -0
  51. package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +21 -0
  52. package/dist/pools/lendingPool/getUserCollateralValue.js +27 -0
  53. package/dist/pools/lendingPool/initializeLiquidation.js +28 -0
  54. package/dist/pools/lendingPool/repayToLendingPool.js +4 -8
  55. package/dist/pools/lendingPool/withdrawFromLendingPool.js +2 -2
  56. package/dist/pools/stabilityPool/depositNFTToStabilityPool.js +40 -0
  57. package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +21 -0
  58. package/dist/pools/stabilityPool/getStabilityPoolInfo.js +2 -12
  59. package/dist/scripts/index.js +90 -35
  60. package/dist/types/RPCLibrary.d.ts +61 -8
  61. package/dist/types/configs/chains/index.d.ts +2 -0
  62. package/dist/types/configs/createConfig.d.ts +6 -0
  63. package/dist/types/configs/index.d.ts +1 -0
  64. package/dist/types/contracts/feeCollector/claimRewardFromPool.d.ts +4 -0
  65. package/dist/types/contracts/housePrices/getLatestPrice.d.ts +1 -1
  66. package/dist/types/contracts/indexToken/getNextRandomNFT.d.ts +7 -0
  67. package/dist/types/contracts/indexToken/redeemNFT.d.ts +4 -0
  68. package/dist/types/nfts/getAllTokens.d.ts +7 -0
  69. package/dist/types/nfts/getBaseUri.d.ts +4 -0
  70. package/dist/types/nfts/getMintFeePercentage.d.ts +4 -0
  71. package/dist/types/nfts/getMintPrice.d.ts +7 -0
  72. package/dist/types/nfts/getTokenURI.d.ts +4 -0
  73. package/dist/types/nfts/getTokensByOwner.d.ts +10 -0
  74. package/dist/types/nfts/getTotalPropertiesCount.d.ts +4 -0
  75. package/dist/types/nfts/totalNFTSupply.d.ts +4 -0
  76. package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +1 -1
  77. package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +4 -0
  78. package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +4 -0
  79. package/dist/types/pools/lendingPool/claimReward.d.ts +4 -0
  80. package/dist/types/pools/lendingPool/closeLiquidation.d.ts +11 -0
  81. package/dist/types/pools/lendingPool/getAllUserData.d.ts +16 -0
  82. package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +11 -0
  83. package/dist/types/pools/lendingPool/getHealthFactor.d.ts +11 -0
  84. package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +2 -1
  85. package/dist/types/pools/lendingPool/getPendingReward.d.ts +4 -0
  86. package/dist/types/pools/lendingPool/getPositionDebt.d.ts +11 -0
  87. package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +11 -0
  88. package/dist/types/pools/lendingPool/getPositionView.d.ts +27 -0
  89. package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +11 -0
  90. package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +4 -0
  91. package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +11 -0
  92. package/dist/types/pools/lendingPool/initializeLiquidation.d.ts +11 -0
  93. package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +2 -2
  94. package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +1 -1
  95. package/dist/types/pools/stabilityPool/depositNFTToStabilityPool.d.ts +4 -0
  96. package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +4 -0
  97. package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +1 -3
  98. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
  99. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +35 -0
  100. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/index.d.ts +3 -0
  101. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +156 -0
  102. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
  103. package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +446 -221
  104. package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +108 -20
  105. package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +6 -16
  106. package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +166 -0
  107. package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +1 -0
  108. package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +811 -99
  109. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +152 -148
  110. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +0 -1
  111. package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +29 -2
  112. package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +65 -51
  113. package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +187 -2
  114. package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +413 -19
  115. package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +40 -40
  116. package/dist/types/typechain-types/contracts/interfaces/core/collectors/IBaseCollector.d.ts +39 -0
  117. package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +317 -130
  118. package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +1 -0
  119. package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +2 -0
  120. package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +58 -22
  121. package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +5 -3
  122. package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +86 -0
  123. package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +1 -0
  124. package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +83 -45
  125. package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +539 -54
  126. package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +92 -71
  127. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +123 -27
  128. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IIndexToken.d.ts +187 -0
  129. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +243 -17
  130. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +37 -37
  131. package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +1 -0
  132. package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseVault.d.ts +83 -0
  133. package/dist/types/typechain-types/contracts/interfaces/core/vaults/index.d.ts +1 -0
  134. package/dist/types/typechain-types/contracts/interfaces/index.d.ts +0 -1
  135. package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +0 -1
  136. package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +5 -1
  137. package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +2 -0
  138. package/dist/types/typechain-types/contracts/mocks/core/oracles/MockVRFCoordinatorV2.d.ts +530 -0
  139. package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +1 -0
  140. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolCollector.d.ts +156 -0
  141. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +557 -102
  142. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLiquidityPool.d.ts +486 -0
  143. package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +2 -0
  144. package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts +35 -0
  145. package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +1 -0
  146. package/dist/types/typechain-types/contracts/mocks/core/tokens/MockCollectableUnderlying.d.ts +292 -0
  147. package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
  148. package/dist/types/typechain-types/contracts/mocks/core/vaults/MockVault.d.ts +290 -0
  149. package/dist/types/typechain-types/contracts/mocks/core/vaults/index.d.ts +1 -0
  150. package/dist/types/typechain-types/contracts/mocks/libraries/MockStringUtils.d.ts +25 -0
  151. package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +1 -0
  152. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
  153. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +33 -0
  154. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/index.d.ts +2 -0
  155. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +171 -0
  156. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
  157. package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +571 -194
  158. package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +138 -54
  159. package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +5 -31
  160. package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +231 -0
  161. package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +1 -1
  162. package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +1 -1
  163. package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +1 -0
  164. package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +897 -64
  165. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +1 -1
  166. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +128 -161
  167. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +0 -1
  168. package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +54 -1
  169. package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +47 -29
  170. package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +317 -1
  171. package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +525 -17
  172. package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +1 -1
  173. package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +52 -52
  174. package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -1
  175. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IBaseCollector__factory.d.ts +33 -0
  176. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +409 -90
  177. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +1 -0
  178. package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +1 -0
  179. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +59 -15
  180. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +4 -0
  181. package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +78 -0
  182. package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +1 -0
  183. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +119 -39
  184. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +547 -19
  185. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +68 -67
  186. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +119 -6
  187. package/dist/types/typechain-types/factories/{erc721a/contracts/IERC721A__factory.d.ts → contracts/interfaces/core/tokens/IIndexToken__factory.d.ts} +74 -215
  188. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +274 -10
  189. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +26 -26
  190. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +1 -0
  191. package/dist/types/typechain-types/factories/contracts/interfaces/{IMarketCreator__factory.d.ts → core/vaults/IBaseVault__factory.d.ts} +78 -42
  192. package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/index.d.ts +1 -0
  193. package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +0 -1
  194. package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
  195. package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/index.d.ts +0 -1
  196. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +16 -4
  197. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +10 -1
  198. package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +1 -0
  199. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +1 -1
  200. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockVRFCoordinatorV2__factory.d.ts +620 -0
  201. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +1 -1
  202. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +1 -1
  203. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +1 -0
  204. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +234 -0
  205. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +539 -77
  206. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +1 -1
  207. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +795 -0
  208. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +1 -1
  209. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +2 -0
  210. package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +68 -0
  211. package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +1 -0
  212. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +451 -0
  213. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
  214. package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +525 -0
  215. package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/index.d.ts +1 -0
  216. package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +40 -0
  217. package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +1 -0
  218. package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +1 -1
  219. package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +1 -1
  220. package/dist/types/typechain-types/factories/index.d.ts +0 -1
  221. package/dist/types/typechain-types/index.d.ts +28 -10
  222. package/dist/types/utils/artifacts.d.ts +677 -39
  223. package/dist/types/utils/contracts.d.ts +2 -0
  224. package/dist/utils/artifacts.js +9 -0
  225. package/package.json +1 -1
  226. package/dist/nfts/getDepositedNFTs.js +0 -19
  227. package/dist/nfts/getOwnedNFTs.js +0 -34
  228. package/dist/types/nfts/addNewBatch.d.ts +0 -4
  229. package/dist/types/nfts/getCurrentBatchSize.d.ts +0 -4
  230. package/dist/types/nfts/getDepositedNFTs.d.ts +0 -7
  231. package/dist/types/nfts/getOwnedNFTs.d.ts +0 -7
  232. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/MarketCreator.d.ts +0 -274
  233. package/dist/types/typechain-types/contracts/interfaces/IMarketCreator.d.ts +0 -85
  234. package/dist/types/typechain-types/contracts/mocks/core/collectors/MockFeeCollector.d.ts +0 -708
  235. package/dist/types/typechain-types/erc721a/contracts/IERC721A.d.ts +0 -242
  236. package/dist/types/typechain-types/erc721a/contracts/index.d.ts +0 -1
  237. package/dist/types/typechain-types/erc721a/index.d.ts +0 -2
  238. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/MarketCreator__factory.d.ts +0 -405
  239. package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockFeeCollector__factory.d.ts +0 -985
  240. package/dist/types/typechain-types/factories/erc721a/contracts/index.d.ts +0 -1
  241. package/dist/types/typechain-types/factories/erc721a/index.d.ts +0 -1
@@ -1,242 +0,0 @@
1
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
3
- export interface IERC721AInterface extends Interface {
4
- getFunction(nameOrSignature: "approve" | "balanceOf" | "getApproved" | "isApprovedForAll" | "name" | "ownerOf" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "supportsInterface" | "symbol" | "tokenURI" | "totalSupply" | "transferFrom"): FunctionFragment;
5
- getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "ConsecutiveTransfer" | "Transfer"): EventFragment;
6
- encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
7
- encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
8
- encodeFunctionData(functionFragment: "getApproved", values: [BigNumberish]): string;
9
- encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
10
- encodeFunctionData(functionFragment: "name", values?: undefined): string;
11
- encodeFunctionData(functionFragment: "ownerOf", values: [BigNumberish]): string;
12
- encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256)", values: [AddressLike, AddressLike, BigNumberish]): string;
13
- encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
14
- encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
15
- encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
16
- encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
17
- encodeFunctionData(functionFragment: "tokenURI", values: [BigNumberish]): string;
18
- encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
19
- encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
20
- decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
21
- decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
22
- decodeFunctionResult(functionFragment: "getApproved", data: BytesLike): Result;
23
- decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
24
- decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
25
- decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
26
- decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256)", data: BytesLike): Result;
27
- decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", data: BytesLike): Result;
28
- decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
29
- decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
30
- decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
31
- decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
32
- decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
33
- decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
34
- }
35
- export declare namespace ApprovalEvent {
36
- type InputTuple = [
37
- owner: AddressLike,
38
- approved: AddressLike,
39
- tokenId: BigNumberish
40
- ];
41
- type OutputTuple = [owner: string, approved: string, tokenId: bigint];
42
- interface OutputObject {
43
- owner: string;
44
- approved: string;
45
- tokenId: bigint;
46
- }
47
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
48
- type Filter = TypedDeferredTopicFilter<Event>;
49
- type Log = TypedEventLog<Event>;
50
- type LogDescription = TypedLogDescription<Event>;
51
- }
52
- export declare namespace ApprovalForAllEvent {
53
- type InputTuple = [
54
- owner: AddressLike,
55
- operator: AddressLike,
56
- approved: boolean
57
- ];
58
- type OutputTuple = [
59
- owner: string,
60
- operator: string,
61
- approved: boolean
62
- ];
63
- interface OutputObject {
64
- owner: string;
65
- operator: string;
66
- approved: boolean;
67
- }
68
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
69
- type Filter = TypedDeferredTopicFilter<Event>;
70
- type Log = TypedEventLog<Event>;
71
- type LogDescription = TypedLogDescription<Event>;
72
- }
73
- export declare namespace ConsecutiveTransferEvent {
74
- type InputTuple = [
75
- fromTokenId: BigNumberish,
76
- toTokenId: BigNumberish,
77
- from: AddressLike,
78
- to: AddressLike
79
- ];
80
- type OutputTuple = [
81
- fromTokenId: bigint,
82
- toTokenId: bigint,
83
- from: string,
84
- to: string
85
- ];
86
- interface OutputObject {
87
- fromTokenId: bigint;
88
- toTokenId: bigint;
89
- from: string;
90
- to: string;
91
- }
92
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
93
- type Filter = TypedDeferredTopicFilter<Event>;
94
- type Log = TypedEventLog<Event>;
95
- type LogDescription = TypedLogDescription<Event>;
96
- }
97
- export declare namespace TransferEvent {
98
- type InputTuple = [
99
- from: AddressLike,
100
- to: AddressLike,
101
- tokenId: BigNumberish
102
- ];
103
- type OutputTuple = [from: string, to: string, tokenId: bigint];
104
- interface OutputObject {
105
- from: string;
106
- to: string;
107
- tokenId: bigint;
108
- }
109
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
110
- type Filter = TypedDeferredTopicFilter<Event>;
111
- type Log = TypedEventLog<Event>;
112
- type LogDescription = TypedLogDescription<Event>;
113
- }
114
- export interface IERC721A extends BaseContract {
115
- connect(runner?: ContractRunner | null): IERC721A;
116
- waitForDeployment(): Promise<this>;
117
- interface: IERC721AInterface;
118
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
119
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
120
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
121
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
122
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
123
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
124
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
125
- listeners(eventName?: string): Promise<Array<Listener>>;
126
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
127
- approve: TypedContractMethod<[
128
- to: AddressLike,
129
- tokenId: BigNumberish
130
- ], [
131
- void
132
- ], "payable">;
133
- balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
134
- getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
135
- isApprovedForAll: TypedContractMethod<[
136
- owner: AddressLike,
137
- operator: AddressLike
138
- ], [
139
- boolean
140
- ], "view">;
141
- name: TypedContractMethod<[], [string], "view">;
142
- ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
143
- "safeTransferFrom(address,address,uint256)": TypedContractMethod<[
144
- from: AddressLike,
145
- to: AddressLike,
146
- tokenId: BigNumberish
147
- ], [
148
- void
149
- ], "payable">;
150
- "safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod<[
151
- from: AddressLike,
152
- to: AddressLike,
153
- tokenId: BigNumberish,
154
- data: BytesLike
155
- ], [
156
- void
157
- ], "payable">;
158
- setApprovalForAll: TypedContractMethod<[
159
- operator: AddressLike,
160
- _approved: boolean
161
- ], [
162
- void
163
- ], "nonpayable">;
164
- supportsInterface: TypedContractMethod<[
165
- interfaceId: BytesLike
166
- ], [
167
- boolean
168
- ], "view">;
169
- symbol: TypedContractMethod<[], [string], "view">;
170
- tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
171
- totalSupply: TypedContractMethod<[], [bigint], "view">;
172
- transferFrom: TypedContractMethod<[
173
- from: AddressLike,
174
- to: AddressLike,
175
- tokenId: BigNumberish
176
- ], [
177
- void
178
- ], "payable">;
179
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
180
- getFunction(nameOrSignature: "approve"): TypedContractMethod<[
181
- to: AddressLike,
182
- tokenId: BigNumberish
183
- ], [
184
- void
185
- ], "payable">;
186
- getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
187
- getFunction(nameOrSignature: "getApproved"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
188
- getFunction(nameOrSignature: "isApprovedForAll"): TypedContractMethod<[
189
- owner: AddressLike,
190
- operator: AddressLike
191
- ], [
192
- boolean
193
- ], "view">;
194
- getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
195
- getFunction(nameOrSignature: "ownerOf"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
196
- getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256)"): TypedContractMethod<[
197
- from: AddressLike,
198
- to: AddressLike,
199
- tokenId: BigNumberish
200
- ], [
201
- void
202
- ], "payable">;
203
- getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"): TypedContractMethod<[
204
- from: AddressLike,
205
- to: AddressLike,
206
- tokenId: BigNumberish,
207
- data: BytesLike
208
- ], [
209
- void
210
- ], "payable">;
211
- getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
212
- operator: AddressLike,
213
- _approved: boolean
214
- ], [
215
- void
216
- ], "nonpayable">;
217
- getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
218
- getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
219
- getFunction(nameOrSignature: "tokenURI"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
220
- getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
221
- getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
222
- from: AddressLike,
223
- to: AddressLike,
224
- tokenId: BigNumberish
225
- ], [
226
- void
227
- ], "payable">;
228
- getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
229
- getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
230
- getEvent(key: "ConsecutiveTransfer"): TypedContractEvent<ConsecutiveTransferEvent.InputTuple, ConsecutiveTransferEvent.OutputTuple, ConsecutiveTransferEvent.OutputObject>;
231
- getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
232
- filters: {
233
- "Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
234
- Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
235
- "ApprovalForAll(address,address,bool)": TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
236
- ApprovalForAll: TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
237
- "ConsecutiveTransfer(uint256,uint256,address,address)": TypedContractEvent<ConsecutiveTransferEvent.InputTuple, ConsecutiveTransferEvent.OutputTuple, ConsecutiveTransferEvent.OutputObject>;
238
- ConsecutiveTransfer: TypedContractEvent<ConsecutiveTransferEvent.InputTuple, ConsecutiveTransferEvent.OutputTuple, ConsecutiveTransferEvent.OutputObject>;
239
- "Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
240
- Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
241
- };
242
- }
@@ -1 +0,0 @@
1
- export type { IERC721A } from "./IERC721A";
@@ -1,2 +0,0 @@
1
- import type * as contracts from "./contracts";
2
- export type { contracts };
@@ -1,405 +0,0 @@
1
- import { ContractFactory, ContractTransactionResponse } from "ethers";
2
- import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
3
- import type { NonPayableOverrides } from "../../../../../common";
4
- import type { MarketCreator, MarketCreatorInterface } from "../../../../../contracts/core/pools/StabilityPool/MarketCreator";
5
- type MarketCreatorConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
- export declare class MarketCreator__factory extends ContractFactory {
7
- constructor(...args: MarketCreatorConstructorParams);
8
- getDeployTransaction(initialOwner: AddressLike, _raacToken: AddressLike, _decrvUSDToken: AddressLike, overrides?: NonPayableOverrides & {
9
- from?: string;
10
- }): Promise<ContractDeployTransaction>;
11
- deploy(initialOwner: AddressLike, _raacToken: AddressLike, _decrvUSDToken: AddressLike, overrides?: NonPayableOverrides & {
12
- from?: string;
13
- }): Promise<MarketCreator & {
14
- deploymentTransaction(): ContractTransactionResponse;
15
- }>;
16
- connect(runner: ContractRunner | null): MarketCreator__factory;
17
- static readonly bytecode = "0x608060405234801561001057600080fd5b50604051610eb2380380610eb283398101604081905261002f9161010a565b826001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100678161009e565b5060018055600580546001600160a01b039384166001600160a01b031991821617909155600680549290931691161790555061014d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461010557600080fd5b919050565b60008060006060848603121561011f57600080fd5b610128846100ee565b9250610136602085016100ee565b9150610144604085016100ee565b90509250925092565b610d568061015c6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638da5cb5b11610097578063d3cf264411610066578063d3cf2644146102dc578063e40963f2146102ef578063ec97908214610302578063f2fde38b1461030b57600080fd5b80638da5cb5b14610250578063b1283e7714610275578063bf605d8e146102b6578063d1717be8146102c957600080fd5b80634f1bfc9e116100d35780634f1bfc9e1461019a578063715018a6146101a5578063869da9db146101ad5780638ae907f01461021357600080fd5b80630e1505e0146100fa57806330e256551461011d5780633ec7919314610132575b600080fd5b61010a683635c9adc5dea0000081565b6040519081526020015b60405180910390f35b61013061012b366004610b70565b61031e565b005b610170610140366004610b70565b600090815260026020819052604090912080546001820154928201546003909201546001600160a01b0390911693565b604080516001600160a01b0390951685526020850193909352918301526060820152608001610114565b61010a6301e1338081565b6101306104bd565b6101f66101bb366004610ba5565b60009182526003602090815260408084206001600160a01b03939093168452919052902080546001820154600290920154909260ff90911690565b604080519384526020840192909252151590820152606001610114565b6101f6610221366004610ba5565b600360209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610114565b610170610283366004610b70565b600260208190526000918252604090912080546001820154928201546003909201546001600160a01b0390911692919084565b6101306102c4366004610bd1565b6104d1565b6101306102d7366004610c04565b610627565b60065461025d906001600160a01b031681565b60055461025d906001600160a01b031681565b61010a60045481565b610130610319366004610c26565b610817565b610326610852565b6000818152600260208181526040808420600383528185203386529092529092209081015460ff166103935760405162461bcd60e51b8152602060048201526011602482015270139bc81c1bdcda5d1a5bdb88199bdd5b99607a1b60448201526064015b60405180910390fd5b80600101544210156103e75760405162461bcd60e51b815260206004820152601c60248201527f4c6f636b206475726174696f6e20686173206e6f742070617373656400000000604482015260640161038a565b805460006103f5858361087c565b90508184600301600082825461040b9190610c57565b90915550506000858152600360209081526040808320338085529252822082815560018101929092556002909101805460ff191690558454610459916001600160a01b0390911690846108b6565b600554610470906001600160a01b031633836108b6565b6040805183815260208101839052339187917fa5851b0172fdafd3dafe0e52ce051747548a4c642a2f22793c01faf228e13062910160405180910390a3505050506104ba60018055565b50565b6104c561091a565b6104cf6000610947565b565b6104d961091a565b6001600160a01b0383166105005760405163074cf62360e21b815260040160405180910390fd5b81158061051057506301e1338082115b1561052e57604051630f962f3d60e31b815260040160405180910390fd5b8015806105435750683635c9adc5dea0000081115b15610561576040516314414f4160e11b815260040160405180910390fd5b6004805490600061057183610c6a565b9091555050604080516080810182526001600160a01b038581168083526020808401878152848601878152600060608088018281526004805484526002808852938b902099518a546001600160a01b031916991698909817895593516001890155915190870155905160039095019490945591548451918252918101869052928301849052917f28c8de42a10b7bcc4a65ea3618bc8ada3e24cd7394886eae1b4f5f7440477080910160405180910390a2505050565b61062f610852565b600082815260026020526040902080546001600160a01b031661068c5760405162461bcd60e51b815260206004820152601560248201527413585c9ad95d08191bd95cc81b9bdd08195e1a5cdd605a1b604482015260640161038a565b600082116106dc5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604482015260640161038a565b818160030160008282546106f09190610c83565b909155505060008381526003602090815260408083203384529091529020600281015460ff161561074d578281600001600082825461072f9190610c83565b909155505060018201546107439042610c83565b60018201556107ba565b604051806060016040528084815260200183600101544261076e9190610c83565b815260016020918201819052600087815260038352604080822033835284529081902084518155928401519183019190915591909101516002909101805460ff19169115159190911790555b81546107d1906001600160a01b0316333086610997565b604051838152339085907fbfe142be8d62c9f4b8867c2fb8a74f5db596e853095acccbcd78c1d904b27efb9060200160405180910390a3505061081360018055565b5050565b61081f61091a565b6001600160a01b03811661084957604051631e4fbdf760e01b81526000600482015260240161038a565b6104ba81610947565b60026001540361087557604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b600082815260026020819052604082206003810154918101549091906108a29085610c96565b6108ac9190610cad565b9150505b92915050565b6040516001600160a01b0383811660248301526044820183905261091591859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506109d6565b505050565b6000546001600160a01b031633146104cf5760405163118cdaa760e01b815233600482015260240161038a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0384811660248301528381166044830152606482018390526109d09186918216906323b872dd906084016108e3565b50505050565b60006109eb6001600160a01b03841683610a39565b90508051600014158015610a10575080806020019051810190610a0e9190610ccf565b155b1561091557604051635274afe760e01b81526001600160a01b038416600482015260240161038a565b6060610a4783836000610a4e565b9392505050565b606081471015610a735760405163cd78605960e01b815230600482015260240161038a565b600080856001600160a01b03168486604051610a8f9190610cf1565b60006040518083038185875af1925050503d8060008114610acc576040519150601f19603f3d011682016040523d82523d6000602084013e610ad1565b606091505b5091509150610ae1868383610aeb565b9695505050505050565b606082610b0057610afb82610b47565b610a47565b8151158015610b1757506001600160a01b0384163b155b15610b4057604051639996b31560e01b81526001600160a01b038516600482015260240161038a565b5080610a47565b805115610b575780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610b8257600080fd5b5035919050565b80356001600160a01b0381168114610ba057600080fd5b919050565b60008060408385031215610bb857600080fd5b82359150610bc860208401610b89565b90509250929050565b600080600060608486031215610be657600080fd5b610bef84610b89565b95602085013595506040909401359392505050565b60008060408385031215610c1757600080fd5b50508035926020909101359150565b600060208284031215610c3857600080fd5b610a4782610b89565b634e487b7160e01b600052601160045260246000fd5b818103818111156108b0576108b0610c41565b600060018201610c7c57610c7c610c41565b5060010190565b808201808211156108b0576108b0610c41565b80820281158282048414176108b0576108b0610c41565b600082610cca57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610ce157600080fd5b81518015158114610a4757600080fd5b6000825160005b81811015610d125760208186018101518583015201610cf8565b50600092019182525091905056fea2646970667358221220e02df5ddf55e743fa6f04bbc76e304ac05503398e402122c966db1aa8ed00c2c64736f6c63430008140033";
18
- static readonly abi: readonly [{
19
- readonly inputs: readonly [{
20
- readonly internalType: "address";
21
- readonly name: "initialOwner";
22
- readonly type: "address";
23
- }, {
24
- readonly internalType: "address";
25
- readonly name: "_raacToken";
26
- readonly type: "address";
27
- }, {
28
- readonly internalType: "address";
29
- readonly name: "_decrvUSDToken";
30
- readonly type: "address";
31
- }];
32
- readonly stateMutability: "nonpayable";
33
- readonly type: "constructor";
34
- }, {
35
- readonly inputs: readonly [{
36
- readonly internalType: "address";
37
- readonly name: "target";
38
- readonly type: "address";
39
- }];
40
- readonly name: "AddressEmptyCode";
41
- readonly type: "error";
42
- }, {
43
- readonly inputs: readonly [{
44
- readonly internalType: "address";
45
- readonly name: "account";
46
- readonly type: "address";
47
- }];
48
- readonly name: "AddressInsufficientBalance";
49
- readonly type: "error";
50
- }, {
51
- readonly inputs: readonly [];
52
- readonly name: "FailedInnerCall";
53
- readonly type: "error";
54
- }, {
55
- readonly inputs: readonly [];
56
- readonly name: "InvalidLockDuration";
57
- readonly type: "error";
58
- }, {
59
- readonly inputs: readonly [];
60
- readonly name: "InvalidQuoteAsset";
61
- readonly type: "error";
62
- }, {
63
- readonly inputs: readonly [];
64
- readonly name: "InvalidReward";
65
- readonly type: "error";
66
- }, {
67
- readonly inputs: readonly [{
68
- readonly internalType: "address";
69
- readonly name: "owner";
70
- readonly type: "address";
71
- }];
72
- readonly name: "OwnableInvalidOwner";
73
- readonly type: "error";
74
- }, {
75
- readonly inputs: readonly [{
76
- readonly internalType: "address";
77
- readonly name: "account";
78
- readonly type: "address";
79
- }];
80
- readonly name: "OwnableUnauthorizedAccount";
81
- readonly type: "error";
82
- }, {
83
- readonly inputs: readonly [];
84
- readonly name: "ReentrancyGuardReentrantCall";
85
- readonly type: "error";
86
- }, {
87
- readonly inputs: readonly [{
88
- readonly internalType: "address";
89
- readonly name: "token";
90
- readonly type: "address";
91
- }];
92
- readonly name: "SafeERC20FailedOperation";
93
- readonly type: "error";
94
- }, {
95
- readonly anonymous: false;
96
- readonly inputs: readonly [{
97
- readonly indexed: true;
98
- readonly internalType: "uint256";
99
- readonly name: "marketId";
100
- readonly type: "uint256";
101
- }, {
102
- readonly indexed: false;
103
- readonly internalType: "address";
104
- readonly name: "quoteAsset";
105
- readonly type: "address";
106
- }, {
107
- readonly indexed: false;
108
- readonly internalType: "uint256";
109
- readonly name: "lockDuration";
110
- readonly type: "uint256";
111
- }, {
112
- readonly indexed: false;
113
- readonly internalType: "uint256";
114
- readonly name: "reward";
115
- readonly type: "uint256";
116
- }];
117
- readonly name: "MarketCreated";
118
- readonly type: "event";
119
- }, {
120
- readonly anonymous: false;
121
- readonly inputs: readonly [{
122
- readonly indexed: true;
123
- readonly internalType: "address";
124
- readonly name: "previousOwner";
125
- readonly type: "address";
126
- }, {
127
- readonly indexed: true;
128
- readonly internalType: "address";
129
- readonly name: "newOwner";
130
- readonly type: "address";
131
- }];
132
- readonly name: "OwnershipTransferred";
133
- readonly type: "event";
134
- }, {
135
- readonly anonymous: false;
136
- readonly inputs: readonly [{
137
- readonly indexed: true;
138
- readonly internalType: "uint256";
139
- readonly name: "marketId";
140
- readonly type: "uint256";
141
- }, {
142
- readonly indexed: true;
143
- readonly internalType: "address";
144
- readonly name: "user";
145
- readonly type: "address";
146
- }, {
147
- readonly indexed: false;
148
- readonly internalType: "uint256";
149
- readonly name: "amount";
150
- readonly type: "uint256";
151
- }];
152
- readonly name: "Participated";
153
- readonly type: "event";
154
- }, {
155
- readonly anonymous: false;
156
- readonly inputs: readonly [{
157
- readonly indexed: true;
158
- readonly internalType: "uint256";
159
- readonly name: "marketId";
160
- readonly type: "uint256";
161
- }, {
162
- readonly indexed: true;
163
- readonly internalType: "address";
164
- readonly name: "user";
165
- readonly type: "address";
166
- }, {
167
- readonly indexed: false;
168
- readonly internalType: "uint256";
169
- readonly name: "amount";
170
- readonly type: "uint256";
171
- }, {
172
- readonly indexed: false;
173
- readonly internalType: "uint256";
174
- readonly name: "reward";
175
- readonly type: "uint256";
176
- }];
177
- readonly name: "Redeemed";
178
- readonly type: "event";
179
- }, {
180
- readonly inputs: readonly [];
181
- readonly name: "MAX_LOCK_DURATION";
182
- readonly outputs: readonly [{
183
- readonly internalType: "uint256";
184
- readonly name: "";
185
- readonly type: "uint256";
186
- }];
187
- readonly stateMutability: "view";
188
- readonly type: "function";
189
- }, {
190
- readonly inputs: readonly [];
191
- readonly name: "MAX_REWARD";
192
- readonly outputs: readonly [{
193
- readonly internalType: "uint256";
194
- readonly name: "";
195
- readonly type: "uint256";
196
- }];
197
- readonly stateMutability: "view";
198
- readonly type: "function";
199
- }, {
200
- readonly inputs: readonly [{
201
- readonly internalType: "address";
202
- readonly name: "_quoteAsset";
203
- readonly type: "address";
204
- }, {
205
- readonly internalType: "uint256";
206
- readonly name: "_lockDuration";
207
- readonly type: "uint256";
208
- }, {
209
- readonly internalType: "uint256";
210
- readonly name: "_reward";
211
- readonly type: "uint256";
212
- }];
213
- readonly name: "createMarket";
214
- readonly outputs: readonly [];
215
- readonly stateMutability: "nonpayable";
216
- readonly type: "function";
217
- }, {
218
- readonly inputs: readonly [];
219
- readonly name: "decrvUSDToken";
220
- readonly outputs: readonly [{
221
- readonly internalType: "contract IERC20";
222
- readonly name: "";
223
- readonly type: "address";
224
- }];
225
- readonly stateMutability: "view";
226
- readonly type: "function";
227
- }, {
228
- readonly inputs: readonly [{
229
- readonly internalType: "uint256";
230
- readonly name: "marketId";
231
- readonly type: "uint256";
232
- }];
233
- readonly name: "getMarketInfo";
234
- readonly outputs: readonly [{
235
- readonly internalType: "contract IERC20";
236
- readonly name: "";
237
- readonly type: "address";
238
- }, {
239
- readonly internalType: "uint256";
240
- readonly name: "";
241
- readonly type: "uint256";
242
- }, {
243
- readonly internalType: "uint256";
244
- readonly name: "";
245
- readonly type: "uint256";
246
- }, {
247
- readonly internalType: "uint256";
248
- readonly name: "";
249
- readonly type: "uint256";
250
- }];
251
- readonly stateMutability: "view";
252
- readonly type: "function";
253
- }, {
254
- readonly inputs: readonly [{
255
- readonly internalType: "uint256";
256
- readonly name: "marketId";
257
- readonly type: "uint256";
258
- }, {
259
- readonly internalType: "address";
260
- readonly name: "user";
261
- readonly type: "address";
262
- }];
263
- readonly name: "getUserPosition";
264
- readonly outputs: readonly [{
265
- readonly internalType: "uint256";
266
- readonly name: "";
267
- readonly type: "uint256";
268
- }, {
269
- readonly internalType: "uint256";
270
- readonly name: "";
271
- readonly type: "uint256";
272
- }, {
273
- readonly internalType: "bool";
274
- readonly name: "";
275
- readonly type: "bool";
276
- }];
277
- readonly stateMutability: "view";
278
- readonly type: "function";
279
- }, {
280
- readonly inputs: readonly [];
281
- readonly name: "marketCount";
282
- readonly outputs: readonly [{
283
- readonly internalType: "uint256";
284
- readonly name: "";
285
- readonly type: "uint256";
286
- }];
287
- readonly stateMutability: "view";
288
- readonly type: "function";
289
- }, {
290
- readonly inputs: readonly [{
291
- readonly internalType: "uint256";
292
- readonly name: "";
293
- readonly type: "uint256";
294
- }];
295
- readonly name: "markets";
296
- readonly outputs: readonly [{
297
- readonly internalType: "contract IERC20";
298
- readonly name: "quoteAsset";
299
- readonly type: "address";
300
- }, {
301
- readonly internalType: "uint256";
302
- readonly name: "lockDuration";
303
- readonly type: "uint256";
304
- }, {
305
- readonly internalType: "uint256";
306
- readonly name: "reward";
307
- readonly type: "uint256";
308
- }, {
309
- readonly internalType: "uint256";
310
- readonly name: "totalDeposits";
311
- readonly type: "uint256";
312
- }];
313
- readonly stateMutability: "view";
314
- readonly type: "function";
315
- }, {
316
- readonly inputs: readonly [];
317
- readonly name: "owner";
318
- readonly outputs: readonly [{
319
- readonly internalType: "address";
320
- readonly name: "";
321
- readonly type: "address";
322
- }];
323
- readonly stateMutability: "view";
324
- readonly type: "function";
325
- }, {
326
- readonly inputs: readonly [{
327
- readonly internalType: "uint256";
328
- readonly name: "marketId";
329
- readonly type: "uint256";
330
- }, {
331
- readonly internalType: "uint256";
332
- readonly name: "amount";
333
- readonly type: "uint256";
334
- }];
335
- readonly name: "participateInMarket";
336
- readonly outputs: readonly [];
337
- readonly stateMutability: "nonpayable";
338
- readonly type: "function";
339
- }, {
340
- readonly inputs: readonly [];
341
- readonly name: "raacToken";
342
- readonly outputs: readonly [{
343
- readonly internalType: "contract IERC20";
344
- readonly name: "";
345
- readonly type: "address";
346
- }];
347
- readonly stateMutability: "view";
348
- readonly type: "function";
349
- }, {
350
- readonly inputs: readonly [{
351
- readonly internalType: "uint256";
352
- readonly name: "marketId";
353
- readonly type: "uint256";
354
- }];
355
- readonly name: "redeemFromMarket";
356
- readonly outputs: readonly [];
357
- readonly stateMutability: "nonpayable";
358
- readonly type: "function";
359
- }, {
360
- readonly inputs: readonly [];
361
- readonly name: "renounceOwnership";
362
- readonly outputs: readonly [];
363
- readonly stateMutability: "nonpayable";
364
- readonly type: "function";
365
- }, {
366
- readonly inputs: readonly [{
367
- readonly internalType: "address";
368
- readonly name: "newOwner";
369
- readonly type: "address";
370
- }];
371
- readonly name: "transferOwnership";
372
- readonly outputs: readonly [];
373
- readonly stateMutability: "nonpayable";
374
- readonly type: "function";
375
- }, {
376
- readonly inputs: readonly [{
377
- readonly internalType: "uint256";
378
- readonly name: "";
379
- readonly type: "uint256";
380
- }, {
381
- readonly internalType: "address";
382
- readonly name: "";
383
- readonly type: "address";
384
- }];
385
- readonly name: "userPositions";
386
- readonly outputs: readonly [{
387
- readonly internalType: "uint256";
388
- readonly name: "amount";
389
- readonly type: "uint256";
390
- }, {
391
- readonly internalType: "uint256";
392
- readonly name: "lockEndTime";
393
- readonly type: "uint256";
394
- }, {
395
- readonly internalType: "bool";
396
- readonly name: "exists";
397
- readonly type: "bool";
398
- }];
399
- readonly stateMutability: "view";
400
- readonly type: "function";
401
- }];
402
- static createInterface(): MarketCreatorInterface;
403
- static connect(address: string, runner?: ContractRunner | null): MarketCreator;
404
- }
405
- export {};