@raac/rpc 1.0.1 → 1.0.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RPCLibrary.js +61 -8
- package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +1743 -0
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +175 -67
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +279 -0
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +1231 -195
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +153 -199
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +72 -2
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +2 -2
- package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.json +770 -0
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +707 -49
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +23 -84
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +62 -62
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +2 -2
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +774 -0
- package/dist/artifacts/zeno/Auction.sol/Auction.json +34 -114
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +3 -3
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +3 -3
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +3 -3
- package/dist/configs/chains/11155111.json +132 -0
- package/dist/configs/chains/17000.json +127 -0
- package/dist/configs/chains/8453.json +26 -14
- package/dist/configs/chains/index.js +4 -0
- package/dist/configs/createConfig.js +6 -0
- package/dist/contracts/feeCollector/claimRewardFromPool.js +24 -0
- package/dist/contracts/housePrices/getLatestPrice.js +1 -1
- package/dist/contracts/indexToken/getNextRandomNFT.js +30 -0
- package/dist/contracts/indexToken/redeemNFT.js +39 -0
- package/dist/methods/commons/estimateGasPrice.js +7 -2
- package/dist/nfts/getAllTokens.js +34 -0
- package/dist/nfts/{addNewBatch.js → getBaseUri.js} +7 -8
- package/dist/nfts/getMintFeePercentage.js +23 -0
- package/dist/nfts/getMintPrice.js +28 -0
- package/dist/nfts/getTokenURI.js +23 -0
- package/dist/nfts/getTokensByOwner.js +35 -0
- package/dist/nfts/getTotalPropertiesCount.js +23 -0
- package/dist/nfts/{getCurrentBatchSize.js → totalNFTSupply.js} +3 -3
- package/dist/pools/lendingPool/borrowFromLendingPool.js +4 -3
- package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +40 -0
- package/dist/pools/lendingPool/calculateInsuranceFee.js +20 -0
- package/dist/pools/lendingPool/claimReward.js +22 -0
- package/dist/pools/lendingPool/closeLiquidation.js +28 -0
- package/dist/pools/lendingPool/depositNFTToLendingPool.js +0 -1
- package/dist/pools/lendingPool/depositToLendingPool.js +2 -2
- package/dist/pools/lendingPool/getAllUserData.js +28 -0
- package/dist/pools/lendingPool/getEligibleUserDeposits.js +27 -0
- package/dist/pools/lendingPool/getHealthFactor.js +27 -0
- package/dist/pools/lendingPool/getLendingPoolInfo.js +8 -5
- package/dist/pools/lendingPool/getPendingReward.js +20 -0
- package/dist/pools/lendingPool/getPositionDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionView.js +38 -0
- package/dist/pools/lendingPool/getPositionsScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +21 -0
- package/dist/pools/lendingPool/getUserCollateralValue.js +27 -0
- package/dist/pools/lendingPool/initializeLiquidation.js +28 -0
- package/dist/pools/lendingPool/repayToLendingPool.js +4 -8
- package/dist/pools/lendingPool/withdrawFromLendingPool.js +2 -2
- package/dist/pools/stabilityPool/depositNFTToStabilityPool.js +40 -0
- package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +21 -0
- package/dist/pools/stabilityPool/getStabilityPoolInfo.js +2 -12
- package/dist/scripts/index.js +90 -35
- package/dist/types/RPCLibrary.d.ts +61 -8
- package/dist/types/configs/chains/index.d.ts +5 -1
- package/dist/types/configs/createConfig.d.ts +6 -0
- package/dist/types/configs/index.d.ts +2 -0
- package/dist/types/contracts/feeCollector/claimRewardFromPool.d.ts +4 -0
- package/dist/types/contracts/housePrices/getLatestPrice.d.ts +1 -1
- package/dist/types/contracts/indexToken/getNextRandomNFT.d.ts +7 -0
- package/dist/types/contracts/indexToken/redeemNFT.d.ts +4 -0
- package/dist/types/nfts/getAllTokens.d.ts +7 -0
- package/dist/types/nfts/getBaseUri.d.ts +4 -0
- package/dist/types/nfts/getMintFeePercentage.d.ts +4 -0
- package/dist/types/nfts/getMintPrice.d.ts +7 -0
- package/dist/types/nfts/getTokenURI.d.ts +4 -0
- package/dist/types/nfts/getTokensByOwner.d.ts +10 -0
- package/dist/types/nfts/getTotalPropertiesCount.d.ts +4 -0
- package/dist/types/nfts/totalNFTSupply.d.ts +4 -0
- package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +1 -1
- package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +4 -0
- package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +4 -0
- package/dist/types/pools/lendingPool/claimReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/closeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/getAllUserData.d.ts +16 -0
- package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +11 -0
- package/dist/types/pools/lendingPool/getHealthFactor.d.ts +11 -0
- package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +2 -1
- package/dist/types/pools/lendingPool/getPendingReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/getPositionDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionView.d.ts +27 -0
- package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +11 -0
- package/dist/types/pools/lendingPool/initializeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +2 -2
- package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +1 -1
- package/dist/types/pools/stabilityPool/depositNFTToStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +1 -3
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +35 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/index.d.ts +3 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +156 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +446 -221
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +108 -20
- package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +6 -16
- package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +166 -0
- package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +811 -99
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +152 -148
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +29 -2
- package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +65 -51
- package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +187 -2
- package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +413 -19
- package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +40 -40
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IBaseCollector.d.ts +39 -0
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +317 -130
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +58 -22
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +5 -3
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +86 -0
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +83 -45
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +539 -54
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +92 -71
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +123 -27
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IIndexToken.d.ts +187 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +243 -17
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +37 -37
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseVault.d.ts +83 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +5 -1
- package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockVRFCoordinatorV2.d.ts +530 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolCollector.d.ts +156 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +557 -102
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLiquidityPool.d.ts +486 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts +35 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockCollectableUnderlying.d.ts +292 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/MockVault.d.ts +290 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/MockStringUtils.d.ts +25 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +171 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +571 -194
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +138 -54
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +5 -31
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +231 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +897 -64
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +128 -161
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +54 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +47 -29
- package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +317 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +525 -17
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +52 -52
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IBaseCollector__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +409 -90
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +59 -15
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +78 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +119 -39
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +547 -19
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +68 -67
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +119 -6
- package/dist/types/typechain-types/factories/{erc721a/contracts/IERC721A__factory.d.ts → contracts/interfaces/core/tokens/IIndexToken__factory.d.ts} +74 -215
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +274 -10
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +26 -26
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/{IMarketCreator__factory.d.ts → core/vaults/IBaseVault__factory.d.ts} +78 -42
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
- 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 +16 -4
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +10 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockVRFCoordinatorV2__factory.d.ts +620 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +234 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +539 -77
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +795 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +68 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +451 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +525 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +40 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/index.d.ts +0 -1
- package/dist/types/typechain-types/index.d.ts +28 -10
- package/dist/types/utils/artifacts.d.ts +677 -39
- package/dist/types/utils/contracts.d.ts +4 -0
- package/dist/utils/artifacts.js +9 -0
- package/package.json +1 -1
- package/dist/nfts/getDepositedNFTs.js +0 -19
- package/dist/nfts/getOwnedNFTs.js +0 -34
- package/dist/types/nfts/addNewBatch.d.ts +0 -4
- package/dist/types/nfts/getCurrentBatchSize.d.ts +0 -4
- package/dist/types/nfts/getDepositedNFTs.d.ts +0 -7
- package/dist/types/nfts/getOwnedNFTs.d.ts +0 -7
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/MarketCreator.d.ts +0 -274
- package/dist/types/typechain-types/contracts/interfaces/IMarketCreator.d.ts +0 -85
- package/dist/types/typechain-types/contracts/mocks/core/collectors/MockFeeCollector.d.ts +0 -708
- package/dist/types/typechain-types/erc721a/contracts/IERC721A.d.ts +0 -242
- package/dist/types/typechain-types/erc721a/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/erc721a/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/MarketCreator__factory.d.ts +0 -405
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockFeeCollector__factory.d.ts +0 -985
- package/dist/types/typechain-types/factories/erc721a/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/erc721a/index.d.ts +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
3
|
export interface IRTokenInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "burn" | "calculateDustAmount" | "decimals" | "getAssetAddress" | "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "Approval" | "BalanceTransfer" | "Burn" | "BurnerSet" | "DustTransferred" | "
|
|
4
|
+
getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "burn" | "calculateDustAmount" | "decimals" | "getAssetAddress" | "getLendingPool" | "getLiquidityIndex" | "mint" | "rawBalanceOf" | "rawTotalSupply" | "setLendingPool" | "totalSupply" | "transfer" | "transferAccruedDust" | "transferAsset" | "transferFrom" | "updateLiquidityIndex"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "BalanceTransfer" | "Burn" | "BurnerSet" | "DustTransferred" | "LendingPoolUpdated" | "LiquidityIndexUpdated" | "Mint" | "MinterSet" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
@@ -10,12 +10,12 @@ export interface IRTokenInterface extends Interface {
|
|
|
10
10
|
encodeFunctionData(functionFragment: "calculateDustAmount", values?: undefined): string;
|
|
11
11
|
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
|
|
12
12
|
encodeFunctionData(functionFragment: "getAssetAddress", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "getLendingPool", values?: undefined): string;
|
|
13
14
|
encodeFunctionData(functionFragment: "getLiquidityIndex", values?: undefined): string;
|
|
14
|
-
encodeFunctionData(functionFragment: "getReservePool", values?: undefined): string;
|
|
15
15
|
encodeFunctionData(functionFragment: "mint", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
16
|
-
encodeFunctionData(functionFragment: "
|
|
17
|
-
encodeFunctionData(functionFragment: "
|
|
18
|
-
encodeFunctionData(functionFragment: "
|
|
16
|
+
encodeFunctionData(functionFragment: "rawBalanceOf", values: [AddressLike]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "rawTotalSupply", values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "setLendingPool", values: [AddressLike]): string;
|
|
19
19
|
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
20
20
|
encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
|
|
21
21
|
encodeFunctionData(functionFragment: "transferAccruedDust", values: [AddressLike, BigNumberish]): string;
|
|
@@ -29,12 +29,12 @@ export interface IRTokenInterface extends Interface {
|
|
|
29
29
|
decodeFunctionResult(functionFragment: "calculateDustAmount", data: BytesLike): Result;
|
|
30
30
|
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
|
|
31
31
|
decodeFunctionResult(functionFragment: "getAssetAddress", data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: "getLendingPool", data: BytesLike): Result;
|
|
32
33
|
decodeFunctionResult(functionFragment: "getLiquidityIndex", data: BytesLike): Result;
|
|
33
|
-
decodeFunctionResult(functionFragment: "getReservePool", data: BytesLike): Result;
|
|
34
34
|
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
|
35
|
-
decodeFunctionResult(functionFragment: "
|
|
36
|
-
decodeFunctionResult(functionFragment: "
|
|
37
|
-
decodeFunctionResult(functionFragment: "
|
|
35
|
+
decodeFunctionResult(functionFragment: "rawBalanceOf", data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: "rawTotalSupply", data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: "setLendingPool", data: BytesLike): Result;
|
|
38
38
|
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
39
39
|
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
40
40
|
decodeFunctionResult(functionFragment: "transferAccruedDust", data: BytesLike): Result;
|
|
@@ -130,6 +130,21 @@ export declare namespace DustTransferredEvent {
|
|
|
130
130
|
type Log = TypedEventLog<Event>;
|
|
131
131
|
type LogDescription = TypedLogDescription<Event>;
|
|
132
132
|
}
|
|
133
|
+
export declare namespace LendingPoolUpdatedEvent {
|
|
134
|
+
type InputTuple = [
|
|
135
|
+
oldLendingPool: AddressLike,
|
|
136
|
+
newLendingPool: AddressLike
|
|
137
|
+
];
|
|
138
|
+
type OutputTuple = [oldLendingPool: string, newLendingPool: string];
|
|
139
|
+
interface OutputObject {
|
|
140
|
+
oldLendingPool: string;
|
|
141
|
+
newLendingPool: string;
|
|
142
|
+
}
|
|
143
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
144
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
145
|
+
type Log = TypedEventLog<Event>;
|
|
146
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
147
|
+
}
|
|
133
148
|
export declare namespace LiquidityIndexUpdatedEvent {
|
|
134
149
|
type InputTuple = [newLiquidityIndex: BigNumberish];
|
|
135
150
|
type OutputTuple = [newLiquidityIndex: bigint];
|
|
@@ -176,21 +191,6 @@ export declare namespace MinterSetEvent {
|
|
|
176
191
|
type Log = TypedEventLog<Event>;
|
|
177
192
|
type LogDescription = TypedLogDescription<Event>;
|
|
178
193
|
}
|
|
179
|
-
export declare namespace ReservePoolUpdatedEvent {
|
|
180
|
-
type InputTuple = [
|
|
181
|
-
oldReservePool: AddressLike,
|
|
182
|
-
newReservePool: AddressLike
|
|
183
|
-
];
|
|
184
|
-
type OutputTuple = [oldReservePool: string, newReservePool: string];
|
|
185
|
-
interface OutputObject {
|
|
186
|
-
oldReservePool: string;
|
|
187
|
-
newReservePool: string;
|
|
188
|
-
}
|
|
189
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
190
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
191
|
-
type Log = TypedEventLog<Event>;
|
|
192
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
193
|
-
}
|
|
194
194
|
export declare namespace TransferEvent {
|
|
195
195
|
type InputTuple = [
|
|
196
196
|
from: AddressLike,
|
|
@@ -245,8 +245,8 @@ export interface IRToken extends BaseContract {
|
|
|
245
245
|
calculateDustAmount: TypedContractMethod<[], [bigint], "view">;
|
|
246
246
|
decimals: TypedContractMethod<[], [bigint], "view">;
|
|
247
247
|
getAssetAddress: TypedContractMethod<[], [string], "view">;
|
|
248
|
+
getLendingPool: TypedContractMethod<[], [string], "view">;
|
|
248
249
|
getLiquidityIndex: TypedContractMethod<[], [bigint], "view">;
|
|
249
|
-
getReservePool: TypedContractMethod<[], [string], "view">;
|
|
250
250
|
mint: TypedContractMethod<[
|
|
251
251
|
caller: AddressLike,
|
|
252
252
|
onBehalfOf: AddressLike,
|
|
@@ -255,10 +255,10 @@ export interface IRToken extends BaseContract {
|
|
|
255
255
|
], [
|
|
256
256
|
[boolean, bigint, bigint, bigint]
|
|
257
257
|
], "nonpayable">;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
rawBalanceOf: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
259
|
+
rawTotalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
260
|
+
setLendingPool: TypedContractMethod<[
|
|
261
|
+
_lendingPool: AddressLike
|
|
262
262
|
], [
|
|
263
263
|
void
|
|
264
264
|
], "nonpayable">;
|
|
@@ -318,8 +318,8 @@ export interface IRToken extends BaseContract {
|
|
|
318
318
|
getFunction(nameOrSignature: "calculateDustAmount"): TypedContractMethod<[], [bigint], "view">;
|
|
319
319
|
getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
|
|
320
320
|
getFunction(nameOrSignature: "getAssetAddress"): TypedContractMethod<[], [string], "view">;
|
|
321
|
+
getFunction(nameOrSignature: "getLendingPool"): TypedContractMethod<[], [string], "view">;
|
|
321
322
|
getFunction(nameOrSignature: "getLiquidityIndex"): TypedContractMethod<[], [bigint], "view">;
|
|
322
|
-
getFunction(nameOrSignature: "getReservePool"): TypedContractMethod<[], [string], "view">;
|
|
323
323
|
getFunction(nameOrSignature: "mint"): TypedContractMethod<[
|
|
324
324
|
caller: AddressLike,
|
|
325
325
|
onBehalfOf: AddressLike,
|
|
@@ -328,9 +328,9 @@ export interface IRToken extends BaseContract {
|
|
|
328
328
|
], [
|
|
329
329
|
[boolean, bigint, bigint, bigint]
|
|
330
330
|
], "nonpayable">;
|
|
331
|
-
getFunction(nameOrSignature: "
|
|
332
|
-
getFunction(nameOrSignature: "
|
|
333
|
-
getFunction(nameOrSignature: "
|
|
331
|
+
getFunction(nameOrSignature: "rawBalanceOf"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
332
|
+
getFunction(nameOrSignature: "rawTotalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
333
|
+
getFunction(nameOrSignature: "setLendingPool"): TypedContractMethod<[_lendingPool: AddressLike], [void], "nonpayable">;
|
|
334
334
|
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
335
335
|
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
336
336
|
to: AddressLike,
|
|
@@ -367,10 +367,10 @@ export interface IRToken extends BaseContract {
|
|
|
367
367
|
getEvent(key: "Burn"): TypedContractEvent<BurnEvent.InputTuple, BurnEvent.OutputTuple, BurnEvent.OutputObject>;
|
|
368
368
|
getEvent(key: "BurnerSet"): TypedContractEvent<BurnerSetEvent.InputTuple, BurnerSetEvent.OutputTuple, BurnerSetEvent.OutputObject>;
|
|
369
369
|
getEvent(key: "DustTransferred"): TypedContractEvent<DustTransferredEvent.InputTuple, DustTransferredEvent.OutputTuple, DustTransferredEvent.OutputObject>;
|
|
370
|
+
getEvent(key: "LendingPoolUpdated"): TypedContractEvent<LendingPoolUpdatedEvent.InputTuple, LendingPoolUpdatedEvent.OutputTuple, LendingPoolUpdatedEvent.OutputObject>;
|
|
370
371
|
getEvent(key: "LiquidityIndexUpdated"): TypedContractEvent<LiquidityIndexUpdatedEvent.InputTuple, LiquidityIndexUpdatedEvent.OutputTuple, LiquidityIndexUpdatedEvent.OutputObject>;
|
|
371
372
|
getEvent(key: "Mint"): TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
|
|
372
373
|
getEvent(key: "MinterSet"): TypedContractEvent<MinterSetEvent.InputTuple, MinterSetEvent.OutputTuple, MinterSetEvent.OutputObject>;
|
|
373
|
-
getEvent(key: "ReservePoolUpdated"): TypedContractEvent<ReservePoolUpdatedEvent.InputTuple, ReservePoolUpdatedEvent.OutputTuple, ReservePoolUpdatedEvent.OutputObject>;
|
|
374
374
|
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
375
375
|
filters: {
|
|
376
376
|
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
@@ -383,14 +383,14 @@ export interface IRToken extends BaseContract {
|
|
|
383
383
|
BurnerSet: TypedContractEvent<BurnerSetEvent.InputTuple, BurnerSetEvent.OutputTuple, BurnerSetEvent.OutputObject>;
|
|
384
384
|
"DustTransferred(address,uint256)": TypedContractEvent<DustTransferredEvent.InputTuple, DustTransferredEvent.OutputTuple, DustTransferredEvent.OutputObject>;
|
|
385
385
|
DustTransferred: TypedContractEvent<DustTransferredEvent.InputTuple, DustTransferredEvent.OutputTuple, DustTransferredEvent.OutputObject>;
|
|
386
|
+
"LendingPoolUpdated(address,address)": TypedContractEvent<LendingPoolUpdatedEvent.InputTuple, LendingPoolUpdatedEvent.OutputTuple, LendingPoolUpdatedEvent.OutputObject>;
|
|
387
|
+
LendingPoolUpdated: TypedContractEvent<LendingPoolUpdatedEvent.InputTuple, LendingPoolUpdatedEvent.OutputTuple, LendingPoolUpdatedEvent.OutputObject>;
|
|
386
388
|
"LiquidityIndexUpdated(uint256)": TypedContractEvent<LiquidityIndexUpdatedEvent.InputTuple, LiquidityIndexUpdatedEvent.OutputTuple, LiquidityIndexUpdatedEvent.OutputObject>;
|
|
387
389
|
LiquidityIndexUpdated: TypedContractEvent<LiquidityIndexUpdatedEvent.InputTuple, LiquidityIndexUpdatedEvent.OutputTuple, LiquidityIndexUpdatedEvent.OutputObject>;
|
|
388
390
|
"Mint(address,address,uint256,uint256)": TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
|
|
389
391
|
Mint: TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
|
|
390
392
|
"MinterSet(address)": TypedContractEvent<MinterSetEvent.InputTuple, MinterSetEvent.OutputTuple, MinterSetEvent.OutputObject>;
|
|
391
393
|
MinterSet: TypedContractEvent<MinterSetEvent.InputTuple, MinterSetEvent.OutputTuple, MinterSetEvent.OutputObject>;
|
|
392
|
-
"ReservePoolUpdated(address,address)": TypedContractEvent<ReservePoolUpdatedEvent.InputTuple, ReservePoolUpdatedEvent.OutputTuple, ReservePoolUpdatedEvent.OutputObject>;
|
|
393
|
-
ReservePoolUpdated: TypedContractEvent<ReservePoolUpdatedEvent.InputTuple, ReservePoolUpdatedEvent.OutputTuple, ReservePoolUpdatedEvent.OutputObject>;
|
|
394
394
|
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
395
395
|
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
396
396
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { IDEToken } from "./IDEToken";
|
|
2
2
|
export type { IDebtToken } from "./IDebtToken";
|
|
3
|
+
export type { IIndexToken } from "./IIndexToken";
|
|
3
4
|
export type { IRAACNFT } from "./IRAACNFT";
|
|
4
5
|
export type { IRAACToken } from "./IRAACToken";
|
|
5
6
|
export type { IRToken } from "./IRToken";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export interface IBaseVaultInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "asset" | "deposit" | "maxDeposit" | "maxWithdraw" | "previewDeposit" | "previewWithdraw" | "pricePerShare" | "totalAssets" | "withdraw"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "asset", values?: undefined): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "deposit", values: [BigNumberish, AddressLike]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "maxDeposit", values: [AddressLike]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "maxWithdraw", values: [AddressLike]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "previewDeposit", values: [BigNumberish]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "previewWithdraw", values: [BigNumberish]): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "pricePerShare", values: [boolean]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "totalAssets", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
14
|
+
decodeFunctionResult(functionFragment: "asset", data: BytesLike): Result;
|
|
15
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
16
|
+
decodeFunctionResult(functionFragment: "maxDeposit", data: BytesLike): Result;
|
|
17
|
+
decodeFunctionResult(functionFragment: "maxWithdraw", data: BytesLike): Result;
|
|
18
|
+
decodeFunctionResult(functionFragment: "previewDeposit", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "previewWithdraw", data: BytesLike): Result;
|
|
20
|
+
decodeFunctionResult(functionFragment: "pricePerShare", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "totalAssets", data: BytesLike): Result;
|
|
22
|
+
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
23
|
+
}
|
|
24
|
+
export interface IBaseVault extends BaseContract {
|
|
25
|
+
connect(runner?: ContractRunner | null): IBaseVault;
|
|
26
|
+
waitForDeployment(): Promise<this>;
|
|
27
|
+
interface: IBaseVaultInterface;
|
|
28
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
29
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
30
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
31
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
32
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
33
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
34
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
35
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
36
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
37
|
+
asset: TypedContractMethod<[], [string], "view">;
|
|
38
|
+
deposit: TypedContractMethod<[
|
|
39
|
+
assets: BigNumberish,
|
|
40
|
+
receiver: AddressLike
|
|
41
|
+
], [
|
|
42
|
+
bigint
|
|
43
|
+
], "nonpayable">;
|
|
44
|
+
maxDeposit: TypedContractMethod<[receiver: AddressLike], [bigint], "view">;
|
|
45
|
+
maxWithdraw: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
46
|
+
previewDeposit: TypedContractMethod<[assets: BigNumberish], [bigint], "view">;
|
|
47
|
+
previewWithdraw: TypedContractMethod<[
|
|
48
|
+
assets: BigNumberish
|
|
49
|
+
], [
|
|
50
|
+
bigint
|
|
51
|
+
], "view">;
|
|
52
|
+
pricePerShare: TypedContractMethod<[isFloor: boolean], [bigint], "view">;
|
|
53
|
+
totalAssets: TypedContractMethod<[], [bigint], "view">;
|
|
54
|
+
withdraw: TypedContractMethod<[
|
|
55
|
+
assets: BigNumberish,
|
|
56
|
+
receiver: AddressLike,
|
|
57
|
+
owner: AddressLike
|
|
58
|
+
], [
|
|
59
|
+
bigint
|
|
60
|
+
], "nonpayable">;
|
|
61
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
62
|
+
getFunction(nameOrSignature: "asset"): TypedContractMethod<[], [string], "view">;
|
|
63
|
+
getFunction(nameOrSignature: "deposit"): TypedContractMethod<[
|
|
64
|
+
assets: BigNumberish,
|
|
65
|
+
receiver: AddressLike
|
|
66
|
+
], [
|
|
67
|
+
bigint
|
|
68
|
+
], "nonpayable">;
|
|
69
|
+
getFunction(nameOrSignature: "maxDeposit"): TypedContractMethod<[receiver: AddressLike], [bigint], "view">;
|
|
70
|
+
getFunction(nameOrSignature: "maxWithdraw"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
71
|
+
getFunction(nameOrSignature: "previewDeposit"): TypedContractMethod<[assets: BigNumberish], [bigint], "view">;
|
|
72
|
+
getFunction(nameOrSignature: "previewWithdraw"): TypedContractMethod<[assets: BigNumberish], [bigint], "view">;
|
|
73
|
+
getFunction(nameOrSignature: "pricePerShare"): TypedContractMethod<[isFloor: boolean], [bigint], "view">;
|
|
74
|
+
getFunction(nameOrSignature: "totalAssets"): TypedContractMethod<[], [bigint], "view">;
|
|
75
|
+
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
|
|
76
|
+
assets: BigNumberish,
|
|
77
|
+
receiver: AddressLike,
|
|
78
|
+
owner: AddressLike
|
|
79
|
+
], [
|
|
80
|
+
bigint
|
|
81
|
+
], "nonpayable">;
|
|
82
|
+
filters: {};
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { IBaseVault } from "./IBaseVault";
|
|
@@ -6,7 +6,6 @@ import type * as zeno from "./zeno";
|
|
|
6
6
|
export type { zeno };
|
|
7
7
|
export type { IERC20 } from "./IERC20";
|
|
8
8
|
export type { IHousePrices } from "./IHousePrices";
|
|
9
|
-
export type { IMarketCreator } from "./IMarketCreator";
|
|
10
9
|
export type { INFTLiquidator } from "./INFTLiquidator";
|
|
11
10
|
export type { IPoolManager } from "./IPoolManager";
|
|
12
11
|
export type { IReserveAllocationLibraryMock } from "./IReserveAllocationLibraryMock";
|
package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../../common";
|
|
3
3
|
export interface TimelockTestTargetInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "executeOperation" | "operationExecuted" | "setValue" | "value"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "executeOperation" | "operationExecuted" | "receiveEth" | "setValue" | "value"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "OperationExecuted" | "ValueUpdated"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "executeOperation", values: [BytesLike]): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "operationExecuted", values: [BytesLike]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "receiveEth", values?: undefined): string;
|
|
8
9
|
encodeFunctionData(functionFragment: "setValue", values: [BigNumberish]): string;
|
|
9
10
|
encodeFunctionData(functionFragment: "value", values?: undefined): string;
|
|
10
11
|
decodeFunctionResult(functionFragment: "executeOperation", data: BytesLike): Result;
|
|
11
12
|
decodeFunctionResult(functionFragment: "operationExecuted", data: BytesLike): Result;
|
|
13
|
+
decodeFunctionResult(functionFragment: "receiveEth", data: BytesLike): Result;
|
|
12
14
|
decodeFunctionResult(functionFragment: "setValue", data: BytesLike): Result;
|
|
13
15
|
decodeFunctionResult(functionFragment: "value", data: BytesLike): Result;
|
|
14
16
|
}
|
|
@@ -54,11 +56,13 @@ export interface TimelockTestTarget extends BaseContract {
|
|
|
54
56
|
void
|
|
55
57
|
], "nonpayable">;
|
|
56
58
|
operationExecuted: TypedContractMethod<[arg0: BytesLike], [boolean], "view">;
|
|
59
|
+
receiveEth: TypedContractMethod<[], [void], "payable">;
|
|
57
60
|
setValue: TypedContractMethod<[newValue: BigNumberish], [void], "nonpayable">;
|
|
58
61
|
value: TypedContractMethod<[], [bigint], "view">;
|
|
59
62
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
60
63
|
getFunction(nameOrSignature: "executeOperation"): TypedContractMethod<[operationId: BytesLike], [void], "nonpayable">;
|
|
61
64
|
getFunction(nameOrSignature: "operationExecuted"): TypedContractMethod<[arg0: BytesLike], [boolean], "view">;
|
|
65
|
+
getFunction(nameOrSignature: "receiveEth"): TypedContractMethod<[], [void], "payable">;
|
|
62
66
|
getFunction(nameOrSignature: "setValue"): TypedContractMethod<[newValue: BigNumberish], [void], "nonpayable">;
|
|
63
67
|
getFunction(nameOrSignature: "value"): TypedContractMethod<[], [bigint], "view">;
|
|
64
68
|
getEvent(key: "OperationExecuted"): TypedContractEvent<OperationExecutedEvent.InputTuple, OperationExecutedEvent.OutputTuple, OperationExecutedEvent.OutputObject>;
|