@raac/rpc 1.0.1 → 1.0.2-beta.1
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/17000.json +127 -0
- package/dist/configs/chains/8453.json +26 -14
- package/dist/configs/chains/index.js +2 -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/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 +2 -0
- package/dist/types/configs/createConfig.d.ts +6 -0
- package/dist/types/configs/index.d.ts +1 -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 +2 -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,187 @@
|
|
|
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 IIndexTokenInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "getNFTPrice" | "isWhitelistedNFT" | "mint" | "receiveNFT" | "redeem" | "setStabilityPool" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "getNFTPrice", values: [AddressLike, BigNumberish]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "isWhitelistedNFT", values: [AddressLike]): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "mint", values: [AddressLike, BigNumberish]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "receiveNFT", values: [AddressLike, BigNumberish]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "redeem", values: [BigNumberish]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "setStabilityPool", values: [AddressLike]): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
18
|
+
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
20
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "getNFTPrice", data: BytesLike): Result;
|
|
22
|
+
decodeFunctionResult(functionFragment: "isWhitelistedNFT", data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
|
24
|
+
decodeFunctionResult(functionFragment: "receiveNFT", data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: "redeem", data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: "setStabilityPool", data: BytesLike): Result;
|
|
27
|
+
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace ApprovalEvent {
|
|
32
|
+
type InputTuple = [
|
|
33
|
+
owner: AddressLike,
|
|
34
|
+
spender: AddressLike,
|
|
35
|
+
value: BigNumberish
|
|
36
|
+
];
|
|
37
|
+
type OutputTuple = [owner: string, spender: string, value: bigint];
|
|
38
|
+
interface OutputObject {
|
|
39
|
+
owner: string;
|
|
40
|
+
spender: string;
|
|
41
|
+
value: bigint;
|
|
42
|
+
}
|
|
43
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
44
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
45
|
+
type Log = TypedEventLog<Event>;
|
|
46
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace TransferEvent {
|
|
49
|
+
type InputTuple = [
|
|
50
|
+
from: AddressLike,
|
|
51
|
+
to: AddressLike,
|
|
52
|
+
value: BigNumberish
|
|
53
|
+
];
|
|
54
|
+
type OutputTuple = [from: string, to: string, value: bigint];
|
|
55
|
+
interface OutputObject {
|
|
56
|
+
from: string;
|
|
57
|
+
to: string;
|
|
58
|
+
value: bigint;
|
|
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 interface IIndexToken extends BaseContract {
|
|
66
|
+
connect(runner?: ContractRunner | null): IIndexToken;
|
|
67
|
+
waitForDeployment(): Promise<this>;
|
|
68
|
+
interface: IIndexTokenInterface;
|
|
69
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
70
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
71
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
72
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
73
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
74
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
75
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
76
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
77
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
78
|
+
allowance: TypedContractMethod<[
|
|
79
|
+
owner: AddressLike,
|
|
80
|
+
spender: AddressLike
|
|
81
|
+
], [
|
|
82
|
+
bigint
|
|
83
|
+
], "view">;
|
|
84
|
+
approve: TypedContractMethod<[
|
|
85
|
+
spender: AddressLike,
|
|
86
|
+
value: BigNumberish
|
|
87
|
+
], [
|
|
88
|
+
boolean
|
|
89
|
+
], "nonpayable">;
|
|
90
|
+
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
91
|
+
getNFTPrice: TypedContractMethod<[
|
|
92
|
+
nftContract: AddressLike,
|
|
93
|
+
tokenId: BigNumberish
|
|
94
|
+
], [
|
|
95
|
+
bigint
|
|
96
|
+
], "view">;
|
|
97
|
+
isWhitelistedNFT: TypedContractMethod<[nft: AddressLike], [boolean], "view">;
|
|
98
|
+
mint: TypedContractMethod<[
|
|
99
|
+
to: AddressLike,
|
|
100
|
+
amount: BigNumberish
|
|
101
|
+
], [
|
|
102
|
+
void
|
|
103
|
+
], "nonpayable">;
|
|
104
|
+
receiveNFT: TypedContractMethod<[
|
|
105
|
+
nft: AddressLike,
|
|
106
|
+
tokenId: BigNumberish
|
|
107
|
+
], [
|
|
108
|
+
void
|
|
109
|
+
], "nonpayable">;
|
|
110
|
+
redeem: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
111
|
+
setStabilityPool: TypedContractMethod<[
|
|
112
|
+
_stabilityPool: AddressLike
|
|
113
|
+
], [
|
|
114
|
+
void
|
|
115
|
+
], "nonpayable">;
|
|
116
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
117
|
+
transfer: TypedContractMethod<[
|
|
118
|
+
to: AddressLike,
|
|
119
|
+
value: BigNumberish
|
|
120
|
+
], [
|
|
121
|
+
boolean
|
|
122
|
+
], "nonpayable">;
|
|
123
|
+
transferFrom: TypedContractMethod<[
|
|
124
|
+
from: AddressLike,
|
|
125
|
+
to: AddressLike,
|
|
126
|
+
value: BigNumberish
|
|
127
|
+
], [
|
|
128
|
+
boolean
|
|
129
|
+
], "nonpayable">;
|
|
130
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
131
|
+
getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
|
|
132
|
+
owner: AddressLike,
|
|
133
|
+
spender: AddressLike
|
|
134
|
+
], [
|
|
135
|
+
bigint
|
|
136
|
+
], "view">;
|
|
137
|
+
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
138
|
+
spender: AddressLike,
|
|
139
|
+
value: BigNumberish
|
|
140
|
+
], [
|
|
141
|
+
boolean
|
|
142
|
+
], "nonpayable">;
|
|
143
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
144
|
+
getFunction(nameOrSignature: "getNFTPrice"): TypedContractMethod<[
|
|
145
|
+
nftContract: AddressLike,
|
|
146
|
+
tokenId: BigNumberish
|
|
147
|
+
], [
|
|
148
|
+
bigint
|
|
149
|
+
], "view">;
|
|
150
|
+
getFunction(nameOrSignature: "isWhitelistedNFT"): TypedContractMethod<[nft: AddressLike], [boolean], "view">;
|
|
151
|
+
getFunction(nameOrSignature: "mint"): TypedContractMethod<[
|
|
152
|
+
to: AddressLike,
|
|
153
|
+
amount: BigNumberish
|
|
154
|
+
], [
|
|
155
|
+
void
|
|
156
|
+
], "nonpayable">;
|
|
157
|
+
getFunction(nameOrSignature: "receiveNFT"): TypedContractMethod<[
|
|
158
|
+
nft: AddressLike,
|
|
159
|
+
tokenId: BigNumberish
|
|
160
|
+
], [
|
|
161
|
+
void
|
|
162
|
+
], "nonpayable">;
|
|
163
|
+
getFunction(nameOrSignature: "redeem"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
164
|
+
getFunction(nameOrSignature: "setStabilityPool"): TypedContractMethod<[_stabilityPool: AddressLike], [void], "nonpayable">;
|
|
165
|
+
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
166
|
+
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
167
|
+
to: AddressLike,
|
|
168
|
+
value: BigNumberish
|
|
169
|
+
], [
|
|
170
|
+
boolean
|
|
171
|
+
], "nonpayable">;
|
|
172
|
+
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
173
|
+
from: AddressLike,
|
|
174
|
+
to: AddressLike,
|
|
175
|
+
value: BigNumberish
|
|
176
|
+
], [
|
|
177
|
+
boolean
|
|
178
|
+
], "nonpayable">;
|
|
179
|
+
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
180
|
+
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
181
|
+
filters: {
|
|
182
|
+
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
183
|
+
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
184
|
+
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
185
|
+
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
186
|
+
};
|
|
187
|
+
}
|
|
@@ -1,44 +1,77 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
3
|
export interface IRAACNFTInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "NFTMinted" | "Transfer"): EventFragment;
|
|
6
|
-
encodeFunctionData(functionFragment: "
|
|
4
|
+
getFunction(nameOrSignature: "addMinter" | "approve" | "balanceOf" | "getAllTokens()" | "getAllTokens(uint256,uint256)" | "getApproved" | "getHousePrice" | "getMintPrice" | "getTokensByOwner(address)" | "getTokensByOwner(address,uint256,uint256)" | "isApprovedForAll" | "mint" | "minterMint" | "ownerOf" | "removeMinter" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setAllowBurning" | "setApprovalForAll" | "setBaseUri" | "setMintFee" | "setTreasury" | "supportsInterface" | "tokenByIndex" | "tokenOfOwnerByIndex" | "totalSupply" | "transferFrom" | "transferRole" | "withdrawUnderlying"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "AllowBurningUpdated" | "Approval" | "ApprovalForAll" | "BaseURIUpdated" | "MaxFeeUpdated" | "MintFeeUpdated" | "MinterRoleTransferred" | "NFTFeePaid" | "NFTFeeUpdated" | "NFTMinted" | "Transfer"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "addMinter", values: [AddressLike]): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
9
|
-
encodeFunctionData(functionFragment: "
|
|
9
|
+
encodeFunctionData(functionFragment: "getAllTokens()", values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "getAllTokens(uint256,uint256)", values: [BigNumberish, BigNumberish]): string;
|
|
10
11
|
encodeFunctionData(functionFragment: "getApproved", values: [BigNumberish]): string;
|
|
11
12
|
encodeFunctionData(functionFragment: "getHousePrice", values: [BigNumberish]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "getMintPrice", values: [BigNumberish]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "getTokensByOwner(address)", values: [AddressLike]): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "getTokensByOwner(address,uint256,uint256)", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
12
16
|
encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
|
|
13
17
|
encodeFunctionData(functionFragment: "mint", values: [BigNumberish, BigNumberish]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "minterMint", values: [AddressLike, BigNumberish]): string;
|
|
14
19
|
encodeFunctionData(functionFragment: "ownerOf", values: [BigNumberish]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "removeMinter", values: [AddressLike]): string;
|
|
15
21
|
encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256)", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
16
22
|
encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "setAllowBurning", values: [boolean]): string;
|
|
17
24
|
encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
|
|
18
25
|
encodeFunctionData(functionFragment: "setBaseUri", values: [string]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "setMintFee", values: [BigNumberish]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "setTreasury", values: [AddressLike]): string;
|
|
19
28
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
20
29
|
encodeFunctionData(functionFragment: "tokenByIndex", values: [BigNumberish]): string;
|
|
21
30
|
encodeFunctionData(functionFragment: "tokenOfOwnerByIndex", values: [AddressLike, BigNumberish]): string;
|
|
22
31
|
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
23
32
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
24
|
-
|
|
33
|
+
encodeFunctionData(functionFragment: "transferRole", values: [BytesLike, AddressLike]): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "withdrawUnderlying", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
35
|
+
decodeFunctionResult(functionFragment: "addMinter", data: BytesLike): Result;
|
|
25
36
|
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
26
37
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
27
|
-
decodeFunctionResult(functionFragment: "
|
|
38
|
+
decodeFunctionResult(functionFragment: "getAllTokens()", data: BytesLike): Result;
|
|
39
|
+
decodeFunctionResult(functionFragment: "getAllTokens(uint256,uint256)", data: BytesLike): Result;
|
|
28
40
|
decodeFunctionResult(functionFragment: "getApproved", data: BytesLike): Result;
|
|
29
41
|
decodeFunctionResult(functionFragment: "getHousePrice", data: BytesLike): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "getMintPrice", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "getTokensByOwner(address)", data: BytesLike): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "getTokensByOwner(address,uint256,uint256)", data: BytesLike): Result;
|
|
30
45
|
decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
|
|
31
46
|
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "minterMint", data: BytesLike): Result;
|
|
32
48
|
decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(functionFragment: "removeMinter", data: BytesLike): Result;
|
|
33
50
|
decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256)", data: BytesLike): Result;
|
|
34
51
|
decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", data: BytesLike): Result;
|
|
52
|
+
decodeFunctionResult(functionFragment: "setAllowBurning", data: BytesLike): Result;
|
|
35
53
|
decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
|
|
36
54
|
decodeFunctionResult(functionFragment: "setBaseUri", data: BytesLike): Result;
|
|
55
|
+
decodeFunctionResult(functionFragment: "setMintFee", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "setTreasury", data: BytesLike): Result;
|
|
37
57
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
38
58
|
decodeFunctionResult(functionFragment: "tokenByIndex", data: BytesLike): Result;
|
|
39
59
|
decodeFunctionResult(functionFragment: "tokenOfOwnerByIndex", data: BytesLike): Result;
|
|
40
60
|
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
41
61
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: "transferRole", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "withdrawUnderlying", data: BytesLike): Result;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace AllowBurningUpdatedEvent {
|
|
66
|
+
type InputTuple = [allowBurning: boolean];
|
|
67
|
+
type OutputTuple = [allowBurning: boolean];
|
|
68
|
+
interface OutputObject {
|
|
69
|
+
allowBurning: boolean;
|
|
70
|
+
}
|
|
71
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
72
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
73
|
+
type Log = TypedEventLog<Event>;
|
|
74
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
42
75
|
}
|
|
43
76
|
export declare namespace ApprovalEvent {
|
|
44
77
|
type InputTuple = [
|
|
@@ -78,17 +111,101 @@ export declare namespace ApprovalForAllEvent {
|
|
|
78
111
|
type Log = TypedEventLog<Event>;
|
|
79
112
|
type LogDescription = TypedLogDescription<Event>;
|
|
80
113
|
}
|
|
114
|
+
export declare namespace BaseURIUpdatedEvent {
|
|
115
|
+
type InputTuple = [uri: string];
|
|
116
|
+
type OutputTuple = [uri: string];
|
|
117
|
+
interface OutputObject {
|
|
118
|
+
uri: string;
|
|
119
|
+
}
|
|
120
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
121
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
122
|
+
type Log = TypedEventLog<Event>;
|
|
123
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace MaxFeeUpdatedEvent {
|
|
126
|
+
type InputTuple = [maxFee: BigNumberish];
|
|
127
|
+
type OutputTuple = [maxFee: bigint];
|
|
128
|
+
interface OutputObject {
|
|
129
|
+
maxFee: bigint;
|
|
130
|
+
}
|
|
131
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
132
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
133
|
+
type Log = TypedEventLog<Event>;
|
|
134
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
135
|
+
}
|
|
136
|
+
export declare namespace MintFeeUpdatedEvent {
|
|
137
|
+
type InputTuple = [mintFee: BigNumberish];
|
|
138
|
+
type OutputTuple = [mintFee: bigint];
|
|
139
|
+
interface OutputObject {
|
|
140
|
+
mintFee: bigint;
|
|
141
|
+
}
|
|
142
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
143
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
144
|
+
type Log = TypedEventLog<Event>;
|
|
145
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
146
|
+
}
|
|
147
|
+
export declare namespace MinterRoleTransferredEvent {
|
|
148
|
+
type InputTuple = [
|
|
149
|
+
role: BytesLike,
|
|
150
|
+
previousMinter: AddressLike,
|
|
151
|
+
newMinter: AddressLike
|
|
152
|
+
];
|
|
153
|
+
type OutputTuple = [
|
|
154
|
+
role: string,
|
|
155
|
+
previousMinter: string,
|
|
156
|
+
newMinter: string
|
|
157
|
+
];
|
|
158
|
+
interface OutputObject {
|
|
159
|
+
role: string;
|
|
160
|
+
previousMinter: string;
|
|
161
|
+
newMinter: string;
|
|
162
|
+
}
|
|
163
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
164
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
165
|
+
type Log = TypedEventLog<Event>;
|
|
166
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
167
|
+
}
|
|
168
|
+
export declare namespace NFTFeePaidEvent {
|
|
169
|
+
type InputTuple = [payer: AddressLike, fee: BigNumberish];
|
|
170
|
+
type OutputTuple = [payer: string, fee: bigint];
|
|
171
|
+
interface OutputObject {
|
|
172
|
+
payer: string;
|
|
173
|
+
fee: bigint;
|
|
174
|
+
}
|
|
175
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
176
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
177
|
+
type Log = TypedEventLog<Event>;
|
|
178
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
179
|
+
}
|
|
180
|
+
export declare namespace NFTFeeUpdatedEvent {
|
|
181
|
+
type InputTuple = [fee: BigNumberish];
|
|
182
|
+
type OutputTuple = [fee: bigint];
|
|
183
|
+
interface OutputObject {
|
|
184
|
+
fee: bigint;
|
|
185
|
+
}
|
|
186
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
187
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
188
|
+
type Log = TypedEventLog<Event>;
|
|
189
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
190
|
+
}
|
|
81
191
|
export declare namespace NFTMintedEvent {
|
|
82
192
|
type InputTuple = [
|
|
83
193
|
minter: AddressLike,
|
|
84
194
|
tokenId: BigNumberish,
|
|
85
|
-
price: BigNumberish
|
|
195
|
+
price: BigNumberish,
|
|
196
|
+
mintFee: BigNumberish
|
|
197
|
+
];
|
|
198
|
+
type OutputTuple = [
|
|
199
|
+
minter: string,
|
|
200
|
+
tokenId: bigint,
|
|
201
|
+
price: bigint,
|
|
202
|
+
mintFee: bigint
|
|
86
203
|
];
|
|
87
|
-
type OutputTuple = [minter: string, tokenId: bigint, price: bigint];
|
|
88
204
|
interface OutputObject {
|
|
89
205
|
minter: string;
|
|
90
206
|
tokenId: bigint;
|
|
91
207
|
price: bigint;
|
|
208
|
+
mintFee: bigint;
|
|
92
209
|
}
|
|
93
210
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
94
211
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -125,11 +242,7 @@ export interface IRAACNFT extends BaseContract {
|
|
|
125
242
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
126
243
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
127
244
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
128
|
-
|
|
129
|
-
_batchSize: BigNumberish
|
|
130
|
-
], [
|
|
131
|
-
void
|
|
132
|
-
], "nonpayable">;
|
|
245
|
+
addMinter: TypedContractMethod<[minter: AddressLike], [void], "nonpayable">;
|
|
133
246
|
approve: TypedContractMethod<[
|
|
134
247
|
to: AddressLike,
|
|
135
248
|
tokenId: BigNumberish
|
|
@@ -137,13 +250,32 @@ export interface IRAACNFT extends BaseContract {
|
|
|
137
250
|
void
|
|
138
251
|
], "nonpayable">;
|
|
139
252
|
balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
140
|
-
|
|
253
|
+
"getAllTokens()": TypedContractMethod<[], [bigint[]], "view">;
|
|
254
|
+
"getAllTokens(uint256,uint256)": TypedContractMethod<[
|
|
255
|
+
start: BigNumberish,
|
|
256
|
+
end: BigNumberish
|
|
257
|
+
], [
|
|
258
|
+
bigint[]
|
|
259
|
+
], "view">;
|
|
141
260
|
getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
142
261
|
getHousePrice: TypedContractMethod<[
|
|
143
262
|
_tokenId: BigNumberish
|
|
144
263
|
], [
|
|
145
264
|
bigint
|
|
146
265
|
], "view">;
|
|
266
|
+
getMintPrice: TypedContractMethod<[_tokenId: BigNumberish], [bigint], "view">;
|
|
267
|
+
"getTokensByOwner(address)": TypedContractMethod<[
|
|
268
|
+
owner: AddressLike
|
|
269
|
+
], [
|
|
270
|
+
bigint[]
|
|
271
|
+
], "view">;
|
|
272
|
+
"getTokensByOwner(address,uint256,uint256)": TypedContractMethod<[
|
|
273
|
+
owner: AddressLike,
|
|
274
|
+
start: BigNumberish,
|
|
275
|
+
end: BigNumberish
|
|
276
|
+
], [
|
|
277
|
+
bigint[]
|
|
278
|
+
], "view">;
|
|
147
279
|
isApprovedForAll: TypedContractMethod<[
|
|
148
280
|
owner: AddressLike,
|
|
149
281
|
operator: AddressLike
|
|
@@ -156,7 +288,18 @@ export interface IRAACNFT extends BaseContract {
|
|
|
156
288
|
], [
|
|
157
289
|
void
|
|
158
290
|
], "nonpayable">;
|
|
291
|
+
minterMint: TypedContractMethod<[
|
|
292
|
+
to: AddressLike,
|
|
293
|
+
tokenId: BigNumberish
|
|
294
|
+
], [
|
|
295
|
+
void
|
|
296
|
+
], "nonpayable">;
|
|
159
297
|
ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
298
|
+
removeMinter: TypedContractMethod<[
|
|
299
|
+
minter: AddressLike
|
|
300
|
+
], [
|
|
301
|
+
void
|
|
302
|
+
], "nonpayable">;
|
|
160
303
|
"safeTransferFrom(address,address,uint256)": TypedContractMethod<[
|
|
161
304
|
from: AddressLike,
|
|
162
305
|
to: AddressLike,
|
|
@@ -172,6 +315,11 @@ export interface IRAACNFT extends BaseContract {
|
|
|
172
315
|
], [
|
|
173
316
|
void
|
|
174
317
|
], "nonpayable">;
|
|
318
|
+
setAllowBurning: TypedContractMethod<[
|
|
319
|
+
_allowBurning: boolean
|
|
320
|
+
], [
|
|
321
|
+
void
|
|
322
|
+
], "nonpayable">;
|
|
175
323
|
setApprovalForAll: TypedContractMethod<[
|
|
176
324
|
operator: AddressLike,
|
|
177
325
|
approved: boolean
|
|
@@ -179,6 +327,12 @@ export interface IRAACNFT extends BaseContract {
|
|
|
179
327
|
void
|
|
180
328
|
], "nonpayable">;
|
|
181
329
|
setBaseUri: TypedContractMethod<[_uri: string], [void], "nonpayable">;
|
|
330
|
+
setMintFee: TypedContractMethod<[newFee: BigNumberish], [void], "nonpayable">;
|
|
331
|
+
setTreasury: TypedContractMethod<[
|
|
332
|
+
_treasury: AddressLike
|
|
333
|
+
], [
|
|
334
|
+
void
|
|
335
|
+
], "nonpayable">;
|
|
182
336
|
supportsInterface: TypedContractMethod<[
|
|
183
337
|
interfaceId: BytesLike
|
|
184
338
|
], [
|
|
@@ -199,8 +353,21 @@ export interface IRAACNFT extends BaseContract {
|
|
|
199
353
|
], [
|
|
200
354
|
void
|
|
201
355
|
], "nonpayable">;
|
|
356
|
+
transferRole: TypedContractMethod<[
|
|
357
|
+
role: BytesLike,
|
|
358
|
+
newMinter: AddressLike
|
|
359
|
+
], [
|
|
360
|
+
void
|
|
361
|
+
], "nonpayable">;
|
|
362
|
+
withdrawUnderlying: TypedContractMethod<[
|
|
363
|
+
tokenAddress: AddressLike,
|
|
364
|
+
to: AddressLike,
|
|
365
|
+
amount: BigNumberish
|
|
366
|
+
], [
|
|
367
|
+
boolean
|
|
368
|
+
], "nonpayable">;
|
|
202
369
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
203
|
-
getFunction(nameOrSignature: "
|
|
370
|
+
getFunction(nameOrSignature: "addMinter"): TypedContractMethod<[minter: AddressLike], [void], "nonpayable">;
|
|
204
371
|
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
205
372
|
to: AddressLike,
|
|
206
373
|
tokenId: BigNumberish
|
|
@@ -208,9 +375,24 @@ export interface IRAACNFT extends BaseContract {
|
|
|
208
375
|
void
|
|
209
376
|
], "nonpayable">;
|
|
210
377
|
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
211
|
-
getFunction(nameOrSignature: "
|
|
378
|
+
getFunction(nameOrSignature: "getAllTokens()"): TypedContractMethod<[], [bigint[]], "view">;
|
|
379
|
+
getFunction(nameOrSignature: "getAllTokens(uint256,uint256)"): TypedContractMethod<[
|
|
380
|
+
start: BigNumberish,
|
|
381
|
+
end: BigNumberish
|
|
382
|
+
], [
|
|
383
|
+
bigint[]
|
|
384
|
+
], "view">;
|
|
212
385
|
getFunction(nameOrSignature: "getApproved"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
213
386
|
getFunction(nameOrSignature: "getHousePrice"): TypedContractMethod<[_tokenId: BigNumberish], [bigint], "view">;
|
|
387
|
+
getFunction(nameOrSignature: "getMintPrice"): TypedContractMethod<[_tokenId: BigNumberish], [bigint], "view">;
|
|
388
|
+
getFunction(nameOrSignature: "getTokensByOwner(address)"): TypedContractMethod<[owner: AddressLike], [bigint[]], "view">;
|
|
389
|
+
getFunction(nameOrSignature: "getTokensByOwner(address,uint256,uint256)"): TypedContractMethod<[
|
|
390
|
+
owner: AddressLike,
|
|
391
|
+
start: BigNumberish,
|
|
392
|
+
end: BigNumberish
|
|
393
|
+
], [
|
|
394
|
+
bigint[]
|
|
395
|
+
], "view">;
|
|
214
396
|
getFunction(nameOrSignature: "isApprovedForAll"): TypedContractMethod<[
|
|
215
397
|
owner: AddressLike,
|
|
216
398
|
operator: AddressLike
|
|
@@ -223,7 +405,14 @@ export interface IRAACNFT extends BaseContract {
|
|
|
223
405
|
], [
|
|
224
406
|
void
|
|
225
407
|
], "nonpayable">;
|
|
408
|
+
getFunction(nameOrSignature: "minterMint"): TypedContractMethod<[
|
|
409
|
+
to: AddressLike,
|
|
410
|
+
tokenId: BigNumberish
|
|
411
|
+
], [
|
|
412
|
+
void
|
|
413
|
+
], "nonpayable">;
|
|
226
414
|
getFunction(nameOrSignature: "ownerOf"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
415
|
+
getFunction(nameOrSignature: "removeMinter"): TypedContractMethod<[minter: AddressLike], [void], "nonpayable">;
|
|
227
416
|
getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256)"): TypedContractMethod<[
|
|
228
417
|
from: AddressLike,
|
|
229
418
|
to: AddressLike,
|
|
@@ -239,6 +428,7 @@ export interface IRAACNFT extends BaseContract {
|
|
|
239
428
|
], [
|
|
240
429
|
void
|
|
241
430
|
], "nonpayable">;
|
|
431
|
+
getFunction(nameOrSignature: "setAllowBurning"): TypedContractMethod<[_allowBurning: boolean], [void], "nonpayable">;
|
|
242
432
|
getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
|
|
243
433
|
operator: AddressLike,
|
|
244
434
|
approved: boolean
|
|
@@ -246,6 +436,8 @@ export interface IRAACNFT extends BaseContract {
|
|
|
246
436
|
void
|
|
247
437
|
], "nonpayable">;
|
|
248
438
|
getFunction(nameOrSignature: "setBaseUri"): TypedContractMethod<[_uri: string], [void], "nonpayable">;
|
|
439
|
+
getFunction(nameOrSignature: "setMintFee"): TypedContractMethod<[newFee: BigNumberish], [void], "nonpayable">;
|
|
440
|
+
getFunction(nameOrSignature: "setTreasury"): TypedContractMethod<[_treasury: AddressLike], [void], "nonpayable">;
|
|
249
441
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
250
442
|
getFunction(nameOrSignature: "tokenByIndex"): TypedContractMethod<[index: BigNumberish], [bigint], "view">;
|
|
251
443
|
getFunction(nameOrSignature: "tokenOfOwnerByIndex"): TypedContractMethod<[
|
|
@@ -262,16 +454,50 @@ export interface IRAACNFT extends BaseContract {
|
|
|
262
454
|
], [
|
|
263
455
|
void
|
|
264
456
|
], "nonpayable">;
|
|
457
|
+
getFunction(nameOrSignature: "transferRole"): TypedContractMethod<[
|
|
458
|
+
role: BytesLike,
|
|
459
|
+
newMinter: AddressLike
|
|
460
|
+
], [
|
|
461
|
+
void
|
|
462
|
+
], "nonpayable">;
|
|
463
|
+
getFunction(nameOrSignature: "withdrawUnderlying"): TypedContractMethod<[
|
|
464
|
+
tokenAddress: AddressLike,
|
|
465
|
+
to: AddressLike,
|
|
466
|
+
amount: BigNumberish
|
|
467
|
+
], [
|
|
468
|
+
boolean
|
|
469
|
+
], "nonpayable">;
|
|
470
|
+
getEvent(key: "AllowBurningUpdated"): TypedContractEvent<AllowBurningUpdatedEvent.InputTuple, AllowBurningUpdatedEvent.OutputTuple, AllowBurningUpdatedEvent.OutputObject>;
|
|
265
471
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
266
472
|
getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
473
|
+
getEvent(key: "BaseURIUpdated"): TypedContractEvent<BaseURIUpdatedEvent.InputTuple, BaseURIUpdatedEvent.OutputTuple, BaseURIUpdatedEvent.OutputObject>;
|
|
474
|
+
getEvent(key: "MaxFeeUpdated"): TypedContractEvent<MaxFeeUpdatedEvent.InputTuple, MaxFeeUpdatedEvent.OutputTuple, MaxFeeUpdatedEvent.OutputObject>;
|
|
475
|
+
getEvent(key: "MintFeeUpdated"): TypedContractEvent<MintFeeUpdatedEvent.InputTuple, MintFeeUpdatedEvent.OutputTuple, MintFeeUpdatedEvent.OutputObject>;
|
|
476
|
+
getEvent(key: "MinterRoleTransferred"): TypedContractEvent<MinterRoleTransferredEvent.InputTuple, MinterRoleTransferredEvent.OutputTuple, MinterRoleTransferredEvent.OutputObject>;
|
|
477
|
+
getEvent(key: "NFTFeePaid"): TypedContractEvent<NFTFeePaidEvent.InputTuple, NFTFeePaidEvent.OutputTuple, NFTFeePaidEvent.OutputObject>;
|
|
478
|
+
getEvent(key: "NFTFeeUpdated"): TypedContractEvent<NFTFeeUpdatedEvent.InputTuple, NFTFeeUpdatedEvent.OutputTuple, NFTFeeUpdatedEvent.OutputObject>;
|
|
267
479
|
getEvent(key: "NFTMinted"): TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
|
|
268
480
|
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
269
481
|
filters: {
|
|
482
|
+
"AllowBurningUpdated(bool)": TypedContractEvent<AllowBurningUpdatedEvent.InputTuple, AllowBurningUpdatedEvent.OutputTuple, AllowBurningUpdatedEvent.OutputObject>;
|
|
483
|
+
AllowBurningUpdated: TypedContractEvent<AllowBurningUpdatedEvent.InputTuple, AllowBurningUpdatedEvent.OutputTuple, AllowBurningUpdatedEvent.OutputObject>;
|
|
270
484
|
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
271
485
|
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
272
486
|
"ApprovalForAll(address,address,bool)": TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
273
487
|
ApprovalForAll: TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
274
|
-
"
|
|
488
|
+
"BaseURIUpdated(string)": TypedContractEvent<BaseURIUpdatedEvent.InputTuple, BaseURIUpdatedEvent.OutputTuple, BaseURIUpdatedEvent.OutputObject>;
|
|
489
|
+
BaseURIUpdated: TypedContractEvent<BaseURIUpdatedEvent.InputTuple, BaseURIUpdatedEvent.OutputTuple, BaseURIUpdatedEvent.OutputObject>;
|
|
490
|
+
"MaxFeeUpdated(uint256)": TypedContractEvent<MaxFeeUpdatedEvent.InputTuple, MaxFeeUpdatedEvent.OutputTuple, MaxFeeUpdatedEvent.OutputObject>;
|
|
491
|
+
MaxFeeUpdated: TypedContractEvent<MaxFeeUpdatedEvent.InputTuple, MaxFeeUpdatedEvent.OutputTuple, MaxFeeUpdatedEvent.OutputObject>;
|
|
492
|
+
"MintFeeUpdated(uint256)": TypedContractEvent<MintFeeUpdatedEvent.InputTuple, MintFeeUpdatedEvent.OutputTuple, MintFeeUpdatedEvent.OutputObject>;
|
|
493
|
+
MintFeeUpdated: TypedContractEvent<MintFeeUpdatedEvent.InputTuple, MintFeeUpdatedEvent.OutputTuple, MintFeeUpdatedEvent.OutputObject>;
|
|
494
|
+
"MinterRoleTransferred(bytes32,address,address)": TypedContractEvent<MinterRoleTransferredEvent.InputTuple, MinterRoleTransferredEvent.OutputTuple, MinterRoleTransferredEvent.OutputObject>;
|
|
495
|
+
MinterRoleTransferred: TypedContractEvent<MinterRoleTransferredEvent.InputTuple, MinterRoleTransferredEvent.OutputTuple, MinterRoleTransferredEvent.OutputObject>;
|
|
496
|
+
"NFTFeePaid(address,uint256)": TypedContractEvent<NFTFeePaidEvent.InputTuple, NFTFeePaidEvent.OutputTuple, NFTFeePaidEvent.OutputObject>;
|
|
497
|
+
NFTFeePaid: TypedContractEvent<NFTFeePaidEvent.InputTuple, NFTFeePaidEvent.OutputTuple, NFTFeePaidEvent.OutputObject>;
|
|
498
|
+
"NFTFeeUpdated(uint256)": TypedContractEvent<NFTFeeUpdatedEvent.InputTuple, NFTFeeUpdatedEvent.OutputTuple, NFTFeeUpdatedEvent.OutputObject>;
|
|
499
|
+
NFTFeeUpdated: TypedContractEvent<NFTFeeUpdatedEvent.InputTuple, NFTFeeUpdatedEvent.OutputTuple, NFTFeeUpdatedEvent.OutputObject>;
|
|
500
|
+
"NFTMinted(address,uint256,uint256,uint256)": TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
|
|
275
501
|
NFTMinted: TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
|
|
276
502
|
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
277
503
|
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|