UNPKG

@vechain/vebetterdao-contracts

Version:

Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.

1,806 lines (1,679 loc) 68.2 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "../../../common"; export declare namespace X2EarnAppsDataTypes { export type AppWithDetailsReturnTypeStruct = { id: BytesLike; teamWalletAddress: AddressLike; name: string; metadataURI: string; createdAtTimestamp: BigNumberish; appAvailableForAllocationVoting: boolean; }; export type AppWithDetailsReturnTypeStructOutput = [ id: string, teamWalletAddress: string, name: string, metadataURI: string, createdAtTimestamp: bigint, appAvailableForAllocationVoting: boolean ] & { id: string; teamWalletAddress: string; name: string; metadataURI: string; createdAtTimestamp: bigint; appAvailableForAllocationVoting: boolean; }; } export declare namespace RoundsStorageUpgradeableV8 { export type RoundCoreStruct = { proposer: AddressLike; voteStart: BigNumberish; voteDuration: BigNumberish; }; export type RoundCoreStructOutput = [ proposer: string, voteStart: bigint, voteDuration: bigint ] & { proposer: string; voteStart: bigint; voteDuration: bigint }; } export declare namespace XAllocationVotingV8 { export type InitializationDataStruct = { vot3Token: AddressLike; quorumPercentage: BigNumberish; initialVotingPeriod: BigNumberish; timeLock: AddressLike; voterRewards: AddressLike; emissions: AddressLike; admins: AddressLike[]; upgrader: AddressLike; contractsAddressManager: AddressLike; x2EarnAppsAddress: AddressLike; baseAllocationPercentage: BigNumberish; appSharesCap: BigNumberish; votingThreshold: BigNumberish; }; export type InitializationDataStructOutput = [ vot3Token: string, quorumPercentage: bigint, initialVotingPeriod: bigint, timeLock: string, voterRewards: string, emissions: string, admins: string[], upgrader: string, contractsAddressManager: string, x2EarnAppsAddress: string, baseAllocationPercentage: bigint, appSharesCap: bigint, votingThreshold: bigint ] & { vot3Token: string; quorumPercentage: bigint; initialVotingPeriod: bigint; timeLock: string; voterRewards: string; emissions: string; admins: string[]; upgrader: string; contractsAddressManager: string; x2EarnAppsAddress: string; baseAllocationPercentage: bigint; appSharesCap: bigint; votingThreshold: bigint; }; } export interface XAllocationVotingV8Interface extends Interface { getFunction( nameOrSignature: | "CLOCK_MODE" | "CONTRACTS_ADDRESS_MANAGER_ROLE" | "COUNTING_MODE" | "DEFAULT_ADMIN_ROLE" | "GOVERNANCE_ROLE" | "ROUND_STARTER_ROLE" | "UPGRADER_ROLE" | "UPGRADE_INTERFACE_VERSION" | "appSharesCap" | "b3trGovernor" | "baseAllocationPercentage" | "castVote" | "castVoteOnBehalfOf" | "clock" | "currentRoundDeadline" | "currentRoundId" | "currentRoundSnapshot" | "emissions" | "finalizeRound" | "getAndValidateVotingPower" | "getAppIdsOfRound" | "getAppVotes" | "getAppVotesQF" | "getAppsOfRound" | "getDepositVotingPower" | "getRoleAdmin" | "getRound" | "getRoundAppSharesCap" | "getRoundBaseAllocationPercentage" | "getTotalAutoVotingUsersAtRoundStart" | "getTotalAutoVotingUsersAtTimepoint" | "getTotalVotingPower" | "getUserVotingPreferences" | "getVotes" | "grantRole" | "hasRole" | "hasVoted" | "hasVotedOnce" | "initialize" | "isActive" | "isEligibleForVote" | "isFinalized" | "isUserAutoVotingEnabled" | "isUserAutoVotingEnabledAtTimepoint" | "isUserAutoVotingEnabledForRound" | "isUserAutoVotingEnabledInCurrentRound" | "latestSucceededRoundId" | "name" | "proxiableUUID" | "quorum" | "quorumDenominator" | "quorumNumerator(uint256)" | "quorumNumerator()" | "quorumReached" | "relayerRewardsPool" | "renounceRole" | "revokeRole" | "roundDeadline" | "roundProposer" | "roundQuorum" | "roundSnapshot" | "setAppSharesCap" | "setB3TRGovernor" | "setBaseAllocationPercentage" | "setEmissionsAddress" | "setRelayerRewardsPoolAddress" | "setUserVotingPreferences" | "setVeBetterPassport" | "setVoterRewardsAddress" | "setVotingPeriod" | "setVotingThreshold" | "setX2EarnAppsAddress" | "startNewRound" | "state" | "supportsInterface" | "toggleAutoVoting" | "token" | "totalVoters" | "totalVotes" | "totalVotesQF" | "updateQuorumNumerator" | "upgradeToAndCall" | "validatePersonhoodForCurrentRound" | "veBetterPassport" | "version" | "voterRewards" | "votingPeriod" | "votingThreshold" | "x2EarnApps" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "AllocationAutoVoteCast" | "AllocationVoteCast" | "AutoVoteSkipped" | "AutoVotingToggled" | "B3TRGovernorSet" | "EmissionsSet" | "Initialized" | "PreferredAppsUpdated" | "QuorumNumeratorUpdated" | "RelayerRewardsPoolSet" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "RoundCreated" | "Upgraded" | "VeBetterPassportSet" | "VoterRewardsSet" | "VotingPeriodSet" | "VotingThresholdSet" | "X2EarnAppsSet" ): EventFragment; encodeFunctionData( functionFragment: "CLOCK_MODE", values?: undefined ): string; encodeFunctionData( functionFragment: "CONTRACTS_ADDRESS_MANAGER_ROLE", values?: undefined ): string; encodeFunctionData( functionFragment: "COUNTING_MODE", values?: undefined ): string; encodeFunctionData( functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined ): string; encodeFunctionData( functionFragment: "GOVERNANCE_ROLE", values?: undefined ): string; encodeFunctionData( functionFragment: "ROUND_STARTER_ROLE", values?: undefined ): string; encodeFunctionData( functionFragment: "UPGRADER_ROLE", values?: undefined ): string; encodeFunctionData( functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined ): string; encodeFunctionData( functionFragment: "appSharesCap", values?: undefined ): string; encodeFunctionData( functionFragment: "b3trGovernor", values?: undefined ): string; encodeFunctionData( functionFragment: "baseAllocationPercentage", values?: undefined ): string; encodeFunctionData( functionFragment: "castVote", values: [BigNumberish, BytesLike[], BigNumberish[]] ): string; encodeFunctionData( functionFragment: "castVoteOnBehalfOf", values: [AddressLike, BigNumberish] ): string; encodeFunctionData(functionFragment: "clock", values?: undefined): string; encodeFunctionData( functionFragment: "currentRoundDeadline", values?: undefined ): string; encodeFunctionData( functionFragment: "currentRoundId", values?: undefined ): string; encodeFunctionData( functionFragment: "currentRoundSnapshot", values?: undefined ): string; encodeFunctionData(functionFragment: "emissions", values?: undefined): string; encodeFunctionData( functionFragment: "finalizeRound", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getAndValidateVotingPower", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "getAppIdsOfRound", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getAppVotes", values: [BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "getAppVotesQF", values: [BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "getAppsOfRound", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getDepositVotingPower", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "getRoleAdmin", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "getRound", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getRoundAppSharesCap", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getRoundBaseAllocationPercentage", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getTotalAutoVotingUsersAtRoundStart", values?: undefined ): string; encodeFunctionData( functionFragment: "getTotalAutoVotingUsersAtTimepoint", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getTotalVotingPower", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "getUserVotingPreferences", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "getVotes", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "grantRole", values: [BytesLike, AddressLike] ): string; encodeFunctionData( functionFragment: "hasRole", values: [BytesLike, AddressLike] ): string; encodeFunctionData( functionFragment: "hasVoted", values: [BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "hasVotedOnce", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "initialize", values: [XAllocationVotingV8.InitializationDataStruct] ): string; encodeFunctionData( functionFragment: "isActive", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "isEligibleForVote", values: [BytesLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "isFinalized", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "isUserAutoVotingEnabled", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "isUserAutoVotingEnabledAtTimepoint", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "isUserAutoVotingEnabledForRound", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "isUserAutoVotingEnabledInCurrentRound", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "latestSucceededRoundId", values: [BigNumberish] ): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData( functionFragment: "proxiableUUID", values?: undefined ): string; encodeFunctionData( functionFragment: "quorum", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "quorumDenominator", values?: undefined ): string; encodeFunctionData( functionFragment: "quorumNumerator(uint256)", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "quorumNumerator()", values?: undefined ): string; encodeFunctionData( functionFragment: "quorumReached", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "relayerRewardsPool", values?: undefined ): string; encodeFunctionData( functionFragment: "renounceRole", values: [BytesLike, AddressLike] ): string; encodeFunctionData( functionFragment: "revokeRole", values: [BytesLike, AddressLike] ): string; encodeFunctionData( functionFragment: "roundDeadline", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "roundProposer", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "roundQuorum", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "roundSnapshot", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setAppSharesCap", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setB3TRGovernor", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setBaseAllocationPercentage", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setEmissionsAddress", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setRelayerRewardsPoolAddress", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setUserVotingPreferences", values: [BytesLike[]] ): string; encodeFunctionData( functionFragment: "setVeBetterPassport", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setVoterRewardsAddress", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setVotingPeriod", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setVotingThreshold", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setX2EarnAppsAddress", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "startNewRound", values?: undefined ): string; encodeFunctionData(functionFragment: "state", values: [BigNumberish]): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "toggleAutoVoting", values: [AddressLike] ): string; encodeFunctionData(functionFragment: "token", values?: undefined): string; encodeFunctionData( functionFragment: "totalVoters", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "totalVotes", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "totalVotesQF", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "updateQuorumNumerator", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike] ): string; encodeFunctionData( functionFragment: "validatePersonhoodForCurrentRound", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "veBetterPassport", values?: undefined ): string; encodeFunctionData(functionFragment: "version", values?: undefined): string; encodeFunctionData( functionFragment: "voterRewards", values?: undefined ): string; encodeFunctionData( functionFragment: "votingPeriod", values?: undefined ): string; encodeFunctionData( functionFragment: "votingThreshold", values?: undefined ): string; encodeFunctionData( functionFragment: "x2EarnApps", values?: undefined ): string; decodeFunctionResult(functionFragment: "CLOCK_MODE", data: BytesLike): Result; decodeFunctionResult( functionFragment: "CONTRACTS_ADDRESS_MANAGER_ROLE", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "COUNTING_MODE", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "GOVERNANCE_ROLE", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "ROUND_STARTER_ROLE", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "UPGRADER_ROLE", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "appSharesCap", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "b3trGovernor", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "baseAllocationPercentage", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "castVote", data: BytesLike): Result; decodeFunctionResult( functionFragment: "castVoteOnBehalfOf", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "clock", data: BytesLike): Result; decodeFunctionResult( functionFragment: "currentRoundDeadline", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "currentRoundId", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "currentRoundSnapshot", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "emissions", data: BytesLike): Result; decodeFunctionResult( functionFragment: "finalizeRound", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAndValidateVotingPower", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAppIdsOfRound", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAppVotes", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAppVotesQF", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAppsOfRound", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getDepositVotingPower", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getRoleAdmin", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getRound", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getRoundAppSharesCap", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getRoundBaseAllocationPercentage", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getTotalAutoVotingUsersAtRoundStart", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getTotalAutoVotingUsersAtTimepoint", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getTotalVotingPower", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getUserVotingPreferences", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getVotes", data: BytesLike): Result; decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hasVoted", data: BytesLike): Result; decodeFunctionResult( functionFragment: "hasVotedOnce", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isActive", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isEligibleForVote", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isFinalized", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isUserAutoVotingEnabled", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isUserAutoVotingEnabledAtTimepoint", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isUserAutoVotingEnabledForRound", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isUserAutoVotingEnabledInCurrentRound", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "latestSucceededRoundId", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult( functionFragment: "proxiableUUID", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "quorum", data: BytesLike): Result; decodeFunctionResult( functionFragment: "quorumDenominator", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "quorumNumerator(uint256)", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "quorumNumerator()", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "quorumReached", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "relayerRewardsPool", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "renounceRole", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; decodeFunctionResult( functionFragment: "roundDeadline", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "roundProposer", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "roundQuorum", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "roundSnapshot", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setAppSharesCap", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setB3TRGovernor", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setBaseAllocationPercentage", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setEmissionsAddress", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setRelayerRewardsPoolAddress", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setUserVotingPreferences", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setVeBetterPassport", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setVoterRewardsAddress", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setVotingPeriod", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setVotingThreshold", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setX2EarnAppsAddress", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "startNewRound", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "state", data: BytesLike): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "toggleAutoVoting", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "token", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalVoters", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "totalVotes", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalVotesQF", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "updateQuorumNumerator", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "upgradeToAndCall", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "validatePersonhoodForCurrentRound", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "veBetterPassport", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "version", data: BytesLike): Result; decodeFunctionResult( functionFragment: "voterRewards", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "votingPeriod", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "votingThreshold", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "x2EarnApps", data: BytesLike): Result; } export namespace AllocationAutoVoteCastEvent { export type InputTuple = [ voter: AddressLike, roundId: BigNumberish, appsIds: BytesLike[], voteWeights: BigNumberish[] ]; export type OutputTuple = [ voter: string, roundId: bigint, appsIds: string[], voteWeights: bigint[] ]; export interface OutputObject { voter: string; roundId: bigint; appsIds: string[]; voteWeights: bigint[]; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace AllocationVoteCastEvent { export type InputTuple = [ voter: AddressLike, roundId: BigNumberish, appsIds: BytesLike[], voteWeights: BigNumberish[] ]; export type OutputTuple = [ voter: string, roundId: bigint, appsIds: string[], voteWeights: bigint[] ]; export interface OutputObject { voter: string; roundId: bigint; appsIds: string[]; voteWeights: bigint[]; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace AutoVoteSkippedEvent { export type InputTuple = [ voter: AddressLike, roundId: BigNumberish, isPerson: boolean, appCount: BigNumberish, votingPower: BigNumberish ]; export type OutputTuple = [ voter: string, roundId: bigint, isPerson: boolean, appCount: bigint, votingPower: bigint ]; export interface OutputObject { voter: string; roundId: bigint; isPerson: boolean; appCount: bigint; votingPower: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace AutoVotingToggledEvent { export type InputTuple = [account: AddressLike, enabled: boolean]; export type OutputTuple = [account: string, enabled: boolean]; export interface OutputObject { account: string; enabled: boolean; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace B3TRGovernorSetEvent { export type InputTuple = [ oldContractAddress: AddressLike, newContractAddress: AddressLike ]; export type OutputTuple = [ oldContractAddress: string, newContractAddress: string ]; export interface OutputObject { oldContractAddress: string; newContractAddress: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace EmissionsSetEvent { export type InputTuple = [ oldContractAddress: AddressLike, newContractAddress: AddressLike ]; export type OutputTuple = [ oldContractAddress: string, newContractAddress: string ]; export interface OutputObject { oldContractAddress: string; newContractAddress: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace InitializedEvent { export type InputTuple = [version: BigNumberish]; export type OutputTuple = [version: bigint]; export interface OutputObject { version: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace PreferredAppsUpdatedEvent { export type InputTuple = [account: AddressLike, apps: BytesLike[]]; export type OutputTuple = [account: string, apps: string[]]; export interface OutputObject { account: string; apps: string[]; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace QuorumNumeratorUpdatedEvent { export type InputTuple = [ oldQuorumNumerator: BigNumberish, newQuorumNumerator: BigNumberish ]; export type OutputTuple = [ oldQuorumNumerator: bigint, newQuorumNumerator: bigint ]; export interface OutputObject { oldQuorumNumerator: bigint; newQuorumNumerator: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace RelayerRewardsPoolSetEvent { export type InputTuple = [ oldContractAddress: AddressLike, newContractAddress: AddressLike ]; export type OutputTuple = [ oldContractAddress: string, newContractAddress: string ]; export interface OutputObject { oldContractAddress: string; newContractAddress: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace RoleAdminChangedEvent { export type InputTuple = [ role: BytesLike, previousAdminRole: BytesLike, newAdminRole: BytesLike ]; export type OutputTuple = [ role: string, previousAdminRole: string, newAdminRole: string ]; export interface OutputObject { role: string; previousAdminRole: string; newAdminRole: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace RoleGrantedEvent { export type InputTuple = [ role: BytesLike, account: AddressLike, sender: AddressLike ]; export type OutputTuple = [role: string, account: string, sender: string]; export interface OutputObject { role: string; account: string; sender: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace RoleRevokedEvent { export type InputTuple = [ role: BytesLike, account: AddressLike, sender: AddressLike ]; export type OutputTuple = [role: string, account: string, sender: string]; export interface OutputObject { role: string; account: string; sender: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace RoundCreatedEvent { export type InputTuple = [ roundId: BigNumberish, proposer: AddressLike, voteStart: BigNumberish, voteEnd: BigNumberish, appsIds: BytesLike[] ]; export type OutputTuple = [ roundId: bigint, proposer: string, voteStart: bigint, voteEnd: bigint, appsIds: string[] ]; export interface OutputObject { roundId: bigint; proposer: string; voteStart: bigint; voteEnd: bigint; appsIds: string[]; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace UpgradedEvent { export type InputTuple = [implementation: AddressLike]; export type OutputTuple = [implementation: string]; export interface OutputObject { implementation: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace VeBetterPassportSetEvent { export type InputTuple = [ oldContractAddress: AddressLike, newContractAddress: AddressLike ]; export type OutputTuple = [ oldContractAddress: string, newContractAddress: string ]; export interface OutputObject { oldContractAddress: string; newContractAddress: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace VoterRewardsSetEvent { export type InputTuple = [ oldContractAddress: AddressLike, newContractAddress: AddressLike ]; export type OutputTuple = [ oldContractAddress: string, newContractAddress: string ]; export interface OutputObject { oldContractAddress: string; newContractAddress: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace VotingPeriodSetEvent { export type InputTuple = [ oldVotingPeriod: BigNumberish, newVotingPeriod: BigNumberish ]; export type OutputTuple = [oldVotingPeriod: bigint, newVotingPeriod: bigint]; export interface OutputObject { oldVotingPeriod: bigint; newVotingPeriod: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace VotingThresholdSetEvent { export type InputTuple = [ oldVotingThreshold: BigNumberish, newVotingThreshold: BigNumberish ]; export type OutputTuple = [ oldVotingThreshold: bigint, newVotingThreshold: bigint ]; export interface OutputObject { oldVotingThreshold: bigint; newVotingThreshold: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace X2EarnAppsSetEvent { export type InputTuple = [ oldContractAddress: AddressLike, newContractAddress: AddressLike ]; export type OutputTuple = [ oldContractAddress: string, newContractAddress: string ]; export interface OutputObject { oldContractAddress: string; newContractAddress: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export interface XAllocationVotingV8 extends BaseContract { connect(runner?: ContractRunner | null): XAllocationVotingV8; waitForDeployment(): Promise<this>; interface: XAllocationVotingV8Interface; queryFilter<TCEvent extends TypedContractEvent>( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; on<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; listeners<TCEvent extends TypedContractEvent>( event: TCEvent ): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>( event?: TCEvent ): Promise<this>; CLOCK_MODE: TypedContractMethod<[], [string], "view">; CONTRACTS_ADDRESS_MANAGER_ROLE: TypedContractMethod<[], [string], "view">; COUNTING_MODE: TypedContractMethod<[], [string], "view">; DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">; GOVERNANCE_ROLE: TypedContractMethod<[], [string], "view">; ROUND_STARTER_ROLE: TypedContractMethod<[], [string], "view">; UPGRADER_ROLE: TypedContractMethod<[], [string], "view">; UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">; appSharesCap: TypedContractMethod<[], [bigint], "view">; b3trGovernor: TypedContractMethod<[], [string], "view">; baseAllocationPercentage: TypedContractMethod<[], [bigint], "view">; castVote: TypedContractMethod< [roundId: BigNumberish, appIds: BytesLike[], voteWeights: BigNumberish[]], [void], "nonpayable" >; castVoteOnBehalfOf: TypedContractMethod< [voter: AddressLike, roundId: BigNumberish], [void], "nonpayable" >; clock: TypedContractMethod<[], [bigint], "view">; currentRoundDeadline: TypedContractMethod<[], [bigint], "view">; currentRoundId: TypedContractMethod<[], [bigint], "view">; currentRoundSnapshot: TypedContractMethod<[], [bigint], "view">; emissions: TypedContractMethod<[], [string], "view">; finalizeRound: TypedContractMethod< [roundId: BigNumberish], [void], "nonpayable" >; getAndValidateVotingPower: TypedContractMethod< [account: AddressLike, timepoint: BigNumberish], [[bigint, boolean]], "view" >; getAppIdsOfRound: TypedContractMethod< [roundId: BigNumberish], [string[]], "view" >; getAppVotes: TypedContractMethod< [roundId: BigNumberish, app: BytesLike], [bigint], "view" >; getAppVotesQF: TypedContractMethod< [roundId: BigNumberish, app: BytesLike], [bigint], "view" >; getAppsOfRound: TypedContractMethod< [roundId: BigNumberish], [X2EarnAppsDataTypes.AppWithDetailsReturnTypeStructOutput[]], "view" >; getDepositVotingPower: TypedContractMethod< [account: AddressLike, timepoint: BigNumberish], [bigint], "view" >; getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">; getRound: TypedContractMethod< [roundId: BigNumberish], [RoundsStorageUpgradeableV8.RoundCoreStructOutput], "view" >; getRoundAppSharesCap: TypedContractMethod< [roundId: BigNumberish], [bigint], "view" >; getRoundBaseAllocationPercentage: TypedContractMethod< [roundId: BigNumberish], [bigint], "view" >; getTotalAutoVotingUsersAtRoundStart: TypedContractMethod< [], [bigint], "view" >; getTotalAutoVotingUsersAtTimepoint: TypedContractMethod< [timepoint: BigNumberish], [bigint], "view" >; getTotalVotingPower: TypedContractMethod< [voter: AddressLike, roundStart: BigNumberish], [bigint], "view" >; getUserVotingPreferences: TypedContractMethod< [account: AddressLike], [string[]], "view" >; getVotes: TypedContractMethod< [account: AddressLike, timepoint: BigNumberish], [bigint], "view" >; grantRole: TypedContractMethod< [role: BytesLike, account: AddressLike], [void], "nonpayable" >; hasRole: TypedContractMethod< [role: BytesLike, account: AddressLike], [boolean], "view" >; hasVoted: TypedContractMethod< [roundId: BigNumberish, user: AddressLike], [boolean], "view" >; hasVotedOnce: TypedContractMethod<[user: AddressLike], [boolean], "view">; initialize: TypedContractMethod< [data: XAllocationVotingV8.InitializationDataStruct], [void], "nonpayable" >; isActive: TypedContractMethod<[roundId: BigNumberish], [boolean], "view">; isEligibleForVote: TypedContractMethod< [appId: BytesLike, roundId: BigNumberish], [boolean], "view" >; isFinalized: TypedContractMethod<[roundId: BigNumberish], [boolean], "view">; isUserAutoVotingEnabled: TypedContractMethod< [user: AddressLike], [boolean], "view" >; isUserAutoVotingEnabledAtTimepoint: TypedContractMethod< [account: AddressLike, timepoint: BigNumberish], [boolean], "view" >; isUserAutoVotingEnabledForRound: TypedContractMethod< [account: AddressLike, roundId: BigNumberish], [boolean], "view" >; isUserAutoVotingEnabledInCurrentRound: TypedContractMethod< [account: AddressLike], [boolean], "view" >; latestSucceededRoundId: TypedContractMethod< [roundId: BigNumberish], [bigint], "view" >; name: TypedContractMethod<[], [string], "view">; proxiableUUID: TypedContractMethod<[], [string], "view">; quorum: TypedContractMethod<[blockNumber: BigNumberish], [bigint], "view">; quorumDenominator: TypedContractMethod<[], [bigint], "view">; "quorumNumerator(uint256)": TypedContractMethod< [timepoint: BigNumberish], [bigint], "view" >; "quorumNumerator()": TypedContractMethod<[], [bigint], "view">; quorumReached: TypedContractMethod< [roundId: BigNumberish], [boolean], "view" >; relayerRewardsPool: TypedContractMethod<[], [string], "view">; renounceRole: TypedContractMethod< [role: BytesLike, callerConfirmation: AddressLike], [void], "nonpayable" >; revokeRole: TypedContractMethod< [role: BytesLike, account: AddressLike], [void], "nonpayable" >; roundDeadline: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; roundProposer: TypedContractMethod<[roundId: BigNumberish], [string], "view">; roundQuorum: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; roundSnapshot: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; setAppSharesCap: TypedContractMethod< [appSharesCap_: BigNumberish], [void], "nonpayable" >; setB3TRGovernor: TypedContractMethod< [newB3TRGovernor: AddressLike], [void], "nonpayable" >; setBaseAllocationPercentage: TypedContractMethod< [baseAllocationPercentage_: BigNumberish], [void], "nonpayable" >; setEmissionsAddress: TypedContractMethod< [newEmissions: AddressLike], [void], "nonpayable" >; setRelayerRewardsPoolAddress: TypedContractMethod< [newRelayerRewardsPool: AddressLike], [void], "nonpayable" >; setUserVotingPreferences: TypedContractMethod< [appIds: BytesLike[]], [void], "nonpayable" >; setVeBetterPassport: TypedContractMethod< [newVeBetterPassport: AddressLike], [void], "nonpayable" >; setVoterRewardsAddress: TypedContractMethod< [newVoterRewards: AddressLike], [void], "nonpayable" >; setVotingPeriod: TypedContractMethod< [newVotingPeriod: BigNumberish], [void], "nonpayable" >; setVotingThreshold: TypedContractMethod< [newVotingThreshold: BigNumberish], [void], "nonpayable" >; setX2EarnAppsAddress: TypedContractMethod< [newX2EarnApps: AddressLike], [void], "nonpayable" >; startNewRound: TypedContractMethod<[], [bigint], "nonpayable">; state: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; supportsInterface: TypedContractMethod< [interfaceId: BytesLike], [boolean], "view" >; toggleAutoVoting: TypedContractMethod< [user: AddressLike], [void], "nonpayable" >; token: TypedContractMethod<[], [string], "view">; totalVoters: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; totalVotes: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; totalVotesQF: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; updateQuorumNumerator: TypedContractMethod< [newQuorumNumerator: BigNumberish], [void], "nonpayable" >; upgradeToAndCall: TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; validatePersonhoodForCurrentRound: TypedContractMethod< [voter: AddressLike], [boolean], "view" >; veBetterPassport: TypedContractMethod<[], [string], "view">; version: TypedContractMethod<[], [string], "view">; voterRewards: TypedContractMethod<[], [string], "view">; votingPeriod: TypedContractMethod<[], [bigint], "view">; votingThreshold: TypedContractMethod<[], [bigint], "view">; x2EarnApps: TypedContractMethod<[], [string], "view">; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "CLOCK_MODE" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "CONTRACTS_ADDRESS_MANAGER_ROLE" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "COUNTING_MODE" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "DEFAULT_ADMIN_ROLE" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "GOVERNANCE_ROLE" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "ROUND_STARTER_ROLE" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "UPGRADER_ROLE" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "UPGRADE_INTERFACE_VERSION" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "appSharesCap" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "b3trGovernor" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "baseAllocationPercentage" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "castVote" ): TypedContractMethod< [roundId: BigNumberish, appIds: BytesLike[], voteWeights: BigNumberish[]], [void], "nonpayable" >; getFunction( nameOrSignature: "castVoteOnBehalfOf" ): TypedContractMethod< [voter: AddressLike, roundId: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "clock" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "currentRoundDeadline" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "currentRoundId" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "currentRoundSnapshot" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "emissions" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "finalizeRound" ): TypedContractMethod<[roundId: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "getAndValidateVotingPower" ): TypedContractMethod< [account: AddressLike, timepoint: BigNumberish], [[bigint, boolean]], "view" >; getFunction( nameOrSignature: "getAppIdsOfRound" ): TypedContractMethod<[roundId: BigNumberish], [string[]], "view">; getFunction( nameOrSignature: "getAppVotes" ): TypedContractMethod< [roundId: BigNumberish, app: BytesLike], [bigint], "view" >; getFunction( nameOrSignature: "getAppVotesQF" ): TypedContractMethod< [roundId: BigNumberish, app: BytesLike], [bigint], "view" >; getFunction( nameOrSignature: "getAppsOfRound" ): TypedContractMethod< [roundId: BigNumberish], [X2EarnAppsDataTypes.AppWithDetailsReturnTypeStructOutput[]], "view" >; getFunction( nameOrSignature: "getDepositVotingPower" ): TypedContractMethod< [account: AddressLike, timepoint: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "getRoleAdmin" ): TypedContractMethod<[role: BytesLike], [string], "view">; getFunction( nameOrSignature: "getRound" ): TypedContractMethod< [roundId: BigNumberish], [RoundsStorageUpgradeableV8.RoundCoreStructOutput], "view" >; getFunction( nameOrSignature: "getRoundAppSharesCap" ): TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "getRoundBaseAllocationPercentage" ): TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "getTotalAutoVotingUsersAtRoundStart" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "getTotalAutoVotingUsersAtTimepoint" ): TypedContractMethod<[timepoint: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "getTotalVotingPower" ): TypedContractMethod< [voter: AddressLike, roundStart: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "getUserVotingPreferences" ): TypedContractMethod<[account: AddressLike], [string[]], "view">; getFunction( nameOrSignature: "getVotes" ): TypedContractMethod< [account: AddressLike, timepoint: BigNumb