UNPKG

@vechain/vebetterdao-contracts

Version:

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

117 lines (101 loc) 3.23 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "../../../common"; export interface VotesUtilsInterface extends Interface { getFunction( nameOrSignature: "CLOCK_MODE" | "clock" | "getVotes" ): FunctionFragment; encodeFunctionData( functionFragment: "CLOCK_MODE", values?: undefined ): string; encodeFunctionData(functionFragment: "clock", values?: undefined): string; encodeFunctionData( functionFragment: "getVotes", values: [AddressLike, BigNumberish] ): string; decodeFunctionResult(functionFragment: "CLOCK_MODE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "clock", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getVotes", data: BytesLike): Result; } export interface VotesUtils extends BaseContract { connect(runner?: ContractRunner | null): VotesUtils; waitForDeployment(): Promise<this>; interface: VotesUtilsInterface; 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">; clock: TypedContractMethod<[], [bigint], "view">; getVotes: TypedContractMethod< [account: AddressLike, timepoint: BigNumberish], [bigint], "view" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "CLOCK_MODE" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "clock" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "getVotes" ): TypedContractMethod< [account: AddressLike, timepoint: BigNumberish], [bigint], "view" >; filters: {}; }