@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,292 @@
|
|
|
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 MockCollectableUnderlyingInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "ADMIN_ROLE" | "DEFAULT_ADMIN_ROLE" | "MINTER_ROLE" | "WITHDRAW_ROLE" | "getLastWithdrawal" | "getRoleAdmin" | "grantRole" | "hasRole" | "lastToken" | "lastWithdrawer" | "owner" | "renounceOwnership" | "renounceRole" | "revokeRole" | "setShouldRevert" | "shouldRevert" | "supportsInterface" | "token" | "transferOwnership" | "withdrawUnderlying" | "withdrawnAmount"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "WithdrawUnderlyingExecuted"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "ADMIN_ROLE", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "MINTER_ROLE", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "WITHDRAW_ROLE", values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "getLastWithdrawal", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "lastToken", values?: undefined): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "lastWithdrawer", values?: undefined): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "setShouldRevert", values: [boolean]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "shouldRevert", values?: undefined): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "token", values?: undefined): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "withdrawUnderlying", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "withdrawnAmount", values?: undefined): string;
|
|
27
|
+
decodeFunctionResult(functionFragment: "ADMIN_ROLE", data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: "MINTER_ROLE", data: BytesLike): Result;
|
|
30
|
+
decodeFunctionResult(functionFragment: "WITHDRAW_ROLE", data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: "getLastWithdrawal", data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
34
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: "lastToken", data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: "lastWithdrawer", data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
39
|
+
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
40
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
41
|
+
decodeFunctionResult(functionFragment: "setShouldRevert", data: BytesLike): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "shouldRevert", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "token", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(functionFragment: "withdrawUnderlying", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "withdrawnAmount", data: BytesLike): Result;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace OwnershipTransferredEvent {
|
|
50
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
51
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
52
|
+
interface OutputObject {
|
|
53
|
+
previousOwner: string;
|
|
54
|
+
newOwner: string;
|
|
55
|
+
}
|
|
56
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
57
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
58
|
+
type Log = TypedEventLog<Event>;
|
|
59
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace RoleAdminChangedEvent {
|
|
62
|
+
type InputTuple = [
|
|
63
|
+
role: BytesLike,
|
|
64
|
+
previousAdminRole: BytesLike,
|
|
65
|
+
newAdminRole: BytesLike
|
|
66
|
+
];
|
|
67
|
+
type OutputTuple = [
|
|
68
|
+
role: string,
|
|
69
|
+
previousAdminRole: string,
|
|
70
|
+
newAdminRole: string
|
|
71
|
+
];
|
|
72
|
+
interface OutputObject {
|
|
73
|
+
role: string;
|
|
74
|
+
previousAdminRole: string;
|
|
75
|
+
newAdminRole: string;
|
|
76
|
+
}
|
|
77
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
78
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
79
|
+
type Log = TypedEventLog<Event>;
|
|
80
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
81
|
+
}
|
|
82
|
+
export declare namespace RoleGrantedEvent {
|
|
83
|
+
type InputTuple = [
|
|
84
|
+
role: BytesLike,
|
|
85
|
+
account: AddressLike,
|
|
86
|
+
sender: AddressLike
|
|
87
|
+
];
|
|
88
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
89
|
+
interface OutputObject {
|
|
90
|
+
role: string;
|
|
91
|
+
account: string;
|
|
92
|
+
sender: string;
|
|
93
|
+
}
|
|
94
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
95
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
96
|
+
type Log = TypedEventLog<Event>;
|
|
97
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace RoleRevokedEvent {
|
|
100
|
+
type InputTuple = [
|
|
101
|
+
role: BytesLike,
|
|
102
|
+
account: AddressLike,
|
|
103
|
+
sender: AddressLike
|
|
104
|
+
];
|
|
105
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
106
|
+
interface OutputObject {
|
|
107
|
+
role: string;
|
|
108
|
+
account: string;
|
|
109
|
+
sender: string;
|
|
110
|
+
}
|
|
111
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
112
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
113
|
+
type Log = TypedEventLog<Event>;
|
|
114
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
115
|
+
}
|
|
116
|
+
export declare namespace WithdrawUnderlyingExecutedEvent {
|
|
117
|
+
type InputTuple = [
|
|
118
|
+
token: AddressLike,
|
|
119
|
+
to: AddressLike,
|
|
120
|
+
amount: BigNumberish
|
|
121
|
+
];
|
|
122
|
+
type OutputTuple = [token: string, to: string, amount: bigint];
|
|
123
|
+
interface OutputObject {
|
|
124
|
+
token: string;
|
|
125
|
+
to: string;
|
|
126
|
+
amount: bigint;
|
|
127
|
+
}
|
|
128
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
129
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
130
|
+
type Log = TypedEventLog<Event>;
|
|
131
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
132
|
+
}
|
|
133
|
+
export interface MockCollectableUnderlying extends BaseContract {
|
|
134
|
+
connect(runner?: ContractRunner | null): MockCollectableUnderlying;
|
|
135
|
+
waitForDeployment(): Promise<this>;
|
|
136
|
+
interface: MockCollectableUnderlyingInterface;
|
|
137
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
138
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
139
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
140
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
141
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
142
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
143
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
144
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
145
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
146
|
+
ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
147
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
148
|
+
MINTER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
149
|
+
WITHDRAW_ROLE: TypedContractMethod<[], [string], "view">;
|
|
150
|
+
getLastWithdrawal: TypedContractMethod<[
|
|
151
|
+
], [
|
|
152
|
+
[
|
|
153
|
+
bigint,
|
|
154
|
+
string,
|
|
155
|
+
string
|
|
156
|
+
] & {
|
|
157
|
+
amount: bigint;
|
|
158
|
+
withdrawer: string;
|
|
159
|
+
tokenAddress: string;
|
|
160
|
+
}
|
|
161
|
+
], "view">;
|
|
162
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
163
|
+
grantRole: TypedContractMethod<[
|
|
164
|
+
role: BytesLike,
|
|
165
|
+
account: AddressLike
|
|
166
|
+
], [
|
|
167
|
+
void
|
|
168
|
+
], "nonpayable">;
|
|
169
|
+
hasRole: TypedContractMethod<[
|
|
170
|
+
role: BytesLike,
|
|
171
|
+
account: AddressLike
|
|
172
|
+
], [
|
|
173
|
+
boolean
|
|
174
|
+
], "view">;
|
|
175
|
+
lastToken: TypedContractMethod<[], [string], "view">;
|
|
176
|
+
lastWithdrawer: TypedContractMethod<[], [string], "view">;
|
|
177
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
178
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
179
|
+
renounceRole: TypedContractMethod<[
|
|
180
|
+
role: BytesLike,
|
|
181
|
+
callerConfirmation: AddressLike
|
|
182
|
+
], [
|
|
183
|
+
void
|
|
184
|
+
], "nonpayable">;
|
|
185
|
+
revokeRole: TypedContractMethod<[
|
|
186
|
+
role: BytesLike,
|
|
187
|
+
account: AddressLike
|
|
188
|
+
], [
|
|
189
|
+
void
|
|
190
|
+
], "nonpayable">;
|
|
191
|
+
setShouldRevert: TypedContractMethod<[
|
|
192
|
+
_shouldRevert: boolean
|
|
193
|
+
], [
|
|
194
|
+
void
|
|
195
|
+
], "nonpayable">;
|
|
196
|
+
shouldRevert: TypedContractMethod<[], [boolean], "view">;
|
|
197
|
+
supportsInterface: TypedContractMethod<[
|
|
198
|
+
interfaceId: BytesLike
|
|
199
|
+
], [
|
|
200
|
+
boolean
|
|
201
|
+
], "view">;
|
|
202
|
+
token: TypedContractMethod<[], [string], "view">;
|
|
203
|
+
transferOwnership: TypedContractMethod<[
|
|
204
|
+
newOwner: AddressLike
|
|
205
|
+
], [
|
|
206
|
+
void
|
|
207
|
+
], "nonpayable">;
|
|
208
|
+
withdrawUnderlying: TypedContractMethod<[
|
|
209
|
+
tokenAddress: AddressLike,
|
|
210
|
+
to: AddressLike,
|
|
211
|
+
amount: BigNumberish
|
|
212
|
+
], [
|
|
213
|
+
boolean
|
|
214
|
+
], "nonpayable">;
|
|
215
|
+
withdrawnAmount: TypedContractMethod<[], [bigint], "view">;
|
|
216
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
217
|
+
getFunction(nameOrSignature: "ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
218
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
219
|
+
getFunction(nameOrSignature: "MINTER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
220
|
+
getFunction(nameOrSignature: "WITHDRAW_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
221
|
+
getFunction(nameOrSignature: "getLastWithdrawal"): TypedContractMethod<[
|
|
222
|
+
], [
|
|
223
|
+
[
|
|
224
|
+
bigint,
|
|
225
|
+
string,
|
|
226
|
+
string
|
|
227
|
+
] & {
|
|
228
|
+
amount: bigint;
|
|
229
|
+
withdrawer: string;
|
|
230
|
+
tokenAddress: string;
|
|
231
|
+
}
|
|
232
|
+
], "view">;
|
|
233
|
+
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
234
|
+
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
235
|
+
role: BytesLike,
|
|
236
|
+
account: AddressLike
|
|
237
|
+
], [
|
|
238
|
+
void
|
|
239
|
+
], "nonpayable">;
|
|
240
|
+
getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
|
|
241
|
+
role: BytesLike,
|
|
242
|
+
account: AddressLike
|
|
243
|
+
], [
|
|
244
|
+
boolean
|
|
245
|
+
], "view">;
|
|
246
|
+
getFunction(nameOrSignature: "lastToken"): TypedContractMethod<[], [string], "view">;
|
|
247
|
+
getFunction(nameOrSignature: "lastWithdrawer"): TypedContractMethod<[], [string], "view">;
|
|
248
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
249
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
250
|
+
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
251
|
+
role: BytesLike,
|
|
252
|
+
callerConfirmation: AddressLike
|
|
253
|
+
], [
|
|
254
|
+
void
|
|
255
|
+
], "nonpayable">;
|
|
256
|
+
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
257
|
+
role: BytesLike,
|
|
258
|
+
account: AddressLike
|
|
259
|
+
], [
|
|
260
|
+
void
|
|
261
|
+
], "nonpayable">;
|
|
262
|
+
getFunction(nameOrSignature: "setShouldRevert"): TypedContractMethod<[_shouldRevert: boolean], [void], "nonpayable">;
|
|
263
|
+
getFunction(nameOrSignature: "shouldRevert"): TypedContractMethod<[], [boolean], "view">;
|
|
264
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
265
|
+
getFunction(nameOrSignature: "token"): TypedContractMethod<[], [string], "view">;
|
|
266
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
267
|
+
getFunction(nameOrSignature: "withdrawUnderlying"): TypedContractMethod<[
|
|
268
|
+
tokenAddress: AddressLike,
|
|
269
|
+
to: AddressLike,
|
|
270
|
+
amount: BigNumberish
|
|
271
|
+
], [
|
|
272
|
+
boolean
|
|
273
|
+
], "nonpayable">;
|
|
274
|
+
getFunction(nameOrSignature: "withdrawnAmount"): TypedContractMethod<[], [bigint], "view">;
|
|
275
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
276
|
+
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
277
|
+
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
278
|
+
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
279
|
+
getEvent(key: "WithdrawUnderlyingExecuted"): TypedContractEvent<WithdrawUnderlyingExecutedEvent.InputTuple, WithdrawUnderlyingExecutedEvent.OutputTuple, WithdrawUnderlyingExecutedEvent.OutputObject>;
|
|
280
|
+
filters: {
|
|
281
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
282
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
283
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
284
|
+
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
285
|
+
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
286
|
+
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
287
|
+
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
288
|
+
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
289
|
+
"WithdrawUnderlyingExecuted(address,address,uint256)": TypedContractEvent<WithdrawUnderlyingExecutedEvent.InputTuple, WithdrawUnderlyingExecutedEvent.OutputTuple, WithdrawUnderlyingExecutedEvent.OutputObject>;
|
|
290
|
+
WithdrawUnderlyingExecuted: TypedContractEvent<WithdrawUnderlyingExecutedEvent.InputTuple, WithdrawUnderlyingExecutedEvent.OutputTuple, WithdrawUnderlyingExecutedEvent.OutputObject>;
|
|
291
|
+
};
|
|
292
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { ERC20Mock } from "./ERC20Mock";
|
|
2
2
|
export type { ERC721Mock } from "./ERC721Mock";
|
|
3
|
+
export type { MockCollectableUnderlying } from "./MockCollectableUnderlying";
|
|
3
4
|
export type { MockFeeCollectorToken } from "./MockFeeCollectorToken";
|
|
4
5
|
export type { MockToken } from "./MockToken";
|
|
5
6
|
export type { MockUSDC } from "./MockUSDC";
|
|
@@ -0,0 +1,290 @@
|
|
|
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 MockVaultInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "allowance" | "approve" | "asset" | "balanceOf" | "decimals" | "deposit" | "depositRewards" | "initialize" | "initialized" | "maxDeposit" | "maxWithdraw" | "name" | "previewDeposit" | "previewWithdraw" | "pricePerShare" | "symbol" | "totalAssets" | "totalSupply" | "transfer" | "transferFrom" | "withdraw"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "Deposit" | "RewardsDeposited" | "Transfer" | "Withdraw"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "asset", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "deposit", values: [BigNumberish, AddressLike]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "depositRewards", values: [BigNumberish]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "initialize", values: [AddressLike]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "initialized", values?: undefined): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "maxDeposit", values: [AddressLike]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "maxWithdraw", values: [AddressLike]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "previewDeposit", values: [BigNumberish]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "previewWithdraw", values: [BigNumberish]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "pricePerShare", values: [boolean]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "totalAssets", values?: undefined): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
27
|
+
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: "asset", data: BytesLike): Result;
|
|
30
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: "depositRewards", data: BytesLike): Result;
|
|
34
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: "initialized", data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: "maxDeposit", data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: "maxWithdraw", data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
39
|
+
decodeFunctionResult(functionFragment: "previewDeposit", data: BytesLike): Result;
|
|
40
|
+
decodeFunctionResult(functionFragment: "previewWithdraw", data: BytesLike): Result;
|
|
41
|
+
decodeFunctionResult(functionFragment: "pricePerShare", data: BytesLike): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "totalAssets", data: BytesLike): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace ApprovalEvent {
|
|
50
|
+
type InputTuple = [
|
|
51
|
+
owner: AddressLike,
|
|
52
|
+
spender: AddressLike,
|
|
53
|
+
value: BigNumberish
|
|
54
|
+
];
|
|
55
|
+
type OutputTuple = [owner: string, spender: string, value: bigint];
|
|
56
|
+
interface OutputObject {
|
|
57
|
+
owner: string;
|
|
58
|
+
spender: string;
|
|
59
|
+
value: bigint;
|
|
60
|
+
}
|
|
61
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
62
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
63
|
+
type Log = TypedEventLog<Event>;
|
|
64
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace DepositEvent {
|
|
67
|
+
type InputTuple = [
|
|
68
|
+
sender: AddressLike,
|
|
69
|
+
owner: AddressLike,
|
|
70
|
+
assets: BigNumberish,
|
|
71
|
+
shares: BigNumberish
|
|
72
|
+
];
|
|
73
|
+
type OutputTuple = [
|
|
74
|
+
sender: string,
|
|
75
|
+
owner: string,
|
|
76
|
+
assets: bigint,
|
|
77
|
+
shares: bigint
|
|
78
|
+
];
|
|
79
|
+
interface OutputObject {
|
|
80
|
+
sender: string;
|
|
81
|
+
owner: string;
|
|
82
|
+
assets: bigint;
|
|
83
|
+
shares: bigint;
|
|
84
|
+
}
|
|
85
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
86
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
87
|
+
type Log = TypedEventLog<Event>;
|
|
88
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
89
|
+
}
|
|
90
|
+
export declare namespace RewardsDepositedEvent {
|
|
91
|
+
type InputTuple = [amount: BigNumberish];
|
|
92
|
+
type OutputTuple = [amount: bigint];
|
|
93
|
+
interface OutputObject {
|
|
94
|
+
amount: bigint;
|
|
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 TransferEvent {
|
|
102
|
+
type InputTuple = [
|
|
103
|
+
from: AddressLike,
|
|
104
|
+
to: AddressLike,
|
|
105
|
+
value: BigNumberish
|
|
106
|
+
];
|
|
107
|
+
type OutputTuple = [from: string, to: string, value: bigint];
|
|
108
|
+
interface OutputObject {
|
|
109
|
+
from: string;
|
|
110
|
+
to: string;
|
|
111
|
+
value: bigint;
|
|
112
|
+
}
|
|
113
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
114
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
115
|
+
type Log = TypedEventLog<Event>;
|
|
116
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
117
|
+
}
|
|
118
|
+
export declare namespace WithdrawEvent {
|
|
119
|
+
type InputTuple = [
|
|
120
|
+
sender: AddressLike,
|
|
121
|
+
receiver: AddressLike,
|
|
122
|
+
owner: AddressLike,
|
|
123
|
+
assets: BigNumberish,
|
|
124
|
+
shares: BigNumberish
|
|
125
|
+
];
|
|
126
|
+
type OutputTuple = [
|
|
127
|
+
sender: string,
|
|
128
|
+
receiver: string,
|
|
129
|
+
owner: string,
|
|
130
|
+
assets: bigint,
|
|
131
|
+
shares: bigint
|
|
132
|
+
];
|
|
133
|
+
interface OutputObject {
|
|
134
|
+
sender: string;
|
|
135
|
+
receiver: string;
|
|
136
|
+
owner: string;
|
|
137
|
+
assets: bigint;
|
|
138
|
+
shares: bigint;
|
|
139
|
+
}
|
|
140
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
141
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
142
|
+
type Log = TypedEventLog<Event>;
|
|
143
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
144
|
+
}
|
|
145
|
+
export interface MockVault extends BaseContract {
|
|
146
|
+
connect(runner?: ContractRunner | null): MockVault;
|
|
147
|
+
waitForDeployment(): Promise<this>;
|
|
148
|
+
interface: MockVaultInterface;
|
|
149
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
150
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
151
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
152
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
153
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
154
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
155
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
156
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
157
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
158
|
+
allowance: TypedContractMethod<[
|
|
159
|
+
owner: AddressLike,
|
|
160
|
+
spender: AddressLike
|
|
161
|
+
], [
|
|
162
|
+
bigint
|
|
163
|
+
], "view">;
|
|
164
|
+
approve: TypedContractMethod<[
|
|
165
|
+
spender: AddressLike,
|
|
166
|
+
value: BigNumberish
|
|
167
|
+
], [
|
|
168
|
+
boolean
|
|
169
|
+
], "nonpayable">;
|
|
170
|
+
asset: TypedContractMethod<[], [string], "view">;
|
|
171
|
+
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
172
|
+
decimals: TypedContractMethod<[], [bigint], "view">;
|
|
173
|
+
deposit: TypedContractMethod<[
|
|
174
|
+
assets: BigNumberish,
|
|
175
|
+
receiver: AddressLike
|
|
176
|
+
], [
|
|
177
|
+
bigint
|
|
178
|
+
], "nonpayable">;
|
|
179
|
+
depositRewards: TypedContractMethod<[
|
|
180
|
+
amount: BigNumberish
|
|
181
|
+
], [
|
|
182
|
+
void
|
|
183
|
+
], "nonpayable">;
|
|
184
|
+
initialize: TypedContractMethod<[asset_: AddressLike], [void], "nonpayable">;
|
|
185
|
+
initialized: TypedContractMethod<[], [boolean], "view">;
|
|
186
|
+
maxDeposit: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
187
|
+
maxWithdraw: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
188
|
+
name: TypedContractMethod<[], [string], "view">;
|
|
189
|
+
previewDeposit: TypedContractMethod<[assets: BigNumberish], [bigint], "view">;
|
|
190
|
+
previewWithdraw: TypedContractMethod<[
|
|
191
|
+
assets: BigNumberish
|
|
192
|
+
], [
|
|
193
|
+
bigint
|
|
194
|
+
], "view">;
|
|
195
|
+
pricePerShare: TypedContractMethod<[isFloor: boolean], [bigint], "view">;
|
|
196
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
|
197
|
+
totalAssets: TypedContractMethod<[], [bigint], "view">;
|
|
198
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
199
|
+
transfer: TypedContractMethod<[
|
|
200
|
+
to: AddressLike,
|
|
201
|
+
value: BigNumberish
|
|
202
|
+
], [
|
|
203
|
+
boolean
|
|
204
|
+
], "nonpayable">;
|
|
205
|
+
transferFrom: TypedContractMethod<[
|
|
206
|
+
from: AddressLike,
|
|
207
|
+
to: AddressLike,
|
|
208
|
+
value: BigNumberish
|
|
209
|
+
], [
|
|
210
|
+
boolean
|
|
211
|
+
], "nonpayable">;
|
|
212
|
+
withdraw: TypedContractMethod<[
|
|
213
|
+
assets: BigNumberish,
|
|
214
|
+
receiver: AddressLike,
|
|
215
|
+
owner: AddressLike
|
|
216
|
+
], [
|
|
217
|
+
bigint
|
|
218
|
+
], "nonpayable">;
|
|
219
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
220
|
+
getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
|
|
221
|
+
owner: AddressLike,
|
|
222
|
+
spender: AddressLike
|
|
223
|
+
], [
|
|
224
|
+
bigint
|
|
225
|
+
], "view">;
|
|
226
|
+
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
227
|
+
spender: AddressLike,
|
|
228
|
+
value: BigNumberish
|
|
229
|
+
], [
|
|
230
|
+
boolean
|
|
231
|
+
], "nonpayable">;
|
|
232
|
+
getFunction(nameOrSignature: "asset"): TypedContractMethod<[], [string], "view">;
|
|
233
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
234
|
+
getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
|
|
235
|
+
getFunction(nameOrSignature: "deposit"): TypedContractMethod<[
|
|
236
|
+
assets: BigNumberish,
|
|
237
|
+
receiver: AddressLike
|
|
238
|
+
], [
|
|
239
|
+
bigint
|
|
240
|
+
], "nonpayable">;
|
|
241
|
+
getFunction(nameOrSignature: "depositRewards"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
242
|
+
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[asset_: AddressLike], [void], "nonpayable">;
|
|
243
|
+
getFunction(nameOrSignature: "initialized"): TypedContractMethod<[], [boolean], "view">;
|
|
244
|
+
getFunction(nameOrSignature: "maxDeposit"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
245
|
+
getFunction(nameOrSignature: "maxWithdraw"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
246
|
+
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
|
|
247
|
+
getFunction(nameOrSignature: "previewDeposit"): TypedContractMethod<[assets: BigNumberish], [bigint], "view">;
|
|
248
|
+
getFunction(nameOrSignature: "previewWithdraw"): TypedContractMethod<[assets: BigNumberish], [bigint], "view">;
|
|
249
|
+
getFunction(nameOrSignature: "pricePerShare"): TypedContractMethod<[isFloor: boolean], [bigint], "view">;
|
|
250
|
+
getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
|
|
251
|
+
getFunction(nameOrSignature: "totalAssets"): TypedContractMethod<[], [bigint], "view">;
|
|
252
|
+
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
253
|
+
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
254
|
+
to: AddressLike,
|
|
255
|
+
value: BigNumberish
|
|
256
|
+
], [
|
|
257
|
+
boolean
|
|
258
|
+
], "nonpayable">;
|
|
259
|
+
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
260
|
+
from: AddressLike,
|
|
261
|
+
to: AddressLike,
|
|
262
|
+
value: BigNumberish
|
|
263
|
+
], [
|
|
264
|
+
boolean
|
|
265
|
+
], "nonpayable">;
|
|
266
|
+
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
|
|
267
|
+
assets: BigNumberish,
|
|
268
|
+
receiver: AddressLike,
|
|
269
|
+
owner: AddressLike
|
|
270
|
+
], [
|
|
271
|
+
bigint
|
|
272
|
+
], "nonpayable">;
|
|
273
|
+
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
274
|
+
getEvent(key: "Deposit"): TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
275
|
+
getEvent(key: "RewardsDeposited"): TypedContractEvent<RewardsDepositedEvent.InputTuple, RewardsDepositedEvent.OutputTuple, RewardsDepositedEvent.OutputObject>;
|
|
276
|
+
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
277
|
+
getEvent(key: "Withdraw"): TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
278
|
+
filters: {
|
|
279
|
+
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
280
|
+
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
281
|
+
"Deposit(address,address,uint256,uint256)": TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
282
|
+
Deposit: TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
283
|
+
"RewardsDeposited(uint256)": TypedContractEvent<RewardsDepositedEvent.InputTuple, RewardsDepositedEvent.OutputTuple, RewardsDepositedEvent.OutputObject>;
|
|
284
|
+
RewardsDeposited: TypedContractEvent<RewardsDepositedEvent.InputTuple, RewardsDepositedEvent.OutputTuple, RewardsDepositedEvent.OutputObject>;
|
|
285
|
+
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
286
|
+
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
287
|
+
"Withdraw(address,address,address,uint256,uint256)": TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
288
|
+
Withdraw: TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
289
|
+
};
|
|
290
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { MockVault } from "./MockVault";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface MockStringUtilsInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "stringToUint"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "stringToUint", values: [string]): string;
|
|
6
|
+
decodeFunctionResult(functionFragment: "stringToUint", data: BytesLike): Result;
|
|
7
|
+
}
|
|
8
|
+
export interface MockStringUtils extends BaseContract {
|
|
9
|
+
connect(runner?: ContractRunner | null): MockStringUtils;
|
|
10
|
+
waitForDeployment(): Promise<this>;
|
|
11
|
+
interface: MockStringUtilsInterface;
|
|
12
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
13
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
14
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
16
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
17
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
18
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
19
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
|
+
stringToUint: TypedContractMethod<[s: string], [bigint], "view">;
|
|
22
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
23
|
+
getFunction(nameOrSignature: "stringToUint"): TypedContractMethod<[s: string], [bigint], "view">;
|
|
24
|
+
filters: {};
|
|
25
|
+
}
|