@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,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 totalNFTSupply(chainId, provider) {
|
|
7
|
-
try {
|
|
8
|
-
const raacNFTAddress = (0, contracts_1.getContractAddress)(chainId, "raacnft");
|
|
9
|
-
const raacNFTABI = (0, artifacts_1.getABI)("raacnft");
|
|
10
|
-
const raacNFTContract = new ethers_1.ethers.Contract(raacNFTAddress, raacNFTABI, provider);
|
|
11
|
-
const batchSize = await raacNFTContract.totalSupply();
|
|
12
|
-
return batchSize.toString();
|
|
13
|
-
}
|
|
14
|
-
catch (error) {
|
|
15
|
-
console.error("Error getting current batch size:", error);
|
|
16
|
-
throw new Error(`Failed to get current batch size: ${error.message}`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = totalNFTSupply;
|
|
@@ -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 borrowFromLendingPool(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);
|
|
12
|
-
console.log("Borrowing amount in wei:", amountInWei.toString());
|
|
13
|
-
const tx = await lendingPoolContract.borrow(tokenId, amountInWei.toString());
|
|
14
|
-
const receipt = await tx.wait();
|
|
15
|
-
console.log(`Borrowed ${ethers_1.ethers.formatEther(amount)} from lending pool`);
|
|
16
|
-
console.log(`Transaction hash: ${receipt?.hash}`);
|
|
17
|
-
return receipt;
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
console.error("Error in borrowFromLendingPool:", error);
|
|
21
|
-
throw error;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.default = borrowFromLendingPool;
|
|
@@ -1,40 +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 checkAllowance_1 = __importDefault(require("../../methods/commons/checkAllowance"));
|
|
10
|
-
const approveAsset_1 = __importDefault(require("../../wallet/assets/approveAsset"));
|
|
11
|
-
async function borrowFromLendingPoolWithInsurance(chainId, tokenId, amount, signer) {
|
|
12
|
-
try {
|
|
13
|
-
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
14
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
15
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
16
|
-
const feeCollectorAddress = (0, getContractAddress_1.getContractAddress)(chainId, "feecollector");
|
|
17
|
-
const userAddress = await signer.getAddress();
|
|
18
|
-
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
19
|
-
console.log("Borrowing amount in wei:", amountInWei.toString());
|
|
20
|
-
// get the total insurance they need to pay
|
|
21
|
-
const insurance = await lendingPoolContract.calculateInsuranceFee(userAddress, tokenId, amountInWei.toString());
|
|
22
|
-
// Approve the crvUSD balance to the fee collector
|
|
23
|
-
const allowance = await (0, checkAllowance_1.default)(chainId, "crvusd", userAddress, feeCollectorAddress, signer.provider);
|
|
24
|
-
// If the allowance is less than the insurance, approve the difference
|
|
25
|
-
if (allowance < insurance) {
|
|
26
|
-
await (0, approveAsset_1.default)(chainId, "crvusd", feeCollectorAddress, insurance.toString(), signer);
|
|
27
|
-
console.log(`Approved ${ethers_1.ethers.formatEther(insurance)} crvUSD to fee collector`);
|
|
28
|
-
}
|
|
29
|
-
const tx = await lendingPoolContract.borrowWithInsurance(tokenId, amountInWei.toString());
|
|
30
|
-
const receipt = await tx.wait();
|
|
31
|
-
console.log(`Borrowed ${ethers_1.ethers.formatEther(amount)} from lending pool by paying insurance: ${ethers_1.ethers.formatEther(insurance)}`);
|
|
32
|
-
console.log(`Transaction hash: ${receipt?.hash}`);
|
|
33
|
-
return receipt;
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
console.error("Error in borrowFromLendingPoolWithInsurance:", error);
|
|
37
|
-
throw error;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.default = borrowFromLendingPoolWithInsurance;
|
|
@@ -1,20 +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 calculateInsuranceFee(chainId, address, tokenId, amount, provider) {
|
|
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, provider);
|
|
11
|
-
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
12
|
-
const insuranceFee = await lendingPoolContract.calculateInsuranceFee(address, tokenId, amountInWei.toString());
|
|
13
|
-
return ethers_1.ethers.formatEther(insuranceFee);
|
|
14
|
-
}
|
|
15
|
-
catch (error) {
|
|
16
|
-
console.error("Error in calculateInsuranceFee:", error);
|
|
17
|
-
throw error;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.default = calculateInsuranceFee;
|
|
@@ -1,22 +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 claimReward(chainId, 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 tx = await lendingPoolContract.claimReward();
|
|
12
|
-
const receipt = await tx.wait();
|
|
13
|
-
console.log(`Claimed reward from lending pool`);
|
|
14
|
-
console.log(`Transaction hash: ${receipt?.hash}`);
|
|
15
|
-
return receipt;
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
console.error("Error in claimReward:", error);
|
|
19
|
-
throw error;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.default = claimReward;
|
|
@@ -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 Close the liqudation after the debt has been paid
|
|
8
|
-
* @param chainId
|
|
9
|
-
* @param address
|
|
10
|
-
* @param provider
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
async function closeLiquidation(chainId, 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.closeLiquidation(tokenId);
|
|
19
|
-
await tx.wait();
|
|
20
|
-
console.log(`closeLiquidation result: ${tx.hash}`);
|
|
21
|
-
return tx;
|
|
22
|
-
}
|
|
23
|
-
catch (error) {
|
|
24
|
-
console.error("Error in closeLiquidation:", error);
|
|
25
|
-
throw error;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.default = closeLiquidation;
|
|
@@ -1,50 +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
|
-
//checked
|
|
11
|
-
async function depositNFTToLendingPool(chainId, tokenId, signer) {
|
|
12
|
-
if (!signer) {
|
|
13
|
-
throw new Error("Wallet not connected");
|
|
14
|
-
}
|
|
15
|
-
try {
|
|
16
|
-
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
17
|
-
const nftAddress = (0, getContractAddress_1.getContractAddress)(chainId, "raacnft");
|
|
18
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
19
|
-
const nftABI = (0, artifacts_1.getABI)("raacnft");
|
|
20
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
21
|
-
const nftContract = new ethers_1.ethers.Contract(nftAddress, nftABI, signer);
|
|
22
|
-
const { maxFeePerGas } = await (0, estimateGasPrice_1.default)(signer);
|
|
23
|
-
// Check if the signer owns the NFT
|
|
24
|
-
const owner = await nftContract.ownerOf(tokenId);
|
|
25
|
-
if (owner.toLowerCase() !== (await signer.getAddress()).toLowerCase()) {
|
|
26
|
-
throw new Error(`Signer does not own NFT #${tokenId}`);
|
|
27
|
-
}
|
|
28
|
-
// Approve the lending pool to transfer the NFT
|
|
29
|
-
const approveTx = await nftContract.approve(lendingPoolAddress, tokenId, {
|
|
30
|
-
maxFeePerGas,
|
|
31
|
-
nonce: await signer.getNonce(),
|
|
32
|
-
});
|
|
33
|
-
await approveTx.wait();
|
|
34
|
-
console.log(`Approved lending pool to transfer NFT #${tokenId}`);
|
|
35
|
-
// Deposit (stake) the NFT
|
|
36
|
-
const depositTx = await lendingPoolContract.depositNFT(tokenId, {
|
|
37
|
-
maxFeePerGas,
|
|
38
|
-
nonce: await signer.getNonce(),
|
|
39
|
-
});
|
|
40
|
-
console.log(`Deposit transaction sent for NFT #${tokenId}:`, depositTx.hash);
|
|
41
|
-
const receipt = await depositTx.wait();
|
|
42
|
-
console.log(`Deposited NFT #${tokenId} to lending pool successfully:`, receipt?.hash);
|
|
43
|
-
return receipt;
|
|
44
|
-
}
|
|
45
|
-
catch (error) {
|
|
46
|
-
console.error(`NFT Deposit to Lending Pool error:`, error);
|
|
47
|
-
throw new Error(`NFT Deposit to Lending Pool failed: ${error.message}`);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.default = depositNFTToLendingPool;
|
|
@@ -1,35 +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
|
-
// checked
|
|
11
|
-
async function depositToLendingPool(chainId, amount, signer) {
|
|
12
|
-
if (!signer) {
|
|
13
|
-
throw new Error("Wallet not connected");
|
|
14
|
-
}
|
|
15
|
-
try {
|
|
16
|
-
const lendingPoolAddress = (0, contracts_1.getContractAddress)(chainId, "lendingpool");
|
|
17
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
18
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
19
|
-
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
20
|
-
const { maxFeePerGas } = await (0, estimateGasPrice_1.default)(signer);
|
|
21
|
-
const depositTx = await lendingPoolContract.deposit(amountInWei.toString(), {
|
|
22
|
-
maxFeePerGas,
|
|
23
|
-
nonce: await signer.getNonce(),
|
|
24
|
-
});
|
|
25
|
-
console.log(`Deposit transaction sent for rToken:`, depositTx.hash);
|
|
26
|
-
const receipt = await depositTx.wait();
|
|
27
|
-
console.log(`Deposited ${amount} rToken to lending pool successfully:`, receipt?.hash);
|
|
28
|
-
return receipt;
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
console.error(`Lending Pool Deposit error:`, error);
|
|
32
|
-
throw new Error(`Lending Pool Deposit failed: ${error.message}`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.default = depositToLendingPool;
|
|
@@ -1,28 +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
|
-
const getPositionView_1 = require("./getPositionView");
|
|
7
|
-
// checked
|
|
8
|
-
async function getAllUserData(chainId, address, provider) {
|
|
9
|
-
try {
|
|
10
|
-
const lendingPoolAddress = (0, contracts_1.getContractAddress)(chainId, "lendingpool");
|
|
11
|
-
const abi = (0, artifacts_1.getABI)("lendingpool");
|
|
12
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, abi, provider);
|
|
13
|
-
const data = await lendingPoolContract.getAllUserData(address);
|
|
14
|
-
// ILendingPool.UserDataView
|
|
15
|
-
const formattedData = {
|
|
16
|
-
nftTokenIds: (data[0] || []).map((id) => id.toString()),
|
|
17
|
-
scaledDebtBalance: ethers_1.ethers.formatEther(data[1] || 0n),
|
|
18
|
-
userCollateralValue: ethers_1.ethers.formatEther(data[2] || 0n),
|
|
19
|
-
positions: (data[3] || []).map((e) => (0, getPositionView_1.transformPositionView)(e)),
|
|
20
|
-
};
|
|
21
|
-
return formattedData;
|
|
22
|
-
}
|
|
23
|
-
catch (error) {
|
|
24
|
-
console.error("Error fetching lending pool info:", error);
|
|
25
|
-
throw error;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.default = getAllUserData;
|
|
@@ -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 Total amount of RToken + DEToken = total crvUSD they put in the system so far. How much they have contributed to the system.
|
|
8
|
-
* @param chainId
|
|
9
|
-
* @param address
|
|
10
|
-
* @param provider
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
async function getEligibleUserDeposits(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 value = await lendingPoolContract.getEligibleUserDeposits(address);
|
|
19
|
-
console.log(`Eligible user deposits: ${ethers_1.ethers.formatEther(value)}`);
|
|
20
|
-
return value;
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
console.error("Error in getEligibleUserDeposits:", error);
|
|
24
|
-
throw error;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = getEligibleUserDeposits;
|
|
@@ -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 Get the health factor of a NFT position -> factor < 1 : undercollateralized.
|
|
8
|
-
* @param chainId
|
|
9
|
-
* @param address
|
|
10
|
-
* @param provider
|
|
11
|
-
* @returns The health factor of a position (0, inf)
|
|
12
|
-
*/
|
|
13
|
-
async function getHealthFactor(chainId, address, tokenId, 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 value = await lendingPoolContract.calculateHealthFactor(address, tokenId);
|
|
19
|
-
console.log(`getHealthFactor result: ${value}`);
|
|
20
|
-
return value;
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
console.error("Error in getHealthFactor:", error);
|
|
24
|
-
throw error;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = getHealthFactor;
|
|
@@ -1,26 +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
|
-
// checked
|
|
7
|
-
async function getHousePrice(chainId, tokenId, signer) {
|
|
8
|
-
console.log(chainId, tokenId, signer);
|
|
9
|
-
if (!signer) {
|
|
10
|
-
throw new Error("Wallet not connected");
|
|
11
|
-
}
|
|
12
|
-
try {
|
|
13
|
-
const raacHousePricesAddress = (0, getContractAddress_1.getContractAddress)(chainId, "raachouseprices");
|
|
14
|
-
const raacHousePricesABI = (0, artifacts_1.getABI)("raachouseprices");
|
|
15
|
-
const raacHousePricesContract = new ethers_1.ethers.Contract(raacHousePricesAddress, raacHousePricesABI, signer);
|
|
16
|
-
const housePrice = await raacHousePricesContract.getLatestPrice(tokenId);
|
|
17
|
-
console.log({ housePrice });
|
|
18
|
-
console.log(`House price for token ID ${tokenId}: ${ethers_1.ethers.formatEther(housePrice)} ETH`);
|
|
19
|
-
return housePrice;
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
console.error(`Error getting house price for token ID ${tokenId}:`, error);
|
|
23
|
-
throw new Error(`Failed to get house price: ${error.message}`);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.default = getHousePrice;
|
|
@@ -1,109 +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
|
-
// checked
|
|
7
|
-
async function getLendingPoolInfo(chainId, address, provider) {
|
|
8
|
-
try {
|
|
9
|
-
const lendingPoolAddress = (0, contracts_1.getContractAddress)(chainId, "lendingpool");
|
|
10
|
-
const abi = (0, artifacts_1.getABI)("lendingpool");
|
|
11
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, abi, provider);
|
|
12
|
-
const handleError = (operation, returnType) => (error) => {
|
|
13
|
-
if (error.code === "BAD_DATA") {
|
|
14
|
-
console.log(`BAD_DATA from ${operation} - Pool empty?`, error.message);
|
|
15
|
-
return returnType || null;
|
|
16
|
-
}
|
|
17
|
-
throw error;
|
|
18
|
-
};
|
|
19
|
-
const [reserve, rateData, normalizedIncome, normalizedDebt, liquidationThreshold, healthFactorLiquidationThreshold,] = await Promise.all([
|
|
20
|
-
lendingPoolContract.reserve().catch(handleError("reserve")),
|
|
21
|
-
lendingPoolContract.rateData().catch(handleError("rateData")),
|
|
22
|
-
lendingPoolContract
|
|
23
|
-
.getNormalizedIncome()
|
|
24
|
-
.catch(handleError("getNormalizedIncome", 0n)),
|
|
25
|
-
lendingPoolContract
|
|
26
|
-
.getNormalizedDebt()
|
|
27
|
-
.catch(handleError("getNormalizedDebt", 0n)),
|
|
28
|
-
lendingPoolContract
|
|
29
|
-
.liquidationThreshold()
|
|
30
|
-
.catch(handleError("liquidationThreshold", 0n)),
|
|
31
|
-
lendingPoolContract
|
|
32
|
-
.healthFactorLiquidationThreshold()
|
|
33
|
-
.catch(handleError("healthFactorLiquidationThreshold", 0n)),
|
|
34
|
-
]);
|
|
35
|
-
console.log(reserve);
|
|
36
|
-
// Extract data from reserve
|
|
37
|
-
const totalLiquidity = reserve?.totalLiquidity ?? 0n;
|
|
38
|
-
const totalUsage = reserve?.totalUsage ?? 0n;
|
|
39
|
-
const liquidityIndex = reserve?.liquidityIndex ?? 0n;
|
|
40
|
-
const usageIndex = reserve?.usageIndex ?? 0n;
|
|
41
|
-
// Compute utilization
|
|
42
|
-
let utilization = 0n;
|
|
43
|
-
if (totalLiquidity + totalUsage > 0n) {
|
|
44
|
-
utilization = (totalUsage * BigInt(1e27)) / (totalLiquidity + totalUsage);
|
|
45
|
-
}
|
|
46
|
-
// Extract rate data
|
|
47
|
-
const currentLiquidityRate = rateData?.currentLiquidityRate ?? 0n;
|
|
48
|
-
const currentUsageRate = rateData?.currentUsageRate ?? 0n;
|
|
49
|
-
const primeRate = rateData?.primeRate ?? 0n;
|
|
50
|
-
const baseRate = rateData?.baseRate ?? 0n;
|
|
51
|
-
const optimalRate = rateData?.optimalRate ?? 0n;
|
|
52
|
-
const maxRate = rateData?.maxRate ?? 0n;
|
|
53
|
-
const optimalUtilizationRate = rateData?.optimalUtilizationRate ?? 0n;
|
|
54
|
-
const protocolFeeRate = rateData?.protocolFeeRate ?? 0n;
|
|
55
|
-
// Compute APY
|
|
56
|
-
let apy;
|
|
57
|
-
if (utilization <= optimalUtilizationRate && optimalUtilizationRate > 0) {
|
|
58
|
-
const rateSlope = primeRate - baseRate;
|
|
59
|
-
const rateIncrease = (utilization * rateSlope) / optimalUtilizationRate;
|
|
60
|
-
apy = baseRate + rateIncrease;
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
const excessUtilization = utilization - optimalUtilizationRate;
|
|
64
|
-
const maxExcessUtilization = BigInt(1e27) - optimalUtilizationRate;
|
|
65
|
-
const rateSlope = maxRate - primeRate;
|
|
66
|
-
const rateIncrease = (excessUtilization * rateSlope) / maxExcessUtilization;
|
|
67
|
-
apy = primeRate + rateIncrease;
|
|
68
|
-
}
|
|
69
|
-
let userRedeemable = 0n;
|
|
70
|
-
if (address) {
|
|
71
|
-
// Fetch user's scaled RToken balance
|
|
72
|
-
const rTokenAddress = reserve?.reserveRTokenAddress;
|
|
73
|
-
const rTokenABI = (0, artifacts_1.getABI)("rtoken");
|
|
74
|
-
const rTokenContract = new ethers_1.ethers.Contract(rTokenAddress, rTokenABI, provider);
|
|
75
|
-
const userScaledBalance = await rTokenContract
|
|
76
|
-
.balanceOf(address)
|
|
77
|
-
.catch(handleError("rToken balanceOf"));
|
|
78
|
-
// Compute user's redeemable balance: userRedeemable = userScaledBalance * liquidityIndex / RAY
|
|
79
|
-
userRedeemable = (userScaledBalance * liquidityIndex) / BigInt(1e27);
|
|
80
|
-
}
|
|
81
|
-
const result = {
|
|
82
|
-
totalLiquidity: ethers_1.ethers.formatEther(totalLiquidity),
|
|
83
|
-
totalBorrow: ethers_1.ethers.formatEther(totalUsage),
|
|
84
|
-
utilization: (Number(utilization.toString()) / 1e27).toFixed(6), // Utilization as a decimal value between 0 and 1
|
|
85
|
-
liquidityIndex: (Number(liquidityIndex.toString()) / 1e27).toFixed(6),
|
|
86
|
-
usageIndex: (Number(usageIndex.toString()) / 1e27).toFixed(6),
|
|
87
|
-
currentLiquidityRate: (Number(currentLiquidityRate.toString()) / 1e25).toFixed(2) + "%",
|
|
88
|
-
currentUsageRate: (Number(currentUsageRate.toString()) / 1e25).toFixed(2) + "%",
|
|
89
|
-
primeRate: (Number(primeRate.toString()) / 1e25).toFixed(2) + "%",
|
|
90
|
-
baseRate: (Number(baseRate.toString()) / 1e25).toFixed(2) + "%",
|
|
91
|
-
optimalRate: (Number(optimalRate.toString()) / 1e25).toFixed(2) + "%",
|
|
92
|
-
maxRate: (Number(maxRate.toString()) / 1e25).toFixed(2) + "%",
|
|
93
|
-
optimalUtilizationRate: (Number(optimalUtilizationRate.toString()) / 1e27).toFixed(6),
|
|
94
|
-
protocolFeeRate: (Number(protocolFeeRate.toString()) / 1e25).toFixed(2) + "%",
|
|
95
|
-
normalizedIncome: (Number(normalizedIncome.toString()) / 1e27).toFixed(6),
|
|
96
|
-
normalizedDebt: (Number(normalizedDebt.toString()) / 1e27).toFixed(6),
|
|
97
|
-
apy: (Number(apy.toString()) / 1e25).toFixed(2) + "%",
|
|
98
|
-
userRedeemable: ethers_1.ethers.formatEther(userRedeemable ?? 0n),
|
|
99
|
-
liquidationThreshold: Number(liquidationThreshold.toString()) / 10e3,
|
|
100
|
-
healthFactorLiquidationThreshold: healthFactorLiquidationThreshold.toString(),
|
|
101
|
-
};
|
|
102
|
-
return result;
|
|
103
|
-
}
|
|
104
|
-
catch (error) {
|
|
105
|
-
console.error("Error fetching lending pool info:", error);
|
|
106
|
-
throw error;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
exports.default = getLendingPoolInfo;
|
|
@@ -1,22 +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
|
-
// The lending pool reserve contains the total liquidity of the lending pool. see getLendingPooInfo.ts
|
|
7
|
-
// @deprecated
|
|
8
|
-
async function getLendingPoolTotalLiquidity(chainId, provider) {
|
|
9
|
-
try {
|
|
10
|
-
const lendingPoolAddress = (0, contracts_1.getContractAddress)(chainId, "lendingpool");
|
|
11
|
-
const abi = (0, artifacts_1.getABI)("lendingpool");
|
|
12
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, abi, provider);
|
|
13
|
-
const reserve = (await lendingPoolContract.reserve());
|
|
14
|
-
const totalLiquidity = reserve.totalLiquidity;
|
|
15
|
-
return totalLiquidity;
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
console.error("Error fetching total liquidity:", error);
|
|
19
|
-
throw error;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.default = getLendingPoolTotalLiquidity;
|
|
@@ -1,20 +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 getPendingReward(chainId, address, provider) {
|
|
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, provider);
|
|
11
|
-
const reward = await lendingPoolContract.getPendingReward(address);
|
|
12
|
-
console.log(`Pending reward: ${ethers_1.ethers.formatEther(reward)}`);
|
|
13
|
-
return reward;
|
|
14
|
-
}
|
|
15
|
-
catch (error) {
|
|
16
|
-
console.error("Error in getPendingReward:", error);
|
|
17
|
-
throw error;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.default = getPendingReward;
|
|
@@ -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 Get the raw debt of the user on a NFT. Equivant to the original amount borrowed on NFT.
|
|
8
|
-
* @param chainId
|
|
9
|
-
* @param address
|
|
10
|
-
* @param provider
|
|
11
|
-
* @returns The raw debt of the user on a NFT
|
|
12
|
-
*/
|
|
13
|
-
async function getPositionDebt(chainId, address, tokenId, 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.getPositionDebt(address, tokenId);
|
|
19
|
-
console.log(`getPositionDebt result: ${ethers_1.ethers.formatEther(reward)}`);
|
|
20
|
-
return reward;
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
console.error("Error in getPositionDebt:", error);
|
|
24
|
-
throw error;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = getPositionDebt;
|
|
@@ -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 Get the scaled debt of the user on a NFT (contains the accured interest)
|
|
8
|
-
* @param chainId
|
|
9
|
-
* @param address
|
|
10
|
-
* @param provider
|
|
11
|
-
* @returns The debt of the user on a NFT with the accured interest
|
|
12
|
-
*/
|
|
13
|
-
async function getPositionScaledDebt(chainId, address, tokenId, 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.getPositionScaledDebt(address, tokenId);
|
|
19
|
-
console.log(`getPositionScaledDebt result: ${ethers_1.ethers.formatEther(reward)}`);
|
|
20
|
-
return reward;
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
console.error("Error in getPositionScaledDebt:", error);
|
|
24
|
-
throw error;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = getPositionScaledDebt;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transformPositionView = transformPositionView;
|
|
4
|
-
const ethers_1 = require("ethers");
|
|
5
|
-
const getContractAddress_1 = require("../../contracts/getContractAddress");
|
|
6
|
-
const artifacts_1 = require("../../utils/artifacts");
|
|
7
|
-
function transformPositionView(positionView) {
|
|
8
|
-
return {
|
|
9
|
-
rawDebtBalance: ethers_1.ethers.formatEther(positionView?.[0] || 0n),
|
|
10
|
-
scaledDebtBalance: ethers_1.ethers.formatEther(positionView?.[1] || 0n),
|
|
11
|
-
healthFactor: (positionView?.[2] || 0n).toString(),
|
|
12
|
-
isUnderLiquidation: positionView?.[3] || false,
|
|
13
|
-
liquidationStartTime: (positionView?.[4] || 0n).toString(),
|
|
14
|
-
positionIndex: (positionView?.[5] || 0n).toString(),
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @description Return all the information about a NFT position
|
|
19
|
-
* @param chainId
|
|
20
|
-
* @param address
|
|
21
|
-
* @param provider
|
|
22
|
-
* @returns All information about a NFT position
|
|
23
|
-
*/
|
|
24
|
-
async function getPositionView(chainId, address, tokenId, provider) {
|
|
25
|
-
try {
|
|
26
|
-
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
27
|
-
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
28
|
-
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, provider);
|
|
29
|
-
const res = await lendingPoolContract.getPositionView(address, tokenId);
|
|
30
|
-
console.log(`getPositionView result: ${res}`);
|
|
31
|
-
return transformPositionView(res);
|
|
32
|
-
}
|
|
33
|
-
catch (error) {
|
|
34
|
-
console.error("Error in getPositionView:", error);
|
|
35
|
-
throw error;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.default = getPositionView;
|
|
@@ -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 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 getPositionsScaledDebt(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.getPositionsScaledDebt(address);
|
|
19
|
-
console.log(`getPositionsScaledDebt result: ${ethers_1.ethers.formatEther(reward)}`);
|
|
20
|
-
return reward;
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
console.error("Error in getPositionsScaledDebt:", error);
|
|
24
|
-
throw error;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = getPositionsScaledDebt;
|