/* 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 IDisputeManagerInterface extends ethers.utils.Interface {
  functions: {
    "acceptDispute(bytes32)": FunctionFragment;
    "areConflictingAttestations(tuple,tuple)": FunctionFragment;
    "createIndexingDispute(address,uint256)": FunctionFragment;
    "createQueryDispute(bytes,uint256)": FunctionFragment;
    "createQueryDisputeConflict(bytes,bytes)": FunctionFragment;
    "drawDispute(bytes32)": FunctionFragment;
    "encodeHashReceipt(tuple)": FunctionFragment;
    "getAttestationIndexer(tuple)": FunctionFragment;
    "isDisputeCreated(bytes32)": FunctionFragment;
    "rejectDispute(bytes32)": FunctionFragment;
    "setArbitrator(address)": FunctionFragment;
    "setFishermanRewardPercentage(uint32)": FunctionFragment;
    "setMinimumDeposit(uint256)": FunctionFragment;
    "setSlashingPercentage(uint32,uint32)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "acceptDispute",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "areConflictingAttestations",
    values: [
      {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      }
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "createIndexingDispute",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "createQueryDispute",
    values: [BytesLike, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "createQueryDisputeConflict",
    values: [BytesLike, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "drawDispute",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "encodeHashReceipt",
    values: [
      {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
      }
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "getAttestationIndexer",
    values: [
      {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      }
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "isDisputeCreated",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "rejectDispute",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setArbitrator",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "setFishermanRewardPercentage",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setMinimumDeposit",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setSlashingPercentage",
    values: [BigNumberish, BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "acceptDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "areConflictingAttestations",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createIndexingDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createQueryDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createQueryDisputeConflict",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "drawDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "encodeHashReceipt",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAttestationIndexer",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isDisputeCreated",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "rejectDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setArbitrator",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setFishermanRewardPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setMinimumDeposit",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setSlashingPercentage",
    data: BytesLike
  ): Result;

  events: {};
}

export class IDisputeManager 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: IDisputeManagerInterface;

  functions: {
    acceptDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    areConflictingAttestations(
      _attestation1: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      _attestation2: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    createIndexingDispute(
      _allocationID: string,
      _deposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    createQueryDispute(
      _attestationData: BytesLike,
      _deposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    createQueryDisputeConflict(
      _attestationData1: BytesLike,
      _attestationData2: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    drawDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    encodeHashReceipt(
      _receipt: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
      },
      overrides?: CallOverrides
    ): Promise<[string]>;

    getAttestationIndexer(
      _attestation: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      overrides?: CallOverrides
    ): Promise<[string]>;

    isDisputeCreated(
      _disputeID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    rejectDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setArbitrator(
      _arbitrator: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setFishermanRewardPercentage(
      _percentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setMinimumDeposit(
      _minimumDeposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setSlashingPercentage(
      _qryPercentage: BigNumberish,
      _idxPercentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

  acceptDispute(
    _disputeID: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  areConflictingAttestations(
    _attestation1: {
      requestCID: BytesLike;
      responseCID: BytesLike;
      subgraphDeploymentID: BytesLike;
      r: BytesLike;
      s: BytesLike;
      v: BigNumberish;
    },
    _attestation2: {
      requestCID: BytesLike;
      responseCID: BytesLike;
      subgraphDeploymentID: BytesLike;
      r: BytesLike;
      s: BytesLike;
      v: BigNumberish;
    },
    overrides?: CallOverrides
  ): Promise<boolean>;

  createIndexingDispute(
    _allocationID: string,
    _deposit: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  createQueryDispute(
    _attestationData: BytesLike,
    _deposit: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  createQueryDisputeConflict(
    _attestationData1: BytesLike,
    _attestationData2: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  drawDispute(
    _disputeID: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  encodeHashReceipt(
    _receipt: {
      requestCID: BytesLike;
      responseCID: BytesLike;
      subgraphDeploymentID: BytesLike;
    },
    overrides?: CallOverrides
  ): Promise<string>;

  getAttestationIndexer(
    _attestation: {
      requestCID: BytesLike;
      responseCID: BytesLike;
      subgraphDeploymentID: BytesLike;
      r: BytesLike;
      s: BytesLike;
      v: BigNumberish;
    },
    overrides?: CallOverrides
  ): Promise<string>;

  isDisputeCreated(
    _disputeID: BytesLike,
    overrides?: CallOverrides
  ): Promise<boolean>;

  rejectDispute(
    _disputeID: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setArbitrator(
    _arbitrator: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setFishermanRewardPercentage(
    _percentage: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setMinimumDeposit(
    _minimumDeposit: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setSlashingPercentage(
    _qryPercentage: BigNumberish,
    _idxPercentage: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    acceptDispute(
      _disputeID: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    areConflictingAttestations(
      _attestation1: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      _attestation2: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      overrides?: CallOverrides
    ): Promise<boolean>;

    createIndexingDispute(
      _allocationID: string,
      _deposit: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;

    createQueryDispute(
      _attestationData: BytesLike,
      _deposit: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;

    createQueryDisputeConflict(
      _attestationData1: BytesLike,
      _attestationData2: BytesLike,
      overrides?: CallOverrides
    ): Promise<[string, string]>;

    drawDispute(
      _disputeID: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    encodeHashReceipt(
      _receipt: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
      },
      overrides?: CallOverrides
    ): Promise<string>;

    getAttestationIndexer(
      _attestation: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      overrides?: CallOverrides
    ): Promise<string>;

    isDisputeCreated(
      _disputeID: BytesLike,
      overrides?: CallOverrides
    ): Promise<boolean>;

    rejectDispute(
      _disputeID: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    setArbitrator(
      _arbitrator: string,
      overrides?: CallOverrides
    ): Promise<void>;

    setFishermanRewardPercentage(
      _percentage: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    setMinimumDeposit(
      _minimumDeposit: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    setSlashingPercentage(
      _qryPercentage: BigNumberish,
      _idxPercentage: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {};

  estimateGas: {
    acceptDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    areConflictingAttestations(
      _attestation1: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      _attestation2: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    createIndexingDispute(
      _allocationID: string,
      _deposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    createQueryDispute(
      _attestationData: BytesLike,
      _deposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    createQueryDisputeConflict(
      _attestationData1: BytesLike,
      _attestationData2: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    drawDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    encodeHashReceipt(
      _receipt: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
      },
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getAttestationIndexer(
      _attestation: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    isDisputeCreated(
      _disputeID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    rejectDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setArbitrator(
      _arbitrator: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setFishermanRewardPercentage(
      _percentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setMinimumDeposit(
      _minimumDeposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setSlashingPercentage(
      _qryPercentage: BigNumberish,
      _idxPercentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    acceptDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    areConflictingAttestations(
      _attestation1: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      _attestation2: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    createIndexingDispute(
      _allocationID: string,
      _deposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    createQueryDispute(
      _attestationData: BytesLike,
      _deposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    createQueryDisputeConflict(
      _attestationData1: BytesLike,
      _attestationData2: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    drawDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    encodeHashReceipt(
      _receipt: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
      },
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getAttestationIndexer(
      _attestation: {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      },
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    isDisputeCreated(
      _disputeID: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    rejectDispute(
      _disputeID: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setArbitrator(
      _arbitrator: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setFishermanRewardPercentage(
      _percentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setMinimumDeposit(
      _minimumDeposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setSlashingPercentage(
      _qryPercentage: BigNumberish,
      _idxPercentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
