@raac/rpc 1.0.2-beta.5 → 1.0.2-beta.6
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/package.json +1 -1
- package/utils/artifacts.js +2 -2
- package/dist/RPCLibrary.js +0 -322
- package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +0 -1743
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +0 -1443
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +0 -279
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +0 -2760
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +0 -1146
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +0 -285
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +0 -858
- package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.json +0 -770
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +0 -1472
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +0 -832
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +0 -1205
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +0 -1616
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +0 -774
- package/dist/artifacts/mocks/core/tokens/crvUSDToken.sol/crvUSDToken.json +0 -479
- package/dist/artifacts/zeno/Auction.sol/Auction.json +0 -393
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +0 -307
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +0 -620
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +0 -275
- package/dist/assets/getAsset.js +0 -23
- package/dist/assets/getAssets.js +0 -26
- package/dist/assets/getSupply.js +0 -18
- package/dist/configs/chains/11155111.json +0 -132
- package/dist/configs/chains/17000.json +0 -127
- package/dist/configs/chains/8453.json +0 -127
- package/dist/configs/chains/index.js +0 -17
- package/dist/configs/createConfig.js +0 -95
- package/dist/configs/index.js +0 -43
- package/dist/contracts/crvUSDToken/getBalance.js +0 -17
- package/dist/contracts/crvUSDToken/getTotalSupply.js +0 -31
- package/dist/contracts/feeCollector/claimRewardFromPool.js +0 -24
- package/dist/contracts/getContract.js +0 -18
- package/dist/contracts/getContractAddress.js +0 -50
- package/dist/contracts/housePrices/getLatestPrice.js +0 -21
- package/dist/contracts/housePrices/setOracle.js +0 -24
- package/dist/contracts/indexToken/getNextRandomNFT.js +0 -30
- package/dist/contracts/indexToken/redeemNFT.js +0 -39
- package/dist/contracts/rcrvUSDToken/getBalance.js +0 -14
- package/dist/contracts/rcrvUSDToken/getTotalSupply.js +0 -30
- package/dist/contracts/zeno/createAuction.js +0 -25
- package/dist/contracts/zeno/createZeno.js +0 -26
- package/dist/contracts/zeno/getAuctions.js +0 -28
- package/dist/contracts/zeno/getZenos.js +0 -28
- package/dist/index.js +0 -7
- package/dist/methods/approveToken.js +0 -35
- package/dist/methods/commons/checkAllowance.js +0 -19
- package/dist/methods/commons/estimateGasPrice.js +0 -28
- package/dist/methods/getAssetBalance.js +0 -33
- package/dist/methods/getAssetsBalance.js +0 -4
- package/dist/minter/get.js +0 -121
- package/dist/minter/getApy.js +0 -28
- package/dist/minter/tick.js +0 -33
- package/dist/nfts/getAllTokens.js +0 -34
- package/dist/nfts/getBaseUri.js +0 -23
- package/dist/nfts/getHousePrice.js +0 -19
- package/dist/nfts/getMintFeePercentage.js +0 -23
- package/dist/nfts/getMintPrice.js +0 -28
- package/dist/nfts/getTokenURI.js +0 -23
- package/dist/nfts/getTokensByOwner.js +0 -35
- package/dist/nfts/getTotalPropertiesCount.js +0 -23
- package/dist/nfts/mint.js +0 -24
- package/dist/nfts/setBaseUri.js +0 -24
- package/dist/nfts/totalNFTSupply.js +0 -19
- package/dist/pools/lendingPool/borrowFromLendingPool.js +0 -24
- package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +0 -40
- package/dist/pools/lendingPool/calculateInsuranceFee.js +0 -20
- package/dist/pools/lendingPool/claimReward.js +0 -22
- package/dist/pools/lendingPool/closeLiquidation.js +0 -28
- package/dist/pools/lendingPool/depositNFTToLendingPool.js +0 -50
- package/dist/pools/lendingPool/depositToLendingPool.js +0 -35
- package/dist/pools/lendingPool/getAllUserData.js +0 -28
- package/dist/pools/lendingPool/getEligibleUserDeposits.js +0 -27
- package/dist/pools/lendingPool/getHealthFactor.js +0 -27
- package/dist/pools/lendingPool/getHousePrice.js +0 -26
- package/dist/pools/lendingPool/getLendingPoolInfo.js +0 -109
- package/dist/pools/lendingPool/getLendingPoolTotalLiquidity.js +0 -22
- package/dist/pools/lendingPool/getPendingReward.js +0 -20
- package/dist/pools/lendingPool/getPositionDebt.js +0 -27
- package/dist/pools/lendingPool/getPositionScaledDebt.js +0 -27
- package/dist/pools/lendingPool/getPositionView.js +0 -38
- package/dist/pools/lendingPool/getPositionsScaledDebt.js +0 -27
- package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +0 -21
- package/dist/pools/lendingPool/getUserCollateralValue.js +0 -27
- package/dist/pools/lendingPool/initializeLiquidation.js +0 -28
- package/dist/pools/lendingPool/repayToLendingPool.js +0 -24
- package/dist/pools/lendingPool/withdrawFromLendingPool.js +0 -42
- package/dist/pools/lendingPool/withdrawNFTFromLendingPool.js +0 -24
- package/dist/pools/liquidityPool/getLiquidityPoolInfo.js +0 -73
- package/dist/pools/stabilityPool/calculateRAACRewards.js +0 -21
- package/dist/pools/stabilityPool/depositNFTToStabilityPool.js +0 -40
- package/dist/pools/stabilityPool/depositToStabilityPool.js +0 -34
- package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +0 -21
- package/dist/pools/stabilityPool/getStabilityPoolInfo.js +0 -80
- package/dist/pools/stabilityPool/getStabilityPoolTotalDeposits.js +0 -19
- package/dist/pools/stabilityPool/withdrawFromStabilityPool.js +0 -34
- package/dist/scripts/index.js +0 -138
- package/dist/tests/test.js +0 -32
- package/dist/types/RPCLibrary.d.ts +0 -192
- package/dist/types/assets/getAsset.d.ts +0 -5
- package/dist/types/assets/getAssets.d.ts +0 -4
- package/dist/types/assets/getSupply.d.ts +0 -5
- package/dist/types/configs/chains/index.d.ts +0 -15
- package/dist/types/configs/createConfig.d.ts +0 -92
- package/dist/types/configs/index.d.ts +0 -15
- package/dist/types/contracts/crvUSDToken/getBalance.d.ts +0 -2
- package/dist/types/contracts/crvUSDToken/getTotalSupply.d.ts +0 -10
- package/dist/types/contracts/feeCollector/claimRewardFromPool.d.ts +0 -4
- package/dist/types/contracts/getContract.d.ts +0 -4
- package/dist/types/contracts/getContractAddress.d.ts +0 -10
- package/dist/types/contracts/housePrices/getLatestPrice.d.ts +0 -10
- package/dist/types/contracts/housePrices/setOracle.d.ts +0 -4
- package/dist/types/contracts/indexToken/getNextRandomNFT.d.ts +0 -7
- package/dist/types/contracts/indexToken/redeemNFT.d.ts +0 -4
- package/dist/types/contracts/rcrvUSDToken/getBalance.d.ts +0 -2
- package/dist/types/contracts/rcrvUSDToken/getTotalSupply.d.ts +0 -10
- package/dist/types/contracts/zeno/createAuction.d.ts +0 -4
- package/dist/types/contracts/zeno/createZeno.d.ts +0 -4
- package/dist/types/contracts/zeno/getAuctions.d.ts +0 -4
- package/dist/types/contracts/zeno/getZenos.d.ts +0 -4
- package/dist/types/index.d.ts +0 -2
- package/dist/types/methods/approveToken.d.ts +0 -5
- package/dist/types/methods/commons/checkAllowance.d.ts +0 -6
- package/dist/types/methods/commons/estimateGasPrice.d.ts +0 -11
- package/dist/types/methods/getAssetBalance.d.ts +0 -6
- package/dist/types/methods/getAssetsBalance.d.ts +0 -3
- package/dist/types/minter/get.d.ts +0 -17
- package/dist/types/minter/getApy.d.ts +0 -4
- package/dist/types/minter/tick.d.ts +0 -4
- package/dist/types/nfts/getAllTokens.d.ts +0 -7
- package/dist/types/nfts/getBaseUri.d.ts +0 -4
- package/dist/types/nfts/getHousePrice.d.ts +0 -4
- package/dist/types/nfts/getMintFeePercentage.d.ts +0 -4
- package/dist/types/nfts/getMintPrice.d.ts +0 -7
- package/dist/types/nfts/getTokenURI.d.ts +0 -4
- package/dist/types/nfts/getTokensByOwner.d.ts +0 -10
- package/dist/types/nfts/getTotalPropertiesCount.d.ts +0 -4
- package/dist/types/nfts/mint.d.ts +0 -4
- package/dist/types/nfts/setBaseUri.d.ts +0 -4
- package/dist/types/nfts/totalNFTSupply.d.ts +0 -4
- package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +0 -4
- package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +0 -4
- package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +0 -4
- package/dist/types/pools/lendingPool/claimReward.d.ts +0 -4
- package/dist/types/pools/lendingPool/closeLiquidation.d.ts +0 -11
- package/dist/types/pools/lendingPool/depositNFTToLendingPool.d.ts +0 -4
- package/dist/types/pools/lendingPool/depositToLendingPool.d.ts +0 -4
- package/dist/types/pools/lendingPool/getAllUserData.d.ts +0 -16
- package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +0 -11
- package/dist/types/pools/lendingPool/getHealthFactor.d.ts +0 -11
- package/dist/types/pools/lendingPool/getHousePrice.d.ts +0 -4
- package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +0 -24
- package/dist/types/pools/lendingPool/getLendingPoolTotalLiquidity.d.ts +0 -4
- package/dist/types/pools/lendingPool/getPendingReward.d.ts +0 -4
- package/dist/types/pools/lendingPool/getPositionDebt.d.ts +0 -11
- package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +0 -11
- package/dist/types/pools/lendingPool/getPositionView.d.ts +0 -27
- package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +0 -11
- package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +0 -4
- package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +0 -11
- package/dist/types/pools/lendingPool/initializeLiquidation.d.ts +0 -11
- package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +0 -4
- package/dist/types/pools/lendingPool/withdrawFromLendingPool.d.ts +0 -4
- package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +0 -4
- package/dist/types/pools/liquidityPool/getLiquidityPoolInfo.d.ts +0 -7
- package/dist/types/pools/stabilityPool/calculateRAACRewards.d.ts +0 -4
- package/dist/types/pools/stabilityPool/depositNFTToStabilityPool.d.ts +0 -4
- package/dist/types/pools/stabilityPool/depositToStabilityPool.d.ts +0 -4
- package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +0 -4
- package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +0 -10
- package/dist/types/pools/stabilityPool/getStabilityPoolTotalDeposits.d.ts +0 -4
- package/dist/types/pools/stabilityPool/withdrawFromStabilityPool.d.ts +0 -4
- package/dist/types/scripts/index.d.ts +0 -1
- package/dist/types/tests/test.d.ts +0 -1
- package/dist/types/typechain-types/@chainlink/contracts/index.d.ts +0 -2
- package/dist/types/typechain-types/@chainlink/contracts/src/index.d.ts +0 -2
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/index.d.ts +0 -2
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/FunctionsClient.d.ts +0 -67
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/index.d.ts +0 -5
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsClient.d.ts +0 -37
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsRouter.d.ts +0 -205
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/index.d.ts +0 -2
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/FunctionsRequest.d.ts +0 -25
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/index.d.ts +0 -1
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +0 -6
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner.d.ts +0 -69
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwnerWithProposal.d.ts +0 -69
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/access/index.d.ts +0 -2
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.d.ts +0 -4
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/IOwnable.d.ts +0 -37
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +0 -35
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/index.d.ts +0 -3
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +0 -156
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/@chainlink/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/access/AccessControl.d.ts +0 -159
- package/dist/types/typechain-types/@openzeppelin/contracts/access/IAccessControl.d.ts +0 -147
- package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts +0 -54
- package/dist/types/typechain-types/@openzeppelin/contracts/access/index.d.ts +0 -3
- package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +0 -8
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC5267.d.ts +0 -78
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.d.ts +0 -3
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +0 -3
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.d.ts +0 -141
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +0 -129
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.d.ts +0 -236
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +0 -141
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.d.ts +0 -61
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +0 -3
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts +0 -6
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.d.ts +0 -211
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +0 -199
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721Receiver.d.ts +0 -39
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.d.ts +0 -233
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.d.ts +0 -221
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.d.ts +0 -211
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.d.ts +0 -3
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/index.d.ts +0 -7
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.d.ts +0 -39
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC721/utils/index.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts/token/index.d.ts +0 -4
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Address.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Nonces.d.ts +0 -25
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Pausable.d.ts +0 -55
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/ReentrancyGuard.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/ShortStrings.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Strings.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/EIP712.d.ts +0 -78
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/cryptography/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/index.d.ts +0 -12
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.d.ts +0 -29
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.d.ts +0 -29
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/Math.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.d.ts +0 -20
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts +0 -68
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/index.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/index.d.ts +0 -6
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts +0 -36
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts +0 -36
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.d.ts +0 -69
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/index.d.ts +0 -4
- package/dist/types/typechain-types/common.d.ts +0 -50
- package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +0 -933
- package/dist/types/typechain-types/contracts/core/collectors/Treasury.d.ts +0 -283
- package/dist/types/typechain-types/contracts/core/collectors/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/core/governance/boost/BoostController.d.ts +0 -573
- package/dist/types/typechain-types/contracts/core/governance/boost/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/governance/gauges/BaseGauge.d.ts +0 -779
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeController.d.ts +0 -815
- package/dist/types/typechain-types/contracts/core/governance/gauges/RAACGauge.d.ts +0 -803
- package/dist/types/typechain-types/contracts/core/governance/gauges/RWAGauge.d.ts +0 -807
- package/dist/types/typechain-types/contracts/core/governance/gauges/index.d.ts +0 -4
- package/dist/types/typechain-types/contracts/core/governance/index.d.ts +0 -6
- package/dist/types/typechain-types/contracts/core/governance/proposals/Governance.d.ts +0 -612
- package/dist/types/typechain-types/contracts/core/governance/proposals/TimelockController.d.ts +0 -447
- package/dist/types/typechain-types/contracts/core/governance/proposals/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/core/index.d.ts +0 -14
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +0 -791
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +0 -493
- package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/minters/index.d.ts +0 -4
- package/dist/types/typechain-types/contracts/core/oracles/BaseChainlinkFunctionsOracle.d.ts +0 -165
- package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +0 -166
- package/dist/types/typechain-types/contracts/core/oracles/RAACHousePriceOracle.d.ts +0 -188
- package/dist/types/typechain-types/contracts/core/oracles/RAACPrimeRateOracle.d.ts +0 -195
- package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +0 -4
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +0 -1647
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/NFTLiquidator.d.ts +0 -283
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +0 -576
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/core/pools/index.d.ts +0 -4
- package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +0 -138
- package/dist/types/typechain-types/contracts/core/primitives/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/tokens/DEToken.d.ts +0 -384
- package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +0 -429
- package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +0 -340
- package/dist/types/typechain-types/contracts/core/tokens/LPToken.d.ts +0 -224
- package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +0 -728
- package/dist/types/typechain-types/contracts/core/tokens/RAACToken.d.ts +0 -401
- package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +0 -567
- package/dist/types/typechain-types/contracts/core/tokens/VeRAACToken.d.ts +0 -816
- package/dist/types/typechain-types/contracts/core/tokens/index.d.ts +0 -8
- package/dist/types/typechain-types/contracts/index.d.ts +0 -10
- package/dist/types/typechain-types/contracts/interfaces/IERC20.d.ts +0 -129
- package/dist/types/typechain-types/contracts/interfaces/IHousePrices.d.ts +0 -29
- package/dist/types/typechain-types/contracts/interfaces/INFTLiquidator.d.ts +0 -73
- package/dist/types/typechain-types/contracts/interfaces/IPoolManager.d.ts +0 -37
- package/dist/types/typechain-types/contracts/interfaces/IReserveAllocationLibraryMock.d.ts +0 -164
- package/dist/types/typechain-types/contracts/interfaces/IUSDC.d.ts +0 -129
- package/dist/types/typechain-types/contracts/interfaces/IveRAACDistributor.d.ts +0 -59
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IBaseCollector.d.ts +0 -39
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +0 -487
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/ITreasury.d.ts +0 -139
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +0 -3
- package/dist/types/typechain-types/contracts/interfaces/core/governance/IBoostController.d.ts +0 -269
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGauge.d.ts +0 -235
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeController.d.ts +0 -341
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/interfaces/core/governance/index.d.ts +0 -5
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/IGovernance.d.ts +0 -577
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/ITimelockController.d.ts +0 -279
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +0 -14
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +0 -352
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +0 -237
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/interfaces/core/minters/index.d.ts +0 -4
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +0 -86
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IRAACHousePrices.d.ts +0 -110
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +0 -185
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +0 -982
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +0 -371
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/interfaces/core/pools/index.d.ts +0 -5
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDEToken.d.ts +0 -226
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +0 -291
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IIndexToken.d.ts +0 -187
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +0 -505
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACToken.d.ts +0 -346
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +0 -397
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IveRAACToken.d.ts +0 -362
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +0 -7
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseVault.d.ts +0 -83
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/interfaces/curve/ICurveCrvUSDVault.d.ts +0 -144
- package/dist/types/typechain-types/contracts/interfaces/curve/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/interfaces/index.d.ts +0 -13
- package/dist/types/typechain-types/contracts/interfaces/zeno/IAuction.d.ts +0 -122
- package/dist/types/typechain-types/contracts/interfaces/zeno/IZENO.d.ts +0 -186
- package/dist/types/typechain-types/contracts/interfaces/zeno/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/libraries/governance/BoostCalculator.d.ts +0 -42
- package/dist/types/typechain-types/contracts/libraries/governance/Checkpoints.d.ts +0 -55
- package/dist/types/typechain-types/contracts/libraries/governance/LockManager.d.ts +0 -87
- package/dist/types/typechain-types/contracts/libraries/governance/PowerCheckpoint.d.ts +0 -60
- package/dist/types/typechain-types/contracts/libraries/governance/RAACVoting.d.ts +0 -45
- package/dist/types/typechain-types/contracts/libraries/governance/VotingPowerLib.d.ts +0 -66
- package/dist/types/typechain-types/contracts/libraries/governance/index.d.ts +0 -6
- package/dist/types/typechain-types/contracts/libraries/index.d.ts +0 -8
- package/dist/types/typechain-types/contracts/libraries/math/TimeWeightedAverage.d.ts +0 -104
- package/dist/types/typechain-types/contracts/libraries/math/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/libraries/pools/ReserveLibrary.d.ts +0 -124
- package/dist/types/typechain-types/contracts/libraries/pools/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/libraries/utils/StringUtils.d.ts +0 -20
- package/dist/types/typechain-types/contracts/libraries/utils/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/collectors/MockTreasury.d.ts +0 -169
- package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/MockBaseGauge.d.ts +0 -845
- package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/MockGaugeController.d.ts +0 -29
- package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/mocks/core/governance/index.d.ts +0 -4
- package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +0 -76
- package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +0 -14
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/IFunctionsRouter.d.ts +0 -41
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter.d.ts +0 -45
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockFunctionsRouter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockOracle.d.ts +0 -43
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockVRFCoordinatorV2.d.ts +0 -530
- package/dist/types/typechain-types/contracts/mocks/core/oracles/TestRAACHousePriceOracle.d.ts +0 -204
- package/dist/types/typechain-types/contracts/mocks/core/oracles/TestRAACPrimeRateOracle.d.ts +0 -211
- package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +0 -6
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPool.d.ts +0 -121
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolCollector.d.ts +0 -156
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +0 -994
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLiquidityPool.d.ts +0 -486
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockPool.d.ts +0 -55
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockStabilityPool.d.ts +0 -69
- package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +0 -6
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockContract.d.ts +0 -29
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockContractWithConfig.d.ts +0 -39
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts +0 -35
- package/dist/types/typechain-types/contracts/mocks/core/primitives/RAACHousePricesMock.d.ts +0 -47
- package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +0 -4
- package/dist/types/typechain-types/contracts/mocks/core/tokens/CrvUSDToken.d.ts +0 -212
- package/dist/types/typechain-types/contracts/mocks/core/tokens/ERC20Mock.d.ts +0 -155
- package/dist/types/typechain-types/contracts/mocks/core/tokens/ERC721Mock.d.ts +0 -229
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockCollectableUnderlying.d.ts +0 -292
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockFeeCollectorToken.d.ts +0 -220
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockToken.d.ts +0 -191
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockUSDC.d.ts +0 -155
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockVeToken.d.ts +0 -510
- package/dist/types/typechain-types/contracts/mocks/core/tokens/RAACMockERC20.d.ts +0 -186
- package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +0 -9
- package/dist/types/typechain-types/contracts/mocks/core/vaults/MockVault.d.ts +0 -290
- package/dist/types/typechain-types/contracts/mocks/core/vaults/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/index.d.ts +0 -6
- package/dist/types/typechain-types/contracts/mocks/libraries/MockStringUtils.d.ts +0 -25
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/BoostCalculatorMock.d.ts +0 -275
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/CheckpointsMock.d.ts +0 -83
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/LockManagerMock.d.ts +0 -163
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/PowerCheckpointMock.d.ts +0 -141
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/RAACVotingMock.d.ts +0 -41
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/VotingPowerMock.d.ts +0 -281
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/index.d.ts +0 -6
- package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +0 -7
- package/dist/types/typechain-types/contracts/mocks/libraries/math/TimeWeightedAverageMock.d.ts +0 -203
- package/dist/types/typechain-types/contracts/mocks/libraries/math/WadRayMathMock.d.ts +0 -78
- package/dist/types/typechain-types/contracts/mocks/libraries/math/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/mocks/libraries/pools/ReserveLibraryMock.d.ts +0 -225
- package/dist/types/typechain-types/contracts/mocks/libraries/pools/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/tests/MaliciousDeposit.d.ts +0 -29
- package/dist/types/typechain-types/contracts/mocks/tests/MaliciousWithdraw.d.ts +0 -29
- package/dist/types/typechain-types/contracts/mocks/tests/VeRAACFuzzHelper.d.ts +0 -71
- package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl.d.ts +0 -25
- package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper.d.ts +0 -100
- package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/mocks/tests/index.d.ts +0 -5
- package/dist/types/typechain-types/contracts/zeno/Auction.d.ts +0 -215
- package/dist/types/typechain-types/contracts/zeno/AuctionFactory.d.ts +0 -177
- package/dist/types/typechain-types/contracts/zeno/ZENO.d.ts +0 -237
- package/dist/types/typechain-types/contracts/zeno/ZENOFactory.d.ts +0 -151
- package/dist/types/typechain-types/contracts/zeno/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/@chainlink/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/FunctionsClient__factory.d.ts +0 -49
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsClient__factory.d.ts +0 -25
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/IFunctionsRouter__factory.d.ts +0 -268
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/interfaces/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/FunctionsRequest__factory.d.ts +0 -48
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwnerWithProposal__factory.d.ts +0 -90
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner__factory.d.ts +0 -86
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/IOwnable__factory.d.ts +0 -33
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +0 -33
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +0 -171
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@chainlink/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.d.ts +0 -181
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.d.ts +0 -157
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +0 -64
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.d.ts +0 -46
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.d.ts +0 -83
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.d.ts +0 -71
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.d.ts +0 -83
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +0 -241
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +0 -147
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit__factory.d.ts +0 -402
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.d.ts +0 -177
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.d.ts +0 -65
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts +0 -46
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.d.ts +0 -337
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.d.ts +0 -33
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.d.ts +0 -227
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable__factory.d.ts +0 -395
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable__factory.d.ts +0 -269
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.d.ts +0 -261
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.d.ts +0 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder__factory.d.ts +0 -33
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC721/utils/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.d.ts +0 -42
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Nonces__factory.d.ts +0 -33
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Pausable__factory.d.ts +0 -45
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/ReentrancyGuard__factory.d.ts +0 -11
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/ShortStrings__factory.d.ts +0 -34
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.d.ts +0 -34
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.d.ts +0 -42
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/EIP712__factory.d.ts +0 -58
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +0 -9
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.d.ts +0 -21
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts +0 -21
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/Math__factory.d.ts +0 -26
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.d.ts +0 -62
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts +0 -82
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts +0 -25
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts +0 -25
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable__factory.d.ts +0 -63
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +0 -1362
- package/dist/types/typechain-types/factories/contracts/core/collectors/Treasury__factory.d.ts +0 -386
- package/dist/types/typechain-types/factories/contracts/core/collectors/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/governance/boost/BoostController__factory.d.ts +0 -716
- package/dist/types/typechain-types/factories/contracts/core/governance/boost/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/BaseGauge__factory.d.ts +0 -1083
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +0 -1124
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +0 -1154
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +0 -1154
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/contracts/core/governance/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/Governance__factory.d.ts +0 -976
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/TimelockController__factory.d.ts +0 -773
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/index.d.ts +0 -7
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +0 -1132
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +0 -680
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/minters/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseChainlinkFunctionsOracle__factory.d.ts +0 -205
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +0 -231
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +0 -275
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +0 -286
- package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +0 -2160
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +0 -390
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +0 -897
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/pools/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +0 -231
- package/dist/types/typechain-types/factories/contracts/core/primitives/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/DEToken__factory.d.ts +0 -671
- package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +0 -747
- package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +0 -602
- package/dist/types/typechain-types/factories/contracts/core/tokens/LPToken__factory.d.ts +0 -401
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +0 -1143
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +0 -652
- package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +0 -941
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +0 -1264
- package/dist/types/typechain-types/factories/contracts/core/tokens/index.d.ts +0 -8
- package/dist/types/typechain-types/factories/contracts/index.d.ts +0 -5
- package/dist/types/typechain-types/factories/contracts/interfaces/IERC20__factory.d.ts +0 -147
- package/dist/types/typechain-types/factories/contracts/interfaces/IHousePrices__factory.d.ts +0 -21
- package/dist/types/typechain-types/factories/contracts/interfaces/INFTLiquidator__factory.d.ts +0 -65
- package/dist/types/typechain-types/factories/contracts/interfaces/IPoolManager__factory.d.ts +0 -43
- package/dist/types/typechain-types/factories/contracts/interfaces/IReserveAllocationLibraryMock__factory.d.ts +0 -189
- package/dist/types/typechain-types/factories/contracts/interfaces/IUSDC__factory.d.ts +0 -147
- package/dist/types/typechain-types/factories/contracts/interfaces/IveRAACDistributor__factory.d.ts +0 -75
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IBaseCollector__factory.d.ts +0 -33
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +0 -715
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/ITreasury__factory.d.ts +0 -165
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/IBoostController__factory.d.ts +0 -295
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeController__factory.d.ts +0 -449
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGauge__factory.d.ts +0 -307
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/IGovernance__factory.d.ts +0 -878
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/ITimelockController__factory.d.ts +0 -468
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +0 -7
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +0 -424
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +0 -279
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +0 -78
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IRAACHousePrices__factory.d.ts +0 -146
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +0 -233
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +0 -1170
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +0 -481
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDEToken__factory.d.ts +0 -256
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +0 -392
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IIndexToken__factory.d.ts +0 -227
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +0 -627
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACToken__factory.d.ts +0 -436
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +0 -496
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IveRAACToken__factory.d.ts +0 -435
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +0 -7
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/IBaseVault__factory.d.ts +0 -137
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/curve/ICurveCrvUSDVault__factory.d.ts +0 -194
- package/dist/types/typechain-types/factories/contracts/interfaces/curve/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +0 -10
- package/dist/types/typechain-types/factories/contracts/interfaces/zeno/IAuction__factory.d.ts +0 -126
- package/dist/types/typechain-types/factories/contracts/interfaces/zeno/IZENO__factory.d.ts +0 -246
- package/dist/types/typechain-types/factories/contracts/interfaces/zeno/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/libraries/governance/BoostCalculator__factory.d.ts +0 -54
- package/dist/types/typechain-types/factories/contracts/libraries/governance/Checkpoints__factory.d.ts +0 -68
- package/dist/types/typechain-types/factories/contracts/libraries/governance/LockManager__factory.d.ts +0 -111
- package/dist/types/typechain-types/factories/contracts/libraries/governance/PowerCheckpoint__factory.d.ts +0 -69
- package/dist/types/typechain-types/factories/contracts/libraries/governance/RAACVoting__factory.d.ts +0 -92
- package/dist/types/typechain-types/factories/contracts/libraries/governance/VotingPowerLib__factory.d.ts +0 -74
- package/dist/types/typechain-types/factories/contracts/libraries/governance/index.d.ts +0 -6
- package/dist/types/typechain-types/factories/contracts/libraries/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/contracts/libraries/math/TimeWeightedAverage__factory.d.ts +0 -125
- package/dist/types/typechain-types/factories/contracts/libraries/math/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +0 -135
- package/dist/types/typechain-types/factories/contracts/libraries/pools/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/libraries/utils/StringUtils__factory.d.ts +0 -26
- package/dist/types/typechain-types/factories/contracts/libraries/utils/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockTreasury__factory.d.ts +0 -212
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +0 -1194
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockGaugeController__factory.d.ts +0 -50
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +0 -100
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +0 -7
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/IFunctionsRouter__factory.d.ts +0 -37
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter__factory.d.ts +0 -66
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +0 -62
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockVRFCoordinatorV2__factory.d.ts +0 -620
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +0 -293
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +0 -304
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +0 -5
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +0 -234
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +0 -1202
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +0 -199
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +0 -795
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockPool__factory.d.ts +0 -84
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +0 -109
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +0 -6
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockContractWithConfig__factory.d.ts +0 -53
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockContract__factory.d.ts +0 -42
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +0 -68
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/RAACHousePricesMock__factory.d.ts +0 -64
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/CrvUSDToken__factory.d.ts +0 -379
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/ERC20Mock__factory.d.ts +0 -282
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/ERC721Mock__factory.d.ts +0 -388
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +0 -451
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockFeeCollectorToken__factory.d.ts +0 -407
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockToken__factory.d.ts +0 -338
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockUSDC__factory.d.ts +0 -278
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockVeToken__factory.d.ts +0 -714
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/RAACMockERC20__factory.d.ts +0 -335
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +0 -9
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +0 -525
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/mocks/index.d.ts +0 -3
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +0 -40
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/BoostCalculatorMock__factory.d.ts +0 -351
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/CheckpointsMock__factory.d.ts +0 -124
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/LockManagerMock__factory.d.ts +0 -197
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/PowerCheckpointMock__factory.d.ts +0 -183
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RAACVotingMock__factory.d.ts +0 -70
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/VotingPowerMock__factory.d.ts +0 -341
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/index.d.ts +0 -6
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/TimeWeightedAverageMock__factory.d.ts +0 -247
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/WadRayMathMock__factory.d.ts +0 -154
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +0 -277
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/mocks/tests/MaliciousDeposit__factory.d.ts +0 -53
- package/dist/types/typechain-types/factories/contracts/mocks/tests/MaliciousWithdraw__factory.d.ts +0 -53
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +0 -80
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl__factory.d.ts +0 -17
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper__factory.d.ts +0 -113
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/mocks/tests/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/contracts/zeno/AuctionFactory__factory.d.ts +0 -250
- package/dist/types/typechain-types/factories/contracts/zeno/Auction__factory.d.ts +0 -320
- package/dist/types/typechain-types/factories/contracts/zeno/ZENOFactory__factory.d.ts +0 -223
- package/dist/types/typechain-types/factories/contracts/zeno/ZENO__factory.d.ts +0 -488
- package/dist/types/typechain-types/factories/contracts/zeno/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/index.d.ts +0 -3
- package/dist/types/typechain-types/index.d.ts +0 -329
- package/dist/types/utils/artifacts.d.ts +0 -2265
- package/dist/types/utils/chain.d.ts +0 -13
- package/dist/types/utils/config.d.ts +0 -0
- package/dist/types/utils/contracts.d.ts +0 -24
- package/dist/types/wallet/assets/approveAsset.d.ts +0 -5
- package/dist/types/wallet/assets/burnAsset.d.ts +0 -5
- package/dist/types/wallet/assets/getAllowance.d.ts +0 -5
- package/dist/types/wallet/assets/getAsset.d.ts +0 -4
- package/dist/types/wallet/assets/getAssets.d.ts +0 -4
- package/dist/types/wallet/assets/getBalance.d.ts +0 -5
- package/dist/types/wallet/assets/mintAsset.d.ts +0 -5
- package/dist/types/wallet/assets/transferAsset.d.ts +0 -5
- package/dist/utils/artifacts.js +0 -74
- package/dist/utils/chain.js +0 -92
- package/dist/utils/config.js +0 -43
- package/dist/utils/contracts.js +0 -81
- package/dist/wallet/assets/approveAsset.js +0 -35
- package/dist/wallet/assets/burnAsset.js +0 -46
- package/dist/wallet/assets/getAllowance.js +0 -26
- package/dist/wallet/assets/getAsset.js +0 -22
- package/dist/wallet/assets/getAssets.js +0 -26
- package/dist/wallet/assets/getBalance.js +0 -24
- package/dist/wallet/assets/mintAsset.js +0 -47
- package/dist/wallet/assets/transferAsset.js +0 -62
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const getContractAddress_1 = require("../../contracts/getContractAddress");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
// Get the amount of RToken RAW deposit in the lending pool, without the accured interest
|
|
7
|
-
async function getRawUserDepositsInLendingPool(chainId, address, provider) {
|
|
8
|
-
try {
|
|
9
|
-
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
10
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
11
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, provider);
|
|
12
|
-
const value = await lendingPoolContract.getUserDeposits(address);
|
|
13
|
-
console.log(`User deposits in lending pool: ${ethers_1.ethers.formatEther(value)}`);
|
|
14
|
-
return value;
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
console.error("Error in getRawUserDepositsInLendingPool:", error);
|
|
18
|
-
throw error;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = getRawUserDepositsInLendingPool;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const getContractAddress_1 = require("../../contracts/getContractAddress");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
/**
|
|
7
|
-
* @description Sum of the prices of all the NFTS
|
|
8
|
-
* @param chainId
|
|
9
|
-
* @param address
|
|
10
|
-
* @param provider
|
|
11
|
-
* @returns The total value of the collateral
|
|
12
|
-
*/
|
|
13
|
-
async function getUserCollateralValue(chainId, address, provider) {
|
|
14
|
-
try {
|
|
15
|
-
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
16
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
17
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, provider);
|
|
18
|
-
const reward = await lendingPoolContract.getUserCollateralValue(address);
|
|
19
|
-
console.log(`getUserCollateralValue result: ${ethers_1.ethers.formatEther(reward)}`);
|
|
20
|
-
return reward;
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
console.error("Error in getUserCollateralValue:", error);
|
|
24
|
-
throw error;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = getUserCollateralValue;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const getContractAddress_1 = require("../../contracts/getContractAddress");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
/**
|
|
7
|
-
* @description Get the sum of all the scaled debts of a user over all NFTs
|
|
8
|
-
* @param chainId
|
|
9
|
-
* @param address
|
|
10
|
-
* @param provider
|
|
11
|
-
* @returns The debt of the user
|
|
12
|
-
*/
|
|
13
|
-
async function initializeLiquidation(chainId, address, tokenId, signer) {
|
|
14
|
-
try {
|
|
15
|
-
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
16
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
17
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
18
|
-
const tx = await lendingPoolContract.initiateLiquidation(address, tokenId);
|
|
19
|
-
await tx.wait();
|
|
20
|
-
console.log(`initializeLiquidation result: ${tx.hash}`);
|
|
21
|
-
return tx;
|
|
22
|
-
}
|
|
23
|
-
catch (error) {
|
|
24
|
-
console.error("Error in initializeLiquidation:", error);
|
|
25
|
-
throw error;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.default = initializeLiquidation;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const getContractAddress_1 = require("../../contracts/getContractAddress");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
async function repayToLendingPool(chainId, tokenId, amount, signer) {
|
|
7
|
-
try {
|
|
8
|
-
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
9
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
10
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
11
|
-
const amountInWei = ethers_1.ethers.parseEther(amount.toString());
|
|
12
|
-
console.log("Repaying amount in wei:", amountInWei.toString());
|
|
13
|
-
const tx = await lendingPoolContract.repay(tokenId, amountInWei.toString());
|
|
14
|
-
const receipt = await tx.wait();
|
|
15
|
-
console.log(`Repaid ${amount} crvUSD to lending pool.`);
|
|
16
|
-
console.log(`Transaction hash: ${receipt?.hash}`);
|
|
17
|
-
return receipt;
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
console.error("Error in repayToLendingPool:", error);
|
|
21
|
-
throw error;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.default = repayToLendingPool;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ethers_1 = require("ethers");
|
|
7
|
-
const getContractAddress_1 = require("../../contracts/getContractAddress");
|
|
8
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
9
|
-
const estimateGasPrice_1 = __importDefault(require("../../methods/commons/estimateGasPrice"));
|
|
10
|
-
async function withdrawFromLendingPool(chainId, amount, signer) {
|
|
11
|
-
try {
|
|
12
|
-
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
13
|
-
const rtokenAddress = (0, getContractAddress_1.getContractAddress)(chainId, "rtoken");
|
|
14
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
15
|
-
const assetABI = (0, artifacts_1.getABI)("rtoken");
|
|
16
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
17
|
-
const rTokenContract = new ethers_1.ethers.Contract(rtokenAddress, assetABI, signer);
|
|
18
|
-
const amountInWei = ethers_1.ethers.parseEther(amount.toString());
|
|
19
|
-
const { maxFeePerGas } = await (0, estimateGasPrice_1.default)(signer);
|
|
20
|
-
const userBalance = await rTokenContract.balanceOf(await signer.getAddress());
|
|
21
|
-
if (userBalance < amount) {
|
|
22
|
-
throw new Error(`Insufficient rToken balance. Available: ${ethers_1.ethers.formatEther(userBalance)}, Requested: ${ethers_1.ethers.formatEther(amount)}`);
|
|
23
|
-
}
|
|
24
|
-
const approveTx = await rTokenContract.approve(lendingPoolAddress, amountInWei);
|
|
25
|
-
await approveTx.wait();
|
|
26
|
-
console.log(`Approved LendingPool to spend ${amount} rToken`);
|
|
27
|
-
// const withdraw = await lendingPoolContract.withdraw(amountInWei.toString(), {
|
|
28
|
-
// maxFeePerGas,
|
|
29
|
-
// nonce: await signer.getNonce()
|
|
30
|
-
// });
|
|
31
|
-
const tx = await lendingPoolContract.withdraw(amountInWei);
|
|
32
|
-
const receipt = await tx.wait();
|
|
33
|
-
console.log(`Withdrawn ${amount} from Lending Pool`);
|
|
34
|
-
console.log(`Transaction hash: ${receipt?.hash}`);
|
|
35
|
-
return receipt;
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
console.error("Error in withdrawFromLendingPool:", error);
|
|
39
|
-
throw error;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.default = withdrawFromLendingPool;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const contracts_1 = require("../../utils/contracts");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
async function withdrawNFTFromLendingPool(chainId, tokenId, signer) {
|
|
7
|
-
if (!signer) {
|
|
8
|
-
throw new Error("Wallet not connected");
|
|
9
|
-
}
|
|
10
|
-
try {
|
|
11
|
-
const lendingPoolAddress = (0, contracts_1.getContractAddress)(chainId, "lendingpool");
|
|
12
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
13
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
14
|
-
const tx = await lendingPoolContract.withdrawNFT(tokenId);
|
|
15
|
-
await tx.wait();
|
|
16
|
-
console.log(`Withdrawn NFT with token ID ${tokenId} from lending pool`);
|
|
17
|
-
return tx;
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
console.error("Error withdrawing NFT from lending pool:", error);
|
|
21
|
-
throw new Error(`Failed to withdraw NFT from lending pool: ${error.message}`);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.default = withdrawNFTFromLendingPool;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const contracts_1 = require("../../utils/contracts");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
async function getLiquidityPoolInfo(chainId, address, provider) {
|
|
7
|
-
try {
|
|
8
|
-
const liquidityPoolAddress = (0, contracts_1.getContractAddress)(chainId, "liquiditypool");
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
const abi = (0, artifacts_1.getABI)("liquiditypool");
|
|
11
|
-
const liquidityPoolContract = new ethers_1.ethers.Contract(liquidityPoolAddress, abi, provider);
|
|
12
|
-
const handleError = (operation) => (error) => {
|
|
13
|
-
if (error.code === "BAD_DATA") {
|
|
14
|
-
console.log(`BAD_DATA from getLiquidityPoolInfo - ${operation}:`, error.message);
|
|
15
|
-
return 0n;
|
|
16
|
-
}
|
|
17
|
-
throw error;
|
|
18
|
-
};
|
|
19
|
-
// Get all markets
|
|
20
|
-
const markets = await liquidityPoolContract
|
|
21
|
-
.getMarkets()
|
|
22
|
-
.catch(handleError("getMarkets"));
|
|
23
|
-
const result = {
|
|
24
|
-
markets: {},
|
|
25
|
-
tvl: "0",
|
|
26
|
-
};
|
|
27
|
-
for (const market of markets) {
|
|
28
|
-
const [totalLiquidity, userLiquidity, exchangeRate] = await Promise.all([
|
|
29
|
-
liquidityPoolContract
|
|
30
|
-
.getTotalLiquidity(market)
|
|
31
|
-
.catch(handleError("getTotalLiquidity")),
|
|
32
|
-
address
|
|
33
|
-
? liquidityPoolContract
|
|
34
|
-
// FIXME: pariedToken not defined.
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
.getUserLiquidity(pairedToken, address)
|
|
37
|
-
.catch(handleError("getUserLiquidity"))
|
|
38
|
-
: [0n, 0n, 0n],
|
|
39
|
-
liquidityPoolContract
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
.getExchangeRate(pairedToken)
|
|
42
|
-
.catch(handleError("getExchangeRate")),
|
|
43
|
-
]);
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
result.markets[pairedToken] = {
|
|
46
|
-
totalLiquidity: {
|
|
47
|
-
raac: ethers_1.ethers.formatEther(totalLiquidity[0] ?? 0n),
|
|
48
|
-
paired: ethers_1.ethers.formatEther(totalLiquidity[1] ?? 0n),
|
|
49
|
-
},
|
|
50
|
-
userLiquidity: {
|
|
51
|
-
raac: ethers_1.ethers.formatEther(userLiquidity[0] ?? 0n),
|
|
52
|
-
paired: ethers_1.ethers.formatEther(userLiquidity[1] ?? 0n),
|
|
53
|
-
lpAmount: ethers_1.ethers.formatEther(userLiquidity[2] ?? 0n),
|
|
54
|
-
},
|
|
55
|
-
exchangeRate: {
|
|
56
|
-
raacPerPaired: ethers_1.ethers.formatEther(exchangeRate[0] ?? 0n),
|
|
57
|
-
pairedPerRaac: ethers_1.ethers.formatEther(exchangeRate[1] ?? 0n),
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const tvl = await liquidityPoolContract
|
|
62
|
-
.getTotalValueLocked()
|
|
63
|
-
.catch(handleError("getTotalValueLocked"));
|
|
64
|
-
result.tvl = ethers_1.ethers.formatEther(tvl ?? 0n);
|
|
65
|
-
console.log("getLiquidityPoolInfo result:", result);
|
|
66
|
-
return result;
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
console.error("Error fetching liquidity pool info:", error);
|
|
70
|
-
throw error;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.default = getLiquidityPoolInfo;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const contracts_1 = require("../../utils/contracts");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
async function calculateRAACRewards(chainId, address, signer) {
|
|
7
|
-
if (!signer) {
|
|
8
|
-
throw new Error("Wallet not connected");
|
|
9
|
-
}
|
|
10
|
-
try {
|
|
11
|
-
const stabilityPoolAddress = (0, contracts_1.getContractAddress)(chainId, "stabilitypool");
|
|
12
|
-
const stabilityPoolABI = (0, artifacts_1.getABI)("stabilitypool");
|
|
13
|
-
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, stabilityPoolABI, signer);
|
|
14
|
-
const calculateRAACRewards = await stabilityPoolContract.calculateRaacRewards(address);
|
|
15
|
-
return ethers_1.ethers.formatEther(calculateRAACRewards);
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
throw new Error(`Error calculating RAAC rewards: ${error.message}`);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = calculateRAACRewards;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const contracts_1 = require("../../utils/contracts");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
async function depositNFTToStabilityPool(chainId, tokenId, signer) {
|
|
7
|
-
if (!signer) {
|
|
8
|
-
throw new Error("Wallet not connected");
|
|
9
|
-
}
|
|
10
|
-
try {
|
|
11
|
-
const stabilityPoolAddress = (0, contracts_1.getContractAddress)(chainId, "stabilitypool");
|
|
12
|
-
const abi = (0, artifacts_1.getABI)("stabilitypool");
|
|
13
|
-
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, abi, signer);
|
|
14
|
-
const RAACNFTAddress = (0, contracts_1.getContractAddress)(chainId, "raacnft");
|
|
15
|
-
const raacNFTABI = (0, artifacts_1.getABI)("raacnft");
|
|
16
|
-
const raacNFTContract = new ethers_1.ethers.Contract(RAACNFTAddress, raacNFTABI, signer);
|
|
17
|
-
const owner = await raacNFTContract.ownerOf(tokenId);
|
|
18
|
-
if (owner.toLowerCase() !== (await signer.getAddress()).toLowerCase()) {
|
|
19
|
-
throw new Error(`Signer does not own NFT #${tokenId}`);
|
|
20
|
-
}
|
|
21
|
-
// approve the disposal of the NFT
|
|
22
|
-
const approvalTx = await raacNFTContract.approve(stabilityPoolAddress, tokenId, {
|
|
23
|
-
nonce: await signer.getNonce(),
|
|
24
|
-
});
|
|
25
|
-
await approvalTx.wait();
|
|
26
|
-
console.log(`Approved stability pool to transfer NFT #${tokenId}`);
|
|
27
|
-
const tx = await stabilityPoolContract.depositNFT(RAACNFTAddress, tokenId, {
|
|
28
|
-
nonce: await signer.getNonce(),
|
|
29
|
-
});
|
|
30
|
-
console.log(`Deposit NFT transaction sent to Stability Pool:`, tx.hash);
|
|
31
|
-
const receipt = await tx.wait();
|
|
32
|
-
console.log(`Deposited token ${tokenId} to Stability Pool successfully:`, receipt?.hash);
|
|
33
|
-
return receipt;
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
console.error(`Error depositing NFT to Stability Pool:`, error);
|
|
37
|
-
throw new Error(`NFT Deposit to Stability Pool failed: ${error.message}`);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.default = depositNFTToStabilityPool;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ethers_1 = require("ethers");
|
|
7
|
-
const contracts_1 = require("../../utils/contracts");
|
|
8
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
9
|
-
const estimateGasPrice_1 = __importDefault(require("../../methods/commons/estimateGasPrice"));
|
|
10
|
-
async function depositToStabilityPool(chainId, amount, signer) {
|
|
11
|
-
if (!signer) {
|
|
12
|
-
throw new Error("Wallet not connected");
|
|
13
|
-
}
|
|
14
|
-
try {
|
|
15
|
-
const stabilityPoolAddress = (0, contracts_1.getContractAddress)(chainId, "stabilitypool");
|
|
16
|
-
const abi = (0, artifacts_1.getABI)("stabilitypool");
|
|
17
|
-
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, abi, signer);
|
|
18
|
-
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
19
|
-
const { maxFeePerGas } = await (0, estimateGasPrice_1.default)(signer);
|
|
20
|
-
const tx = await stabilityPoolContract.deposit(amountInWei.toString(), {
|
|
21
|
-
maxFeePerGas,
|
|
22
|
-
nonce: await signer.getNonce(),
|
|
23
|
-
});
|
|
24
|
-
console.log(`Deposit transaction sent to Stability Pool:`, tx.hash);
|
|
25
|
-
const receipt = await tx.wait();
|
|
26
|
-
console.log(`Deposited ${amount} to Stability Pool successfully:`, receipt?.hash);
|
|
27
|
-
return receipt;
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
console.error(`Error depositing to Stability Pool:`, error);
|
|
31
|
-
throw new Error(`Deposit to Stability Pool failed: ${error.message}`);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.default = depositToStabilityPool;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const getContractAddress_1 = require("../../contracts/getContractAddress");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
// Get the amount of RToken RAW deposit in the lending pool, without the accured interest
|
|
7
|
-
async function getRawUserDepositInStabilityPool(chainId, address, provider) {
|
|
8
|
-
try {
|
|
9
|
-
const stabilityPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "stabilitypool");
|
|
10
|
-
const stabilityPoolABI = (0, artifacts_1.getABI)("stabilitypool");
|
|
11
|
-
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, stabilityPoolABI, provider);
|
|
12
|
-
const value = await stabilityPoolContract.getUserDeposit(address);
|
|
13
|
-
console.log(`User deposits in stability pool: ${ethers_1.ethers.formatEther(value)}`);
|
|
14
|
-
return value;
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
console.error("Error in getRawUserDepositInStabilityPool:", error);
|
|
18
|
-
throw error;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = getRawUserDepositInStabilityPool;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const contracts_1 = require("../../utils/contracts");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
async function getStabilityPoolInfo(chainId, address, provider) {
|
|
7
|
-
try {
|
|
8
|
-
const stabilityPoolAddress = (0, contracts_1.getContractAddress)(chainId, "stabilitypool");
|
|
9
|
-
const abi = (0, artifacts_1.getABI)("stabilitypool");
|
|
10
|
-
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, abi, provider);
|
|
11
|
-
const handleError = (operation) => (error) => {
|
|
12
|
-
if (error.code === "BAD_DATA") {
|
|
13
|
-
console.log(`BAD_DATA from getStabilityPoolInfo - ${operation}:`, error.message);
|
|
14
|
-
return 0n;
|
|
15
|
-
}
|
|
16
|
-
throw error;
|
|
17
|
-
};
|
|
18
|
-
console.log(await stabilityPoolContract.deToken());
|
|
19
|
-
// Fetch data from StabilityPool
|
|
20
|
-
const [totalDeposits, totalAllocation] = await Promise.all([
|
|
21
|
-
stabilityPoolContract
|
|
22
|
-
.getTotalDeposits()
|
|
23
|
-
.catch(handleError("getTotalDeposits")),
|
|
24
|
-
stabilityPoolContract
|
|
25
|
-
.raacToken()
|
|
26
|
-
.then(async (raacTokenAddress) => {
|
|
27
|
-
const raacTokenAbi = (0, artifacts_1.getABI)("raactoken"); // Ensure you have the correct ABI
|
|
28
|
-
const raacTokenContract = new ethers_1.ethers.Contract(raacTokenAddress, raacTokenAbi, provider);
|
|
29
|
-
return raacTokenContract
|
|
30
|
-
.balanceOf(stabilityPoolAddress)
|
|
31
|
-
.catch(handleError("raacToken balanceOf"));
|
|
32
|
-
})
|
|
33
|
-
.catch(handleError("raacToken")),
|
|
34
|
-
]);
|
|
35
|
-
let userDeposit = 0n;
|
|
36
|
-
let pendingRewards = 0n;
|
|
37
|
-
if (address) {
|
|
38
|
-
[userDeposit, pendingRewards] = await Promise.all([
|
|
39
|
-
stabilityPoolContract
|
|
40
|
-
.getUserDeposit(address)
|
|
41
|
-
.catch(handleError("getUserDeposit")),
|
|
42
|
-
stabilityPoolContract
|
|
43
|
-
.getPendingRewards(address)
|
|
44
|
-
.catch(handleError("getPendingRewards")),
|
|
45
|
-
]);
|
|
46
|
-
}
|
|
47
|
-
// Fetch RAAC Minter information if needed for APY calculation
|
|
48
|
-
const raacMinterAddress = (0, contracts_1.getContractAddress)(chainId, "raacminter");
|
|
49
|
-
let apy = 0n;
|
|
50
|
-
if (raacMinterAddress && raacMinterAddress !== ethers_1.ethers.ZeroAddress) {
|
|
51
|
-
const raacMinterABI = (0, artifacts_1.getABI)("raacminter");
|
|
52
|
-
const raacMinterContract = new ethers_1.ethers.Contract(raacMinterAddress, raacMinterABI, provider);
|
|
53
|
-
const [emissionRate, totalSupply] = await Promise.all([
|
|
54
|
-
raacMinterContract.emissionRate().catch(handleError("emissionRate")),
|
|
55
|
-
raacMinterContract
|
|
56
|
-
.getTotalSupply()
|
|
57
|
-
.catch(handleError("getTotalSupply")),
|
|
58
|
-
]);
|
|
59
|
-
// APY Calculation
|
|
60
|
-
// Assuming emissionRate is per block and BLOCKS_PER_YEAR is known
|
|
61
|
-
const BLOCKS_PER_YEAR = 2102400n; // Approximate number of blocks per year (Ethereum ~15 sec/block)
|
|
62
|
-
const emissionRatePerYear = emissionRate * BLOCKS_PER_YEAR;
|
|
63
|
-
apy =
|
|
64
|
-
totalSupply > 0n ? (emissionRatePerYear * 10000n) / totalSupply : 0n;
|
|
65
|
-
}
|
|
66
|
-
const result = {
|
|
67
|
-
totalDeposits: ethers_1.ethers.formatEther(totalDeposits ?? 0n),
|
|
68
|
-
totalAllocation: (totalAllocation ?? 0n).toString(),
|
|
69
|
-
userDeposit: ethers_1.ethers.formatEther(userDeposit ?? 0n),
|
|
70
|
-
pendingRewards: ethers_1.ethers.formatEther(pendingRewards ?? 0n),
|
|
71
|
-
apy: parseFloat((apy ?? 0n).toString()) / 100, // APY in percentage
|
|
72
|
-
};
|
|
73
|
-
return result;
|
|
74
|
-
}
|
|
75
|
-
catch (error) {
|
|
76
|
-
console.error("Error fetching stability pool info:", error);
|
|
77
|
-
throw error;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
exports.default = getStabilityPoolInfo;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ethers_1 = require("ethers");
|
|
4
|
-
const contracts_1 = require("../../utils/contracts");
|
|
5
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
6
|
-
async function getStabilityPoolTotalDeposits(chainId, provider) {
|
|
7
|
-
try {
|
|
8
|
-
const stabilityPoolAddress = (0, contracts_1.getContractAddress)(chainId, "stabilitypool");
|
|
9
|
-
const abi = (0, artifacts_1.getABI)("stabilitypool");
|
|
10
|
-
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, abi, provider);
|
|
11
|
-
const totalDeposits = await stabilityPoolContract.getTotalDeposits();
|
|
12
|
-
return totalDeposits;
|
|
13
|
-
}
|
|
14
|
-
catch (error) {
|
|
15
|
-
console.error("Error fetching total deposits:", error);
|
|
16
|
-
throw error;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = getStabilityPoolTotalDeposits;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ethers_1 = require("ethers");
|
|
7
|
-
const contracts_1 = require("../../utils/contracts");
|
|
8
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
9
|
-
const estimateGasPrice_1 = __importDefault(require("../../methods/commons/estimateGasPrice"));
|
|
10
|
-
async function withdrawFromStabilityPool(chainId, amount, signer) {
|
|
11
|
-
if (!signer) {
|
|
12
|
-
throw new Error("Wallet not connected");
|
|
13
|
-
}
|
|
14
|
-
try {
|
|
15
|
-
const stabilityPoolAddress = (0, contracts_1.getContractAddress)(chainId, "stabilitypool");
|
|
16
|
-
const abi = (0, artifacts_1.getABI)("stabilitypool");
|
|
17
|
-
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, abi, signer);
|
|
18
|
-
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
19
|
-
const { maxFeePerGas } = await (0, estimateGasPrice_1.default)(signer);
|
|
20
|
-
const tx = await stabilityPoolContract.withdraw(amountInWei.toString(), {
|
|
21
|
-
maxFeePerGas,
|
|
22
|
-
nonce: await signer.getNonce(),
|
|
23
|
-
});
|
|
24
|
-
console.log(`Withdrawal transaction sent to Stability Pool:`, tx.hash);
|
|
25
|
-
const receipt = await tx.wait();
|
|
26
|
-
console.log(`Withdrawn ${amount} from Stability Pool successfully:`, receipt?.hash);
|
|
27
|
-
return receipt;
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
console.error(`Error withdrawing from Stability Pool:`, error);
|
|
31
|
-
throw new Error(`Withdrawal from Stability Pool failed: ${error.message}`);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.default = withdrawFromStabilityPool;
|
package/dist/scripts/index.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ethers_1 = require("ethers");
|
|
7
|
-
const chains_1 = __importDefault(require("../configs/chains"));
|
|
8
|
-
//node --env-file=../.env -r ts-node/register ./test.ts
|
|
9
|
-
const RPCLibrary_1 = __importDefault(require("../RPCLibrary"));
|
|
10
|
-
const contracts_1 = require("../utils/contracts");
|
|
11
|
-
const artifacts_1 = require("../utils/artifacts");
|
|
12
|
-
const chainId = 8453;
|
|
13
|
-
const config = chains_1.default[chainId];
|
|
14
|
-
const TEST_MNEMONIC = process.env.TEST_MNEMONIC;
|
|
15
|
-
async function getProvider() {
|
|
16
|
-
return new ethers_1.ethers.JsonRpcProvider(config.rpcs[0]);
|
|
17
|
-
}
|
|
18
|
-
async function createWallet(mnemonic, provider) {
|
|
19
|
-
const wallet = ethers_1.ethers.Wallet.fromPhrase(mnemonic, provider);
|
|
20
|
-
console.info(`[${chainId}]: Loaded wallet from mnemonic: ${wallet.address}`);
|
|
21
|
-
// the signer is the wallet
|
|
22
|
-
return wallet;
|
|
23
|
-
}
|
|
24
|
-
async function setup() {
|
|
25
|
-
const provider = await getProvider();
|
|
26
|
-
const signer = await createWallet(TEST_MNEMONIC, provider);
|
|
27
|
-
const rpc = new RPCLibrary_1.default();
|
|
28
|
-
rpc.address = signer.address;
|
|
29
|
-
rpc.provider = provider;
|
|
30
|
-
rpc.chainId = chainId;
|
|
31
|
-
// send myself some CRVUSD
|
|
32
|
-
await rpc.wallet.assets.mintAsset(chainId, "crvusd", 10000000n, signer.address, signer);
|
|
33
|
-
// // set the base uri to instruxi data gateway
|
|
34
|
-
await rpc.nfts.setBaseUri(chainId, "https://gateway-staging.instruxi.dev/api/v1/vnft/metadata/public/1/0x0000000000000000000000000000", signer);
|
|
35
|
-
// // // set the oracle address of the RAACHousePrice. TEmporarily simulating that I AM THE ORACLE
|
|
36
|
-
await rpc.contracts.housePrices.setOracle(chainId, signer.address, signer);
|
|
37
|
-
// // // set price for 3 houses
|
|
38
|
-
const housePriceAddress = (0, contracts_1.getContractAddress)(chainId, "raachouseprices");
|
|
39
|
-
const housePriceABI = (0, artifacts_1.getABI)("raachouseprices");
|
|
40
|
-
const housePriceContract = new ethers_1.ethers.Contract(housePriceAddress, housePriceABI, signer);
|
|
41
|
-
const raacNFTAddress = (0, contracts_1.getContractAddress)(chainId, "raacnft");
|
|
42
|
-
const raacNFTABI = (0, artifacts_1.getABI)("raacnft");
|
|
43
|
-
const raacNFTContract = new ethers_1.ethers.Contract(raacNFTAddress, raacNFTABI, signer);
|
|
44
|
-
const countTokens = 3;
|
|
45
|
-
// // Generate 10 house prices between 100K and 2M
|
|
46
|
-
const housePrices = [];
|
|
47
|
-
for (let i = 1; i <= countTokens; i++) {
|
|
48
|
-
const price = Math.floor(Math.random() * (2000000 - 100000) + 100000);
|
|
49
|
-
housePrices.push(price);
|
|
50
|
-
}
|
|
51
|
-
// // Mint the new properties
|
|
52
|
-
for (let i = 1; i <= countTokens; i++) {
|
|
53
|
-
const tx = await raacNFTContract.minterMint(signer.address, i);
|
|
54
|
-
await tx.wait();
|
|
55
|
-
console.log("Minted NFT", i);
|
|
56
|
-
}
|
|
57
|
-
// set house prices
|
|
58
|
-
for (let i = 1; i <= countTokens; i++) {
|
|
59
|
-
const tx = await housePriceContract.setHousePrice(i, (0, ethers_1.parseEther)(housePrices[i - 1].toString()));
|
|
60
|
-
await tx.wait();
|
|
61
|
-
console.log("Price set for house", i);
|
|
62
|
-
}
|
|
63
|
-
// confirm the house prices are set
|
|
64
|
-
for (let i = 1; i <= countTokens; i++) {
|
|
65
|
-
const price = await rpc.nfts.getHousePrice(chainId, i, provider);
|
|
66
|
-
console.log("Price for house", i, price);
|
|
67
|
-
if (price !== housePrices[i - 1].toString() + ".0") {
|
|
68
|
-
throw new Error("Price not set correctly");
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
// Generate some random NFT and set price only: not purchased yet
|
|
72
|
-
let nftIdStart = countTokens + 1;
|
|
73
|
-
let nftIdEnd = countTokens + 10;
|
|
74
|
-
for (let i = nftIdStart; i <= nftIdEnd; i++) {
|
|
75
|
-
const price = Math.floor(Math.random() * (2000000 - 100000) + 100000);
|
|
76
|
-
const tx = await housePriceContract.setHousePrice(i, (0, ethers_1.parseEther)(price.toString()));
|
|
77
|
-
await tx.wait();
|
|
78
|
-
console.log("Price set for house", i);
|
|
79
|
-
}
|
|
80
|
-
/// Temporary fix for stabillity pool setStabilityPool
|
|
81
|
-
const stabilityPoolAddress = (0, contracts_1.getContractAddress)(chainId, "stabilitypool");
|
|
82
|
-
const deTokenAddress = (0, contracts_1.getContractAddress)(chainId, "detoken");
|
|
83
|
-
const deTokenABI = (0, artifacts_1.getABI)("detoken");
|
|
84
|
-
const deTokenContract = new ethers_1.ethers.Contract(deTokenAddress, deTokenABI, signer);
|
|
85
|
-
const tx = await deTokenContract.setStabilityPool(stabilityPoolAddress);
|
|
86
|
-
await tx.wait();
|
|
87
|
-
console.log("Stability pool set to", stabilityPoolAddress);
|
|
88
|
-
fulfillRequest();
|
|
89
|
-
}
|
|
90
|
-
const execute = async () => {
|
|
91
|
-
const provider = await getProvider();
|
|
92
|
-
const signer = await createWallet(TEST_MNEMONIC, provider);
|
|
93
|
-
const rpc = new RPCLibrary_1.default();
|
|
94
|
-
rpc.address = signer.address;
|
|
95
|
-
rpc.provider = provider;
|
|
96
|
-
rpc.chainId = chainId;
|
|
97
|
-
console.log(await rpc.contracts.indexToken.getNextRandomNFT(chainId, provider));
|
|
98
|
-
};
|
|
99
|
-
const updateNFTPrice = async (id, price) => {
|
|
100
|
-
const provider = await getProvider();
|
|
101
|
-
const signer = await createWallet(TEST_MNEMONIC, provider);
|
|
102
|
-
const rpc = new RPCLibrary_1.default();
|
|
103
|
-
rpc.address = signer.address;
|
|
104
|
-
rpc.provider = provider;
|
|
105
|
-
rpc.chainId = chainId;
|
|
106
|
-
const housePriceAddress = (0, contracts_1.getContractAddress)(chainId, "raachouseprices");
|
|
107
|
-
const housePriceABI = (0, artifacts_1.getABI)("raachouseprices");
|
|
108
|
-
const housePriceContract = new ethers_1.ethers.Contract(housePriceAddress, housePriceABI, signer);
|
|
109
|
-
let tx;
|
|
110
|
-
tx = await housePriceContract.setHousePrice(id, ethers_1.ethers.parseEther(price));
|
|
111
|
-
console.log(await rpc.nfts.getHousePrice(chainId, parseInt(id), provider));
|
|
112
|
-
};
|
|
113
|
-
const fulfillRequest = async () => {
|
|
114
|
-
const provider = await getProvider();
|
|
115
|
-
const signer = await createWallet(TEST_MNEMONIC, provider);
|
|
116
|
-
const rpc = new RPCLibrary_1.default();
|
|
117
|
-
rpc.address = signer.address;
|
|
118
|
-
rpc.provider = provider;
|
|
119
|
-
rpc.chainId = chainId;
|
|
120
|
-
const indexTokenAddress = (0, contracts_1.getContractAddress)(chainId, "indextoken");
|
|
121
|
-
const indexTokenABI = (0, artifacts_1.getABI)("indextoken");
|
|
122
|
-
const indexTokenContract = new ethers_1.ethers.Contract(indexTokenAddress, indexTokenABI, signer);
|
|
123
|
-
const vrfCoordinatorAddress = "0x9d4454B023096f34B160D6B654540c56A1F81688";
|
|
124
|
-
const vrfCoordinatorABI = (0, artifacts_1.getABI)("mockvrfcoordinator");
|
|
125
|
-
const vrfCoordinatorContract = new ethers_1.ethers.Contract(vrfCoordinatorAddress, vrfCoordinatorABI, signer);
|
|
126
|
-
const vrfConsumerAddress = "0x5eb3Bc0a489C5A8288765d2336659EbCA68FCd00";
|
|
127
|
-
const vrfConsumerABI = (0, artifacts_1.getABI)("vrfconsumer");
|
|
128
|
-
const vrfConsumerContract = new ethers_1.ethers.Contract(vrfConsumerAddress, vrfConsumerABI, signer);
|
|
129
|
-
await vrfCoordinatorContract.fulfillRandomWordsWithOverride(await vrfConsumerContract.lastRequestId(), vrfConsumerAddress, [12]);
|
|
130
|
-
const nextRandom = await vrfConsumerContract.getRequestStatus();
|
|
131
|
-
console.log("Next random number", nextRandom);
|
|
132
|
-
const redemptionToken = await rpc.contracts.indexToken.getNextRandomNFT(chainId, provider);
|
|
133
|
-
console.log("Redemption token", redemptionToken);
|
|
134
|
-
};
|
|
135
|
-
// execute();
|
|
136
|
-
// setup();
|
|
137
|
-
fulfillRequest();
|
|
138
|
-
// updateNFTPrice("7", "1650000");
|