@raac/rpc 1.0.0 → 1.0.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 (699) hide show
  1. package/dist/RPCLibrary.js +269 -0
  2. package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +1335 -0
  3. package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +1724 -0
  4. package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +1192 -0
  5. package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +215 -0
  6. package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +858 -0
  7. package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +814 -0
  8. package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +893 -0
  9. package/dist/artifacts/core/tokens/RToken.sol/RToken.json +1205 -0
  10. package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +1616 -0
  11. package/dist/artifacts/mocks/core/tokens/crvUSDToken.sol/crvUSDToken.json +479 -0
  12. package/dist/artifacts/zeno/Auction.sol/Auction.json +473 -0
  13. package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +307 -0
  14. package/dist/artifacts/zeno/Zeno.sol/Zeno.json +620 -0
  15. package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +275 -0
  16. package/dist/assets/getAsset.js +23 -0
  17. package/dist/assets/getAssets.js +26 -0
  18. package/dist/assets/getSupply.js +18 -0
  19. package/dist/configs/chains/8453.json +115 -0
  20. package/dist/configs/chains/index.js +13 -0
  21. package/dist/configs/createConfig.js +89 -0
  22. package/dist/configs/index.js +43 -0
  23. package/dist/contracts/crvUSDToken/getBalance.js +17 -0
  24. package/dist/contracts/crvUSDToken/getTotalSupply.js +31 -0
  25. package/dist/contracts/getContract.js +18 -0
  26. package/dist/contracts/getContractAddress.js +50 -0
  27. package/dist/contracts/housePrices/getLatestPrice.js +21 -0
  28. package/dist/contracts/housePrices/setOracle.js +24 -0
  29. package/dist/contracts/rcrvUSDToken/getBalance.js +14 -0
  30. package/dist/contracts/rcrvUSDToken/getTotalSupply.js +30 -0
  31. package/dist/contracts/zeno/createAuction.js +25 -0
  32. package/dist/contracts/zeno/createZeno.js +26 -0
  33. package/dist/contracts/zeno/getAuctions.js +28 -0
  34. package/dist/contracts/zeno/getZenos.js +28 -0
  35. package/dist/index.js +7 -0
  36. package/dist/methods/approveToken.js +35 -0
  37. package/dist/methods/commons/checkAllowance.js +19 -0
  38. package/dist/methods/commons/estimateGasPrice.js +23 -0
  39. package/dist/methods/getAssetBalance.js +33 -0
  40. package/dist/methods/getAssetsBalance.js +4 -0
  41. package/dist/minter/get.js +121 -0
  42. package/dist/minter/getApy.js +28 -0
  43. package/dist/minter/tick.js +33 -0
  44. package/dist/nfts/addNewBatch.js +24 -0
  45. package/dist/nfts/getCurrentBatchSize.js +19 -0
  46. package/dist/nfts/getDepositedNFTs.js +19 -0
  47. package/dist/nfts/getHousePrice.js +19 -0
  48. package/dist/nfts/getOwnedNFTs.js +34 -0
  49. package/dist/nfts/mint.js +24 -0
  50. package/dist/nfts/setBaseUri.js +24 -0
  51. package/dist/pools/lendingPool/borrowFromLendingPool.js +23 -0
  52. package/dist/pools/lendingPool/depositNFTToLendingPool.js +51 -0
  53. package/dist/pools/lendingPool/depositToLendingPool.js +35 -0
  54. package/dist/pools/lendingPool/getHousePrice.js +26 -0
  55. package/dist/pools/lendingPool/getLendingPoolInfo.js +106 -0
  56. package/dist/pools/lendingPool/getLendingPoolTotalLiquidity.js +22 -0
  57. package/dist/pools/lendingPool/repayToLendingPool.js +28 -0
  58. package/dist/pools/lendingPool/withdrawFromLendingPool.js +42 -0
  59. package/dist/pools/lendingPool/withdrawNFTFromLendingPool.js +24 -0
  60. package/dist/pools/liquidityPool/getLiquidityPoolInfo.js +73 -0
  61. package/dist/pools/stabilityPool/calculateRAACRewards.js +21 -0
  62. package/dist/pools/stabilityPool/depositToStabilityPool.js +34 -0
  63. package/dist/pools/stabilityPool/getStabilityPoolInfo.js +90 -0
  64. package/dist/pools/stabilityPool/getStabilityPoolTotalDeposits.js +19 -0
  65. package/dist/pools/stabilityPool/withdrawFromStabilityPool.js +34 -0
  66. package/dist/scripts/index.js +83 -0
  67. package/dist/tests/test.js +32 -0
  68. package/dist/types/RPCLibrary.d.ts +139 -0
  69. package/dist/types/assets/getAsset.d.ts +5 -0
  70. package/dist/types/assets/getAssets.d.ts +4 -0
  71. package/dist/types/assets/getSupply.d.ts +5 -0
  72. package/dist/types/configs/chains/index.d.ts +11 -0
  73. package/dist/types/configs/createConfig.d.ts +86 -0
  74. package/dist/types/configs/index.d.ts +13 -0
  75. package/dist/types/contracts/crvUSDToken/getBalance.d.ts +2 -0
  76. package/dist/types/contracts/crvUSDToken/getTotalSupply.d.ts +10 -0
  77. package/dist/types/contracts/getContract.d.ts +4 -0
  78. package/dist/types/contracts/getContractAddress.d.ts +10 -0
  79. package/dist/types/contracts/housePrices/getLatestPrice.d.ts +10 -0
  80. package/dist/types/contracts/housePrices/setOracle.d.ts +4 -0
  81. package/dist/types/contracts/rcrvUSDToken/getBalance.d.ts +2 -0
  82. package/dist/types/contracts/rcrvUSDToken/getTotalSupply.d.ts +10 -0
  83. package/dist/types/contracts/zeno/createAuction.d.ts +4 -0
  84. package/dist/types/contracts/zeno/createZeno.d.ts +4 -0
  85. package/dist/types/contracts/zeno/getAuctions.d.ts +4 -0
  86. package/dist/types/contracts/zeno/getZenos.d.ts +4 -0
  87. package/{index.ts → dist/types/index.d.ts} +0 -1
  88. package/dist/types/methods/approveToken.d.ts +5 -0
  89. package/dist/types/methods/commons/checkAllowance.d.ts +6 -0
  90. package/dist/types/methods/commons/estimateGasPrice.d.ts +11 -0
  91. package/dist/types/methods/getAssetBalance.d.ts +6 -0
  92. package/dist/types/methods/getAssetsBalance.d.ts +3 -0
  93. package/dist/types/minter/get.d.ts +17 -0
  94. package/dist/types/minter/getApy.d.ts +4 -0
  95. package/dist/types/minter/tick.d.ts +4 -0
  96. package/dist/types/nfts/addNewBatch.d.ts +4 -0
  97. package/dist/types/nfts/getCurrentBatchSize.d.ts +4 -0
  98. package/dist/types/nfts/getDepositedNFTs.d.ts +7 -0
  99. package/dist/types/nfts/getHousePrice.d.ts +4 -0
  100. package/dist/types/nfts/getOwnedNFTs.d.ts +7 -0
  101. package/dist/types/nfts/mint.d.ts +4 -0
  102. package/dist/types/nfts/setBaseUri.d.ts +4 -0
  103. package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +4 -0
  104. package/dist/types/pools/lendingPool/depositNFTToLendingPool.d.ts +4 -0
  105. package/dist/types/pools/lendingPool/depositToLendingPool.d.ts +4 -0
  106. package/dist/types/pools/lendingPool/getHousePrice.d.ts +4 -0
  107. package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +23 -0
  108. package/dist/types/pools/lendingPool/getLendingPoolTotalLiquidity.d.ts +4 -0
  109. package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +4 -0
  110. package/dist/types/pools/lendingPool/withdrawFromLendingPool.d.ts +4 -0
  111. package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +4 -0
  112. package/dist/types/pools/liquidityPool/getLiquidityPoolInfo.d.ts +7 -0
  113. package/dist/types/pools/stabilityPool/calculateRAACRewards.d.ts +4 -0
  114. package/dist/types/pools/stabilityPool/depositToStabilityPool.d.ts +4 -0
  115. package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +12 -0
  116. package/dist/types/pools/stabilityPool/getStabilityPoolTotalDeposits.d.ts +4 -0
  117. package/dist/types/pools/stabilityPool/withdrawFromStabilityPool.d.ts +4 -0
  118. package/dist/types/scripts/index.d.ts +1 -0
  119. package/dist/types/tests/test.d.ts +1 -0
  120. package/dist/types/typechain-types/@chainlink/contracts/index.d.ts +2 -0
  121. package/dist/types/typechain-types/@chainlink/contracts/src/index.d.ts +2 -0
  122. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/index.d.ts +2 -0
  123. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/FunctionsClient.d.ts +67 -0
  124. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/index.d.ts +5 -0
  125. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsClient.d.ts +37 -0
  126. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsRouter.d.ts +205 -0
  127. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/index.d.ts +2 -0
  128. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/FunctionsRequest.d.ts +25 -0
  129. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/index.d.ts +1 -0
  130. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +4 -0
  131. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner.d.ts +69 -0
  132. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwnerWithProposal.d.ts +69 -0
  133. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/index.d.ts +2 -0
  134. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.d.ts +4 -0
  135. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/IOwnable.d.ts +37 -0
  136. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
  137. package/dist/types/typechain-types/@chainlink/index.d.ts +2 -0
  138. package/dist/types/typechain-types/@openzeppelin/contracts/access/AccessControl.d.ts +159 -0
  139. package/dist/types/typechain-types/@openzeppelin/contracts/access/IAccessControl.d.ts +147 -0
  140. package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts +54 -0
  141. package/dist/types/typechain-types/@openzeppelin/contracts/access/index.d.ts +3 -0
  142. package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +8 -0
  143. package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC5267.d.ts +78 -0
  144. package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.d.ts +20 -0
  145. package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.d.ts +20 -0
  146. package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.d.ts +20 -0
  147. package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.d.ts +3 -0
  148. package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +3 -0
  149. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.d.ts +141 -0
  150. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +129 -0
  151. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.d.ts +236 -0
  152. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +141 -0
  153. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.d.ts +61 -0
  154. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +3 -0
  155. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts +6 -0
  156. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.d.ts +20 -0
  157. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.d.ts +1 -0
  158. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.d.ts +211 -0
  159. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +199 -0
  160. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721Receiver.d.ts +39 -0
  161. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.d.ts +233 -0
  162. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.d.ts +221 -0
  163. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.d.ts +211 -0
  164. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.d.ts +3 -0
  165. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/index.d.ts +7 -0
  166. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.d.ts +39 -0
  167. package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/utils/index.d.ts +1 -0
  168. package/dist/types/typechain-types/@openzeppelin/contracts/token/index.d.ts +4 -0
  169. package/dist/types/typechain-types/@openzeppelin/contracts/utils/Address.d.ts +20 -0
  170. package/dist/types/typechain-types/@openzeppelin/contracts/utils/Nonces.d.ts +25 -0
  171. package/dist/types/typechain-types/@openzeppelin/contracts/utils/Pausable.d.ts +55 -0
  172. package/dist/types/typechain-types/@openzeppelin/contracts/utils/ReentrancyGuard.d.ts +20 -0
  173. package/dist/types/typechain-types/@openzeppelin/contracts/utils/ShortStrings.d.ts +20 -0
  174. package/dist/types/typechain-types/@openzeppelin/contracts/utils/Strings.d.ts +20 -0
  175. package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.d.ts +20 -0
  176. package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/EIP712.d.ts +78 -0
  177. package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/index.d.ts +2 -0
  178. package/dist/types/typechain-types/@openzeppelin/contracts/utils/index.d.ts +12 -0
  179. package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.d.ts +29 -0
  180. package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.d.ts +29 -0
  181. package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/index.d.ts +2 -0
  182. package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/Math.d.ts +20 -0
  183. package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.d.ts +20 -0
  184. package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/index.d.ts +2 -0
  185. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts +68 -0
  186. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/index.d.ts +1 -0
  187. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/index.d.ts +6 -0
  188. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +2 -0
  189. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts +36 -0
  190. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +1 -0
  191. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts +36 -0
  192. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.d.ts +69 -0
  193. package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.d.ts +2 -0
  194. package/dist/types/typechain-types/@openzeppelin/index.d.ts +4 -0
  195. package/dist/types/typechain-types/common.d.ts +50 -0
  196. package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +708 -0
  197. package/dist/types/typechain-types/contracts/core/collectors/Treasury.d.ts +283 -0
  198. package/dist/types/typechain-types/contracts/core/collectors/index.d.ts +2 -0
  199. package/dist/types/typechain-types/contracts/core/governance/boost/BoostController.d.ts +573 -0
  200. package/dist/types/typechain-types/contracts/core/governance/boost/index.d.ts +1 -0
  201. package/dist/types/typechain-types/contracts/core/governance/gauges/BaseGauge.d.ts +779 -0
  202. package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeController.d.ts +815 -0
  203. package/dist/types/typechain-types/contracts/core/governance/gauges/RAACGauge.d.ts +803 -0
  204. package/dist/types/typechain-types/contracts/core/governance/gauges/RWAGauge.d.ts +807 -0
  205. package/dist/types/typechain-types/contracts/core/governance/gauges/index.d.ts +4 -0
  206. package/dist/types/typechain-types/contracts/core/governance/index.d.ts +6 -0
  207. package/dist/types/typechain-types/contracts/core/governance/proposals/Governance.d.ts +612 -0
  208. package/dist/types/typechain-types/contracts/core/governance/proposals/TimelockController.d.ts +447 -0
  209. package/dist/types/typechain-types/contracts/core/governance/proposals/index.d.ts +2 -0
  210. package/dist/types/typechain-types/contracts/core/index.d.ts +14 -0
  211. package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +703 -0
  212. package/dist/types/typechain-types/contracts/core/minters/RAACMinter/index.d.ts +1 -0
  213. package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +503 -0
  214. package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/index.d.ts +1 -0
  215. package/dist/types/typechain-types/contracts/core/minters/index.d.ts +4 -0
  216. package/dist/types/typechain-types/contracts/core/oracles/BaseChainlinkFunctionsOracle.d.ts +165 -0
  217. package/dist/types/typechain-types/contracts/core/oracles/RAACHousePriceOracle.d.ts +188 -0
  218. package/dist/types/typechain-types/contracts/core/oracles/RAACPrimeRateOracle.d.ts +195 -0
  219. package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +3 -0
  220. package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +935 -0
  221. package/dist/types/typechain-types/contracts/core/pools/LendingPool/index.d.ts +1 -0
  222. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/MarketCreator.d.ts +274 -0
  223. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/NFTLiquidator.d.ts +283 -0
  224. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +572 -0
  225. package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +3 -0
  226. package/dist/types/typechain-types/contracts/core/pools/index.d.ts +4 -0
  227. package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +111 -0
  228. package/dist/types/typechain-types/contracts/core/primitives/index.d.ts +1 -0
  229. package/dist/types/typechain-types/contracts/core/tokens/DEToken.d.ts +384 -0
  230. package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +415 -0
  231. package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +155 -0
  232. package/dist/types/typechain-types/contracts/core/tokens/LPToken.d.ts +224 -0
  233. package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +334 -0
  234. package/dist/types/typechain-types/contracts/core/tokens/RAACToken.d.ts +401 -0
  235. package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +567 -0
  236. package/dist/types/typechain-types/contracts/core/tokens/VeRAACToken.d.ts +816 -0
  237. package/dist/types/typechain-types/contracts/core/tokens/index.d.ts +8 -0
  238. package/dist/types/typechain-types/contracts/index.d.ts +10 -0
  239. package/dist/types/typechain-types/contracts/interfaces/IERC20.d.ts +129 -0
  240. package/dist/types/typechain-types/contracts/interfaces/IHousePrices.d.ts +29 -0
  241. package/dist/types/typechain-types/contracts/interfaces/IMarketCreator.d.ts +85 -0
  242. package/dist/types/typechain-types/contracts/interfaces/INFTLiquidator.d.ts +73 -0
  243. package/dist/types/typechain-types/contracts/interfaces/IPoolManager.d.ts +37 -0
  244. package/dist/types/typechain-types/contracts/interfaces/IReserveAllocationLibraryMock.d.ts +164 -0
  245. package/dist/types/typechain-types/contracts/interfaces/IUSDC.d.ts +129 -0
  246. package/dist/types/typechain-types/contracts/interfaces/IveRAACDistributor.d.ts +59 -0
  247. package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +300 -0
  248. package/dist/types/typechain-types/contracts/interfaces/core/collectors/ITreasury.d.ts +139 -0
  249. package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +2 -0
  250. package/dist/types/typechain-types/contracts/interfaces/core/governance/IBoostController.d.ts +269 -0
  251. package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGauge.d.ts +235 -0
  252. package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeController.d.ts +341 -0
  253. package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/index.d.ts +2 -0
  254. package/dist/types/typechain-types/contracts/interfaces/core/governance/index.d.ts +5 -0
  255. package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/IGovernance.d.ts +577 -0
  256. package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/ITimelockController.d.ts +279 -0
  257. package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/index.d.ts +2 -0
  258. package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +12 -0
  259. package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +316 -0
  260. package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/index.d.ts +1 -0
  261. package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +235 -0
  262. package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/index.d.ts +1 -0
  263. package/dist/types/typechain-types/contracts/interfaces/core/minters/index.d.ts +4 -0
  264. package/dist/types/typechain-types/contracts/interfaces/core/oracles/IRAACHousePrices.d.ts +110 -0
  265. package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +1 -0
  266. package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +147 -0
  267. package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +497 -0
  268. package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/index.d.ts +1 -0
  269. package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +350 -0
  270. package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/index.d.ts +1 -0
  271. package/dist/types/typechain-types/contracts/interfaces/core/pools/index.d.ts +5 -0
  272. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDEToken.d.ts +226 -0
  273. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +195 -0
  274. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +279 -0
  275. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACToken.d.ts +346 -0
  276. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +397 -0
  277. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IveRAACToken.d.ts +362 -0
  278. package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +6 -0
  279. package/dist/types/typechain-types/contracts/interfaces/curve/ICurveCrvUSDVault.d.ts +144 -0
  280. package/dist/types/typechain-types/contracts/interfaces/curve/index.d.ts +1 -0
  281. package/dist/types/typechain-types/contracts/interfaces/index.d.ts +14 -0
  282. package/dist/types/typechain-types/contracts/interfaces/zeno/IAuction.d.ts +122 -0
  283. package/dist/types/typechain-types/contracts/interfaces/zeno/IZENO.d.ts +186 -0
  284. package/dist/types/typechain-types/contracts/interfaces/zeno/index.d.ts +2 -0
  285. package/dist/types/typechain-types/contracts/libraries/governance/BoostCalculator.d.ts +42 -0
  286. package/dist/types/typechain-types/contracts/libraries/governance/Checkpoints.d.ts +55 -0
  287. package/dist/types/typechain-types/contracts/libraries/governance/LockManager.d.ts +87 -0
  288. package/dist/types/typechain-types/contracts/libraries/governance/PowerCheckpoint.d.ts +60 -0
  289. package/dist/types/typechain-types/contracts/libraries/governance/RAACVoting.d.ts +45 -0
  290. package/dist/types/typechain-types/contracts/libraries/governance/VotingPowerLib.d.ts +66 -0
  291. package/dist/types/typechain-types/contracts/libraries/governance/index.d.ts +6 -0
  292. package/dist/types/typechain-types/contracts/libraries/index.d.ts +8 -0
  293. package/dist/types/typechain-types/contracts/libraries/math/TimeWeightedAverage.d.ts +104 -0
  294. package/dist/types/typechain-types/contracts/libraries/math/index.d.ts +1 -0
  295. package/dist/types/typechain-types/contracts/libraries/pools/ReserveLibrary.d.ts +124 -0
  296. package/dist/types/typechain-types/contracts/libraries/pools/index.d.ts +1 -0
  297. package/dist/types/typechain-types/contracts/libraries/utils/StringUtils.d.ts +20 -0
  298. package/dist/types/typechain-types/contracts/libraries/utils/index.d.ts +1 -0
  299. package/dist/types/typechain-types/contracts/mocks/core/collectors/MockFeeCollector.d.ts +708 -0
  300. package/dist/types/typechain-types/contracts/mocks/core/collectors/MockTreasury.d.ts +169 -0
  301. package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +2 -0
  302. package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/MockBaseGauge.d.ts +845 -0
  303. package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/MockGaugeController.d.ts +29 -0
  304. package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/index.d.ts +2 -0
  305. package/dist/types/typechain-types/contracts/mocks/core/governance/index.d.ts +4 -0
  306. package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +72 -0
  307. package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/index.d.ts +1 -0
  308. package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +12 -0
  309. package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/IFunctionsRouter.d.ts +41 -0
  310. package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter.d.ts +45 -0
  311. package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/index.d.ts +2 -0
  312. package/dist/types/typechain-types/contracts/mocks/core/oracles/MockOracle.d.ts +43 -0
  313. package/dist/types/typechain-types/contracts/mocks/core/oracles/TestRAACHousePriceOracle.d.ts +204 -0
  314. package/dist/types/typechain-types/contracts/mocks/core/oracles/TestRAACPrimeRateOracle.d.ts +211 -0
  315. package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +5 -0
  316. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPool.d.ts +121 -0
  317. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +539 -0
  318. package/dist/types/typechain-types/contracts/mocks/core/pools/MockPool.d.ts +55 -0
  319. package/dist/types/typechain-types/contracts/mocks/core/pools/MockStabilityPool.d.ts +69 -0
  320. package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +4 -0
  321. package/dist/types/typechain-types/contracts/mocks/core/primitives/MockContract.d.ts +29 -0
  322. package/dist/types/typechain-types/contracts/mocks/core/primitives/MockContractWithConfig.d.ts +39 -0
  323. package/dist/types/typechain-types/contracts/mocks/core/primitives/RAACHousePricesMock.d.ts +47 -0
  324. package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +3 -0
  325. package/dist/types/typechain-types/contracts/mocks/core/tokens/CrvUSDToken.d.ts +212 -0
  326. package/dist/types/typechain-types/contracts/mocks/core/tokens/ERC20Mock.d.ts +155 -0
  327. package/dist/types/typechain-types/contracts/mocks/core/tokens/ERC721Mock.d.ts +229 -0
  328. package/dist/types/typechain-types/contracts/mocks/core/tokens/MockFeeCollectorToken.d.ts +220 -0
  329. package/dist/types/typechain-types/contracts/mocks/core/tokens/MockToken.d.ts +191 -0
  330. package/dist/types/typechain-types/contracts/mocks/core/tokens/MockUSDC.d.ts +155 -0
  331. package/dist/types/typechain-types/contracts/mocks/core/tokens/MockVeToken.d.ts +510 -0
  332. package/dist/types/typechain-types/contracts/mocks/core/tokens/RAACMockERC20.d.ts +186 -0
  333. package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +8 -0
  334. package/dist/types/typechain-types/contracts/mocks/index.d.ts +6 -0
  335. package/dist/types/typechain-types/contracts/mocks/libraries/governance/BoostCalculatorMock.d.ts +275 -0
  336. package/dist/types/typechain-types/contracts/mocks/libraries/governance/CheckpointsMock.d.ts +83 -0
  337. package/dist/types/typechain-types/contracts/mocks/libraries/governance/LockManagerMock.d.ts +163 -0
  338. package/dist/types/typechain-types/contracts/mocks/libraries/governance/PowerCheckpointMock.d.ts +141 -0
  339. package/dist/types/typechain-types/contracts/mocks/libraries/governance/RAACVotingMock.d.ts +41 -0
  340. package/dist/types/typechain-types/contracts/mocks/libraries/governance/VotingPowerMock.d.ts +281 -0
  341. package/dist/types/typechain-types/contracts/mocks/libraries/governance/index.d.ts +6 -0
  342. package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +6 -0
  343. package/dist/types/typechain-types/contracts/mocks/libraries/math/TimeWeightedAverageMock.d.ts +203 -0
  344. package/dist/types/typechain-types/contracts/mocks/libraries/math/WadRayMathMock.d.ts +78 -0
  345. package/dist/types/typechain-types/contracts/mocks/libraries/math/index.d.ts +2 -0
  346. package/dist/types/typechain-types/contracts/mocks/libraries/pools/ReserveLibraryMock.d.ts +225 -0
  347. package/dist/types/typechain-types/contracts/mocks/libraries/pools/index.d.ts +1 -0
  348. package/dist/types/typechain-types/contracts/mocks/tests/MaliciousDeposit.d.ts +29 -0
  349. package/dist/types/typechain-types/contracts/mocks/tests/MaliciousWithdraw.d.ts +29 -0
  350. package/dist/types/typechain-types/contracts/mocks/tests/VeRAACFuzzHelper.d.ts +71 -0
  351. package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl.d.ts +25 -0
  352. package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper.d.ts +100 -0
  353. package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/index.d.ts +2 -0
  354. package/dist/types/typechain-types/contracts/mocks/tests/index.d.ts +5 -0
  355. package/dist/types/typechain-types/contracts/zeno/Auction.d.ts +215 -0
  356. package/dist/types/typechain-types/contracts/zeno/AuctionFactory.d.ts +177 -0
  357. package/dist/types/typechain-types/contracts/zeno/ZENO.d.ts +237 -0
  358. package/dist/types/typechain-types/contracts/zeno/ZENOFactory.d.ts +151 -0
  359. package/dist/types/typechain-types/contracts/zeno/index.d.ts +4 -0
  360. package/dist/types/typechain-types/erc721a/contracts/IERC721A.d.ts +242 -0
  361. package/dist/types/typechain-types/erc721a/contracts/index.d.ts +1 -0
  362. package/dist/types/typechain-types/erc721a/index.d.ts +2 -0
  363. package/dist/types/typechain-types/factories/@chainlink/contracts/index.d.ts +1 -0
  364. package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.d.ts +1 -0
  365. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/index.d.ts +1 -0
  366. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/FunctionsClient__factory.d.ts +49 -0
  367. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/index.d.ts +3 -0
  368. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsClient__factory.d.ts +25 -0
  369. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsRouter__factory.d.ts +268 -0
  370. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/index.d.ts +2 -0
  371. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/FunctionsRequest__factory.d.ts +48 -0
  372. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/index.d.ts +1 -0
  373. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
  374. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwnerWithProposal__factory.d.ts +90 -0
  375. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner__factory.d.ts +86 -0
  376. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/index.d.ts +2 -0
  377. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.d.ts +2 -0
  378. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/IOwnable__factory.d.ts +33 -0
  379. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
  380. package/dist/types/typechain-types/factories/@chainlink/index.d.ts +1 -0
  381. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.d.ts +181 -0
  382. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.d.ts +157 -0
  383. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +64 -0
  384. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts +3 -0
  385. package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +4 -0
  386. package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.d.ts +46 -0
  387. package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.d.ts +83 -0
  388. package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.d.ts +71 -0
  389. package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.d.ts +83 -0
  390. package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.d.ts +3 -0
  391. package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +2 -0
  392. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +241 -0
  393. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +147 -0
  394. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit__factory.d.ts +402 -0
  395. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.d.ts +177 -0
  396. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.d.ts +65 -0
  397. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +3 -0
  398. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +4 -0
  399. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts +46 -0
  400. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.d.ts +1 -0
  401. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.d.ts +337 -0
  402. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.d.ts +33 -0
  403. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.d.ts +227 -0
  404. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable__factory.d.ts +395 -0
  405. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable__factory.d.ts +269 -0
  406. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.d.ts +261 -0
  407. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.d.ts +3 -0
  408. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.d.ts +5 -0
  409. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder__factory.d.ts +33 -0
  410. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/utils/index.d.ts +1 -0
  411. package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/index.d.ts +2 -0
  412. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.d.ts +42 -0
  413. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Nonces__factory.d.ts +33 -0
  414. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Pausable__factory.d.ts +45 -0
  415. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/ReentrancyGuard__factory.d.ts +11 -0
  416. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/ShortStrings__factory.d.ts +34 -0
  417. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.d.ts +34 -0
  418. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.d.ts +42 -0
  419. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/EIP712__factory.d.ts +58 -0
  420. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.d.ts +2 -0
  421. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +9 -0
  422. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.d.ts +21 -0
  423. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts +21 -0
  424. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.d.ts +2 -0
  425. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/Math__factory.d.ts +26 -0
  426. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.d.ts +62 -0
  427. package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/index.d.ts +2 -0
  428. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts +82 -0
  429. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts +1 -0
  430. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.d.ts +3 -0
  431. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +1 -0
  432. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts +25 -0
  433. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +1 -0
  434. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts +25 -0
  435. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable__factory.d.ts +63 -0
  436. package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts +2 -0
  437. package/dist/types/typechain-types/factories/@openzeppelin/index.d.ts +2 -0
  438. package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +985 -0
  439. package/dist/types/typechain-types/factories/contracts/core/collectors/Treasury__factory.d.ts +386 -0
  440. package/dist/types/typechain-types/factories/contracts/core/collectors/index.d.ts +2 -0
  441. package/dist/types/typechain-types/factories/contracts/core/governance/boost/BoostController__factory.d.ts +716 -0
  442. package/dist/types/typechain-types/factories/contracts/core/governance/boost/index.d.ts +1 -0
  443. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/BaseGauge__factory.d.ts +1083 -0
  444. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +1124 -0
  445. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +1154 -0
  446. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +1154 -0
  447. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/index.d.ts +4 -0
  448. package/dist/types/typechain-types/factories/contracts/core/governance/index.d.ts +3 -0
  449. package/dist/types/typechain-types/factories/contracts/core/governance/proposals/Governance__factory.d.ts +976 -0
  450. package/dist/types/typechain-types/factories/contracts/core/governance/proposals/TimelockController__factory.d.ts +773 -0
  451. package/dist/types/typechain-types/factories/contracts/core/governance/proposals/index.d.ts +2 -0
  452. package/dist/types/typechain-types/factories/contracts/core/index.d.ts +7 -0
  453. package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +1048 -0
  454. package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/index.d.ts +1 -0
  455. package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +706 -0
  456. package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/index.d.ts +1 -0
  457. package/dist/types/typechain-types/factories/contracts/core/minters/index.d.ts +2 -0
  458. package/dist/types/typechain-types/factories/contracts/core/oracles/BaseChainlinkFunctionsOracle__factory.d.ts +205 -0
  459. package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +275 -0
  460. package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +286 -0
  461. package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +3 -0
  462. package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +1327 -0
  463. package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/index.d.ts +1 -0
  464. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/MarketCreator__factory.d.ts +405 -0
  465. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +390 -0
  466. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +930 -0
  467. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +3 -0
  468. package/dist/types/typechain-types/factories/contracts/core/pools/index.d.ts +2 -0
  469. package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +178 -0
  470. package/dist/types/typechain-types/factories/contracts/core/primitives/index.d.ts +1 -0
  471. package/dist/types/typechain-types/factories/contracts/core/tokens/DEToken__factory.d.ts +671 -0
  472. package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +729 -0
  473. package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +286 -0
  474. package/dist/types/typechain-types/factories/contracts/core/tokens/LPToken__factory.d.ts +401 -0
  475. package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +635 -0
  476. package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +652 -0
  477. package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +941 -0
  478. package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1264 -0
  479. package/dist/types/typechain-types/factories/contracts/core/tokens/index.d.ts +8 -0
  480. package/dist/types/typechain-types/factories/contracts/index.d.ts +5 -0
  481. package/dist/types/typechain-types/factories/contracts/interfaces/IERC20__factory.d.ts +147 -0
  482. package/dist/types/typechain-types/factories/contracts/interfaces/IHousePrices__factory.d.ts +21 -0
  483. package/dist/types/typechain-types/factories/contracts/interfaces/IMarketCreator__factory.d.ts +101 -0
  484. package/dist/types/typechain-types/factories/contracts/interfaces/INFTLiquidator__factory.d.ts +65 -0
  485. package/dist/types/typechain-types/factories/contracts/interfaces/IPoolManager__factory.d.ts +43 -0
  486. package/dist/types/typechain-types/factories/contracts/interfaces/IReserveAllocationLibraryMock__factory.d.ts +189 -0
  487. package/dist/types/typechain-types/factories/contracts/interfaces/IUSDC__factory.d.ts +147 -0
  488. package/dist/types/typechain-types/factories/contracts/interfaces/IveRAACDistributor__factory.d.ts +75 -0
  489. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +396 -0
  490. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/ITreasury__factory.d.ts +165 -0
  491. package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +2 -0
  492. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/IBoostController__factory.d.ts +295 -0
  493. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeController__factory.d.ts +449 -0
  494. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGauge__factory.d.ts +307 -0
  495. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/index.d.ts +2 -0
  496. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/index.d.ts +3 -0
  497. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/IGovernance__factory.d.ts +878 -0
  498. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/ITimelockController__factory.d.ts +468 -0
  499. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/index.d.ts +2 -0
  500. package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +6 -0
  501. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +380 -0
  502. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/index.d.ts +1 -0
  503. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +275 -0
  504. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/index.d.ts +1 -0
  505. package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/index.d.ts +2 -0
  506. package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IRAACHousePrices__factory.d.ts +146 -0
  507. package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +1 -0
  508. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +153 -0
  509. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +642 -0
  510. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/index.d.ts +1 -0
  511. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +480 -0
  512. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/index.d.ts +1 -0
  513. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/index.d.ts +3 -0
  514. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDEToken__factory.d.ts +256 -0
  515. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +279 -0
  516. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +363 -0
  517. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACToken__factory.d.ts +436 -0
  518. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +496 -0
  519. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IveRAACToken__factory.d.ts +435 -0
  520. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +6 -0
  521. package/dist/types/typechain-types/factories/contracts/interfaces/curve/ICurveCrvUSDVault__factory.d.ts +194 -0
  522. package/dist/types/typechain-types/factories/contracts/interfaces/curve/index.d.ts +1 -0
  523. package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +11 -0
  524. package/dist/types/typechain-types/factories/contracts/interfaces/zeno/IAuction__factory.d.ts +126 -0
  525. package/dist/types/typechain-types/factories/contracts/interfaces/zeno/IZENO__factory.d.ts +246 -0
  526. package/dist/types/typechain-types/factories/contracts/interfaces/zeno/index.d.ts +2 -0
  527. package/dist/types/typechain-types/factories/contracts/libraries/governance/BoostCalculator__factory.d.ts +54 -0
  528. package/dist/types/typechain-types/factories/contracts/libraries/governance/Checkpoints__factory.d.ts +68 -0
  529. package/dist/types/typechain-types/factories/contracts/libraries/governance/LockManager__factory.d.ts +111 -0
  530. package/dist/types/typechain-types/factories/contracts/libraries/governance/PowerCheckpoint__factory.d.ts +69 -0
  531. package/dist/types/typechain-types/factories/contracts/libraries/governance/RAACVoting__factory.d.ts +92 -0
  532. package/dist/types/typechain-types/factories/contracts/libraries/governance/VotingPowerLib__factory.d.ts +74 -0
  533. package/dist/types/typechain-types/factories/contracts/libraries/governance/index.d.ts +6 -0
  534. package/dist/types/typechain-types/factories/contracts/libraries/index.d.ts +4 -0
  535. package/dist/types/typechain-types/factories/contracts/libraries/math/TimeWeightedAverage__factory.d.ts +125 -0
  536. package/dist/types/typechain-types/factories/contracts/libraries/math/index.d.ts +1 -0
  537. package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +135 -0
  538. package/dist/types/typechain-types/factories/contracts/libraries/pools/index.d.ts +1 -0
  539. package/dist/types/typechain-types/factories/contracts/libraries/utils/StringUtils__factory.d.ts +26 -0
  540. package/dist/types/typechain-types/factories/contracts/libraries/utils/index.d.ts +1 -0
  541. package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockFeeCollector__factory.d.ts +985 -0
  542. package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockTreasury__factory.d.ts +212 -0
  543. package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/index.d.ts +2 -0
  544. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +1182 -0
  545. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockGaugeController__factory.d.ts +50 -0
  546. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/index.d.ts +2 -0
  547. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/index.d.ts +2 -0
  548. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +91 -0
  549. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/index.d.ts +1 -0
  550. package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +6 -0
  551. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/IFunctionsRouter__factory.d.ts +37 -0
  552. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter__factory.d.ts +66 -0
  553. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/index.d.ts +2 -0
  554. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +62 -0
  555. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +293 -0
  556. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +304 -0
  557. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +4 -0
  558. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +740 -0
  559. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +199 -0
  560. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockPool__factory.d.ts +84 -0
  561. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +109 -0
  562. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +4 -0
  563. package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockContractWithConfig__factory.d.ts +53 -0
  564. package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockContract__factory.d.ts +42 -0
  565. package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/RAACHousePricesMock__factory.d.ts +64 -0
  566. package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +3 -0
  567. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/CrvUSDToken__factory.d.ts +379 -0
  568. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/ERC20Mock__factory.d.ts +282 -0
  569. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/ERC721Mock__factory.d.ts +388 -0
  570. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockFeeCollectorToken__factory.d.ts +407 -0
  571. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockToken__factory.d.ts +338 -0
  572. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockUSDC__factory.d.ts +278 -0
  573. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockVeToken__factory.d.ts +714 -0
  574. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/RAACMockERC20__factory.d.ts +335 -0
  575. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +8 -0
  576. package/dist/types/typechain-types/factories/contracts/mocks/index.d.ts +3 -0
  577. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/BoostCalculatorMock__factory.d.ts +351 -0
  578. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/CheckpointsMock__factory.d.ts +124 -0
  579. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/LockManagerMock__factory.d.ts +197 -0
  580. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/PowerCheckpointMock__factory.d.ts +183 -0
  581. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RAACVotingMock__factory.d.ts +70 -0
  582. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/VotingPowerMock__factory.d.ts +341 -0
  583. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/index.d.ts +6 -0
  584. package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +3 -0
  585. package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/TimeWeightedAverageMock__factory.d.ts +247 -0
  586. package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/WadRayMathMock__factory.d.ts +154 -0
  587. package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/index.d.ts +2 -0
  588. package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +277 -0
  589. package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/index.d.ts +1 -0
  590. package/dist/types/typechain-types/factories/contracts/mocks/tests/MaliciousDeposit__factory.d.ts +53 -0
  591. package/dist/types/typechain-types/factories/contracts/mocks/tests/MaliciousWithdraw__factory.d.ts +53 -0
  592. package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +80 -0
  593. package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl__factory.d.ts +17 -0
  594. package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper__factory.d.ts +113 -0
  595. package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/index.d.ts +2 -0
  596. package/dist/types/typechain-types/factories/contracts/mocks/tests/index.d.ts +4 -0
  597. package/dist/types/typechain-types/factories/contracts/zeno/AuctionFactory__factory.d.ts +250 -0
  598. package/dist/types/typechain-types/factories/contracts/zeno/Auction__factory.d.ts +320 -0
  599. package/dist/types/typechain-types/factories/contracts/zeno/ZENOFactory__factory.d.ts +223 -0
  600. package/dist/types/typechain-types/factories/contracts/zeno/ZENO__factory.d.ts +488 -0
  601. package/dist/types/typechain-types/factories/contracts/zeno/index.d.ts +4 -0
  602. package/dist/types/typechain-types/factories/erc721a/contracts/IERC721A__factory.d.ts +368 -0
  603. package/dist/types/typechain-types/factories/erc721a/contracts/index.d.ts +1 -0
  604. package/dist/types/typechain-types/factories/erc721a/index.d.ts +1 -0
  605. package/dist/types/typechain-types/factories/index.d.ts +4 -0
  606. package/dist/types/typechain-types/index.d.ts +311 -0
  607. package/dist/types/utils/artifacts.d.ts +1627 -0
  608. package/dist/types/utils/chain.d.ts +13 -0
  609. package/dist/types/utils/config.d.ts +0 -0
  610. package/dist/types/utils/contracts.d.ts +20 -0
  611. package/dist/types/wallet/assets/approveAsset.d.ts +5 -0
  612. package/dist/types/wallet/assets/burnAsset.d.ts +5 -0
  613. package/dist/types/wallet/assets/getAllowance.d.ts +5 -0
  614. package/dist/types/wallet/assets/getAsset.d.ts +4 -0
  615. package/dist/types/wallet/assets/getAssets.d.ts +4 -0
  616. package/dist/types/wallet/assets/getBalance.d.ts +5 -0
  617. package/dist/types/wallet/assets/mintAsset.d.ts +5 -0
  618. package/dist/types/wallet/assets/transferAsset.d.ts +5 -0
  619. package/dist/utils/artifacts.js +65 -0
  620. package/dist/utils/chain.js +92 -0
  621. package/{utils/config.ts → dist/utils/config.js} +0 -6
  622. package/dist/utils/contracts.js +81 -0
  623. package/dist/wallet/assets/approveAsset.js +35 -0
  624. package/dist/wallet/assets/burnAsset.js +46 -0
  625. package/dist/wallet/assets/getAllowance.js +26 -0
  626. package/dist/wallet/assets/getAsset.js +22 -0
  627. package/dist/wallet/assets/getAssets.js +26 -0
  628. package/dist/wallet/assets/getBalance.js +24 -0
  629. package/dist/wallet/assets/mintAsset.js +47 -0
  630. package/dist/wallet/assets/transferAsset.js +62 -0
  631. package/package.json +34 -25
  632. package/RPCLibrary.ts +0 -358
  633. package/assets/getAsset.ts +0 -26
  634. package/assets/getAssets.ts +0 -30
  635. package/assets/getSupply.ts +0 -23
  636. package/configs/chains/8453.json +0 -116
  637. package/configs/chains/chain.d.ts +0 -87
  638. package/configs/chains/index.ts +0 -13
  639. package/configs/chains/list.json +0 -3
  640. package/configs/createConfig.ts +0 -91
  641. package/configs/index.ts +0 -51
  642. package/contracts/crvUSDToken/getBalance.ts +0 -23
  643. package/contracts/crvUSDToken/getTotalSupply.ts +0 -36
  644. package/contracts/getContract.ts +0 -21
  645. package/contracts/getContractAddress.ts +0 -61
  646. package/contracts/housePrices/getLatestPrice.ts +0 -38
  647. package/contracts/housePrices/setOracle.ts +0 -40
  648. package/contracts/rcrvUSDToken/getBalance.ts +0 -23
  649. package/contracts/rcrvUSDToken/getTotalSupply.ts +0 -39
  650. package/contracts/zeno/createAuction.ts +0 -57
  651. package/contracts/zeno/createZeno.ts +0 -45
  652. package/contracts/zeno/getAuctions.ts +0 -38
  653. package/contracts/zeno/getZenos.ts +0 -38
  654. package/custom-types.d.ts +0 -20
  655. package/methods/approveToken.ts +0 -47
  656. package/methods/commons/checkAllowance.ts +0 -36
  657. package/methods/commons/estimateGasPrice.ts +0 -21
  658. package/methods/debug/mintToken.js +0 -83
  659. package/methods/getAssetBalance.ts +0 -47
  660. package/methods/getAssetsBalance.ts +0 -9
  661. package/minter/get.ts +0 -150
  662. package/minter/getApy.ts +0 -37
  663. package/minter/tick.ts +0 -40
  664. package/nfts/addNewBatch.ts +0 -37
  665. package/nfts/getCurrentBatchSize.ts +0 -26
  666. package/nfts/getDepositedNFTs.ts +0 -31
  667. package/nfts/getHousePrice.ts +0 -30
  668. package/nfts/getOwnedNFTs.ts +0 -46
  669. package/nfts/mint.ts +0 -43
  670. package/nfts/setBaseUri.ts +0 -33
  671. package/pools/lendingPool/borrowFromLendingPool.ts +0 -39
  672. package/pools/lendingPool/depositNFTToLendingPool.ts +0 -70
  673. package/pools/lendingPool/depositToLendingPool.ts +0 -52
  674. package/pools/lendingPool/getHousePrice.ts +0 -46
  675. package/pools/lendingPool/getLendingPoolInfo.ts +0 -153
  676. package/pools/lendingPool/getLendingPoolTotalLiquidity.ts +0 -32
  677. package/pools/lendingPool/repayToLendingPool.ts +0 -52
  678. package/pools/lendingPool/withdrawFromLendingPool.ts +0 -68
  679. package/pools/lendingPool/withdrawNFTFromLendingPool.ts +0 -39
  680. package/pools/liquidityPool/getLiquidityPoolInfo.ts +0 -90
  681. package/pools/stabilityPool/calculateRAACRewards.ts +0 -37
  682. package/pools/stabilityPool/depositToStabilityPool.ts +0 -47
  683. package/pools/stabilityPool/getStabilityPoolInfo.ts +0 -121
  684. package/pools/stabilityPool/getStabilityPoolTotalDeposits.ts +0 -27
  685. package/pools/stabilityPool/withdrawFromStabilityPool.ts +0 -47
  686. package/sync-contracts.sh +0 -63
  687. package/tests/test.ts +0 -40
  688. package/tsconfig.json +0 -113
  689. package/utils/artifacts.ts +0 -66
  690. package/utils/chain.ts +0 -94
  691. package/utils/contracts.ts +0 -94
  692. package/wallet/assets/approveAsset.ts +0 -44
  693. package/wallet/assets/burnAsset.ts +0 -55
  694. package/wallet/assets/getAllowance.ts +0 -38
  695. package/wallet/assets/getAsset.ts +0 -33
  696. package/wallet/assets/getAssets.ts +0 -35
  697. package/wallet/assets/getBalance.ts +0 -34
  698. package/wallet/assets/mintAsset.ts +0 -57
  699. package/wallet/assets/transferAsset.ts +0 -78
