@raac/rpc 1.2.0-beta.10 → 1.2.0-beta.12
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 +2 -0
- package/dist/artifacts/core/governance/gauges/BaseGauge.sol/BaseGauge.json +113 -20
- package/dist/artifacts/core/governance/gauges/GaugeController.sol/GaugeController.json +259 -31
- package/dist/artifacts/core/governance/gauges/GaugeRewardsDistributor.sol/GaugeRewardsDistributor.json +159 -31
- package/dist/artifacts/core/governance/gauges/RAACGauge.sol/RAACGauge.json +115 -22
- package/dist/artifacts/core/governance/gauges/RWAGauge.sol/RWAGauge.json +115 -22
- package/dist/configs/chains/1.json +22 -25
- package/dist/configs/chains/11155111.json +76 -112
- package/dist/configs/chains/17000.json +22 -25
- package/dist/configs/chains/18453.json +22 -25
- package/dist/configs/chains/8453.json +61 -31
- package/dist/contracts/findContract.js +11 -4
- package/dist/contracts/getContractAddress.js +0 -1
- package/dist/contracts/governance/distributor/claimAll.js +18 -11
- package/dist/contracts/governance/distributor/claimForGauge.js +18 -12
- package/dist/contracts/governance/distributor/deposit.js +17 -12
- package/dist/contracts/governance/distributor/getClaimableForGauge.js +10 -9
- package/dist/contracts/governance/distributor/getClaimedAtEpoch.js +11 -10
- package/dist/contracts/governance/distributor/getDepositedAtEpoch.js +8 -8
- package/dist/contracts/governance/distributor/getDustLastProcessedEpoch.js +28 -0
- package/dist/contracts/governance/distributor/getGaugeController.js +7 -7
- package/dist/contracts/governance/distributor/getLastClaimedEpoch.js +10 -9
- package/dist/contracts/governance/distributor/getMaxClaimBound.js +29 -0
- package/dist/contracts/governance/distributor/getPeriodDuration.js +7 -7
- package/dist/contracts/governance/distributor/getRewardToken.js +7 -7
- package/dist/contracts/governance/distributor/getRewardTokenInfo.js +7 -7
- package/dist/contracts/governance/distributor/getRewardTokenStats.js +7 -7
- package/dist/contracts/governance/distributor/index.js +5 -2
- package/dist/contracts/governance/distributor/setController.js +17 -12
- package/dist/contracts/governance/distributor/setLastClaimedEpoch.js +32 -0
- package/dist/contracts/governance/distributor/setMaxClaimBound.js +31 -0
- package/dist/contracts/governance/distributor/withdrawDust.js +31 -0
- package/dist/contracts/governance/distributor/withdrawRemovedGaugeRewards.js +19 -13
- package/dist/contracts/governance/gauge/_apy.js +122 -0
- package/dist/contracts/governance/gauge/_tokens.js +36 -0
- package/dist/contracts/governance/gauge/addRewardToken.js +2 -12
- package/dist/contracts/governance/gauge/approveGaugeToken.js +31 -0
- package/dist/contracts/governance/gauge/claimExtraReward.js +2 -12
- package/dist/contracts/governance/gauge/claimExtraRewards.js +2 -12
- package/dist/contracts/governance/gauge/claimOnBehalfOf.js +2 -12
- package/dist/contracts/governance/gauge/claimRewardToken.js +3 -13
- package/dist/contracts/governance/gauge/claimRewardsFor.js +2 -12
- package/dist/contracts/governance/gauge/depositRewardToken.js +2 -12
- package/dist/contracts/governance/gauge/getAllPendingExtraRewards.js +2 -9
- package/dist/contracts/governance/gauge/getApy.js +44 -0
- package/dist/contracts/governance/gauge/getBalanceOf.js +2 -15
- package/dist/contracts/governance/gauge/getControllerAddress.js +2 -9
- package/dist/contracts/governance/gauge/getDecimalAdjustment.js +2 -9
- package/dist/contracts/governance/gauge/getDepositRAACOnClaim.js +2 -9
- package/dist/contracts/governance/gauge/getDistributorData.js +2 -9
- package/dist/contracts/governance/gauge/getDistributors.js +2 -9
- package/dist/contracts/governance/gauge/getEarnedExtraReward.js +30 -0
- package/dist/contracts/governance/gauge/getEarnedReward.js +8 -14
- package/dist/contracts/governance/gauge/getExtraRewardTokens.js +2 -9
- package/dist/contracts/governance/gauge/getGaugeData.js +39 -0
- package/dist/contracts/governance/gauge/getGaugeRewardTokenData.js +2 -9
- package/dist/contracts/governance/gauge/getPauseStatus.js +31 -0
- package/dist/contracts/governance/gauge/getPendingExtraRewards.js +2 -9
- package/dist/contracts/governance/gauge/getPendingRewards.js +8 -14
- package/dist/contracts/governance/gauge/getPeriodBoundaries.js +2 -15
- package/dist/contracts/governance/gauge/getPeriodDuration.js +2 -15
- package/dist/contracts/governance/gauge/getRaacAutolockMin.js +2 -9
- package/dist/contracts/governance/gauge/getRawBalanceOf.js +2 -15
- package/dist/contracts/governance/gauge/getRawTotalSupply.js +2 -15
- package/dist/contracts/governance/gauge/getRewardTokens.js +28 -0
- package/dist/contracts/governance/gauge/getTotalSupply.js +2 -15
- package/dist/contracts/governance/gauge/getUserApy.js +71 -0
- package/dist/contracts/governance/gauge/getUserClaimableRewards.js +21 -73
- package/dist/contracts/governance/gauge/getUserGaugeState.js +44 -0
- package/dist/contracts/governance/gauge/getUserRewardTokenData.js +2 -9
- package/dist/contracts/governance/gauge/getUserWeight.js +2 -9
- package/dist/contracts/governance/gauge/index.js +11 -1
- package/dist/contracts/governance/gauge/isPaused.js +4 -11
- package/dist/contracts/governance/gauge/manageDistributor.js +2 -12
- package/dist/contracts/governance/gauge/pullRewardsFromDistributor.js +30 -0
- package/dist/contracts/governance/gauge/setController.js +2 -12
- package/dist/contracts/governance/gauge/setDepositRAACOnClaim.js +2 -12
- package/dist/contracts/governance/gauge/setEmergencyPaused.js +2 -12
- package/dist/contracts/governance/gauge/setGaugeRewardDistributor.js +2 -12
- package/dist/contracts/governance/gauge/setRaacAutolockMin.js +2 -12
- package/dist/contracts/governance/gauge/stake.js +2 -18
- package/dist/contracts/governance/gauge/unwrapStakingToken.js +28 -0
- package/dist/contracts/governance/gauge/updateUserRewards.js +2 -18
- package/dist/contracts/governance/gauge/withdraw.js +2 -18
- package/dist/contracts/governance/gauge/wrapStakingToken.js +28 -0
- package/dist/contracts/governance/gaugeController/addGauge.js +19 -11
- package/dist/contracts/governance/gaugeController/batchVote.js +20 -12
- package/dist/contracts/governance/gaugeController/calculateBoost.js +20 -23
- package/dist/contracts/governance/gaugeController/forceCompleteCheckpoint.js +19 -11
- package/dist/contracts/governance/gaugeController/getActiveGaugeCount.js +28 -0
- package/dist/contracts/governance/gaugeController/getActiveGauges.js +10 -13
- package/dist/contracts/governance/gaugeController/getConstants.js +10 -18
- package/dist/contracts/governance/gaugeController/getCurrentEpoch.js +8 -7
- package/dist/contracts/governance/gaugeController/getExpiredGaugeVotePower.js +30 -0
- package/dist/contracts/governance/gaugeController/getGauge.js +11 -9
- package/dist/contracts/governance/gaugeController/getGaugeDistributor.js +28 -0
- package/dist/contracts/governance/gaugeController/getGaugeEmissions.js +15 -9
- package/dist/contracts/governance/gaugeController/getGaugeRelativeWeight.js +19 -15
- package/dist/contracts/governance/gaugeController/getGaugeRelativeWeightView.js +12 -10
- package/dist/contracts/governance/gaugeController/getGaugeWeight.js +10 -8
- package/dist/contracts/governance/gaugeController/getLastVoteTime.js +11 -9
- package/dist/contracts/governance/gaugeController/getMaxVoteBuckets.js +28 -0
- package/dist/contracts/governance/gaugeController/getNextEpoch.js +8 -7
- package/dist/contracts/governance/gaugeController/getRegisteredGaugeList.js +28 -0
- package/dist/contracts/governance/gaugeController/getTotalWeight.js +8 -7
- package/dist/contracts/governance/gaugeController/getUserGaugeVotePower.js +11 -9
- package/dist/contracts/governance/gaugeController/getUserVotePowerRemaining.js +10 -9
- package/dist/contracts/governance/gaugeController/getVeToken.js +8 -7
- package/dist/contracts/governance/gaugeController/getVoteUserLocks.js +32 -0
- package/dist/contracts/governance/gaugeController/getVoteUserPower.js +8 -7
- package/dist/contracts/governance/gaugeController/getVoteUserSlope.js +12 -10
- package/dist/contracts/governance/gaugeController/index.js +10 -1
- package/dist/contracts/governance/gaugeController/isGaugeActive.js +11 -9
- package/dist/contracts/governance/gaugeController/isPaused.js +9 -8
- package/dist/contracts/governance/gaugeController/kick.js +17 -10
- package/dist/contracts/governance/gaugeController/removeGauge.js +20 -11
- package/dist/contracts/governance/gaugeController/removePowerFromGauge.js +19 -11
- package/dist/contracts/governance/gaugeController/setBoostAmplificationEnabled.js +20 -12
- package/dist/contracts/governance/gaugeController/setDistributor.js +31 -0
- package/dist/contracts/governance/gaugeController/setEmergencyGaugePause.js +20 -12
- package/dist/contracts/governance/gaugeController/setEmergencyGaugePauseBatch.js +33 -0
- package/dist/contracts/governance/gaugeController/setEmergencyPause.js +18 -11
- package/dist/contracts/governance/gaugeController/setMaxVoteBuckets.js +31 -0
- package/dist/contracts/governance/gaugeController/vote.js +15 -16
- package/dist/contracts/governance/gaugeSystems/_helpers.js +123 -0
- package/dist/contracts/governance/gaugeSystems/findGauge.js +14 -0
- package/dist/contracts/governance/gaugeSystems/getGaugeSystem.js +14 -0
- package/dist/contracts/governance/gaugeSystems/getGaugeSystems.js +13 -0
- package/dist/contracts/governance/gaugeSystems/getGauges.js +15 -0
- package/dist/contracts/governance/gaugeSystems/index.js +21 -0
- package/dist/types/RPCLibrary.d.ts +2 -0
- package/dist/types/configs/chains/index.d.ts +36 -46
- package/dist/types/configs/index.d.ts +18 -23
- package/dist/types/contracts/governance/distributor/claimAll.d.ts +7 -5
- package/dist/types/contracts/governance/distributor/claimForGauge.d.ts +7 -6
- package/dist/types/contracts/governance/distributor/deposit.d.ts +7 -6
- package/dist/types/contracts/governance/distributor/getClaimableForGauge.d.ts +6 -4
- package/dist/types/contracts/governance/distributor/getClaimedAtEpoch.d.ts +7 -5
- package/dist/types/contracts/governance/distributor/getDepositedAtEpoch.d.ts +6 -4
- package/dist/types/contracts/governance/distributor/getDustLastProcessedEpoch.d.ts +12 -0
- package/dist/types/contracts/governance/distributor/getGaugeController.d.ts +5 -3
- package/dist/types/contracts/governance/distributor/getLastClaimedEpoch.d.ts +6 -4
- package/dist/types/contracts/governance/distributor/getMaxClaimBound.d.ts +15 -0
- package/dist/types/contracts/governance/distributor/getPeriodDuration.d.ts +5 -3
- package/dist/types/contracts/governance/distributor/getRewardToken.d.ts +5 -3
- package/dist/types/contracts/governance/distributor/getRewardTokenInfo.d.ts +5 -3
- package/dist/types/contracts/governance/distributor/getRewardTokenStats.d.ts +5 -3
- package/dist/types/contracts/governance/distributor/index.d.ts +5 -2
- package/dist/types/contracts/governance/distributor/setController.d.ts +7 -6
- package/dist/types/contracts/governance/distributor/setLastClaimedEpoch.d.ts +13 -0
- package/dist/types/contracts/governance/distributor/setMaxClaimBound.d.ts +13 -0
- package/dist/types/contracts/governance/distributor/withdrawDust.d.ts +13 -0
- package/dist/types/contracts/governance/distributor/withdrawRemovedGaugeRewards.d.ts +8 -7
- package/dist/types/contracts/governance/gauge/_apy.d.ts +61 -0
- package/dist/types/contracts/governance/gauge/_tokens.d.ts +14 -0
- package/dist/types/contracts/governance/gauge/approveGaugeToken.d.ts +14 -0
- package/dist/types/contracts/governance/gauge/claimRewardToken.d.ts +1 -1
- package/dist/types/contracts/governance/gauge/getApy.d.ts +41 -0
- package/dist/types/contracts/governance/gauge/getEarnedExtraReward.d.ts +13 -0
- package/dist/types/contracts/governance/gauge/getEarnedReward.d.ts +3 -2
- package/dist/types/contracts/governance/gauge/getGaugeData.d.ts +23 -0
- package/dist/types/contracts/governance/gauge/getPauseStatus.d.ts +19 -0
- package/dist/types/contracts/governance/gauge/getPendingRewards.d.ts +3 -2
- package/dist/types/contracts/governance/gauge/getRewardTokens.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/getUserApy.d.ts +44 -0
- package/dist/types/contracts/governance/gauge/getUserClaimableRewards.d.ts +14 -12
- package/dist/types/contracts/governance/gauge/getUserGaugeState.d.ts +31 -0
- package/dist/types/contracts/governance/gauge/index.d.ts +11 -1
- package/dist/types/contracts/governance/gauge/isPaused.d.ts +1 -1
- package/dist/types/contracts/governance/gauge/pullRewardsFromDistributor.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/unwrapStakingToken.d.ts +12 -0
- package/dist/types/contracts/governance/gauge/wrapStakingToken.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeController/addGauge.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/batchVote.d.ts +9 -6
- package/dist/types/contracts/governance/gaugeController/calculateBoost.d.ts +10 -8
- package/dist/types/contracts/governance/gaugeController/forceCompleteCheckpoint.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/getActiveGaugeCount.d.ts +12 -0
- package/dist/types/contracts/governance/gaugeController/getActiveGauges.d.ts +7 -3
- package/dist/types/contracts/governance/gaugeController/getConstants.d.ts +6 -4
- package/dist/types/contracts/governance/gaugeController/getCurrentEpoch.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getExpiredGaugeVotePower.d.ts +16 -0
- package/dist/types/contracts/governance/gaugeController/getGauge.d.ts +7 -4
- package/dist/types/contracts/governance/gaugeController/getGaugeDistributor.d.ts +12 -0
- package/dist/types/contracts/governance/gaugeController/getGaugeEmissions.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getGaugeRelativeWeight.d.ts +8 -9
- package/dist/types/contracts/governance/gaugeController/getGaugeRelativeWeightView.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/getGaugeWeight.d.ts +6 -4
- package/dist/types/contracts/governance/gaugeController/getLastVoteTime.d.ts +7 -4
- package/dist/types/contracts/governance/gaugeController/getMaxVoteBuckets.d.ts +12 -0
- package/dist/types/contracts/governance/gaugeController/getNextEpoch.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getRegisteredGaugeList.d.ts +12 -0
- package/dist/types/contracts/governance/gaugeController/getTotalWeight.d.ts +5 -3
- package/dist/types/contracts/governance/gaugeController/getUserGaugeVotePower.d.ts +7 -4
- package/dist/types/contracts/governance/gaugeController/getUserVotePowerRemaining.d.ts +6 -4
- package/dist/types/contracts/governance/gaugeController/getVeToken.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getVoteUserLocks.d.ts +17 -0
- package/dist/types/contracts/governance/gaugeController/getVoteUserPower.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getVoteUserSlope.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/index.d.ts +10 -1
- package/dist/types/contracts/governance/gaugeController/isGaugeActive.d.ts +6 -4
- package/dist/types/contracts/governance/gaugeController/isPaused.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/kick.d.ts +7 -4
- package/dist/types/contracts/governance/gaugeController/removeGauge.d.ts +9 -5
- package/dist/types/contracts/governance/gaugeController/removePowerFromGauge.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/setBoostAmplificationEnabled.d.ts +9 -6
- package/dist/types/contracts/governance/gaugeController/setDistributor.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeController/setEmergencyGaugePause.d.ts +9 -6
- package/dist/types/contracts/governance/gaugeController/setEmergencyGaugePauseBatch.d.ts +14 -0
- package/dist/types/contracts/governance/gaugeController/setEmergencyPause.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/setMaxVoteBuckets.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeController/vote.d.ts +9 -7
- package/dist/types/contracts/governance/gaugeSystems/_helpers.d.ts +71 -0
- package/dist/types/contracts/governance/gaugeSystems/findGauge.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeSystems/getGaugeSystem.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeSystems/getGaugeSystems.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeSystems/getGauges.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeSystems/index.d.ts +5 -0
- package/dist/types/typechain-types/contracts/core/governance/gauges/BaseGauge.d.ts +176 -105
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeController.d.ts +260 -213
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeRewardsDistributor.d.ts +173 -212
- package/dist/types/typechain-types/contracts/core/governance/gauges/RAACGauge.d.ts +176 -105
- package/dist/types/typechain-types/contracts/core/governance/gauges/RWAGauge.d.ts +176 -105
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IBaseGauge.d.ts +111 -108
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeController.d.ts +210 -34
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeRewardsDistributor.d.ts +112 -151
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/BaseGauge__factory.d.ts +174 -95
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +243 -227
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeRewardsDistributor__factory.d.ts +164 -232
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +185 -98
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +185 -98
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IBaseGauge__factory.d.ts +104 -95
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeController__factory.d.ts +241 -22
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeRewardsDistributor__factory.d.ts +72 -158
- package/dist/types/utils/artifacts.d.ts +40 -0
- package/dist/types/utils/contracts.d.ts +34 -44
- package/dist/utils/contracts.js +1 -1
- package/package.json +1 -1
- package/dist/contracts/governance/distributor/getStartEpoch.js +0 -28
- package/dist/contracts/governance/distributor/withdrawUnallocatedRewards.js +0 -26
- package/dist/contracts/governance/gauge/setDistributorApproval.js +0 -35
- package/dist/types/contracts/governance/distributor/getStartEpoch.d.ts +0 -10
- package/dist/types/contracts/governance/distributor/withdrawUnallocatedRewards.d.ts +0 -12
- package/dist/types/contracts/governance/gauge/setDistributorApproval.d.ts +0 -11
package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeRewardsDistributor.d.ts
CHANGED
|
@@ -1,136 +1,168 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
3
|
export interface GaugeRewardsDistributorInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "
|
|
4
|
+
getFunction(nameOrSignature: "CONTROLLER_ROLE" | "DEFAULT_ADMIN_ROLE" | "DISTRIBUTOR_ADMIN" | "MAX_EPOCHS" | "PERIOD_DURATION" | "claimAll" | "claimForGauge" | "claimedAtEpoch" | "deposit" | "depositedAtEpoch" | "depositedSnapshotAtLastClaim" | "dustLastProcessedEpoch" | "enableMaxClaimBound" | "gaugeController" | "gaugeLastClaimedEpoch" | "getClaimableForGauge" | "getRewardTokenInfo" | "getRoleAdmin" | "grantRole" | "hasRole" | "lastClaimedEpoch" | "renounceRole" | "revokeRole" | "rewardToken" | "rewardTokenInfo" | "setController" | "setLastClaimedEpoch" | "setMaxClaimBound" | "supportsInterface" | "withdrawDust" | "withdrawRemovedGaugeRewards"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "ControllerUpdated" | "DustWithdrawn" | "GaugeLastClaimedEpochUpdated" | "MaxClaimBoundUpdated" | "RemovedGaugeRewardsWithdrawn" | "RewardDeposited" | "RewardTransferred" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "CONTROLLER_ROLE", values?: undefined): string;
|
|
6
7
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
7
8
|
encodeFunctionData(functionFragment: "DISTRIBUTOR_ADMIN", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "MAX_EPOCHS", values?: undefined): string;
|
|
8
10
|
encodeFunctionData(functionFragment: "PERIOD_DURATION", values?: undefined): string;
|
|
9
|
-
encodeFunctionData(functionFragment: "addGaugeRewardToken", values: [AddressLike, AddressLike]): string;
|
|
10
|
-
encodeFunctionData(functionFragment: "addRewardToken", values: [AddressLike]): string;
|
|
11
11
|
encodeFunctionData(functionFragment: "claimAll", values: [AddressLike[]]): string;
|
|
12
|
-
encodeFunctionData(functionFragment: "claimForGauge", values: [AddressLike
|
|
13
|
-
encodeFunctionData(functionFragment: "claimedAtEpoch", values: [AddressLike,
|
|
12
|
+
encodeFunctionData(functionFragment: "claimForGauge", values: [AddressLike]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "claimedAtEpoch", values: [AddressLike, BigNumberish]): string;
|
|
14
14
|
encodeFunctionData(functionFragment: "deposit", values: [AddressLike, BigNumberish]): string;
|
|
15
|
-
encodeFunctionData(functionFragment: "depositableRewardTokens", values: [AddressLike]): string;
|
|
16
15
|
encodeFunctionData(functionFragment: "depositedAtEpoch", values: [AddressLike, BigNumberish]): string;
|
|
17
|
-
encodeFunctionData(functionFragment: "
|
|
16
|
+
encodeFunctionData(functionFragment: "depositedSnapshotAtLastClaim", values: [AddressLike, BigNumberish]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "dustLastProcessedEpoch", values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "enableMaxClaimBound", values?: undefined): string;
|
|
18
19
|
encodeFunctionData(functionFragment: "gaugeController", values?: undefined): string;
|
|
19
20
|
encodeFunctionData(functionFragment: "gaugeLastClaimedEpoch", values: [AddressLike]): string;
|
|
20
|
-
encodeFunctionData(functionFragment: "
|
|
21
|
-
encodeFunctionData(functionFragment: "
|
|
22
|
-
encodeFunctionData(functionFragment: "getClaimableForGauge", values: [AddressLike, AddressLike]): string;
|
|
23
|
-
encodeFunctionData(functionFragment: "getGaugeRewardTokens", values: [AddressLike]): string;
|
|
24
|
-
encodeFunctionData(functionFragment: "getRewardTokenCount", values?: undefined): string;
|
|
25
|
-
encodeFunctionData(functionFragment: "getRewardTokenInfo", values: [AddressLike]): string;
|
|
26
|
-
encodeFunctionData(functionFragment: "getRewardTokens", values?: undefined): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "getClaimableForGauge", values: [AddressLike]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "getRewardTokenInfo", values?: undefined): string;
|
|
27
23
|
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
28
24
|
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
29
25
|
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
30
|
-
encodeFunctionData(functionFragment: "
|
|
31
|
-
encodeFunctionData(functionFragment: "isTokenApproved", values: [AddressLike]): string;
|
|
32
|
-
encodeFunctionData(functionFragment: "lastClaimedEpoch", values: [AddressLike, AddressLike]): string;
|
|
33
|
-
encodeFunctionData(functionFragment: "removeGaugeRewardToken", values: [AddressLike, AddressLike]): string;
|
|
34
|
-
encodeFunctionData(functionFragment: "removeRewardToken", values: [AddressLike]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "lastClaimedEpoch", values: [AddressLike]): string;
|
|
35
27
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
36
28
|
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "rewardToken", values?: undefined): string;
|
|
37
30
|
encodeFunctionData(functionFragment: "rewardTokenInfo", values: [AddressLike]): string;
|
|
38
|
-
encodeFunctionData(functionFragment: "
|
|
39
|
-
encodeFunctionData(functionFragment: "
|
|
31
|
+
encodeFunctionData(functionFragment: "setController", values: [AddressLike]): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "setLastClaimedEpoch", values: [AddressLike]): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "setMaxClaimBound", values: [boolean]): string;
|
|
40
34
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "withdrawDust", values: [AddressLike]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "withdrawRemovedGaugeRewards", values: [AddressLike, AddressLike]): string;
|
|
37
|
+
decodeFunctionResult(functionFragment: "CONTROLLER_ROLE", data: BytesLike): Result;
|
|
41
38
|
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
42
39
|
decodeFunctionResult(functionFragment: "DISTRIBUTOR_ADMIN", data: BytesLike): Result;
|
|
40
|
+
decodeFunctionResult(functionFragment: "MAX_EPOCHS", data: BytesLike): Result;
|
|
43
41
|
decodeFunctionResult(functionFragment: "PERIOD_DURATION", data: BytesLike): Result;
|
|
44
|
-
decodeFunctionResult(functionFragment: "addGaugeRewardToken", data: BytesLike): Result;
|
|
45
|
-
decodeFunctionResult(functionFragment: "addRewardToken", data: BytesLike): Result;
|
|
46
42
|
decodeFunctionResult(functionFragment: "claimAll", data: BytesLike): Result;
|
|
47
43
|
decodeFunctionResult(functionFragment: "claimForGauge", data: BytesLike): Result;
|
|
48
44
|
decodeFunctionResult(functionFragment: "claimedAtEpoch", data: BytesLike): Result;
|
|
49
45
|
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
50
|
-
decodeFunctionResult(functionFragment: "depositableRewardTokens", data: BytesLike): Result;
|
|
51
46
|
decodeFunctionResult(functionFragment: "depositedAtEpoch", data: BytesLike): Result;
|
|
52
|
-
decodeFunctionResult(functionFragment: "
|
|
47
|
+
decodeFunctionResult(functionFragment: "depositedSnapshotAtLastClaim", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(functionFragment: "dustLastProcessedEpoch", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(functionFragment: "enableMaxClaimBound", data: BytesLike): Result;
|
|
53
50
|
decodeFunctionResult(functionFragment: "gaugeController", data: BytesLike): Result;
|
|
54
51
|
decodeFunctionResult(functionFragment: "gaugeLastClaimedEpoch", data: BytesLike): Result;
|
|
55
|
-
decodeFunctionResult(functionFragment: "gaugeRewardTokens", data: BytesLike): Result;
|
|
56
|
-
decodeFunctionResult(functionFragment: "getAvailableBalance", data: BytesLike): Result;
|
|
57
52
|
decodeFunctionResult(functionFragment: "getClaimableForGauge", data: BytesLike): Result;
|
|
58
|
-
decodeFunctionResult(functionFragment: "getGaugeRewardTokens", data: BytesLike): Result;
|
|
59
|
-
decodeFunctionResult(functionFragment: "getRewardTokenCount", data: BytesLike): Result;
|
|
60
53
|
decodeFunctionResult(functionFragment: "getRewardTokenInfo", data: BytesLike): Result;
|
|
61
|
-
decodeFunctionResult(functionFragment: "getRewardTokens", data: BytesLike): Result;
|
|
62
54
|
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
63
55
|
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
64
56
|
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
65
|
-
decodeFunctionResult(functionFragment: "isRewardTokenApproved", data: BytesLike): Result;
|
|
66
|
-
decodeFunctionResult(functionFragment: "isTokenApproved", data: BytesLike): Result;
|
|
67
57
|
decodeFunctionResult(functionFragment: "lastClaimedEpoch", data: BytesLike): Result;
|
|
68
|
-
decodeFunctionResult(functionFragment: "removeGaugeRewardToken", data: BytesLike): Result;
|
|
69
|
-
decodeFunctionResult(functionFragment: "removeRewardToken", data: BytesLike): Result;
|
|
70
58
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
71
59
|
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "rewardToken", data: BytesLike): Result;
|
|
72
61
|
decodeFunctionResult(functionFragment: "rewardTokenInfo", data: BytesLike): Result;
|
|
73
|
-
decodeFunctionResult(functionFragment: "
|
|
74
|
-
decodeFunctionResult(functionFragment: "
|
|
62
|
+
decodeFunctionResult(functionFragment: "setController", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "setLastClaimedEpoch", data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "setMaxClaimBound", data: BytesLike): Result;
|
|
75
65
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: "withdrawDust", data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(functionFragment: "withdrawRemovedGaugeRewards", data: BytesLike): Result;
|
|
76
68
|
}
|
|
77
|
-
export declare namespace
|
|
78
|
-
type InputTuple = [
|
|
79
|
-
|
|
69
|
+
export declare namespace ControllerUpdatedEvent {
|
|
70
|
+
type InputTuple = [
|
|
71
|
+
oldController: AddressLike,
|
|
72
|
+
newController: AddressLike
|
|
73
|
+
];
|
|
74
|
+
type OutputTuple = [oldController: string, newController: string];
|
|
80
75
|
interface OutputObject {
|
|
81
|
-
|
|
76
|
+
oldController: string;
|
|
77
|
+
newController: string;
|
|
78
|
+
}
|
|
79
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
80
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
81
|
+
type Log = TypedEventLog<Event>;
|
|
82
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace DustWithdrawnEvent {
|
|
85
|
+
type InputTuple = [
|
|
86
|
+
recipient: AddressLike,
|
|
87
|
+
token: AddressLike,
|
|
88
|
+
amount: BigNumberish
|
|
89
|
+
];
|
|
90
|
+
type OutputTuple = [recipient: string, token: string, amount: bigint];
|
|
91
|
+
interface OutputObject {
|
|
92
|
+
recipient: string;
|
|
82
93
|
token: string;
|
|
94
|
+
amount: bigint;
|
|
83
95
|
}
|
|
84
96
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
85
97
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
86
98
|
type Log = TypedEventLog<Event>;
|
|
87
99
|
type LogDescription = TypedLogDescription<Event>;
|
|
88
100
|
}
|
|
89
|
-
export declare namespace
|
|
90
|
-
type InputTuple = [gauge: AddressLike,
|
|
91
|
-
type OutputTuple = [gauge: string,
|
|
101
|
+
export declare namespace GaugeLastClaimedEpochUpdatedEvent {
|
|
102
|
+
type InputTuple = [gauge: AddressLike, currentEpoch: BigNumberish];
|
|
103
|
+
type OutputTuple = [gauge: string, currentEpoch: bigint];
|
|
92
104
|
interface OutputObject {
|
|
93
105
|
gauge: string;
|
|
94
|
-
|
|
106
|
+
currentEpoch: bigint;
|
|
95
107
|
}
|
|
96
108
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
97
109
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
98
110
|
type Log = TypedEventLog<Event>;
|
|
99
111
|
type LogDescription = TypedLogDescription<Event>;
|
|
100
112
|
}
|
|
101
|
-
export declare namespace
|
|
102
|
-
type InputTuple = [
|
|
103
|
-
|
|
104
|
-
depositor: AddressLike,
|
|
105
|
-
amount: BigNumberish
|
|
106
|
-
];
|
|
107
|
-
type OutputTuple = [token: string, depositor: string, amount: bigint];
|
|
113
|
+
export declare namespace MaxClaimBoundUpdatedEvent {
|
|
114
|
+
type InputTuple = [enabled: boolean];
|
|
115
|
+
type OutputTuple = [enabled: boolean];
|
|
108
116
|
interface OutputObject {
|
|
109
|
-
|
|
110
|
-
depositor: string;
|
|
111
|
-
amount: bigint;
|
|
117
|
+
enabled: boolean;
|
|
112
118
|
}
|
|
113
119
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
114
120
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
115
121
|
type Log = TypedEventLog<Event>;
|
|
116
122
|
type LogDescription = TypedLogDescription<Event>;
|
|
117
123
|
}
|
|
118
|
-
export declare namespace
|
|
119
|
-
type InputTuple = [
|
|
120
|
-
|
|
124
|
+
export declare namespace RemovedGaugeRewardsWithdrawnEvent {
|
|
125
|
+
type InputTuple = [
|
|
126
|
+
gauge: AddressLike,
|
|
127
|
+
recipient: AddressLike,
|
|
128
|
+
token: AddressLike,
|
|
129
|
+
amount: BigNumberish
|
|
130
|
+
];
|
|
131
|
+
type OutputTuple = [
|
|
132
|
+
gauge: string,
|
|
133
|
+
recipient: string,
|
|
134
|
+
token: string,
|
|
135
|
+
amount: bigint
|
|
136
|
+
];
|
|
121
137
|
interface OutputObject {
|
|
138
|
+
gauge: string;
|
|
139
|
+
recipient: string;
|
|
122
140
|
token: string;
|
|
141
|
+
amount: bigint;
|
|
123
142
|
}
|
|
124
143
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
125
144
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
126
145
|
type Log = TypedEventLog<Event>;
|
|
127
146
|
type LogDescription = TypedLogDescription<Event>;
|
|
128
147
|
}
|
|
129
|
-
export declare namespace
|
|
130
|
-
type InputTuple = [
|
|
131
|
-
|
|
148
|
+
export declare namespace RewardDepositedEvent {
|
|
149
|
+
type InputTuple = [
|
|
150
|
+
token: AddressLike,
|
|
151
|
+
depositor: AddressLike,
|
|
152
|
+
amount: BigNumberish,
|
|
153
|
+
depositedEpoch: BigNumberish
|
|
154
|
+
];
|
|
155
|
+
type OutputTuple = [
|
|
156
|
+
token: string,
|
|
157
|
+
depositor: string,
|
|
158
|
+
amount: bigint,
|
|
159
|
+
depositedEpoch: bigint
|
|
160
|
+
];
|
|
132
161
|
interface OutputObject {
|
|
133
162
|
token: string;
|
|
163
|
+
depositor: string;
|
|
164
|
+
amount: bigint;
|
|
165
|
+
depositedEpoch: bigint;
|
|
134
166
|
}
|
|
135
167
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
136
168
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -222,31 +254,20 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
222
254
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
223
255
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
224
256
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
257
|
+
CONTROLLER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
225
258
|
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
226
259
|
DISTRIBUTOR_ADMIN: TypedContractMethod<[], [string], "view">;
|
|
260
|
+
MAX_EPOCHS: TypedContractMethod<[], [bigint], "view">;
|
|
227
261
|
PERIOD_DURATION: TypedContractMethod<[], [bigint], "view">;
|
|
228
|
-
addGaugeRewardToken: TypedContractMethod<[
|
|
229
|
-
gauge: AddressLike,
|
|
230
|
-
token: AddressLike
|
|
231
|
-
], [
|
|
232
|
-
void
|
|
233
|
-
], "nonpayable">;
|
|
234
|
-
addRewardToken: TypedContractMethod<[
|
|
235
|
-
token: AddressLike
|
|
236
|
-
], [
|
|
237
|
-
void
|
|
238
|
-
], "nonpayable">;
|
|
239
262
|
claimAll: TypedContractMethod<[gauges: AddressLike[]], [void], "nonpayable">;
|
|
240
263
|
claimForGauge: TypedContractMethod<[
|
|
241
|
-
gauge: AddressLike
|
|
242
|
-
token: AddressLike
|
|
264
|
+
gauge: AddressLike
|
|
243
265
|
], [
|
|
244
266
|
bigint
|
|
245
267
|
], "nonpayable">;
|
|
246
268
|
claimedAtEpoch: TypedContractMethod<[
|
|
247
269
|
arg0: AddressLike,
|
|
248
|
-
arg1:
|
|
249
|
-
arg2: BigNumberish
|
|
270
|
+
arg1: BigNumberish
|
|
250
271
|
], [
|
|
251
272
|
bigint
|
|
252
273
|
], "view">;
|
|
@@ -256,55 +277,32 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
256
277
|
], [
|
|
257
278
|
void
|
|
258
279
|
], "nonpayable">;
|
|
259
|
-
depositableRewardTokens: TypedContractMethod<[
|
|
260
|
-
arg0: AddressLike
|
|
261
|
-
], [
|
|
262
|
-
boolean
|
|
263
|
-
], "view">;
|
|
264
280
|
depositedAtEpoch: TypedContractMethod<[
|
|
265
281
|
arg0: AddressLike,
|
|
266
282
|
arg1: BigNumberish
|
|
267
283
|
], [
|
|
268
284
|
bigint
|
|
269
285
|
], "view">;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
recipient: AddressLike
|
|
286
|
+
depositedSnapshotAtLastClaim: TypedContractMethod<[
|
|
287
|
+
arg0: AddressLike,
|
|
288
|
+
arg1: BigNumberish
|
|
274
289
|
], [
|
|
275
|
-
|
|
276
|
-
], "
|
|
290
|
+
bigint
|
|
291
|
+
], "view">;
|
|
292
|
+
dustLastProcessedEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
293
|
+
enableMaxClaimBound: TypedContractMethod<[], [boolean], "view">;
|
|
277
294
|
gaugeController: TypedContractMethod<[], [string], "view">;
|
|
278
295
|
gaugeLastClaimedEpoch: TypedContractMethod<[
|
|
279
296
|
arg0: AddressLike
|
|
280
297
|
], [
|
|
281
298
|
bigint
|
|
282
299
|
], "view">;
|
|
283
|
-
gaugeRewardTokens: TypedContractMethod<[
|
|
284
|
-
arg0: AddressLike,
|
|
285
|
-
arg1: AddressLike
|
|
286
|
-
], [
|
|
287
|
-
boolean
|
|
288
|
-
], "view">;
|
|
289
|
-
getAvailableBalance: TypedContractMethod<[
|
|
290
|
-
token: AddressLike
|
|
291
|
-
], [
|
|
292
|
-
bigint
|
|
293
|
-
], "view">;
|
|
294
300
|
getClaimableForGauge: TypedContractMethod<[
|
|
295
|
-
gauge: AddressLike,
|
|
296
|
-
token: AddressLike
|
|
297
|
-
], [
|
|
298
|
-
bigint
|
|
299
|
-
], "view">;
|
|
300
|
-
getGaugeRewardTokens: TypedContractMethod<[
|
|
301
301
|
gauge: AddressLike
|
|
302
302
|
], [
|
|
303
|
-
|
|
303
|
+
bigint
|
|
304
304
|
], "view">;
|
|
305
|
-
getRewardTokenCount: TypedContractMethod<[], [bigint], "view">;
|
|
306
305
|
getRewardTokenInfo: TypedContractMethod<[
|
|
307
|
-
token: AddressLike
|
|
308
306
|
], [
|
|
309
307
|
[
|
|
310
308
|
bigint,
|
|
@@ -318,7 +316,6 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
318
316
|
balance: bigint;
|
|
319
317
|
}
|
|
320
318
|
], "view">;
|
|
321
|
-
getRewardTokens: TypedContractMethod<[], [string[]], "view">;
|
|
322
319
|
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
323
320
|
grantRole: TypedContractMethod<[
|
|
324
321
|
role: BytesLike,
|
|
@@ -332,30 +329,7 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
332
329
|
], [
|
|
333
330
|
boolean
|
|
334
331
|
], "view">;
|
|
335
|
-
|
|
336
|
-
gauge: AddressLike,
|
|
337
|
-
token: AddressLike
|
|
338
|
-
], [
|
|
339
|
-
boolean
|
|
340
|
-
], "view">;
|
|
341
|
-
isTokenApproved: TypedContractMethod<[token: AddressLike], [boolean], "view">;
|
|
342
|
-
lastClaimedEpoch: TypedContractMethod<[
|
|
343
|
-
arg0: AddressLike,
|
|
344
|
-
arg1: AddressLike
|
|
345
|
-
], [
|
|
346
|
-
bigint
|
|
347
|
-
], "view">;
|
|
348
|
-
removeGaugeRewardToken: TypedContractMethod<[
|
|
349
|
-
gauge: AddressLike,
|
|
350
|
-
token: AddressLike
|
|
351
|
-
], [
|
|
352
|
-
void
|
|
353
|
-
], "nonpayable">;
|
|
354
|
-
removeRewardToken: TypedContractMethod<[
|
|
355
|
-
token: AddressLike
|
|
356
|
-
], [
|
|
357
|
-
void
|
|
358
|
-
], "nonpayable">;
|
|
332
|
+
lastClaimedEpoch: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
359
333
|
renounceRole: TypedContractMethod<[
|
|
360
334
|
role: BytesLike,
|
|
361
335
|
callerConfirmation: AddressLike
|
|
@@ -368,50 +342,62 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
368
342
|
], [
|
|
369
343
|
void
|
|
370
344
|
], "nonpayable">;
|
|
345
|
+
rewardToken: TypedContractMethod<[], [string], "view">;
|
|
371
346
|
rewardTokenInfo: TypedContractMethod<[
|
|
372
347
|
arg0: AddressLike
|
|
373
348
|
], [
|
|
374
349
|
[
|
|
375
350
|
bigint,
|
|
376
351
|
bigint,
|
|
377
|
-
bigint
|
|
378
|
-
boolean
|
|
352
|
+
bigint
|
|
379
353
|
] & {
|
|
380
354
|
totalDeposited: bigint;
|
|
381
355
|
totalDistributed: bigint;
|
|
382
356
|
totalClaimable: bigint;
|
|
383
|
-
isActive: boolean;
|
|
384
357
|
}
|
|
385
358
|
], "view">;
|
|
386
|
-
|
|
387
|
-
|
|
359
|
+
setController: TypedContractMethod<[
|
|
360
|
+
_controller: AddressLike
|
|
361
|
+
], [
|
|
362
|
+
void
|
|
363
|
+
], "nonpayable">;
|
|
364
|
+
setLastClaimedEpoch: TypedContractMethod<[
|
|
365
|
+
gauge: AddressLike
|
|
366
|
+
], [
|
|
367
|
+
void
|
|
368
|
+
], "nonpayable">;
|
|
369
|
+
setMaxClaimBound: TypedContractMethod<[
|
|
370
|
+
enable: boolean
|
|
371
|
+
], [
|
|
372
|
+
void
|
|
373
|
+
], "nonpayable">;
|
|
388
374
|
supportsInterface: TypedContractMethod<[
|
|
389
375
|
interfaceId: BytesLike
|
|
390
376
|
], [
|
|
391
377
|
boolean
|
|
392
378
|
], "view">;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
getFunction(nameOrSignature: "DISTRIBUTOR_ADMIN"): TypedContractMethod<[], [string], "view">;
|
|
396
|
-
getFunction(nameOrSignature: "PERIOD_DURATION"): TypedContractMethod<[], [bigint], "view">;
|
|
397
|
-
getFunction(nameOrSignature: "addGaugeRewardToken"): TypedContractMethod<[
|
|
398
|
-
gauge: AddressLike,
|
|
399
|
-
token: AddressLike
|
|
379
|
+
withdrawDust: TypedContractMethod<[
|
|
380
|
+
recipient: AddressLike
|
|
400
381
|
], [
|
|
401
|
-
|
|
382
|
+
bigint
|
|
402
383
|
], "nonpayable">;
|
|
403
|
-
|
|
404
|
-
getFunction(nameOrSignature: "claimAll"): TypedContractMethod<[gauges: AddressLike[]], [void], "nonpayable">;
|
|
405
|
-
getFunction(nameOrSignature: "claimForGauge"): TypedContractMethod<[
|
|
384
|
+
withdrawRemovedGaugeRewards: TypedContractMethod<[
|
|
406
385
|
gauge: AddressLike,
|
|
407
|
-
|
|
386
|
+
recipient: AddressLike
|
|
408
387
|
], [
|
|
409
388
|
bigint
|
|
410
389
|
], "nonpayable">;
|
|
390
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
391
|
+
getFunction(nameOrSignature: "CONTROLLER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
392
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
393
|
+
getFunction(nameOrSignature: "DISTRIBUTOR_ADMIN"): TypedContractMethod<[], [string], "view">;
|
|
394
|
+
getFunction(nameOrSignature: "MAX_EPOCHS"): TypedContractMethod<[], [bigint], "view">;
|
|
395
|
+
getFunction(nameOrSignature: "PERIOD_DURATION"): TypedContractMethod<[], [bigint], "view">;
|
|
396
|
+
getFunction(nameOrSignature: "claimAll"): TypedContractMethod<[gauges: AddressLike[]], [void], "nonpayable">;
|
|
397
|
+
getFunction(nameOrSignature: "claimForGauge"): TypedContractMethod<[gauge: AddressLike], [bigint], "nonpayable">;
|
|
411
398
|
getFunction(nameOrSignature: "claimedAtEpoch"): TypedContractMethod<[
|
|
412
399
|
arg0: AddressLike,
|
|
413
|
-
arg1:
|
|
414
|
-
arg2: BigNumberish
|
|
400
|
+
arg1: BigNumberish
|
|
415
401
|
], [
|
|
416
402
|
bigint
|
|
417
403
|
], "view">;
|
|
@@ -421,39 +407,24 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
421
407
|
], [
|
|
422
408
|
void
|
|
423
409
|
], "nonpayable">;
|
|
424
|
-
getFunction(nameOrSignature: "depositableRewardTokens"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
425
410
|
getFunction(nameOrSignature: "depositedAtEpoch"): TypedContractMethod<[
|
|
426
411
|
arg0: AddressLike,
|
|
427
412
|
arg1: BigNumberish
|
|
428
413
|
], [
|
|
429
414
|
bigint
|
|
430
415
|
], "view">;
|
|
431
|
-
getFunction(nameOrSignature: "
|
|
432
|
-
token: AddressLike,
|
|
433
|
-
amount: BigNumberish,
|
|
434
|
-
recipient: AddressLike
|
|
435
|
-
], [
|
|
436
|
-
void
|
|
437
|
-
], "nonpayable">;
|
|
438
|
-
getFunction(nameOrSignature: "gaugeController"): TypedContractMethod<[], [string], "view">;
|
|
439
|
-
getFunction(nameOrSignature: "gaugeLastClaimedEpoch"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
440
|
-
getFunction(nameOrSignature: "gaugeRewardTokens"): TypedContractMethod<[
|
|
416
|
+
getFunction(nameOrSignature: "depositedSnapshotAtLastClaim"): TypedContractMethod<[
|
|
441
417
|
arg0: AddressLike,
|
|
442
|
-
arg1:
|
|
443
|
-
], [
|
|
444
|
-
boolean
|
|
445
|
-
], "view">;
|
|
446
|
-
getFunction(nameOrSignature: "getAvailableBalance"): TypedContractMethod<[token: AddressLike], [bigint], "view">;
|
|
447
|
-
getFunction(nameOrSignature: "getClaimableForGauge"): TypedContractMethod<[
|
|
448
|
-
gauge: AddressLike,
|
|
449
|
-
token: AddressLike
|
|
418
|
+
arg1: BigNumberish
|
|
450
419
|
], [
|
|
451
420
|
bigint
|
|
452
421
|
], "view">;
|
|
453
|
-
getFunction(nameOrSignature: "
|
|
454
|
-
getFunction(nameOrSignature: "
|
|
422
|
+
getFunction(nameOrSignature: "dustLastProcessedEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
423
|
+
getFunction(nameOrSignature: "enableMaxClaimBound"): TypedContractMethod<[], [boolean], "view">;
|
|
424
|
+
getFunction(nameOrSignature: "gaugeController"): TypedContractMethod<[], [string], "view">;
|
|
425
|
+
getFunction(nameOrSignature: "gaugeLastClaimedEpoch"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
426
|
+
getFunction(nameOrSignature: "getClaimableForGauge"): TypedContractMethod<[gauge: AddressLike], [bigint], "view">;
|
|
455
427
|
getFunction(nameOrSignature: "getRewardTokenInfo"): TypedContractMethod<[
|
|
456
|
-
token: AddressLike
|
|
457
428
|
], [
|
|
458
429
|
[
|
|
459
430
|
bigint,
|
|
@@ -467,7 +438,6 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
467
438
|
balance: bigint;
|
|
468
439
|
}
|
|
469
440
|
], "view">;
|
|
470
|
-
getFunction(nameOrSignature: "getRewardTokens"): TypedContractMethod<[], [string[]], "view">;
|
|
471
441
|
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
472
442
|
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
473
443
|
role: BytesLike,
|
|
@@ -481,26 +451,7 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
481
451
|
], [
|
|
482
452
|
boolean
|
|
483
453
|
], "view">;
|
|
484
|
-
getFunction(nameOrSignature: "
|
|
485
|
-
gauge: AddressLike,
|
|
486
|
-
token: AddressLike
|
|
487
|
-
], [
|
|
488
|
-
boolean
|
|
489
|
-
], "view">;
|
|
490
|
-
getFunction(nameOrSignature: "isTokenApproved"): TypedContractMethod<[token: AddressLike], [boolean], "view">;
|
|
491
|
-
getFunction(nameOrSignature: "lastClaimedEpoch"): TypedContractMethod<[
|
|
492
|
-
arg0: AddressLike,
|
|
493
|
-
arg1: AddressLike
|
|
494
|
-
], [
|
|
495
|
-
bigint
|
|
496
|
-
], "view">;
|
|
497
|
-
getFunction(nameOrSignature: "removeGaugeRewardToken"): TypedContractMethod<[
|
|
498
|
-
gauge: AddressLike,
|
|
499
|
-
token: AddressLike
|
|
500
|
-
], [
|
|
501
|
-
void
|
|
502
|
-
], "nonpayable">;
|
|
503
|
-
getFunction(nameOrSignature: "removeRewardToken"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
454
|
+
getFunction(nameOrSignature: "lastClaimedEpoch"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
504
455
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
505
456
|
role: BytesLike,
|
|
506
457
|
callerConfirmation: AddressLike
|
|
@@ -513,44 +464,54 @@ export interface GaugeRewardsDistributor extends BaseContract {
|
|
|
513
464
|
], [
|
|
514
465
|
void
|
|
515
466
|
], "nonpayable">;
|
|
467
|
+
getFunction(nameOrSignature: "rewardToken"): TypedContractMethod<[], [string], "view">;
|
|
516
468
|
getFunction(nameOrSignature: "rewardTokenInfo"): TypedContractMethod<[
|
|
517
469
|
arg0: AddressLike
|
|
518
470
|
], [
|
|
519
471
|
[
|
|
520
472
|
bigint,
|
|
521
473
|
bigint,
|
|
522
|
-
bigint
|
|
523
|
-
boolean
|
|
474
|
+
bigint
|
|
524
475
|
] & {
|
|
525
476
|
totalDeposited: bigint;
|
|
526
477
|
totalDistributed: bigint;
|
|
527
478
|
totalClaimable: bigint;
|
|
528
|
-
isActive: boolean;
|
|
529
479
|
}
|
|
530
480
|
], "view">;
|
|
531
|
-
getFunction(nameOrSignature: "
|
|
532
|
-
getFunction(nameOrSignature: "
|
|
481
|
+
getFunction(nameOrSignature: "setController"): TypedContractMethod<[_controller: AddressLike], [void], "nonpayable">;
|
|
482
|
+
getFunction(nameOrSignature: "setLastClaimedEpoch"): TypedContractMethod<[gauge: AddressLike], [void], "nonpayable">;
|
|
483
|
+
getFunction(nameOrSignature: "setMaxClaimBound"): TypedContractMethod<[enable: boolean], [void], "nonpayable">;
|
|
533
484
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
534
|
-
|
|
535
|
-
|
|
485
|
+
getFunction(nameOrSignature: "withdrawDust"): TypedContractMethod<[recipient: AddressLike], [bigint], "nonpayable">;
|
|
486
|
+
getFunction(nameOrSignature: "withdrawRemovedGaugeRewards"): TypedContractMethod<[
|
|
487
|
+
gauge: AddressLike,
|
|
488
|
+
recipient: AddressLike
|
|
489
|
+
], [
|
|
490
|
+
bigint
|
|
491
|
+
], "nonpayable">;
|
|
492
|
+
getEvent(key: "ControllerUpdated"): TypedContractEvent<ControllerUpdatedEvent.InputTuple, ControllerUpdatedEvent.OutputTuple, ControllerUpdatedEvent.OutputObject>;
|
|
493
|
+
getEvent(key: "DustWithdrawn"): TypedContractEvent<DustWithdrawnEvent.InputTuple, DustWithdrawnEvent.OutputTuple, DustWithdrawnEvent.OutputObject>;
|
|
494
|
+
getEvent(key: "GaugeLastClaimedEpochUpdated"): TypedContractEvent<GaugeLastClaimedEpochUpdatedEvent.InputTuple, GaugeLastClaimedEpochUpdatedEvent.OutputTuple, GaugeLastClaimedEpochUpdatedEvent.OutputObject>;
|
|
495
|
+
getEvent(key: "MaxClaimBoundUpdated"): TypedContractEvent<MaxClaimBoundUpdatedEvent.InputTuple, MaxClaimBoundUpdatedEvent.OutputTuple, MaxClaimBoundUpdatedEvent.OutputObject>;
|
|
496
|
+
getEvent(key: "RemovedGaugeRewardsWithdrawn"): TypedContractEvent<RemovedGaugeRewardsWithdrawnEvent.InputTuple, RemovedGaugeRewardsWithdrawnEvent.OutputTuple, RemovedGaugeRewardsWithdrawnEvent.OutputObject>;
|
|
536
497
|
getEvent(key: "RewardDeposited"): TypedContractEvent<RewardDepositedEvent.InputTuple, RewardDepositedEvent.OutputTuple, RewardDepositedEvent.OutputObject>;
|
|
537
|
-
getEvent(key: "RewardTokenAdded"): TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
|
|
538
|
-
getEvent(key: "RewardTokenRemoved"): TypedContractEvent<RewardTokenRemovedEvent.InputTuple, RewardTokenRemovedEvent.OutputTuple, RewardTokenRemovedEvent.OutputObject>;
|
|
539
498
|
getEvent(key: "RewardTransferred"): TypedContractEvent<RewardTransferredEvent.InputTuple, RewardTransferredEvent.OutputTuple, RewardTransferredEvent.OutputObject>;
|
|
540
499
|
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
541
500
|
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
542
501
|
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
543
502
|
filters: {
|
|
544
|
-
"
|
|
545
|
-
|
|
546
|
-
"
|
|
547
|
-
|
|
548
|
-
"
|
|
503
|
+
"ControllerUpdated(address,address)": TypedContractEvent<ControllerUpdatedEvent.InputTuple, ControllerUpdatedEvent.OutputTuple, ControllerUpdatedEvent.OutputObject>;
|
|
504
|
+
ControllerUpdated: TypedContractEvent<ControllerUpdatedEvent.InputTuple, ControllerUpdatedEvent.OutputTuple, ControllerUpdatedEvent.OutputObject>;
|
|
505
|
+
"DustWithdrawn(address,address,uint256)": TypedContractEvent<DustWithdrawnEvent.InputTuple, DustWithdrawnEvent.OutputTuple, DustWithdrawnEvent.OutputObject>;
|
|
506
|
+
DustWithdrawn: TypedContractEvent<DustWithdrawnEvent.InputTuple, DustWithdrawnEvent.OutputTuple, DustWithdrawnEvent.OutputObject>;
|
|
507
|
+
"GaugeLastClaimedEpochUpdated(address,uint256)": TypedContractEvent<GaugeLastClaimedEpochUpdatedEvent.InputTuple, GaugeLastClaimedEpochUpdatedEvent.OutputTuple, GaugeLastClaimedEpochUpdatedEvent.OutputObject>;
|
|
508
|
+
GaugeLastClaimedEpochUpdated: TypedContractEvent<GaugeLastClaimedEpochUpdatedEvent.InputTuple, GaugeLastClaimedEpochUpdatedEvent.OutputTuple, GaugeLastClaimedEpochUpdatedEvent.OutputObject>;
|
|
509
|
+
"MaxClaimBoundUpdated(bool)": TypedContractEvent<MaxClaimBoundUpdatedEvent.InputTuple, MaxClaimBoundUpdatedEvent.OutputTuple, MaxClaimBoundUpdatedEvent.OutputObject>;
|
|
510
|
+
MaxClaimBoundUpdated: TypedContractEvent<MaxClaimBoundUpdatedEvent.InputTuple, MaxClaimBoundUpdatedEvent.OutputTuple, MaxClaimBoundUpdatedEvent.OutputObject>;
|
|
511
|
+
"RemovedGaugeRewardsWithdrawn(address,address,address,uint256)": TypedContractEvent<RemovedGaugeRewardsWithdrawnEvent.InputTuple, RemovedGaugeRewardsWithdrawnEvent.OutputTuple, RemovedGaugeRewardsWithdrawnEvent.OutputObject>;
|
|
512
|
+
RemovedGaugeRewardsWithdrawn: TypedContractEvent<RemovedGaugeRewardsWithdrawnEvent.InputTuple, RemovedGaugeRewardsWithdrawnEvent.OutputTuple, RemovedGaugeRewardsWithdrawnEvent.OutputObject>;
|
|
513
|
+
"RewardDeposited(address,address,uint256,uint256)": TypedContractEvent<RewardDepositedEvent.InputTuple, RewardDepositedEvent.OutputTuple, RewardDepositedEvent.OutputObject>;
|
|
549
514
|
RewardDeposited: TypedContractEvent<RewardDepositedEvent.InputTuple, RewardDepositedEvent.OutputTuple, RewardDepositedEvent.OutputObject>;
|
|
550
|
-
"RewardTokenAdded(address)": TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
|
|
551
|
-
RewardTokenAdded: TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
|
|
552
|
-
"RewardTokenRemoved(address)": TypedContractEvent<RewardTokenRemovedEvent.InputTuple, RewardTokenRemovedEvent.OutputTuple, RewardTokenRemovedEvent.OutputObject>;
|
|
553
|
-
RewardTokenRemoved: TypedContractEvent<RewardTokenRemovedEvent.InputTuple, RewardTokenRemovedEvent.OutputTuple, RewardTokenRemovedEvent.OutputObject>;
|
|
554
515
|
"RewardTransferred(address,address,uint256)": TypedContractEvent<RewardTransferredEvent.InputTuple, RewardTransferredEvent.OutputTuple, RewardTransferredEvent.OutputObject>;
|
|
555
516
|
RewardTransferred: TypedContractEvent<RewardTransferredEvent.InputTuple, RewardTransferredEvent.OutputTuple, RewardTransferredEvent.OutputObject>;
|
|
556
517
|
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|