@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
3
|
export interface RAACMinterInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "BASE_EMISSION_UPDATE_INTERVAL" | "BLOCKS_PER_DAY" | "DEFAULT_ADMIN_ROLE" | "EMERGENCY_SHUTDOWN_ROLE" | "INITIAL_RATE" | "MAX_ADJUSTMENT_FACTOR" | "MAX_BENCHMARK_RATE" | "MAX_EMISSION_UPDATE_INTERVAL" | "MAX_UTILIZATION_TARGET" | "PAUSER_ROLE" | "TIMELOCK_DURATION" | "UPDATER_ROLE" | "adjustmentFactor" | "benchmarkRate" | "emergencyShutdown" | "emissionRate" | "emissionUpdateInterval" | "excessTokens" | "getEmissionRate" | "getExcessTokens" | "getRoleAdmin" | "getTotalSupply" | "grantRole" | "hasRole" | "lastEmissionUpdateTimestamp" | "lastUpdateBlock" | "lendingPool" | "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "AdjustmentFactorUpdated" | "BenchmarkRateUpdated" | "EmergencyShutdown" | "EmissionRateUpdated" | "EmissionUpdateIntervalUpdated" | "LastUpdateBlockSet" | "MaxEmissionRateUpdated" | "MinEmissionRateUpdated" | "OwnershipTransferred" | "ParameterUpdated" | "Paused" | "RAACMinted" | "RAACTokenOwnershipTransferInitiated" | "RAACTokenOwnershipTransferred" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "Unpaused" | "UtilizationTargetUpdated"): EventFragment;
|
|
4
|
+
getFunction(nameOrSignature: "BASE_EMISSION_UPDATE_INTERVAL" | "BLOCKS_PER_DAY" | "DEFAULT_ADMIN_ROLE" | "EMERGENCY_SHUTDOWN_ROLE" | "INITIAL_RATE" | "MAX_ADJUSTMENT_FACTOR" | "MAX_BENCHMARK_RATE" | "MAX_EMISSION_UPDATE_INTERVAL" | "MAX_SUPPLY" | "MAX_UTILIZATION_TARGET" | "PAUSER_ROLE" | "TIMELOCK_DURATION" | "UPDATER_ROLE" | "adjustmentFactor" | "benchmarkRate" | "distributionPools" | "emergencyShutdown" | "emissionRate" | "emissionUpdateInterval" | "excessTokens" | "getDistributionPools" | "getEmissionRate" | "getExcessTokens" | "getRoleAdmin" | "getTotalSupply" | "grantRole" | "hasRole" | "lastEmissionUpdateTimestamp" | "lastUpdateBlock" | "lendingPool" | "manageDistributionPool" | "maxEmissionRate" | "minEmissionRate" | "owner" | "pause" | "paused" | "poolInfo" | "raacToken" | "renounceOwnership" | "renounceRole" | "revokeRole" | "setAdjustmentFactor" | "setBurnTaxRate" | "setEmissionUpdateInterval" | "setFeeCollector" | "setLendingPool" | "setMaxEmissionRate" | "setMinEmissionRate" | "setStabilityPool" | "setSwapTaxRate" | "setUtilizationTarget" | "stabilityPool" | "supportsInterface" | "tick" | "timeLocks" | "totalWeight" | "transferOwnership" | "unpause" | "updateBenchmarkRate" | "updateEmissionRate" | "utilizationTarget"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "AdjustmentFactorUpdated" | "BenchmarkRateUpdated" | "DistributionFailed" | "DistributionPoolUpdated" | "EmergencyShutdown" | "EmissionRateUpdated" | "EmissionUpdateIntervalUpdated" | "LastUpdateBlockSet" | "MaxEmissionRateUpdated" | "MinEmissionRateUpdated" | "OwnershipTransferred" | "ParameterUpdated" | "Paused" | "RAACMinted" | "RAACTokenOwnershipTransferInitiated" | "RAACTokenOwnershipTransferred" | "RewardsDistributed" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "Unpaused" | "UtilizationTargetUpdated"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "BASE_EMISSION_UPDATE_INTERVAL", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "BLOCKS_PER_DAY", values?: undefined): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
@@ -11,16 +11,19 @@ export interface RAACMinterInterface extends Interface {
|
|
|
11
11
|
encodeFunctionData(functionFragment: "MAX_ADJUSTMENT_FACTOR", values?: undefined): string;
|
|
12
12
|
encodeFunctionData(functionFragment: "MAX_BENCHMARK_RATE", values?: undefined): string;
|
|
13
13
|
encodeFunctionData(functionFragment: "MAX_EMISSION_UPDATE_INTERVAL", values?: undefined): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "MAX_SUPPLY", values?: undefined): string;
|
|
14
15
|
encodeFunctionData(functionFragment: "MAX_UTILIZATION_TARGET", values?: undefined): string;
|
|
15
16
|
encodeFunctionData(functionFragment: "PAUSER_ROLE", values?: undefined): string;
|
|
16
17
|
encodeFunctionData(functionFragment: "TIMELOCK_DURATION", values?: undefined): string;
|
|
17
18
|
encodeFunctionData(functionFragment: "UPDATER_ROLE", values?: undefined): string;
|
|
18
19
|
encodeFunctionData(functionFragment: "adjustmentFactor", values?: undefined): string;
|
|
19
20
|
encodeFunctionData(functionFragment: "benchmarkRate", values?: undefined): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "distributionPools", values: [BigNumberish]): string;
|
|
20
22
|
encodeFunctionData(functionFragment: "emergencyShutdown", values: [boolean, BigNumberish]): string;
|
|
21
23
|
encodeFunctionData(functionFragment: "emissionRate", values?: undefined): string;
|
|
22
24
|
encodeFunctionData(functionFragment: "emissionUpdateInterval", values?: undefined): string;
|
|
23
25
|
encodeFunctionData(functionFragment: "excessTokens", values?: undefined): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "getDistributionPools", values?: undefined): string;
|
|
24
27
|
encodeFunctionData(functionFragment: "getEmissionRate", values?: undefined): string;
|
|
25
28
|
encodeFunctionData(functionFragment: "getExcessTokens", values?: undefined): string;
|
|
26
29
|
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
@@ -30,12 +33,13 @@ export interface RAACMinterInterface extends Interface {
|
|
|
30
33
|
encodeFunctionData(functionFragment: "lastEmissionUpdateTimestamp", values?: undefined): string;
|
|
31
34
|
encodeFunctionData(functionFragment: "lastUpdateBlock", values?: undefined): string;
|
|
32
35
|
encodeFunctionData(functionFragment: "lendingPool", values?: undefined): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "manageDistributionPool", values: [AddressLike, BigNumberish]): string;
|
|
33
37
|
encodeFunctionData(functionFragment: "maxEmissionRate", values?: undefined): string;
|
|
34
38
|
encodeFunctionData(functionFragment: "minEmissionRate", values?: undefined): string;
|
|
35
|
-
encodeFunctionData(functionFragment: "mintRewards", values: [AddressLike, BigNumberish]): string;
|
|
36
39
|
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
37
40
|
encodeFunctionData(functionFragment: "pause", values: [boolean, BigNumberish]): string;
|
|
38
41
|
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "poolInfo", values: [AddressLike]): string;
|
|
39
43
|
encodeFunctionData(functionFragment: "raacToken", values?: undefined): string;
|
|
40
44
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
41
45
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
@@ -54,10 +58,11 @@ export interface RAACMinterInterface extends Interface {
|
|
|
54
58
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
55
59
|
encodeFunctionData(functionFragment: "tick", values?: undefined): string;
|
|
56
60
|
encodeFunctionData(functionFragment: "timeLocks", values: [BytesLike]): string;
|
|
61
|
+
encodeFunctionData(functionFragment: "totalWeight", values?: undefined): string;
|
|
57
62
|
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
58
63
|
encodeFunctionData(functionFragment: "unpause", values: [boolean, BigNumberish]): string;
|
|
59
64
|
encodeFunctionData(functionFragment: "updateBenchmarkRate", values: [BigNumberish]): string;
|
|
60
|
-
encodeFunctionData(functionFragment: "updateEmissionRate", values
|
|
65
|
+
encodeFunctionData(functionFragment: "updateEmissionRate", values: [BigNumberish]): string;
|
|
61
66
|
encodeFunctionData(functionFragment: "utilizationTarget", values?: undefined): string;
|
|
62
67
|
decodeFunctionResult(functionFragment: "BASE_EMISSION_UPDATE_INTERVAL", data: BytesLike): Result;
|
|
63
68
|
decodeFunctionResult(functionFragment: "BLOCKS_PER_DAY", data: BytesLike): Result;
|
|
@@ -67,16 +72,19 @@ export interface RAACMinterInterface extends Interface {
|
|
|
67
72
|
decodeFunctionResult(functionFragment: "MAX_ADJUSTMENT_FACTOR", data: BytesLike): Result;
|
|
68
73
|
decodeFunctionResult(functionFragment: "MAX_BENCHMARK_RATE", data: BytesLike): Result;
|
|
69
74
|
decodeFunctionResult(functionFragment: "MAX_EMISSION_UPDATE_INTERVAL", data: BytesLike): Result;
|
|
75
|
+
decodeFunctionResult(functionFragment: "MAX_SUPPLY", data: BytesLike): Result;
|
|
70
76
|
decodeFunctionResult(functionFragment: "MAX_UTILIZATION_TARGET", data: BytesLike): Result;
|
|
71
77
|
decodeFunctionResult(functionFragment: "PAUSER_ROLE", data: BytesLike): Result;
|
|
72
78
|
decodeFunctionResult(functionFragment: "TIMELOCK_DURATION", data: BytesLike): Result;
|
|
73
79
|
decodeFunctionResult(functionFragment: "UPDATER_ROLE", data: BytesLike): Result;
|
|
74
80
|
decodeFunctionResult(functionFragment: "adjustmentFactor", data: BytesLike): Result;
|
|
75
81
|
decodeFunctionResult(functionFragment: "benchmarkRate", data: BytesLike): Result;
|
|
82
|
+
decodeFunctionResult(functionFragment: "distributionPools", data: BytesLike): Result;
|
|
76
83
|
decodeFunctionResult(functionFragment: "emergencyShutdown", data: BytesLike): Result;
|
|
77
84
|
decodeFunctionResult(functionFragment: "emissionRate", data: BytesLike): Result;
|
|
78
85
|
decodeFunctionResult(functionFragment: "emissionUpdateInterval", data: BytesLike): Result;
|
|
79
86
|
decodeFunctionResult(functionFragment: "excessTokens", data: BytesLike): Result;
|
|
87
|
+
decodeFunctionResult(functionFragment: "getDistributionPools", data: BytesLike): Result;
|
|
80
88
|
decodeFunctionResult(functionFragment: "getEmissionRate", data: BytesLike): Result;
|
|
81
89
|
decodeFunctionResult(functionFragment: "getExcessTokens", data: BytesLike): Result;
|
|
82
90
|
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
@@ -86,12 +94,13 @@ export interface RAACMinterInterface extends Interface {
|
|
|
86
94
|
decodeFunctionResult(functionFragment: "lastEmissionUpdateTimestamp", data: BytesLike): Result;
|
|
87
95
|
decodeFunctionResult(functionFragment: "lastUpdateBlock", data: BytesLike): Result;
|
|
88
96
|
decodeFunctionResult(functionFragment: "lendingPool", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "manageDistributionPool", data: BytesLike): Result;
|
|
89
98
|
decodeFunctionResult(functionFragment: "maxEmissionRate", data: BytesLike): Result;
|
|
90
99
|
decodeFunctionResult(functionFragment: "minEmissionRate", data: BytesLike): Result;
|
|
91
|
-
decodeFunctionResult(functionFragment: "mintRewards", data: BytesLike): Result;
|
|
92
100
|
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
93
101
|
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
|
|
94
102
|
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
|
|
103
|
+
decodeFunctionResult(functionFragment: "poolInfo", data: BytesLike): Result;
|
|
95
104
|
decodeFunctionResult(functionFragment: "raacToken", data: BytesLike): Result;
|
|
96
105
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
97
106
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
@@ -110,6 +119,7 @@ export interface RAACMinterInterface extends Interface {
|
|
|
110
119
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
111
120
|
decodeFunctionResult(functionFragment: "tick", data: BytesLike): Result;
|
|
112
121
|
decodeFunctionResult(functionFragment: "timeLocks", data: BytesLike): Result;
|
|
122
|
+
decodeFunctionResult(functionFragment: "totalWeight", data: BytesLike): Result;
|
|
113
123
|
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
114
124
|
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
|
|
115
125
|
decodeFunctionResult(functionFragment: "updateBenchmarkRate", data: BytesLike): Result;
|
|
@@ -140,6 +150,30 @@ export declare namespace BenchmarkRateUpdatedEvent {
|
|
|
140
150
|
type Log = TypedEventLog<Event>;
|
|
141
151
|
type LogDescription = TypedLogDescription<Event>;
|
|
142
152
|
}
|
|
153
|
+
export declare namespace DistributionFailedEvent {
|
|
154
|
+
type InputTuple = [pool: AddressLike, amount: BigNumberish];
|
|
155
|
+
type OutputTuple = [pool: string, amount: bigint];
|
|
156
|
+
interface OutputObject {
|
|
157
|
+
pool: string;
|
|
158
|
+
amount: bigint;
|
|
159
|
+
}
|
|
160
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
161
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
162
|
+
type Log = TypedEventLog<Event>;
|
|
163
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
164
|
+
}
|
|
165
|
+
export declare namespace DistributionPoolUpdatedEvent {
|
|
166
|
+
type InputTuple = [pool: AddressLike, weight: BigNumberish];
|
|
167
|
+
type OutputTuple = [pool: string, weight: bigint];
|
|
168
|
+
interface OutputObject {
|
|
169
|
+
pool: string;
|
|
170
|
+
weight: bigint;
|
|
171
|
+
}
|
|
172
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
173
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
174
|
+
type Log = TypedEventLog<Event>;
|
|
175
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
176
|
+
}
|
|
143
177
|
export declare namespace EmergencyShutdownEvent {
|
|
144
178
|
type InputTuple = [
|
|
145
179
|
initiator: AddressLike,
|
|
@@ -156,9 +190,10 @@ export declare namespace EmergencyShutdownEvent {
|
|
|
156
190
|
type LogDescription = TypedLogDescription<Event>;
|
|
157
191
|
}
|
|
158
192
|
export declare namespace EmissionRateUpdatedEvent {
|
|
159
|
-
type InputTuple = [newRate: BigNumberish];
|
|
160
|
-
type OutputTuple = [newRate: bigint];
|
|
193
|
+
type InputTuple = [oldRate: BigNumberish, newRate: BigNumberish];
|
|
194
|
+
type OutputTuple = [oldRate: bigint, newRate: bigint];
|
|
161
195
|
interface OutputObject {
|
|
196
|
+
oldRate: bigint;
|
|
162
197
|
newRate: bigint;
|
|
163
198
|
}
|
|
164
199
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -285,6 +320,18 @@ export declare namespace RAACTokenOwnershipTransferredEvent {
|
|
|
285
320
|
type Log = TypedEventLog<Event>;
|
|
286
321
|
type LogDescription = TypedLogDescription<Event>;
|
|
287
322
|
}
|
|
323
|
+
export declare namespace RewardsDistributedEvent {
|
|
324
|
+
type InputTuple = [pool: AddressLike, amount: BigNumberish];
|
|
325
|
+
type OutputTuple = [pool: string, amount: bigint];
|
|
326
|
+
interface OutputObject {
|
|
327
|
+
pool: string;
|
|
328
|
+
amount: bigint;
|
|
329
|
+
}
|
|
330
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
331
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
332
|
+
type Log = TypedEventLog<Event>;
|
|
333
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
334
|
+
}
|
|
288
335
|
export declare namespace RoleAdminChangedEvent {
|
|
289
336
|
type InputTuple = [
|
|
290
337
|
role: BytesLike,
|
|
@@ -384,12 +431,18 @@ export interface RAACMinter extends BaseContract {
|
|
|
384
431
|
MAX_ADJUSTMENT_FACTOR: TypedContractMethod<[], [bigint], "view">;
|
|
385
432
|
MAX_BENCHMARK_RATE: TypedContractMethod<[], [bigint], "view">;
|
|
386
433
|
MAX_EMISSION_UPDATE_INTERVAL: TypedContractMethod<[], [bigint], "view">;
|
|
434
|
+
MAX_SUPPLY: TypedContractMethod<[], [bigint], "view">;
|
|
387
435
|
MAX_UTILIZATION_TARGET: TypedContractMethod<[], [bigint], "view">;
|
|
388
436
|
PAUSER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
389
437
|
TIMELOCK_DURATION: TypedContractMethod<[], [bigint], "view">;
|
|
390
438
|
UPDATER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
391
439
|
adjustmentFactor: TypedContractMethod<[], [bigint], "view">;
|
|
392
440
|
benchmarkRate: TypedContractMethod<[], [bigint], "view">;
|
|
441
|
+
distributionPools: TypedContractMethod<[
|
|
442
|
+
arg0: BigNumberish
|
|
443
|
+
], [
|
|
444
|
+
string
|
|
445
|
+
], "view">;
|
|
393
446
|
emergencyShutdown: TypedContractMethod<[
|
|
394
447
|
updateLastBlock: boolean,
|
|
395
448
|
newLastUpdateBlock: BigNumberish
|
|
@@ -399,6 +452,7 @@ export interface RAACMinter extends BaseContract {
|
|
|
399
452
|
emissionRate: TypedContractMethod<[], [bigint], "view">;
|
|
400
453
|
emissionUpdateInterval: TypedContractMethod<[], [bigint], "view">;
|
|
401
454
|
excessTokens: TypedContractMethod<[], [bigint], "view">;
|
|
455
|
+
getDistributionPools: TypedContractMethod<[], [string[]], "view">;
|
|
402
456
|
getEmissionRate: TypedContractMethod<[], [bigint], "view">;
|
|
403
457
|
getExcessTokens: TypedContractMethod<[], [bigint], "view">;
|
|
404
458
|
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
@@ -418,14 +472,14 @@ export interface RAACMinter extends BaseContract {
|
|
|
418
472
|
lastEmissionUpdateTimestamp: TypedContractMethod<[], [bigint], "view">;
|
|
419
473
|
lastUpdateBlock: TypedContractMethod<[], [bigint], "view">;
|
|
420
474
|
lendingPool: TypedContractMethod<[], [string], "view">;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
to: AddressLike,
|
|
425
|
-
amount: BigNumberish
|
|
475
|
+
manageDistributionPool: TypedContractMethod<[
|
|
476
|
+
pool: AddressLike,
|
|
477
|
+
weight: BigNumberish
|
|
426
478
|
], [
|
|
427
479
|
void
|
|
428
480
|
], "nonpayable">;
|
|
481
|
+
maxEmissionRate: TypedContractMethod<[], [bigint], "view">;
|
|
482
|
+
minEmissionRate: TypedContractMethod<[], [bigint], "view">;
|
|
429
483
|
owner: TypedContractMethod<[], [string], "view">;
|
|
430
484
|
pause: TypedContractMethod<[
|
|
431
485
|
updateLastBlock: boolean,
|
|
@@ -434,6 +488,14 @@ export interface RAACMinter extends BaseContract {
|
|
|
434
488
|
void
|
|
435
489
|
], "nonpayable">;
|
|
436
490
|
paused: TypedContractMethod<[], [boolean], "view">;
|
|
491
|
+
poolInfo: TypedContractMethod<[
|
|
492
|
+
arg0: AddressLike
|
|
493
|
+
], [
|
|
494
|
+
[bigint, boolean] & {
|
|
495
|
+
weight: bigint;
|
|
496
|
+
exists: boolean;
|
|
497
|
+
}
|
|
498
|
+
], "view">;
|
|
437
499
|
raacToken: TypedContractMethod<[], [string], "view">;
|
|
438
500
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
439
501
|
renounceRole: TypedContractMethod<[
|
|
@@ -506,6 +568,7 @@ export interface RAACMinter extends BaseContract {
|
|
|
506
568
|
], "view">;
|
|
507
569
|
tick: TypedContractMethod<[], [void], "nonpayable">;
|
|
508
570
|
timeLocks: TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
571
|
+
totalWeight: TypedContractMethod<[], [bigint], "view">;
|
|
509
572
|
transferOwnership: TypedContractMethod<[
|
|
510
573
|
newOwner: AddressLike
|
|
511
574
|
], [
|
|
@@ -522,7 +585,11 @@ export interface RAACMinter extends BaseContract {
|
|
|
522
585
|
], [
|
|
523
586
|
void
|
|
524
587
|
], "nonpayable">;
|
|
525
|
-
updateEmissionRate: TypedContractMethod<[
|
|
588
|
+
updateEmissionRate: TypedContractMethod<[
|
|
589
|
+
_newRate: BigNumberish
|
|
590
|
+
], [
|
|
591
|
+
void
|
|
592
|
+
], "nonpayable">;
|
|
526
593
|
utilizationTarget: TypedContractMethod<[], [bigint], "view">;
|
|
527
594
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
528
595
|
getFunction(nameOrSignature: "BASE_EMISSION_UPDATE_INTERVAL"): TypedContractMethod<[], [bigint], "view">;
|
|
@@ -533,12 +600,14 @@ export interface RAACMinter extends BaseContract {
|
|
|
533
600
|
getFunction(nameOrSignature: "MAX_ADJUSTMENT_FACTOR"): TypedContractMethod<[], [bigint], "view">;
|
|
534
601
|
getFunction(nameOrSignature: "MAX_BENCHMARK_RATE"): TypedContractMethod<[], [bigint], "view">;
|
|
535
602
|
getFunction(nameOrSignature: "MAX_EMISSION_UPDATE_INTERVAL"): TypedContractMethod<[], [bigint], "view">;
|
|
603
|
+
getFunction(nameOrSignature: "MAX_SUPPLY"): TypedContractMethod<[], [bigint], "view">;
|
|
536
604
|
getFunction(nameOrSignature: "MAX_UTILIZATION_TARGET"): TypedContractMethod<[], [bigint], "view">;
|
|
537
605
|
getFunction(nameOrSignature: "PAUSER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
538
606
|
getFunction(nameOrSignature: "TIMELOCK_DURATION"): TypedContractMethod<[], [bigint], "view">;
|
|
539
607
|
getFunction(nameOrSignature: "UPDATER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
540
608
|
getFunction(nameOrSignature: "adjustmentFactor"): TypedContractMethod<[], [bigint], "view">;
|
|
541
609
|
getFunction(nameOrSignature: "benchmarkRate"): TypedContractMethod<[], [bigint], "view">;
|
|
610
|
+
getFunction(nameOrSignature: "distributionPools"): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
542
611
|
getFunction(nameOrSignature: "emergencyShutdown"): TypedContractMethod<[
|
|
543
612
|
updateLastBlock: boolean,
|
|
544
613
|
newLastUpdateBlock: BigNumberish
|
|
@@ -548,6 +617,7 @@ export interface RAACMinter extends BaseContract {
|
|
|
548
617
|
getFunction(nameOrSignature: "emissionRate"): TypedContractMethod<[], [bigint], "view">;
|
|
549
618
|
getFunction(nameOrSignature: "emissionUpdateInterval"): TypedContractMethod<[], [bigint], "view">;
|
|
550
619
|
getFunction(nameOrSignature: "excessTokens"): TypedContractMethod<[], [bigint], "view">;
|
|
620
|
+
getFunction(nameOrSignature: "getDistributionPools"): TypedContractMethod<[], [string[]], "view">;
|
|
551
621
|
getFunction(nameOrSignature: "getEmissionRate"): TypedContractMethod<[], [bigint], "view">;
|
|
552
622
|
getFunction(nameOrSignature: "getExcessTokens"): TypedContractMethod<[], [bigint], "view">;
|
|
553
623
|
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
@@ -567,14 +637,14 @@ export interface RAACMinter extends BaseContract {
|
|
|
567
637
|
getFunction(nameOrSignature: "lastEmissionUpdateTimestamp"): TypedContractMethod<[], [bigint], "view">;
|
|
568
638
|
getFunction(nameOrSignature: "lastUpdateBlock"): TypedContractMethod<[], [bigint], "view">;
|
|
569
639
|
getFunction(nameOrSignature: "lendingPool"): TypedContractMethod<[], [string], "view">;
|
|
570
|
-
getFunction(nameOrSignature: "
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
to: AddressLike,
|
|
574
|
-
amount: BigNumberish
|
|
640
|
+
getFunction(nameOrSignature: "manageDistributionPool"): TypedContractMethod<[
|
|
641
|
+
pool: AddressLike,
|
|
642
|
+
weight: BigNumberish
|
|
575
643
|
], [
|
|
576
644
|
void
|
|
577
645
|
], "nonpayable">;
|
|
646
|
+
getFunction(nameOrSignature: "maxEmissionRate"): TypedContractMethod<[], [bigint], "view">;
|
|
647
|
+
getFunction(nameOrSignature: "minEmissionRate"): TypedContractMethod<[], [bigint], "view">;
|
|
578
648
|
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
579
649
|
getFunction(nameOrSignature: "pause"): TypedContractMethod<[
|
|
580
650
|
updateLastBlock: boolean,
|
|
@@ -583,6 +653,14 @@ export interface RAACMinter extends BaseContract {
|
|
|
583
653
|
void
|
|
584
654
|
], "nonpayable">;
|
|
585
655
|
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
|
656
|
+
getFunction(nameOrSignature: "poolInfo"): TypedContractMethod<[
|
|
657
|
+
arg0: AddressLike
|
|
658
|
+
], [
|
|
659
|
+
[bigint, boolean] & {
|
|
660
|
+
weight: bigint;
|
|
661
|
+
exists: boolean;
|
|
662
|
+
}
|
|
663
|
+
], "view">;
|
|
586
664
|
getFunction(nameOrSignature: "raacToken"): TypedContractMethod<[], [string], "view">;
|
|
587
665
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
588
666
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
@@ -631,6 +709,7 @@ export interface RAACMinter extends BaseContract {
|
|
|
631
709
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
632
710
|
getFunction(nameOrSignature: "tick"): TypedContractMethod<[], [void], "nonpayable">;
|
|
633
711
|
getFunction(nameOrSignature: "timeLocks"): TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
712
|
+
getFunction(nameOrSignature: "totalWeight"): TypedContractMethod<[], [bigint], "view">;
|
|
634
713
|
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
635
714
|
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[
|
|
636
715
|
updateLastBlock: boolean,
|
|
@@ -639,10 +718,12 @@ export interface RAACMinter extends BaseContract {
|
|
|
639
718
|
void
|
|
640
719
|
], "nonpayable">;
|
|
641
720
|
getFunction(nameOrSignature: "updateBenchmarkRate"): TypedContractMethod<[_newRate: BigNumberish], [void], "nonpayable">;
|
|
642
|
-
getFunction(nameOrSignature: "updateEmissionRate"): TypedContractMethod<[], [void], "nonpayable">;
|
|
721
|
+
getFunction(nameOrSignature: "updateEmissionRate"): TypedContractMethod<[_newRate: BigNumberish], [void], "nonpayable">;
|
|
643
722
|
getFunction(nameOrSignature: "utilizationTarget"): TypedContractMethod<[], [bigint], "view">;
|
|
644
723
|
getEvent(key: "AdjustmentFactorUpdated"): TypedContractEvent<AdjustmentFactorUpdatedEvent.InputTuple, AdjustmentFactorUpdatedEvent.OutputTuple, AdjustmentFactorUpdatedEvent.OutputObject>;
|
|
645
724
|
getEvent(key: "BenchmarkRateUpdated"): TypedContractEvent<BenchmarkRateUpdatedEvent.InputTuple, BenchmarkRateUpdatedEvent.OutputTuple, BenchmarkRateUpdatedEvent.OutputObject>;
|
|
725
|
+
getEvent(key: "DistributionFailed"): TypedContractEvent<DistributionFailedEvent.InputTuple, DistributionFailedEvent.OutputTuple, DistributionFailedEvent.OutputObject>;
|
|
726
|
+
getEvent(key: "DistributionPoolUpdated"): TypedContractEvent<DistributionPoolUpdatedEvent.InputTuple, DistributionPoolUpdatedEvent.OutputTuple, DistributionPoolUpdatedEvent.OutputObject>;
|
|
646
727
|
getEvent(key: "EmergencyShutdown"): TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
647
728
|
getEvent(key: "EmissionRateUpdated"): TypedContractEvent<EmissionRateUpdatedEvent.InputTuple, EmissionRateUpdatedEvent.OutputTuple, EmissionRateUpdatedEvent.OutputObject>;
|
|
648
729
|
getEvent(key: "EmissionUpdateIntervalUpdated"): TypedContractEvent<EmissionUpdateIntervalUpdatedEvent.InputTuple, EmissionUpdateIntervalUpdatedEvent.OutputTuple, EmissionUpdateIntervalUpdatedEvent.OutputObject>;
|
|
@@ -655,6 +736,7 @@ export interface RAACMinter extends BaseContract {
|
|
|
655
736
|
getEvent(key: "RAACMinted"): TypedContractEvent<RAACMintedEvent.InputTuple, RAACMintedEvent.OutputTuple, RAACMintedEvent.OutputObject>;
|
|
656
737
|
getEvent(key: "RAACTokenOwnershipTransferInitiated"): TypedContractEvent<RAACTokenOwnershipTransferInitiatedEvent.InputTuple, RAACTokenOwnershipTransferInitiatedEvent.OutputTuple, RAACTokenOwnershipTransferInitiatedEvent.OutputObject>;
|
|
657
738
|
getEvent(key: "RAACTokenOwnershipTransferred"): TypedContractEvent<RAACTokenOwnershipTransferredEvent.InputTuple, RAACTokenOwnershipTransferredEvent.OutputTuple, RAACTokenOwnershipTransferredEvent.OutputObject>;
|
|
739
|
+
getEvent(key: "RewardsDistributed"): TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
|
|
658
740
|
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
659
741
|
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
660
742
|
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
@@ -665,9 +747,13 @@ export interface RAACMinter extends BaseContract {
|
|
|
665
747
|
AdjustmentFactorUpdated: TypedContractEvent<AdjustmentFactorUpdatedEvent.InputTuple, AdjustmentFactorUpdatedEvent.OutputTuple, AdjustmentFactorUpdatedEvent.OutputObject>;
|
|
666
748
|
"BenchmarkRateUpdated(uint256,uint256)": TypedContractEvent<BenchmarkRateUpdatedEvent.InputTuple, BenchmarkRateUpdatedEvent.OutputTuple, BenchmarkRateUpdatedEvent.OutputObject>;
|
|
667
749
|
BenchmarkRateUpdated: TypedContractEvent<BenchmarkRateUpdatedEvent.InputTuple, BenchmarkRateUpdatedEvent.OutputTuple, BenchmarkRateUpdatedEvent.OutputObject>;
|
|
750
|
+
"DistributionFailed(address,uint256)": TypedContractEvent<DistributionFailedEvent.InputTuple, DistributionFailedEvent.OutputTuple, DistributionFailedEvent.OutputObject>;
|
|
751
|
+
DistributionFailed: TypedContractEvent<DistributionFailedEvent.InputTuple, DistributionFailedEvent.OutputTuple, DistributionFailedEvent.OutputObject>;
|
|
752
|
+
"DistributionPoolUpdated(address,uint256)": TypedContractEvent<DistributionPoolUpdatedEvent.InputTuple, DistributionPoolUpdatedEvent.OutputTuple, DistributionPoolUpdatedEvent.OutputObject>;
|
|
753
|
+
DistributionPoolUpdated: TypedContractEvent<DistributionPoolUpdatedEvent.InputTuple, DistributionPoolUpdatedEvent.OutputTuple, DistributionPoolUpdatedEvent.OutputObject>;
|
|
668
754
|
"EmergencyShutdown(address,uint256)": TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
669
755
|
EmergencyShutdown: TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
670
|
-
"EmissionRateUpdated(uint256)": TypedContractEvent<EmissionRateUpdatedEvent.InputTuple, EmissionRateUpdatedEvent.OutputTuple, EmissionRateUpdatedEvent.OutputObject>;
|
|
756
|
+
"EmissionRateUpdated(uint256,uint256)": TypedContractEvent<EmissionRateUpdatedEvent.InputTuple, EmissionRateUpdatedEvent.OutputTuple, EmissionRateUpdatedEvent.OutputObject>;
|
|
671
757
|
EmissionRateUpdated: TypedContractEvent<EmissionRateUpdatedEvent.InputTuple, EmissionRateUpdatedEvent.OutputTuple, EmissionRateUpdatedEvent.OutputObject>;
|
|
672
758
|
"EmissionUpdateIntervalUpdated(uint256,uint256)": TypedContractEvent<EmissionUpdateIntervalUpdatedEvent.InputTuple, EmissionUpdateIntervalUpdatedEvent.OutputTuple, EmissionUpdateIntervalUpdatedEvent.OutputObject>;
|
|
673
759
|
EmissionUpdateIntervalUpdated: TypedContractEvent<EmissionUpdateIntervalUpdatedEvent.InputTuple, EmissionUpdateIntervalUpdatedEvent.OutputTuple, EmissionUpdateIntervalUpdatedEvent.OutputObject>;
|
|
@@ -689,6 +775,8 @@ export interface RAACMinter extends BaseContract {
|
|
|
689
775
|
RAACTokenOwnershipTransferInitiated: TypedContractEvent<RAACTokenOwnershipTransferInitiatedEvent.InputTuple, RAACTokenOwnershipTransferInitiatedEvent.OutputTuple, RAACTokenOwnershipTransferInitiatedEvent.OutputObject>;
|
|
690
776
|
"RAACTokenOwnershipTransferred(address)": TypedContractEvent<RAACTokenOwnershipTransferredEvent.InputTuple, RAACTokenOwnershipTransferredEvent.OutputTuple, RAACTokenOwnershipTransferredEvent.OutputObject>;
|
|
691
777
|
RAACTokenOwnershipTransferred: TypedContractEvent<RAACTokenOwnershipTransferredEvent.InputTuple, RAACTokenOwnershipTransferredEvent.OutputTuple, RAACTokenOwnershipTransferredEvent.OutputObject>;
|
|
778
|
+
"RewardsDistributed(address,uint256)": TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
|
|
779
|
+
RewardsDistributed: TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
|
|
692
780
|
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
693
781
|
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
694
782
|
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
@@ -26,24 +26,21 @@ export declare namespace IReleaseOrchestrator {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
export interface RAACReleaseOrchestratorInterface extends Interface {
|
|
29
|
-
getFunction(nameOrSignature: "ADVISOR_CATEGORY" | "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ROLE" | "
|
|
29
|
+
getFunction(nameOrSignature: "ADVISOR_CATEGORY" | "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ROLE" | "LIQUIDITY_CATEGORY" | "ORCHESTRATOR_ROLE" | "PRIVATE_SALE_CATEGORY" | "PUBLIC_SALE_CATEGORY" | "TEAM_CATEGORY" | "TREASURY_CATEGORY" | "VESTING_DURATION" | "categoryAllocations" | "categoryUsed" | "createVestingSchedule" | "emergencyRevoke" | "getCategoryDetails" | "getRoleAdmin" | "getTotalAllocation" | "getVestingSchedule" | "grantRole" | "hasRole" | "paused" | "raacToken" | "release" | "renounceRole" | "revokeRole" | "setEmergencyShutdown" | "supportsInterface" | "updateCategoryAllocation" | "vestingSchedules"): FunctionFragment;
|
|
30
30
|
getEvent(nameOrSignatureOrTopic: "CategoryAllocationUpdated" | "EmergencyShutdown" | "EmergencyWithdraw" | "Paused" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TokensReleased" | "Unpaused" | "VestingScheduleCreated" | "VestingScheduleRevoked"): EventFragment;
|
|
31
31
|
encodeFunctionData(functionFragment: "ADVISOR_CATEGORY", values?: undefined): string;
|
|
32
32
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
33
33
|
encodeFunctionData(functionFragment: "EMERGENCY_ROLE", values?: undefined): string;
|
|
34
|
-
encodeFunctionData(functionFragment: "GRACE_PERIOD", values?: undefined): string;
|
|
35
34
|
encodeFunctionData(functionFragment: "LIQUIDITY_CATEGORY", values?: undefined): string;
|
|
36
|
-
encodeFunctionData(functionFragment: "MIN_RELEASE_INTERVAL", values?: undefined): string;
|
|
37
35
|
encodeFunctionData(functionFragment: "ORCHESTRATOR_ROLE", values?: undefined): string;
|
|
38
36
|
encodeFunctionData(functionFragment: "PRIVATE_SALE_CATEGORY", values?: undefined): string;
|
|
39
37
|
encodeFunctionData(functionFragment: "PUBLIC_SALE_CATEGORY", values?: undefined): string;
|
|
40
38
|
encodeFunctionData(functionFragment: "TEAM_CATEGORY", values?: undefined): string;
|
|
41
39
|
encodeFunctionData(functionFragment: "TREASURY_CATEGORY", values?: undefined): string;
|
|
42
|
-
encodeFunctionData(functionFragment: "VESTING_CLIFF", values?: undefined): string;
|
|
43
40
|
encodeFunctionData(functionFragment: "VESTING_DURATION", values?: undefined): string;
|
|
44
41
|
encodeFunctionData(functionFragment: "categoryAllocations", values: [BytesLike]): string;
|
|
45
42
|
encodeFunctionData(functionFragment: "categoryUsed", values: [BytesLike]): string;
|
|
46
|
-
encodeFunctionData(functionFragment: "createVestingSchedule", values: [AddressLike, BytesLike, BigNumberish, BigNumberish]): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "createVestingSchedule", values: [AddressLike, BytesLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
47
44
|
encodeFunctionData(functionFragment: "emergencyRevoke", values: [AddressLike]): string;
|
|
48
45
|
encodeFunctionData(functionFragment: "getCategoryDetails", values: [BytesLike]): string;
|
|
49
46
|
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
@@ -63,15 +60,12 @@ export interface RAACReleaseOrchestratorInterface extends Interface {
|
|
|
63
60
|
decodeFunctionResult(functionFragment: "ADVISOR_CATEGORY", data: BytesLike): Result;
|
|
64
61
|
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
65
62
|
decodeFunctionResult(functionFragment: "EMERGENCY_ROLE", data: BytesLike): Result;
|
|
66
|
-
decodeFunctionResult(functionFragment: "GRACE_PERIOD", data: BytesLike): Result;
|
|
67
63
|
decodeFunctionResult(functionFragment: "LIQUIDITY_CATEGORY", data: BytesLike): Result;
|
|
68
|
-
decodeFunctionResult(functionFragment: "MIN_RELEASE_INTERVAL", data: BytesLike): Result;
|
|
69
64
|
decodeFunctionResult(functionFragment: "ORCHESTRATOR_ROLE", data: BytesLike): Result;
|
|
70
65
|
decodeFunctionResult(functionFragment: "PRIVATE_SALE_CATEGORY", data: BytesLike): Result;
|
|
71
66
|
decodeFunctionResult(functionFragment: "PUBLIC_SALE_CATEGORY", data: BytesLike): Result;
|
|
72
67
|
decodeFunctionResult(functionFragment: "TEAM_CATEGORY", data: BytesLike): Result;
|
|
73
68
|
decodeFunctionResult(functionFragment: "TREASURY_CATEGORY", data: BytesLike): Result;
|
|
74
|
-
decodeFunctionResult(functionFragment: "VESTING_CLIFF", data: BytesLike): Result;
|
|
75
69
|
decodeFunctionResult(functionFragment: "VESTING_DURATION", data: BytesLike): Result;
|
|
76
70
|
decodeFunctionResult(functionFragment: "categoryAllocations", data: BytesLike): Result;
|
|
77
71
|
decodeFunctionResult(functionFragment: "categoryUsed", data: BytesLike): Result;
|
|
@@ -269,15 +263,12 @@ export interface RAACReleaseOrchestrator extends BaseContract {
|
|
|
269
263
|
ADVISOR_CATEGORY: TypedContractMethod<[], [string], "view">;
|
|
270
264
|
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
271
265
|
EMERGENCY_ROLE: TypedContractMethod<[], [string], "view">;
|
|
272
|
-
GRACE_PERIOD: TypedContractMethod<[], [bigint], "view">;
|
|
273
266
|
LIQUIDITY_CATEGORY: TypedContractMethod<[], [string], "view">;
|
|
274
|
-
MIN_RELEASE_INTERVAL: TypedContractMethod<[], [bigint], "view">;
|
|
275
267
|
ORCHESTRATOR_ROLE: TypedContractMethod<[], [string], "view">;
|
|
276
268
|
PRIVATE_SALE_CATEGORY: TypedContractMethod<[], [string], "view">;
|
|
277
269
|
PUBLIC_SALE_CATEGORY: TypedContractMethod<[], [string], "view">;
|
|
278
270
|
TEAM_CATEGORY: TypedContractMethod<[], [string], "view">;
|
|
279
271
|
TREASURY_CATEGORY: TypedContractMethod<[], [string], "view">;
|
|
280
|
-
VESTING_CLIFF: TypedContractMethod<[], [bigint], "view">;
|
|
281
272
|
VESTING_DURATION: TypedContractMethod<[], [bigint], "view">;
|
|
282
273
|
categoryAllocations: TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
283
274
|
categoryUsed: TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
@@ -285,7 +276,8 @@ export interface RAACReleaseOrchestrator extends BaseContract {
|
|
|
285
276
|
beneficiary: AddressLike,
|
|
286
277
|
category: BytesLike,
|
|
287
278
|
amount: BigNumberish,
|
|
288
|
-
startTime: BigNumberish
|
|
279
|
+
startTime: BigNumberish,
|
|
280
|
+
vestingDuration: BigNumberish
|
|
289
281
|
], [
|
|
290
282
|
void
|
|
291
283
|
], "nonpayable">;
|
|
@@ -375,15 +367,12 @@ export interface RAACReleaseOrchestrator extends BaseContract {
|
|
|
375
367
|
getFunction(nameOrSignature: "ADVISOR_CATEGORY"): TypedContractMethod<[], [string], "view">;
|
|
376
368
|
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
377
369
|
getFunction(nameOrSignature: "EMERGENCY_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
378
|
-
getFunction(nameOrSignature: "GRACE_PERIOD"): TypedContractMethod<[], [bigint], "view">;
|
|
379
370
|
getFunction(nameOrSignature: "LIQUIDITY_CATEGORY"): TypedContractMethod<[], [string], "view">;
|
|
380
|
-
getFunction(nameOrSignature: "MIN_RELEASE_INTERVAL"): TypedContractMethod<[], [bigint], "view">;
|
|
381
371
|
getFunction(nameOrSignature: "ORCHESTRATOR_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
382
372
|
getFunction(nameOrSignature: "PRIVATE_SALE_CATEGORY"): TypedContractMethod<[], [string], "view">;
|
|
383
373
|
getFunction(nameOrSignature: "PUBLIC_SALE_CATEGORY"): TypedContractMethod<[], [string], "view">;
|
|
384
374
|
getFunction(nameOrSignature: "TEAM_CATEGORY"): TypedContractMethod<[], [string], "view">;
|
|
385
375
|
getFunction(nameOrSignature: "TREASURY_CATEGORY"): TypedContractMethod<[], [string], "view">;
|
|
386
|
-
getFunction(nameOrSignature: "VESTING_CLIFF"): TypedContractMethod<[], [bigint], "view">;
|
|
387
376
|
getFunction(nameOrSignature: "VESTING_DURATION"): TypedContractMethod<[], [bigint], "view">;
|
|
388
377
|
getFunction(nameOrSignature: "categoryAllocations"): TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
389
378
|
getFunction(nameOrSignature: "categoryUsed"): TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
@@ -391,7 +380,8 @@ export interface RAACReleaseOrchestrator extends BaseContract {
|
|
|
391
380
|
beneficiary: AddressLike,
|
|
392
381
|
category: BytesLike,
|
|
393
382
|
amount: BigNumberish,
|
|
394
|
-
startTime: BigNumberish
|
|
383
|
+
startTime: BigNumberish,
|
|
384
|
+
vestingDuration: BigNumberish
|
|
395
385
|
], [
|
|
396
386
|
void
|
|
397
387
|
], "nonpayable">;
|
|
@@ -0,0 +1,166 @@
|
|
|
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 declare namespace IBaseVRFv2Consumer {
|
|
4
|
+
type RequestStatusStruct = {
|
|
5
|
+
fulfilled: boolean;
|
|
6
|
+
exists: boolean;
|
|
7
|
+
randomWords: BigNumberish[];
|
|
8
|
+
};
|
|
9
|
+
type RequestStatusStructOutput = [
|
|
10
|
+
fulfilled: boolean,
|
|
11
|
+
exists: boolean,
|
|
12
|
+
randomWords: bigint[]
|
|
13
|
+
] & {
|
|
14
|
+
fulfilled: boolean;
|
|
15
|
+
exists: boolean;
|
|
16
|
+
randomWords: bigint[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface BaseVRFv2ConsumerInterface extends Interface {
|
|
20
|
+
getFunction(nameOrSignature: "acceptOwnership" | "getRequestStatus" | "lastRequestId" | "owner" | "rawFulfillRandomWords" | "requestRandomWords" | "s_request" | "transferOwnership"): FunctionFragment;
|
|
21
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferRequested" | "OwnershipTransferred" | "RequestFulfilled" | "RequestSent"): EventFragment;
|
|
22
|
+
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "getRequestStatus", values?: undefined): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "lastRequestId", values?: undefined): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "rawFulfillRandomWords", values: [BigNumberish, BigNumberish[]]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "requestRandomWords", values?: undefined): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "s_request", values?: undefined): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
30
|
+
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: "getRequestStatus", data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: "lastRequestId", data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
34
|
+
decodeFunctionResult(functionFragment: "rawFulfillRandomWords", data: BytesLike): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: "requestRandomWords", data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: "s_request", data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
38
|
+
}
|
|
39
|
+
export declare namespace OwnershipTransferRequestedEvent {
|
|
40
|
+
type InputTuple = [from: AddressLike, to: AddressLike];
|
|
41
|
+
type OutputTuple = [from: string, to: string];
|
|
42
|
+
interface OutputObject {
|
|
43
|
+
from: string;
|
|
44
|
+
to: string;
|
|
45
|
+
}
|
|
46
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
47
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
48
|
+
type Log = TypedEventLog<Event>;
|
|
49
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace OwnershipTransferredEvent {
|
|
52
|
+
type InputTuple = [from: AddressLike, to: AddressLike];
|
|
53
|
+
type OutputTuple = [from: string, to: string];
|
|
54
|
+
interface OutputObject {
|
|
55
|
+
from: string;
|
|
56
|
+
to: string;
|
|
57
|
+
}
|
|
58
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
59
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
60
|
+
type Log = TypedEventLog<Event>;
|
|
61
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
62
|
+
}
|
|
63
|
+
export declare namespace RequestFulfilledEvent {
|
|
64
|
+
type InputTuple = [
|
|
65
|
+
requestId: BigNumberish,
|
|
66
|
+
randomWords: BigNumberish[]
|
|
67
|
+
];
|
|
68
|
+
type OutputTuple = [requestId: bigint, randomWords: bigint[]];
|
|
69
|
+
interface OutputObject {
|
|
70
|
+
requestId: bigint;
|
|
71
|
+
randomWords: bigint[];
|
|
72
|
+
}
|
|
73
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
74
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
75
|
+
type Log = TypedEventLog<Event>;
|
|
76
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
77
|
+
}
|
|
78
|
+
export declare namespace RequestSentEvent {
|
|
79
|
+
type InputTuple = [requestId: BigNumberish, numWords: BigNumberish];
|
|
80
|
+
type OutputTuple = [requestId: bigint, numWords: bigint];
|
|
81
|
+
interface OutputObject {
|
|
82
|
+
requestId: bigint;
|
|
83
|
+
numWords: 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 interface BaseVRFv2Consumer extends BaseContract {
|
|
91
|
+
connect(runner?: ContractRunner | null): BaseVRFv2Consumer;
|
|
92
|
+
waitForDeployment(): Promise<this>;
|
|
93
|
+
interface: BaseVRFv2ConsumerInterface;
|
|
94
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
95
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
96
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
97
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
98
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
99
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
100
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
101
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
102
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
103
|
+
acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
104
|
+
getRequestStatus: TypedContractMethod<[
|
|
105
|
+
], [
|
|
106
|
+
IBaseVRFv2Consumer.RequestStatusStructOutput
|
|
107
|
+
], "view">;
|
|
108
|
+
lastRequestId: TypedContractMethod<[], [bigint], "view">;
|
|
109
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
110
|
+
rawFulfillRandomWords: TypedContractMethod<[
|
|
111
|
+
requestId: BigNumberish,
|
|
112
|
+
randomWords: BigNumberish[]
|
|
113
|
+
], [
|
|
114
|
+
void
|
|
115
|
+
], "nonpayable">;
|
|
116
|
+
requestRandomWords: TypedContractMethod<[], [bigint], "nonpayable">;
|
|
117
|
+
s_request: TypedContractMethod<[
|
|
118
|
+
], [
|
|
119
|
+
[boolean, boolean] & {
|
|
120
|
+
fulfilled: boolean;
|
|
121
|
+
exists: boolean;
|
|
122
|
+
}
|
|
123
|
+
], "view">;
|
|
124
|
+
transferOwnership: TypedContractMethod<[
|
|
125
|
+
to: AddressLike
|
|
126
|
+
], [
|
|
127
|
+
void
|
|
128
|
+
], "nonpayable">;
|
|
129
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
130
|
+
getFunction(nameOrSignature: "acceptOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
131
|
+
getFunction(nameOrSignature: "getRequestStatus"): TypedContractMethod<[
|
|
132
|
+
], [
|
|
133
|
+
IBaseVRFv2Consumer.RequestStatusStructOutput
|
|
134
|
+
], "view">;
|
|
135
|
+
getFunction(nameOrSignature: "lastRequestId"): TypedContractMethod<[], [bigint], "view">;
|
|
136
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
137
|
+
getFunction(nameOrSignature: "rawFulfillRandomWords"): TypedContractMethod<[
|
|
138
|
+
requestId: BigNumberish,
|
|
139
|
+
randomWords: BigNumberish[]
|
|
140
|
+
], [
|
|
141
|
+
void
|
|
142
|
+
], "nonpayable">;
|
|
143
|
+
getFunction(nameOrSignature: "requestRandomWords"): TypedContractMethod<[], [bigint], "nonpayable">;
|
|
144
|
+
getFunction(nameOrSignature: "s_request"): TypedContractMethod<[
|
|
145
|
+
], [
|
|
146
|
+
[boolean, boolean] & {
|
|
147
|
+
fulfilled: boolean;
|
|
148
|
+
exists: boolean;
|
|
149
|
+
}
|
|
150
|
+
], "view">;
|
|
151
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[to: AddressLike], [void], "nonpayable">;
|
|
152
|
+
getEvent(key: "OwnershipTransferRequested"): TypedContractEvent<OwnershipTransferRequestedEvent.InputTuple, OwnershipTransferRequestedEvent.OutputTuple, OwnershipTransferRequestedEvent.OutputObject>;
|
|
153
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
154
|
+
getEvent(key: "RequestFulfilled"): TypedContractEvent<RequestFulfilledEvent.InputTuple, RequestFulfilledEvent.OutputTuple, RequestFulfilledEvent.OutputObject>;
|
|
155
|
+
getEvent(key: "RequestSent"): TypedContractEvent<RequestSentEvent.InputTuple, RequestSentEvent.OutputTuple, RequestSentEvent.OutputObject>;
|
|
156
|
+
filters: {
|
|
157
|
+
"OwnershipTransferRequested(address,address)": TypedContractEvent<OwnershipTransferRequestedEvent.InputTuple, OwnershipTransferRequestedEvent.OutputTuple, OwnershipTransferRequestedEvent.OutputObject>;
|
|
158
|
+
OwnershipTransferRequested: TypedContractEvent<OwnershipTransferRequestedEvent.InputTuple, OwnershipTransferRequestedEvent.OutputTuple, OwnershipTransferRequestedEvent.OutputObject>;
|
|
159
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
160
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
161
|
+
"RequestFulfilled(uint256,uint256[])": TypedContractEvent<RequestFulfilledEvent.InputTuple, RequestFulfilledEvent.OutputTuple, RequestFulfilledEvent.OutputObject>;
|
|
162
|
+
RequestFulfilled: TypedContractEvent<RequestFulfilledEvent.InputTuple, RequestFulfilledEvent.OutputTuple, RequestFulfilledEvent.OutputObject>;
|
|
163
|
+
"RequestSent(uint256,uint32)": TypedContractEvent<RequestSentEvent.InputTuple, RequestSentEvent.OutputTuple, RequestSentEvent.OutputObject>;
|
|
164
|
+
RequestSent: TypedContractEvent<RequestSentEvent.InputTuple, RequestSentEvent.OutputTuple, RequestSentEvent.OutputObject>;
|
|
165
|
+
};
|
|
166
|
+
}
|