/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  ContractTransaction,
  Overrides,
  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,
  PromiseOrValue,
} from "../../common";

export interface InfiniteVoteInterface extends utils.Interface {
  functions: {
    "COST_REGISTER()": FunctionFragment;
    "NUM_SUBVOTERS()": FunctionFragment;
    "PROPOSAL()": FunctionFragment;
    "ecoaddress()": FunctionFragment;
    "infiniteVote(address,address)": FunctionFragment;
    "subvoters(uint256)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "COST_REGISTER"
      | "NUM_SUBVOTERS"
      | "PROPOSAL"
      | "ecoaddress"
      | "infiniteVote"
      | "subvoters"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "COST_REGISTER",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "NUM_SUBVOTERS",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "PROPOSAL", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "ecoaddress",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "infiniteVote",
    values: [PromiseOrValue<string>, PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "subvoters",
    values: [PromiseOrValue<BigNumberish>]
  ): string;

  decodeFunctionResult(
    functionFragment: "COST_REGISTER",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "NUM_SUBVOTERS",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "PROPOSAL", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "ecoaddress", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "infiniteVote",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "subvoters", data: BytesLike): Result;

  events: {};
}

export interface InfiniteVote extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  interface: InfiniteVoteInterface;

  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: {
    COST_REGISTER(overrides?: CallOverrides): Promise<[BigNumber]>;

    NUM_SUBVOTERS(overrides?: CallOverrides): Promise<[BigNumber]>;

    PROPOSAL(overrides?: CallOverrides): Promise<[string]>;

    ecoaddress(overrides?: CallOverrides): Promise<[string]>;

    infiniteVote(
      timed: PromiseOrValue<string>,
      policy: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    subvoters(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string]>;
  };

  COST_REGISTER(overrides?: CallOverrides): Promise<BigNumber>;

  NUM_SUBVOTERS(overrides?: CallOverrides): Promise<BigNumber>;

  PROPOSAL(overrides?: CallOverrides): Promise<string>;

  ecoaddress(overrides?: CallOverrides): Promise<string>;

  infiniteVote(
    timed: PromiseOrValue<string>,
    policy: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  subvoters(
    arg0: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<string>;

  callStatic: {
    COST_REGISTER(overrides?: CallOverrides): Promise<BigNumber>;

    NUM_SUBVOTERS(overrides?: CallOverrides): Promise<BigNumber>;

    PROPOSAL(overrides?: CallOverrides): Promise<string>;

    ecoaddress(overrides?: CallOverrides): Promise<string>;

    infiniteVote(
      timed: PromiseOrValue<string>,
      policy: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    subvoters(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<string>;
  };

  filters: {};

  estimateGas: {
    COST_REGISTER(overrides?: CallOverrides): Promise<BigNumber>;

    NUM_SUBVOTERS(overrides?: CallOverrides): Promise<BigNumber>;

    PROPOSAL(overrides?: CallOverrides): Promise<BigNumber>;

    ecoaddress(overrides?: CallOverrides): Promise<BigNumber>;

    infiniteVote(
      timed: PromiseOrValue<string>,
      policy: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    subvoters(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    COST_REGISTER(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    NUM_SUBVOTERS(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    PROPOSAL(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    ecoaddress(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    infiniteVote(
      timed: PromiseOrValue<string>,
      policy: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    subvoters(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
