/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import { TypedEventFilter, TypedEvent, TypedListener } from "./commons";

interface IGraphGovernanceInterface extends ethers.utils.Interface {
  functions: {
    "createProposal(bytes32,bytes32,bytes32,uint8)": FunctionFragment;
    "isProposalCreated(bytes32)": FunctionFragment;
    "updateProposal(bytes32,bytes32,bytes32,uint8)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "createProposal",
    values: [BytesLike, BytesLike, BytesLike, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isProposalCreated",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "updateProposal",
    values: [BytesLike, BytesLike, BytesLike, BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "createProposal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isProposalCreated",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateProposal",
    data: BytesLike
  ): Result;

  events: {};
}

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

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: IGraphGovernanceInterface;

  functions: {
    createProposal(
      _proposalId: BytesLike,
      _votes: BytesLike,
      _metadata: BytesLike,
      _resolution: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    isProposalCreated(
      _proposalId: BytesLike,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    updateProposal(
      _proposalId: BytesLike,
      _votes: BytesLike,
      _metadata: BytesLike,
      _resolution: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

  createProposal(
    _proposalId: BytesLike,
    _votes: BytesLike,
    _metadata: BytesLike,
    _resolution: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  isProposalCreated(
    _proposalId: BytesLike,
    overrides?: CallOverrides
  ): Promise<boolean>;

  updateProposal(
    _proposalId: BytesLike,
    _votes: BytesLike,
    _metadata: BytesLike,
    _resolution: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    createProposal(
      _proposalId: BytesLike,
      _votes: BytesLike,
      _metadata: BytesLike,
      _resolution: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    isProposalCreated(
      _proposalId: BytesLike,
      overrides?: CallOverrides
    ): Promise<boolean>;

    updateProposal(
      _proposalId: BytesLike,
      _votes: BytesLike,
      _metadata: BytesLike,
      _resolution: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {};

  estimateGas: {
    createProposal(
      _proposalId: BytesLike,
      _votes: BytesLike,
      _metadata: BytesLike,
      _resolution: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    isProposalCreated(
      _proposalId: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    updateProposal(
      _proposalId: BytesLike,
      _votes: BytesLike,
      _metadata: BytesLike,
      _resolution: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    createProposal(
      _proposalId: BytesLike,
      _votes: BytesLike,
      _metadata: BytesLike,
      _resolution: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    isProposalCreated(
      _proposalId: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    updateProposal(
      _proposalId: BytesLike,
      _votes: BytesLike,
      _metadata: BytesLike,
      _resolution: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
