UNPKG

@vechain/vebetterdao-contracts

Version:

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

365 lines (336 loc) 9.86 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 interface RoundVotesCountingUtilsInterface extends Interface { getFunction( nameOrSignature: | "getAppVotes" | "getAppVotesQF" | "hasUserVotedForApp" | "hasVoted" | "hasVotedOnce" | "quorumReached" | "totalVoters" | "totalVotes" | "totalVotesQF" | "voteSucceeded" | "votingThreshold" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: "AllocationVoteCast" | "VotingThresholdSet" ): EventFragment; encodeFunctionData( functionFragment: "getAppVotes", values: [BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "getAppVotesQF", values: [BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "hasUserVotedForApp", values: [BigNumberish, AddressLike, BytesLike] ): string; encodeFunctionData( functionFragment: "hasVoted", values: [BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "hasVotedOnce", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "quorumReached", values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "totalVoters", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "totalVotes", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "totalVotesQF", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "voteSucceeded", values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "votingThreshold", values?: undefined ): string; decodeFunctionResult( functionFragment: "getAppVotes", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAppVotesQF", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "hasUserVotedForApp", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "hasVoted", data: BytesLike): Result; decodeFunctionResult( functionFragment: "hasVotedOnce", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "quorumReached", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "totalVoters", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "totalVotes", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalVotesQF", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "voteSucceeded", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "votingThreshold", data: BytesLike ): Result; } 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 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 interface RoundVotesCountingUtils extends BaseContract { connect(runner?: ContractRunner | null): RoundVotesCountingUtils; waitForDeployment(): Promise<this>; interface: RoundVotesCountingUtilsInterface; 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>; getAppVotes: TypedContractMethod< [roundId: BigNumberish, app: BytesLike], [bigint], "view" >; getAppVotesQF: TypedContractMethod< [roundId: BigNumberish, app: BytesLike], [bigint], "view" >; hasUserVotedForApp: TypedContractMethod< [roundId: BigNumberish, user: AddressLike, appId: BytesLike], [boolean], "view" >; hasVoted: TypedContractMethod< [roundId: BigNumberish, user: AddressLike], [boolean], "view" >; hasVotedOnce: TypedContractMethod<[user: AddressLike], [boolean], "view">; quorumReached: TypedContractMethod< [roundId: BigNumberish, quorumValue: BigNumberish], [boolean], "view" >; totalVoters: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; totalVotes: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; totalVotesQF: TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; voteSucceeded: TypedContractMethod< [roundId: BigNumberish, quorumValue: BigNumberish], [boolean], "view" >; votingThreshold: TypedContractMethod<[], [bigint], "view">; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "getAppVotes" ): TypedContractMethod< [roundId: BigNumberish, app: BytesLike], [bigint], "view" >; getFunction( nameOrSignature: "getAppVotesQF" ): TypedContractMethod< [roundId: BigNumberish, app: BytesLike], [bigint], "view" >; getFunction( nameOrSignature: "hasUserVotedForApp" ): TypedContractMethod< [roundId: BigNumberish, user: AddressLike, appId: BytesLike], [boolean], "view" >; getFunction( nameOrSignature: "hasVoted" ): TypedContractMethod< [roundId: BigNumberish, user: AddressLike], [boolean], "view" >; getFunction( nameOrSignature: "hasVotedOnce" ): TypedContractMethod<[user: AddressLike], [boolean], "view">; getFunction( nameOrSignature: "quorumReached" ): TypedContractMethod< [roundId: BigNumberish, quorumValue: BigNumberish], [boolean], "view" >; getFunction( nameOrSignature: "totalVoters" ): TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "totalVotes" ): TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "totalVotesQF" ): TypedContractMethod<[roundId: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "voteSucceeded" ): TypedContractMethod< [roundId: BigNumberish, quorumValue: BigNumberish], [boolean], "view" >; getFunction( nameOrSignature: "votingThreshold" ): TypedContractMethod<[], [bigint], "view">; getEvent( key: "AllocationVoteCast" ): TypedContractEvent< AllocationVoteCastEvent.InputTuple, AllocationVoteCastEvent.OutputTuple, AllocationVoteCastEvent.OutputObject >; getEvent( key: "VotingThresholdSet" ): TypedContractEvent< VotingThresholdSetEvent.InputTuple, VotingThresholdSetEvent.OutputTuple, VotingThresholdSetEvent.OutputObject >; filters: { "AllocationVoteCast(address,uint256,bytes32[],uint256[])": TypedContractEvent< AllocationVoteCastEvent.InputTuple, AllocationVoteCastEvent.OutputTuple, AllocationVoteCastEvent.OutputObject >; AllocationVoteCast: TypedContractEvent< AllocationVoteCastEvent.InputTuple, AllocationVoteCastEvent.OutputTuple, AllocationVoteCastEvent.OutputObject >; "VotingThresholdSet(uint256,uint256)": TypedContractEvent< VotingThresholdSetEvent.InputTuple, VotingThresholdSetEvent.OutputTuple, VotingThresholdSetEvent.OutputObject >; VotingThresholdSet: TypedContractEvent< VotingThresholdSetEvent.InputTuple, VotingThresholdSetEvent.OutputTuple, VotingThresholdSetEvent.OutputObject >; }; }