UNPKG

@gooddollar/goodprotocol

Version:
104 lines (86 loc) 2.52 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils, } from "ethers"; import type { FunctionFragment, Result } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, } from "../../../common"; export declare namespace Voters { export type VoterStruct = { account: string; votingPower: BigNumberish }; export type VoterStructOutput = [string, BigNumber] & { account: string; votingPower: BigNumber; }; } export interface VotersInterface extends utils.Interface { functions: { "voters(address)": FunctionFragment; }; getFunction(nameOrSignatureOrTopic: "voters"): FunctionFragment; encodeFunctionData(functionFragment: "voters", values: [string]): string; decodeFunctionResult(functionFragment: "voters", data: BytesLike): Result; events: {}; } export interface Voters extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; interface: VotersInterface; queryFilter<TEvent extends TypedEvent>( event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TEvent>>; listeners<TEvent extends TypedEvent>( eventFilter?: TypedEventFilter<TEvent> ): Array<TypedListener<TEvent>>; listeners(eventName?: string): Array<Listener>; removeAllListeners<TEvent extends TypedEvent>( eventFilter: TypedEventFilter<TEvent> ): this; removeAllListeners(eventName?: string): this; off: OnEvent<this>; on: OnEvent<this>; once: OnEvent<this>; removeListener: OnEvent<this>; functions: { voters( _account: string, overrides?: CallOverrides ): Promise<[Voters.VoterStructOutput]>; }; voters( _account: string, overrides?: CallOverrides ): Promise<Voters.VoterStructOutput>; callStatic: { voters( _account: string, overrides?: CallOverrides ): Promise<Voters.VoterStructOutput>; }; filters: {}; estimateGas: { voters(_account: string, overrides?: CallOverrides): Promise<BigNumber>; }; populateTransaction: { voters( _account: string, overrides?: CallOverrides ): Promise<PopulatedTransaction>; }; }