@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,88 +2,130 @@ 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 IFeeCollectorInterface extends Interface {
|
|
52
|
-
getFunction(nameOrSignature: "
|
|
53
|
-
getEvent(nameOrSignatureOrTopic: "
|
|
54
|
-
encodeFunctionData(functionFragment: "
|
|
55
|
-
encodeFunctionData(functionFragment: "
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
encodeFunctionData(functionFragment: "
|
|
64
|
-
|
|
49
|
+
getFunction(nameOrSignature: "addClaimableToken" | "addFeeType" | "claimCollectorRewards" | "collectFee" | "distributeFees" | "emergencyWithdraw" | "getCollectedFees" | "getCollectedFeesByToken" | "getCollectedFeesByTokenAndFeeType" | "getFeeType" | "getFeeTypes" | "getSupportedTokens" | "getTargetAddress" | "getTargetAmount" | "isTokenSupported" | "pause" | "removeClaimableToken" | "removeFeeType" | "setTargetAddress" | "unpause" | "updateFeeType"): FunctionFragment;
|
|
50
|
+
getEvent(nameOrSignatureOrTopic: "CollectorRewardsClaimed" | "CollectorUnderlyingClaimed" | "EmergencyWithdrawal" | "FeeCollected" | "FeeDistributed" | "FeeTypeAdded" | "FeeTypeUpdated" | "TargetAddressUpdated" | "TokenAdded" | "TokenRemoved"): EventFragment;
|
|
51
|
+
encodeFunctionData(functionFragment: "addClaimableToken", values: [AddressLike]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "addFeeType", values: [
|
|
53
|
+
BytesLike,
|
|
54
|
+
BigNumberish,
|
|
55
|
+
BigNumberish,
|
|
56
|
+
BigNumberish,
|
|
57
|
+
BigNumberish,
|
|
58
|
+
BigNumberish
|
|
59
|
+
]): string;
|
|
60
|
+
encodeFunctionData(functionFragment: "claimCollectorRewards", values: [AddressLike, AddressLike, BytesLike]): string;
|
|
61
|
+
encodeFunctionData(functionFragment: "collectFee", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
62
|
+
encodeFunctionData(functionFragment: "distributeFees", values: [BytesLike, BytesLike, AddressLike]): string;
|
|
63
|
+
encodeFunctionData(functionFragment: "emergencyWithdraw", values: [AddressLike, AddressLike]): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "getCollectedFees", values: [AddressLike, BytesLike]): string;
|
|
65
|
+
encodeFunctionData(functionFragment: "getCollectedFeesByToken", values: [AddressLike]): string;
|
|
66
|
+
encodeFunctionData(functionFragment: "getCollectedFeesByTokenAndFeeType", values: [AddressLike, BytesLike]): string;
|
|
67
|
+
encodeFunctionData(functionFragment: "getFeeType", values: [BytesLike]): string;
|
|
68
|
+
encodeFunctionData(functionFragment: "getFeeTypes", values?: undefined): string;
|
|
69
|
+
encodeFunctionData(functionFragment: "getSupportedTokens", values?: undefined): string;
|
|
70
|
+
encodeFunctionData(functionFragment: "getTargetAddress", values: [BytesLike]): string;
|
|
71
|
+
encodeFunctionData(functionFragment: "getTargetAmount", values: [BytesLike, BytesLike, AddressLike]): string;
|
|
72
|
+
encodeFunctionData(functionFragment: "isTokenSupported", values: [AddressLike]): string;
|
|
73
|
+
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
|
|
74
|
+
encodeFunctionData(functionFragment: "removeClaimableToken", values: [AddressLike]): string;
|
|
75
|
+
encodeFunctionData(functionFragment: "removeFeeType", values: [BytesLike]): string;
|
|
76
|
+
encodeFunctionData(functionFragment: "setTargetAddress", values: [BytesLike, AddressLike]): string;
|
|
77
|
+
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
|
|
78
|
+
encodeFunctionData(functionFragment: "updateFeeType", values: [BytesLike, IFeeCollector.FeeTypeStruct]): string;
|
|
79
|
+
decodeFunctionResult(functionFragment: "addClaimableToken", data: BytesLike): Result;
|
|
80
|
+
decodeFunctionResult(functionFragment: "addFeeType", data: BytesLike): Result;
|
|
81
|
+
decodeFunctionResult(functionFragment: "claimCollectorRewards", data: BytesLike): Result;
|
|
65
82
|
decodeFunctionResult(functionFragment: "collectFee", data: BytesLike): Result;
|
|
66
|
-
decodeFunctionResult(functionFragment: "
|
|
83
|
+
decodeFunctionResult(functionFragment: "distributeFees", data: BytesLike): Result;
|
|
67
84
|
decodeFunctionResult(functionFragment: "emergencyWithdraw", data: BytesLike): Result;
|
|
68
85
|
decodeFunctionResult(functionFragment: "getCollectedFees", data: BytesLike): Result;
|
|
86
|
+
decodeFunctionResult(functionFragment: "getCollectedFeesByToken", data: BytesLike): Result;
|
|
87
|
+
decodeFunctionResult(functionFragment: "getCollectedFeesByTokenAndFeeType", data: BytesLike): Result;
|
|
69
88
|
decodeFunctionResult(functionFragment: "getFeeType", data: BytesLike): Result;
|
|
70
|
-
decodeFunctionResult(functionFragment: "
|
|
71
|
-
decodeFunctionResult(functionFragment: "
|
|
72
|
-
decodeFunctionResult(functionFragment: "
|
|
89
|
+
decodeFunctionResult(functionFragment: "getFeeTypes", data: BytesLike): Result;
|
|
90
|
+
decodeFunctionResult(functionFragment: "getSupportedTokens", data: BytesLike): Result;
|
|
91
|
+
decodeFunctionResult(functionFragment: "getTargetAddress", data: BytesLike): Result;
|
|
92
|
+
decodeFunctionResult(functionFragment: "getTargetAmount", data: BytesLike): Result;
|
|
93
|
+
decodeFunctionResult(functionFragment: "isTokenSupported", data: BytesLike): Result;
|
|
94
|
+
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
|
|
95
|
+
decodeFunctionResult(functionFragment: "removeClaimableToken", data: BytesLike): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "removeFeeType", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "setTargetAddress", data: BytesLike): Result;
|
|
98
|
+
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
|
|
73
99
|
decodeFunctionResult(functionFragment: "updateFeeType", data: BytesLike): Result;
|
|
74
100
|
}
|
|
75
|
-
export declare namespace
|
|
101
|
+
export declare namespace CollectorRewardsClaimedEvent {
|
|
76
102
|
type InputTuple = [
|
|
77
|
-
|
|
78
|
-
|
|
103
|
+
token: AddressLike,
|
|
104
|
+
target: AddressLike,
|
|
105
|
+
amount: BigNumberish
|
|
79
106
|
];
|
|
80
|
-
type OutputTuple = [
|
|
81
|
-
|
|
82
|
-
|
|
107
|
+
type OutputTuple = [token: string, target: string, amount: bigint];
|
|
108
|
+
interface OutputObject {
|
|
109
|
+
token: string;
|
|
110
|
+
target: string;
|
|
111
|
+
amount: bigint;
|
|
112
|
+
}
|
|
113
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
114
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
115
|
+
type Log = TypedEventLog<Event>;
|
|
116
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
117
|
+
}
|
|
118
|
+
export declare namespace CollectorUnderlyingClaimedEvent {
|
|
119
|
+
type InputTuple = [
|
|
120
|
+
token: AddressLike,
|
|
121
|
+
target: AddressLike,
|
|
122
|
+
amount: BigNumberish
|
|
83
123
|
];
|
|
124
|
+
type OutputTuple = [token: string, target: string, amount: bigint];
|
|
84
125
|
interface OutputObject {
|
|
85
|
-
|
|
86
|
-
|
|
126
|
+
token: string;
|
|
127
|
+
target: string;
|
|
128
|
+
amount: bigint;
|
|
87
129
|
}
|
|
88
130
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
89
131
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -103,10 +145,10 @@ export declare namespace EmergencyWithdrawalEvent {
|
|
|
103
145
|
type LogDescription = TypedLogDescription<Event>;
|
|
104
146
|
}
|
|
105
147
|
export declare namespace FeeCollectedEvent {
|
|
106
|
-
type InputTuple = [feeType:
|
|
107
|
-
type OutputTuple = [feeType:
|
|
148
|
+
type InputTuple = [feeType: BytesLike, amount: BigNumberish];
|
|
149
|
+
type OutputTuple = [feeType: string, amount: bigint];
|
|
108
150
|
interface OutputObject {
|
|
109
|
-
feeType:
|
|
151
|
+
feeType: string;
|
|
110
152
|
amount: bigint;
|
|
111
153
|
}
|
|
112
154
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -116,22 +158,33 @@ export declare namespace FeeCollectedEvent {
|
|
|
116
158
|
}
|
|
117
159
|
export declare namespace FeeDistributedEvent {
|
|
118
160
|
type InputTuple = [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
161
|
+
feeType: BytesLike,
|
|
162
|
+
target: BytesLike,
|
|
163
|
+
token: AddressLike,
|
|
164
|
+
amount: BigNumberish
|
|
123
165
|
];
|
|
124
166
|
type OutputTuple = [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
167
|
+
feeType: string,
|
|
168
|
+
target: string,
|
|
169
|
+
token: string,
|
|
170
|
+
amount: bigint
|
|
129
171
|
];
|
|
130
172
|
interface OutputObject {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
173
|
+
feeType: string;
|
|
174
|
+
target: string;
|
|
175
|
+
token: string;
|
|
176
|
+
amount: bigint;
|
|
177
|
+
}
|
|
178
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
179
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
180
|
+
type Log = TypedEventLog<Event>;
|
|
181
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
182
|
+
}
|
|
183
|
+
export declare namespace FeeTypeAddedEvent {
|
|
184
|
+
type InputTuple = [feeType: BytesLike];
|
|
185
|
+
type OutputTuple = [feeType: string];
|
|
186
|
+
interface OutputObject {
|
|
187
|
+
feeType: string;
|
|
135
188
|
}
|
|
136
189
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
137
190
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -140,15 +193,15 @@ export declare namespace FeeDistributedEvent {
|
|
|
140
193
|
}
|
|
141
194
|
export declare namespace FeeTypeUpdatedEvent {
|
|
142
195
|
type InputTuple = [
|
|
143
|
-
feeType:
|
|
196
|
+
feeType: BytesLike,
|
|
144
197
|
newFee: IFeeCollector.FeeTypeStruct
|
|
145
198
|
];
|
|
146
199
|
type OutputTuple = [
|
|
147
|
-
feeType:
|
|
200
|
+
feeType: string,
|
|
148
201
|
newFee: IFeeCollector.FeeTypeStructOutput
|
|
149
202
|
];
|
|
150
203
|
interface OutputObject {
|
|
151
|
-
feeType:
|
|
204
|
+
feeType: string;
|
|
152
205
|
newFee: IFeeCollector.FeeTypeStructOutput;
|
|
153
206
|
}
|
|
154
207
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -156,34 +209,34 @@ export declare namespace FeeTypeUpdatedEvent {
|
|
|
156
209
|
type Log = TypedEventLog<Event>;
|
|
157
210
|
type LogDescription = TypedLogDescription<Event>;
|
|
158
211
|
}
|
|
159
|
-
export declare namespace
|
|
160
|
-
type InputTuple = [
|
|
161
|
-
type OutputTuple = [
|
|
212
|
+
export declare namespace TargetAddressUpdatedEvent {
|
|
213
|
+
type InputTuple = [target: BytesLike, newAddress: AddressLike];
|
|
214
|
+
type OutputTuple = [target: string, newAddress: string];
|
|
162
215
|
interface OutputObject {
|
|
163
|
-
|
|
216
|
+
target: string;
|
|
217
|
+
newAddress: string;
|
|
164
218
|
}
|
|
165
219
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
166
220
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
167
221
|
type Log = TypedEventLog<Event>;
|
|
168
222
|
type LogDescription = TypedLogDescription<Event>;
|
|
169
223
|
}
|
|
170
|
-
export declare namespace
|
|
171
|
-
type InputTuple = [
|
|
172
|
-
type OutputTuple = [
|
|
224
|
+
export declare namespace TokenAddedEvent {
|
|
225
|
+
type InputTuple = [token: AddressLike];
|
|
226
|
+
type OutputTuple = [token: string];
|
|
173
227
|
interface OutputObject {
|
|
174
|
-
|
|
175
|
-
amount: bigint;
|
|
228
|
+
token: string;
|
|
176
229
|
}
|
|
177
230
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
178
231
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
179
232
|
type Log = TypedEventLog<Event>;
|
|
180
233
|
type LogDescription = TypedLogDescription<Event>;
|
|
181
234
|
}
|
|
182
|
-
export declare namespace
|
|
183
|
-
type InputTuple = [
|
|
184
|
-
type OutputTuple = [
|
|
235
|
+
export declare namespace TokenRemovedEvent {
|
|
236
|
+
type InputTuple = [token: AddressLike];
|
|
237
|
+
type OutputTuple = [token: string];
|
|
185
238
|
interface OutputObject {
|
|
186
|
-
|
|
239
|
+
token: string;
|
|
187
240
|
}
|
|
188
241
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
189
242
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -203,98 +256,232 @@ export interface IFeeCollector extends BaseContract {
|
|
|
203
256
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
204
257
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
205
258
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
206
|
-
|
|
207
|
-
|
|
259
|
+
addClaimableToken: TypedContractMethod<[
|
|
260
|
+
token: AddressLike
|
|
208
261
|
], [
|
|
209
|
-
|
|
262
|
+
void
|
|
263
|
+
], "nonpayable">;
|
|
264
|
+
addFeeType: TypedContractMethod<[
|
|
265
|
+
feeType: BytesLike,
|
|
266
|
+
treasuryShare: BigNumberish,
|
|
267
|
+
repairFundShare: BigNumberish,
|
|
268
|
+
burnShare: BigNumberish,
|
|
269
|
+
veRAACTokenShare: BigNumberish,
|
|
270
|
+
otherShare: BigNumberish
|
|
271
|
+
], [
|
|
272
|
+
boolean
|
|
273
|
+
], "nonpayable">;
|
|
274
|
+
claimCollectorRewards: TypedContractMethod<[
|
|
275
|
+
token: AddressLike,
|
|
276
|
+
target: AddressLike,
|
|
277
|
+
feeType: BytesLike
|
|
278
|
+
], [
|
|
279
|
+
boolean
|
|
210
280
|
], "nonpayable">;
|
|
211
281
|
collectFee: TypedContractMethod<[
|
|
282
|
+
token: AddressLike,
|
|
283
|
+
target: AddressLike,
|
|
212
284
|
amount: BigNumberish,
|
|
213
|
-
feeType:
|
|
285
|
+
feeType: BytesLike
|
|
214
286
|
], [
|
|
215
287
|
boolean
|
|
216
288
|
], "nonpayable">;
|
|
217
|
-
|
|
218
|
-
|
|
289
|
+
distributeFees: TypedContractMethod<[
|
|
290
|
+
feeType: BytesLike,
|
|
291
|
+
target: BytesLike,
|
|
219
292
|
token: AddressLike
|
|
220
293
|
], [
|
|
221
294
|
void
|
|
222
295
|
], "nonpayable">;
|
|
296
|
+
emergencyWithdraw: TypedContractMethod<[
|
|
297
|
+
token: AddressLike,
|
|
298
|
+
recipient: AddressLike
|
|
299
|
+
], [
|
|
300
|
+
void
|
|
301
|
+
], "nonpayable">;
|
|
223
302
|
getCollectedFees: TypedContractMethod<[
|
|
303
|
+
token: AddressLike,
|
|
304
|
+
feeType: BytesLike
|
|
305
|
+
], [
|
|
306
|
+
IFeeCollector.CollectedFeeForTypeStructOutput
|
|
307
|
+
], "view">;
|
|
308
|
+
getCollectedFeesByToken: TypedContractMethod<[
|
|
309
|
+
token: AddressLike
|
|
310
|
+
], [
|
|
311
|
+
IFeeCollector.CollectedFeeForTypeStructOutput[]
|
|
312
|
+
], "view">;
|
|
313
|
+
getCollectedFeesByTokenAndFeeType: TypedContractMethod<[
|
|
314
|
+
token: AddressLike,
|
|
315
|
+
feeType: BytesLike
|
|
224
316
|
], [
|
|
225
|
-
IFeeCollector.
|
|
317
|
+
IFeeCollector.CollectedFeeForTypeStructOutput
|
|
226
318
|
], "view">;
|
|
227
319
|
getFeeType: TypedContractMethod<[
|
|
228
|
-
feeType:
|
|
320
|
+
feeType: BytesLike
|
|
229
321
|
], [
|
|
230
322
|
IFeeCollector.FeeTypeStructOutput
|
|
231
323
|
], "view">;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
324
|
+
getFeeTypes: TypedContractMethod<[
|
|
325
|
+
], [
|
|
326
|
+
IFeeCollector.FeeTypeStructOutput[]
|
|
327
|
+
], "view">;
|
|
328
|
+
getSupportedTokens: TypedContractMethod<[], [string[]], "view">;
|
|
329
|
+
getTargetAddress: TypedContractMethod<[target: BytesLike], [string], "view">;
|
|
330
|
+
getTargetAmount: TypedContractMethod<[
|
|
331
|
+
feeType: BytesLike,
|
|
332
|
+
target: BytesLike,
|
|
333
|
+
token: AddressLike
|
|
334
|
+
], [
|
|
335
|
+
bigint
|
|
336
|
+
], "view">;
|
|
337
|
+
isTokenSupported: TypedContractMethod<[
|
|
338
|
+
token: AddressLike
|
|
339
|
+
], [
|
|
340
|
+
boolean
|
|
341
|
+
], "view">;
|
|
342
|
+
pause: TypedContractMethod<[], [void], "nonpayable">;
|
|
343
|
+
removeClaimableToken: TypedContractMethod<[
|
|
344
|
+
token: AddressLike
|
|
345
|
+
], [
|
|
346
|
+
void
|
|
347
|
+
], "nonpayable">;
|
|
348
|
+
removeFeeType: TypedContractMethod<[
|
|
349
|
+
feeType: BytesLike
|
|
235
350
|
], [
|
|
236
351
|
void
|
|
237
352
|
], "nonpayable">;
|
|
238
|
-
|
|
239
|
-
|
|
353
|
+
setTargetAddress: TypedContractMethod<[
|
|
354
|
+
target: BytesLike,
|
|
355
|
+
newAddress: AddressLike
|
|
240
356
|
], [
|
|
241
357
|
void
|
|
242
358
|
], "nonpayable">;
|
|
359
|
+
unpause: TypedContractMethod<[], [void], "nonpayable">;
|
|
243
360
|
updateFeeType: TypedContractMethod<[
|
|
244
|
-
feeType:
|
|
361
|
+
feeType: BytesLike,
|
|
245
362
|
newFee: IFeeCollector.FeeTypeStruct
|
|
246
363
|
], [
|
|
247
364
|
void
|
|
248
365
|
], "nonpayable">;
|
|
249
366
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
250
|
-
getFunction(nameOrSignature: "
|
|
367
|
+
getFunction(nameOrSignature: "addClaimableToken"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
368
|
+
getFunction(nameOrSignature: "addFeeType"): TypedContractMethod<[
|
|
369
|
+
feeType: BytesLike,
|
|
370
|
+
treasuryShare: BigNumberish,
|
|
371
|
+
repairFundShare: BigNumberish,
|
|
372
|
+
burnShare: BigNumberish,
|
|
373
|
+
veRAACTokenShare: BigNumberish,
|
|
374
|
+
otherShare: BigNumberish
|
|
375
|
+
], [
|
|
376
|
+
boolean
|
|
377
|
+
], "nonpayable">;
|
|
378
|
+
getFunction(nameOrSignature: "claimCollectorRewards"): TypedContractMethod<[
|
|
379
|
+
token: AddressLike,
|
|
380
|
+
target: AddressLike,
|
|
381
|
+
feeType: BytesLike
|
|
382
|
+
], [
|
|
383
|
+
boolean
|
|
384
|
+
], "nonpayable">;
|
|
251
385
|
getFunction(nameOrSignature: "collectFee"): TypedContractMethod<[
|
|
386
|
+
token: AddressLike,
|
|
387
|
+
target: AddressLike,
|
|
252
388
|
amount: BigNumberish,
|
|
253
|
-
feeType:
|
|
389
|
+
feeType: BytesLike
|
|
254
390
|
], [
|
|
255
391
|
boolean
|
|
256
392
|
], "nonpayable">;
|
|
257
|
-
getFunction(nameOrSignature: "
|
|
258
|
-
|
|
259
|
-
|
|
393
|
+
getFunction(nameOrSignature: "distributeFees"): TypedContractMethod<[
|
|
394
|
+
feeType: BytesLike,
|
|
395
|
+
target: BytesLike,
|
|
396
|
+
token: AddressLike
|
|
397
|
+
], [
|
|
398
|
+
void
|
|
399
|
+
], "nonpayable">;
|
|
400
|
+
getFunction(nameOrSignature: "emergencyWithdraw"): TypedContractMethod<[
|
|
401
|
+
token: AddressLike,
|
|
402
|
+
recipient: AddressLike
|
|
403
|
+
], [
|
|
404
|
+
void
|
|
405
|
+
], "nonpayable">;
|
|
406
|
+
getFunction(nameOrSignature: "getCollectedFees"): TypedContractMethod<[
|
|
407
|
+
token: AddressLike,
|
|
408
|
+
feeType: BytesLike
|
|
409
|
+
], [
|
|
410
|
+
IFeeCollector.CollectedFeeForTypeStructOutput
|
|
411
|
+
], "view">;
|
|
412
|
+
getFunction(nameOrSignature: "getCollectedFeesByToken"): TypedContractMethod<[
|
|
413
|
+
token: AddressLike
|
|
414
|
+
], [
|
|
415
|
+
IFeeCollector.CollectedFeeForTypeStructOutput[]
|
|
416
|
+
], "view">;
|
|
417
|
+
getFunction(nameOrSignature: "getCollectedFeesByTokenAndFeeType"): TypedContractMethod<[
|
|
418
|
+
token: AddressLike,
|
|
419
|
+
feeType: BytesLike
|
|
420
|
+
], [
|
|
421
|
+
IFeeCollector.CollectedFeeForTypeStructOutput
|
|
422
|
+
], "view">;
|
|
260
423
|
getFunction(nameOrSignature: "getFeeType"): TypedContractMethod<[
|
|
261
|
-
feeType:
|
|
424
|
+
feeType: BytesLike
|
|
262
425
|
], [
|
|
263
426
|
IFeeCollector.FeeTypeStructOutput
|
|
264
427
|
], "view">;
|
|
265
|
-
getFunction(nameOrSignature: "
|
|
266
|
-
getFunction(nameOrSignature: "
|
|
267
|
-
getFunction(nameOrSignature: "
|
|
428
|
+
getFunction(nameOrSignature: "getFeeTypes"): TypedContractMethod<[], [IFeeCollector.FeeTypeStructOutput[]], "view">;
|
|
429
|
+
getFunction(nameOrSignature: "getSupportedTokens"): TypedContractMethod<[], [string[]], "view">;
|
|
430
|
+
getFunction(nameOrSignature: "getTargetAddress"): TypedContractMethod<[target: BytesLike], [string], "view">;
|
|
431
|
+
getFunction(nameOrSignature: "getTargetAmount"): TypedContractMethod<[
|
|
432
|
+
feeType: BytesLike,
|
|
433
|
+
target: BytesLike,
|
|
434
|
+
token: AddressLike
|
|
435
|
+
], [
|
|
436
|
+
bigint
|
|
437
|
+
], "view">;
|
|
438
|
+
getFunction(nameOrSignature: "isTokenSupported"): TypedContractMethod<[token: AddressLike], [boolean], "view">;
|
|
439
|
+
getFunction(nameOrSignature: "pause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
440
|
+
getFunction(nameOrSignature: "removeClaimableToken"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
441
|
+
getFunction(nameOrSignature: "removeFeeType"): TypedContractMethod<[feeType: BytesLike], [void], "nonpayable">;
|
|
442
|
+
getFunction(nameOrSignature: "setTargetAddress"): TypedContractMethod<[
|
|
443
|
+
target: BytesLike,
|
|
444
|
+
newAddress: AddressLike
|
|
445
|
+
], [
|
|
446
|
+
void
|
|
447
|
+
], "nonpayable">;
|
|
448
|
+
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
268
449
|
getFunction(nameOrSignature: "updateFeeType"): TypedContractMethod<[
|
|
269
|
-
feeType:
|
|
450
|
+
feeType: BytesLike,
|
|
270
451
|
newFee: IFeeCollector.FeeTypeStruct
|
|
271
452
|
], [
|
|
272
453
|
void
|
|
273
454
|
], "nonpayable">;
|
|
274
|
-
getEvent(key: "
|
|
455
|
+
getEvent(key: "CollectorRewardsClaimed"): TypedContractEvent<CollectorRewardsClaimedEvent.InputTuple, CollectorRewardsClaimedEvent.OutputTuple, CollectorRewardsClaimedEvent.OutputObject>;
|
|
456
|
+
getEvent(key: "CollectorUnderlyingClaimed"): TypedContractEvent<CollectorUnderlyingClaimedEvent.InputTuple, CollectorUnderlyingClaimedEvent.OutputTuple, CollectorUnderlyingClaimedEvent.OutputObject>;
|
|
275
457
|
getEvent(key: "EmergencyWithdrawal"): TypedContractEvent<EmergencyWithdrawalEvent.InputTuple, EmergencyWithdrawalEvent.OutputTuple, EmergencyWithdrawalEvent.OutputObject>;
|
|
276
458
|
getEvent(key: "FeeCollected"): TypedContractEvent<FeeCollectedEvent.InputTuple, FeeCollectedEvent.OutputTuple, FeeCollectedEvent.OutputObject>;
|
|
277
459
|
getEvent(key: "FeeDistributed"): TypedContractEvent<FeeDistributedEvent.InputTuple, FeeDistributedEvent.OutputTuple, FeeDistributedEvent.OutputObject>;
|
|
460
|
+
getEvent(key: "FeeTypeAdded"): TypedContractEvent<FeeTypeAddedEvent.InputTuple, FeeTypeAddedEvent.OutputTuple, FeeTypeAddedEvent.OutputObject>;
|
|
278
461
|
getEvent(key: "FeeTypeUpdated"): TypedContractEvent<FeeTypeUpdatedEvent.InputTuple, FeeTypeUpdatedEvent.OutputTuple, FeeTypeUpdatedEvent.OutputObject>;
|
|
279
|
-
getEvent(key: "
|
|
280
|
-
getEvent(key: "
|
|
281
|
-
getEvent(key: "
|
|
462
|
+
getEvent(key: "TargetAddressUpdated"): TypedContractEvent<TargetAddressUpdatedEvent.InputTuple, TargetAddressUpdatedEvent.OutputTuple, TargetAddressUpdatedEvent.OutputObject>;
|
|
463
|
+
getEvent(key: "TokenAdded"): TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
|
|
464
|
+
getEvent(key: "TokenRemoved"): TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
|
|
282
465
|
filters: {
|
|
283
|
-
"
|
|
284
|
-
|
|
466
|
+
"CollectorRewardsClaimed(address,address,uint256)": TypedContractEvent<CollectorRewardsClaimedEvent.InputTuple, CollectorRewardsClaimedEvent.OutputTuple, CollectorRewardsClaimedEvent.OutputObject>;
|
|
467
|
+
CollectorRewardsClaimed: TypedContractEvent<CollectorRewardsClaimedEvent.InputTuple, CollectorRewardsClaimedEvent.OutputTuple, CollectorRewardsClaimedEvent.OutputObject>;
|
|
468
|
+
"CollectorUnderlyingClaimed(address,address,uint256)": TypedContractEvent<CollectorUnderlyingClaimedEvent.InputTuple, CollectorUnderlyingClaimedEvent.OutputTuple, CollectorUnderlyingClaimedEvent.OutputObject>;
|
|
469
|
+
CollectorUnderlyingClaimed: TypedContractEvent<CollectorUnderlyingClaimedEvent.InputTuple, CollectorUnderlyingClaimedEvent.OutputTuple, CollectorUnderlyingClaimedEvent.OutputObject>;
|
|
285
470
|
"EmergencyWithdrawal(address,uint256)": TypedContractEvent<EmergencyWithdrawalEvent.InputTuple, EmergencyWithdrawalEvent.OutputTuple, EmergencyWithdrawalEvent.OutputObject>;
|
|
286
471
|
EmergencyWithdrawal: TypedContractEvent<EmergencyWithdrawalEvent.InputTuple, EmergencyWithdrawalEvent.OutputTuple, EmergencyWithdrawalEvent.OutputObject>;
|
|
287
|
-
"FeeCollected(
|
|
472
|
+
"FeeCollected(bytes32,uint256)": TypedContractEvent<FeeCollectedEvent.InputTuple, FeeCollectedEvent.OutputTuple, FeeCollectedEvent.OutputObject>;
|
|
288
473
|
FeeCollected: TypedContractEvent<FeeCollectedEvent.InputTuple, FeeCollectedEvent.OutputTuple, FeeCollectedEvent.OutputObject>;
|
|
289
|
-
"FeeDistributed(
|
|
474
|
+
"FeeDistributed(bytes32,bytes32,address,uint256)": TypedContractEvent<FeeDistributedEvent.InputTuple, FeeDistributedEvent.OutputTuple, FeeDistributedEvent.OutputObject>;
|
|
290
475
|
FeeDistributed: TypedContractEvent<FeeDistributedEvent.InputTuple, FeeDistributedEvent.OutputTuple, FeeDistributedEvent.OutputObject>;
|
|
291
|
-
"
|
|
476
|
+
"FeeTypeAdded(bytes32)": TypedContractEvent<FeeTypeAddedEvent.InputTuple, FeeTypeAddedEvent.OutputTuple, FeeTypeAddedEvent.OutputObject>;
|
|
477
|
+
FeeTypeAdded: TypedContractEvent<FeeTypeAddedEvent.InputTuple, FeeTypeAddedEvent.OutputTuple, FeeTypeAddedEvent.OutputObject>;
|
|
478
|
+
"FeeTypeUpdated(bytes32,tuple)": TypedContractEvent<FeeTypeUpdatedEvent.InputTuple, FeeTypeUpdatedEvent.OutputTuple, FeeTypeUpdatedEvent.OutputObject>;
|
|
292
479
|
FeeTypeUpdated: TypedContractEvent<FeeTypeUpdatedEvent.InputTuple, FeeTypeUpdatedEvent.OutputTuple, FeeTypeUpdatedEvent.OutputObject>;
|
|
293
|
-
"
|
|
294
|
-
|
|
295
|
-
"
|
|
296
|
-
|
|
297
|
-
"
|
|
298
|
-
|
|
480
|
+
"TargetAddressUpdated(bytes32,address)": TypedContractEvent<TargetAddressUpdatedEvent.InputTuple, TargetAddressUpdatedEvent.OutputTuple, TargetAddressUpdatedEvent.OutputObject>;
|
|
481
|
+
TargetAddressUpdated: TypedContractEvent<TargetAddressUpdatedEvent.InputTuple, TargetAddressUpdatedEvent.OutputTuple, TargetAddressUpdatedEvent.OutputObject>;
|
|
482
|
+
"TokenAdded(address)": TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
|
|
483
|
+
TokenAdded: TypedContractEvent<TokenAddedEvent.InputTuple, TokenAddedEvent.OutputTuple, TokenAddedEvent.OutputObject>;
|
|
484
|
+
"TokenRemoved(address)": TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
|
|
485
|
+
TokenRemoved: TypedContractEvent<TokenRemovedEvent.InputTuple, TokenRemovedEvent.OutputTuple, TokenRemovedEvent.OutputObject>;
|
|
299
486
|
};
|
|
300
487
|
}
|