@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
@@ -0,0 +1,795 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, BigNumberish, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../../../../../common";
4
+ import type { MockLiquidityPool, MockLiquidityPoolInterface } from "../../../../../contracts/mocks/core/pools/MockLiquidityPool";
5
+ type MockLiquidityPoolConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class MockLiquidityPool__factory extends ContractFactory {
7
+ constructor(...args: MockLiquidityPoolConstructorParams);
8
+ getDeployTransaction(coinAddresses: [AddressLike, AddressLike], rateMultipliers: [BigNumberish, BigNumberish], ampParameter: BigNumberish, feeParameter: BigNumberish, name: string, symbol: string, overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(coinAddresses: [AddressLike, AddressLike], rateMultipliers: [BigNumberish, BigNumberish], ampParameter: BigNumberish, feeParameter: BigNumberish, name: string, symbol: string, overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<MockLiquidityPool & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): MockLiquidityPool__factory;
17
+ static readonly bytecode = "0x60806040523480156200001157600080fd5b50604051620020a1380380620020a1833981016040819052620000349162000383565b33828260036200004583826200050b565b5060046200005482826200050b565b5050506001600160a01b0381166200008757604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200009281620001da565b5060005b6002811015620001aa576000878260028110620000b757620000b7620005d7565b60200201516001600160a01b031603620001145760405162461bcd60e51b815260206004820152601460248201527f496e76616c696420636f696e206164647265737300000000000000000000000060448201526064016200007e565b868160028110620001295762000129620005d7565b602002015160068260028110620001445762000144620005d7565b0180546001600160a01b0319166001600160a01b0392909216919091179055858160028110620001785762000178620005d7565b6020020151600f8260028110620001935762000193620005d7565b015580620001a18162000603565b91505062000096565b50620001b86064856200061f565b600b55620001c86064856200061f565b600c555050600a55506200063f915050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156200026757620002676200022c565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200029857620002986200022c565b604052919050565b600082601f830112620002b257600080fd5b620002bc62000242565b806040840185811115620002cf57600080fd5b845b81811015620002eb578051845260209384019301620002d1565b509095945050505050565b600082601f8301126200030857600080fd5b81516001600160401b038111156200032457620003246200022c565b60206200033a601f8301601f191682016200026d565b82815285828487010111156200034f57600080fd5b60005b838110156200036f57858101830151828201840152820162000352565b506000928101909101919091529392505050565b60008060008060008061010087890312156200039e57600080fd5b87601f880112620003ae57600080fd5b620003b862000242565b80604089018a811115620003cb57600080fd5b895b81811015620003fe5780516001600160a01b0381168114620003ef5760008081fd5b845260209384019301620003cd565b508198506200040e8b82620002a0565b97505050506080870151935060a0870151925060c087015160018060401b03808211156200043b57600080fd5b620004498a838b01620002f6565b935060e08901519150808211156200046057600080fd5b506200046f89828a01620002f6565b9150509295509295509295565b600181811c908216806200049157607f821691505b602082108103620004b257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200050657600081815260208120601f850160051c81016020861015620004e15750805b601f850160051c820191505b818110156200050257828155600101620004ed565b5050505b505050565b81516001600160401b038111156200052757620005276200022c565b6200053f816200053884546200047c565b84620004b8565b602080601f8311600181146200057757600084156200055e5750858301515b600019600386901b1c1916600185901b17855562000502565b600085815260208120601f198616915b82811015620005a85788860151825594840194600190910190840162000587565b5085821015620005c75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201620006185762000618620005ed565b5060010190565b8082028115828204841417620006395762000639620005ed565b92915050565b611a52806200064f6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806376a2f0f01161011a578063c6610657116100ad578063ddca3f431161007c578063ddca3f4314610459578063efb7601d14610461578063f2fde38b14610474578063f3de036214610487578063f446c1d01461049357600080fd5b8063c661065714610405578063d011f91814610418578063d73792a9146102dc578063dd62ed3e1461042057600080fd5b8063a9059cbb116100e9578063a9059cbb146103db578063aaf5eb68146103ee578063b26025aa146103fd578063bc063e1a146102f957600080fd5b806376a2f0f01461037e5780638da5cb5b1461038657806395d89b41146103ab5780639de8ef79146103b357600080fd5b8063313ce5671161019d5780634903b0d11161016c5780634903b0d1146103055780635b36389c146103185780635e0d443f1461033857806370a082311461034b578063715018a61461037457600080fd5b8063313ce567146102cd57806339698415146102dc5780633df02124146102e65780634469ed14146102f957600080fd5b806318160ddd116101d957806318160ddd146102975780631a4d01d21461029f57806323b872dd146102b257806329357750146102c557600080fd5b806305de00381461020b57806306fdde031461023e578063095ea7b3146102535780630b4c7e4d14610276575b600080fd5b61021e61021936600461160b565b61049a565b604080519384526020840192909252908201526060015b60405180910390f35b610246610557565b6040516102359190611662565b610266610261366004611695565b6105e9565b6040519015158152602001610235565b61028961028436600461173d565b610603565b604051908152602001610235565b600254610289565b6102896102ad36600461177a565b6106ea565b6102666102c03660046117af565b610842565b610289600281565b60405160128152602001610235565b610289620f424081565b6102896102f43660046117db565b610866565b61028964012a05f20081565b61028961031336600461181d565b610af8565b61032b610326366004611836565b610b55565b604051610235919061185a565b61028961034636600461188b565b610cac565b6102896103593660046118b7565b6001600160a01b031660009081526020819052604090205490565b61037c610d76565b005b610289610d8a565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610235565b610246610d99565b6103c66103c13660046118b7565b610da8565b60408051928352602083019190915201610235565b6102666103e9366004611695565b610dea565b610289670de0b6b3a764000081565b610289610df8565b61039361041336600461181d565b610e0a565b610289606481565b61028961042e36600461160b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a54610289565b6103c661046f3660046118b7565b610e70565b61037c6104823660046118b7565b610f13565b6102896402540be40081565b6064610289565b600080806006600101546001600160a01b038681169116146104d75760405162461bcd60e51b81526004016104ce906118e8565b60405180910390fd5b6001600160a01b038416600090815260208190526040902054905060006104fd60025490565b905060008111801561050f5750600082115b1561054f57600854819061052490849061192c565b61052e9190611943565b93508082600860010154610542919061192c565b61054c9190611943565b92505b509250925092565b60606003805461056690611965565b80601f016020809104026020016040519081016040528092919081815260200182805461059290611965565b80156105df5780601f106105b4576101008083540402835291602001916105df565b820191906000526020600020905b8154815290600101906020018083116105c257829003601f168201915b5050505050905090565b6000336105f7818585610f51565b60019150505b92915050565b6000805b60028110156106c3576000848260028110610624576106246118d2565b602002015111156106b1576106713330868460028110610646576106466118d2565b60200201516006856002811061065e5761065e6118d2565b01546001600160a01b0316929190610f63565b838160028110610683576106836118d2565b60200201516008826002811061069b5761069b6118d2565b0160008282546106ab919061199f565b90915550505b806106bb816119b2565b915050610607565b50602083015183516000916106d79161199f565b90506106e33382610fd0565b9392505050565b60006002836001600160801b03161061073a5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840c6ded2dc40d2dcc8caf60731b60448201526064016104ce565b600061074560025490565b856008866001600160801b031660028110610762576107626118d2565b015461076e919061192c565b6107789190611943565b9050828110156107ca5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e74206f757470757420616d6f756e7400000000000060448201526064016104ce565b806008856001600160801b0316600281106107e7576107e76118d2565b0160008282546107f791906119cb565b909155506108079050338661100a565b61083a33826006876001600160801b031660028110610828576108286118d2565b01546001600160a01b03169190611040565b949350505050565b600033610850858285611071565b61085b8585856110e9565b506001949350505050565b60006002856001600160801b031610801561088a57506002846001600160801b0316105b6108c85760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420696e646963657360881b60448201526064016104ce565b83600f0b85600f0b036109095760405162461bcd60e51b815260206004820152600960248201526829b0b6b29031b7b4b760b91b60448201526064016104ce565b600083116109505760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081a5b9c1d5d08185b5bdd5b9d60621b60448201526064016104ce565b6109723330856006896001600160801b03166002811061065e5761065e6118d2565b826008866001600160801b03166002811061098f5761098f6118d2565b01600082825461099f919061199f565b9091555050600a54600090612710906109b890826119cb565b6109c2908661192c565b6109cc9190611943565b905082811015610a355760405162461bcd60e51b815260206004820152602e60248201527f45786368616e676520726573756c74656420696e20666577657220636f696e7360448201526d081d1a185b88195e1c1958dd195960921b60648201526084016104ce565b6008856001600160801b031660028110610a5157610a516118d2565b0154811115610a9b5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e74206c697175696469747960501b60448201526064016104ce565b806008866001600160801b031660028110610ab857610ab86118d2565b016000828254610ac891906119cb565b90915550610aef9050338260066001600160801b03891660028110610828576108286118d2565b95945050505050565b600060028210610b3a5760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b60448201526064016104ce565b60088260028110610b4d57610b4d6118d2565b015492915050565b610b5d6115d1565b610b656115d1565b6000610b7060025490565b905060005b6002811015610c99576000828760088460028110610b9557610b956118d2565b0154610ba1919061192c565b610bab9190611943565b9050858260028110610bbf57610bbf6118d2565b6020020151811015610c2c5760405162461bcd60e51b815260206004820152603060248201527f5769746864726177616c20726573756c74656420696e20666577657220636f6960448201526f1b9cc81d1a185b88195e1c1958dd195960821b60648201526084016104ce565b8060088360028110610c4057610c406118d2565b016000828254610c5091906119cb565b90915550819050848360028110610c6957610c696118d2565b6020020152610c86338260068560028110610828576108286118d2565b5080610c91816119b2565b915050610b75565b50610ca4338661100a565b509392505050565b60006002846001600160801b0316108015610cd057506002836001600160801b0316105b610d0e5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420696e646963657360881b60448201526064016104ce565b82600f0b84600f0b03610d4f5760405162461bcd60e51b815260206004820152600960248201526829b0b6b29031b7b4b760b91b60448201526064016104ce565b612710600a54612710610d6291906119cb565b610d6c908461192c565b61083a9190611943565b610d7e611148565b610d886000611175565b565b6000610d946111c7565b905090565b60606004805461056690611965565b6000806006600101546001600160a01b03848116911614610ddb5760405162461bcd60e51b81526004016104ce906118e8565b50506008546009549092909150565b6000336105f78185856110e9565b600954600854600091610d949161199f565b600060028210610e4c5760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b60448201526064016104ce565b60068260028110610e5f57610e5f6118d2565b01546001600160a01b031692915050565b6000806006600101546001600160a01b03848116911614610ea35760405162461bcd60e51b81526004016104ce906118e8565b6008541580610eb25750600954155b15610ec257506000928392509050565b600954600854610edb90670de0b6b3a76400009061192c565b610ee59190611943565b60085460095491935090610f0290670de0b6b3a76400009061192c565b610f0c9190611943565b9050915091565b610f1b611148565b6001600160a01b038116610f4557604051631e4fbdf760e01b8152600060048201526024016104ce565b610f4e81611175565b50565b610f5e8383836001611268565b505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610fca9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061133d565b50505050565b6001600160a01b038216610ffa5760405163ec442f0560e01b8152600060048201526024016104ce565b611006600083836113a0565b5050565b6001600160a01b03821661103457604051634b637e8f60e11b8152600060048201526024016104ce565b611006826000836113a0565b6040516001600160a01b03838116602483015260448201839052610f5e91859182169063a9059cbb90606401610f98565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610fca57818110156110da57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016104ce565b610fca84848484036000611268565b6001600160a01b03831661111357604051634b637e8f60e11b8152600060048201526024016104ce565b6001600160a01b03821661113d5760405163ec442f0560e01b8152600060048201526024016104ce565b610f5e8383836113a0565b6005546001600160a01b03163314610d885760405163118cdaa760e01b81523360048201526024016104ce565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600e54600c5460009190428211156105fd57600b54600d548183111561122c576111f181856119cb565b6111fb82426119cb565b61120584866119cb565b61120f919061192c565b6112199190611943565b611223908361199f565b94505050505090565b61123681856119cb565b61124082426119cb565b61124a85856119cb565b611254919061192c565b61125e9190611943565b61122390836119cb565b6001600160a01b0384166112925760405163e602df0560e01b8152600060048201526024016104ce565b6001600160a01b0383166112bc57604051634a1406b160e11b8152600060048201526024016104ce565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610fca57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161132f91815260200190565b60405180910390a350505050565b60006113526001600160a01b038416836114ca565b9050805160001415801561137757508080602001905181019061137591906119de565b155b15610f5e57604051635274afe760e01b81526001600160a01b03841660048201526024016104ce565b6001600160a01b0383166113cb5780600260008282546113c0919061199f565b9091555061143d9050565b6001600160a01b0383166000908152602081905260409020548181101561141e5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016104ce565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661145957600280548290039055611478565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114bd91815260200190565b60405180910390a3505050565b60606106e38383600084600080856001600160a01b031684866040516114f09190611a00565b60006040518083038185875af1925050503d806000811461152d576040519150601f19603f3d011682016040523d82523d6000602084013e611532565b606091505b509150915061154286838361154c565b9695505050505050565b6060826115615761155c826115a8565b6106e3565b815115801561157857506001600160a01b0384163b155b156115a157604051639996b31560e01b81526001600160a01b03851660048201526024016104ce565b50806106e3565b8051156115b85780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60405180604001604052806002906020820280368337509192915050565b80356001600160a01b038116811461160657600080fd5b919050565b6000806040838503121561161e57600080fd5b611627836115ef565b9150611635602084016115ef565b90509250929050565b60005b83811015611659578181015183820152602001611641565b50506000910152565b602081526000825180602084015261168181604085016020870161163e565b601f01601f19169190910160400192915050565b600080604083850312156116a857600080fd5b6116b1836115ef565b946020939093013593505050565b600082601f8301126116d057600080fd5b6040516040810181811067ffffffffffffffff8211171561170157634e487b7160e01b600052604160045260246000fd5b806040525080604084018581111561171857600080fd5b845b8181101561173257803583526020928301920161171a565b509195945050505050565b6000806060838503121561175057600080fd5b61175a84846116bf565b946040939093013593505050565b8035600f81900b811461160657600080fd5b60008060006060848603121561178f57600080fd5b8335925061179f60208501611768565b9150604084013590509250925092565b6000806000606084860312156117c457600080fd5b6117cd846115ef565b925061179f602085016115ef565b600080600080608085870312156117f157600080fd5b6117fa85611768565b935061180860208601611768565b93969395505050506040820135916060013590565b60006020828403121561182f57600080fd5b5035919050565b6000806060838503121561184957600080fd5b8235915061163584602085016116bf565b60408101818360005b6002811015611882578151835260209283019290910190600101611863565b50505092915050565b6000806000606084860312156118a057600080fd5b6118a984611768565b925061179f60208501611768565b6000602082840312156118c957600080fd5b6106e3826115ef565b634e487b7160e01b600052603260045260246000fd5b60208082526014908201527324b73b30b634b2103830b4b932b2103a37b5b2b760611b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105fd576105fd611916565b60008261196057634e487b7160e01b600052601260045260246000fd5b500490565b600181811c9082168061197957607f821691505b60208210810361199957634e487b7160e01b600052602260045260246000fd5b50919050565b808201808211156105fd576105fd611916565b6000600182016119c4576119c4611916565b5060010190565b818103818111156105fd576105fd611916565b6000602082840312156119f057600080fd5b815180151581146106e357600080fd5b60008251611a1281846020870161163e565b919091019291505056fea2646970667358221220e4c304787c4b41edac6d5b9aca2bd41b181399f3576fa3a71d48ac30f7d88a5864736f6c63430008140033";
18
+ static readonly abi: readonly [{
19
+ readonly inputs: readonly [{
20
+ readonly internalType: "address[2]";
21
+ readonly name: "coinAddresses";
22
+ readonly type: "address[2]";
23
+ }, {
24
+ readonly internalType: "uint256[2]";
25
+ readonly name: "rateMultipliers";
26
+ readonly type: "uint256[2]";
27
+ }, {
28
+ readonly internalType: "uint256";
29
+ readonly name: "ampParameter";
30
+ readonly type: "uint256";
31
+ }, {
32
+ readonly internalType: "uint256";
33
+ readonly name: "feeParameter";
34
+ readonly type: "uint256";
35
+ }, {
36
+ readonly internalType: "string";
37
+ readonly name: "name";
38
+ readonly type: "string";
39
+ }, {
40
+ readonly internalType: "string";
41
+ readonly name: "symbol";
42
+ readonly type: "string";
43
+ }];
44
+ readonly stateMutability: "nonpayable";
45
+ readonly type: "constructor";
46
+ }, {
47
+ readonly inputs: readonly [{
48
+ readonly internalType: "address";
49
+ readonly name: "target";
50
+ readonly type: "address";
51
+ }];
52
+ readonly name: "AddressEmptyCode";
53
+ readonly type: "error";
54
+ }, {
55
+ readonly inputs: readonly [{
56
+ readonly internalType: "address";
57
+ readonly name: "account";
58
+ readonly type: "address";
59
+ }];
60
+ readonly name: "AddressInsufficientBalance";
61
+ readonly type: "error";
62
+ }, {
63
+ readonly inputs: readonly [{
64
+ readonly internalType: "address";
65
+ readonly name: "spender";
66
+ readonly type: "address";
67
+ }, {
68
+ readonly internalType: "uint256";
69
+ readonly name: "allowance";
70
+ readonly type: "uint256";
71
+ }, {
72
+ readonly internalType: "uint256";
73
+ readonly name: "needed";
74
+ readonly type: "uint256";
75
+ }];
76
+ readonly name: "ERC20InsufficientAllowance";
77
+ readonly type: "error";
78
+ }, {
79
+ readonly inputs: readonly [{
80
+ readonly internalType: "address";
81
+ readonly name: "sender";
82
+ readonly type: "address";
83
+ }, {
84
+ readonly internalType: "uint256";
85
+ readonly name: "balance";
86
+ readonly type: "uint256";
87
+ }, {
88
+ readonly internalType: "uint256";
89
+ readonly name: "needed";
90
+ readonly type: "uint256";
91
+ }];
92
+ readonly name: "ERC20InsufficientBalance";
93
+ readonly type: "error";
94
+ }, {
95
+ readonly inputs: readonly [{
96
+ readonly internalType: "address";
97
+ readonly name: "approver";
98
+ readonly type: "address";
99
+ }];
100
+ readonly name: "ERC20InvalidApprover";
101
+ readonly type: "error";
102
+ }, {
103
+ readonly inputs: readonly [{
104
+ readonly internalType: "address";
105
+ readonly name: "receiver";
106
+ readonly type: "address";
107
+ }];
108
+ readonly name: "ERC20InvalidReceiver";
109
+ readonly type: "error";
110
+ }, {
111
+ readonly inputs: readonly [{
112
+ readonly internalType: "address";
113
+ readonly name: "sender";
114
+ readonly type: "address";
115
+ }];
116
+ readonly name: "ERC20InvalidSender";
117
+ readonly type: "error";
118
+ }, {
119
+ readonly inputs: readonly [{
120
+ readonly internalType: "address";
121
+ readonly name: "spender";
122
+ readonly type: "address";
123
+ }];
124
+ readonly name: "ERC20InvalidSpender";
125
+ readonly type: "error";
126
+ }, {
127
+ readonly inputs: readonly [];
128
+ readonly name: "FailedInnerCall";
129
+ readonly type: "error";
130
+ }, {
131
+ readonly inputs: readonly [{
132
+ readonly internalType: "address";
133
+ readonly name: "owner";
134
+ readonly type: "address";
135
+ }];
136
+ readonly name: "OwnableInvalidOwner";
137
+ readonly type: "error";
138
+ }, {
139
+ readonly inputs: readonly [{
140
+ readonly internalType: "address";
141
+ readonly name: "account";
142
+ readonly type: "address";
143
+ }];
144
+ readonly name: "OwnableUnauthorizedAccount";
145
+ readonly type: "error";
146
+ }, {
147
+ readonly inputs: readonly [{
148
+ readonly internalType: "address";
149
+ readonly name: "token";
150
+ readonly type: "address";
151
+ }];
152
+ readonly name: "SafeERC20FailedOperation";
153
+ readonly type: "error";
154
+ }, {
155
+ readonly anonymous: false;
156
+ readonly inputs: readonly [{
157
+ readonly indexed: true;
158
+ readonly internalType: "address";
159
+ readonly name: "provider";
160
+ readonly type: "address";
161
+ }, {
162
+ readonly indexed: false;
163
+ readonly internalType: "uint256[2]";
164
+ readonly name: "token_amounts";
165
+ readonly type: "uint256[2]";
166
+ }, {
167
+ readonly indexed: false;
168
+ readonly internalType: "uint256[2]";
169
+ readonly name: "fees";
170
+ readonly type: "uint256[2]";
171
+ }, {
172
+ readonly indexed: false;
173
+ readonly internalType: "uint256";
174
+ readonly name: "invariant";
175
+ readonly type: "uint256";
176
+ }, {
177
+ readonly indexed: false;
178
+ readonly internalType: "uint256";
179
+ readonly name: "token_supply";
180
+ readonly type: "uint256";
181
+ }];
182
+ readonly name: "AddLiquidity";
183
+ readonly type: "event";
184
+ }, {
185
+ readonly anonymous: false;
186
+ readonly inputs: readonly [{
187
+ readonly indexed: true;
188
+ readonly internalType: "address";
189
+ readonly name: "owner";
190
+ readonly type: "address";
191
+ }, {
192
+ readonly indexed: true;
193
+ readonly internalType: "address";
194
+ readonly name: "spender";
195
+ readonly type: "address";
196
+ }, {
197
+ readonly indexed: false;
198
+ readonly internalType: "uint256";
199
+ readonly name: "value";
200
+ readonly type: "uint256";
201
+ }];
202
+ readonly name: "Approval";
203
+ readonly type: "event";
204
+ }, {
205
+ readonly anonymous: false;
206
+ readonly inputs: readonly [{
207
+ readonly indexed: true;
208
+ readonly internalType: "address";
209
+ readonly name: "previousOwner";
210
+ readonly type: "address";
211
+ }, {
212
+ readonly indexed: true;
213
+ readonly internalType: "address";
214
+ readonly name: "newOwner";
215
+ readonly type: "address";
216
+ }];
217
+ readonly name: "OwnershipTransferred";
218
+ readonly type: "event";
219
+ }, {
220
+ readonly anonymous: false;
221
+ readonly inputs: readonly [{
222
+ readonly indexed: true;
223
+ readonly internalType: "address";
224
+ readonly name: "provider";
225
+ readonly type: "address";
226
+ }, {
227
+ readonly indexed: false;
228
+ readonly internalType: "uint256[2]";
229
+ readonly name: "token_amounts";
230
+ readonly type: "uint256[2]";
231
+ }, {
232
+ readonly indexed: false;
233
+ readonly internalType: "uint256[2]";
234
+ readonly name: "fees";
235
+ readonly type: "uint256[2]";
236
+ }, {
237
+ readonly indexed: false;
238
+ readonly internalType: "uint256";
239
+ readonly name: "token_supply";
240
+ readonly type: "uint256";
241
+ }];
242
+ readonly name: "RemoveLiquidity";
243
+ readonly type: "event";
244
+ }, {
245
+ readonly anonymous: false;
246
+ readonly inputs: readonly [{
247
+ readonly indexed: true;
248
+ readonly internalType: "address";
249
+ readonly name: "provider";
250
+ readonly type: "address";
251
+ }, {
252
+ readonly indexed: false;
253
+ readonly internalType: "uint256";
254
+ readonly name: "token_amount";
255
+ readonly type: "uint256";
256
+ }, {
257
+ readonly indexed: false;
258
+ readonly internalType: "uint256";
259
+ readonly name: "coin_amount";
260
+ readonly type: "uint256";
261
+ }, {
262
+ readonly indexed: false;
263
+ readonly internalType: "uint256";
264
+ readonly name: "token_supply";
265
+ readonly type: "uint256";
266
+ }];
267
+ readonly name: "RemoveLiquidityOne";
268
+ readonly type: "event";
269
+ }, {
270
+ readonly anonymous: false;
271
+ readonly inputs: readonly [{
272
+ readonly indexed: true;
273
+ readonly internalType: "address";
274
+ readonly name: "buyer";
275
+ readonly type: "address";
276
+ }, {
277
+ readonly indexed: false;
278
+ readonly internalType: "int128";
279
+ readonly name: "sold_id";
280
+ readonly type: "int128";
281
+ }, {
282
+ readonly indexed: false;
283
+ readonly internalType: "uint256";
284
+ readonly name: "tokens_sold";
285
+ readonly type: "uint256";
286
+ }, {
287
+ readonly indexed: false;
288
+ readonly internalType: "int128";
289
+ readonly name: "bought_id";
290
+ readonly type: "int128";
291
+ }, {
292
+ readonly indexed: false;
293
+ readonly internalType: "uint256";
294
+ readonly name: "tokens_bought";
295
+ readonly type: "uint256";
296
+ }];
297
+ readonly name: "TokenExchange";
298
+ readonly type: "event";
299
+ }, {
300
+ readonly anonymous: false;
301
+ readonly inputs: readonly [{
302
+ readonly indexed: true;
303
+ readonly internalType: "address";
304
+ readonly name: "from";
305
+ readonly type: "address";
306
+ }, {
307
+ readonly indexed: true;
308
+ readonly internalType: "address";
309
+ readonly name: "to";
310
+ readonly type: "address";
311
+ }, {
312
+ readonly indexed: false;
313
+ readonly internalType: "uint256";
314
+ readonly name: "value";
315
+ readonly type: "uint256";
316
+ }];
317
+ readonly name: "Transfer";
318
+ readonly type: "event";
319
+ }, {
320
+ readonly inputs: readonly [];
321
+ readonly name: "A";
322
+ readonly outputs: readonly [{
323
+ readonly internalType: "uint256";
324
+ readonly name: "";
325
+ readonly type: "uint256";
326
+ }];
327
+ readonly stateMutability: "pure";
328
+ readonly type: "function";
329
+ }, {
330
+ readonly inputs: readonly [];
331
+ readonly name: "ADMIN_FEE";
332
+ readonly outputs: readonly [{
333
+ readonly internalType: "uint256";
334
+ readonly name: "";
335
+ readonly type: "uint256";
336
+ }];
337
+ readonly stateMutability: "view";
338
+ readonly type: "function";
339
+ }, {
340
+ readonly inputs: readonly [];
341
+ readonly name: "A_PRECISION";
342
+ readonly outputs: readonly [{
343
+ readonly internalType: "uint256";
344
+ readonly name: "";
345
+ readonly type: "uint256";
346
+ }];
347
+ readonly stateMutability: "view";
348
+ readonly type: "function";
349
+ }, {
350
+ readonly inputs: readonly [];
351
+ readonly name: "A_precise";
352
+ readonly outputs: readonly [{
353
+ readonly internalType: "uint256";
354
+ readonly name: "";
355
+ readonly type: "uint256";
356
+ }];
357
+ readonly stateMutability: "view";
358
+ readonly type: "function";
359
+ }, {
360
+ readonly inputs: readonly [];
361
+ readonly name: "FEE_DENOMINATOR";
362
+ readonly outputs: readonly [{
363
+ readonly internalType: "uint256";
364
+ readonly name: "";
365
+ readonly type: "uint256";
366
+ }];
367
+ readonly stateMutability: "view";
368
+ readonly type: "function";
369
+ }, {
370
+ readonly inputs: readonly [];
371
+ readonly name: "MAX_A";
372
+ readonly outputs: readonly [{
373
+ readonly internalType: "uint256";
374
+ readonly name: "";
375
+ readonly type: "uint256";
376
+ }];
377
+ readonly stateMutability: "view";
378
+ readonly type: "function";
379
+ }, {
380
+ readonly inputs: readonly [];
381
+ readonly name: "MAX_ADMIN_FEE";
382
+ readonly outputs: readonly [{
383
+ readonly internalType: "uint256";
384
+ readonly name: "";
385
+ readonly type: "uint256";
386
+ }];
387
+ readonly stateMutability: "view";
388
+ readonly type: "function";
389
+ }, {
390
+ readonly inputs: readonly [];
391
+ readonly name: "MAX_FEE";
392
+ readonly outputs: readonly [{
393
+ readonly internalType: "uint256";
394
+ readonly name: "";
395
+ readonly type: "uint256";
396
+ }];
397
+ readonly stateMutability: "view";
398
+ readonly type: "function";
399
+ }, {
400
+ readonly inputs: readonly [];
401
+ readonly name: "N_COINS";
402
+ readonly outputs: readonly [{
403
+ readonly internalType: "uint256";
404
+ readonly name: "";
405
+ readonly type: "uint256";
406
+ }];
407
+ readonly stateMutability: "view";
408
+ readonly type: "function";
409
+ }, {
410
+ readonly inputs: readonly [];
411
+ readonly name: "PRECISION";
412
+ readonly outputs: readonly [{
413
+ readonly internalType: "uint256";
414
+ readonly name: "";
415
+ readonly type: "uint256";
416
+ }];
417
+ readonly stateMutability: "view";
418
+ readonly type: "function";
419
+ }, {
420
+ readonly inputs: readonly [{
421
+ readonly internalType: "uint256[2]";
422
+ readonly name: "amounts";
423
+ readonly type: "uint256[2]";
424
+ }, {
425
+ readonly internalType: "uint256";
426
+ readonly name: "";
427
+ readonly type: "uint256";
428
+ }];
429
+ readonly name: "add_liquidity";
430
+ readonly outputs: readonly [{
431
+ readonly internalType: "uint256";
432
+ readonly name: "";
433
+ readonly type: "uint256";
434
+ }];
435
+ readonly stateMutability: "nonpayable";
436
+ readonly type: "function";
437
+ }, {
438
+ readonly inputs: readonly [{
439
+ readonly internalType: "address";
440
+ readonly name: "owner";
441
+ readonly type: "address";
442
+ }, {
443
+ readonly internalType: "address";
444
+ readonly name: "spender";
445
+ readonly type: "address";
446
+ }];
447
+ readonly name: "allowance";
448
+ readonly outputs: readonly [{
449
+ readonly internalType: "uint256";
450
+ readonly name: "";
451
+ readonly type: "uint256";
452
+ }];
453
+ readonly stateMutability: "view";
454
+ readonly type: "function";
455
+ }, {
456
+ readonly inputs: readonly [{
457
+ readonly internalType: "address";
458
+ readonly name: "spender";
459
+ readonly type: "address";
460
+ }, {
461
+ readonly internalType: "uint256";
462
+ readonly name: "value";
463
+ readonly type: "uint256";
464
+ }];
465
+ readonly name: "approve";
466
+ readonly outputs: readonly [{
467
+ readonly internalType: "bool";
468
+ readonly name: "";
469
+ readonly type: "bool";
470
+ }];
471
+ readonly stateMutability: "nonpayable";
472
+ readonly type: "function";
473
+ }, {
474
+ readonly inputs: readonly [{
475
+ readonly internalType: "address";
476
+ readonly name: "account";
477
+ readonly type: "address";
478
+ }];
479
+ readonly name: "balanceOf";
480
+ readonly outputs: readonly [{
481
+ readonly internalType: "uint256";
482
+ readonly name: "";
483
+ readonly type: "uint256";
484
+ }];
485
+ readonly stateMutability: "view";
486
+ readonly type: "function";
487
+ }, {
488
+ readonly inputs: readonly [{
489
+ readonly internalType: "uint256";
490
+ readonly name: "i";
491
+ readonly type: "uint256";
492
+ }];
493
+ readonly name: "balances";
494
+ readonly outputs: readonly [{
495
+ readonly internalType: "uint256";
496
+ readonly name: "";
497
+ readonly type: "uint256";
498
+ }];
499
+ readonly stateMutability: "view";
500
+ readonly type: "function";
501
+ }, {
502
+ readonly inputs: readonly [{
503
+ readonly internalType: "uint256";
504
+ readonly name: "i";
505
+ readonly type: "uint256";
506
+ }];
507
+ readonly name: "coins";
508
+ readonly outputs: readonly [{
509
+ readonly internalType: "address";
510
+ readonly name: "";
511
+ readonly type: "address";
512
+ }];
513
+ readonly stateMutability: "view";
514
+ readonly type: "function";
515
+ }, {
516
+ readonly inputs: readonly [];
517
+ readonly name: "decimals";
518
+ readonly outputs: readonly [{
519
+ readonly internalType: "uint8";
520
+ readonly name: "";
521
+ readonly type: "uint8";
522
+ }];
523
+ readonly stateMutability: "view";
524
+ readonly type: "function";
525
+ }, {
526
+ readonly inputs: readonly [{
527
+ readonly internalType: "int128";
528
+ readonly name: "i";
529
+ readonly type: "int128";
530
+ }, {
531
+ readonly internalType: "int128";
532
+ readonly name: "j";
533
+ readonly type: "int128";
534
+ }, {
535
+ readonly internalType: "uint256";
536
+ readonly name: "dx";
537
+ readonly type: "uint256";
538
+ }, {
539
+ readonly internalType: "uint256";
540
+ readonly name: "min_dy";
541
+ readonly type: "uint256";
542
+ }];
543
+ readonly name: "exchange";
544
+ readonly outputs: readonly [{
545
+ readonly internalType: "uint256";
546
+ readonly name: "";
547
+ readonly type: "uint256";
548
+ }];
549
+ readonly stateMutability: "nonpayable";
550
+ readonly type: "function";
551
+ }, {
552
+ readonly inputs: readonly [];
553
+ readonly name: "fee";
554
+ readonly outputs: readonly [{
555
+ readonly internalType: "uint256";
556
+ readonly name: "";
557
+ readonly type: "uint256";
558
+ }];
559
+ readonly stateMutability: "view";
560
+ readonly type: "function";
561
+ }, {
562
+ readonly inputs: readonly [{
563
+ readonly internalType: "address";
564
+ readonly name: "_pairedToken";
565
+ readonly type: "address";
566
+ }];
567
+ readonly name: "getExchangeRate";
568
+ readonly outputs: readonly [{
569
+ readonly internalType: "uint256";
570
+ readonly name: "raacPerPaired";
571
+ readonly type: "uint256";
572
+ }, {
573
+ readonly internalType: "uint256";
574
+ readonly name: "pairedPerRaac";
575
+ readonly type: "uint256";
576
+ }];
577
+ readonly stateMutability: "view";
578
+ readonly type: "function";
579
+ }, {
580
+ readonly inputs: readonly [{
581
+ readonly internalType: "address";
582
+ readonly name: "_pairedToken";
583
+ readonly type: "address";
584
+ }];
585
+ readonly name: "getTotalLiquidity";
586
+ readonly outputs: readonly [{
587
+ readonly internalType: "uint256";
588
+ readonly name: "raacLiquidity";
589
+ readonly type: "uint256";
590
+ }, {
591
+ readonly internalType: "uint256";
592
+ readonly name: "pairedLiquidity";
593
+ readonly type: "uint256";
594
+ }];
595
+ readonly stateMutability: "view";
596
+ readonly type: "function";
597
+ }, {
598
+ readonly inputs: readonly [];
599
+ readonly name: "getTotalValueLocked";
600
+ readonly outputs: readonly [{
601
+ readonly internalType: "uint256";
602
+ readonly name: "";
603
+ readonly type: "uint256";
604
+ }];
605
+ readonly stateMutability: "view";
606
+ readonly type: "function";
607
+ }, {
608
+ readonly inputs: readonly [{
609
+ readonly internalType: "address";
610
+ readonly name: "_pairedToken";
611
+ readonly type: "address";
612
+ }, {
613
+ readonly internalType: "address";
614
+ readonly name: "_user";
615
+ readonly type: "address";
616
+ }];
617
+ readonly name: "getUserLiquidity";
618
+ readonly outputs: readonly [{
619
+ readonly internalType: "uint256";
620
+ readonly name: "raacLiquidity";
621
+ readonly type: "uint256";
622
+ }, {
623
+ readonly internalType: "uint256";
624
+ readonly name: "pairedLiquidity";
625
+ readonly type: "uint256";
626
+ }, {
627
+ readonly internalType: "uint256";
628
+ readonly name: "lpAmount";
629
+ readonly type: "uint256";
630
+ }];
631
+ readonly stateMutability: "view";
632
+ readonly type: "function";
633
+ }, {
634
+ readonly inputs: readonly [{
635
+ readonly internalType: "int128";
636
+ readonly name: "i";
637
+ readonly type: "int128";
638
+ }, {
639
+ readonly internalType: "int128";
640
+ readonly name: "j";
641
+ readonly type: "int128";
642
+ }, {
643
+ readonly internalType: "uint256";
644
+ readonly name: "dx";
645
+ readonly type: "uint256";
646
+ }];
647
+ readonly name: "get_dy";
648
+ readonly outputs: readonly [{
649
+ readonly internalType: "uint256";
650
+ readonly name: "";
651
+ readonly type: "uint256";
652
+ }];
653
+ readonly stateMutability: "view";
654
+ readonly type: "function";
655
+ }, {
656
+ readonly inputs: readonly [];
657
+ readonly name: "name";
658
+ readonly outputs: readonly [{
659
+ readonly internalType: "string";
660
+ readonly name: "";
661
+ readonly type: "string";
662
+ }];
663
+ readonly stateMutability: "view";
664
+ readonly type: "function";
665
+ }, {
666
+ readonly inputs: readonly [];
667
+ readonly name: "owner";
668
+ readonly outputs: readonly [{
669
+ readonly internalType: "address";
670
+ readonly name: "";
671
+ readonly type: "address";
672
+ }];
673
+ readonly stateMutability: "view";
674
+ readonly type: "function";
675
+ }, {
676
+ readonly inputs: readonly [{
677
+ readonly internalType: "uint256";
678
+ readonly name: "_amount";
679
+ readonly type: "uint256";
680
+ }, {
681
+ readonly internalType: "uint256[2]";
682
+ readonly name: "min_amounts";
683
+ readonly type: "uint256[2]";
684
+ }];
685
+ readonly name: "remove_liquidity";
686
+ readonly outputs: readonly [{
687
+ readonly internalType: "uint256[2]";
688
+ readonly name: "";
689
+ readonly type: "uint256[2]";
690
+ }];
691
+ readonly stateMutability: "nonpayable";
692
+ readonly type: "function";
693
+ }, {
694
+ readonly inputs: readonly [{
695
+ readonly internalType: "uint256";
696
+ readonly name: "_token_amount";
697
+ readonly type: "uint256";
698
+ }, {
699
+ readonly internalType: "int128";
700
+ readonly name: "i";
701
+ readonly type: "int128";
702
+ }, {
703
+ readonly internalType: "uint256";
704
+ readonly name: "min_amount";
705
+ readonly type: "uint256";
706
+ }];
707
+ readonly name: "remove_liquidity_one_coin";
708
+ readonly outputs: readonly [{
709
+ readonly internalType: "uint256";
710
+ readonly name: "";
711
+ readonly type: "uint256";
712
+ }];
713
+ readonly stateMutability: "nonpayable";
714
+ readonly type: "function";
715
+ }, {
716
+ readonly inputs: readonly [];
717
+ readonly name: "renounceOwnership";
718
+ readonly outputs: readonly [];
719
+ readonly stateMutability: "nonpayable";
720
+ readonly type: "function";
721
+ }, {
722
+ readonly inputs: readonly [];
723
+ readonly name: "symbol";
724
+ readonly outputs: readonly [{
725
+ readonly internalType: "string";
726
+ readonly name: "";
727
+ readonly type: "string";
728
+ }];
729
+ readonly stateMutability: "view";
730
+ readonly type: "function";
731
+ }, {
732
+ readonly inputs: readonly [];
733
+ readonly name: "totalSupply";
734
+ readonly outputs: readonly [{
735
+ readonly internalType: "uint256";
736
+ readonly name: "";
737
+ readonly type: "uint256";
738
+ }];
739
+ readonly stateMutability: "view";
740
+ readonly type: "function";
741
+ }, {
742
+ readonly inputs: readonly [{
743
+ readonly internalType: "address";
744
+ readonly name: "to";
745
+ readonly type: "address";
746
+ }, {
747
+ readonly internalType: "uint256";
748
+ readonly name: "value";
749
+ readonly type: "uint256";
750
+ }];
751
+ readonly name: "transfer";
752
+ readonly outputs: readonly [{
753
+ readonly internalType: "bool";
754
+ readonly name: "";
755
+ readonly type: "bool";
756
+ }];
757
+ readonly stateMutability: "nonpayable";
758
+ readonly type: "function";
759
+ }, {
760
+ readonly inputs: readonly [{
761
+ readonly internalType: "address";
762
+ readonly name: "from";
763
+ readonly type: "address";
764
+ }, {
765
+ readonly internalType: "address";
766
+ readonly name: "to";
767
+ readonly type: "address";
768
+ }, {
769
+ readonly internalType: "uint256";
770
+ readonly name: "value";
771
+ readonly type: "uint256";
772
+ }];
773
+ readonly name: "transferFrom";
774
+ readonly outputs: readonly [{
775
+ readonly internalType: "bool";
776
+ readonly name: "";
777
+ readonly type: "bool";
778
+ }];
779
+ readonly stateMutability: "nonpayable";
780
+ readonly type: "function";
781
+ }, {
782
+ readonly inputs: readonly [{
783
+ readonly internalType: "address";
784
+ readonly name: "newOwner";
785
+ readonly type: "address";
786
+ }];
787
+ readonly name: "transferOwnership";
788
+ readonly outputs: readonly [];
789
+ readonly stateMutability: "nonpayable";
790
+ readonly type: "function";
791
+ }];
792
+ static createInterface(): MockLiquidityPoolInterface;
793
+ static connect(address: string, runner?: ContractRunner | null): MockLiquidityPool;
794
+ }
795
+ export {};