@raac/rpc 1.2.0-beta.10 → 1.2.0-beta.11
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 +56 -71
- 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
|
@@ -1,136 +1,143 @@
|
|
|
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
|
+
export declare namespace IGaugeController {
|
|
4
|
+
type LockVoteEntryStruct = {
|
|
5
|
+
locked: BigNumberish;
|
|
6
|
+
unlockTime: BigNumberish;
|
|
7
|
+
};
|
|
8
|
+
type LockVoteEntryStructOutput = [
|
|
9
|
+
locked: bigint,
|
|
10
|
+
unlockTime: bigint
|
|
11
|
+
] & {
|
|
12
|
+
locked: bigint;
|
|
13
|
+
unlockTime: bigint;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
3
16
|
export interface GaugeControllerInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "BoostAmplificationToggled" | "
|
|
6
|
-
encodeFunctionData(functionFragment: "CHECKPOINT_INTERVAL", values?: undefined): string;
|
|
17
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ADMIN" | "GAUGE_ADMIN" | "MAX_BOOST" | "MAX_VOTE_WEIGHT" | "MIN_BOOST" | "MIN_VOTE_WEIGHT" | "WEEK" | "WEIGHT_PRECISION" | "WEIGHT_VOTE_DELAY" | "activeGaugeCount" | "addGauge" | "batchVote" | "calculateBoost" | "changesSum" | "changesWeight" | "forceCompleteCheckpoint" | "gaugeDistributor" | "gauges" | "getActiveGauges" | "getCurrentEpoch" | "getExpiredGaugeVotePower" | "getGaugeRelativeWeight" | "getGaugeRelativeWeightView" | "getGaugeWeight" | "getNextEpoch" | "getRegisteredGaugeList" | "getRoleAdmin" | "getTotalWeight" | "getUserGaugeVotePower" | "getUserVotePowerRemaining" | "getVoteUserLocks" | "grantRole" | "hasRole" | "isGaugeActive" | "isPaused" | "kick" | "lastVoteTime" | "maxVoteBuckets" | "paused" | "pointsSum" | "pointsWeight" | "removeGauge" | "removePowerFromGauge" | "renounceRole" | "revokeRole" | "setBoostAmplificationEnabled" | "setDistributor" | "setEmergencyGaugePause" | "setEmergencyGaugePauseBatch" | "setEmergencyPause" | "setMaxVoteBuckets" | "supportsInterface" | "timeSum" | "timeWeight" | "userGaugeVoteWeight" | "userVotedGauges" | "veToken" | "vote" | "voteUserLockEntries" | "voteUserPower" | "voteUserSlopes"): FunctionFragment;
|
|
18
|
+
getEvent(nameOrSignatureOrTopic: "BoostAmplificationToggled" | "EmergencyGaugePauseUpdated" | "EmergencyPauseUpdated" | "GaugeAdded" | "GaugeKicked" | "GaugeRemoved" | "GaugeRewardsDistributorUpdated" | "MaxVoteBucketsUpdated" | "Paused" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "Unpaused" | "VeBoostProxyUpdated" | "VoteWeightUpdated" | "VotesKicked" | "VotingPowerRemovedInactiveGauge"): EventFragment;
|
|
7
19
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
8
20
|
encodeFunctionData(functionFragment: "EMERGENCY_ADMIN", values?: undefined): string;
|
|
9
21
|
encodeFunctionData(functionFragment: "GAUGE_ADMIN", values?: undefined): string;
|
|
10
22
|
encodeFunctionData(functionFragment: "MAX_BOOST", values?: undefined): string;
|
|
11
|
-
encodeFunctionData(functionFragment: "MAX_CHECKPOINT_ITERATIONS", values?: undefined): string;
|
|
12
23
|
encodeFunctionData(functionFragment: "MAX_VOTE_WEIGHT", values?: undefined): string;
|
|
13
24
|
encodeFunctionData(functionFragment: "MIN_BOOST", values?: undefined): string;
|
|
14
25
|
encodeFunctionData(functionFragment: "MIN_VOTE_WEIGHT", values?: undefined): string;
|
|
15
26
|
encodeFunctionData(functionFragment: "WEEK", values?: undefined): string;
|
|
16
27
|
encodeFunctionData(functionFragment: "WEIGHT_PRECISION", values?: undefined): string;
|
|
17
28
|
encodeFunctionData(functionFragment: "WEIGHT_VOTE_DELAY", values?: undefined): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "activeGaugeCount", values?: undefined): string;
|
|
18
30
|
encodeFunctionData(functionFragment: "addGauge", values: [AddressLike]): string;
|
|
19
31
|
encodeFunctionData(functionFragment: "batchVote", values: [AddressLike[], BigNumberish[]]): string;
|
|
20
32
|
encodeFunctionData(functionFragment: "calculateBoost", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
21
33
|
encodeFunctionData(functionFragment: "changesSum", values: [BigNumberish]): string;
|
|
22
34
|
encodeFunctionData(functionFragment: "changesWeight", values: [AddressLike, BigNumberish]): string;
|
|
23
|
-
encodeFunctionData(functionFragment: "currentGaugePoint", values: [AddressLike]): string;
|
|
24
|
-
encodeFunctionData(functionFragment: "currentTotalPoint", values?: undefined): string;
|
|
25
|
-
encodeFunctionData(functionFragment: "emergencyShutdown", values: [AddressLike]): string;
|
|
26
35
|
encodeFunctionData(functionFragment: "forceCompleteCheckpoint", values: [AddressLike]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "gaugeDistributor", values?: undefined): string;
|
|
27
37
|
encodeFunctionData(functionFragment: "gauges", values: [AddressLike]): string;
|
|
28
38
|
encodeFunctionData(functionFragment: "getActiveGauges", values?: undefined): string;
|
|
29
39
|
encodeFunctionData(functionFragment: "getCurrentEpoch", values?: undefined): string;
|
|
40
|
+
encodeFunctionData(functionFragment: "getExpiredGaugeVotePower", values: [AddressLike]): string;
|
|
30
41
|
encodeFunctionData(functionFragment: "getGaugeRelativeWeight", values: [AddressLike, BigNumberish]): string;
|
|
31
42
|
encodeFunctionData(functionFragment: "getGaugeRelativeWeightView", values: [AddressLike, BigNumberish]): string;
|
|
32
43
|
encodeFunctionData(functionFragment: "getGaugeWeight", values: [AddressLike]): string;
|
|
33
44
|
encodeFunctionData(functionFragment: "getNextEpoch", values?: undefined): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "getRegisteredGaugeList", values?: undefined): string;
|
|
34
46
|
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
35
47
|
encodeFunctionData(functionFragment: "getTotalWeight", values?: undefined): string;
|
|
36
|
-
encodeFunctionData(functionFragment: "
|
|
48
|
+
encodeFunctionData(functionFragment: "getUserGaugeVotePower", values: [AddressLike, AddressLike]): string;
|
|
37
49
|
encodeFunctionData(functionFragment: "getUserVotePowerRemaining", values: [AddressLike]): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "getVoteUserLocks", values: [AddressLike, AddressLike]): string;
|
|
38
51
|
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
39
52
|
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
40
|
-
encodeFunctionData(functionFragment: "isGauge", values: [AddressLike]): string;
|
|
41
53
|
encodeFunctionData(functionFragment: "isGaugeActive", values: [AddressLike]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "isPaused", values?: undefined): string;
|
|
42
55
|
encodeFunctionData(functionFragment: "kick", values: [AddressLike]): string;
|
|
43
|
-
encodeFunctionData(functionFragment: "
|
|
44
|
-
encodeFunctionData(functionFragment: "
|
|
45
|
-
encodeFunctionData(functionFragment: "lastTotalCheckpoint", values?: undefined): string;
|
|
46
|
-
encodeFunctionData(functionFragment: "lastUserVoteTime", values: [AddressLike, AddressLike]): string;
|
|
47
|
-
encodeFunctionData(functionFragment: "lastVoteTime", values: [AddressLike]): string;
|
|
56
|
+
encodeFunctionData(functionFragment: "lastVoteTime", values: [AddressLike, AddressLike]): string;
|
|
57
|
+
encodeFunctionData(functionFragment: "maxVoteBuckets", values?: undefined): string;
|
|
48
58
|
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
49
59
|
encodeFunctionData(functionFragment: "pointsSum", values: [BigNumberish]): string;
|
|
50
60
|
encodeFunctionData(functionFragment: "pointsWeight", values: [AddressLike, BigNumberish]): string;
|
|
51
|
-
encodeFunctionData(functionFragment: "removeGauge", values: [AddressLike]): string;
|
|
61
|
+
encodeFunctionData(functionFragment: "removeGauge", values: [AddressLike, AddressLike]): string;
|
|
62
|
+
encodeFunctionData(functionFragment: "removePowerFromGauge", values: [AddressLike]): string;
|
|
52
63
|
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
53
64
|
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
54
65
|
encodeFunctionData(functionFragment: "setBoostAmplificationEnabled", values: [AddressLike, boolean]): string;
|
|
66
|
+
encodeFunctionData(functionFragment: "setDistributor", values: [AddressLike]): string;
|
|
67
|
+
encodeFunctionData(functionFragment: "setEmergencyGaugePause", values: [AddressLike, boolean]): string;
|
|
68
|
+
encodeFunctionData(functionFragment: "setEmergencyGaugePauseBatch", values: [AddressLike[], boolean[]]): string;
|
|
55
69
|
encodeFunctionData(functionFragment: "setEmergencyPause", values: [boolean]): string;
|
|
56
|
-
encodeFunctionData(functionFragment: "
|
|
70
|
+
encodeFunctionData(functionFragment: "setMaxVoteBuckets", values: [BigNumberish]): string;
|
|
57
71
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
58
72
|
encodeFunctionData(functionFragment: "timeSum", values?: undefined): string;
|
|
59
73
|
encodeFunctionData(functionFragment: "timeWeight", values: [AddressLike]): string;
|
|
60
|
-
encodeFunctionData(functionFragment: "toggleGaugeStatus", values: [AddressLike]): string;
|
|
61
|
-
encodeFunctionData(functionFragment: "totalSlopeChanges", values: [BigNumberish]): string;
|
|
62
74
|
encodeFunctionData(functionFragment: "userGaugeVoteWeight", values: [AddressLike, AddressLike]): string;
|
|
63
|
-
encodeFunctionData(functionFragment: "userVotePoint", values: [AddressLike, AddressLike]): string;
|
|
64
|
-
encodeFunctionData(functionFragment: "userVotePowerUsed", values: [AddressLike]): string;
|
|
65
75
|
encodeFunctionData(functionFragment: "userVotedGauges", values: [AddressLike, BigNumberish]): string;
|
|
66
76
|
encodeFunctionData(functionFragment: "veToken", values?: undefined): string;
|
|
67
77
|
encodeFunctionData(functionFragment: "vote", values: [AddressLike, BigNumberish]): string;
|
|
68
|
-
encodeFunctionData(functionFragment: "
|
|
78
|
+
encodeFunctionData(functionFragment: "voteUserLockEntries", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
69
79
|
encodeFunctionData(functionFragment: "voteUserPower", values: [AddressLike]): string;
|
|
70
80
|
encodeFunctionData(functionFragment: "voteUserSlopes", values: [AddressLike, AddressLike]): string;
|
|
71
|
-
decodeFunctionResult(functionFragment: "CHECKPOINT_INTERVAL", data: BytesLike): Result;
|
|
72
81
|
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
73
82
|
decodeFunctionResult(functionFragment: "EMERGENCY_ADMIN", data: BytesLike): Result;
|
|
74
83
|
decodeFunctionResult(functionFragment: "GAUGE_ADMIN", data: BytesLike): Result;
|
|
75
84
|
decodeFunctionResult(functionFragment: "MAX_BOOST", data: BytesLike): Result;
|
|
76
|
-
decodeFunctionResult(functionFragment: "MAX_CHECKPOINT_ITERATIONS", data: BytesLike): Result;
|
|
77
85
|
decodeFunctionResult(functionFragment: "MAX_VOTE_WEIGHT", data: BytesLike): Result;
|
|
78
86
|
decodeFunctionResult(functionFragment: "MIN_BOOST", data: BytesLike): Result;
|
|
79
87
|
decodeFunctionResult(functionFragment: "MIN_VOTE_WEIGHT", data: BytesLike): Result;
|
|
80
88
|
decodeFunctionResult(functionFragment: "WEEK", data: BytesLike): Result;
|
|
81
89
|
decodeFunctionResult(functionFragment: "WEIGHT_PRECISION", data: BytesLike): Result;
|
|
82
90
|
decodeFunctionResult(functionFragment: "WEIGHT_VOTE_DELAY", data: BytesLike): Result;
|
|
91
|
+
decodeFunctionResult(functionFragment: "activeGaugeCount", data: BytesLike): Result;
|
|
83
92
|
decodeFunctionResult(functionFragment: "addGauge", data: BytesLike): Result;
|
|
84
93
|
decodeFunctionResult(functionFragment: "batchVote", data: BytesLike): Result;
|
|
85
94
|
decodeFunctionResult(functionFragment: "calculateBoost", data: BytesLike): Result;
|
|
86
95
|
decodeFunctionResult(functionFragment: "changesSum", data: BytesLike): Result;
|
|
87
96
|
decodeFunctionResult(functionFragment: "changesWeight", data: BytesLike): Result;
|
|
88
|
-
decodeFunctionResult(functionFragment: "currentGaugePoint", data: BytesLike): Result;
|
|
89
|
-
decodeFunctionResult(functionFragment: "currentTotalPoint", data: BytesLike): Result;
|
|
90
|
-
decodeFunctionResult(functionFragment: "emergencyShutdown", data: BytesLike): Result;
|
|
91
97
|
decodeFunctionResult(functionFragment: "forceCompleteCheckpoint", data: BytesLike): Result;
|
|
98
|
+
decodeFunctionResult(functionFragment: "gaugeDistributor", data: BytesLike): Result;
|
|
92
99
|
decodeFunctionResult(functionFragment: "gauges", data: BytesLike): Result;
|
|
93
100
|
decodeFunctionResult(functionFragment: "getActiveGauges", data: BytesLike): Result;
|
|
94
101
|
decodeFunctionResult(functionFragment: "getCurrentEpoch", data: BytesLike): Result;
|
|
102
|
+
decodeFunctionResult(functionFragment: "getExpiredGaugeVotePower", data: BytesLike): Result;
|
|
95
103
|
decodeFunctionResult(functionFragment: "getGaugeRelativeWeight", data: BytesLike): Result;
|
|
96
104
|
decodeFunctionResult(functionFragment: "getGaugeRelativeWeightView", data: BytesLike): Result;
|
|
97
105
|
decodeFunctionResult(functionFragment: "getGaugeWeight", data: BytesLike): Result;
|
|
98
106
|
decodeFunctionResult(functionFragment: "getNextEpoch", data: BytesLike): Result;
|
|
107
|
+
decodeFunctionResult(functionFragment: "getRegisteredGaugeList", data: BytesLike): Result;
|
|
99
108
|
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
100
109
|
decodeFunctionResult(functionFragment: "getTotalWeight", data: BytesLike): Result;
|
|
101
|
-
decodeFunctionResult(functionFragment: "
|
|
110
|
+
decodeFunctionResult(functionFragment: "getUserGaugeVotePower", data: BytesLike): Result;
|
|
102
111
|
decodeFunctionResult(functionFragment: "getUserVotePowerRemaining", data: BytesLike): Result;
|
|
112
|
+
decodeFunctionResult(functionFragment: "getVoteUserLocks", data: BytesLike): Result;
|
|
103
113
|
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
104
114
|
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
105
|
-
decodeFunctionResult(functionFragment: "isGauge", data: BytesLike): Result;
|
|
106
115
|
decodeFunctionResult(functionFragment: "isGaugeActive", data: BytesLike): Result;
|
|
116
|
+
decodeFunctionResult(functionFragment: "isPaused", data: BytesLike): Result;
|
|
107
117
|
decodeFunctionResult(functionFragment: "kick", data: BytesLike): Result;
|
|
108
|
-
decodeFunctionResult(functionFragment: "lastCheckpoint", data: BytesLike): Result;
|
|
109
|
-
decodeFunctionResult(functionFragment: "lastGaugeUpdate", data: BytesLike): Result;
|
|
110
|
-
decodeFunctionResult(functionFragment: "lastTotalCheckpoint", data: BytesLike): Result;
|
|
111
|
-
decodeFunctionResult(functionFragment: "lastUserVoteTime", data: BytesLike): Result;
|
|
112
118
|
decodeFunctionResult(functionFragment: "lastVoteTime", data: BytesLike): Result;
|
|
119
|
+
decodeFunctionResult(functionFragment: "maxVoteBuckets", data: BytesLike): Result;
|
|
113
120
|
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
|
|
114
121
|
decodeFunctionResult(functionFragment: "pointsSum", data: BytesLike): Result;
|
|
115
122
|
decodeFunctionResult(functionFragment: "pointsWeight", data: BytesLike): Result;
|
|
116
123
|
decodeFunctionResult(functionFragment: "removeGauge", data: BytesLike): Result;
|
|
124
|
+
decodeFunctionResult(functionFragment: "removePowerFromGauge", data: BytesLike): Result;
|
|
117
125
|
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
118
126
|
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
119
127
|
decodeFunctionResult(functionFragment: "setBoostAmplificationEnabled", data: BytesLike): Result;
|
|
128
|
+
decodeFunctionResult(functionFragment: "setDistributor", data: BytesLike): Result;
|
|
129
|
+
decodeFunctionResult(functionFragment: "setEmergencyGaugePause", data: BytesLike): Result;
|
|
130
|
+
decodeFunctionResult(functionFragment: "setEmergencyGaugePauseBatch", data: BytesLike): Result;
|
|
120
131
|
decodeFunctionResult(functionFragment: "setEmergencyPause", data: BytesLike): Result;
|
|
121
|
-
decodeFunctionResult(functionFragment: "
|
|
132
|
+
decodeFunctionResult(functionFragment: "setMaxVoteBuckets", data: BytesLike): Result;
|
|
122
133
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
123
134
|
decodeFunctionResult(functionFragment: "timeSum", data: BytesLike): Result;
|
|
124
135
|
decodeFunctionResult(functionFragment: "timeWeight", data: BytesLike): Result;
|
|
125
|
-
decodeFunctionResult(functionFragment: "toggleGaugeStatus", data: BytesLike): Result;
|
|
126
|
-
decodeFunctionResult(functionFragment: "totalSlopeChanges", data: BytesLike): Result;
|
|
127
136
|
decodeFunctionResult(functionFragment: "userGaugeVoteWeight", data: BytesLike): Result;
|
|
128
|
-
decodeFunctionResult(functionFragment: "userVotePoint", data: BytesLike): Result;
|
|
129
|
-
decodeFunctionResult(functionFragment: "userVotePowerUsed", data: BytesLike): Result;
|
|
130
137
|
decodeFunctionResult(functionFragment: "userVotedGauges", data: BytesLike): Result;
|
|
131
138
|
decodeFunctionResult(functionFragment: "veToken", data: BytesLike): Result;
|
|
132
139
|
decodeFunctionResult(functionFragment: "vote", data: BytesLike): Result;
|
|
133
|
-
decodeFunctionResult(functionFragment: "
|
|
140
|
+
decodeFunctionResult(functionFragment: "voteUserLockEntries", data: BytesLike): Result;
|
|
134
141
|
decodeFunctionResult(functionFragment: "voteUserPower", data: BytesLike): Result;
|
|
135
142
|
decodeFunctionResult(functionFragment: "voteUserSlopes", data: BytesLike): Result;
|
|
136
143
|
}
|
|
@@ -152,6 +159,27 @@ export declare namespace BoostAmplificationToggledEvent {
|
|
|
152
159
|
type Log = TypedEventLog<Event>;
|
|
153
160
|
type LogDescription = TypedLogDescription<Event>;
|
|
154
161
|
}
|
|
162
|
+
export declare namespace EmergencyGaugePauseUpdatedEvent {
|
|
163
|
+
type InputTuple = [
|
|
164
|
+
gauge: AddressLike,
|
|
165
|
+
paused: boolean,
|
|
166
|
+
triggeredBy: AddressLike
|
|
167
|
+
];
|
|
168
|
+
type OutputTuple = [
|
|
169
|
+
gauge: string,
|
|
170
|
+
paused: boolean,
|
|
171
|
+
triggeredBy: string
|
|
172
|
+
];
|
|
173
|
+
interface OutputObject {
|
|
174
|
+
gauge: string;
|
|
175
|
+
paused: boolean;
|
|
176
|
+
triggeredBy: string;
|
|
177
|
+
}
|
|
178
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
179
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
180
|
+
type Log = TypedEventLog<Event>;
|
|
181
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
182
|
+
}
|
|
155
183
|
export declare namespace EmergencyPauseUpdatedEvent {
|
|
156
184
|
type InputTuple = [paused: boolean];
|
|
157
185
|
type OutputTuple = [paused: boolean];
|
|
@@ -163,23 +191,28 @@ export declare namespace EmergencyPauseUpdatedEvent {
|
|
|
163
191
|
type Log = TypedEventLog<Event>;
|
|
164
192
|
type LogDescription = TypedLogDescription<Event>;
|
|
165
193
|
}
|
|
166
|
-
export declare namespace
|
|
167
|
-
type InputTuple = [gauge: AddressLike
|
|
168
|
-
type OutputTuple = [gauge: string
|
|
194
|
+
export declare namespace GaugeAddedEvent {
|
|
195
|
+
type InputTuple = [gauge: AddressLike];
|
|
196
|
+
type OutputTuple = [gauge: string];
|
|
169
197
|
interface OutputObject {
|
|
170
198
|
gauge: string;
|
|
171
|
-
triggeredBy: string;
|
|
172
199
|
}
|
|
173
200
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
174
201
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
175
202
|
type Log = TypedEventLog<Event>;
|
|
176
203
|
type LogDescription = TypedLogDescription<Event>;
|
|
177
204
|
}
|
|
178
|
-
export declare namespace
|
|
179
|
-
type InputTuple = [
|
|
180
|
-
|
|
205
|
+
export declare namespace GaugeKickedEvent {
|
|
206
|
+
type InputTuple = [
|
|
207
|
+
gauge: AddressLike,
|
|
208
|
+
bias: BigNumberish,
|
|
209
|
+
slope: BigNumberish
|
|
210
|
+
];
|
|
211
|
+
type OutputTuple = [gauge: string, bias: bigint, slope: bigint];
|
|
181
212
|
interface OutputObject {
|
|
182
213
|
gauge: string;
|
|
214
|
+
bias: bigint;
|
|
215
|
+
slope: bigint;
|
|
183
216
|
}
|
|
184
217
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
185
218
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -187,22 +220,38 @@ export declare namespace GaugeAddedEvent {
|
|
|
187
220
|
type LogDescription = TypedLogDescription<Event>;
|
|
188
221
|
}
|
|
189
222
|
export declare namespace GaugeRemovedEvent {
|
|
190
|
-
type InputTuple = [gauge: AddressLike];
|
|
191
|
-
type OutputTuple = [gauge: string];
|
|
223
|
+
type InputTuple = [gauge: AddressLike, totalWithdrawn: BigNumberish];
|
|
224
|
+
type OutputTuple = [gauge: string, totalWithdrawn: bigint];
|
|
192
225
|
interface OutputObject {
|
|
193
226
|
gauge: string;
|
|
227
|
+
totalWithdrawn: bigint;
|
|
194
228
|
}
|
|
195
229
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
196
230
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
197
231
|
type Log = TypedEventLog<Event>;
|
|
198
232
|
type LogDescription = TypedLogDescription<Event>;
|
|
199
233
|
}
|
|
200
|
-
export declare namespace
|
|
201
|
-
type InputTuple = [
|
|
202
|
-
|
|
234
|
+
export declare namespace GaugeRewardsDistributorUpdatedEvent {
|
|
235
|
+
type InputTuple = [
|
|
236
|
+
oldDistributor: AddressLike,
|
|
237
|
+
newDistributor: AddressLike
|
|
238
|
+
];
|
|
239
|
+
type OutputTuple = [oldDistributor: string, newDistributor: string];
|
|
203
240
|
interface OutputObject {
|
|
204
|
-
|
|
205
|
-
|
|
241
|
+
oldDistributor: string;
|
|
242
|
+
newDistributor: string;
|
|
243
|
+
}
|
|
244
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
245
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
246
|
+
type Log = TypedEventLog<Event>;
|
|
247
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
248
|
+
}
|
|
249
|
+
export declare namespace MaxVoteBucketsUpdatedEvent {
|
|
250
|
+
type InputTuple = [oldValue: BigNumberish, newValue: BigNumberish];
|
|
251
|
+
type OutputTuple = [oldValue: bigint, newValue: bigint];
|
|
252
|
+
interface OutputObject {
|
|
253
|
+
oldValue: bigint;
|
|
254
|
+
newValue: bigint;
|
|
206
255
|
}
|
|
207
256
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
208
257
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -303,21 +352,21 @@ export declare namespace VoteWeightUpdatedEvent {
|
|
|
303
352
|
gauge: AddressLike,
|
|
304
353
|
weight: BigNumberish,
|
|
305
354
|
bias: BigNumberish,
|
|
306
|
-
|
|
355
|
+
locked: BigNumberish
|
|
307
356
|
];
|
|
308
357
|
type OutputTuple = [
|
|
309
358
|
user: string,
|
|
310
359
|
gauge: string,
|
|
311
360
|
weight: bigint,
|
|
312
361
|
bias: bigint,
|
|
313
|
-
|
|
362
|
+
locked: bigint
|
|
314
363
|
];
|
|
315
364
|
interface OutputObject {
|
|
316
365
|
user: string;
|
|
317
366
|
gauge: string;
|
|
318
367
|
weight: bigint;
|
|
319
368
|
bias: bigint;
|
|
320
|
-
|
|
369
|
+
locked: bigint;
|
|
321
370
|
}
|
|
322
371
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
323
372
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -336,6 +385,27 @@ export declare namespace VotesKickedEvent {
|
|
|
336
385
|
type Log = TypedEventLog<Event>;
|
|
337
386
|
type LogDescription = TypedLogDescription<Event>;
|
|
338
387
|
}
|
|
388
|
+
export declare namespace VotingPowerRemovedInactiveGaugeEvent {
|
|
389
|
+
type InputTuple = [
|
|
390
|
+
gauge: AddressLike,
|
|
391
|
+
oldVP: BigNumberish,
|
|
392
|
+
newVotingPower: BigNumberish
|
|
393
|
+
];
|
|
394
|
+
type OutputTuple = [
|
|
395
|
+
gauge: string,
|
|
396
|
+
oldVP: bigint,
|
|
397
|
+
newVotingPower: bigint
|
|
398
|
+
];
|
|
399
|
+
interface OutputObject {
|
|
400
|
+
gauge: string;
|
|
401
|
+
oldVP: bigint;
|
|
402
|
+
newVotingPower: bigint;
|
|
403
|
+
}
|
|
404
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
405
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
406
|
+
type Log = TypedEventLog<Event>;
|
|
407
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
408
|
+
}
|
|
339
409
|
export interface GaugeController extends BaseContract {
|
|
340
410
|
connect(runner?: ContractRunner | null): GaugeController;
|
|
341
411
|
waitForDeployment(): Promise<this>;
|
|
@@ -349,18 +419,17 @@ export interface GaugeController extends BaseContract {
|
|
|
349
419
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
350
420
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
351
421
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
352
|
-
CHECKPOINT_INTERVAL: TypedContractMethod<[], [bigint], "view">;
|
|
353
422
|
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
354
423
|
EMERGENCY_ADMIN: TypedContractMethod<[], [string], "view">;
|
|
355
424
|
GAUGE_ADMIN: TypedContractMethod<[], [string], "view">;
|
|
356
425
|
MAX_BOOST: TypedContractMethod<[], [bigint], "view">;
|
|
357
|
-
MAX_CHECKPOINT_ITERATIONS: TypedContractMethod<[], [bigint], "view">;
|
|
358
426
|
MAX_VOTE_WEIGHT: TypedContractMethod<[], [bigint], "view">;
|
|
359
427
|
MIN_BOOST: TypedContractMethod<[], [bigint], "view">;
|
|
360
428
|
MIN_VOTE_WEIGHT: TypedContractMethod<[], [bigint], "view">;
|
|
361
429
|
WEEK: TypedContractMethod<[], [bigint], "view">;
|
|
362
430
|
WEIGHT_PRECISION: TypedContractMethod<[], [bigint], "view">;
|
|
363
431
|
WEIGHT_VOTE_DELAY: TypedContractMethod<[], [bigint], "view">;
|
|
432
|
+
activeGaugeCount: TypedContractMethod<[], [bigint], "view">;
|
|
364
433
|
addGauge: TypedContractMethod<[
|
|
365
434
|
gaugeAddress: AddressLike
|
|
366
435
|
], [
|
|
@@ -389,41 +458,12 @@ export interface GaugeController extends BaseContract {
|
|
|
389
458
|
], [
|
|
390
459
|
bigint
|
|
391
460
|
], "view">;
|
|
392
|
-
currentGaugePoint: TypedContractMethod<[
|
|
393
|
-
arg0: AddressLike
|
|
394
|
-
], [
|
|
395
|
-
[
|
|
396
|
-
bigint,
|
|
397
|
-
bigint,
|
|
398
|
-
bigint
|
|
399
|
-
] & {
|
|
400
|
-
bias: bigint;
|
|
401
|
-
slope: bigint;
|
|
402
|
-
timestamp: bigint;
|
|
403
|
-
}
|
|
404
|
-
], "view">;
|
|
405
|
-
currentTotalPoint: TypedContractMethod<[
|
|
406
|
-
], [
|
|
407
|
-
[
|
|
408
|
-
bigint,
|
|
409
|
-
bigint,
|
|
410
|
-
bigint
|
|
411
|
-
] & {
|
|
412
|
-
bias: bigint;
|
|
413
|
-
slope: bigint;
|
|
414
|
-
timestamp: bigint;
|
|
415
|
-
}
|
|
416
|
-
], "view">;
|
|
417
|
-
emergencyShutdown: TypedContractMethod<[
|
|
418
|
-
gauge: AddressLike
|
|
419
|
-
], [
|
|
420
|
-
void
|
|
421
|
-
], "nonpayable">;
|
|
422
461
|
forceCompleteCheckpoint: TypedContractMethod<[
|
|
423
462
|
gauge: AddressLike
|
|
424
463
|
], [
|
|
425
464
|
boolean
|
|
426
465
|
], "nonpayable">;
|
|
466
|
+
gaugeDistributor: TypedContractMethod<[], [string], "view">;
|
|
427
467
|
gauges: TypedContractMethod<[
|
|
428
468
|
arg0: AddressLike
|
|
429
469
|
], [
|
|
@@ -446,23 +486,31 @@ export interface GaugeController extends BaseContract {
|
|
|
446
486
|
}
|
|
447
487
|
], "view">;
|
|
448
488
|
getCurrentEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
489
|
+
getExpiredGaugeVotePower: TypedContractMethod<[
|
|
490
|
+
user: AddressLike
|
|
491
|
+
], [
|
|
492
|
+
[bigint, string[]] & {
|
|
493
|
+
expiredGaugePower: bigint;
|
|
494
|
+
}
|
|
495
|
+
], "view">;
|
|
449
496
|
getGaugeRelativeWeight: TypedContractMethod<[
|
|
450
497
|
gauge: AddressLike,
|
|
451
498
|
epoch: BigNumberish
|
|
452
499
|
], [
|
|
453
|
-
bigint
|
|
500
|
+
[bigint, bigint]
|
|
454
501
|
], "nonpayable">;
|
|
455
502
|
getGaugeRelativeWeightView: TypedContractMethod<[
|
|
456
503
|
gauge: AddressLike,
|
|
457
504
|
epoch: BigNumberish
|
|
458
505
|
], [
|
|
459
|
-
bigint
|
|
506
|
+
[bigint, bigint]
|
|
460
507
|
], "view">;
|
|
461
508
|
getGaugeWeight: TypedContractMethod<[gauge: AddressLike], [bigint], "view">;
|
|
462
509
|
getNextEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
510
|
+
getRegisteredGaugeList: TypedContractMethod<[], [string[]], "view">;
|
|
463
511
|
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
464
512
|
getTotalWeight: TypedContractMethod<[], [bigint], "view">;
|
|
465
|
-
|
|
513
|
+
getUserGaugeVotePower: TypedContractMethod<[
|
|
466
514
|
user: AddressLike,
|
|
467
515
|
gauge: AddressLike
|
|
468
516
|
], [
|
|
@@ -473,6 +521,12 @@ export interface GaugeController extends BaseContract {
|
|
|
473
521
|
], [
|
|
474
522
|
bigint
|
|
475
523
|
], "view">;
|
|
524
|
+
getVoteUserLocks: TypedContractMethod<[
|
|
525
|
+
user: AddressLike,
|
|
526
|
+
gauge: AddressLike
|
|
527
|
+
], [
|
|
528
|
+
IGaugeController.LockVoteEntryStructOutput[]
|
|
529
|
+
], "view">;
|
|
476
530
|
grantRole: TypedContractMethod<[
|
|
477
531
|
role: BytesLike,
|
|
478
532
|
account: AddressLike
|
|
@@ -485,26 +539,23 @@ export interface GaugeController extends BaseContract {
|
|
|
485
539
|
], [
|
|
486
540
|
boolean
|
|
487
541
|
], "view">;
|
|
488
|
-
isGauge: TypedContractMethod<[gauge: AddressLike], [boolean], "view">;
|
|
489
542
|
isGaugeActive: TypedContractMethod<[gauge: AddressLike], [boolean], "view">;
|
|
543
|
+
isPaused: TypedContractMethod<[], [boolean], "view">;
|
|
490
544
|
kick: TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
|
|
491
|
-
|
|
492
|
-
lastGaugeUpdate: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
493
|
-
lastTotalCheckpoint: TypedContractMethod<[], [bigint], "view">;
|
|
494
|
-
lastUserVoteTime: TypedContractMethod<[
|
|
545
|
+
lastVoteTime: TypedContractMethod<[
|
|
495
546
|
arg0: AddressLike,
|
|
496
547
|
arg1: AddressLike
|
|
497
548
|
], [
|
|
498
549
|
bigint
|
|
499
550
|
], "view">;
|
|
500
|
-
|
|
551
|
+
maxVoteBuckets: TypedContractMethod<[], [bigint], "view">;
|
|
501
552
|
paused: TypedContractMethod<[], [boolean], "view">;
|
|
502
553
|
pointsSum: TypedContractMethod<[
|
|
503
554
|
arg0: BigNumberish
|
|
504
555
|
], [
|
|
505
556
|
[bigint, bigint] & {
|
|
506
557
|
bias: bigint;
|
|
507
|
-
|
|
558
|
+
locked: bigint;
|
|
508
559
|
}
|
|
509
560
|
], "view">;
|
|
510
561
|
pointsWeight: TypedContractMethod<[
|
|
@@ -513,11 +564,17 @@ export interface GaugeController extends BaseContract {
|
|
|
513
564
|
], [
|
|
514
565
|
[bigint, bigint] & {
|
|
515
566
|
bias: bigint;
|
|
516
|
-
|
|
567
|
+
locked: bigint;
|
|
517
568
|
}
|
|
518
569
|
], "view">;
|
|
519
570
|
removeGauge: TypedContractMethod<[
|
|
520
|
-
gaugeAddress: AddressLike
|
|
571
|
+
gaugeAddress: AddressLike,
|
|
572
|
+
recipient: AddressLike
|
|
573
|
+
], [
|
|
574
|
+
void
|
|
575
|
+
], "nonpayable">;
|
|
576
|
+
removePowerFromGauge: TypedContractMethod<[
|
|
577
|
+
gauge: AddressLike
|
|
521
578
|
], [
|
|
522
579
|
void
|
|
523
580
|
], "nonpayable">;
|
|
@@ -539,17 +596,33 @@ export interface GaugeController extends BaseContract {
|
|
|
539
596
|
], [
|
|
540
597
|
void
|
|
541
598
|
], "nonpayable">;
|
|
599
|
+
setDistributor: TypedContractMethod<[
|
|
600
|
+
_gaugeDistributor: AddressLike
|
|
601
|
+
], [
|
|
602
|
+
void
|
|
603
|
+
], "nonpayable">;
|
|
604
|
+
setEmergencyGaugePause: TypedContractMethod<[
|
|
605
|
+
gauge: AddressLike,
|
|
606
|
+
paused: boolean
|
|
607
|
+
], [
|
|
608
|
+
void
|
|
609
|
+
], "nonpayable">;
|
|
610
|
+
setEmergencyGaugePauseBatch: TypedContractMethod<[
|
|
611
|
+
gaugeList: AddressLike[],
|
|
612
|
+
status: boolean[]
|
|
613
|
+
], [
|
|
614
|
+
void
|
|
615
|
+
], "nonpayable">;
|
|
542
616
|
setEmergencyPause: TypedContractMethod<[
|
|
543
617
|
paused: boolean
|
|
544
618
|
], [
|
|
545
619
|
void
|
|
546
620
|
], "nonpayable">;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
arg1: BigNumberish
|
|
621
|
+
setMaxVoteBuckets: TypedContractMethod<[
|
|
622
|
+
_k: BigNumberish
|
|
550
623
|
], [
|
|
551
|
-
|
|
552
|
-
], "
|
|
624
|
+
void
|
|
625
|
+
], "nonpayable">;
|
|
553
626
|
supportsInterface: TypedContractMethod<[
|
|
554
627
|
interfaceId: BytesLike
|
|
555
628
|
], [
|
|
@@ -557,39 +630,12 @@ export interface GaugeController extends BaseContract {
|
|
|
557
630
|
], "view">;
|
|
558
631
|
timeSum: TypedContractMethod<[], [bigint], "view">;
|
|
559
632
|
timeWeight: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
560
|
-
toggleGaugeStatus: TypedContractMethod<[
|
|
561
|
-
gaugeAddress: AddressLike
|
|
562
|
-
], [
|
|
563
|
-
void
|
|
564
|
-
], "nonpayable">;
|
|
565
|
-
totalSlopeChanges: TypedContractMethod<[
|
|
566
|
-
arg0: BigNumberish
|
|
567
|
-
], [
|
|
568
|
-
bigint
|
|
569
|
-
], "view">;
|
|
570
633
|
userGaugeVoteWeight: TypedContractMethod<[
|
|
571
634
|
arg0: AddressLike,
|
|
572
635
|
arg1: AddressLike
|
|
573
636
|
], [
|
|
574
637
|
bigint
|
|
575
638
|
], "view">;
|
|
576
|
-
userVotePoint: TypedContractMethod<[
|
|
577
|
-
arg0: AddressLike,
|
|
578
|
-
arg1: AddressLike
|
|
579
|
-
], [
|
|
580
|
-
[
|
|
581
|
-
bigint,
|
|
582
|
-
bigint,
|
|
583
|
-
bigint,
|
|
584
|
-
bigint
|
|
585
|
-
] & {
|
|
586
|
-
bias: bigint;
|
|
587
|
-
slope: bigint;
|
|
588
|
-
timestamp: bigint;
|
|
589
|
-
expiryWeek: bigint;
|
|
590
|
-
}
|
|
591
|
-
], "view">;
|
|
592
|
-
userVotePowerUsed: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
593
639
|
userVotedGauges: TypedContractMethod<[
|
|
594
640
|
arg0: AddressLike,
|
|
595
641
|
arg1: BigNumberish
|
|
@@ -603,13 +649,13 @@ export interface GaugeController extends BaseContract {
|
|
|
603
649
|
], [
|
|
604
650
|
void
|
|
605
651
|
], "nonpayable">;
|
|
606
|
-
|
|
652
|
+
voteUserLockEntries: TypedContractMethod<[
|
|
607
653
|
arg0: AddressLike,
|
|
608
654
|
arg1: AddressLike,
|
|
609
655
|
arg2: BigNumberish
|
|
610
656
|
], [
|
|
611
657
|
[bigint, bigint] & {
|
|
612
|
-
|
|
658
|
+
locked: bigint;
|
|
613
659
|
unlockTime: bigint;
|
|
614
660
|
}
|
|
615
661
|
], "view">;
|
|
@@ -618,25 +664,28 @@ export interface GaugeController extends BaseContract {
|
|
|
618
664
|
arg0: AddressLike,
|
|
619
665
|
arg1: AddressLike
|
|
620
666
|
], [
|
|
621
|
-
[
|
|
622
|
-
|
|
667
|
+
[
|
|
668
|
+
bigint,
|
|
669
|
+
bigint,
|
|
670
|
+
bigint
|
|
671
|
+
] & {
|
|
672
|
+
locked: bigint;
|
|
623
673
|
power: bigint;
|
|
624
|
-
|
|
674
|
+
voteTs: bigint;
|
|
625
675
|
}
|
|
626
676
|
], "view">;
|
|
627
677
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
628
|
-
getFunction(nameOrSignature: "CHECKPOINT_INTERVAL"): TypedContractMethod<[], [bigint], "view">;
|
|
629
678
|
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
630
679
|
getFunction(nameOrSignature: "EMERGENCY_ADMIN"): TypedContractMethod<[], [string], "view">;
|
|
631
680
|
getFunction(nameOrSignature: "GAUGE_ADMIN"): TypedContractMethod<[], [string], "view">;
|
|
632
681
|
getFunction(nameOrSignature: "MAX_BOOST"): TypedContractMethod<[], [bigint], "view">;
|
|
633
|
-
getFunction(nameOrSignature: "MAX_CHECKPOINT_ITERATIONS"): TypedContractMethod<[], [bigint], "view">;
|
|
634
682
|
getFunction(nameOrSignature: "MAX_VOTE_WEIGHT"): TypedContractMethod<[], [bigint], "view">;
|
|
635
683
|
getFunction(nameOrSignature: "MIN_BOOST"): TypedContractMethod<[], [bigint], "view">;
|
|
636
684
|
getFunction(nameOrSignature: "MIN_VOTE_WEIGHT"): TypedContractMethod<[], [bigint], "view">;
|
|
637
685
|
getFunction(nameOrSignature: "WEEK"): TypedContractMethod<[], [bigint], "view">;
|
|
638
686
|
getFunction(nameOrSignature: "WEIGHT_PRECISION"): TypedContractMethod<[], [bigint], "view">;
|
|
639
687
|
getFunction(nameOrSignature: "WEIGHT_VOTE_DELAY"): TypedContractMethod<[], [bigint], "view">;
|
|
688
|
+
getFunction(nameOrSignature: "activeGaugeCount"): TypedContractMethod<[], [bigint], "view">;
|
|
640
689
|
getFunction(nameOrSignature: "addGauge"): TypedContractMethod<[gaugeAddress: AddressLike], [void], "nonpayable">;
|
|
641
690
|
getFunction(nameOrSignature: "batchVote"): TypedContractMethod<[
|
|
642
691
|
gaugeAddresses: AddressLike[],
|
|
@@ -661,33 +710,8 @@ export interface GaugeController extends BaseContract {
|
|
|
661
710
|
], [
|
|
662
711
|
bigint
|
|
663
712
|
], "view">;
|
|
664
|
-
getFunction(nameOrSignature: "currentGaugePoint"): TypedContractMethod<[
|
|
665
|
-
arg0: AddressLike
|
|
666
|
-
], [
|
|
667
|
-
[
|
|
668
|
-
bigint,
|
|
669
|
-
bigint,
|
|
670
|
-
bigint
|
|
671
|
-
] & {
|
|
672
|
-
bias: bigint;
|
|
673
|
-
slope: bigint;
|
|
674
|
-
timestamp: bigint;
|
|
675
|
-
}
|
|
676
|
-
], "view">;
|
|
677
|
-
getFunction(nameOrSignature: "currentTotalPoint"): TypedContractMethod<[
|
|
678
|
-
], [
|
|
679
|
-
[
|
|
680
|
-
bigint,
|
|
681
|
-
bigint,
|
|
682
|
-
bigint
|
|
683
|
-
] & {
|
|
684
|
-
bias: bigint;
|
|
685
|
-
slope: bigint;
|
|
686
|
-
timestamp: bigint;
|
|
687
|
-
}
|
|
688
|
-
], "view">;
|
|
689
|
-
getFunction(nameOrSignature: "emergencyShutdown"): TypedContractMethod<[gauge: AddressLike], [void], "nonpayable">;
|
|
690
713
|
getFunction(nameOrSignature: "forceCompleteCheckpoint"): TypedContractMethod<[gauge: AddressLike], [boolean], "nonpayable">;
|
|
714
|
+
getFunction(nameOrSignature: "gaugeDistributor"): TypedContractMethod<[], [string], "view">;
|
|
691
715
|
getFunction(nameOrSignature: "gauges"): TypedContractMethod<[
|
|
692
716
|
arg0: AddressLike
|
|
693
717
|
], [
|
|
@@ -710,29 +734,43 @@ export interface GaugeController extends BaseContract {
|
|
|
710
734
|
}
|
|
711
735
|
], "view">;
|
|
712
736
|
getFunction(nameOrSignature: "getCurrentEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
737
|
+
getFunction(nameOrSignature: "getExpiredGaugeVotePower"): TypedContractMethod<[
|
|
738
|
+
user: AddressLike
|
|
739
|
+
], [
|
|
740
|
+
[bigint, string[]] & {
|
|
741
|
+
expiredGaugePower: bigint;
|
|
742
|
+
}
|
|
743
|
+
], "view">;
|
|
713
744
|
getFunction(nameOrSignature: "getGaugeRelativeWeight"): TypedContractMethod<[
|
|
714
745
|
gauge: AddressLike,
|
|
715
746
|
epoch: BigNumberish
|
|
716
747
|
], [
|
|
717
|
-
bigint
|
|
748
|
+
[bigint, bigint]
|
|
718
749
|
], "nonpayable">;
|
|
719
750
|
getFunction(nameOrSignature: "getGaugeRelativeWeightView"): TypedContractMethod<[
|
|
720
751
|
gauge: AddressLike,
|
|
721
752
|
epoch: BigNumberish
|
|
722
753
|
], [
|
|
723
|
-
bigint
|
|
754
|
+
[bigint, bigint]
|
|
724
755
|
], "view">;
|
|
725
756
|
getFunction(nameOrSignature: "getGaugeWeight"): TypedContractMethod<[gauge: AddressLike], [bigint], "view">;
|
|
726
757
|
getFunction(nameOrSignature: "getNextEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
758
|
+
getFunction(nameOrSignature: "getRegisteredGaugeList"): TypedContractMethod<[], [string[]], "view">;
|
|
727
759
|
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
728
760
|
getFunction(nameOrSignature: "getTotalWeight"): TypedContractMethod<[], [bigint], "view">;
|
|
729
|
-
getFunction(nameOrSignature: "
|
|
761
|
+
getFunction(nameOrSignature: "getUserGaugeVotePower"): TypedContractMethod<[
|
|
730
762
|
user: AddressLike,
|
|
731
763
|
gauge: AddressLike
|
|
732
764
|
], [
|
|
733
765
|
bigint
|
|
734
766
|
], "view">;
|
|
735
767
|
getFunction(nameOrSignature: "getUserVotePowerRemaining"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
768
|
+
getFunction(nameOrSignature: "getVoteUserLocks"): TypedContractMethod<[
|
|
769
|
+
user: AddressLike,
|
|
770
|
+
gauge: AddressLike
|
|
771
|
+
], [
|
|
772
|
+
IGaugeController.LockVoteEntryStructOutput[]
|
|
773
|
+
], "view">;
|
|
736
774
|
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
737
775
|
role: BytesLike,
|
|
738
776
|
account: AddressLike
|
|
@@ -745,26 +783,23 @@ export interface GaugeController extends BaseContract {
|
|
|
745
783
|
], [
|
|
746
784
|
boolean
|
|
747
785
|
], "view">;
|
|
748
|
-
getFunction(nameOrSignature: "isGauge"): TypedContractMethod<[gauge: AddressLike], [boolean], "view">;
|
|
749
786
|
getFunction(nameOrSignature: "isGaugeActive"): TypedContractMethod<[gauge: AddressLike], [boolean], "view">;
|
|
787
|
+
getFunction(nameOrSignature: "isPaused"): TypedContractMethod<[], [boolean], "view">;
|
|
750
788
|
getFunction(nameOrSignature: "kick"): TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
|
|
751
|
-
getFunction(nameOrSignature: "
|
|
752
|
-
getFunction(nameOrSignature: "lastGaugeUpdate"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
753
|
-
getFunction(nameOrSignature: "lastTotalCheckpoint"): TypedContractMethod<[], [bigint], "view">;
|
|
754
|
-
getFunction(nameOrSignature: "lastUserVoteTime"): TypedContractMethod<[
|
|
789
|
+
getFunction(nameOrSignature: "lastVoteTime"): TypedContractMethod<[
|
|
755
790
|
arg0: AddressLike,
|
|
756
791
|
arg1: AddressLike
|
|
757
792
|
], [
|
|
758
793
|
bigint
|
|
759
794
|
], "view">;
|
|
760
|
-
getFunction(nameOrSignature: "
|
|
795
|
+
getFunction(nameOrSignature: "maxVoteBuckets"): TypedContractMethod<[], [bigint], "view">;
|
|
761
796
|
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
|
762
797
|
getFunction(nameOrSignature: "pointsSum"): TypedContractMethod<[
|
|
763
798
|
arg0: BigNumberish
|
|
764
799
|
], [
|
|
765
800
|
[bigint, bigint] & {
|
|
766
801
|
bias: bigint;
|
|
767
|
-
|
|
802
|
+
locked: bigint;
|
|
768
803
|
}
|
|
769
804
|
], "view">;
|
|
770
805
|
getFunction(nameOrSignature: "pointsWeight"): TypedContractMethod<[
|
|
@@ -773,10 +808,16 @@ export interface GaugeController extends BaseContract {
|
|
|
773
808
|
], [
|
|
774
809
|
[bigint, bigint] & {
|
|
775
810
|
bias: bigint;
|
|
776
|
-
|
|
811
|
+
locked: bigint;
|
|
777
812
|
}
|
|
778
813
|
], "view">;
|
|
779
|
-
getFunction(nameOrSignature: "removeGauge"): TypedContractMethod<[
|
|
814
|
+
getFunction(nameOrSignature: "removeGauge"): TypedContractMethod<[
|
|
815
|
+
gaugeAddress: AddressLike,
|
|
816
|
+
recipient: AddressLike
|
|
817
|
+
], [
|
|
818
|
+
void
|
|
819
|
+
], "nonpayable">;
|
|
820
|
+
getFunction(nameOrSignature: "removePowerFromGauge"): TypedContractMethod<[gauge: AddressLike], [void], "nonpayable">;
|
|
780
821
|
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
781
822
|
role: BytesLike,
|
|
782
823
|
callerConfirmation: AddressLike
|
|
@@ -795,41 +836,34 @@ export interface GaugeController extends BaseContract {
|
|
|
795
836
|
], [
|
|
796
837
|
void
|
|
797
838
|
], "nonpayable">;
|
|
798
|
-
getFunction(nameOrSignature: "
|
|
799
|
-
|
|
800
|
-
arg0: AddressLike,
|
|
801
|
-
arg1: BigNumberish
|
|
839
|
+
getFunction(nameOrSignature: "setDistributor"): TypedContractMethod<[
|
|
840
|
+
_gaugeDistributor: AddressLike
|
|
802
841
|
], [
|
|
803
|
-
|
|
804
|
-
], "
|
|
842
|
+
void
|
|
843
|
+
], "nonpayable">;
|
|
844
|
+
getFunction(nameOrSignature: "setEmergencyGaugePause"): TypedContractMethod<[
|
|
845
|
+
gauge: AddressLike,
|
|
846
|
+
paused: boolean
|
|
847
|
+
], [
|
|
848
|
+
void
|
|
849
|
+
], "nonpayable">;
|
|
850
|
+
getFunction(nameOrSignature: "setEmergencyGaugePauseBatch"): TypedContractMethod<[
|
|
851
|
+
gaugeList: AddressLike[],
|
|
852
|
+
status: boolean[]
|
|
853
|
+
], [
|
|
854
|
+
void
|
|
855
|
+
], "nonpayable">;
|
|
856
|
+
getFunction(nameOrSignature: "setEmergencyPause"): TypedContractMethod<[paused: boolean], [void], "nonpayable">;
|
|
857
|
+
getFunction(nameOrSignature: "setMaxVoteBuckets"): TypedContractMethod<[_k: BigNumberish], [void], "nonpayable">;
|
|
805
858
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
806
859
|
getFunction(nameOrSignature: "timeSum"): TypedContractMethod<[], [bigint], "view">;
|
|
807
860
|
getFunction(nameOrSignature: "timeWeight"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
808
|
-
getFunction(nameOrSignature: "toggleGaugeStatus"): TypedContractMethod<[gaugeAddress: AddressLike], [void], "nonpayable">;
|
|
809
|
-
getFunction(nameOrSignature: "totalSlopeChanges"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
810
861
|
getFunction(nameOrSignature: "userGaugeVoteWeight"): TypedContractMethod<[
|
|
811
862
|
arg0: AddressLike,
|
|
812
863
|
arg1: AddressLike
|
|
813
864
|
], [
|
|
814
865
|
bigint
|
|
815
866
|
], "view">;
|
|
816
|
-
getFunction(nameOrSignature: "userVotePoint"): TypedContractMethod<[
|
|
817
|
-
arg0: AddressLike,
|
|
818
|
-
arg1: AddressLike
|
|
819
|
-
], [
|
|
820
|
-
[
|
|
821
|
-
bigint,
|
|
822
|
-
bigint,
|
|
823
|
-
bigint,
|
|
824
|
-
bigint
|
|
825
|
-
] & {
|
|
826
|
-
bias: bigint;
|
|
827
|
-
slope: bigint;
|
|
828
|
-
timestamp: bigint;
|
|
829
|
-
expiryWeek: bigint;
|
|
830
|
-
}
|
|
831
|
-
], "view">;
|
|
832
|
-
getFunction(nameOrSignature: "userVotePowerUsed"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
833
867
|
getFunction(nameOrSignature: "userVotedGauges"): TypedContractMethod<[
|
|
834
868
|
arg0: AddressLike,
|
|
835
869
|
arg1: BigNumberish
|
|
@@ -843,13 +877,13 @@ export interface GaugeController extends BaseContract {
|
|
|
843
877
|
], [
|
|
844
878
|
void
|
|
845
879
|
], "nonpayable">;
|
|
846
|
-
getFunction(nameOrSignature: "
|
|
880
|
+
getFunction(nameOrSignature: "voteUserLockEntries"): TypedContractMethod<[
|
|
847
881
|
arg0: AddressLike,
|
|
848
882
|
arg1: AddressLike,
|
|
849
883
|
arg2: BigNumberish
|
|
850
884
|
], [
|
|
851
885
|
[bigint, bigint] & {
|
|
852
|
-
|
|
886
|
+
locked: bigint;
|
|
853
887
|
unlockTime: bigint;
|
|
854
888
|
}
|
|
855
889
|
], "view">;
|
|
@@ -858,18 +892,24 @@ export interface GaugeController extends BaseContract {
|
|
|
858
892
|
arg0: AddressLike,
|
|
859
893
|
arg1: AddressLike
|
|
860
894
|
], [
|
|
861
|
-
[
|
|
862
|
-
|
|
895
|
+
[
|
|
896
|
+
bigint,
|
|
897
|
+
bigint,
|
|
898
|
+
bigint
|
|
899
|
+
] & {
|
|
900
|
+
locked: bigint;
|
|
863
901
|
power: bigint;
|
|
864
|
-
|
|
902
|
+
voteTs: bigint;
|
|
865
903
|
}
|
|
866
904
|
], "view">;
|
|
867
905
|
getEvent(key: "BoostAmplificationToggled"): TypedContractEvent<BoostAmplificationToggledEvent.InputTuple, BoostAmplificationToggledEvent.OutputTuple, BoostAmplificationToggledEvent.OutputObject>;
|
|
906
|
+
getEvent(key: "EmergencyGaugePauseUpdated"): TypedContractEvent<EmergencyGaugePauseUpdatedEvent.InputTuple, EmergencyGaugePauseUpdatedEvent.OutputTuple, EmergencyGaugePauseUpdatedEvent.OutputObject>;
|
|
868
907
|
getEvent(key: "EmergencyPauseUpdated"): TypedContractEvent<EmergencyPauseUpdatedEvent.InputTuple, EmergencyPauseUpdatedEvent.OutputTuple, EmergencyPauseUpdatedEvent.OutputObject>;
|
|
869
|
-
getEvent(key: "EmergencyShutdown"): TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
870
908
|
getEvent(key: "GaugeAdded"): TypedContractEvent<GaugeAddedEvent.InputTuple, GaugeAddedEvent.OutputTuple, GaugeAddedEvent.OutputObject>;
|
|
909
|
+
getEvent(key: "GaugeKicked"): TypedContractEvent<GaugeKickedEvent.InputTuple, GaugeKickedEvent.OutputTuple, GaugeKickedEvent.OutputObject>;
|
|
871
910
|
getEvent(key: "GaugeRemoved"): TypedContractEvent<GaugeRemovedEvent.InputTuple, GaugeRemovedEvent.OutputTuple, GaugeRemovedEvent.OutputObject>;
|
|
872
|
-
getEvent(key: "
|
|
911
|
+
getEvent(key: "GaugeRewardsDistributorUpdated"): TypedContractEvent<GaugeRewardsDistributorUpdatedEvent.InputTuple, GaugeRewardsDistributorUpdatedEvent.OutputTuple, GaugeRewardsDistributorUpdatedEvent.OutputObject>;
|
|
912
|
+
getEvent(key: "MaxVoteBucketsUpdated"): TypedContractEvent<MaxVoteBucketsUpdatedEvent.InputTuple, MaxVoteBucketsUpdatedEvent.OutputTuple, MaxVoteBucketsUpdatedEvent.OutputObject>;
|
|
873
913
|
getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
874
914
|
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
875
915
|
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
@@ -878,19 +918,24 @@ export interface GaugeController extends BaseContract {
|
|
|
878
918
|
getEvent(key: "VeBoostProxyUpdated"): TypedContractEvent<VeBoostProxyUpdatedEvent.InputTuple, VeBoostProxyUpdatedEvent.OutputTuple, VeBoostProxyUpdatedEvent.OutputObject>;
|
|
879
919
|
getEvent(key: "VoteWeightUpdated"): TypedContractEvent<VoteWeightUpdatedEvent.InputTuple, VoteWeightUpdatedEvent.OutputTuple, VoteWeightUpdatedEvent.OutputObject>;
|
|
880
920
|
getEvent(key: "VotesKicked"): TypedContractEvent<VotesKickedEvent.InputTuple, VotesKickedEvent.OutputTuple, VotesKickedEvent.OutputObject>;
|
|
921
|
+
getEvent(key: "VotingPowerRemovedInactiveGauge"): TypedContractEvent<VotingPowerRemovedInactiveGaugeEvent.InputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputObject>;
|
|
881
922
|
filters: {
|
|
882
923
|
"BoostAmplificationToggled(address,bool)": TypedContractEvent<BoostAmplificationToggledEvent.InputTuple, BoostAmplificationToggledEvent.OutputTuple, BoostAmplificationToggledEvent.OutputObject>;
|
|
883
924
|
BoostAmplificationToggled: TypedContractEvent<BoostAmplificationToggledEvent.InputTuple, BoostAmplificationToggledEvent.OutputTuple, BoostAmplificationToggledEvent.OutputObject>;
|
|
925
|
+
"EmergencyGaugePauseUpdated(address,bool,address)": TypedContractEvent<EmergencyGaugePauseUpdatedEvent.InputTuple, EmergencyGaugePauseUpdatedEvent.OutputTuple, EmergencyGaugePauseUpdatedEvent.OutputObject>;
|
|
926
|
+
EmergencyGaugePauseUpdated: TypedContractEvent<EmergencyGaugePauseUpdatedEvent.InputTuple, EmergencyGaugePauseUpdatedEvent.OutputTuple, EmergencyGaugePauseUpdatedEvent.OutputObject>;
|
|
884
927
|
"EmergencyPauseUpdated(bool)": TypedContractEvent<EmergencyPauseUpdatedEvent.InputTuple, EmergencyPauseUpdatedEvent.OutputTuple, EmergencyPauseUpdatedEvent.OutputObject>;
|
|
885
928
|
EmergencyPauseUpdated: TypedContractEvent<EmergencyPauseUpdatedEvent.InputTuple, EmergencyPauseUpdatedEvent.OutputTuple, EmergencyPauseUpdatedEvent.OutputObject>;
|
|
886
|
-
"EmergencyShutdown(address,address)": TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
887
|
-
EmergencyShutdown: TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
888
929
|
"GaugeAdded(address)": TypedContractEvent<GaugeAddedEvent.InputTuple, GaugeAddedEvent.OutputTuple, GaugeAddedEvent.OutputObject>;
|
|
889
930
|
GaugeAdded: TypedContractEvent<GaugeAddedEvent.InputTuple, GaugeAddedEvent.OutputTuple, GaugeAddedEvent.OutputObject>;
|
|
890
|
-
"
|
|
931
|
+
"GaugeKicked(address,uint256,uint256)": TypedContractEvent<GaugeKickedEvent.InputTuple, GaugeKickedEvent.OutputTuple, GaugeKickedEvent.OutputObject>;
|
|
932
|
+
GaugeKicked: TypedContractEvent<GaugeKickedEvent.InputTuple, GaugeKickedEvent.OutputTuple, GaugeKickedEvent.OutputObject>;
|
|
933
|
+
"GaugeRemoved(address,uint256)": TypedContractEvent<GaugeRemovedEvent.InputTuple, GaugeRemovedEvent.OutputTuple, GaugeRemovedEvent.OutputObject>;
|
|
891
934
|
GaugeRemoved: TypedContractEvent<GaugeRemovedEvent.InputTuple, GaugeRemovedEvent.OutputTuple, GaugeRemovedEvent.OutputObject>;
|
|
892
|
-
"
|
|
893
|
-
|
|
935
|
+
"GaugeRewardsDistributorUpdated(address,address)": TypedContractEvent<GaugeRewardsDistributorUpdatedEvent.InputTuple, GaugeRewardsDistributorUpdatedEvent.OutputTuple, GaugeRewardsDistributorUpdatedEvent.OutputObject>;
|
|
936
|
+
GaugeRewardsDistributorUpdated: TypedContractEvent<GaugeRewardsDistributorUpdatedEvent.InputTuple, GaugeRewardsDistributorUpdatedEvent.OutputTuple, GaugeRewardsDistributorUpdatedEvent.OutputObject>;
|
|
937
|
+
"MaxVoteBucketsUpdated(uint256,uint256)": TypedContractEvent<MaxVoteBucketsUpdatedEvent.InputTuple, MaxVoteBucketsUpdatedEvent.OutputTuple, MaxVoteBucketsUpdatedEvent.OutputObject>;
|
|
938
|
+
MaxVoteBucketsUpdated: TypedContractEvent<MaxVoteBucketsUpdatedEvent.InputTuple, MaxVoteBucketsUpdatedEvent.OutputTuple, MaxVoteBucketsUpdatedEvent.OutputObject>;
|
|
894
939
|
"Paused(address)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
895
940
|
Paused: TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
896
941
|
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
@@ -907,5 +952,7 @@ export interface GaugeController extends BaseContract {
|
|
|
907
952
|
VoteWeightUpdated: TypedContractEvent<VoteWeightUpdatedEvent.InputTuple, VoteWeightUpdatedEvent.OutputTuple, VoteWeightUpdatedEvent.OutputObject>;
|
|
908
953
|
"VotesKicked(address,uint256)": TypedContractEvent<VotesKickedEvent.InputTuple, VotesKickedEvent.OutputTuple, VotesKickedEvent.OutputObject>;
|
|
909
954
|
VotesKicked: TypedContractEvent<VotesKickedEvent.InputTuple, VotesKickedEvent.OutputTuple, VotesKickedEvent.OutputObject>;
|
|
955
|
+
"VotingPowerRemovedInactiveGauge(address,uint256,uint256)": TypedContractEvent<VotingPowerRemovedInactiveGaugeEvent.InputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputObject>;
|
|
956
|
+
VotingPowerRemovedInactiveGauge: TypedContractEvent<VotingPowerRemovedInactiveGaugeEvent.InputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputObject>;
|
|
910
957
|
};
|
|
911
958
|
}
|