@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,10 +1,9 @@
|
|
|
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 StabilityPoolInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "addManager" | "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "AllocationUpdated" | "BorrowerLiquidated" | "Deposit" | "Initialized" | "LiquidityPoolSet" | "ManagerAdded" | "ManagerRemoved" | "MarketAdded" | "MarketAllocationUpdated" | "MarketRemoved" | "OwnershipTransferred" | "Paused" | "RAACDepositedFromPool" | "Unpaused" | "Withdraw"): EventFragment;
|
|
6
|
-
encodeFunctionData(functionFragment: "addManager", values: [AddressLike
|
|
7
|
-
encodeFunctionData(functionFragment: "addMarket", values: [AddressLike, BigNumberish]): string;
|
|
4
|
+
getFunction(nameOrSignature: "addManager" | "balanceOf" | "calculateDeCRVUSDAmount" | "calculateRaacRewards" | "calculateRcrvUSDAmount" | "crvUSDToken" | "deToken" | "deTokenDecimals" | "deposit" | "depositNFT" | "getManagerList" | "getPendingRewards" | "getTotalDeposits" | "getUserDeposit" | "indexToken" | "indexTokenMintingFee" | "initialize" | "isAddressManager" | "isManager" | "lendingPool" | "liquidateBorrower" | "liquidityPool" | "liquidityPoolFee" | "managerList" | "minter" | "onERC721Received" | "owner" | "pause" | "paused" | "rToken" | "rTokenDecimals" | "raacToken" | "removeManager" | "renounceOwnership" | "setIndexToken" | "setIndexTokenMintingFee" | "setLiquidityPool" | "setMinter" | "setTreasury" | "transferOwnership" | "treasury" | "unpause" | "userDeposits" | "withdraw"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "AllocationUpdated" | "BorrowerLiquidated" | "Deposit" | "IndexTokenMintingFeeSet" | "Initialized" | "LiquidityPoolSet" | "ManagerAdded" | "ManagerRemoved" | "MarketAdded" | "MarketAllocationUpdated" | "MarketRemoved" | "NFTDeposited" | "OwnershipTransferred" | "Paused" | "RAACDepositedFromPool" | "Unpaused" | "Withdraw"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "addManager", values: [AddressLike]): string;
|
|
8
7
|
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
9
8
|
encodeFunctionData(functionFragment: "calculateDeCRVUSDAmount", values: [BigNumberish]): string;
|
|
10
9
|
encodeFunctionData(functionFragment: "calculateRaacRewards", values: [AddressLike]): string;
|
|
@@ -13,54 +12,42 @@ export interface StabilityPoolInterface extends Interface {
|
|
|
13
12
|
encodeFunctionData(functionFragment: "deToken", values?: undefined): string;
|
|
14
13
|
encodeFunctionData(functionFragment: "deTokenDecimals", values?: undefined): string;
|
|
15
14
|
encodeFunctionData(functionFragment: "deposit", values: [BigNumberish]): string;
|
|
16
|
-
encodeFunctionData(functionFragment: "
|
|
17
|
-
encodeFunctionData(functionFragment: "
|
|
18
|
-
encodeFunctionData(functionFragment: "getManager", values: [AddressLike]): string;
|
|
19
|
-
encodeFunctionData(functionFragment: "getManagerAllocation", values: [AddressLike]): string;
|
|
20
|
-
encodeFunctionData(functionFragment: "getManagers", values?: undefined): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "depositNFT", values: [AddressLike, BigNumberish]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "getManagerList", values?: undefined): string;
|
|
21
17
|
encodeFunctionData(functionFragment: "getPendingRewards", values: [AddressLike]): string;
|
|
22
|
-
encodeFunctionData(functionFragment: "getTotalAllocation", values?: undefined): string;
|
|
23
18
|
encodeFunctionData(functionFragment: "getTotalDeposits", values?: undefined): string;
|
|
24
19
|
encodeFunctionData(functionFragment: "getUserDeposit", values: [AddressLike]): string;
|
|
25
|
-
encodeFunctionData(functionFragment: "
|
|
26
|
-
encodeFunctionData(functionFragment: "
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
AddressLike,
|
|
31
|
-
AddressLike,
|
|
32
|
-
AddressLike
|
|
33
|
-
]): string;
|
|
34
|
-
encodeFunctionData(functionFragment: "lastUpdate", values?: undefined): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "indexToken", values?: undefined): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "indexTokenMintingFee", values?: undefined): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike, AddressLike, AddressLike, AddressLike]): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "isAddressManager", values: [AddressLike]): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "isManager", values: [AddressLike]): string;
|
|
35
25
|
encodeFunctionData(functionFragment: "lendingPool", values?: undefined): string;
|
|
36
|
-
encodeFunctionData(functionFragment: "liquidateBorrower", values: [AddressLike]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "liquidateBorrower", values: [AddressLike, BigNumberish]): string;
|
|
37
27
|
encodeFunctionData(functionFragment: "liquidityPool", values?: undefined): string;
|
|
38
|
-
encodeFunctionData(functionFragment: "
|
|
28
|
+
encodeFunctionData(functionFragment: "liquidityPoolFee", values?: undefined): string;
|
|
39
29
|
encodeFunctionData(functionFragment: "managerList", values: [BigNumberish]): string;
|
|
40
|
-
encodeFunctionData(functionFragment: "
|
|
41
|
-
encodeFunctionData(functionFragment: "
|
|
30
|
+
encodeFunctionData(functionFragment: "minter", values?: undefined): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "onERC721Received", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
42
32
|
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
43
33
|
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
|
|
44
34
|
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
45
35
|
encodeFunctionData(functionFragment: "rToken", values?: undefined): string;
|
|
46
36
|
encodeFunctionData(functionFragment: "rTokenDecimals", values?: undefined): string;
|
|
47
|
-
encodeFunctionData(functionFragment: "raacMinter", values?: undefined): string;
|
|
48
37
|
encodeFunctionData(functionFragment: "raacToken", values?: undefined): string;
|
|
49
38
|
encodeFunctionData(functionFragment: "removeManager", values: [AddressLike]): string;
|
|
50
|
-
encodeFunctionData(functionFragment: "removeMarket", values: [AddressLike]): string;
|
|
51
39
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
52
|
-
encodeFunctionData(functionFragment: "
|
|
53
|
-
encodeFunctionData(functionFragment: "
|
|
54
|
-
encodeFunctionData(functionFragment: "
|
|
55
|
-
encodeFunctionData(functionFragment: "
|
|
40
|
+
encodeFunctionData(functionFragment: "setIndexToken", values: [AddressLike]): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "setIndexTokenMintingFee", values: [BigNumberish]): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "setLiquidityPool", values: [AddressLike, BigNumberish]): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "setMinter", values: [AddressLike]): string;
|
|
44
|
+
encodeFunctionData(functionFragment: "setTreasury", values: [AddressLike]): string;
|
|
56
45
|
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "treasury", values?: undefined): string;
|
|
57
47
|
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
|
|
58
|
-
encodeFunctionData(functionFragment: "updateAllocation", values: [AddressLike, BigNumberish]): string;
|
|
59
|
-
encodeFunctionData(functionFragment: "updateMarketAllocation", values: [AddressLike, BigNumberish]): string;
|
|
60
48
|
encodeFunctionData(functionFragment: "userDeposits", values: [AddressLike]): string;
|
|
61
49
|
encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
|
|
62
50
|
decodeFunctionResult(functionFragment: "addManager", data: BytesLike): Result;
|
|
63
|
-
decodeFunctionResult(functionFragment: "addMarket", data: BytesLike): Result;
|
|
64
51
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
65
52
|
decodeFunctionResult(functionFragment: "calculateDeCRVUSDAmount", data: BytesLike): Result;
|
|
66
53
|
decodeFunctionResult(functionFragment: "calculateRaacRewards", data: BytesLike): Result;
|
|
@@ -69,43 +56,39 @@ export interface StabilityPoolInterface extends Interface {
|
|
|
69
56
|
decodeFunctionResult(functionFragment: "deToken", data: BytesLike): Result;
|
|
70
57
|
decodeFunctionResult(functionFragment: "deTokenDecimals", data: BytesLike): Result;
|
|
71
58
|
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
72
|
-
decodeFunctionResult(functionFragment: "
|
|
73
|
-
decodeFunctionResult(functionFragment: "
|
|
74
|
-
decodeFunctionResult(functionFragment: "getManager", data: BytesLike): Result;
|
|
75
|
-
decodeFunctionResult(functionFragment: "getManagerAllocation", data: BytesLike): Result;
|
|
76
|
-
decodeFunctionResult(functionFragment: "getManagers", data: BytesLike): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: "depositNFT", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "getManagerList", data: BytesLike): Result;
|
|
77
61
|
decodeFunctionResult(functionFragment: "getPendingRewards", data: BytesLike): Result;
|
|
78
|
-
decodeFunctionResult(functionFragment: "getTotalAllocation", data: BytesLike): Result;
|
|
79
62
|
decodeFunctionResult(functionFragment: "getTotalDeposits", data: BytesLike): Result;
|
|
80
63
|
decodeFunctionResult(functionFragment: "getUserDeposit", data: BytesLike): Result;
|
|
81
|
-
decodeFunctionResult(functionFragment: "
|
|
64
|
+
decodeFunctionResult(functionFragment: "indexToken", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "indexTokenMintingFee", data: BytesLike): Result;
|
|
82
66
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
83
|
-
decodeFunctionResult(functionFragment: "
|
|
67
|
+
decodeFunctionResult(functionFragment: "isAddressManager", data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: "isManager", data: BytesLike): Result;
|
|
84
69
|
decodeFunctionResult(functionFragment: "lendingPool", data: BytesLike): Result;
|
|
85
70
|
decodeFunctionResult(functionFragment: "liquidateBorrower", data: BytesLike): Result;
|
|
86
71
|
decodeFunctionResult(functionFragment: "liquidityPool", data: BytesLike): Result;
|
|
87
|
-
decodeFunctionResult(functionFragment: "
|
|
72
|
+
decodeFunctionResult(functionFragment: "liquidityPoolFee", data: BytesLike): Result;
|
|
88
73
|
decodeFunctionResult(functionFragment: "managerList", data: BytesLike): Result;
|
|
89
|
-
decodeFunctionResult(functionFragment: "
|
|
90
|
-
decodeFunctionResult(functionFragment: "
|
|
74
|
+
decodeFunctionResult(functionFragment: "minter", data: BytesLike): Result;
|
|
75
|
+
decodeFunctionResult(functionFragment: "onERC721Received", data: BytesLike): Result;
|
|
91
76
|
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
92
77
|
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
|
|
93
78
|
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
|
|
94
79
|
decodeFunctionResult(functionFragment: "rToken", data: BytesLike): Result;
|
|
95
80
|
decodeFunctionResult(functionFragment: "rTokenDecimals", data: BytesLike): Result;
|
|
96
|
-
decodeFunctionResult(functionFragment: "raacMinter", data: BytesLike): Result;
|
|
97
81
|
decodeFunctionResult(functionFragment: "raacToken", data: BytesLike): Result;
|
|
98
82
|
decodeFunctionResult(functionFragment: "removeManager", data: BytesLike): Result;
|
|
99
|
-
decodeFunctionResult(functionFragment: "removeMarket", data: BytesLike): Result;
|
|
100
83
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(functionFragment: "setIndexToken", data: BytesLike): Result;
|
|
85
|
+
decodeFunctionResult(functionFragment: "setIndexTokenMintingFee", data: BytesLike): Result;
|
|
101
86
|
decodeFunctionResult(functionFragment: "setLiquidityPool", data: BytesLike): Result;
|
|
102
|
-
decodeFunctionResult(functionFragment: "
|
|
103
|
-
decodeFunctionResult(functionFragment: "
|
|
104
|
-
decodeFunctionResult(functionFragment: "totalAllocation", data: BytesLike): Result;
|
|
87
|
+
decodeFunctionResult(functionFragment: "setMinter", data: BytesLike): Result;
|
|
88
|
+
decodeFunctionResult(functionFragment: "setTreasury", data: BytesLike): Result;
|
|
105
89
|
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
90
|
+
decodeFunctionResult(functionFragment: "treasury", data: BytesLike): Result;
|
|
106
91
|
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
|
|
107
|
-
decodeFunctionResult(functionFragment: "updateAllocation", data: BytesLike): Result;
|
|
108
|
-
decodeFunctionResult(functionFragment: "updateMarketAllocation", data: BytesLike): Result;
|
|
109
92
|
decodeFunctionResult(functionFragment: "userDeposits", data: BytesLike): Result;
|
|
110
93
|
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
111
94
|
}
|
|
@@ -122,10 +105,15 @@ export declare namespace AllocationUpdatedEvent {
|
|
|
122
105
|
type LogDescription = TypedLogDescription<Event>;
|
|
123
106
|
}
|
|
124
107
|
export declare namespace BorrowerLiquidatedEvent {
|
|
125
|
-
type InputTuple = [
|
|
126
|
-
|
|
108
|
+
type InputTuple = [
|
|
109
|
+
user: AddressLike,
|
|
110
|
+
tokenId: BigNumberish,
|
|
111
|
+
amount: BigNumberish
|
|
112
|
+
];
|
|
113
|
+
type OutputTuple = [user: string, tokenId: bigint, amount: bigint];
|
|
127
114
|
interface OutputObject {
|
|
128
115
|
user: string;
|
|
116
|
+
tokenId: bigint;
|
|
129
117
|
amount: bigint;
|
|
130
118
|
}
|
|
131
119
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -154,6 +142,17 @@ export declare namespace DepositEvent {
|
|
|
154
142
|
type Log = TypedEventLog<Event>;
|
|
155
143
|
type LogDescription = TypedLogDescription<Event>;
|
|
156
144
|
}
|
|
145
|
+
export declare namespace IndexTokenMintingFeeSetEvent {
|
|
146
|
+
type InputTuple = [indexTokenMintingFee: BigNumberish];
|
|
147
|
+
type OutputTuple = [indexTokenMintingFee: bigint];
|
|
148
|
+
interface OutputObject {
|
|
149
|
+
indexTokenMintingFee: bigint;
|
|
150
|
+
}
|
|
151
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
152
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
153
|
+
type Log = TypedEventLog<Event>;
|
|
154
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
155
|
+
}
|
|
157
156
|
export declare namespace InitializedEvent {
|
|
158
157
|
type InputTuple = [version: BigNumberish];
|
|
159
158
|
type OutputTuple = [version: bigint];
|
|
@@ -177,11 +176,10 @@ export declare namespace LiquidityPoolSetEvent {
|
|
|
177
176
|
type LogDescription = TypedLogDescription<Event>;
|
|
178
177
|
}
|
|
179
178
|
export declare namespace ManagerAddedEvent {
|
|
180
|
-
type InputTuple = [manager: AddressLike
|
|
181
|
-
type OutputTuple = [manager: string
|
|
179
|
+
type InputTuple = [manager: AddressLike];
|
|
180
|
+
type OutputTuple = [manager: string];
|
|
182
181
|
interface OutputObject {
|
|
183
182
|
manager: string;
|
|
184
|
-
allocation: bigint;
|
|
185
183
|
}
|
|
186
184
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
187
185
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -234,6 +232,18 @@ export declare namespace MarketRemovedEvent {
|
|
|
234
232
|
type Log = TypedEventLog<Event>;
|
|
235
233
|
type LogDescription = TypedLogDescription<Event>;
|
|
236
234
|
}
|
|
235
|
+
export declare namespace NFTDepositedEvent {
|
|
236
|
+
type InputTuple = [nft: AddressLike, tokenId: BigNumberish];
|
|
237
|
+
type OutputTuple = [nft: string, tokenId: bigint];
|
|
238
|
+
interface OutputObject {
|
|
239
|
+
nft: string;
|
|
240
|
+
tokenId: bigint;
|
|
241
|
+
}
|
|
242
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
243
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
244
|
+
type Log = TypedEventLog<Event>;
|
|
245
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
246
|
+
}
|
|
237
247
|
export declare namespace OwnershipTransferredEvent {
|
|
238
248
|
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
239
249
|
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
@@ -317,18 +327,7 @@ export interface StabilityPool extends BaseContract {
|
|
|
317
327
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
318
328
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
319
329
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
320
|
-
addManager: TypedContractMethod<[
|
|
321
|
-
manager: AddressLike,
|
|
322
|
-
allocation: BigNumberish
|
|
323
|
-
], [
|
|
324
|
-
void
|
|
325
|
-
], "nonpayable">;
|
|
326
|
-
addMarket: TypedContractMethod<[
|
|
327
|
-
market: AddressLike,
|
|
328
|
-
allocation: BigNumberish
|
|
329
|
-
], [
|
|
330
|
-
void
|
|
331
|
-
], "nonpayable">;
|
|
330
|
+
addManager: TypedContractMethod<[manager: AddressLike], [void], "nonpayable">;
|
|
332
331
|
balanceOf: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
333
332
|
calculateDeCRVUSDAmount: TypedContractMethod<[
|
|
334
333
|
rcrvUSDAmount: BigNumberish
|
|
@@ -349,94 +348,93 @@ export interface StabilityPool extends BaseContract {
|
|
|
349
348
|
deToken: TypedContractMethod<[], [string], "view">;
|
|
350
349
|
deTokenDecimals: TypedContractMethod<[], [bigint], "view">;
|
|
351
350
|
deposit: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
352
|
-
|
|
353
|
-
|
|
351
|
+
depositNFT: TypedContractMethod<[
|
|
352
|
+
nft: AddressLike,
|
|
353
|
+
tokenId: BigNumberish
|
|
354
354
|
], [
|
|
355
355
|
void
|
|
356
356
|
], "nonpayable">;
|
|
357
|
-
|
|
358
|
-
getManager: TypedContractMethod<[manager: AddressLike], [boolean], "view">;
|
|
359
|
-
getManagerAllocation: TypedContractMethod<[
|
|
360
|
-
manager: AddressLike
|
|
361
|
-
], [
|
|
362
|
-
bigint
|
|
363
|
-
], "view">;
|
|
364
|
-
getManagers: TypedContractMethod<[], [string[]], "view">;
|
|
357
|
+
getManagerList: TypedContractMethod<[], [string[]], "view">;
|
|
365
358
|
getPendingRewards: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
366
|
-
getTotalAllocation: TypedContractMethod<[], [bigint], "view">;
|
|
367
359
|
getTotalDeposits: TypedContractMethod<[], [bigint], "view">;
|
|
368
360
|
getUserDeposit: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
369
|
-
|
|
361
|
+
indexToken: TypedContractMethod<[], [string], "view">;
|
|
362
|
+
indexTokenMintingFee: TypedContractMethod<[], [bigint], "view">;
|
|
370
363
|
initialize: TypedContractMethod<[
|
|
371
364
|
_rToken: AddressLike,
|
|
372
365
|
_deToken: AddressLike,
|
|
373
366
|
_raacToken: AddressLike,
|
|
374
|
-
_raacMinter: AddressLike,
|
|
375
367
|
_crvUSDToken: AddressLike,
|
|
376
368
|
_lendingPool: AddressLike
|
|
377
369
|
], [
|
|
378
370
|
void
|
|
379
371
|
], "nonpayable">;
|
|
380
|
-
|
|
372
|
+
isAddressManager: TypedContractMethod<[
|
|
373
|
+
manager: AddressLike
|
|
374
|
+
], [
|
|
375
|
+
boolean
|
|
376
|
+
], "view">;
|
|
377
|
+
isManager: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
381
378
|
lendingPool: TypedContractMethod<[], [string], "view">;
|
|
382
379
|
liquidateBorrower: TypedContractMethod<[
|
|
383
|
-
userAddress: AddressLike
|
|
380
|
+
userAddress: AddressLike,
|
|
381
|
+
tokenId: BigNumberish
|
|
384
382
|
], [
|
|
385
383
|
void
|
|
386
384
|
], "nonpayable">;
|
|
387
385
|
liquidityPool: TypedContractMethod<[], [string], "view">;
|
|
388
|
-
|
|
386
|
+
liquidityPoolFee: TypedContractMethod<[], [bigint], "view">;
|
|
389
387
|
managerList: TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
390
|
-
|
|
391
|
-
|
|
388
|
+
minter: TypedContractMethod<[], [string], "view">;
|
|
389
|
+
onERC721Received: TypedContractMethod<[
|
|
390
|
+
arg0: AddressLike,
|
|
391
|
+
arg1: AddressLike,
|
|
392
|
+
arg2: BigNumberish,
|
|
393
|
+
arg3: BytesLike
|
|
394
|
+
], [
|
|
395
|
+
string
|
|
396
|
+
], "nonpayable">;
|
|
392
397
|
owner: TypedContractMethod<[], [string], "view">;
|
|
393
398
|
pause: TypedContractMethod<[], [void], "nonpayable">;
|
|
394
399
|
paused: TypedContractMethod<[], [boolean], "view">;
|
|
395
400
|
rToken: TypedContractMethod<[], [string], "view">;
|
|
396
401
|
rTokenDecimals: TypedContractMethod<[], [bigint], "view">;
|
|
397
|
-
raacMinter: TypedContractMethod<[], [string], "view">;
|
|
398
402
|
raacToken: TypedContractMethod<[], [string], "view">;
|
|
399
403
|
removeManager: TypedContractMethod<[
|
|
400
404
|
manager: AddressLike
|
|
401
405
|
], [
|
|
402
406
|
void
|
|
403
407
|
], "nonpayable">;
|
|
404
|
-
removeMarket: TypedContractMethod<[
|
|
405
|
-
market: AddressLike
|
|
406
|
-
], [
|
|
407
|
-
void
|
|
408
|
-
], "nonpayable">;
|
|
409
408
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
setIndexToken: TypedContractMethod<[
|
|
410
|
+
_indexToken: AddressLike
|
|
412
411
|
], [
|
|
413
412
|
void
|
|
414
413
|
], "nonpayable">;
|
|
415
|
-
|
|
416
|
-
|
|
414
|
+
setIndexTokenMintingFee: TypedContractMethod<[
|
|
415
|
+
_indexTokenMintingFee: BigNumberish
|
|
417
416
|
], [
|
|
418
417
|
void
|
|
419
418
|
], "nonpayable">;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
newOwner: AddressLike
|
|
419
|
+
setLiquidityPool: TypedContractMethod<[
|
|
420
|
+
_liquidityPool: AddressLike,
|
|
421
|
+
_fee: BigNumberish
|
|
424
422
|
], [
|
|
425
423
|
void
|
|
426
424
|
], "nonpayable">;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
newAllocation: BigNumberish
|
|
425
|
+
setMinter: TypedContractMethod<[_minter: AddressLike], [void], "nonpayable">;
|
|
426
|
+
setTreasury: TypedContractMethod<[
|
|
427
|
+
_treasury: AddressLike
|
|
431
428
|
], [
|
|
432
429
|
void
|
|
433
430
|
], "nonpayable">;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
newAllocation: BigNumberish
|
|
431
|
+
transferOwnership: TypedContractMethod<[
|
|
432
|
+
newOwner: AddressLike
|
|
437
433
|
], [
|
|
438
434
|
void
|
|
439
435
|
], "nonpayable">;
|
|
436
|
+
treasury: TypedContractMethod<[], [string], "view">;
|
|
437
|
+
unpause: TypedContractMethod<[], [void], "nonpayable">;
|
|
440
438
|
userDeposits: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
441
439
|
withdraw: TypedContractMethod<[
|
|
442
440
|
deCRVUSDAmount: BigNumberish
|
|
@@ -444,18 +442,7 @@ export interface StabilityPool extends BaseContract {
|
|
|
444
442
|
void
|
|
445
443
|
], "nonpayable">;
|
|
446
444
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
447
|
-
getFunction(nameOrSignature: "addManager"): TypedContractMethod<[
|
|
448
|
-
manager: AddressLike,
|
|
449
|
-
allocation: BigNumberish
|
|
450
|
-
], [
|
|
451
|
-
void
|
|
452
|
-
], "nonpayable">;
|
|
453
|
-
getFunction(nameOrSignature: "addMarket"): TypedContractMethod<[
|
|
454
|
-
market: AddressLike,
|
|
455
|
-
allocation: BigNumberish
|
|
456
|
-
], [
|
|
457
|
-
void
|
|
458
|
-
], "nonpayable">;
|
|
445
|
+
getFunction(nameOrSignature: "addManager"): TypedContractMethod<[manager: AddressLike], [void], "nonpayable">;
|
|
459
446
|
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
460
447
|
getFunction(nameOrSignature: "calculateDeCRVUSDAmount"): TypedContractMethod<[rcrvUSDAmount: BigNumberish], [bigint], "view">;
|
|
461
448
|
getFunction(nameOrSignature: "calculateRaacRewards"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
@@ -464,67 +451,79 @@ export interface StabilityPool extends BaseContract {
|
|
|
464
451
|
getFunction(nameOrSignature: "deToken"): TypedContractMethod<[], [string], "view">;
|
|
465
452
|
getFunction(nameOrSignature: "deTokenDecimals"): TypedContractMethod<[], [bigint], "view">;
|
|
466
453
|
getFunction(nameOrSignature: "deposit"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
467
|
-
getFunction(nameOrSignature: "
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
454
|
+
getFunction(nameOrSignature: "depositNFT"): TypedContractMethod<[
|
|
455
|
+
nft: AddressLike,
|
|
456
|
+
tokenId: BigNumberish
|
|
457
|
+
], [
|
|
458
|
+
void
|
|
459
|
+
], "nonpayable">;
|
|
460
|
+
getFunction(nameOrSignature: "getManagerList"): TypedContractMethod<[], [string[]], "view">;
|
|
472
461
|
getFunction(nameOrSignature: "getPendingRewards"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
473
|
-
getFunction(nameOrSignature: "getTotalAllocation"): TypedContractMethod<[], [bigint], "view">;
|
|
474
462
|
getFunction(nameOrSignature: "getTotalDeposits"): TypedContractMethod<[], [bigint], "view">;
|
|
475
463
|
getFunction(nameOrSignature: "getUserDeposit"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
476
|
-
getFunction(nameOrSignature: "
|
|
464
|
+
getFunction(nameOrSignature: "indexToken"): TypedContractMethod<[], [string], "view">;
|
|
465
|
+
getFunction(nameOrSignature: "indexTokenMintingFee"): TypedContractMethod<[], [bigint], "view">;
|
|
477
466
|
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
478
467
|
_rToken: AddressLike,
|
|
479
468
|
_deToken: AddressLike,
|
|
480
469
|
_raacToken: AddressLike,
|
|
481
|
-
_raacMinter: AddressLike,
|
|
482
470
|
_crvUSDToken: AddressLike,
|
|
483
471
|
_lendingPool: AddressLike
|
|
484
472
|
], [
|
|
485
473
|
void
|
|
486
474
|
], "nonpayable">;
|
|
487
|
-
getFunction(nameOrSignature: "
|
|
475
|
+
getFunction(nameOrSignature: "isAddressManager"): TypedContractMethod<[manager: AddressLike], [boolean], "view">;
|
|
476
|
+
getFunction(nameOrSignature: "isManager"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
488
477
|
getFunction(nameOrSignature: "lendingPool"): TypedContractMethod<[], [string], "view">;
|
|
489
|
-
getFunction(nameOrSignature: "liquidateBorrower"): TypedContractMethod<[
|
|
478
|
+
getFunction(nameOrSignature: "liquidateBorrower"): TypedContractMethod<[
|
|
479
|
+
userAddress: AddressLike,
|
|
480
|
+
tokenId: BigNumberish
|
|
481
|
+
], [
|
|
482
|
+
void
|
|
483
|
+
], "nonpayable">;
|
|
490
484
|
getFunction(nameOrSignature: "liquidityPool"): TypedContractMethod<[], [string], "view">;
|
|
491
|
-
getFunction(nameOrSignature: "
|
|
485
|
+
getFunction(nameOrSignature: "liquidityPoolFee"): TypedContractMethod<[], [bigint], "view">;
|
|
492
486
|
getFunction(nameOrSignature: "managerList"): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
493
|
-
getFunction(nameOrSignature: "
|
|
494
|
-
getFunction(nameOrSignature: "
|
|
487
|
+
getFunction(nameOrSignature: "minter"): TypedContractMethod<[], [string], "view">;
|
|
488
|
+
getFunction(nameOrSignature: "onERC721Received"): TypedContractMethod<[
|
|
489
|
+
arg0: AddressLike,
|
|
490
|
+
arg1: AddressLike,
|
|
491
|
+
arg2: BigNumberish,
|
|
492
|
+
arg3: BytesLike
|
|
493
|
+
], [
|
|
494
|
+
string
|
|
495
|
+
], "nonpayable">;
|
|
495
496
|
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
496
497
|
getFunction(nameOrSignature: "pause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
497
498
|
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
|
498
499
|
getFunction(nameOrSignature: "rToken"): TypedContractMethod<[], [string], "view">;
|
|
499
500
|
getFunction(nameOrSignature: "rTokenDecimals"): TypedContractMethod<[], [bigint], "view">;
|
|
500
|
-
getFunction(nameOrSignature: "raacMinter"): TypedContractMethod<[], [string], "view">;
|
|
501
501
|
getFunction(nameOrSignature: "raacToken"): TypedContractMethod<[], [string], "view">;
|
|
502
502
|
getFunction(nameOrSignature: "removeManager"): TypedContractMethod<[manager: AddressLike], [void], "nonpayable">;
|
|
503
|
-
getFunction(nameOrSignature: "removeMarket"): TypedContractMethod<[market: AddressLike], [void], "nonpayable">;
|
|
504
503
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
505
|
-
getFunction(nameOrSignature: "
|
|
506
|
-
getFunction(nameOrSignature: "
|
|
507
|
-
|
|
508
|
-
getFunction(nameOrSignature: "totalAllocation"): TypedContractMethod<[], [bigint], "view">;
|
|
509
|
-
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
510
|
-
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
511
|
-
getFunction(nameOrSignature: "updateAllocation"): TypedContractMethod<[
|
|
512
|
-
manager: AddressLike,
|
|
513
|
-
newAllocation: BigNumberish
|
|
504
|
+
getFunction(nameOrSignature: "setIndexToken"): TypedContractMethod<[_indexToken: AddressLike], [void], "nonpayable">;
|
|
505
|
+
getFunction(nameOrSignature: "setIndexTokenMintingFee"): TypedContractMethod<[
|
|
506
|
+
_indexTokenMintingFee: BigNumberish
|
|
514
507
|
], [
|
|
515
508
|
void
|
|
516
509
|
], "nonpayable">;
|
|
517
|
-
getFunction(nameOrSignature: "
|
|
518
|
-
|
|
519
|
-
|
|
510
|
+
getFunction(nameOrSignature: "setLiquidityPool"): TypedContractMethod<[
|
|
511
|
+
_liquidityPool: AddressLike,
|
|
512
|
+
_fee: BigNumberish
|
|
520
513
|
], [
|
|
521
514
|
void
|
|
522
515
|
], "nonpayable">;
|
|
516
|
+
getFunction(nameOrSignature: "setMinter"): TypedContractMethod<[_minter: AddressLike], [void], "nonpayable">;
|
|
517
|
+
getFunction(nameOrSignature: "setTreasury"): TypedContractMethod<[_treasury: AddressLike], [void], "nonpayable">;
|
|
518
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
519
|
+
getFunction(nameOrSignature: "treasury"): TypedContractMethod<[], [string], "view">;
|
|
520
|
+
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
523
521
|
getFunction(nameOrSignature: "userDeposits"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
524
522
|
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[deCRVUSDAmount: BigNumberish], [void], "nonpayable">;
|
|
525
523
|
getEvent(key: "AllocationUpdated"): TypedContractEvent<AllocationUpdatedEvent.InputTuple, AllocationUpdatedEvent.OutputTuple, AllocationUpdatedEvent.OutputObject>;
|
|
526
524
|
getEvent(key: "BorrowerLiquidated"): TypedContractEvent<BorrowerLiquidatedEvent.InputTuple, BorrowerLiquidatedEvent.OutputTuple, BorrowerLiquidatedEvent.OutputObject>;
|
|
527
525
|
getEvent(key: "Deposit"): TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
526
|
+
getEvent(key: "IndexTokenMintingFeeSet"): TypedContractEvent<IndexTokenMintingFeeSetEvent.InputTuple, IndexTokenMintingFeeSetEvent.OutputTuple, IndexTokenMintingFeeSetEvent.OutputObject>;
|
|
528
527
|
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
529
528
|
getEvent(key: "LiquidityPoolSet"): TypedContractEvent<LiquidityPoolSetEvent.InputTuple, LiquidityPoolSetEvent.OutputTuple, LiquidityPoolSetEvent.OutputObject>;
|
|
530
529
|
getEvent(key: "ManagerAdded"): TypedContractEvent<ManagerAddedEvent.InputTuple, ManagerAddedEvent.OutputTuple, ManagerAddedEvent.OutputObject>;
|
|
@@ -532,6 +531,7 @@ export interface StabilityPool extends BaseContract {
|
|
|
532
531
|
getEvent(key: "MarketAdded"): TypedContractEvent<MarketAddedEvent.InputTuple, MarketAddedEvent.OutputTuple, MarketAddedEvent.OutputObject>;
|
|
533
532
|
getEvent(key: "MarketAllocationUpdated"): TypedContractEvent<MarketAllocationUpdatedEvent.InputTuple, MarketAllocationUpdatedEvent.OutputTuple, MarketAllocationUpdatedEvent.OutputObject>;
|
|
534
533
|
getEvent(key: "MarketRemoved"): TypedContractEvent<MarketRemovedEvent.InputTuple, MarketRemovedEvent.OutputTuple, MarketRemovedEvent.OutputObject>;
|
|
534
|
+
getEvent(key: "NFTDeposited"): TypedContractEvent<NFTDepositedEvent.InputTuple, NFTDepositedEvent.OutputTuple, NFTDepositedEvent.OutputObject>;
|
|
535
535
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
536
536
|
getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
537
537
|
getEvent(key: "RAACDepositedFromPool"): TypedContractEvent<RAACDepositedFromPoolEvent.InputTuple, RAACDepositedFromPoolEvent.OutputTuple, RAACDepositedFromPoolEvent.OutputObject>;
|
|
@@ -540,15 +540,17 @@ export interface StabilityPool extends BaseContract {
|
|
|
540
540
|
filters: {
|
|
541
541
|
"AllocationUpdated(address,uint256)": TypedContractEvent<AllocationUpdatedEvent.InputTuple, AllocationUpdatedEvent.OutputTuple, AllocationUpdatedEvent.OutputObject>;
|
|
542
542
|
AllocationUpdated: TypedContractEvent<AllocationUpdatedEvent.InputTuple, AllocationUpdatedEvent.OutputTuple, AllocationUpdatedEvent.OutputObject>;
|
|
543
|
-
"BorrowerLiquidated(address,uint256)": TypedContractEvent<BorrowerLiquidatedEvent.InputTuple, BorrowerLiquidatedEvent.OutputTuple, BorrowerLiquidatedEvent.OutputObject>;
|
|
543
|
+
"BorrowerLiquidated(address,uint256,uint256)": TypedContractEvent<BorrowerLiquidatedEvent.InputTuple, BorrowerLiquidatedEvent.OutputTuple, BorrowerLiquidatedEvent.OutputObject>;
|
|
544
544
|
BorrowerLiquidated: TypedContractEvent<BorrowerLiquidatedEvent.InputTuple, BorrowerLiquidatedEvent.OutputTuple, BorrowerLiquidatedEvent.OutputObject>;
|
|
545
545
|
"Deposit(address,uint256,uint256)": TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
546
546
|
Deposit: TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
547
|
+
"IndexTokenMintingFeeSet(uint256)": TypedContractEvent<IndexTokenMintingFeeSetEvent.InputTuple, IndexTokenMintingFeeSetEvent.OutputTuple, IndexTokenMintingFeeSetEvent.OutputObject>;
|
|
548
|
+
IndexTokenMintingFeeSet: TypedContractEvent<IndexTokenMintingFeeSetEvent.InputTuple, IndexTokenMintingFeeSetEvent.OutputTuple, IndexTokenMintingFeeSetEvent.OutputObject>;
|
|
547
549
|
"Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
548
550
|
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
549
551
|
"LiquidityPoolSet(address)": TypedContractEvent<LiquidityPoolSetEvent.InputTuple, LiquidityPoolSetEvent.OutputTuple, LiquidityPoolSetEvent.OutputObject>;
|
|
550
552
|
LiquidityPoolSet: TypedContractEvent<LiquidityPoolSetEvent.InputTuple, LiquidityPoolSetEvent.OutputTuple, LiquidityPoolSetEvent.OutputObject>;
|
|
551
|
-
"ManagerAdded(address
|
|
553
|
+
"ManagerAdded(address)": TypedContractEvent<ManagerAddedEvent.InputTuple, ManagerAddedEvent.OutputTuple, ManagerAddedEvent.OutputObject>;
|
|
552
554
|
ManagerAdded: TypedContractEvent<ManagerAddedEvent.InputTuple, ManagerAddedEvent.OutputTuple, ManagerAddedEvent.OutputObject>;
|
|
553
555
|
"ManagerRemoved(address)": TypedContractEvent<ManagerRemovedEvent.InputTuple, ManagerRemovedEvent.OutputTuple, ManagerRemovedEvent.OutputObject>;
|
|
554
556
|
ManagerRemoved: TypedContractEvent<ManagerRemovedEvent.InputTuple, ManagerRemovedEvent.OutputTuple, ManagerRemovedEvent.OutputObject>;
|
|
@@ -558,6 +560,8 @@ export interface StabilityPool extends BaseContract {
|
|
|
558
560
|
MarketAllocationUpdated: TypedContractEvent<MarketAllocationUpdatedEvent.InputTuple, MarketAllocationUpdatedEvent.OutputTuple, MarketAllocationUpdatedEvent.OutputObject>;
|
|
559
561
|
"MarketRemoved(address)": TypedContractEvent<MarketRemovedEvent.InputTuple, MarketRemovedEvent.OutputTuple, MarketRemovedEvent.OutputObject>;
|
|
560
562
|
MarketRemoved: TypedContractEvent<MarketRemovedEvent.InputTuple, MarketRemovedEvent.OutputTuple, MarketRemovedEvent.OutputObject>;
|
|
563
|
+
"NFTDeposited(address,uint256)": TypedContractEvent<NFTDepositedEvent.InputTuple, NFTDepositedEvent.OutputTuple, NFTDepositedEvent.OutputObject>;
|
|
564
|
+
NFTDeposited: TypedContractEvent<NFTDepositedEvent.InputTuple, NFTDepositedEvent.OutputTuple, NFTDepositedEvent.OutputObject>;
|
|
561
565
|
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
562
566
|
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
563
567
|
"Paused(address)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
@@ -1,8 +1,11 @@
|
|
|
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 RAACHousePricesInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "getLatestPrice" | "lastUpdateTimestamp" | "oracle" | "owner" | "renounceOwnership" | "setHousePrice" | "setOracle" | "tokenToHousePrice" | "transferOwnership"): FunctionFragment;
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred" | "PriceUpdated"): EventFragment;
|
|
4
|
+
getFunction(nameOrSignature: "count" | "existingTokens" | "exists" | "getLatestPrice" | "lastUpdateTimestamp" | "oracle" | "owner" | "renounceOwnership" | "setHousePrice" | "setOracle" | "tokenToHousePrice" | "transferOwnership"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred" | "PriceCreated" | "PriceUpdated"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "count", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "existingTokens", values: [BigNumberish]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "exists", values: [BigNumberish]): string;
|
|
6
9
|
encodeFunctionData(functionFragment: "getLatestPrice", values: [BigNumberish]): string;
|
|
7
10
|
encodeFunctionData(functionFragment: "lastUpdateTimestamp", values?: undefined): string;
|
|
8
11
|
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
@@ -12,6 +15,9 @@ export interface RAACHousePricesInterface extends Interface {
|
|
|
12
15
|
encodeFunctionData(functionFragment: "setOracle", values: [AddressLike]): string;
|
|
13
16
|
encodeFunctionData(functionFragment: "tokenToHousePrice", values: [BigNumberish]): string;
|
|
14
17
|
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
18
|
+
decodeFunctionResult(functionFragment: "count", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "existingTokens", data: BytesLike): Result;
|
|
20
|
+
decodeFunctionResult(functionFragment: "exists", data: BytesLike): Result;
|
|
15
21
|
decodeFunctionResult(functionFragment: "getLatestPrice", data: BytesLike): Result;
|
|
16
22
|
decodeFunctionResult(functionFragment: "lastUpdateTimestamp", data: BytesLike): Result;
|
|
17
23
|
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
@@ -34,6 +40,18 @@ export declare namespace OwnershipTransferredEvent {
|
|
|
34
40
|
type Log = TypedEventLog<Event>;
|
|
35
41
|
type LogDescription = TypedLogDescription<Event>;
|
|
36
42
|
}
|
|
43
|
+
export declare namespace PriceCreatedEvent {
|
|
44
|
+
type InputTuple = [tokenId: BigNumberish, newPrice: BigNumberish];
|
|
45
|
+
type OutputTuple = [tokenId: bigint, newPrice: bigint];
|
|
46
|
+
interface OutputObject {
|
|
47
|
+
tokenId: bigint;
|
|
48
|
+
newPrice: bigint;
|
|
49
|
+
}
|
|
50
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
51
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
52
|
+
type Log = TypedEventLog<Event>;
|
|
53
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
54
|
+
}
|
|
37
55
|
export declare namespace PriceUpdatedEvent {
|
|
38
56
|
type InputTuple = [tokenId: BigNumberish, newPrice: BigNumberish];
|
|
39
57
|
type OutputTuple = [tokenId: bigint, newPrice: bigint];
|
|
@@ -59,6 +77,9 @@ export interface RAACHousePrices extends BaseContract {
|
|
|
59
77
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
60
78
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
61
79
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
80
|
+
count: TypedContractMethod<[], [bigint], "view">;
|
|
81
|
+
existingTokens: TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
|
|
82
|
+
exists: TypedContractMethod<[_tokenId: BigNumberish], [boolean], "view">;
|
|
62
83
|
getLatestPrice: TypedContractMethod<[
|
|
63
84
|
_tokenId: BigNumberish
|
|
64
85
|
], [
|
|
@@ -86,6 +107,9 @@ export interface RAACHousePrices extends BaseContract {
|
|
|
86
107
|
void
|
|
87
108
|
], "nonpayable">;
|
|
88
109
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
110
|
+
getFunction(nameOrSignature: "count"): TypedContractMethod<[], [bigint], "view">;
|
|
111
|
+
getFunction(nameOrSignature: "existingTokens"): TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
|
|
112
|
+
getFunction(nameOrSignature: "exists"): TypedContractMethod<[_tokenId: BigNumberish], [boolean], "view">;
|
|
89
113
|
getFunction(nameOrSignature: "getLatestPrice"): TypedContractMethod<[_tokenId: BigNumberish], [[bigint, bigint]], "view">;
|
|
90
114
|
getFunction(nameOrSignature: "lastUpdateTimestamp"): TypedContractMethod<[], [bigint], "view">;
|
|
91
115
|
getFunction(nameOrSignature: "oracle"): TypedContractMethod<[], [string], "view">;
|
|
@@ -101,10 +125,13 @@ export interface RAACHousePrices extends BaseContract {
|
|
|
101
125
|
getFunction(nameOrSignature: "tokenToHousePrice"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
102
126
|
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
103
127
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
128
|
+
getEvent(key: "PriceCreated"): TypedContractEvent<PriceCreatedEvent.InputTuple, PriceCreatedEvent.OutputTuple, PriceCreatedEvent.OutputObject>;
|
|
104
129
|
getEvent(key: "PriceUpdated"): TypedContractEvent<PriceUpdatedEvent.InputTuple, PriceUpdatedEvent.OutputTuple, PriceUpdatedEvent.OutputObject>;
|
|
105
130
|
filters: {
|
|
106
131
|
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
107
132
|
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
133
|
+
"PriceCreated(uint256,uint256)": TypedContractEvent<PriceCreatedEvent.InputTuple, PriceCreatedEvent.OutputTuple, PriceCreatedEvent.OutputObject>;
|
|
134
|
+
PriceCreated: TypedContractEvent<PriceCreatedEvent.InputTuple, PriceCreatedEvent.OutputTuple, PriceCreatedEvent.OutputObject>;
|
|
108
135
|
"PriceUpdated(uint256,uint256)": TypedContractEvent<PriceUpdatedEvent.InputTuple, PriceUpdatedEvent.OutputTuple, PriceUpdatedEvent.OutputObject>;
|
|
109
136
|
PriceUpdated: TypedContractEvent<PriceUpdatedEvent.InputTuple, PriceUpdatedEvent.OutputTuple, PriceUpdatedEvent.OutputObject>;
|
|
110
137
|
};
|