@raac/rpc 1.0.1 → 1.0.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RPCLibrary.js +61 -8
- package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +1743 -0
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +175 -67
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +279 -0
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +1231 -195
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +153 -199
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +72 -2
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +2 -2
- package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.json +770 -0
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +707 -49
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +23 -84
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +62 -62
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +2 -2
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +774 -0
- package/dist/artifacts/zeno/Auction.sol/Auction.json +34 -114
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +3 -3
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +3 -3
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +3 -3
- package/dist/configs/chains/11155111.json +132 -0
- package/dist/configs/chains/17000.json +127 -0
- package/dist/configs/chains/8453.json +26 -14
- package/dist/configs/chains/index.js +4 -0
- package/dist/configs/createConfig.js +6 -0
- package/dist/contracts/feeCollector/claimRewardFromPool.js +24 -0
- package/dist/contracts/housePrices/getLatestPrice.js +1 -1
- package/dist/contracts/indexToken/getNextRandomNFT.js +30 -0
- package/dist/contracts/indexToken/redeemNFT.js +39 -0
- package/dist/methods/commons/estimateGasPrice.js +7 -2
- package/dist/nfts/getAllTokens.js +34 -0
- package/dist/nfts/{addNewBatch.js → getBaseUri.js} +7 -8
- package/dist/nfts/getMintFeePercentage.js +23 -0
- package/dist/nfts/getMintPrice.js +28 -0
- package/dist/nfts/getTokenURI.js +23 -0
- package/dist/nfts/getTokensByOwner.js +35 -0
- package/dist/nfts/getTotalPropertiesCount.js +23 -0
- package/dist/nfts/{getCurrentBatchSize.js → totalNFTSupply.js} +3 -3
- package/dist/pools/lendingPool/borrowFromLendingPool.js +4 -3
- package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +40 -0
- package/dist/pools/lendingPool/calculateInsuranceFee.js +20 -0
- package/dist/pools/lendingPool/claimReward.js +22 -0
- package/dist/pools/lendingPool/closeLiquidation.js +28 -0
- package/dist/pools/lendingPool/depositNFTToLendingPool.js +0 -1
- package/dist/pools/lendingPool/depositToLendingPool.js +2 -2
- package/dist/pools/lendingPool/getAllUserData.js +28 -0
- package/dist/pools/lendingPool/getEligibleUserDeposits.js +27 -0
- package/dist/pools/lendingPool/getHealthFactor.js +27 -0
- package/dist/pools/lendingPool/getLendingPoolInfo.js +8 -5
- package/dist/pools/lendingPool/getPendingReward.js +20 -0
- package/dist/pools/lendingPool/getPositionDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionView.js +38 -0
- package/dist/pools/lendingPool/getPositionsScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +21 -0
- package/dist/pools/lendingPool/getUserCollateralValue.js +27 -0
- package/dist/pools/lendingPool/initializeLiquidation.js +28 -0
- package/dist/pools/lendingPool/repayToLendingPool.js +4 -8
- package/dist/pools/lendingPool/withdrawFromLendingPool.js +2 -2
- package/dist/pools/stabilityPool/depositNFTToStabilityPool.js +40 -0
- package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +21 -0
- package/dist/pools/stabilityPool/getStabilityPoolInfo.js +2 -12
- package/dist/scripts/index.js +90 -35
- package/dist/types/RPCLibrary.d.ts +61 -8
- package/dist/types/configs/chains/index.d.ts +5 -1
- package/dist/types/configs/createConfig.d.ts +6 -0
- package/dist/types/configs/index.d.ts +2 -0
- package/dist/types/contracts/feeCollector/claimRewardFromPool.d.ts +4 -0
- package/dist/types/contracts/housePrices/getLatestPrice.d.ts +1 -1
- package/dist/types/contracts/indexToken/getNextRandomNFT.d.ts +7 -0
- package/dist/types/contracts/indexToken/redeemNFT.d.ts +4 -0
- package/dist/types/nfts/getAllTokens.d.ts +7 -0
- package/dist/types/nfts/getBaseUri.d.ts +4 -0
- package/dist/types/nfts/getMintFeePercentage.d.ts +4 -0
- package/dist/types/nfts/getMintPrice.d.ts +7 -0
- package/dist/types/nfts/getTokenURI.d.ts +4 -0
- package/dist/types/nfts/getTokensByOwner.d.ts +10 -0
- package/dist/types/nfts/getTotalPropertiesCount.d.ts +4 -0
- package/dist/types/nfts/totalNFTSupply.d.ts +4 -0
- package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +1 -1
- package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +4 -0
- package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +4 -0
- package/dist/types/pools/lendingPool/claimReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/closeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/getAllUserData.d.ts +16 -0
- package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +11 -0
- package/dist/types/pools/lendingPool/getHealthFactor.d.ts +11 -0
- package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +2 -1
- package/dist/types/pools/lendingPool/getPendingReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/getPositionDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionView.d.ts +27 -0
- package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +11 -0
- package/dist/types/pools/lendingPool/initializeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +2 -2
- package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +1 -1
- package/dist/types/pools/stabilityPool/depositNFTToStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +1 -3
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +35 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/index.d.ts +3 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +156 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +446 -221
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +108 -20
- package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +6 -16
- package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +166 -0
- package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +811 -99
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +152 -148
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +29 -2
- package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +65 -51
- package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +187 -2
- package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +413 -19
- package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +40 -40
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IBaseCollector.d.ts +39 -0
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +317 -130
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +58 -22
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +5 -3
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +86 -0
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +83 -45
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +539 -54
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +92 -71
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +123 -27
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IIndexToken.d.ts +187 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +243 -17
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +37 -37
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseVault.d.ts +83 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +5 -1
- package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockVRFCoordinatorV2.d.ts +530 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolCollector.d.ts +156 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +557 -102
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLiquidityPool.d.ts +486 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts +35 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockCollectableUnderlying.d.ts +292 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/MockVault.d.ts +290 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/MockStringUtils.d.ts +25 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +171 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +571 -194
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +138 -54
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +5 -31
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +231 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +897 -64
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +128 -161
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +54 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +47 -29
- package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +317 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +525 -17
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +52 -52
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IBaseCollector__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +409 -90
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +59 -15
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +78 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +119 -39
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +547 -19
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +68 -67
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +119 -6
- package/dist/types/typechain-types/factories/{erc721a/contracts/IERC721A__factory.d.ts → contracts/interfaces/core/tokens/IIndexToken__factory.d.ts} +74 -215
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +274 -10
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +26 -26
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/{IMarketCreator__factory.d.ts → core/vaults/IBaseVault__factory.d.ts} +78 -42
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +16 -4
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +10 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockVRFCoordinatorV2__factory.d.ts +620 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +234 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +539 -77
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +795 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +68 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +451 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +525 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +40 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/index.d.ts +0 -1
- package/dist/types/typechain-types/index.d.ts +28 -10
- package/dist/types/utils/artifacts.d.ts +677 -39
- package/dist/types/utils/contracts.d.ts +4 -0
- package/dist/utils/artifacts.js +9 -0
- package/package.json +1 -1
- package/dist/nfts/getDepositedNFTs.js +0 -19
- package/dist/nfts/getOwnedNFTs.js +0 -34
- package/dist/types/nfts/addNewBatch.d.ts +0 -4
- package/dist/types/nfts/getCurrentBatchSize.d.ts +0 -4
- package/dist/types/nfts/getDepositedNFTs.d.ts +0 -7
- package/dist/types/nfts/getOwnedNFTs.d.ts +0 -7
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/MarketCreator.d.ts +0 -274
- package/dist/types/typechain-types/contracts/interfaces/IMarketCreator.d.ts +0 -85
- package/dist/types/typechain-types/contracts/mocks/core/collectors/MockFeeCollector.d.ts +0 -708
- package/dist/types/typechain-types/erc721a/contracts/IERC721A.d.ts +0 -242
- package/dist/types/typechain-types/erc721a/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/erc721a/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/MarketCreator__factory.d.ts +0 -405
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockFeeCollector__factory.d.ts +0 -985
- package/dist/types/typechain-types/factories/erc721a/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/erc721a/index.d.ts +0 -1
|
@@ -2,157 +2,197 @@ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, I
|
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
3
|
export declare namespace IFeeCollector {
|
|
4
4
|
type FeeTypeStruct = {
|
|
5
|
-
|
|
6
|
-
burnShare: BigNumberish;
|
|
7
|
-
repairShare: BigNumberish;
|
|
5
|
+
feeType: BytesLike;
|
|
8
6
|
treasuryShare: BigNumberish;
|
|
7
|
+
repairFundShare: BigNumberish;
|
|
8
|
+
burnShare: BigNumberish;
|
|
9
|
+
veRAACTokenShare: BigNumberish;
|
|
10
|
+
otherShare: BigNumberish;
|
|
9
11
|
};
|
|
10
12
|
type FeeTypeStructOutput = [
|
|
11
|
-
|
|
13
|
+
feeType: string,
|
|
14
|
+
treasuryShare: bigint,
|
|
15
|
+
repairFundShare: bigint,
|
|
12
16
|
burnShare: bigint,
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
veRAACTokenShare: bigint,
|
|
18
|
+
otherShare: bigint
|
|
15
19
|
] & {
|
|
16
|
-
|
|
17
|
-
burnShare: bigint;
|
|
18
|
-
repairShare: bigint;
|
|
20
|
+
feeType: string;
|
|
19
21
|
treasuryShare: bigint;
|
|
22
|
+
repairFundShare: bigint;
|
|
23
|
+
burnShare: bigint;
|
|
24
|
+
veRAACTokenShare: bigint;
|
|
25
|
+
otherShare: bigint;
|
|
20
26
|
};
|
|
21
|
-
type
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
vaultFees: BigNumberish;
|
|
28
|
-
swapTaxes: BigNumberish;
|
|
29
|
-
nftRoyalties: BigNumberish;
|
|
27
|
+
type CollectedFeeForTypeStruct = {
|
|
28
|
+
treasuryAmount: BigNumberish;
|
|
29
|
+
repairFundAmount: BigNumberish;
|
|
30
|
+
burnAmount: BigNumberish;
|
|
31
|
+
veRAACTokenAmount: BigNumberish;
|
|
32
|
+
otherAmount: BigNumberish;
|
|
30
33
|
};
|
|
31
|
-
type
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
vaultFees: bigint,
|
|
38
|
-
swapTaxes: bigint,
|
|
39
|
-
nftRoyalties: bigint
|
|
34
|
+
type CollectedFeeForTypeStructOutput = [
|
|
35
|
+
treasuryAmount: bigint,
|
|
36
|
+
repairFundAmount: bigint,
|
|
37
|
+
burnAmount: bigint,
|
|
38
|
+
veRAACTokenAmount: bigint,
|
|
39
|
+
otherAmount: bigint
|
|
40
40
|
] & {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
vaultFees: bigint;
|
|
47
|
-
swapTaxes: bigint;
|
|
48
|
-
nftRoyalties: bigint;
|
|
41
|
+
treasuryAmount: bigint;
|
|
42
|
+
repairFundAmount: bigint;
|
|
43
|
+
burnAmount: bigint;
|
|
44
|
+
veRAACTokenAmount: bigint;
|
|
45
|
+
otherAmount: bigint;
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
export interface FeeCollectorInterface extends Interface {
|
|
52
|
-
getFunction(nameOrSignature: "BASIS_POINTS" | "DEFAULT_ADMIN_ROLE" | "DISTRIBUTOR_ROLE" | "EMERGENCY_ROLE" | "FEE_MANAGER_ROLE" | "MAX_FEE_AMOUNT" | "TREASURY_UPDATE_DELAY" | "
|
|
53
|
-
getEvent(nameOrSignatureOrTopic: "
|
|
49
|
+
getFunction(nameOrSignature: "BASIS_POINTS" | "BURN" | "DEFAULT_ADMIN_ROLE" | "DISTRIBUTOR_ROLE" | "EMERGENCY_ROLE" | "FEE_MANAGER_ROLE" | "MAX_FEE_AMOUNT" | "OTHER" | "REPAIR_FUND" | "ROYALTY_FEE" | "TREASURY" | "TREASURY_UPDATE_DELAY" | "VERAAC" | "addClaimableToken" | "addFeeType" | "burnAddress" | "claimCollectorRewards" | "claimNFTUnderlying" | "collectFee" | "collectedFees" | "collectedFeesByToken" | "distributeFees" | "distributionPeriod" | "emergencyWithdraw" | "feeTypes" | "getCollectedFees" | "getCollectedFeesByToken" | "getCollectedFeesByTokenAndFeeType" | "getFeeType" | "getFeeTypes" | "getRoleAdmin" | "getSupportedTokens" | "getTargetAddress" | "getTargetAmount" | "grantRole" | "hasRole" | "isTokenSupported" | "otherAddress" | "pause" | "paused" | "pendingRepairFund" | "pendingTreasury" | "removeClaimableToken" | "removeFeeType" | "renounceRole" | "repairFundAddress" | "revokeRole" | "setTargetAddress" | "supportsInterface" | "totalDistributed" | "treasuryAddress" | "unpause" | "updateFeeType" | "userRewards" | "veRAACAddress"): FunctionFragment;
|
|
50
|
+
getEvent(nameOrSignatureOrTopic: "CollectorRewardsClaimed" | "CollectorUnderlyingClaimed" | "EmergencyWithdrawal" | "FeeCollected" | "FeeDistributed" | "FeeTypeAdded" | "FeeTypeUpdated" | "Paused" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TargetAddressUpdated" | "TokenAdded" | "TokenRemoved" | "Unpaused"): EventFragment;
|
|
54
51
|
encodeFunctionData(functionFragment: "BASIS_POINTS", values?: undefined): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "BURN", values?: undefined): string;
|
|
55
53
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
56
54
|
encodeFunctionData(functionFragment: "DISTRIBUTOR_ROLE", values?: undefined): string;
|
|
57
55
|
encodeFunctionData(functionFragment: "EMERGENCY_ROLE", values?: undefined): string;
|
|
58
56
|
encodeFunctionData(functionFragment: "FEE_MANAGER_ROLE", values?: undefined): string;
|
|
59
57
|
encodeFunctionData(functionFragment: "MAX_FEE_AMOUNT", values?: undefined): string;
|
|
58
|
+
encodeFunctionData(functionFragment: "OTHER", values?: undefined): string;
|
|
59
|
+
encodeFunctionData(functionFragment: "REPAIR_FUND", values?: undefined): string;
|
|
60
|
+
encodeFunctionData(functionFragment: "ROYALTY_FEE", values?: undefined): string;
|
|
61
|
+
encodeFunctionData(functionFragment: "TREASURY", values?: undefined): string;
|
|
60
62
|
encodeFunctionData(functionFragment: "TREASURY_UPDATE_DELAY", values?: undefined): string;
|
|
61
|
-
encodeFunctionData(functionFragment: "
|
|
62
|
-
encodeFunctionData(functionFragment: "
|
|
63
|
-
encodeFunctionData(functionFragment: "
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
encodeFunctionData(functionFragment: "VERAAC", values?: undefined): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "addClaimableToken", values: [AddressLike]): string;
|
|
65
|
+
encodeFunctionData(functionFragment: "addFeeType", values: [
|
|
66
|
+
BytesLike,
|
|
67
|
+
BigNumberish,
|
|
68
|
+
BigNumberish,
|
|
69
|
+
BigNumberish,
|
|
70
|
+
BigNumberish,
|
|
71
|
+
BigNumberish
|
|
72
|
+
]): string;
|
|
73
|
+
encodeFunctionData(functionFragment: "burnAddress", values?: undefined): string;
|
|
74
|
+
encodeFunctionData(functionFragment: "claimCollectorRewards", values: [AddressLike, AddressLike, BytesLike]): string;
|
|
75
|
+
encodeFunctionData(functionFragment: "claimNFTUnderlying", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
76
|
+
encodeFunctionData(functionFragment: "collectFee", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
77
|
+
encodeFunctionData(functionFragment: "collectedFees", values: [BytesLike]): string;
|
|
78
|
+
encodeFunctionData(functionFragment: "collectedFeesByToken", values: [AddressLike, BytesLike]): string;
|
|
79
|
+
encodeFunctionData(functionFragment: "distributeFees", values: [BytesLike, BytesLike, AddressLike]): string;
|
|
67
80
|
encodeFunctionData(functionFragment: "distributionPeriod", values?: undefined): string;
|
|
68
|
-
encodeFunctionData(functionFragment: "emergencyWithdraw", values: [AddressLike]): string;
|
|
69
|
-
encodeFunctionData(functionFragment: "feeTypes", values: [
|
|
70
|
-
encodeFunctionData(functionFragment: "getCollectedFees", values
|
|
71
|
-
encodeFunctionData(functionFragment: "
|
|
72
|
-
encodeFunctionData(functionFragment: "
|
|
81
|
+
encodeFunctionData(functionFragment: "emergencyWithdraw", values: [AddressLike, AddressLike]): string;
|
|
82
|
+
encodeFunctionData(functionFragment: "feeTypes", values: [BytesLike]): string;
|
|
83
|
+
encodeFunctionData(functionFragment: "getCollectedFees", values: [AddressLike, BytesLike]): string;
|
|
84
|
+
encodeFunctionData(functionFragment: "getCollectedFeesByToken", values: [AddressLike]): string;
|
|
85
|
+
encodeFunctionData(functionFragment: "getCollectedFeesByTokenAndFeeType", values: [AddressLike, BytesLike]): string;
|
|
86
|
+
encodeFunctionData(functionFragment: "getFeeType", values: [BytesLike]): string;
|
|
87
|
+
encodeFunctionData(functionFragment: "getFeeTypes", values?: undefined): string;
|
|
73
88
|
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
89
|
+
encodeFunctionData(functionFragment: "getSupportedTokens", values?: undefined): string;
|
|
90
|
+
encodeFunctionData(functionFragment: "getTargetAddress", values: [BytesLike]): string;
|
|
91
|
+
encodeFunctionData(functionFragment: "getTargetAmount", values: [BytesLike, BytesLike, AddressLike]): string;
|
|
74
92
|
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
75
93
|
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
94
|
+
encodeFunctionData(functionFragment: "isTokenSupported", values: [AddressLike]): string;
|
|
95
|
+
encodeFunctionData(functionFragment: "otherAddress", values?: undefined): string;
|
|
76
96
|
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
|
|
77
97
|
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
78
98
|
encodeFunctionData(functionFragment: "pendingRepairFund", values?: undefined): string;
|
|
79
99
|
encodeFunctionData(functionFragment: "pendingTreasury", values?: undefined): string;
|
|
80
|
-
encodeFunctionData(functionFragment: "
|
|
100
|
+
encodeFunctionData(functionFragment: "removeClaimableToken", values: [AddressLike]): string;
|
|
101
|
+
encodeFunctionData(functionFragment: "removeFeeType", values: [BytesLike]): string;
|
|
81
102
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
82
|
-
encodeFunctionData(functionFragment: "
|
|
103
|
+
encodeFunctionData(functionFragment: "repairFundAddress", values?: undefined): string;
|
|
83
104
|
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
84
|
-
encodeFunctionData(functionFragment: "
|
|
85
|
-
encodeFunctionData(functionFragment: "setTreasury", values: [AddressLike]): string;
|
|
105
|
+
encodeFunctionData(functionFragment: "setTargetAddress", values: [BytesLike, AddressLike]): string;
|
|
86
106
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
87
107
|
encodeFunctionData(functionFragment: "totalDistributed", values?: undefined): string;
|
|
88
|
-
encodeFunctionData(functionFragment: "
|
|
108
|
+
encodeFunctionData(functionFragment: "treasuryAddress", values?: undefined): string;
|
|
89
109
|
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
|
|
90
|
-
encodeFunctionData(functionFragment: "updateFeeType", values: [
|
|
110
|
+
encodeFunctionData(functionFragment: "updateFeeType", values: [BytesLike, IFeeCollector.FeeTypeStruct]): string;
|
|
91
111
|
encodeFunctionData(functionFragment: "userRewards", values: [AddressLike]): string;
|
|
92
|
-
encodeFunctionData(functionFragment: "
|
|
112
|
+
encodeFunctionData(functionFragment: "veRAACAddress", values?: undefined): string;
|
|
93
113
|
decodeFunctionResult(functionFragment: "BASIS_POINTS", data: BytesLike): Result;
|
|
114
|
+
decodeFunctionResult(functionFragment: "BURN", data: BytesLike): Result;
|
|
94
115
|
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
95
116
|
decodeFunctionResult(functionFragment: "DISTRIBUTOR_ROLE", data: BytesLike): Result;
|
|
96
117
|
decodeFunctionResult(functionFragment: "EMERGENCY_ROLE", data: BytesLike): Result;
|
|
97
118
|
decodeFunctionResult(functionFragment: "FEE_MANAGER_ROLE", data: BytesLike): Result;
|
|
98
119
|
decodeFunctionResult(functionFragment: "MAX_FEE_AMOUNT", data: BytesLike): Result;
|
|
120
|
+
decodeFunctionResult(functionFragment: "OTHER", data: BytesLike): Result;
|
|
121
|
+
decodeFunctionResult(functionFragment: "REPAIR_FUND", data: BytesLike): Result;
|
|
122
|
+
decodeFunctionResult(functionFragment: "ROYALTY_FEE", data: BytesLike): Result;
|
|
123
|
+
decodeFunctionResult(functionFragment: "TREASURY", data: BytesLike): Result;
|
|
99
124
|
decodeFunctionResult(functionFragment: "TREASURY_UPDATE_DELAY", data: BytesLike): Result;
|
|
100
|
-
decodeFunctionResult(functionFragment: "
|
|
101
|
-
decodeFunctionResult(functionFragment: "
|
|
102
|
-
decodeFunctionResult(functionFragment: "
|
|
125
|
+
decodeFunctionResult(functionFragment: "VERAAC", data: BytesLike): Result;
|
|
126
|
+
decodeFunctionResult(functionFragment: "addClaimableToken", data: BytesLike): Result;
|
|
127
|
+
decodeFunctionResult(functionFragment: "addFeeType", data: BytesLike): Result;
|
|
128
|
+
decodeFunctionResult(functionFragment: "burnAddress", data: BytesLike): Result;
|
|
129
|
+
decodeFunctionResult(functionFragment: "claimCollectorRewards", data: BytesLike): Result;
|
|
130
|
+
decodeFunctionResult(functionFragment: "claimNFTUnderlying", data: BytesLike): Result;
|
|
103
131
|
decodeFunctionResult(functionFragment: "collectFee", data: BytesLike): Result;
|
|
104
132
|
decodeFunctionResult(functionFragment: "collectedFees", data: BytesLike): Result;
|
|
105
|
-
decodeFunctionResult(functionFragment: "
|
|
133
|
+
decodeFunctionResult(functionFragment: "collectedFeesByToken", data: BytesLike): Result;
|
|
134
|
+
decodeFunctionResult(functionFragment: "distributeFees", data: BytesLike): Result;
|
|
106
135
|
decodeFunctionResult(functionFragment: "distributionPeriod", data: BytesLike): Result;
|
|
107
136
|
decodeFunctionResult(functionFragment: "emergencyWithdraw", data: BytesLike): Result;
|
|
108
137
|
decodeFunctionResult(functionFragment: "feeTypes", data: BytesLike): Result;
|
|
109
138
|
decodeFunctionResult(functionFragment: "getCollectedFees", data: BytesLike): Result;
|
|
139
|
+
decodeFunctionResult(functionFragment: "getCollectedFeesByToken", data: BytesLike): Result;
|
|
140
|
+
decodeFunctionResult(functionFragment: "getCollectedFeesByTokenAndFeeType", data: BytesLike): Result;
|
|
110
141
|
decodeFunctionResult(functionFragment: "getFeeType", data: BytesLike): Result;
|
|
111
|
-
decodeFunctionResult(functionFragment: "
|
|
142
|
+
decodeFunctionResult(functionFragment: "getFeeTypes", data: BytesLike): Result;
|
|
112
143
|
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
144
|
+
decodeFunctionResult(functionFragment: "getSupportedTokens", data: BytesLike): Result;
|
|
145
|
+
decodeFunctionResult(functionFragment: "getTargetAddress", data: BytesLike): Result;
|
|
146
|
+
decodeFunctionResult(functionFragment: "getTargetAmount", data: BytesLike): Result;
|
|
113
147
|
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
114
148
|
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
149
|
+
decodeFunctionResult(functionFragment: "isTokenSupported", data: BytesLike): Result;
|
|
150
|
+
decodeFunctionResult(functionFragment: "otherAddress", data: BytesLike): Result;
|
|
115
151
|
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
|
|
116
152
|
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
|
|
117
153
|
decodeFunctionResult(functionFragment: "pendingRepairFund", data: BytesLike): Result;
|
|
118
154
|
decodeFunctionResult(functionFragment: "pendingTreasury", data: BytesLike): Result;
|
|
119
|
-
decodeFunctionResult(functionFragment: "
|
|
155
|
+
decodeFunctionResult(functionFragment: "removeClaimableToken", data: BytesLike): Result;
|
|
156
|
+
decodeFunctionResult(functionFragment: "removeFeeType", data: BytesLike): Result;
|
|
120
157
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
121
|
-
decodeFunctionResult(functionFragment: "
|
|
158
|
+
decodeFunctionResult(functionFragment: "repairFundAddress", data: BytesLike): Result;
|
|
122
159
|
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
123
|
-
decodeFunctionResult(functionFragment: "
|
|
124
|
-
decodeFunctionResult(functionFragment: "setTreasury", data: BytesLike): Result;
|
|
160
|
+
decodeFunctionResult(functionFragment: "setTargetAddress", data: BytesLike): Result;
|
|
125
161
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
126
162
|
decodeFunctionResult(functionFragment: "totalDistributed", data: BytesLike): Result;
|
|
127
|
-
decodeFunctionResult(functionFragment: "
|
|
163
|
+
decodeFunctionResult(functionFragment: "treasuryAddress", data: BytesLike): Result;
|
|
128
164
|
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
|
|
129
165
|
decodeFunctionResult(functionFragment: "updateFeeType", data: BytesLike): Result;
|
|
130
166
|
decodeFunctionResult(functionFragment: "userRewards", data: BytesLike): Result;
|
|
131
|
-
decodeFunctionResult(functionFragment: "
|
|
167
|
+
decodeFunctionResult(functionFragment: "veRAACAddress", data: BytesLike): Result;
|
|
132
168
|
}
|
|
133
|
-
export declare namespace
|
|
169
|
+
export declare namespace CollectorRewardsClaimedEvent {
|
|
134
170
|
type InputTuple = [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
type OutputTuple = [
|
|
139
|
-
feeType: bigint,
|
|
140
|
-
newParameters: IFeeCollector.FeeTypeStructOutput
|
|
171
|
+
token: AddressLike,
|
|
172
|
+
target: AddressLike,
|
|
173
|
+
amount: BigNumberish
|
|
141
174
|
];
|
|
175
|
+
type OutputTuple = [token: string, target: string, amount: bigint];
|
|
142
176
|
interface OutputObject {
|
|
143
|
-
|
|
144
|
-
|
|
177
|
+
token: string;
|
|
178
|
+
target: string;
|
|
179
|
+
amount: bigint;
|
|
145
180
|
}
|
|
146
181
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
147
182
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
148
183
|
type Log = TypedEventLog<Event>;
|
|
149
184
|
type LogDescription = TypedLogDescription<Event>;
|
|
150
185
|
}
|
|
151
|
-
export declare namespace
|
|
152
|
-
type InputTuple = [
|
|
153
|
-
|
|
186
|
+
export declare namespace CollectorUnderlyingClaimedEvent {
|
|
187
|
+
type InputTuple = [
|
|
188
|
+
token: AddressLike,
|
|
189
|
+
target: AddressLike,
|
|
190
|
+
amount: BigNumberish
|
|
191
|
+
];
|
|
192
|
+
type OutputTuple = [token: string, target: string, amount: bigint];
|
|
154
193
|
interface OutputObject {
|
|
155
194
|
token: string;
|
|
195
|
+
target: string;
|
|
156
196
|
amount: bigint;
|
|
157
197
|
}
|
|
158
198
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -160,11 +200,11 @@ export declare namespace EmergencyWithdrawalEvent {
|
|
|
160
200
|
type Log = TypedEventLog<Event>;
|
|
161
201
|
type LogDescription = TypedLogDescription<Event>;
|
|
162
202
|
}
|
|
163
|
-
export declare namespace
|
|
164
|
-
type InputTuple = [
|
|
165
|
-
type OutputTuple = [
|
|
203
|
+
export declare namespace EmergencyWithdrawalEvent {
|
|
204
|
+
type InputTuple = [token: AddressLike, amount: BigNumberish];
|
|
205
|
+
type OutputTuple = [token: string, amount: bigint];
|
|
166
206
|
interface OutputObject {
|
|
167
|
-
|
|
207
|
+
token: string;
|
|
168
208
|
amount: bigint;
|
|
169
209
|
}
|
|
170
210
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -172,97 +212,76 @@ export declare namespace FeeCollectedEvent {
|
|
|
172
212
|
type Log = TypedEventLog<Event>;
|
|
173
213
|
type LogDescription = TypedLogDescription<Event>;
|
|
174
214
|
}
|
|
175
|
-
export declare namespace
|
|
176
|
-
type InputTuple = [
|
|
177
|
-
|
|
178
|
-
burnAmount: BigNumberish,
|
|
179
|
-
repairAmount: BigNumberish,
|
|
180
|
-
treasuryAmount: BigNumberish
|
|
181
|
-
];
|
|
182
|
-
type OutputTuple = [
|
|
183
|
-
veRAACAmount: bigint,
|
|
184
|
-
burnAmount: bigint,
|
|
185
|
-
repairAmount: bigint,
|
|
186
|
-
treasuryAmount: bigint
|
|
187
|
-
];
|
|
215
|
+
export declare namespace FeeCollectedEvent {
|
|
216
|
+
type InputTuple = [feeType: BytesLike, amount: BigNumberish];
|
|
217
|
+
type OutputTuple = [feeType: string, amount: bigint];
|
|
188
218
|
interface OutputObject {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
repairAmount: bigint;
|
|
192
|
-
treasuryAmount: bigint;
|
|
219
|
+
feeType: string;
|
|
220
|
+
amount: bigint;
|
|
193
221
|
}
|
|
194
222
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
195
223
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
196
224
|
type Log = TypedEventLog<Event>;
|
|
197
225
|
type LogDescription = TypedLogDescription<Event>;
|
|
198
226
|
}
|
|
199
|
-
export declare namespace
|
|
227
|
+
export declare namespace FeeDistributedEvent {
|
|
200
228
|
type InputTuple = [
|
|
201
|
-
feeType:
|
|
202
|
-
|
|
229
|
+
feeType: BytesLike,
|
|
230
|
+
target: BytesLike,
|
|
231
|
+
token: AddressLike,
|
|
232
|
+
amount: BigNumberish
|
|
203
233
|
];
|
|
204
234
|
type OutputTuple = [
|
|
205
|
-
feeType:
|
|
206
|
-
|
|
235
|
+
feeType: string,
|
|
236
|
+
target: string,
|
|
237
|
+
token: string,
|
|
238
|
+
amount: bigint
|
|
207
239
|
];
|
|
208
240
|
interface OutputObject {
|
|
209
|
-
feeType:
|
|
210
|
-
|
|
241
|
+
feeType: string;
|
|
242
|
+
target: string;
|
|
243
|
+
token: string;
|
|
244
|
+
amount: bigint;
|
|
211
245
|
}
|
|
212
246
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
213
247
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
214
248
|
type Log = TypedEventLog<Event>;
|
|
215
249
|
type LogDescription = TypedLogDescription<Event>;
|
|
216
250
|
}
|
|
217
|
-
export declare namespace
|
|
218
|
-
type InputTuple = [
|
|
219
|
-
type OutputTuple = [
|
|
251
|
+
export declare namespace FeeTypeAddedEvent {
|
|
252
|
+
type InputTuple = [feeType: BytesLike];
|
|
253
|
+
type OutputTuple = [feeType: string];
|
|
220
254
|
interface OutputObject {
|
|
221
|
-
|
|
255
|
+
feeType: string;
|
|
222
256
|
}
|
|
223
257
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
224
258
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
225
259
|
type Log = TypedEventLog<Event>;
|
|
226
260
|
type LogDescription = TypedLogDescription<Event>;
|
|
227
261
|
}
|
|
228
|
-
export declare namespace
|
|
262
|
+
export declare namespace FeeTypeUpdatedEvent {
|
|
229
263
|
type InputTuple = [
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
initialValue: BigNumberish
|
|
264
|
+
feeType: BytesLike,
|
|
265
|
+
newFee: IFeeCollector.FeeTypeStruct
|
|
233
266
|
];
|
|
234
267
|
type OutputTuple = [
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
initialValue: bigint
|
|
268
|
+
feeType: string,
|
|
269
|
+
newFee: IFeeCollector.FeeTypeStructOutput
|
|
238
270
|
];
|
|
239
271
|
interface OutputObject {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
initialValue: bigint;
|
|
243
|
-
}
|
|
244
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
245
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
246
|
-
type Log = TypedEventLog<Event>;
|
|
247
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
248
|
-
}
|
|
249
|
-
export declare namespace RepairFundUpdatedEvent {
|
|
250
|
-
type InputTuple = [newRepairFund: AddressLike];
|
|
251
|
-
type OutputTuple = [newRepairFund: string];
|
|
252
|
-
interface OutputObject {
|
|
253
|
-
newRepairFund: string;
|
|
272
|
+
feeType: string;
|
|
273
|
+
newFee: IFeeCollector.FeeTypeStructOutput;
|
|
254
274
|
}
|
|
255
275
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
256
276
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
257
277
|
type Log = TypedEventLog<Event>;
|
|
258
278
|
type LogDescription = TypedLogDescription<Event>;
|
|
259
279
|
}
|
|
260
|
-
export declare namespace
|
|
261
|
-
type InputTuple = [
|
|
262
|
-
type OutputTuple = [
|
|
280
|
+
export declare namespace PausedEvent {
|
|
281
|
+
type InputTuple = [account: AddressLike];
|
|
282
|
+
type OutputTuple = [account: string];
|
|
263
283
|
interface OutputObject {
|
|
264
|
-
|
|
265
|
-
amount: bigint;
|
|
284
|
+
account: string;
|
|
266
285
|
}
|
|
267
286
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
268
287
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -324,11 +343,34 @@ export declare namespace RoleRevokedEvent {
|
|
|
324
343
|
type Log = TypedEventLog<Event>;
|
|
325
344
|
type LogDescription = TypedLogDescription<Event>;
|
|
326
345
|
}
|
|
327
|
-
export declare namespace
|
|
328
|
-
type InputTuple = [
|
|
329
|
-
type OutputTuple = [
|
|
346
|
+
export declare namespace TargetAddressUpdatedEvent {
|
|
347
|
+
type InputTuple = [target: BytesLike, newAddress: AddressLike];
|
|
348
|
+
type OutputTuple = [target: string, newAddress: string];
|
|
330
349
|
interface OutputObject {
|
|
331
|
-
|
|
350
|
+
target: string;
|
|
351
|
+
newAddress: string;
|
|
352
|
+
}
|
|
353
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
354
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
355
|
+
type Log = TypedEventLog<Event>;
|
|
356
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
357
|
+
}
|
|
358
|
+
export declare namespace TokenAddedEvent {
|
|
359
|
+
type InputTuple = [token: AddressLike];
|
|
360
|
+
type OutputTuple = [token: string];
|
|
361
|
+
interface OutputObject {
|
|
362
|
+
token: string;
|
|
363
|
+
}
|
|
364
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
365
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
366
|
+
type Log = TypedEventLog<Event>;
|
|
367
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
368
|
+
}
|
|
369
|
+
export declare namespace TokenRemovedEvent {
|
|
370
|
+
type InputTuple = [token: AddressLike];
|
|
371
|
+
type OutputTuple = [token: string];
|
|
372
|
+
interface OutputObject {
|
|
373
|
+
token: string;
|
|
332
374
|
}
|
|
333
375
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
334
376
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -360,48 +402,99 @@ export interface FeeCollector extends BaseContract {
|
|
|
360
402
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
361
403
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
362
404
|
BASIS_POINTS: TypedContractMethod<[], [bigint], "view">;
|
|
405
|
+
BURN: TypedContractMethod<[], [string], "view">;
|
|
363
406
|
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
364
407
|
DISTRIBUTOR_ROLE: TypedContractMethod<[], [string], "view">;
|
|
365
408
|
EMERGENCY_ROLE: TypedContractMethod<[], [string], "view">;
|
|
366
409
|
FEE_MANAGER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
367
410
|
MAX_FEE_AMOUNT: TypedContractMethod<[], [bigint], "view">;
|
|
411
|
+
OTHER: TypedContractMethod<[], [string], "view">;
|
|
412
|
+
REPAIR_FUND: TypedContractMethod<[], [string], "view">;
|
|
413
|
+
ROYALTY_FEE: TypedContractMethod<[], [string], "view">;
|
|
414
|
+
TREASURY: TypedContractMethod<[], [string], "view">;
|
|
368
415
|
TREASURY_UPDATE_DELAY: TypedContractMethod<[], [bigint], "view">;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
user: AddressLike
|
|
416
|
+
VERAAC: TypedContractMethod<[], [string], "view">;
|
|
417
|
+
addClaimableToken: TypedContractMethod<[
|
|
418
|
+
token: AddressLike
|
|
373
419
|
], [
|
|
374
|
-
|
|
420
|
+
void
|
|
421
|
+
], "nonpayable">;
|
|
422
|
+
addFeeType: TypedContractMethod<[
|
|
423
|
+
feeType: BytesLike,
|
|
424
|
+
treasuryShare: BigNumberish,
|
|
425
|
+
repairFundShare: BigNumberish,
|
|
426
|
+
burnShare: BigNumberish,
|
|
427
|
+
veRAACTokenShare: BigNumberish,
|
|
428
|
+
otherShare: BigNumberish
|
|
429
|
+
], [
|
|
430
|
+
boolean
|
|
431
|
+
], "nonpayable">;
|
|
432
|
+
burnAddress: TypedContractMethod<[], [string], "view">;
|
|
433
|
+
claimCollectorRewards: TypedContractMethod<[
|
|
434
|
+
token: AddressLike,
|
|
435
|
+
target: AddressLike,
|
|
436
|
+
feeType: BytesLike
|
|
437
|
+
], [
|
|
438
|
+
boolean
|
|
439
|
+
], "nonpayable">;
|
|
440
|
+
claimNFTUnderlying: TypedContractMethod<[
|
|
441
|
+
token: AddressLike,
|
|
442
|
+
target: AddressLike,
|
|
443
|
+
amount: BigNumberish,
|
|
444
|
+
feeType: BytesLike
|
|
445
|
+
], [
|
|
446
|
+
boolean
|
|
375
447
|
], "nonpayable">;
|
|
376
448
|
collectFee: TypedContractMethod<[
|
|
449
|
+
token: AddressLike,
|
|
450
|
+
target: AddressLike,
|
|
377
451
|
amount: BigNumberish,
|
|
378
|
-
feeType:
|
|
452
|
+
feeType: BytesLike
|
|
379
453
|
], [
|
|
380
454
|
boolean
|
|
381
455
|
], "nonpayable">;
|
|
382
456
|
collectedFees: TypedContractMethod<[
|
|
457
|
+
arg0: BytesLike
|
|
383
458
|
], [
|
|
384
459
|
[
|
|
385
460
|
bigint,
|
|
386
461
|
bigint,
|
|
387
462
|
bigint,
|
|
463
|
+
bigint,
|
|
464
|
+
bigint
|
|
465
|
+
] & {
|
|
466
|
+
treasuryAmount: bigint;
|
|
467
|
+
repairFundAmount: bigint;
|
|
468
|
+
burnAmount: bigint;
|
|
469
|
+
veRAACTokenAmount: bigint;
|
|
470
|
+
otherAmount: bigint;
|
|
471
|
+
}
|
|
472
|
+
], "view">;
|
|
473
|
+
collectedFeesByToken: TypedContractMethod<[
|
|
474
|
+
arg0: AddressLike,
|
|
475
|
+
arg1: BytesLike
|
|
476
|
+
], [
|
|
477
|
+
[
|
|
388
478
|
bigint,
|
|
389
479
|
bigint,
|
|
390
480
|
bigint,
|
|
391
481
|
bigint,
|
|
392
482
|
bigint
|
|
393
483
|
] & {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
vaultFees: bigint;
|
|
400
|
-
swapTaxes: bigint;
|
|
401
|
-
nftRoyalties: bigint;
|
|
484
|
+
treasuryAmount: bigint;
|
|
485
|
+
repairFundAmount: bigint;
|
|
486
|
+
burnAmount: bigint;
|
|
487
|
+
veRAACTokenAmount: bigint;
|
|
488
|
+
otherAmount: bigint;
|
|
402
489
|
}
|
|
403
490
|
], "view">;
|
|
404
|
-
|
|
491
|
+
distributeFees: TypedContractMethod<[
|
|
492
|
+
feeType: BytesLike,
|
|
493
|
+
target: BytesLike,
|
|
494
|
+
token: AddressLike
|
|
495
|
+
], [
|
|
496
|
+
void
|
|
497
|
+
], "nonpayable">;
|
|
405
498
|
distributionPeriod: TypedContractMethod<[
|
|
406
499
|
], [
|
|
407
500
|
[
|
|
@@ -423,36 +516,66 @@ export interface FeeCollector extends BaseContract {
|
|
|
423
516
|
}
|
|
424
517
|
], "view">;
|
|
425
518
|
emergencyWithdraw: TypedContractMethod<[
|
|
426
|
-
token: AddressLike
|
|
519
|
+
token: AddressLike,
|
|
520
|
+
recipient: AddressLike
|
|
427
521
|
], [
|
|
428
522
|
void
|
|
429
523
|
], "nonpayable">;
|
|
430
524
|
feeTypes: TypedContractMethod<[
|
|
431
|
-
arg0:
|
|
525
|
+
arg0: BytesLike
|
|
432
526
|
], [
|
|
433
527
|
[
|
|
528
|
+
string,
|
|
529
|
+
bigint,
|
|
434
530
|
bigint,
|
|
435
531
|
bigint,
|
|
436
532
|
bigint,
|
|
437
533
|
bigint
|
|
438
534
|
] & {
|
|
439
|
-
|
|
440
|
-
burnShare: bigint;
|
|
441
|
-
repairShare: bigint;
|
|
535
|
+
feeType: string;
|
|
442
536
|
treasuryShare: bigint;
|
|
537
|
+
repairFundShare: bigint;
|
|
538
|
+
burnShare: bigint;
|
|
539
|
+
veRAACTokenShare: bigint;
|
|
540
|
+
otherShare: bigint;
|
|
443
541
|
}
|
|
444
542
|
], "view">;
|
|
445
543
|
getCollectedFees: TypedContractMethod<[
|
|
544
|
+
token: AddressLike,
|
|
545
|
+
feeType: BytesLike
|
|
446
546
|
], [
|
|
447
|
-
IFeeCollector.
|
|
547
|
+
IFeeCollector.CollectedFeeForTypeStructOutput
|
|
548
|
+
], "view">;
|
|
549
|
+
getCollectedFeesByToken: TypedContractMethod<[
|
|
550
|
+
token: AddressLike
|
|
551
|
+
], [
|
|
552
|
+
IFeeCollector.CollectedFeeForTypeStructOutput[]
|
|
553
|
+
], "view">;
|
|
554
|
+
getCollectedFeesByTokenAndFeeType: TypedContractMethod<[
|
|
555
|
+
token: AddressLike,
|
|
556
|
+
feeType: BytesLike
|
|
557
|
+
], [
|
|
558
|
+
IFeeCollector.CollectedFeeForTypeStructOutput
|
|
448
559
|
], "view">;
|
|
449
560
|
getFeeType: TypedContractMethod<[
|
|
450
|
-
feeType:
|
|
561
|
+
feeType: BytesLike
|
|
451
562
|
], [
|
|
452
563
|
IFeeCollector.FeeTypeStructOutput
|
|
453
564
|
], "view">;
|
|
454
|
-
|
|
565
|
+
getFeeTypes: TypedContractMethod<[
|
|
566
|
+
], [
|
|
567
|
+
IFeeCollector.FeeTypeStructOutput[]
|
|
568
|
+
], "view">;
|
|
455
569
|
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
570
|
+
getSupportedTokens: TypedContractMethod<[], [string[]], "view">;
|
|
571
|
+
getTargetAddress: TypedContractMethod<[target: BytesLike], [string], "view">;
|
|
572
|
+
getTargetAmount: TypedContractMethod<[
|
|
573
|
+
feeType: BytesLike,
|
|
574
|
+
target: BytesLike,
|
|
575
|
+
token: AddressLike
|
|
576
|
+
], [
|
|
577
|
+
bigint
|
|
578
|
+
], "view">;
|
|
456
579
|
grantRole: TypedContractMethod<[
|
|
457
580
|
role: BytesLike,
|
|
458
581
|
account: AddressLike
|
|
@@ -465,6 +588,8 @@ export interface FeeCollector extends BaseContract {
|
|
|
465
588
|
], [
|
|
466
589
|
boolean
|
|
467
590
|
], "view">;
|
|
591
|
+
isTokenSupported: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
592
|
+
otherAddress: TypedContractMethod<[], [string], "view">;
|
|
468
593
|
pause: TypedContractMethod<[], [void], "nonpayable">;
|
|
469
594
|
paused: TypedContractMethod<[], [boolean], "view">;
|
|
470
595
|
pendingRepairFund: TypedContractMethod<[
|
|
@@ -481,27 +606,32 @@ export interface FeeCollector extends BaseContract {
|
|
|
481
606
|
effectiveTime: bigint;
|
|
482
607
|
}
|
|
483
608
|
], "view">;
|
|
484
|
-
|
|
609
|
+
removeClaimableToken: TypedContractMethod<[
|
|
610
|
+
token: AddressLike
|
|
611
|
+
], [
|
|
612
|
+
void
|
|
613
|
+
], "nonpayable">;
|
|
614
|
+
removeFeeType: TypedContractMethod<[
|
|
615
|
+
feeType: BytesLike
|
|
616
|
+
], [
|
|
617
|
+
void
|
|
618
|
+
], "nonpayable">;
|
|
485
619
|
renounceRole: TypedContractMethod<[
|
|
486
620
|
role: BytesLike,
|
|
487
621
|
callerConfirmation: AddressLike
|
|
488
622
|
], [
|
|
489
623
|
void
|
|
490
624
|
], "nonpayable">;
|
|
491
|
-
|
|
625
|
+
repairFundAddress: TypedContractMethod<[], [string], "view">;
|
|
492
626
|
revokeRole: TypedContractMethod<[
|
|
493
627
|
role: BytesLike,
|
|
494
628
|
account: AddressLike
|
|
495
629
|
], [
|
|
496
630
|
void
|
|
497
631
|
], "nonpayable">;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
void
|
|
502
|
-
], "nonpayable">;
|
|
503
|
-
setTreasury: TypedContractMethod<[
|
|
504
|
-
newTreasury: AddressLike
|
|
632
|
+
setTargetAddress: TypedContractMethod<[
|
|
633
|
+
target: BytesLike,
|
|
634
|
+
newAddress: AddressLike
|
|
505
635
|
], [
|
|
506
636
|
void
|
|
507
637
|
], "nonpayable">;
|
|
@@ -511,56 +641,107 @@ export interface FeeCollector extends BaseContract {
|
|
|
511
641
|
boolean
|
|
512
642
|
], "view">;
|
|
513
643
|
totalDistributed: TypedContractMethod<[], [bigint], "view">;
|
|
514
|
-
|
|
644
|
+
treasuryAddress: TypedContractMethod<[], [string], "view">;
|
|
515
645
|
unpause: TypedContractMethod<[], [void], "nonpayable">;
|
|
516
646
|
updateFeeType: TypedContractMethod<[
|
|
517
|
-
feeType:
|
|
647
|
+
feeType: BytesLike,
|
|
518
648
|
newFee: IFeeCollector.FeeTypeStruct
|
|
519
649
|
], [
|
|
520
650
|
void
|
|
521
651
|
], "nonpayable">;
|
|
522
652
|
userRewards: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
523
|
-
|
|
653
|
+
veRAACAddress: TypedContractMethod<[], [string], "view">;
|
|
524
654
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
525
655
|
getFunction(nameOrSignature: "BASIS_POINTS"): TypedContractMethod<[], [bigint], "view">;
|
|
656
|
+
getFunction(nameOrSignature: "BURN"): TypedContractMethod<[], [string], "view">;
|
|
526
657
|
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
527
658
|
getFunction(nameOrSignature: "DISTRIBUTOR_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
528
659
|
getFunction(nameOrSignature: "EMERGENCY_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
529
660
|
getFunction(nameOrSignature: "FEE_MANAGER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
530
661
|
getFunction(nameOrSignature: "MAX_FEE_AMOUNT"): TypedContractMethod<[], [bigint], "view">;
|
|
662
|
+
getFunction(nameOrSignature: "OTHER"): TypedContractMethod<[], [string], "view">;
|
|
663
|
+
getFunction(nameOrSignature: "REPAIR_FUND"): TypedContractMethod<[], [string], "view">;
|
|
664
|
+
getFunction(nameOrSignature: "ROYALTY_FEE"): TypedContractMethod<[], [string], "view">;
|
|
665
|
+
getFunction(nameOrSignature: "TREASURY"): TypedContractMethod<[], [string], "view">;
|
|
531
666
|
getFunction(nameOrSignature: "TREASURY_UPDATE_DELAY"): TypedContractMethod<[], [bigint], "view">;
|
|
532
|
-
getFunction(nameOrSignature: "
|
|
533
|
-
getFunction(nameOrSignature: "
|
|
534
|
-
getFunction(nameOrSignature: "
|
|
667
|
+
getFunction(nameOrSignature: "VERAAC"): TypedContractMethod<[], [string], "view">;
|
|
668
|
+
getFunction(nameOrSignature: "addClaimableToken"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
669
|
+
getFunction(nameOrSignature: "addFeeType"): TypedContractMethod<[
|
|
670
|
+
feeType: BytesLike,
|
|
671
|
+
treasuryShare: BigNumberish,
|
|
672
|
+
repairFundShare: BigNumberish,
|
|
673
|
+
burnShare: BigNumberish,
|
|
674
|
+
veRAACTokenShare: BigNumberish,
|
|
675
|
+
otherShare: BigNumberish
|
|
676
|
+
], [
|
|
677
|
+
boolean
|
|
678
|
+
], "nonpayable">;
|
|
679
|
+
getFunction(nameOrSignature: "burnAddress"): TypedContractMethod<[], [string], "view">;
|
|
680
|
+
getFunction(nameOrSignature: "claimCollectorRewards"): TypedContractMethod<[
|
|
681
|
+
token: AddressLike,
|
|
682
|
+
target: AddressLike,
|
|
683
|
+
feeType: BytesLike
|
|
684
|
+
], [
|
|
685
|
+
boolean
|
|
686
|
+
], "nonpayable">;
|
|
687
|
+
getFunction(nameOrSignature: "claimNFTUnderlying"): TypedContractMethod<[
|
|
688
|
+
token: AddressLike,
|
|
689
|
+
target: AddressLike,
|
|
690
|
+
amount: BigNumberish,
|
|
691
|
+
feeType: BytesLike
|
|
692
|
+
], [
|
|
693
|
+
boolean
|
|
694
|
+
], "nonpayable">;
|
|
535
695
|
getFunction(nameOrSignature: "collectFee"): TypedContractMethod<[
|
|
696
|
+
token: AddressLike,
|
|
697
|
+
target: AddressLike,
|
|
536
698
|
amount: BigNumberish,
|
|
537
|
-
feeType:
|
|
699
|
+
feeType: BytesLike
|
|
538
700
|
], [
|
|
539
701
|
boolean
|
|
540
702
|
], "nonpayable">;
|
|
541
703
|
getFunction(nameOrSignature: "collectedFees"): TypedContractMethod<[
|
|
704
|
+
arg0: BytesLike
|
|
542
705
|
], [
|
|
543
706
|
[
|
|
544
707
|
bigint,
|
|
545
708
|
bigint,
|
|
546
709
|
bigint,
|
|
710
|
+
bigint,
|
|
711
|
+
bigint
|
|
712
|
+
] & {
|
|
713
|
+
treasuryAmount: bigint;
|
|
714
|
+
repairFundAmount: bigint;
|
|
715
|
+
burnAmount: bigint;
|
|
716
|
+
veRAACTokenAmount: bigint;
|
|
717
|
+
otherAmount: bigint;
|
|
718
|
+
}
|
|
719
|
+
], "view">;
|
|
720
|
+
getFunction(nameOrSignature: "collectedFeesByToken"): TypedContractMethod<[
|
|
721
|
+
arg0: AddressLike,
|
|
722
|
+
arg1: BytesLike
|
|
723
|
+
], [
|
|
724
|
+
[
|
|
547
725
|
bigint,
|
|
548
726
|
bigint,
|
|
549
727
|
bigint,
|
|
550
728
|
bigint,
|
|
551
729
|
bigint
|
|
552
730
|
] & {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
vaultFees: bigint;
|
|
559
|
-
swapTaxes: bigint;
|
|
560
|
-
nftRoyalties: bigint;
|
|
731
|
+
treasuryAmount: bigint;
|
|
732
|
+
repairFundAmount: bigint;
|
|
733
|
+
burnAmount: bigint;
|
|
734
|
+
veRAACTokenAmount: bigint;
|
|
735
|
+
otherAmount: bigint;
|
|
561
736
|
}
|
|
562
737
|
], "view">;
|
|
563
|
-
getFunction(nameOrSignature: "
|
|
738
|
+
getFunction(nameOrSignature: "distributeFees"): TypedContractMethod<[
|
|
739
|
+
feeType: BytesLike,
|
|
740
|
+
target: BytesLike,
|
|
741
|
+
token: AddressLike
|
|
742
|
+
], [
|
|
743
|
+
void
|
|
744
|
+
], "nonpayable">;
|
|
564
745
|
getFunction(nameOrSignature: "distributionPeriod"): TypedContractMethod<[
|
|
565
746
|
], [
|
|
566
747
|
[
|
|
@@ -581,30 +762,64 @@ export interface FeeCollector extends BaseContract {
|
|
|
581
762
|
weight: bigint;
|
|
582
763
|
}
|
|
583
764
|
], "view">;
|
|
584
|
-
getFunction(nameOrSignature: "emergencyWithdraw"): TypedContractMethod<[
|
|
765
|
+
getFunction(nameOrSignature: "emergencyWithdraw"): TypedContractMethod<[
|
|
766
|
+
token: AddressLike,
|
|
767
|
+
recipient: AddressLike
|
|
768
|
+
], [
|
|
769
|
+
void
|
|
770
|
+
], "nonpayable">;
|
|
585
771
|
getFunction(nameOrSignature: "feeTypes"): TypedContractMethod<[
|
|
586
|
-
arg0:
|
|
772
|
+
arg0: BytesLike
|
|
587
773
|
], [
|
|
588
774
|
[
|
|
775
|
+
string,
|
|
776
|
+
bigint,
|
|
589
777
|
bigint,
|
|
590
778
|
bigint,
|
|
591
779
|
bigint,
|
|
592
780
|
bigint
|
|
593
781
|
] & {
|
|
594
|
-
|
|
595
|
-
burnShare: bigint;
|
|
596
|
-
repairShare: bigint;
|
|
782
|
+
feeType: string;
|
|
597
783
|
treasuryShare: bigint;
|
|
784
|
+
repairFundShare: bigint;
|
|
785
|
+
burnShare: bigint;
|
|
786
|
+
veRAACTokenShare: bigint;
|
|
787
|
+
otherShare: bigint;
|
|
598
788
|
}
|
|
599
789
|
], "view">;
|
|
600
|
-
getFunction(nameOrSignature: "getCollectedFees"): TypedContractMethod<[
|
|
790
|
+
getFunction(nameOrSignature: "getCollectedFees"): TypedContractMethod<[
|
|
791
|
+
token: AddressLike,
|
|
792
|
+
feeType: BytesLike
|
|
793
|
+
], [
|
|
794
|
+
IFeeCollector.CollectedFeeForTypeStructOutput
|
|
795
|
+
], "view">;
|
|
796
|
+
getFunction(nameOrSignature: "getCollectedFeesByToken"): TypedContractMethod<[
|
|
797
|
+
token: AddressLike
|
|
798
|
+
], [
|
|
799
|
+
IFeeCollector.CollectedFeeForTypeStructOutput[]
|
|
800
|
+
], "view">;
|
|
801
|
+
getFunction(nameOrSignature: "getCollectedFeesByTokenAndFeeType"): TypedContractMethod<[
|
|
802
|
+
token: AddressLike,
|
|
803
|
+
feeType: BytesLike
|
|
804
|
+
], [
|
|
805
|
+
IFeeCollector.CollectedFeeForTypeStructOutput
|
|
806
|
+
], "view">;
|
|
601
807
|
getFunction(nameOrSignature: "getFeeType"): TypedContractMethod<[
|
|
602
|
-
feeType:
|
|
808
|
+
feeType: BytesLike
|
|
603
809
|
], [
|
|
604
810
|
IFeeCollector.FeeTypeStructOutput
|
|
605
811
|
], "view">;
|
|
606
|
-
getFunction(nameOrSignature: "
|
|
812
|
+
getFunction(nameOrSignature: "getFeeTypes"): TypedContractMethod<[], [IFeeCollector.FeeTypeStructOutput[]], "view">;
|
|
607
813
|
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
814
|
+
getFunction(nameOrSignature: "getSupportedTokens"): TypedContractMethod<[], [string[]], "view">;
|
|
815
|
+
getFunction(nameOrSignature: "getTargetAddress"): TypedContractMethod<[target: BytesLike], [string], "view">;
|
|
816
|
+
getFunction(nameOrSignature: "getTargetAmount"): TypedContractMethod<[
|
|
817
|
+
feeType: BytesLike,
|
|
818
|
+
target: BytesLike,
|
|
819
|
+
token: AddressLike
|
|
820
|
+
], [
|
|
821
|
+
bigint
|
|
822
|
+
], "view">;
|
|
608
823
|
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
609
824
|
role: BytesLike,
|
|
610
825
|
account: AddressLike
|
|
@@ -617,6 +832,8 @@ export interface FeeCollector extends BaseContract {
|
|
|
617
832
|
], [
|
|
618
833
|
boolean
|
|
619
834
|
], "view">;
|
|
835
|
+
getFunction(nameOrSignature: "isTokenSupported"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
836
|
+
getFunction(nameOrSignature: "otherAddress"): TypedContractMethod<[], [string], "view">;
|
|
620
837
|
getFunction(nameOrSignature: "pause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
621
838
|
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
|
622
839
|
getFunction(nameOrSignature: "pendingRepairFund"): TypedContractMethod<[
|
|
@@ -633,75 +850,83 @@ export interface FeeCollector extends BaseContract {
|
|
|
633
850
|
effectiveTime: bigint;
|
|
634
851
|
}
|
|
635
852
|
], "view">;
|
|
636
|
-
getFunction(nameOrSignature: "
|
|
853
|
+
getFunction(nameOrSignature: "removeClaimableToken"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
854
|
+
getFunction(nameOrSignature: "removeFeeType"): TypedContractMethod<[feeType: BytesLike], [void], "nonpayable">;
|
|
637
855
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
638
856
|
role: BytesLike,
|
|
639
857
|
callerConfirmation: AddressLike
|
|
640
858
|
], [
|
|
641
859
|
void
|
|
642
860
|
], "nonpayable">;
|
|
643
|
-
getFunction(nameOrSignature: "
|
|
861
|
+
getFunction(nameOrSignature: "repairFundAddress"): TypedContractMethod<[], [string], "view">;
|
|
644
862
|
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
645
863
|
role: BytesLike,
|
|
646
864
|
account: AddressLike
|
|
647
865
|
], [
|
|
648
866
|
void
|
|
649
867
|
], "nonpayable">;
|
|
650
|
-
getFunction(nameOrSignature: "
|
|
651
|
-
|
|
868
|
+
getFunction(nameOrSignature: "setTargetAddress"): TypedContractMethod<[
|
|
869
|
+
target: BytesLike,
|
|
870
|
+
newAddress: AddressLike
|
|
871
|
+
], [
|
|
872
|
+
void
|
|
873
|
+
], "nonpayable">;
|
|
652
874
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
653
875
|
getFunction(nameOrSignature: "totalDistributed"): TypedContractMethod<[], [bigint], "view">;
|
|
654
|
-
getFunction(nameOrSignature: "
|
|
876
|
+
getFunction(nameOrSignature: "treasuryAddress"): TypedContractMethod<[], [string], "view">;
|
|
655
877
|
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
656
878
|
getFunction(nameOrSignature: "updateFeeType"): TypedContractMethod<[
|
|
657
|
-
feeType:
|
|
879
|
+
feeType: BytesLike,
|
|
658
880
|
newFee: IFeeCollector.FeeTypeStruct
|
|
659
881
|
], [
|
|
660
882
|
void
|
|
661
883
|
], "nonpayable">;
|
|
662
884
|
getFunction(nameOrSignature: "userRewards"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
663
|
-
getFunction(nameOrSignature: "
|
|
664
|
-
getEvent(key: "
|
|
885
|
+
getFunction(nameOrSignature: "veRAACAddress"): TypedContractMethod<[], [string], "view">;
|
|
886
|
+
getEvent(key: "CollectorRewardsClaimed"): TypedContractEvent<CollectorRewardsClaimedEvent.InputTuple, CollectorRewardsClaimedEvent.OutputTuple, CollectorRewardsClaimedEvent.OutputObject>;
|
|
887
|
+
getEvent(key: "CollectorUnderlyingClaimed"): TypedContractEvent<CollectorUnderlyingClaimedEvent.InputTuple, CollectorUnderlyingClaimedEvent.OutputTuple, CollectorUnderlyingClaimedEvent.OutputObject>;
|
|
665
888
|
getEvent(key: "EmergencyWithdrawal"): TypedContractEvent<EmergencyWithdrawalEvent.InputTuple, EmergencyWithdrawalEvent.OutputTuple, EmergencyWithdrawalEvent.OutputObject>;
|
|
666
889
|
getEvent(key: "FeeCollected"): TypedContractEvent<FeeCollectedEvent.InputTuple, FeeCollectedEvent.OutputTuple, FeeCollectedEvent.OutputObject>;
|
|
667
890
|
getEvent(key: "FeeDistributed"): TypedContractEvent<FeeDistributedEvent.InputTuple, FeeDistributedEvent.OutputTuple, FeeDistributedEvent.OutputObject>;
|
|
891
|
+
getEvent(key: "FeeTypeAdded"): TypedContractEvent<FeeTypeAddedEvent.InputTuple, FeeTypeAddedEvent.OutputTuple, FeeTypeAddedEvent.OutputObject>;
|
|
668
892
|
getEvent(key: "FeeTypeUpdated"): TypedContractEvent<FeeTypeUpdatedEvent.InputTuple, FeeTypeUpdatedEvent.OutputTuple, FeeTypeUpdatedEvent.OutputObject>;
|
|
669
893
|
getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
670
|
-
getEvent(key: "PeriodCreated"): TypedContractEvent<PeriodCreatedEvent.InputTuple, PeriodCreatedEvent.OutputTuple, PeriodCreatedEvent.OutputObject>;
|
|
671
|
-
getEvent(key: "RepairFundUpdated"): TypedContractEvent<RepairFundUpdatedEvent.InputTuple, RepairFundUpdatedEvent.OutputTuple, RepairFundUpdatedEvent.OutputObject>;
|
|
672
|
-
getEvent(key: "RewardClaimed"): TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
|
|
673
894
|
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
674
895
|
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
675
896
|
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
676
|
-
getEvent(key: "
|
|
897
|
+
getEvent(key: "TargetAddressUpdated"): TypedContractEvent<TargetAddressUpdatedEvent.InputTuple, TargetAddressUpdatedEvent.OutputTuple, TargetAddressUpdatedEvent.OutputObject>;
|
|
898
|
+
getEvent(key: "TokenAdded"): TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
|
|
899
|
+
getEvent(key: "TokenRemoved"): TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
|
|
677
900
|
getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
678
901
|
filters: {
|
|
679
|
-
"
|
|
680
|
-
|
|
902
|
+
"CollectorRewardsClaimed(address,address,uint256)": TypedContractEvent<CollectorRewardsClaimedEvent.InputTuple, CollectorRewardsClaimedEvent.OutputTuple, CollectorRewardsClaimedEvent.OutputObject>;
|
|
903
|
+
CollectorRewardsClaimed: TypedContractEvent<CollectorRewardsClaimedEvent.InputTuple, CollectorRewardsClaimedEvent.OutputTuple, CollectorRewardsClaimedEvent.OutputObject>;
|
|
904
|
+
"CollectorUnderlyingClaimed(address,address,uint256)": TypedContractEvent<CollectorUnderlyingClaimedEvent.InputTuple, CollectorUnderlyingClaimedEvent.OutputTuple, CollectorUnderlyingClaimedEvent.OutputObject>;
|
|
905
|
+
CollectorUnderlyingClaimed: TypedContractEvent<CollectorUnderlyingClaimedEvent.InputTuple, CollectorUnderlyingClaimedEvent.OutputTuple, CollectorUnderlyingClaimedEvent.OutputObject>;
|
|
681
906
|
"EmergencyWithdrawal(address,uint256)": TypedContractEvent<EmergencyWithdrawalEvent.InputTuple, EmergencyWithdrawalEvent.OutputTuple, EmergencyWithdrawalEvent.OutputObject>;
|
|
682
907
|
EmergencyWithdrawal: TypedContractEvent<EmergencyWithdrawalEvent.InputTuple, EmergencyWithdrawalEvent.OutputTuple, EmergencyWithdrawalEvent.OutputObject>;
|
|
683
|
-
"FeeCollected(
|
|
908
|
+
"FeeCollected(bytes32,uint256)": TypedContractEvent<FeeCollectedEvent.InputTuple, FeeCollectedEvent.OutputTuple, FeeCollectedEvent.OutputObject>;
|
|
684
909
|
FeeCollected: TypedContractEvent<FeeCollectedEvent.InputTuple, FeeCollectedEvent.OutputTuple, FeeCollectedEvent.OutputObject>;
|
|
685
|
-
"FeeDistributed(
|
|
910
|
+
"FeeDistributed(bytes32,bytes32,address,uint256)": TypedContractEvent<FeeDistributedEvent.InputTuple, FeeDistributedEvent.OutputTuple, FeeDistributedEvent.OutputObject>;
|
|
686
911
|
FeeDistributed: TypedContractEvent<FeeDistributedEvent.InputTuple, FeeDistributedEvent.OutputTuple, FeeDistributedEvent.OutputObject>;
|
|
687
|
-
"
|
|
912
|
+
"FeeTypeAdded(bytes32)": TypedContractEvent<FeeTypeAddedEvent.InputTuple, FeeTypeAddedEvent.OutputTuple, FeeTypeAddedEvent.OutputObject>;
|
|
913
|
+
FeeTypeAdded: TypedContractEvent<FeeTypeAddedEvent.InputTuple, FeeTypeAddedEvent.OutputTuple, FeeTypeAddedEvent.OutputObject>;
|
|
914
|
+
"FeeTypeUpdated(bytes32,tuple)": TypedContractEvent<FeeTypeUpdatedEvent.InputTuple, FeeTypeUpdatedEvent.OutputTuple, FeeTypeUpdatedEvent.OutputObject>;
|
|
688
915
|
FeeTypeUpdated: TypedContractEvent<FeeTypeUpdatedEvent.InputTuple, FeeTypeUpdatedEvent.OutputTuple, FeeTypeUpdatedEvent.OutputObject>;
|
|
689
916
|
"Paused(address)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
690
917
|
Paused: TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
691
|
-
"PeriodCreated(uint256,uint256,uint256)": TypedContractEvent<PeriodCreatedEvent.InputTuple, PeriodCreatedEvent.OutputTuple, PeriodCreatedEvent.OutputObject>;
|
|
692
|
-
PeriodCreated: TypedContractEvent<PeriodCreatedEvent.InputTuple, PeriodCreatedEvent.OutputTuple, PeriodCreatedEvent.OutputObject>;
|
|
693
|
-
"RepairFundUpdated(address)": TypedContractEvent<RepairFundUpdatedEvent.InputTuple, RepairFundUpdatedEvent.OutputTuple, RepairFundUpdatedEvent.OutputObject>;
|
|
694
|
-
RepairFundUpdated: TypedContractEvent<RepairFundUpdatedEvent.InputTuple, RepairFundUpdatedEvent.OutputTuple, RepairFundUpdatedEvent.OutputObject>;
|
|
695
|
-
"RewardClaimed(address,uint256)": TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
|
|
696
|
-
RewardClaimed: TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
|
|
697
918
|
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
698
919
|
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
699
920
|
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
700
921
|
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
701
922
|
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
702
923
|
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
703
|
-
"
|
|
704
|
-
|
|
924
|
+
"TargetAddressUpdated(bytes32,address)": TypedContractEvent<TargetAddressUpdatedEvent.InputTuple, TargetAddressUpdatedEvent.OutputTuple, TargetAddressUpdatedEvent.OutputObject>;
|
|
925
|
+
TargetAddressUpdated: TypedContractEvent<TargetAddressUpdatedEvent.InputTuple, TargetAddressUpdatedEvent.OutputTuple, TargetAddressUpdatedEvent.OutputObject>;
|
|
926
|
+
"TokenAdded(address)": TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
|
|
927
|
+
TokenAdded: TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
|
|
928
|
+
"TokenRemoved(address)": TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
|
|
929
|
+
TokenRemoved: TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
|
|
705
930
|
"Unpaused(address)": TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
706
931
|
Unpaused: TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
707
932
|
};
|