package/utils/chain.ts DELETED
@@ -1,94 +0,0 @@
1
- import { ethers } from "ethers";
2
- import { getContractAddress as _getContractAddress } from "../contracts/getContractAddress";
3
- import configs, { ChainId } from "../configs/chains";
4
- import { ContractType } from "./artifacts";
5
-
6
- const isBrowser = typeof window !== "undefined";
7
-
8
- declare global {
9
- interface Window {
10
- ethereum?: any;
11
- }
12
- }
13
-
14
- export const getProvider = (chainId: ChainId) => {
15
- const config = configs[chainId];
16
- const rpcUrl = config.rpcs ? config.rpcs[0] : (config as any).rpc;
17
- return new ethers.JsonRpcProvider(rpcUrl);
18
- };
19
-
20
- export const getContractAddress = (
21
- chainId: ChainId,
22
- contractName: ContractType
23
- ) => {
24
- return _getContractAddress(chainId, contractName);
25
- };
26
-
27
- export const getSigner = async (provider: any) => {
28
- if (!isBrowser) {
29
- throw new Error("getSigner is only available in browser environments");
30
- }
31
- if (window.ethereum) {
32
- await window.ethereum.request({ method: "eth_requestAccounts" });
33
- return new ethers.BrowserProvider(window.ethereum).getSigner();
34
- } else {
35
- throw new Error("No Ethereum browser extension detected");
36
- }
37
- };
38
-
39
- export const getChainId = async () => {
40
- if (!isBrowser) {
41
- throw new Error("getChainId is only available in browser environments");
42
- }
43
- if (window.ethereum) {
44
- const chainId = await window.ethereum.request({ method: "eth_chainId" });
45
- return parseInt(chainId, 16);
46
- } else {
47
- throw new Error("No Ethereum browser extension detected");
48
- }
49
- };
50
-
51
- export const switchChain = async (chainId: ChainId) => {
52
- if (!isBrowser) {
53
- throw new Error("switchChain is only available in browser environments");
54
- }
55
- if (window.ethereum) {
56
- try {
57
- await window.ethereum.request({
58
- method: "wallet_switchEthereumChain",
59
- params: [{ chainId: `0x${chainId.toString(16)}` }],
60
- });
61
- } catch (error: any) {
62
- if (error.code === 4902) {
63
- await addChain(chainId);
64
- } else {
65
- throw error;
66
- }
67
- }
68
- } else {
69
- throw new Error("No Ethereum browser extension detected");
70
- }
71
- };
72
-
73
- const addChain = async (chainId: ChainId) => {
74
- if (!isBrowser) {
75
- throw new Error("addChain is only available in browser environments");
76
- }
77
- const chainConfig = configs[chainId];
78
- if (!chainConfig) {
79
- throw new Error(`Chain configuration not found for chainId: ${chainId}`);
80
- }
81
-
82
- await window.ethereum.request({
83
- method: "wallet_addEthereumChain",
84
- params: [
85
- {
86
- chainId: `0x${chainId.toString(16)}`,
87
- chainName: chainConfig.name,
88
- nativeCurrency: chainConfig.nativeCurrency,
89
- rpcUrls: chainConfig.rpcs,
90
- blockExplorerUrls: chainConfig.blockExplorer,
91
- },
92
- ],
93
- });
94
- };
@@ -1,94 +0,0 @@
1
- import { getChainsConfig, getChainConfig } from "../configs";
2
- import { ChainId, configs } from "../configs/chains";
3
- import { Chain } from "../configs/chains/chain";
4
- import { ABIS, ContractType, getABI } from "./artifacts";
5
- import { ethers, Provider } from "ethers";
6
-
7
- let _config;
8
- let _configs: ReturnType<typeof getChainsConfig>;
9
-
10
- export const getConfigs = () => {
11
- if (!_configs) {
12
- _configs = getChainsConfig();
13
- }
14
- return _configs;
15
- };
16
-
17
- export const setOverrideConfig = (chainId: ChainId, newConfig: any) => {
18
- if (!_configs) {
19
- _configs = getConfigs();
20
- }
21
- // FIXME: configs is not defined here.
22
- if (!configs[chainId]) {
23
- // @ts-ignore
24
- configs[chainId] = {};
25
- }
26
- configs[chainId] = {
27
- ...configs[chainId],
28
- ...newConfig,
29
- contracts: {
30
- ...configs[chainId].contracts,
31
- ...newConfig.contracts,
32
- },
33
- };
34
- };
35
-
36
- export const getConfig = (chainId: ChainId) => {
37
- const configs = getConfigs();
38
- if (!configs[chainId]) {
39
- throw new Error(
40
- `Unsupported chain ID: ${chainId}. Has ${JSON.stringify(
41
- Object.keys(configs)
42
- )}`
43
- );
44
- }
45
- return configs[chainId];
46
- };
47
-
48
- export const getContract = (
49
- chainId: ChainId,
50
- contractName: ContractType,
51
- provider: Provider
52
- ) => {
53
- const normalizedContractName =
54
- contractName.toLowerCase() as keyof typeof ABIS;
55
- const address = getContractAddress(chainId, normalizedContractName);
56
- const abi = getABI(normalizedContractName);
57
- return new ethers.Contract(address, abi, provider);
58
- };
59
-
60
- export const getContractAddress = (chainId: ChainId, contractName: string) => {
61
- const normalizedContractName = contractName.toLowerCase();
62
- const config = getConfig(chainId);
63
- if (!config) {
64
- throw new Error(`Unsupported chain ID: ${chainId}`);
65
- }
66
- const chainKeys = ["contracts", "assets", "pools", "nfts"] as (keyof Chain)[];
67
- const keys = (Object.keys(config) as (keyof Chain)[]).filter((key) =>
68
- chainKeys.includes(key)
69
- );
70
- let address = null;
71
- for (const key of keys) {
72
- if (config[key] && (config[key] as any)[normalizedContractName]) {
73
- address = (config[key] as any)[normalizedContractName]?.contract;
74
- break;
75
- }
76
- }
77
- if (!address) {
78
- const hasIds = keys
79
- .map((key) => `${key}: ${Object.keys(config[key]).join(", ")}`)
80
- .join("\n");
81
- throw new Error(
82
- `Contract ${normalizedContractName} not found for chain ID: ${chainId}.\nHas:\n${hasIds}`
83
- );
84
- }
85
- return address;
86
- };
87
-
88
- export default {
89
- getContract,
90
- getContractAddress,
91
- setOverrideConfig,
92
- getConfig,
93
- getConfigs,
94
- };
@@ -1,44 +0,0 @@
1
- import { ethers, Signer } from "ethers";
2
- import { getContractAddress } from "../../utils/contracts";
3
- import { ABIS, AssetType, getABI } from "../../utils/artifacts";
4
- import estimateGasPrice from "../../methods/commons/estimateGasPrice";
5
- import { ChainId } from "../../configs/chains/index";
6
-
7
- async function approveAsset(
8
- chainId: ChainId,
9
- assetId: AssetType,
10
- spender: string,
11
- amount: string,
12
- signer: Signer
13
- ) {
14
- if (!signer) {
15
- throw new Error("Wallet not connected");
16
- }
17
-
18
- try {
19
- const tokenAddress = getContractAddress(chainId, assetId);
20
- const abi = getABI(assetId);
21
- const tokenContract = new ethers.Contract(tokenAddress, abi, signer);
22
-
23
- const amountInWei = ethers.parseEther(amount);
24
- const { maxFeePerGas } = await estimateGasPrice(signer);
25
-
26
- const tx = await tokenContract.approve(spender, amountInWei, {
27
- maxFeePerGas,
28
- nonce: await signer.getNonce(),
29
- });
30
-
31
- console.log(`Approval transaction sent for ${assetId}:`, tx.hash);
32
- const receipt = await tx.wait();
33
- console.log(
34
- `Approved ${amount} ${assetId} for ${spender} successfully:`,
35
- receipt.transactionHash
36
- );
37
- return receipt;
38
- } catch (error: any) {
39
- console.error(`Approval error for ${assetId}:`, error);
40
- throw new Error(`Token approval failed for ${assetId}: ${error.message}`);
41
- }
42
- }
43
-
44
- export default approveAsset;
@@ -1,55 +0,0 @@
1
- import { ethers, Signer } from "ethers";
2
- import { getConfig } from "../../utils/contracts";
3
- import estimateGasPrice from "../../methods/commons/estimateGasPrice";
4
- import { ABIS, AssetType, getABI } from "../../utils/artifacts";
5
- import { ChainId } from "../../configs/chains/index";
6
-
7
- async function burnAsset(
8
- chainId: ChainId,
9
- assetId: AssetType,
10
- amount: bigint,
11
- signer: Signer
12
- ) {
13
- try {
14
- if (!signer) {
15
- throw new Error("Wallet not connected");
16
- }
17
-
18
- const { assets } = getConfig(chainId);
19
- const asset = Object.values(assets).find(
20
- (asset) => asset.id.toLowerCase() === (assetId as string).toLowerCase()
21
- );
22
- if (!asset) {
23
- throw new Error(`Asset ${assetId} not found on chain ${chainId}`);
24
- }
25
-
26
- const contractAddress = asset.contract;
27
- const abi = getABI(assetId);
28
- const contract = new ethers.Contract(contractAddress, abi, signer);
29
-
30
- const { maxFeePerGas } = await estimateGasPrice(signer);
31
- const amountToBurn = ethers.parseEther(amount.toString());
32
-
33
- if (!contract.burn) {
34
- throw new Error(`Burn function not found on contract ${contractAddress}`);
35
- }
36
-
37
- const tx = await contract.burn(amountToBurn, {
38
- maxFeePerGas,
39
- nonce: +(await signer.getNonce()),
40
- });
41
-
42
- console.log(`Burning transaction sent for ${assetId}:`, tx.hash);
43
- const receipt = await tx.wait();
44
- console.log(
45
- `Burned ${amount} ${assetId} successfully:`,
46
- receipt.transactionHash
47
- );
48
- return receipt;
49
- } catch (error: any) {
50
- console.error(`Error burning asset ${assetId}:`, error);
51
- throw new Error(`Burning failed for ${assetId}: ${error.message}`);
52
- }
53
- }
54
-
55
- export default burnAsset;
@@ -1,38 +0,0 @@
1
- import { ethers, Provider } from "ethers";
2
- import { getContractAddress } from "../../utils/contracts";
3
- import { ABIS, AssetType } from "../../utils/artifacts";
4
- import { ChainId } from "../../configs/chains/index";
5
-
6
- async function getAllowance(
7
- chainId: ChainId,
8
- assetId: AssetType,
9
- owner: string,
10
- spender: string,
11
- provider: Provider
12
- ) {
13
- try {
14
- if (assetId === "eth") {
15
- // ETH doesn't have an allowance concept, return max uint256 value ?
16
- return ethers.formatEther(ethers.MaxUint256);
17
- }
18
-
19
- const ALLOWANCE_ABI = [
20
- "function allowance(address,address) view returns (uint256)",
21
- ];
22
- const contractAddress = getContractAddress(chainId, assetId);
23
- const contract = new ethers.Contract(
24
- contractAddress,
25
- ALLOWANCE_ABI,
26
- provider
27
- );
28
- const allowance = await contract.allowance(owner, spender);
29
- return ethers.formatEther(allowance);
30
- } catch (error: any) {
31
- console.error(`Error getting allowance for asset ${assetId}:`, error);
32
- console.log({ assetId, owner, spender });
33
- console.log(error);
34
- return 0;
35
- }
36
- }
37
-
38
- export default getAllowance;
@@ -1,33 +0,0 @@
1
- import { Provider, Signer } from "ethers";
2
- import { AssetType } from "../../utils/artifacts";
3
- import { getConfig } from "../../utils/contracts";
4
- import { ChainId } from "../../configs/chains/index";
5
-
6
- async function getAsset(
7
- chainId: ChainId,
8
- assetId: string,
9
- address: string,
10
- provider: Provider
11
- ) {
12
- const { assets } = getConfig(chainId);
13
- // @ts-ignore
14
- const asset = assets[assetId];
15
- let response = {
16
- ...asset,
17
- balance: 0,
18
- };
19
-
20
- const owner = address;
21
-
22
- try {
23
- // @ts-expect-error The method is used in the RPCLibrary class and therefore, it has access to this.
24
- const balance = await this.getBalance(chainId, assetId, owner, provider);
25
- response.balance = parseFloat(balance).toString();
26
- } catch (error: any) {
27
- console.log(`Error getting balance: ${error}`);
28
- }
29
-
30
- return response;
31
- }
32
-
33
- export default getAsset;
@@ -1,35 +0,0 @@
1
- import { Provider, Signer } from "ethers";
2
- import { getConfig } from "../../utils/contracts";
3
- import { ChainId } from "../../configs/chains/index";
4
- import RPCLibrary from "../../RPCLibrary";
5
-
6
- async function getAssets(
7
- chainId: ChainId,
8
- address: string,
9
- provider: Provider
10
- ) {
11
- const { assets } = getConfig(chainId);
12
- const responses: any = {};
13
-
14
- const assetIds = Object.keys(assets);
15
- const assetPromises = assetIds.map(async (assetId) => {
16
- // @ts-ignore
17
- const asset = await this.getAsset(chainId, assetId, address, signer);
18
- responses[assetId] = {
19
- // @ts-ignore
20
- ...assets[assetId],
21
- ...asset,
22
- };
23
- return responses[assetId];
24
- });
25
- const assetResponses = await Promise.all(assetPromises);
26
- const response = {};
27
- assetResponses.forEach((asset) => {
28
- // @ts-ignore
29
- response[asset.id] = asset;
30
- });
31
-
32
- return response;
33
- }
34
-
35
- export default getAssets;
@@ -1,34 +0,0 @@
1
- import { ethers, Provider } from "ethers";
2
- import { getContractAddress } from "../../utils/contracts";
3
- import { AssetType, getABI } from "../../utils/artifacts";
4
- import { ChainId } from "../../configs/chains/index";
5
-
6
- async function getBalance(
7
- chainId: ChainId,
8
- assetId: AssetType,
9
- address: string,
10
- provider: Provider
11
- ) {
12
- const BALANCE_OF_ABI = ["function balanceOf(address) view returns (uint256)"];
13
- try {
14
- if (assetId === "eth") {
15
- const balance = await provider.getBalance(address);
16
- const parsedBalance = parseFloat(ethers.formatEther(balance));
17
- return parsedBalance;
18
- }
19
- const contractAddress = getContractAddress(chainId, assetId);
20
- const contract = new ethers.Contract(
21
- contractAddress,
22
- BALANCE_OF_ABI,
23
- provider
24
- );
25
- const balance = await contract.balanceOf(address);
26
- const parsedBalance = parseFloat(ethers.formatEther(balance));
27
- return parsedBalance.toString();
28
- } catch (error: any) {
29
- console.error(`Error getting balance for asset ${assetId}:`, error);
30
- return 0;
31
- }
32
- }
33
-
34
- export default getBalance;
@@ -1,57 +0,0 @@
1
- import { ethers, Signer } from "ethers";
2
- import { getConfig } from "../../utils/contracts";
3
- import estimateGasPrice from "../../methods/commons/estimateGasPrice";
4
- import { AssetType, getABI } from "../../utils/artifacts";
5
- import { ChainId } from "../../configs/chains/index";
6
-
7
- async function mintAsset(
8
- chainId: ChainId,
9
- assetId: AssetType,
10
- amount: bigint,
11
- address: string,
12
- signer: Signer
13
- ) {
14
- try {
15
- if (!signer) {
16
- throw new Error("Wallet not connected");
17
- }
18
-
19
- const { assets } = getConfig(chainId);
20
- console.log("assets", assets);
21
- const asset = Object.values(assets).find(
22
- (asset) => asset.id.toLowerCase() === (assetId as string).toLowerCase()
23
- );
24
- if (!asset) {
25
- throw new Error(`Asset ${assetId} not found on chain ${chainId}`);
26
- }
27
-
28
- const contractAddress = asset.contract;
29
- let contract;
30
-
31
- const abi = getABI(assetId);
32
- contract = new ethers.Contract(contractAddress, abi, signer);
33
-
34
- const { maxFeePerGas } = await estimateGasPrice(signer);
35
- if (!contract.mint) {
36
- throw new Error(`Mint function not found on contract ${contractAddress}`);
37
- }
38
- const tx = await contract.mint(
39
- address,
40
- ethers.parseEther(amount.toString()),
41
- {
42
- maxFeePerGas,
43
- nonce: +(await signer.getNonce()),
44
- }
45
- );
46
-
47
- console.log(`Minting transaction sent for ${assetId}:`, tx.hash);
48
- const receipt = await tx.wait();
49
- console.log(`Minted ${amount} ${assetId} successfully:`, receipt.hash);
50
- return receipt;
51
- } catch (error: any) {
52
- console.error(`Error minting asset ${assetId}:`, error);
53
- throw new Error(`Minting failed for ${assetId}: ${error.message}`);
54
- }
55
- }
56
-
57
- export default mintAsset;
@@ -1,78 +0,0 @@
1
- import { ethers, Signer } from "ethers";
2
- import { getConfig } from "../../utils/contracts";
3
- import estimateGasPrice from "../../methods/commons/estimateGasPrice";
4
- import { AssetType, getABI } from "../../utils/artifacts";
5
- import { ChainId } from "../../configs/chains/index";
6
-
7
- async function transferAsset(
8
- chainId: ChainId,
9
- assetId: AssetType,
10
- amount: bigint,
11
- fromAddress: string,
12
- toAddress: string,
13
- signer: Signer
14
- ) {
15
- try {
16
- if (!signer) {
17
- throw new Error("Wallet not connected");
18
- }
19
-
20
- const { maxFeePerGas } = await estimateGasPrice(signer);
21
- const amountToTransfer = ethers.parseEther(amount.toString());
22
-
23
- if ((assetId as string).toLowerCase() === "eth") {
24
- // Handle ETH transfer
25
- const tx = await signer.sendTransaction({
26
- to: toAddress,
27
- value: amountToTransfer,
28
- maxFeePerGas,
29
- nonce: await signer.getNonce(),
30
- });
31
-
32
- console.log(`ETH transfer transaction sent:`, tx.hash);
33
- const receipt = await tx.wait();
34
- console.log(
35
- `Transferred ${amount} ETH from ${fromAddress} to ${toAddress} successfully:`,
36
- (await receipt?.getTransaction())?.hash
37
- );
38
- return receipt;
39
- } else {
40
- // Handle ERC20 token transfer
41
- const { assets } = getConfig(chainId);
42
- const asset = Object.values(assets).find(
43
- (asset) => asset.id.toLowerCase() === (assetId as string).toLowerCase()
44
- );
45
- if (!asset) {
46
- throw new Error(`Asset ${assetId} not found on chain ${chainId}`);
47
- }
48
-
49
- const contractAddress = asset.contract;
50
- const abi = getABI(assetId);
51
- const contract = new ethers.Contract(contractAddress, abi, signer);
52
-
53
- if (!contract.transfer) {
54
- throw new Error(
55
- `Transfer function not found on contract ${contractAddress}`
56
- );
57
- }
58
-
59
- const tx = await contract.transfer(toAddress, amountToTransfer, {
60
- maxFeePerGas,
61
- nonce: await signer.getNonce(),
62
- });
63
-
64
- console.log(`Transfer transaction sent for ${assetId}:`, tx.hash);
65
- const receipt = await tx.wait();
66
- console.log(
67
- `Transferred ${amount} ${assetId} from ${fromAddress} to ${toAddress} successfully:`,
68
- receipt.transactionHash
69
- );
70
- return receipt;
71
- }
72
- } catch (error: any) {
73
- console.error(`Error transferring asset ${assetId}:`, error);
74
- throw new Error(`Transfer failed for ${assetId}: ${error.message}`);
75
- }
76
- }
77
-
78
- export default transferAsset;