@raac/rpc 1.0.0 → 1.0.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RPCLibrary.js +322 -0
- package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +1743 -0
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +1443 -0
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +279 -0
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +2760 -0
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +1146 -0
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +285 -0
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +858 -0
- package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.json +770 -0
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +1472 -0
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +832 -0
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +1205 -0
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +1616 -0
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +774 -0
- package/dist/artifacts/mocks/core/tokens/crvUSDToken.sol/crvUSDToken.json +479 -0
- package/dist/artifacts/zeno/Auction.sol/Auction.json +393 -0
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +307 -0
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +620 -0
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +275 -0
- package/dist/assets/getAsset.js +23 -0
- package/dist/assets/getAssets.js +26 -0
- package/dist/assets/getSupply.js +18 -0
- package/dist/configs/chains/17000.json +127 -0
- package/dist/configs/chains/8453.json +127 -0
- package/dist/configs/chains/index.js +15 -0
- package/dist/configs/createConfig.js +95 -0
- package/dist/configs/index.js +43 -0
- package/dist/contracts/crvUSDToken/getBalance.js +17 -0
- package/dist/contracts/crvUSDToken/getTotalSupply.js +31 -0
- package/dist/contracts/feeCollector/claimRewardFromPool.js +24 -0
- package/dist/contracts/getContract.js +18 -0
- package/dist/contracts/getContractAddress.js +50 -0
- package/dist/contracts/housePrices/getLatestPrice.js +21 -0
- package/dist/contracts/housePrices/setOracle.js +24 -0
- package/dist/contracts/indexToken/getNextRandomNFT.js +30 -0
- package/dist/contracts/indexToken/redeemNFT.js +39 -0
- package/dist/contracts/rcrvUSDToken/getBalance.js +14 -0
- package/dist/contracts/rcrvUSDToken/getTotalSupply.js +30 -0
- package/dist/contracts/zeno/createAuction.js +25 -0
- package/dist/contracts/zeno/createZeno.js +26 -0
- package/dist/contracts/zeno/getAuctions.js +28 -0
- package/dist/contracts/zeno/getZenos.js +28 -0
- package/dist/index.js +7 -0
- package/dist/methods/approveToken.js +35 -0
- package/dist/methods/commons/checkAllowance.js +19 -0
- package/dist/methods/commons/estimateGasPrice.js +23 -0
- package/dist/methods/getAssetBalance.js +33 -0
- package/dist/methods/getAssetsBalance.js +4 -0
- package/dist/minter/get.js +121 -0
- package/dist/minter/getApy.js +28 -0
- package/dist/minter/tick.js +33 -0
- package/dist/nfts/getAllTokens.js +34 -0
- package/dist/nfts/getBaseUri.js +23 -0
- package/dist/nfts/getHousePrice.js +19 -0
- package/dist/nfts/getMintFeePercentage.js +23 -0
- package/dist/nfts/getMintPrice.js +28 -0
- package/dist/nfts/getTokenURI.js +23 -0
- package/dist/nfts/getTokensByOwner.js +35 -0
- package/dist/nfts/getTotalPropertiesCount.js +23 -0
- package/dist/nfts/mint.js +24 -0
- package/dist/nfts/setBaseUri.js +24 -0
- package/dist/nfts/totalNFTSupply.js +19 -0
- package/dist/pools/lendingPool/borrowFromLendingPool.js +24 -0
- package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +40 -0
- package/dist/pools/lendingPool/calculateInsuranceFee.js +20 -0
- package/dist/pools/lendingPool/claimReward.js +22 -0
- package/dist/pools/lendingPool/closeLiquidation.js +28 -0
- package/dist/pools/lendingPool/depositNFTToLendingPool.js +50 -0
- package/dist/pools/lendingPool/depositToLendingPool.js +35 -0
- package/dist/pools/lendingPool/getAllUserData.js +28 -0
- package/dist/pools/lendingPool/getEligibleUserDeposits.js +27 -0
- package/dist/pools/lendingPool/getHealthFactor.js +27 -0
- package/dist/pools/lendingPool/getHousePrice.js +26 -0
- package/dist/pools/lendingPool/getLendingPoolInfo.js +109 -0
- package/dist/pools/lendingPool/getLendingPoolTotalLiquidity.js +22 -0
- package/dist/pools/lendingPool/getPendingReward.js +20 -0
- package/dist/pools/lendingPool/getPositionDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionView.js +38 -0
- package/dist/pools/lendingPool/getPositionsScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +21 -0
- package/dist/pools/lendingPool/getUserCollateralValue.js +27 -0
- package/dist/pools/lendingPool/initializeLiquidation.js +28 -0
- package/dist/pools/lendingPool/repayToLendingPool.js +24 -0
- package/dist/pools/lendingPool/withdrawFromLendingPool.js +42 -0
- package/dist/pools/lendingPool/withdrawNFTFromLendingPool.js +24 -0
- package/dist/pools/liquidityPool/getLiquidityPoolInfo.js +73 -0
- package/dist/pools/stabilityPool/calculateRAACRewards.js +21 -0
- package/dist/pools/stabilityPool/depositNFTToStabilityPool.js +40 -0
- package/dist/pools/stabilityPool/depositToStabilityPool.js +34 -0
- package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +21 -0
- package/dist/pools/stabilityPool/getStabilityPoolInfo.js +80 -0
- package/dist/pools/stabilityPool/getStabilityPoolTotalDeposits.js +19 -0
- package/dist/pools/stabilityPool/withdrawFromStabilityPool.js +34 -0
- package/dist/scripts/index.js +138 -0
- package/dist/tests/test.js +32 -0
- package/dist/types/RPCLibrary.d.ts +192 -0
- package/dist/types/assets/getAsset.d.ts +5 -0
- package/dist/types/assets/getAssets.d.ts +4 -0
- package/dist/types/assets/getSupply.d.ts +5 -0
- package/dist/types/configs/chains/index.d.ts +13 -0
- package/dist/types/configs/createConfig.d.ts +92 -0
- package/dist/types/configs/index.d.ts +14 -0
- package/dist/types/contracts/crvUSDToken/getBalance.d.ts +2 -0
- package/dist/types/contracts/crvUSDToken/getTotalSupply.d.ts +10 -0
- package/dist/types/contracts/feeCollector/claimRewardFromPool.d.ts +4 -0
- package/dist/types/contracts/getContract.d.ts +4 -0
- package/dist/types/contracts/getContractAddress.d.ts +10 -0
- package/dist/types/contracts/housePrices/getLatestPrice.d.ts +10 -0
- package/dist/types/contracts/housePrices/setOracle.d.ts +4 -0
- package/dist/types/contracts/indexToken/getNextRandomNFT.d.ts +7 -0
- package/dist/types/contracts/indexToken/redeemNFT.d.ts +4 -0
- package/dist/types/contracts/rcrvUSDToken/getBalance.d.ts +2 -0
- package/dist/types/contracts/rcrvUSDToken/getTotalSupply.d.ts +10 -0
- package/dist/types/contracts/zeno/createAuction.d.ts +4 -0
- package/dist/types/contracts/zeno/createZeno.d.ts +4 -0
- package/dist/types/contracts/zeno/getAuctions.d.ts +4 -0
- package/dist/types/contracts/zeno/getZenos.d.ts +4 -0
- package/{index.ts → dist/types/index.d.ts} +0 -1
- package/dist/types/methods/approveToken.d.ts +5 -0
- package/dist/types/methods/commons/checkAllowance.d.ts +6 -0
- package/dist/types/methods/commons/estimateGasPrice.d.ts +11 -0
- package/dist/types/methods/getAssetBalance.d.ts +6 -0
- package/dist/types/methods/getAssetsBalance.d.ts +3 -0
- package/dist/types/minter/get.d.ts +17 -0
- package/dist/types/minter/getApy.d.ts +4 -0
- package/dist/types/minter/tick.d.ts +4 -0
- package/dist/types/nfts/getAllTokens.d.ts +7 -0
- package/dist/types/nfts/getBaseUri.d.ts +4 -0
- package/dist/types/nfts/getHousePrice.d.ts +4 -0
- package/dist/types/nfts/getMintFeePercentage.d.ts +4 -0
- package/dist/types/nfts/getMintPrice.d.ts +7 -0
- package/dist/types/nfts/getTokenURI.d.ts +4 -0
- package/dist/types/nfts/getTokensByOwner.d.ts +10 -0
- package/dist/types/nfts/getTotalPropertiesCount.d.ts +4 -0
- package/dist/types/nfts/mint.d.ts +4 -0
- package/dist/types/nfts/setBaseUri.d.ts +4 -0
- package/dist/types/nfts/totalNFTSupply.d.ts +4 -0
- package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +4 -0
- package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +4 -0
- package/dist/types/pools/lendingPool/claimReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/closeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/depositNFTToLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/depositToLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/getAllUserData.d.ts +16 -0
- package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +11 -0
- package/dist/types/pools/lendingPool/getHealthFactor.d.ts +11 -0
- package/dist/types/pools/lendingPool/getHousePrice.d.ts +4 -0
- package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +24 -0
- package/dist/types/pools/lendingPool/getLendingPoolTotalLiquidity.d.ts +4 -0
- package/dist/types/pools/lendingPool/getPendingReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/getPositionDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionView.d.ts +27 -0
- package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +11 -0
- package/dist/types/pools/lendingPool/initializeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/withdrawFromLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +4 -0
- package/dist/types/pools/liquidityPool/getLiquidityPoolInfo.d.ts +7 -0
- package/dist/types/pools/stabilityPool/calculateRAACRewards.d.ts +4 -0
- package/dist/types/pools/stabilityPool/depositNFTToStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/depositToStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +10 -0
- package/dist/types/pools/stabilityPool/getStabilityPoolTotalDeposits.d.ts +4 -0
- package/dist/types/pools/stabilityPool/withdrawFromStabilityPool.d.ts +4 -0
- package/dist/types/scripts/index.d.ts +1 -0
- package/dist/types/tests/test.d.ts +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/FunctionsClient.d.ts +67 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/index.d.ts +5 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsClient.d.ts +37 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsRouter.d.ts +205 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/FunctionsRequest.d.ts +25 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +6 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner.d.ts +69 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwnerWithProposal.d.ts +69 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.d.ts +4 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/IOwnable.d.ts +37 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +35 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/index.d.ts +3 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +156 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/@chainlink/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/AccessControl.d.ts +159 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/IAccessControl.d.ts +147 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts +54 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/index.d.ts +3 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +8 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC5267.d.ts +78 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.d.ts +3 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +3 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.d.ts +141 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +129 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.d.ts +236 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +141 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.d.ts +61 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +3 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts +6 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.d.ts +211 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +199 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721Receiver.d.ts +39 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.d.ts +233 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.d.ts +221 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.d.ts +211 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.d.ts +3 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/index.d.ts +7 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.d.ts +39 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/index.d.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Address.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Nonces.d.ts +25 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Pausable.d.ts +55 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/ReentrancyGuard.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/ShortStrings.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Strings.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/EIP712.d.ts +78 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/index.d.ts +12 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.d.ts +29 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.d.ts +29 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/Math.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.d.ts +20 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts +68 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/index.d.ts +6 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts +36 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts +36 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.d.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/index.d.ts +4 -0
- package/dist/types/typechain-types/common.d.ts +50 -0
- package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +933 -0
- package/dist/types/typechain-types/contracts/core/collectors/Treasury.d.ts +283 -0
- package/dist/types/typechain-types/contracts/core/collectors/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/core/governance/boost/BoostController.d.ts +573 -0
- package/dist/types/typechain-types/contracts/core/governance/boost/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/governance/gauges/BaseGauge.d.ts +779 -0
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeController.d.ts +815 -0
- package/dist/types/typechain-types/contracts/core/governance/gauges/RAACGauge.d.ts +803 -0
- package/dist/types/typechain-types/contracts/core/governance/gauges/RWAGauge.d.ts +807 -0
- package/dist/types/typechain-types/contracts/core/governance/gauges/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/core/governance/index.d.ts +6 -0
- package/dist/types/typechain-types/contracts/core/governance/proposals/Governance.d.ts +612 -0
- package/dist/types/typechain-types/contracts/core/governance/proposals/TimelockController.d.ts +447 -0
- package/dist/types/typechain-types/contracts/core/governance/proposals/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/core/index.d.ts +14 -0
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +791 -0
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +493 -0
- package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/minters/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/core/oracles/BaseChainlinkFunctionsOracle.d.ts +165 -0
- package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +166 -0
- package/dist/types/typechain-types/contracts/core/oracles/RAACHousePriceOracle.d.ts +188 -0
- package/dist/types/typechain-types/contracts/core/oracles/RAACPrimeRateOracle.d.ts +195 -0
- package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +1647 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/NFTLiquidator.d.ts +283 -0
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +576 -0
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/core/pools/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +138 -0
- package/dist/types/typechain-types/contracts/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/tokens/DEToken.d.ts +384 -0
- package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +429 -0
- package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +340 -0
- package/dist/types/typechain-types/contracts/core/tokens/LPToken.d.ts +224 -0
- package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +728 -0
- package/dist/types/typechain-types/contracts/core/tokens/RAACToken.d.ts +401 -0
- package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +567 -0
- package/dist/types/typechain-types/contracts/core/tokens/VeRAACToken.d.ts +816 -0
- package/dist/types/typechain-types/contracts/core/tokens/index.d.ts +8 -0
- package/dist/types/typechain-types/contracts/index.d.ts +10 -0
- package/dist/types/typechain-types/contracts/interfaces/IERC20.d.ts +129 -0
- package/dist/types/typechain-types/contracts/interfaces/IHousePrices.d.ts +29 -0
- package/dist/types/typechain-types/contracts/interfaces/INFTLiquidator.d.ts +73 -0
- package/dist/types/typechain-types/contracts/interfaces/IPoolManager.d.ts +37 -0
- package/dist/types/typechain-types/contracts/interfaces/IReserveAllocationLibraryMock.d.ts +164 -0
- package/dist/types/typechain-types/contracts/interfaces/IUSDC.d.ts +129 -0
- package/dist/types/typechain-types/contracts/interfaces/IveRAACDistributor.d.ts +59 -0
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IBaseCollector.d.ts +39 -0
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +487 -0
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/ITreasury.d.ts +139 -0
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +3 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/IBoostController.d.ts +269 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGauge.d.ts +235 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeController.d.ts +341 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/index.d.ts +5 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/IGovernance.d.ts +577 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/ITimelockController.d.ts +279 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +14 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +352 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +237 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +86 -0
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IRAACHousePrices.d.ts +110 -0
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +185 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +982 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +371 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/index.d.ts +5 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDEToken.d.ts +226 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +291 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IIndexToken.d.ts +187 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +505 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACToken.d.ts +346 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +397 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IveRAACToken.d.ts +362 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +7 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseVault.d.ts +83 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/curve/ICurveCrvUSDVault.d.ts +144 -0
- package/dist/types/typechain-types/contracts/interfaces/curve/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/index.d.ts +13 -0
- package/dist/types/typechain-types/contracts/interfaces/zeno/IAuction.d.ts +122 -0
- package/dist/types/typechain-types/contracts/interfaces/zeno/IZENO.d.ts +186 -0
- package/dist/types/typechain-types/contracts/interfaces/zeno/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/libraries/governance/BoostCalculator.d.ts +42 -0
- package/dist/types/typechain-types/contracts/libraries/governance/Checkpoints.d.ts +55 -0
- package/dist/types/typechain-types/contracts/libraries/governance/LockManager.d.ts +87 -0
- package/dist/types/typechain-types/contracts/libraries/governance/PowerCheckpoint.d.ts +60 -0
- package/dist/types/typechain-types/contracts/libraries/governance/RAACVoting.d.ts +45 -0
- package/dist/types/typechain-types/contracts/libraries/governance/VotingPowerLib.d.ts +66 -0
- package/dist/types/typechain-types/contracts/libraries/governance/index.d.ts +6 -0
- package/dist/types/typechain-types/contracts/libraries/index.d.ts +8 -0
- package/dist/types/typechain-types/contracts/libraries/math/TimeWeightedAverage.d.ts +104 -0
- package/dist/types/typechain-types/contracts/libraries/math/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/libraries/pools/ReserveLibrary.d.ts +124 -0
- package/dist/types/typechain-types/contracts/libraries/pools/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/libraries/utils/StringUtils.d.ts +20 -0
- package/dist/types/typechain-types/contracts/libraries/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/collectors/MockTreasury.d.ts +169 -0
- package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/MockBaseGauge.d.ts +845 -0
- package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/MockGaugeController.d.ts +29 -0
- package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/governance/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +76 -0
- package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +14 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/IFunctionsRouter.d.ts +41 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter.d.ts +45 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockOracle.d.ts +43 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockVRFCoordinatorV2.d.ts +530 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/TestRAACHousePriceOracle.d.ts +204 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/TestRAACPrimeRateOracle.d.ts +211 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +6 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPool.d.ts +121 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolCollector.d.ts +156 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +994 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLiquidityPool.d.ts +486 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockPool.d.ts +55 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockStabilityPool.d.ts +69 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +6 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockContract.d.ts +29 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockContractWithConfig.d.ts +39 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts +35 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/RAACHousePricesMock.d.ts +47 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/CrvUSDToken.d.ts +212 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/ERC20Mock.d.ts +155 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/ERC721Mock.d.ts +229 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockCollectableUnderlying.d.ts +292 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockFeeCollectorToken.d.ts +220 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockToken.d.ts +191 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockUSDC.d.ts +155 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockVeToken.d.ts +510 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/RAACMockERC20.d.ts +186 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +9 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/MockVault.d.ts +290 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/index.d.ts +6 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/MockStringUtils.d.ts +25 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/BoostCalculatorMock.d.ts +275 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/CheckpointsMock.d.ts +83 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/LockManagerMock.d.ts +163 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/PowerCheckpointMock.d.ts +141 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/RAACVotingMock.d.ts +41 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/VotingPowerMock.d.ts +281 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/index.d.ts +6 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +7 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/math/TimeWeightedAverageMock.d.ts +203 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/math/WadRayMathMock.d.ts +78 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/math/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/pools/ReserveLibraryMock.d.ts +225 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/pools/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/tests/MaliciousDeposit.d.ts +29 -0
- package/dist/types/typechain-types/contracts/mocks/tests/MaliciousWithdraw.d.ts +29 -0
- package/dist/types/typechain-types/contracts/mocks/tests/VeRAACFuzzHelper.d.ts +71 -0
- package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl.d.ts +25 -0
- package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper.d.ts +100 -0
- package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/tests/index.d.ts +5 -0
- package/dist/types/typechain-types/contracts/zeno/Auction.d.ts +215 -0
- package/dist/types/typechain-types/contracts/zeno/AuctionFactory.d.ts +177 -0
- package/dist/types/typechain-types/contracts/zeno/ZENO.d.ts +237 -0
- package/dist/types/typechain-types/contracts/zeno/ZENOFactory.d.ts +151 -0
- package/dist/types/typechain-types/contracts/zeno/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/FunctionsClient__factory.d.ts +49 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsClient__factory.d.ts +25 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsRouter__factory.d.ts +268 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/FunctionsRequest__factory.d.ts +48 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwnerWithProposal__factory.d.ts +90 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner__factory.d.ts +86 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/IOwnable__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +171 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.d.ts +181 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.d.ts +157 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +64 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.d.ts +46 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.d.ts +83 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.d.ts +71 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.d.ts +83 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +241 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +147 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit__factory.d.ts +402 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.d.ts +177 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.d.ts +65 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts +46 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.d.ts +337 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.d.ts +227 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable__factory.d.ts +395 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable__factory.d.ts +269 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.d.ts +261 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.d.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.d.ts +42 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Nonces__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Pausable__factory.d.ts +45 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/ReentrancyGuard__factory.d.ts +11 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/ShortStrings__factory.d.ts +34 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.d.ts +34 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.d.ts +42 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/EIP712__factory.d.ts +58 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +9 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.d.ts +21 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts +21 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/Math__factory.d.ts +26 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.d.ts +62 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts +82 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts +25 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts +25 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable__factory.d.ts +63 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +1362 -0
- package/dist/types/typechain-types/factories/contracts/core/collectors/Treasury__factory.d.ts +386 -0
- package/dist/types/typechain-types/factories/contracts/core/collectors/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/boost/BoostController__factory.d.ts +716 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/boost/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/BaseGauge__factory.d.ts +1083 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +1124 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +1154 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +1154 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/Governance__factory.d.ts +976 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/TimelockController__factory.d.ts +773 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/index.d.ts +7 -0
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +1132 -0
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +680 -0
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/minters/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseChainlinkFunctionsOracle__factory.d.ts +205 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +231 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +275 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +286 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +2160 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +390 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +897 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +231 -0
- package/dist/types/typechain-types/factories/contracts/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/DEToken__factory.d.ts +671 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +747 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +602 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/LPToken__factory.d.ts +401 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +1143 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +652 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +941 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1264 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/index.d.ts +8 -0
- package/dist/types/typechain-types/factories/contracts/index.d.ts +5 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IERC20__factory.d.ts +147 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IHousePrices__factory.d.ts +21 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/INFTLiquidator__factory.d.ts +65 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IPoolManager__factory.d.ts +43 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IReserveAllocationLibraryMock__factory.d.ts +189 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IUSDC__factory.d.ts +147 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IveRAACDistributor__factory.d.ts +75 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IBaseCollector__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +715 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/ITreasury__factory.d.ts +165 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/IBoostController__factory.d.ts +295 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeController__factory.d.ts +449 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGauge__factory.d.ts +307 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/IGovernance__factory.d.ts +878 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/ITimelockController__factory.d.ts +468 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +7 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +424 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +279 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +78 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IRAACHousePrices__factory.d.ts +146 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +233 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +1170 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +481 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDEToken__factory.d.ts +256 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +392 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IIndexToken__factory.d.ts +227 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +627 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACToken__factory.d.ts +436 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +496 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IveRAACToken__factory.d.ts +435 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +7 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/IBaseVault__factory.d.ts +137 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/curve/ICurveCrvUSDVault__factory.d.ts +194 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/curve/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +10 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/zeno/IAuction__factory.d.ts +126 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/zeno/IZENO__factory.d.ts +246 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/zeno/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/BoostCalculator__factory.d.ts +54 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/Checkpoints__factory.d.ts +68 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/LockManager__factory.d.ts +111 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/PowerCheckpoint__factory.d.ts +69 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/RAACVoting__factory.d.ts +92 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/VotingPowerLib__factory.d.ts +74 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/index.d.ts +6 -0
- package/dist/types/typechain-types/factories/contracts/libraries/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/libraries/math/TimeWeightedAverage__factory.d.ts +125 -0
- package/dist/types/typechain-types/factories/contracts/libraries/math/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +135 -0
- package/dist/types/typechain-types/factories/contracts/libraries/pools/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/libraries/utils/StringUtils__factory.d.ts +26 -0
- package/dist/types/typechain-types/factories/contracts/libraries/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockTreasury__factory.d.ts +212 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +1194 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockGaugeController__factory.d.ts +50 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +100 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +7 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/IFunctionsRouter__factory.d.ts +37 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter__factory.d.ts +66 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +62 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockVRFCoordinatorV2__factory.d.ts +620 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +293 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +304 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +5 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +234 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +1202 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +199 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +795 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockPool__factory.d.ts +84 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +109 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +6 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockContractWithConfig__factory.d.ts +53 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockContract__factory.d.ts +42 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +68 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/RAACHousePricesMock__factory.d.ts +64 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/CrvUSDToken__factory.d.ts +379 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/ERC20Mock__factory.d.ts +282 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/ERC721Mock__factory.d.ts +388 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +451 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockFeeCollectorToken__factory.d.ts +407 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockToken__factory.d.ts +338 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockUSDC__factory.d.ts +278 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockVeToken__factory.d.ts +714 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/RAACMockERC20__factory.d.ts +335 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +9 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +525 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +40 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/BoostCalculatorMock__factory.d.ts +351 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/CheckpointsMock__factory.d.ts +124 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/LockManagerMock__factory.d.ts +197 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/PowerCheckpointMock__factory.d.ts +183 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RAACVotingMock__factory.d.ts +70 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/VotingPowerMock__factory.d.ts +341 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/index.d.ts +6 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/TimeWeightedAverageMock__factory.d.ts +247 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/WadRayMathMock__factory.d.ts +154 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +277 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/tests/MaliciousDeposit__factory.d.ts +53 -0
- package/dist/types/typechain-types/factories/contracts/mocks/tests/MaliciousWithdraw__factory.d.ts +53 -0
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +80 -0
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl__factory.d.ts +17 -0
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper__factory.d.ts +113 -0
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/tests/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/zeno/AuctionFactory__factory.d.ts +250 -0
- package/dist/types/typechain-types/factories/contracts/zeno/Auction__factory.d.ts +320 -0
- package/dist/types/typechain-types/factories/contracts/zeno/ZENOFactory__factory.d.ts +223 -0
- package/dist/types/typechain-types/factories/contracts/zeno/ZENO__factory.d.ts +488 -0
- package/dist/types/typechain-types/factories/contracts/zeno/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/index.d.ts +3 -0
- package/dist/types/typechain-types/index.d.ts +329 -0
- package/dist/types/utils/artifacts.d.ts +2265 -0
- package/dist/types/utils/chain.d.ts +13 -0
- package/dist/types/utils/config.d.ts +0 -0
- package/dist/types/utils/contracts.d.ts +22 -0
- package/dist/types/wallet/assets/approveAsset.d.ts +5 -0
- package/dist/types/wallet/assets/burnAsset.d.ts +5 -0
- package/dist/types/wallet/assets/getAllowance.d.ts +5 -0
- package/dist/types/wallet/assets/getAsset.d.ts +4 -0
- package/dist/types/wallet/assets/getAssets.d.ts +4 -0
- package/dist/types/wallet/assets/getBalance.d.ts +5 -0
- package/dist/types/wallet/assets/mintAsset.d.ts +5 -0
- package/dist/types/wallet/assets/transferAsset.d.ts +5 -0
- package/dist/utils/artifacts.js +74 -0
- package/dist/utils/chain.js +92 -0
- package/{utils/config.ts → dist/utils/config.js} +0 -6
- package/dist/utils/contracts.js +81 -0
- package/dist/wallet/assets/approveAsset.js +35 -0
- package/dist/wallet/assets/burnAsset.js +46 -0
- package/dist/wallet/assets/getAllowance.js +26 -0
- package/dist/wallet/assets/getAsset.js +22 -0
- package/dist/wallet/assets/getAssets.js +26 -0
- package/dist/wallet/assets/getBalance.js +24 -0
- package/dist/wallet/assets/mintAsset.js +47 -0
- package/dist/wallet/assets/transferAsset.js +62 -0
- package/package.json +34 -25
- package/RPCLibrary.ts +0 -358
- package/assets/getAsset.ts +0 -26
- package/assets/getAssets.ts +0 -30
- package/assets/getSupply.ts +0 -23
- package/configs/chains/8453.json +0 -116
- package/configs/chains/chain.d.ts +0 -87
- package/configs/chains/index.ts +0 -13
- package/configs/chains/list.json +0 -3
- package/configs/createConfig.ts +0 -91
- package/configs/index.ts +0 -51
- package/contracts/crvUSDToken/getBalance.ts +0 -23
- package/contracts/crvUSDToken/getTotalSupply.ts +0 -36
- package/contracts/getContract.ts +0 -21
- package/contracts/getContractAddress.ts +0 -61
- package/contracts/housePrices/getLatestPrice.ts +0 -38
- package/contracts/housePrices/setOracle.ts +0 -40
- package/contracts/rcrvUSDToken/getBalance.ts +0 -23
- package/contracts/rcrvUSDToken/getTotalSupply.ts +0 -39
- package/contracts/zeno/createAuction.ts +0 -57
- package/contracts/zeno/createZeno.ts +0 -45
- package/contracts/zeno/getAuctions.ts +0 -38
- package/contracts/zeno/getZenos.ts +0 -38
- package/custom-types.d.ts +0 -20
- package/methods/approveToken.ts +0 -47
- package/methods/commons/checkAllowance.ts +0 -36
- package/methods/commons/estimateGasPrice.ts +0 -21
- package/methods/debug/mintToken.js +0 -83
- package/methods/getAssetBalance.ts +0 -47
- package/methods/getAssetsBalance.ts +0 -9
- package/minter/get.ts +0 -150
- package/minter/getApy.ts +0 -37
- package/minter/tick.ts +0 -40
- package/nfts/addNewBatch.ts +0 -37
- package/nfts/getCurrentBatchSize.ts +0 -26
- package/nfts/getDepositedNFTs.ts +0 -31
- package/nfts/getHousePrice.ts +0 -30
- package/nfts/getOwnedNFTs.ts +0 -46
- package/nfts/mint.ts +0 -43
- package/nfts/setBaseUri.ts +0 -33
- package/pools/lendingPool/borrowFromLendingPool.ts +0 -39
- package/pools/lendingPool/depositNFTToLendingPool.ts +0 -70
- package/pools/lendingPool/depositToLendingPool.ts +0 -52
- package/pools/lendingPool/getHousePrice.ts +0 -46
- package/pools/lendingPool/getLendingPoolInfo.ts +0 -153
- package/pools/lendingPool/getLendingPoolTotalLiquidity.ts +0 -32
- package/pools/lendingPool/repayToLendingPool.ts +0 -52
- package/pools/lendingPool/withdrawFromLendingPool.ts +0 -68
- package/pools/lendingPool/withdrawNFTFromLendingPool.ts +0 -39
- package/pools/liquidityPool/getLiquidityPoolInfo.ts +0 -90
- package/pools/stabilityPool/calculateRAACRewards.ts +0 -37
- package/pools/stabilityPool/depositToStabilityPool.ts +0 -47
- package/pools/stabilityPool/getStabilityPoolInfo.ts +0 -121
- package/pools/stabilityPool/getStabilityPoolTotalDeposits.ts +0 -27
- package/pools/stabilityPool/withdrawFromStabilityPool.ts +0 -47
- package/sync-contracts.sh +0 -63
- package/tests/test.ts +0 -40
- package/tsconfig.json +0 -113
- package/utils/artifacts.ts +0 -66
- package/utils/chain.ts +0 -94
- package/utils/contracts.ts +0 -94
- package/wallet/assets/approveAsset.ts +0 -44
- package/wallet/assets/burnAsset.ts +0 -55
- package/wallet/assets/getAllowance.ts +0 -38
- package/wallet/assets/getAsset.ts +0 -33
- package/wallet/assets/getAssets.ts +0 -35
- package/wallet/assets/getBalance.ts +0 -34
- package/wallet/assets/mintAsset.ts +0 -57
- package/wallet/assets/transferAsset.ts +0 -78
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { Eip1193Provider, ethers, JsonRpcSigner, Provider, Signer } from "ethers";
|
|
2
|
+
import checkAllowance from "./methods/commons/checkAllowance";
|
|
3
|
+
import { getChainsConfig, setChainConfig } from "./configs/index";
|
|
4
|
+
import getAsset from "./assets/getAsset";
|
|
5
|
+
import getSupply from "./assets/getSupply";
|
|
6
|
+
import getAssets from "./assets/getAssets";
|
|
7
|
+
import getStabilityPoolInfo from "./pools/stabilityPool/getStabilityPoolInfo";
|
|
8
|
+
import depositToStabilityPool from "./pools/stabilityPool/depositToStabilityPool";
|
|
9
|
+
import withdrawFromStabilityPool from "./pools/stabilityPool/withdrawFromStabilityPool";
|
|
10
|
+
import calculateRAACRewards from "./pools/stabilityPool/calculateRAACRewards";
|
|
11
|
+
import getStabilityPoolTotalDeposits from "./pools/stabilityPool/getStabilityPoolTotalDeposits";
|
|
12
|
+
import getLendingPoolInfo from "./pools/lendingPool/getLendingPoolInfo";
|
|
13
|
+
import depositToLendingPool from "./pools/lendingPool/depositToLendingPool";
|
|
14
|
+
import withdrawFromLendingPool from "./pools/lendingPool/withdrawFromLendingPool";
|
|
15
|
+
import getLendingPoolTotalLiquidity from "./pools/lendingPool/getLendingPoolTotalLiquidity";
|
|
16
|
+
import borrowFromLendingPool from "./pools/lendingPool/borrowFromLendingPool";
|
|
17
|
+
import repayToLendingPool from "./pools/lendingPool/repayToLendingPool";
|
|
18
|
+
import depositNFTToLendingPool from "./pools/lendingPool/depositNFTToLendingPool";
|
|
19
|
+
import withdrawNFTFromLendingPool from "./pools/lendingPool/withdrawNFTFromLendingPool";
|
|
20
|
+
import getHousePrice from "./pools/lendingPool/getHousePrice";
|
|
21
|
+
import mintNFT from "./nfts/mint";
|
|
22
|
+
import getNFTHousePrice from "./nfts/getHousePrice";
|
|
23
|
+
import setNFTBaseUri from "./nfts/setBaseUri";
|
|
24
|
+
import getTokensByOwner from "./nfts/getTokensByOwner";
|
|
25
|
+
import getContractAddress from "./contracts/getContractAddress";
|
|
26
|
+
import getContract from "./contracts/getContract";
|
|
27
|
+
import getLatestPrice from "./contracts/housePrices/getLatestPrice";
|
|
28
|
+
import setOracle from "./contracts/housePrices/setOracle";
|
|
29
|
+
import tick from "./minter/tick";
|
|
30
|
+
import get from "./minter/get";
|
|
31
|
+
import getApy from "./minter/getApy";
|
|
32
|
+
import mintAsset from "./wallet/assets/mintAsset";
|
|
33
|
+
import burnAsset from "./wallet/assets/burnAsset";
|
|
34
|
+
import approveAsset from "./wallet/assets/approveAsset";
|
|
35
|
+
import getWalletAssets from "./wallet/assets/getAssets";
|
|
36
|
+
import getWalletAsset from "./wallet/assets/getAsset";
|
|
37
|
+
import getWalletAllowance from "./wallet/assets/getAllowance";
|
|
38
|
+
import getWalletBalance from "./wallet/assets/getBalance";
|
|
39
|
+
import transferAsset from "./wallet/assets/transferAsset";
|
|
40
|
+
import getAuctions from "./contracts/zeno/getAuctions";
|
|
41
|
+
import createAuction from "./contracts/zeno/createAuction";
|
|
42
|
+
import createZeno from "./contracts/zeno/createZeno";
|
|
43
|
+
import getZenos from "./contracts/zeno/getZenos";
|
|
44
|
+
import { ChainId } from "./configs/chains";
|
|
45
|
+
import getBaseUri from "./nfts/getBaseUri";
|
|
46
|
+
import getAllUserData from "./pools/lendingPool/getAllUserData";
|
|
47
|
+
import claimRewardFromPool from "./contracts/feeCollector/claimRewardFromPool";
|
|
48
|
+
import claimReward from "./pools/lendingPool/claimReward";
|
|
49
|
+
import getPendingReward from "./pools/lendingPool/getPendingReward";
|
|
50
|
+
import getRawUserDepositsInLendingPool from "./pools/lendingPool/getRawUserDepositsInLendingPool";
|
|
51
|
+
import getRawUserDepositInStabilityPool from "./pools/stabilityPool/getRawUserDepositsInStabilityPool";
|
|
52
|
+
import getEligibleUserDeposits from "./pools/lendingPool/getEligibleUserDeposits";
|
|
53
|
+
import getMintPrice from "./nfts/getMintPrice";
|
|
54
|
+
import getMintFeePercentage from "./nfts/getMintFeePercentage";
|
|
55
|
+
import getAllTokens from "./nfts/getAllTokens";
|
|
56
|
+
import totalNFTSupply from "./nfts/totalNFTSupply";
|
|
57
|
+
import getTokenURI from "./nfts/getTokenURI";
|
|
58
|
+
import getHealthFactor from "./pools/lendingPool/getHealthFactor";
|
|
59
|
+
import getPositionDebt from "./pools/lendingPool/getPositionDebt";
|
|
60
|
+
import getPositionScaledDebt from "./pools/lendingPool/getPositionScaledDebt";
|
|
61
|
+
import getPositionsScaledDebt from "./pools/lendingPool/getPositionsScaledDebt";
|
|
62
|
+
import getPositionView from "./pools/lendingPool/getPositionView";
|
|
63
|
+
import getUserCollateralValue from "./pools/lendingPool/getUserCollateralValue";
|
|
64
|
+
import initializeLiquidation from "./pools/lendingPool/initializeLiquidation";
|
|
65
|
+
import closeLiquidation from "./pools/lendingPool/closeLiquidation";
|
|
66
|
+
import borrowFromLendingPoolWithInsurance from "./pools/lendingPool/borrowFromLendingPoolWithInsurance";
|
|
67
|
+
import depositNFTToStabilityPool from "./pools/stabilityPool/depositNFTToStabilityPool";
|
|
68
|
+
import redeemNFT from "./contracts/indexToken/redeemNFT";
|
|
69
|
+
import getNextRandomNFT from "./contracts/indexToken/getNextRandomNFT";
|
|
70
|
+
import calculateInsuranceFee from "./pools/lendingPool/calculateInsuranceFee";
|
|
71
|
+
import getTotalPropertiesCount from "./nfts/getTotalPropertiesCount";
|
|
72
|
+
declare class RPCLibrary {
|
|
73
|
+
signer: Signer | null;
|
|
74
|
+
isConnected: boolean;
|
|
75
|
+
address: JsonRpcSigner | string;
|
|
76
|
+
chainId: ChainId | bigint | null;
|
|
77
|
+
privateKey: any;
|
|
78
|
+
assets: {
|
|
79
|
+
getAsset: typeof getAsset;
|
|
80
|
+
getAssets: typeof getAssets;
|
|
81
|
+
getSupply: typeof getSupply;
|
|
82
|
+
};
|
|
83
|
+
wallet: {
|
|
84
|
+
assets: {
|
|
85
|
+
getBalance: typeof getWalletBalance;
|
|
86
|
+
getAllowance: typeof getWalletAllowance;
|
|
87
|
+
getAsset: typeof getWalletAsset;
|
|
88
|
+
getAssets: typeof getWalletAssets;
|
|
89
|
+
transferAsset: typeof transferAsset;
|
|
90
|
+
approveAsset: typeof approveAsset;
|
|
91
|
+
mintAsset: typeof mintAsset;
|
|
92
|
+
burnAsset: typeof burnAsset;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
nfts: {
|
|
96
|
+
getBaseUri: typeof getBaseUri;
|
|
97
|
+
mint: typeof mintNFT;
|
|
98
|
+
getHousePrice: typeof getNFTHousePrice;
|
|
99
|
+
getTokensByOwner: typeof getTokensByOwner;
|
|
100
|
+
setBaseUri: typeof setNFTBaseUri;
|
|
101
|
+
totalSupply: typeof totalNFTSupply;
|
|
102
|
+
getMintPrice: typeof getMintPrice;
|
|
103
|
+
getMintFeePercentage: typeof getMintFeePercentage;
|
|
104
|
+
getAllTokens: typeof getAllTokens;
|
|
105
|
+
getTokenURI: typeof getTokenURI;
|
|
106
|
+
getTotalPropertiesCount: typeof getTotalPropertiesCount;
|
|
107
|
+
};
|
|
108
|
+
contracts: {
|
|
109
|
+
housePrices: {
|
|
110
|
+
getLatestPrice: typeof getLatestPrice;
|
|
111
|
+
setOracle: typeof setOracle;
|
|
112
|
+
};
|
|
113
|
+
minter: {
|
|
114
|
+
tick: typeof tick;
|
|
115
|
+
get: typeof get;
|
|
116
|
+
getApy: typeof getApy;
|
|
117
|
+
};
|
|
118
|
+
getContractAddress: typeof getContractAddress;
|
|
119
|
+
getContract: typeof getContract;
|
|
120
|
+
feeCollector: {
|
|
121
|
+
claimRewardFromPool: typeof claimRewardFromPool;
|
|
122
|
+
};
|
|
123
|
+
indexToken: {
|
|
124
|
+
getNextRandomNFT: typeof getNextRandomNFT;
|
|
125
|
+
redeemNFT: typeof redeemNFT;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
pools: {
|
|
129
|
+
stabilityPool: {
|
|
130
|
+
getStabilityPoolInfo: typeof getStabilityPoolInfo;
|
|
131
|
+
depositToStabilityPool: typeof depositToStabilityPool;
|
|
132
|
+
withdrawFromStabilityPool: typeof withdrawFromStabilityPool;
|
|
133
|
+
calculateRAACRewards: typeof calculateRAACRewards;
|
|
134
|
+
getRawUserDepositInStabilityPool: typeof getRawUserDepositInStabilityPool;
|
|
135
|
+
depositNFTToStabilityPool: typeof depositNFTToStabilityPool;
|
|
136
|
+
};
|
|
137
|
+
lendingPool: {
|
|
138
|
+
repayToLendingPool: typeof repayToLendingPool;
|
|
139
|
+
borrowFromLendingPool: typeof borrowFromLendingPool;
|
|
140
|
+
getHousePrice: typeof getHousePrice;
|
|
141
|
+
depositNFTToLendingPool: typeof depositNFTToLendingPool;
|
|
142
|
+
withdrawNFTFromLendingPool: typeof withdrawNFTFromLendingPool;
|
|
143
|
+
getLendingPoolInfo: typeof getLendingPoolInfo;
|
|
144
|
+
getAllUserData: typeof getAllUserData;
|
|
145
|
+
claimReward: typeof claimReward;
|
|
146
|
+
getPendingReward: typeof getPendingReward;
|
|
147
|
+
getRawUserDepositsInLendingPool: typeof getRawUserDepositsInLendingPool;
|
|
148
|
+
getEligibleUserDeposits: typeof getEligibleUserDeposits;
|
|
149
|
+
getHealthFactor: typeof getHealthFactor;
|
|
150
|
+
getPositionDebt: typeof getPositionDebt;
|
|
151
|
+
getPositionScaledDebt: typeof getPositionScaledDebt;
|
|
152
|
+
getPositionsScaledDebt: typeof getPositionsScaledDebt;
|
|
153
|
+
getPositionView: typeof getPositionView;
|
|
154
|
+
getUserCollateralValue: typeof getUserCollateralValue;
|
|
155
|
+
depositToLendingPool: typeof depositToLendingPool;
|
|
156
|
+
initializeLiquidation: typeof initializeLiquidation;
|
|
157
|
+
closeLiquidation: typeof closeLiquidation;
|
|
158
|
+
borrowFromLendingPoolWithInsurance: typeof borrowFromLendingPoolWithInsurance;
|
|
159
|
+
calculateInsuranceFee: typeof calculateInsuranceFee;
|
|
160
|
+
};
|
|
161
|
+
depositToLendingPool: typeof depositToLendingPool;
|
|
162
|
+
withdrawFromLendingPool: typeof withdrawFromLendingPool;
|
|
163
|
+
getLendingPoolTotalLiquidity: typeof getLendingPoolTotalLiquidity;
|
|
164
|
+
calculateRAACRewards: typeof calculateRAACRewards;
|
|
165
|
+
repayToLendingPool: typeof repayToLendingPool;
|
|
166
|
+
borrowFromLendingPool: typeof borrowFromLendingPool;
|
|
167
|
+
getHousePrice: typeof getHousePrice;
|
|
168
|
+
getStabilityPoolTotalDeposits: typeof getStabilityPoolTotalDeposits;
|
|
169
|
+
getStabilityPoolInfo: typeof getStabilityPoolInfo;
|
|
170
|
+
depositToStabilityPool: typeof depositToStabilityPool;
|
|
171
|
+
withdrawFromStabilityPool: typeof withdrawFromStabilityPool;
|
|
172
|
+
};
|
|
173
|
+
zeno: {
|
|
174
|
+
createAuction: typeof createAuction;
|
|
175
|
+
getAuctions: typeof getAuctions;
|
|
176
|
+
createZeno: typeof createZeno;
|
|
177
|
+
getZenos: typeof getZenos;
|
|
178
|
+
};
|
|
179
|
+
provider: any;
|
|
180
|
+
estimateGasPrice: any;
|
|
181
|
+
checkAllowance: typeof checkAllowance;
|
|
182
|
+
getChainsConfig: typeof getChainsConfig;
|
|
183
|
+
setChainsConfig: typeof setChainConfig;
|
|
184
|
+
constructor(privateKey?: string);
|
|
185
|
+
getWallet(privateKey: string, provider: Provider): Promise<ethers.JsonRpcSigner | ethers.Wallet>;
|
|
186
|
+
getProvider(chainId: ChainId): Promise<ethers.BrowserProvider | ethers.JsonRpcProvider>;
|
|
187
|
+
getSigner(chainId: ChainId, address: string): Promise<ethers.JsonRpcSigner>;
|
|
188
|
+
connectWallet(): Promise<void>;
|
|
189
|
+
checkConnection(): Promise<void>;
|
|
190
|
+
mineBlock(wallet: Eip1193Provider): Promise<void>;
|
|
191
|
+
}
|
|
192
|
+
export default RPCLibrary;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Chain8453 } from "./chain";
|
|
2
|
+
declare const chains: {
|
|
3
|
+
8453: Chain8453;
|
|
4
|
+
17000: Chain8453;
|
|
5
|
+
};
|
|
6
|
+
export default chains;
|
|
7
|
+
export declare const configs: {
|
|
8
|
+
8453: Chain8453;
|
|
9
|
+
17000: Chain8453;
|
|
10
|
+
};
|
|
11
|
+
export type Configs = typeof chains;
|
|
12
|
+
export type ConfigKeys = keyof Configs;
|
|
13
|
+
export type ChainId = ConfigKeys | string | number;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ChainId } from "./chains";
|
|
2
|
+
declare function createConfig(chainId: ChainId): {
|
|
3
|
+
chainId: ChainId;
|
|
4
|
+
name: string;
|
|
5
|
+
rpcs: string[];
|
|
6
|
+
contracts: {
|
|
7
|
+
raachouseprices: {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
contract: string;
|
|
11
|
+
};
|
|
12
|
+
raacminter: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
contract: string;
|
|
16
|
+
};
|
|
17
|
+
auctionfactory: {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
contract: string;
|
|
21
|
+
};
|
|
22
|
+
zenofactory: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
contract: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
pools: {
|
|
29
|
+
stabilitypool: {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
contract: string;
|
|
33
|
+
};
|
|
34
|
+
lendingpool: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
contract: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
nfts: {
|
|
41
|
+
raacnft: {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
contract: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
assets: {
|
|
48
|
+
eth: {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
decimals: number;
|
|
52
|
+
contract: string;
|
|
53
|
+
};
|
|
54
|
+
crvusd: {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
decimals: number;
|
|
58
|
+
contract: string;
|
|
59
|
+
};
|
|
60
|
+
rtoken: {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
decimals: number;
|
|
64
|
+
contract: string;
|
|
65
|
+
};
|
|
66
|
+
detoken: {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
decimals: number;
|
|
70
|
+
contract: string;
|
|
71
|
+
};
|
|
72
|
+
raactoken: {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
decimals: number;
|
|
76
|
+
contract: string;
|
|
77
|
+
};
|
|
78
|
+
veraac: {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
decimals: number;
|
|
82
|
+
contract: string;
|
|
83
|
+
};
|
|
84
|
+
indextoken: {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
decimals: number;
|
|
88
|
+
contract: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export default createConfig;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChainId } from "./chains/index";
|
|
2
|
+
declare function getChainsConfig(): {
|
|
3
|
+
8453: import("./chains/chain").Chain8453;
|
|
4
|
+
17000: import("./chains/chain").Chain8453;
|
|
5
|
+
};
|
|
6
|
+
declare function setChainConfig(chainId: ChainId, config: any): void;
|
|
7
|
+
declare function getChainConfig(chainId: ChainId): any;
|
|
8
|
+
declare const _default: {
|
|
9
|
+
getChainsConfig: typeof getChainsConfig;
|
|
10
|
+
getChainConfig: typeof getChainConfig;
|
|
11
|
+
setChainConfig: typeof setChainConfig;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export { getChainsConfig, getChainConfig, setChainConfig };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ConfigKeys } from "../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param {string} contractAddress
|
|
6
|
+
* @param {number} chainId
|
|
7
|
+
* @param {ethers.JsonRpcProvider} [provider]
|
|
8
|
+
* @returns {Promise<string>}
|
|
9
|
+
*/
|
|
10
|
+
export declare const getTotalSupply: (chainId: ConfigKeys, contractAddress: string, provider: Provider) => Promise<string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChainId } from "../configs/chains";
|
|
2
|
+
import { ContractType } from "../utils/artifacts";
|
|
3
|
+
/**
|
|
4
|
+
* Get the contract address for a given asset on a specific chain
|
|
5
|
+
* @param {number} chainId
|
|
6
|
+
* @param {string} contractName
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
export declare const getContractAddress: (chainId: ChainId, contractName: ContractType) => any;
|
|
10
|
+
export default getContractAddress;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains/index";
|
|
3
|
+
declare function getLatestPrice(chainId: ChainId, tokenId: string, provider: Provider): Promise<{
|
|
4
|
+
price: bigint;
|
|
5
|
+
timestamp: bigint;
|
|
6
|
+
} | {
|
|
7
|
+
price: bigint;
|
|
8
|
+
timestamp: number;
|
|
9
|
+
}>;
|
|
10
|
+
export default getLatestPrice;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param {string} contractAddress
|
|
6
|
+
* @param {number} chainId
|
|
7
|
+
* @param {ethers.JsonRpcProvider} [provider]
|
|
8
|
+
* @returns {Promise<string>}
|
|
9
|
+
*/
|
|
10
|
+
export declare const getTotalSupply: (chainId: ChainId, contractAddress: string, provider: Provider) => Promise<string>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains/index";
|
|
3
|
+
declare function createAuction(chainId: ChainId, zenoAddress: string, usdcAddress: string, businessAddress: string, auctionStartTime: bigint, auctionEndTime: bigint, startingPrice: bigint, reservePrice: bigint, totalZenoAllocated: bigint, signer: Signer): Promise<void>;
|
|
4
|
+
export default createAuction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../configs/chains/index";
|
|
3
|
+
import { ContractType } from "../utils/artifacts";
|
|
4
|
+
declare const approveToken: (chainId: ChainId, tokenSymbol: ContractType, spender: string, amount: string, signer: Signer) => Promise<any>;
|
|
5
|
+
export default approveToken;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ContractType } from "../../utils/artifacts";
|
|
3
|
+
import { ChainId } from "../../configs/chains/index";
|
|
4
|
+
declare const checkAllowance: (chainId: ChainId, tokenId: ContractType, address: string, spenderAddress: string, provider: Provider) => Promise<bigint>;
|
|
5
|
+
export default checkAllowance;
|
|
6
|
+
export { checkAllowance };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
export declare const estimateGasPrice: (signer: Signer) => Promise<{
|
|
3
|
+
maxFeePerGas: bigint;
|
|
4
|
+
maxPriorityFeePerGas: bigint;
|
|
5
|
+
gasPrice?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
gasPrice: any;
|
|
8
|
+
maxFeePerGas?: undefined;
|
|
9
|
+
maxPriorityFeePerGas?: undefined;
|
|
10
|
+
}>;
|
|
11
|
+
export default estimateGasPrice;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../configs/chains/index";
|
|
3
|
+
import { AssetType } from "../utils/artifacts";
|
|
4
|
+
declare const getAssetBalance: (chainId: ChainId, address: string, assetId: AssetType, signer: Signer) => Promise<string>;
|
|
5
|
+
export default getAssetBalance;
|
|
6
|
+
export { getAssetBalance };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../configs/chains/index";
|
|
3
|
+
declare function get(chainId: ChainId, signer: Signer): Promise<{
|
|
4
|
+
emissionRate: bigint;
|
|
5
|
+
benchmarkRate: bigint;
|
|
6
|
+
minEmissionRate: bigint;
|
|
7
|
+
maxEmissionRate: bigint;
|
|
8
|
+
utilizationTarget: bigint;
|
|
9
|
+
excessTokens: bigint;
|
|
10
|
+
lastUpdateBlock: bigint;
|
|
11
|
+
raacToken: string | bigint;
|
|
12
|
+
stabilityPool: string | bigint;
|
|
13
|
+
lendingPool: string | bigint;
|
|
14
|
+
owner: string | bigint;
|
|
15
|
+
BLOCKS_PER_DAY: bigint;
|
|
16
|
+
}>;
|
|
17
|
+
export default get;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../configs/chains/index";
|
|
3
|
+
declare function getTokensByOwner(chainId: ChainId, address: string, provider: Provider, pagination?: {
|
|
4
|
+
offset: number;
|
|
5
|
+
limit: number;
|
|
6
|
+
}): Promise<{
|
|
7
|
+
address: string;
|
|
8
|
+
tokens: string[];
|
|
9
|
+
}>;
|
|
10
|
+
export default getTokensByOwner;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ethers, Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains/index";
|
|
3
|
+
declare function borrowFromLendingPool(chainId: ChainId, tokenId: string, amount: string, signer: Signer): Promise<ethers.ContractTransactionReceipt>;
|
|
4
|
+
export default borrowFromLendingPool;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ethers, Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains/index";
|
|
3
|
+
declare function borrowFromLendingPoolWithInsurance(chainId: ChainId, tokenId: string, amount: string, signer: Signer): Promise<ethers.ContractTransactionReceipt>;
|
|
4
|
+
export default borrowFromLendingPoolWithInsurance;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains/index";
|
|
3
|
+
declare function calculateInsuranceFee(chainId: ChainId, address: string, tokenId: string, amount: string, provider: Provider): Promise<string>;
|
|
4
|
+
export default calculateInsuranceFee;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ethers, Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains/index";
|
|
3
|
+
/**
|
|
4
|
+
* @description Close the liqudation after the debt has been paid
|
|
5
|
+
* @param chainId
|
|
6
|
+
* @param address
|
|
7
|
+
* @param provider
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
declare function closeLiquidation(chainId: ChainId, tokenId: string, signer: Signer): Promise<ethers.ContractTransactionResponse>;
|
|
11
|
+
export default closeLiquidation;
|