@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
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export interface MockVRFCoordinatorV2Interface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "BASE_FEE" | "GAS_PRICE_LINK" | "MAX_CONSUMERS" | "acceptOwnership" | "acceptSubscriptionOwnerTransfer" | "addConsumer" | "cancelSubscription" | "consumerIsAdded" | "createSubscription" | "fulfillRandomWords" | "fulfillRandomWordsWithOverride" | "fundSubscription" | "getConfig" | "getFallbackWeiPerUnitLink" | "getFeeConfig" | "getRequestConfig" | "getSubscription" | "owner" | "pendingRequestExists" | "removeConsumer" | "requestRandomWords" | "requestSubscriptionOwnerTransfer" | "setConfig" | "transferOwnership"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "ConfigSet" | "ConsumerAdded" | "ConsumerRemoved" | "OwnershipTransferRequested" | "OwnershipTransferred" | "RandomWordsFulfilled" | "RandomWordsRequested" | "SubscriptionCanceled" | "SubscriptionCreated" | "SubscriptionFunded"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "BASE_FEE", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "GAS_PRICE_LINK", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "MAX_CONSUMERS", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "acceptSubscriptionOwnerTransfer", values: [BigNumberish]): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "addConsumer", values: [BigNumberish, AddressLike]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "cancelSubscription", values: [BigNumberish, AddressLike]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "consumerIsAdded", values: [BigNumberish, AddressLike]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "createSubscription", values?: undefined): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "fulfillRandomWords", values: [BigNumberish, AddressLike]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "fulfillRandomWordsWithOverride", values: [BigNumberish, AddressLike, BigNumberish[]]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "fundSubscription", values: [BigNumberish, BigNumberish]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "getConfig", values?: undefined): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "getFallbackWeiPerUnitLink", values?: undefined): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "getFeeConfig", values?: undefined): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "getRequestConfig", values?: undefined): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "getSubscription", values: [BigNumberish]): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "pendingRequestExists", values: [BigNumberish]): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "removeConsumer", values: [BigNumberish, AddressLike]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "requestRandomWords", values: [BytesLike, BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "requestSubscriptionOwnerTransfer", values: [BigNumberish, AddressLike]): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "setConfig", values?: undefined): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
30
|
+
decodeFunctionResult(functionFragment: "BASE_FEE", data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: "GAS_PRICE_LINK", data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: "MAX_CONSUMERS", data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
34
|
+
decodeFunctionResult(functionFragment: "acceptSubscriptionOwnerTransfer", data: BytesLike): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: "addConsumer", data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: "cancelSubscription", data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: "consumerIsAdded", data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(functionFragment: "createSubscription", data: BytesLike): Result;
|
|
39
|
+
decodeFunctionResult(functionFragment: "fulfillRandomWords", data: BytesLike): Result;
|
|
40
|
+
decodeFunctionResult(functionFragment: "fulfillRandomWordsWithOverride", data: BytesLike): Result;
|
|
41
|
+
decodeFunctionResult(functionFragment: "fundSubscription", data: BytesLike): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "getConfig", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "getFallbackWeiPerUnitLink", data: BytesLike): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "getFeeConfig", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(functionFragment: "getRequestConfig", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(functionFragment: "getSubscription", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(functionFragment: "pendingRequestExists", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(functionFragment: "removeConsumer", data: BytesLike): Result;
|
|
50
|
+
decodeFunctionResult(functionFragment: "requestRandomWords", data: BytesLike): Result;
|
|
51
|
+
decodeFunctionResult(functionFragment: "requestSubscriptionOwnerTransfer", data: BytesLike): Result;
|
|
52
|
+
decodeFunctionResult(functionFragment: "setConfig", data: BytesLike): Result;
|
|
53
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace ConfigSetEvent {
|
|
56
|
+
type InputTuple = [];
|
|
57
|
+
type OutputTuple = [];
|
|
58
|
+
interface OutputObject {
|
|
59
|
+
}
|
|
60
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
61
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
62
|
+
type Log = TypedEventLog<Event>;
|
|
63
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace ConsumerAddedEvent {
|
|
66
|
+
type InputTuple = [subId: BigNumberish, consumer: AddressLike];
|
|
67
|
+
type OutputTuple = [subId: bigint, consumer: string];
|
|
68
|
+
interface OutputObject {
|
|
69
|
+
subId: bigint;
|
|
70
|
+
consumer: string;
|
|
71
|
+
}
|
|
72
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
73
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
74
|
+
type Log = TypedEventLog<Event>;
|
|
75
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace ConsumerRemovedEvent {
|
|
78
|
+
type InputTuple = [subId: BigNumberish, consumer: AddressLike];
|
|
79
|
+
type OutputTuple = [subId: bigint, consumer: string];
|
|
80
|
+
interface OutputObject {
|
|
81
|
+
subId: bigint;
|
|
82
|
+
consumer: string;
|
|
83
|
+
}
|
|
84
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
85
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
86
|
+
type Log = TypedEventLog<Event>;
|
|
87
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
88
|
+
}
|
|
89
|
+
export declare namespace OwnershipTransferRequestedEvent {
|
|
90
|
+
type InputTuple = [from: AddressLike, to: AddressLike];
|
|
91
|
+
type OutputTuple = [from: string, to: string];
|
|
92
|
+
interface OutputObject {
|
|
93
|
+
from: string;
|
|
94
|
+
to: string;
|
|
95
|
+
}
|
|
96
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
97
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
98
|
+
type Log = TypedEventLog<Event>;
|
|
99
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
100
|
+
}
|
|
101
|
+
export declare namespace OwnershipTransferredEvent {
|
|
102
|
+
type InputTuple = [from: AddressLike, to: AddressLike];
|
|
103
|
+
type OutputTuple = [from: string, to: string];
|
|
104
|
+
interface OutputObject {
|
|
105
|
+
from: string;
|
|
106
|
+
to: string;
|
|
107
|
+
}
|
|
108
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
109
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
110
|
+
type Log = TypedEventLog<Event>;
|
|
111
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
112
|
+
}
|
|
113
|
+
export declare namespace RandomWordsFulfilledEvent {
|
|
114
|
+
type InputTuple = [
|
|
115
|
+
requestId: BigNumberish,
|
|
116
|
+
outputSeed: BigNumberish,
|
|
117
|
+
payment: BigNumberish,
|
|
118
|
+
success: boolean
|
|
119
|
+
];
|
|
120
|
+
type OutputTuple = [
|
|
121
|
+
requestId: bigint,
|
|
122
|
+
outputSeed: bigint,
|
|
123
|
+
payment: bigint,
|
|
124
|
+
success: boolean
|
|
125
|
+
];
|
|
126
|
+
interface OutputObject {
|
|
127
|
+
requestId: bigint;
|
|
128
|
+
outputSeed: bigint;
|
|
129
|
+
payment: bigint;
|
|
130
|
+
success: boolean;
|
|
131
|
+
}
|
|
132
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
133
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
134
|
+
type Log = TypedEventLog<Event>;
|
|
135
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace RandomWordsRequestedEvent {
|
|
138
|
+
type InputTuple = [
|
|
139
|
+
keyHash: BytesLike,
|
|
140
|
+
requestId: BigNumberish,
|
|
141
|
+
preSeed: BigNumberish,
|
|
142
|
+
subId: BigNumberish,
|
|
143
|
+
minimumRequestConfirmations: BigNumberish,
|
|
144
|
+
callbackGasLimit: BigNumberish,
|
|
145
|
+
numWords: BigNumberish,
|
|
146
|
+
sender: AddressLike
|
|
147
|
+
];
|
|
148
|
+
type OutputTuple = [
|
|
149
|
+
keyHash: string,
|
|
150
|
+
requestId: bigint,
|
|
151
|
+
preSeed: bigint,
|
|
152
|
+
subId: bigint,
|
|
153
|
+
minimumRequestConfirmations: bigint,
|
|
154
|
+
callbackGasLimit: bigint,
|
|
155
|
+
numWords: bigint,
|
|
156
|
+
sender: string
|
|
157
|
+
];
|
|
158
|
+
interface OutputObject {
|
|
159
|
+
keyHash: string;
|
|
160
|
+
requestId: bigint;
|
|
161
|
+
preSeed: bigint;
|
|
162
|
+
subId: bigint;
|
|
163
|
+
minimumRequestConfirmations: bigint;
|
|
164
|
+
callbackGasLimit: bigint;
|
|
165
|
+
numWords: bigint;
|
|
166
|
+
sender: string;
|
|
167
|
+
}
|
|
168
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
169
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
170
|
+
type Log = TypedEventLog<Event>;
|
|
171
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
172
|
+
}
|
|
173
|
+
export declare namespace SubscriptionCanceledEvent {
|
|
174
|
+
type InputTuple = [
|
|
175
|
+
subId: BigNumberish,
|
|
176
|
+
to: AddressLike,
|
|
177
|
+
amount: BigNumberish
|
|
178
|
+
];
|
|
179
|
+
type OutputTuple = [subId: bigint, to: string, amount: bigint];
|
|
180
|
+
interface OutputObject {
|
|
181
|
+
subId: bigint;
|
|
182
|
+
to: string;
|
|
183
|
+
amount: bigint;
|
|
184
|
+
}
|
|
185
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
186
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
187
|
+
type Log = TypedEventLog<Event>;
|
|
188
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
189
|
+
}
|
|
190
|
+
export declare namespace SubscriptionCreatedEvent {
|
|
191
|
+
type InputTuple = [subId: BigNumberish, owner: AddressLike];
|
|
192
|
+
type OutputTuple = [subId: bigint, owner: string];
|
|
193
|
+
interface OutputObject {
|
|
194
|
+
subId: bigint;
|
|
195
|
+
owner: string;
|
|
196
|
+
}
|
|
197
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
198
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
199
|
+
type Log = TypedEventLog<Event>;
|
|
200
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
201
|
+
}
|
|
202
|
+
export declare namespace SubscriptionFundedEvent {
|
|
203
|
+
type InputTuple = [
|
|
204
|
+
subId: BigNumberish,
|
|
205
|
+
oldBalance: BigNumberish,
|
|
206
|
+
newBalance: BigNumberish
|
|
207
|
+
];
|
|
208
|
+
type OutputTuple = [
|
|
209
|
+
subId: bigint,
|
|
210
|
+
oldBalance: bigint,
|
|
211
|
+
newBalance: bigint
|
|
212
|
+
];
|
|
213
|
+
interface OutputObject {
|
|
214
|
+
subId: bigint;
|
|
215
|
+
oldBalance: bigint;
|
|
216
|
+
newBalance: bigint;
|
|
217
|
+
}
|
|
218
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
219
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
220
|
+
type Log = TypedEventLog<Event>;
|
|
221
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
222
|
+
}
|
|
223
|
+
export interface MockVRFCoordinatorV2 extends BaseContract {
|
|
224
|
+
connect(runner?: ContractRunner | null): MockVRFCoordinatorV2;
|
|
225
|
+
waitForDeployment(): Promise<this>;
|
|
226
|
+
interface: MockVRFCoordinatorV2Interface;
|
|
227
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
228
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
229
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
230
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
231
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
232
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
233
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
234
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
235
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
236
|
+
BASE_FEE: TypedContractMethod<[], [bigint], "view">;
|
|
237
|
+
GAS_PRICE_LINK: TypedContractMethod<[], [bigint], "view">;
|
|
238
|
+
MAX_CONSUMERS: TypedContractMethod<[], [bigint], "view">;
|
|
239
|
+
acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
240
|
+
acceptSubscriptionOwnerTransfer: TypedContractMethod<[
|
|
241
|
+
arg0: BigNumberish
|
|
242
|
+
], [
|
|
243
|
+
void
|
|
244
|
+
], "view">;
|
|
245
|
+
addConsumer: TypedContractMethod<[
|
|
246
|
+
_subId: BigNumberish,
|
|
247
|
+
_consumer: AddressLike
|
|
248
|
+
], [
|
|
249
|
+
void
|
|
250
|
+
], "nonpayable">;
|
|
251
|
+
cancelSubscription: TypedContractMethod<[
|
|
252
|
+
_subId: BigNumberish,
|
|
253
|
+
_to: AddressLike
|
|
254
|
+
], [
|
|
255
|
+
void
|
|
256
|
+
], "nonpayable">;
|
|
257
|
+
consumerIsAdded: TypedContractMethod<[
|
|
258
|
+
_subId: BigNumberish,
|
|
259
|
+
_consumer: AddressLike
|
|
260
|
+
], [
|
|
261
|
+
boolean
|
|
262
|
+
], "view">;
|
|
263
|
+
createSubscription: TypedContractMethod<[], [bigint], "nonpayable">;
|
|
264
|
+
fulfillRandomWords: TypedContractMethod<[
|
|
265
|
+
_requestId: BigNumberish,
|
|
266
|
+
_consumer: AddressLike
|
|
267
|
+
], [
|
|
268
|
+
void
|
|
269
|
+
], "nonpayable">;
|
|
270
|
+
fulfillRandomWordsWithOverride: TypedContractMethod<[
|
|
271
|
+
_requestId: BigNumberish,
|
|
272
|
+
_consumer: AddressLike,
|
|
273
|
+
_words: BigNumberish[]
|
|
274
|
+
], [
|
|
275
|
+
void
|
|
276
|
+
], "nonpayable">;
|
|
277
|
+
fundSubscription: TypedContractMethod<[
|
|
278
|
+
_subId: BigNumberish,
|
|
279
|
+
_amount: BigNumberish
|
|
280
|
+
], [
|
|
281
|
+
void
|
|
282
|
+
], "nonpayable">;
|
|
283
|
+
getConfig: TypedContractMethod<[
|
|
284
|
+
], [
|
|
285
|
+
[
|
|
286
|
+
bigint,
|
|
287
|
+
bigint,
|
|
288
|
+
bigint,
|
|
289
|
+
bigint
|
|
290
|
+
] & {
|
|
291
|
+
minimumRequestConfirmations: bigint;
|
|
292
|
+
maxGasLimit: bigint;
|
|
293
|
+
stalenessSeconds: bigint;
|
|
294
|
+
gasAfterPaymentCalculation: bigint;
|
|
295
|
+
}
|
|
296
|
+
], "view">;
|
|
297
|
+
getFallbackWeiPerUnitLink: TypedContractMethod<[], [bigint], "view">;
|
|
298
|
+
getFeeConfig: TypedContractMethod<[
|
|
299
|
+
], [
|
|
300
|
+
[
|
|
301
|
+
bigint,
|
|
302
|
+
bigint,
|
|
303
|
+
bigint,
|
|
304
|
+
bigint,
|
|
305
|
+
bigint,
|
|
306
|
+
bigint,
|
|
307
|
+
bigint,
|
|
308
|
+
bigint,
|
|
309
|
+
bigint
|
|
310
|
+
] & {
|
|
311
|
+
fulfillmentFlatFeeLinkPPMTier1: bigint;
|
|
312
|
+
fulfillmentFlatFeeLinkPPMTier2: bigint;
|
|
313
|
+
fulfillmentFlatFeeLinkPPMTier3: bigint;
|
|
314
|
+
fulfillmentFlatFeeLinkPPMTier4: bigint;
|
|
315
|
+
fulfillmentFlatFeeLinkPPMTier5: bigint;
|
|
316
|
+
reqsForTier2: bigint;
|
|
317
|
+
reqsForTier3: bigint;
|
|
318
|
+
reqsForTier4: bigint;
|
|
319
|
+
reqsForTier5: bigint;
|
|
320
|
+
}
|
|
321
|
+
], "view">;
|
|
322
|
+
getRequestConfig: TypedContractMethod<[
|
|
323
|
+
], [
|
|
324
|
+
[bigint, bigint, string[]]
|
|
325
|
+
], "view">;
|
|
326
|
+
getSubscription: TypedContractMethod<[
|
|
327
|
+
_subId: BigNumberish
|
|
328
|
+
], [
|
|
329
|
+
[
|
|
330
|
+
bigint,
|
|
331
|
+
bigint,
|
|
332
|
+
string,
|
|
333
|
+
string[]
|
|
334
|
+
] & {
|
|
335
|
+
balance: bigint;
|
|
336
|
+
reqCount: bigint;
|
|
337
|
+
owner: string;
|
|
338
|
+
consumers: string[];
|
|
339
|
+
}
|
|
340
|
+
], "view">;
|
|
341
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
342
|
+
pendingRequestExists: TypedContractMethod<[
|
|
343
|
+
arg0: BigNumberish
|
|
344
|
+
], [
|
|
345
|
+
boolean
|
|
346
|
+
], "view">;
|
|
347
|
+
removeConsumer: TypedContractMethod<[
|
|
348
|
+
_subId: BigNumberish,
|
|
349
|
+
_consumer: AddressLike
|
|
350
|
+
], [
|
|
351
|
+
void
|
|
352
|
+
], "nonpayable">;
|
|
353
|
+
requestRandomWords: TypedContractMethod<[
|
|
354
|
+
_keyHash: BytesLike,
|
|
355
|
+
_subId: BigNumberish,
|
|
356
|
+
_minimumRequestConfirmations: BigNumberish,
|
|
357
|
+
_callbackGasLimit: BigNumberish,
|
|
358
|
+
_numWords: BigNumberish
|
|
359
|
+
], [
|
|
360
|
+
bigint
|
|
361
|
+
], "nonpayable">;
|
|
362
|
+
requestSubscriptionOwnerTransfer: TypedContractMethod<[
|
|
363
|
+
arg0: BigNumberish,
|
|
364
|
+
arg1: AddressLike
|
|
365
|
+
], [
|
|
366
|
+
void
|
|
367
|
+
], "view">;
|
|
368
|
+
setConfig: TypedContractMethod<[], [void], "nonpayable">;
|
|
369
|
+
transferOwnership: TypedContractMethod<[
|
|
370
|
+
to: AddressLike
|
|
371
|
+
], [
|
|
372
|
+
void
|
|
373
|
+
], "nonpayable">;
|
|
374
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
375
|
+
getFunction(nameOrSignature: "BASE_FEE"): TypedContractMethod<[], [bigint], "view">;
|
|
376
|
+
getFunction(nameOrSignature: "GAS_PRICE_LINK"): TypedContractMethod<[], [bigint], "view">;
|
|
377
|
+
getFunction(nameOrSignature: "MAX_CONSUMERS"): TypedContractMethod<[], [bigint], "view">;
|
|
378
|
+
getFunction(nameOrSignature: "acceptOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
379
|
+
getFunction(nameOrSignature: "acceptSubscriptionOwnerTransfer"): TypedContractMethod<[arg0: BigNumberish], [void], "view">;
|
|
380
|
+
getFunction(nameOrSignature: "addConsumer"): TypedContractMethod<[
|
|
381
|
+
_subId: BigNumberish,
|
|
382
|
+
_consumer: AddressLike
|
|
383
|
+
], [
|
|
384
|
+
void
|
|
385
|
+
], "nonpayable">;
|
|
386
|
+
getFunction(nameOrSignature: "cancelSubscription"): TypedContractMethod<[
|
|
387
|
+
_subId: BigNumberish,
|
|
388
|
+
_to: AddressLike
|
|
389
|
+
], [
|
|
390
|
+
void
|
|
391
|
+
], "nonpayable">;
|
|
392
|
+
getFunction(nameOrSignature: "consumerIsAdded"): TypedContractMethod<[
|
|
393
|
+
_subId: BigNumberish,
|
|
394
|
+
_consumer: AddressLike
|
|
395
|
+
], [
|
|
396
|
+
boolean
|
|
397
|
+
], "view">;
|
|
398
|
+
getFunction(nameOrSignature: "createSubscription"): TypedContractMethod<[], [bigint], "nonpayable">;
|
|
399
|
+
getFunction(nameOrSignature: "fulfillRandomWords"): TypedContractMethod<[
|
|
400
|
+
_requestId: BigNumberish,
|
|
401
|
+
_consumer: AddressLike
|
|
402
|
+
], [
|
|
403
|
+
void
|
|
404
|
+
], "nonpayable">;
|
|
405
|
+
getFunction(nameOrSignature: "fulfillRandomWordsWithOverride"): TypedContractMethod<[
|
|
406
|
+
_requestId: BigNumberish,
|
|
407
|
+
_consumer: AddressLike,
|
|
408
|
+
_words: BigNumberish[]
|
|
409
|
+
], [
|
|
410
|
+
void
|
|
411
|
+
], "nonpayable">;
|
|
412
|
+
getFunction(nameOrSignature: "fundSubscription"): TypedContractMethod<[
|
|
413
|
+
_subId: BigNumberish,
|
|
414
|
+
_amount: BigNumberish
|
|
415
|
+
], [
|
|
416
|
+
void
|
|
417
|
+
], "nonpayable">;
|
|
418
|
+
getFunction(nameOrSignature: "getConfig"): TypedContractMethod<[
|
|
419
|
+
], [
|
|
420
|
+
[
|
|
421
|
+
bigint,
|
|
422
|
+
bigint,
|
|
423
|
+
bigint,
|
|
424
|
+
bigint
|
|
425
|
+
] & {
|
|
426
|
+
minimumRequestConfirmations: bigint;
|
|
427
|
+
maxGasLimit: bigint;
|
|
428
|
+
stalenessSeconds: bigint;
|
|
429
|
+
gasAfterPaymentCalculation: bigint;
|
|
430
|
+
}
|
|
431
|
+
], "view">;
|
|
432
|
+
getFunction(nameOrSignature: "getFallbackWeiPerUnitLink"): TypedContractMethod<[], [bigint], "view">;
|
|
433
|
+
getFunction(nameOrSignature: "getFeeConfig"): TypedContractMethod<[
|
|
434
|
+
], [
|
|
435
|
+
[
|
|
436
|
+
bigint,
|
|
437
|
+
bigint,
|
|
438
|
+
bigint,
|
|
439
|
+
bigint,
|
|
440
|
+
bigint,
|
|
441
|
+
bigint,
|
|
442
|
+
bigint,
|
|
443
|
+
bigint,
|
|
444
|
+
bigint
|
|
445
|
+
] & {
|
|
446
|
+
fulfillmentFlatFeeLinkPPMTier1: bigint;
|
|
447
|
+
fulfillmentFlatFeeLinkPPMTier2: bigint;
|
|
448
|
+
fulfillmentFlatFeeLinkPPMTier3: bigint;
|
|
449
|
+
fulfillmentFlatFeeLinkPPMTier4: bigint;
|
|
450
|
+
fulfillmentFlatFeeLinkPPMTier5: bigint;
|
|
451
|
+
reqsForTier2: bigint;
|
|
452
|
+
reqsForTier3: bigint;
|
|
453
|
+
reqsForTier4: bigint;
|
|
454
|
+
reqsForTier5: bigint;
|
|
455
|
+
}
|
|
456
|
+
], "view">;
|
|
457
|
+
getFunction(nameOrSignature: "getRequestConfig"): TypedContractMethod<[], [[bigint, bigint, string[]]], "view">;
|
|
458
|
+
getFunction(nameOrSignature: "getSubscription"): TypedContractMethod<[
|
|
459
|
+
_subId: BigNumberish
|
|
460
|
+
], [
|
|
461
|
+
[
|
|
462
|
+
bigint,
|
|
463
|
+
bigint,
|
|
464
|
+
string,
|
|
465
|
+
string[]
|
|
466
|
+
] & {
|
|
467
|
+
balance: bigint;
|
|
468
|
+
reqCount: bigint;
|
|
469
|
+
owner: string;
|
|
470
|
+
consumers: string[];
|
|
471
|
+
}
|
|
472
|
+
], "view">;
|
|
473
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
474
|
+
getFunction(nameOrSignature: "pendingRequestExists"): TypedContractMethod<[arg0: BigNumberish], [boolean], "view">;
|
|
475
|
+
getFunction(nameOrSignature: "removeConsumer"): TypedContractMethod<[
|
|
476
|
+
_subId: BigNumberish,
|
|
477
|
+
_consumer: AddressLike
|
|
478
|
+
], [
|
|
479
|
+
void
|
|
480
|
+
], "nonpayable">;
|
|
481
|
+
getFunction(nameOrSignature: "requestRandomWords"): TypedContractMethod<[
|
|
482
|
+
_keyHash: BytesLike,
|
|
483
|
+
_subId: BigNumberish,
|
|
484
|
+
_minimumRequestConfirmations: BigNumberish,
|
|
485
|
+
_callbackGasLimit: BigNumberish,
|
|
486
|
+
_numWords: BigNumberish
|
|
487
|
+
], [
|
|
488
|
+
bigint
|
|
489
|
+
], "nonpayable">;
|
|
490
|
+
getFunction(nameOrSignature: "requestSubscriptionOwnerTransfer"): TypedContractMethod<[
|
|
491
|
+
arg0: BigNumberish,
|
|
492
|
+
arg1: AddressLike
|
|
493
|
+
], [
|
|
494
|
+
void
|
|
495
|
+
], "view">;
|
|
496
|
+
getFunction(nameOrSignature: "setConfig"): TypedContractMethod<[], [void], "nonpayable">;
|
|
497
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[to: AddressLike], [void], "nonpayable">;
|
|
498
|
+
getEvent(key: "ConfigSet"): TypedContractEvent<ConfigSetEvent.InputTuple, ConfigSetEvent.OutputTuple, ConfigSetEvent.OutputObject>;
|
|
499
|
+
getEvent(key: "ConsumerAdded"): TypedContractEvent<ConsumerAddedEvent.InputTuple, ConsumerAddedEvent.OutputTuple, ConsumerAddedEvent.OutputObject>;
|
|
500
|
+
getEvent(key: "ConsumerRemoved"): TypedContractEvent<ConsumerRemovedEvent.InputTuple, ConsumerRemovedEvent.OutputTuple, ConsumerRemovedEvent.OutputObject>;
|
|
501
|
+
getEvent(key: "OwnershipTransferRequested"): TypedContractEvent<OwnershipTransferRequestedEvent.InputTuple, OwnershipTransferRequestedEvent.OutputTuple, OwnershipTransferRequestedEvent.OutputObject>;
|
|
502
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
503
|
+
getEvent(key: "RandomWordsFulfilled"): TypedContractEvent<RandomWordsFulfilledEvent.InputTuple, RandomWordsFulfilledEvent.OutputTuple, RandomWordsFulfilledEvent.OutputObject>;
|
|
504
|
+
getEvent(key: "RandomWordsRequested"): TypedContractEvent<RandomWordsRequestedEvent.InputTuple, RandomWordsRequestedEvent.OutputTuple, RandomWordsRequestedEvent.OutputObject>;
|
|
505
|
+
getEvent(key: "SubscriptionCanceled"): TypedContractEvent<SubscriptionCanceledEvent.InputTuple, SubscriptionCanceledEvent.OutputTuple, SubscriptionCanceledEvent.OutputObject>;
|
|
506
|
+
getEvent(key: "SubscriptionCreated"): TypedContractEvent<SubscriptionCreatedEvent.InputTuple, SubscriptionCreatedEvent.OutputTuple, SubscriptionCreatedEvent.OutputObject>;
|
|
507
|
+
getEvent(key: "SubscriptionFunded"): TypedContractEvent<SubscriptionFundedEvent.InputTuple, SubscriptionFundedEvent.OutputTuple, SubscriptionFundedEvent.OutputObject>;
|
|
508
|
+
filters: {
|
|
509
|
+
"ConfigSet()": TypedContractEvent<ConfigSetEvent.InputTuple, ConfigSetEvent.OutputTuple, ConfigSetEvent.OutputObject>;
|
|
510
|
+
ConfigSet: TypedContractEvent<ConfigSetEvent.InputTuple, ConfigSetEvent.OutputTuple, ConfigSetEvent.OutputObject>;
|
|
511
|
+
"ConsumerAdded(uint64,address)": TypedContractEvent<ConsumerAddedEvent.InputTuple, ConsumerAddedEvent.OutputTuple, ConsumerAddedEvent.OutputObject>;
|
|
512
|
+
ConsumerAdded: TypedContractEvent<ConsumerAddedEvent.InputTuple, ConsumerAddedEvent.OutputTuple, ConsumerAddedEvent.OutputObject>;
|
|
513
|
+
"ConsumerRemoved(uint64,address)": TypedContractEvent<ConsumerRemovedEvent.InputTuple, ConsumerRemovedEvent.OutputTuple, ConsumerRemovedEvent.OutputObject>;
|
|
514
|
+
ConsumerRemoved: TypedContractEvent<ConsumerRemovedEvent.InputTuple, ConsumerRemovedEvent.OutputTuple, ConsumerRemovedEvent.OutputObject>;
|
|
515
|
+
"OwnershipTransferRequested(address,address)": TypedContractEvent<OwnershipTransferRequestedEvent.InputTuple, OwnershipTransferRequestedEvent.OutputTuple, OwnershipTransferRequestedEvent.OutputObject>;
|
|
516
|
+
OwnershipTransferRequested: TypedContractEvent<OwnershipTransferRequestedEvent.InputTuple, OwnershipTransferRequestedEvent.OutputTuple, OwnershipTransferRequestedEvent.OutputObject>;
|
|
517
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
518
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
519
|
+
"RandomWordsFulfilled(uint256,uint256,uint96,bool)": TypedContractEvent<RandomWordsFulfilledEvent.InputTuple, RandomWordsFulfilledEvent.OutputTuple, RandomWordsFulfilledEvent.OutputObject>;
|
|
520
|
+
RandomWordsFulfilled: TypedContractEvent<RandomWordsFulfilledEvent.InputTuple, RandomWordsFulfilledEvent.OutputTuple, RandomWordsFulfilledEvent.OutputObject>;
|
|
521
|
+
"RandomWordsRequested(bytes32,uint256,uint256,uint64,uint16,uint32,uint32,address)": TypedContractEvent<RandomWordsRequestedEvent.InputTuple, RandomWordsRequestedEvent.OutputTuple, RandomWordsRequestedEvent.OutputObject>;
|
|
522
|
+
RandomWordsRequested: TypedContractEvent<RandomWordsRequestedEvent.InputTuple, RandomWordsRequestedEvent.OutputTuple, RandomWordsRequestedEvent.OutputObject>;
|
|
523
|
+
"SubscriptionCanceled(uint64,address,uint256)": TypedContractEvent<SubscriptionCanceledEvent.InputTuple, SubscriptionCanceledEvent.OutputTuple, SubscriptionCanceledEvent.OutputObject>;
|
|
524
|
+
SubscriptionCanceled: TypedContractEvent<SubscriptionCanceledEvent.InputTuple, SubscriptionCanceledEvent.OutputTuple, SubscriptionCanceledEvent.OutputObject>;
|
|
525
|
+
"SubscriptionCreated(uint64,address)": TypedContractEvent<SubscriptionCreatedEvent.InputTuple, SubscriptionCreatedEvent.OutputTuple, SubscriptionCreatedEvent.OutputObject>;
|
|
526
|
+
SubscriptionCreated: TypedContractEvent<SubscriptionCreatedEvent.InputTuple, SubscriptionCreatedEvent.OutputTuple, SubscriptionCreatedEvent.OutputObject>;
|
|
527
|
+
"SubscriptionFunded(uint64,uint256,uint256)": TypedContractEvent<SubscriptionFundedEvent.InputTuple, SubscriptionFundedEvent.OutputTuple, SubscriptionFundedEvent.OutputObject>;
|
|
528
|
+
SubscriptionFunded: TypedContractEvent<SubscriptionFundedEvent.InputTuple, SubscriptionFundedEvent.OutputTuple, SubscriptionFundedEvent.OutputObject>;
|
|
529
|
+
};
|
|
530
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as mockFunctionsRouterSol from "./MockFunctionsRouter.sol";
|
|
2
2
|
export type { mockFunctionsRouterSol };
|
|
3
3
|
export type { MockOracle } from "./MockOracle";
|
|
4
|
+
export type { MockVRFCoordinatorV2 } from "./MockVRFCoordinatorV2";
|
|
4
5
|
export type { TestRAACHousePriceOracle } from "./TestRAACHousePriceOracle";
|
|
5
6
|
export type { TestRAACPrimeRateOracle } from "./TestRAACPrimeRateOracle";
|