/* 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 DisputeManagerInterface extends ethers.utils.Interface {
  functions: {
    "acceptDispute(bytes32)": FunctionFragment;
    "acceptProxy(address)": FunctionFragment;
    "acceptProxyAndCall(address,bytes)": FunctionFragment;
    "arbitrator()": FunctionFragment;
    "areConflictingAttestations(tuple,tuple)": FunctionFragment;
    "controller()": FunctionFragment;
    "createIndexingDispute(address,uint256)": FunctionFragment;
    "createQueryDispute(bytes,uint256)": FunctionFragment;
    "createQueryDisputeConflict(bytes,bytes)": FunctionFragment;
    "disputes(bytes32)": FunctionFragment;
    "drawDispute(bytes32)": FunctionFragment;
    "encodeHashReceipt(tuple)": FunctionFragment;
    "fishermanRewardPercentage()": FunctionFragment;
    "getAttestationIndexer(tuple)": FunctionFragment;
    "idxSlashingPercentage()": FunctionFragment;
    "initialize(address,address,uint256,uint32,uint32,uint32)": FunctionFragment;
    "isDisputeCreated(bytes32)": FunctionFragment;
    "minimumDeposit()": FunctionFragment;
    "qrySlashingPercentage()": FunctionFragment;
    "rejectDispute(bytes32)": FunctionFragment;
    "setArbitrator(address)": FunctionFragment;
    "setController(address)": FunctionFragment;
    "setFishermanRewardPercentage(uint32)": FunctionFragment;
    "setMinimumDeposit(uint256)": FunctionFragment;
    "setSlashingPercentage(uint32,uint32)": FunctionFragment;
    "syncAllContracts()": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "acceptDispute",
    values: [BytesLike]
  ): string;
  encodeFunctionData(functionFragment: "acceptProxy", values: [string]): string;
  encodeFunctionData(
    functionFragment: "acceptProxyAndCall",
    values: [string, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "arbitrator",
    values?: undefined
  ): 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: "controller",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "createIndexingDispute",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "createQueryDispute",
    values: [BytesLike, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "createQueryDisputeConflict",
    values: [BytesLike, BytesLike]
  ): string;
  encodeFunctionData(functionFragment: "disputes", values: [BytesLike]): string;
  encodeFunctionData(
    functionFragment: "drawDispute",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "encodeHashReceipt",
    values: [
      {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
      }
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "fishermanRewardPercentage",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getAttestationIndexer",
    values: [
      {
        requestCID: BytesLike;
        responseCID: BytesLike;
        subgraphDeploymentID: BytesLike;
        r: BytesLike;
        s: BytesLike;
        v: BigNumberish;
      }
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "idxSlashingPercentage",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [
      string,
      string,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "isDisputeCreated",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "minimumDeposit",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "qrySlashingPercentage",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "rejectDispute",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setArbitrator",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "setController",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "setFishermanRewardPercentage",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setMinimumDeposit",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setSlashingPercentage",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "syncAllContracts",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "acceptDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptProxy",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptProxyAndCall",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "arbitrator", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "areConflictingAttestations",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "controller", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "createIndexingDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createQueryDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createQueryDisputeConflict",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "disputes", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "drawDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "encodeHashReceipt",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "fishermanRewardPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAttestationIndexer",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "idxSlashingPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "isDisputeCreated",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "minimumDeposit",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "qrySlashingPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "rejectDispute",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setArbitrator",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setController",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setFishermanRewardPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setMinimumDeposit",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setSlashingPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "syncAllContracts",
    data: BytesLike
  ): Result;

  events: {
    "ContractSynced(bytes32,address)": EventFragment;
    "DisputeAccepted(bytes32,address,address,uint256)": EventFragment;
    "DisputeDrawn(bytes32,address,address,uint256)": EventFragment;
    "DisputeLinked(bytes32,bytes32)": EventFragment;
    "DisputeRejected(bytes32,address,address,uint256)": EventFragment;
    "IndexingDisputeCreated(bytes32,address,address,uint256,address)": EventFragment;
    "ParameterUpdated(string)": EventFragment;
    "QueryDisputeCreated(bytes32,address,address,uint256,bytes32,bytes)": EventFragment;
    "SetController(address)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "ContractSynced"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "DisputeAccepted"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "DisputeDrawn"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "DisputeLinked"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "DisputeRejected"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "IndexingDisputeCreated"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "ParameterUpdated"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "QueryDisputeCreated"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SetController"): EventFragment;
}

export class DisputeManager 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: DisputeManagerInterface;

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

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

    acceptProxyAndCall(
      _proxy: string,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

    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]>;

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

    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>;

    disputes(
      arg0: BytesLike,
      overrides?: CallOverrides
    ): Promise<
      [string, string, BigNumber, string, number] & {
        indexer: string;
        fisherman: string;
        deposit: BigNumber;
        relatedDisputeID: string;
        disputeType: number;
      }
    >;

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

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

    fishermanRewardPercentage(overrides?: CallOverrides): Promise<[number]>;

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

    idxSlashingPercentage(overrides?: CallOverrides): Promise<[number]>;

    initialize(
      _controller: string,
      _arbitrator: string,
      _minimumDeposit: BigNumberish,
      _fishermanRewardPercentage: BigNumberish,
      _qrySlashingPercentage: BigNumberish,
      _idxSlashingPercentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

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

    qrySlashingPercentage(overrides?: CallOverrides): Promise<[number]>;

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

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

    setController(
      _controller: 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>;

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

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

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

  acceptProxyAndCall(
    _proxy: string,
    _data: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

  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>;

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

  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>;

  disputes(
    arg0: BytesLike,
    overrides?: CallOverrides
  ): Promise<
    [string, string, BigNumber, string, number] & {
      indexer: string;
      fisherman: string;
      deposit: BigNumber;
      relatedDisputeID: string;
      disputeType: number;
    }
  >;

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

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

  fishermanRewardPercentage(overrides?: CallOverrides): Promise<number>;

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

  idxSlashingPercentage(overrides?: CallOverrides): Promise<number>;

  initialize(
    _controller: string,
    _arbitrator: string,
    _minimumDeposit: BigNumberish,
    _fishermanRewardPercentage: BigNumberish,
    _qrySlashingPercentage: BigNumberish,
    _idxSlashingPercentage: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

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

  qrySlashingPercentage(overrides?: CallOverrides): Promise<number>;

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

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

  setController(
    _controller: 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>;

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

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

    acceptProxy(_proxy: string, overrides?: CallOverrides): Promise<void>;

    acceptProxyAndCall(
      _proxy: string,
      _data: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

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

    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>;

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

    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]>;

    disputes(
      arg0: BytesLike,
      overrides?: CallOverrides
    ): Promise<
      [string, string, BigNumber, string, number] & {
        indexer: string;
        fisherman: string;
        deposit: BigNumber;
        relatedDisputeID: string;
        disputeType: number;
      }
    >;

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

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

    fishermanRewardPercentage(overrides?: CallOverrides): Promise<number>;

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

    idxSlashingPercentage(overrides?: CallOverrides): Promise<number>;

    initialize(
      _controller: string,
      _arbitrator: string,
      _minimumDeposit: BigNumberish,
      _fishermanRewardPercentage: BigNumberish,
      _qrySlashingPercentage: BigNumberish,
      _idxSlashingPercentage: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

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

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

    qrySlashingPercentage(overrides?: CallOverrides): Promise<number>;

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

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

    setController(
      _controller: 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>;

    syncAllContracts(overrides?: CallOverrides): Promise<void>;
  };

  filters: {
    ContractSynced(
      nameHash?: BytesLike | null,
      contractAddress?: null
    ): TypedEventFilter<
      [string, string],
      { nameHash: string; contractAddress: string }
    >;

    DisputeAccepted(
      disputeID?: BytesLike | null,
      indexer?: string | null,
      fisherman?: string | null,
      tokens?: null
    ): TypedEventFilter<
      [string, string, string, BigNumber],
      {
        disputeID: string;
        indexer: string;
        fisherman: string;
        tokens: BigNumber;
      }
    >;

    DisputeDrawn(
      disputeID?: BytesLike | null,
      indexer?: string | null,
      fisherman?: string | null,
      tokens?: null
    ): TypedEventFilter<
      [string, string, string, BigNumber],
      {
        disputeID: string;
        indexer: string;
        fisherman: string;
        tokens: BigNumber;
      }
    >;

    DisputeLinked(
      disputeID1?: BytesLike | null,
      disputeID2?: BytesLike | null
    ): TypedEventFilter<
      [string, string],
      { disputeID1: string; disputeID2: string }
    >;

    DisputeRejected(
      disputeID?: BytesLike | null,
      indexer?: string | null,
      fisherman?: string | null,
      tokens?: null
    ): TypedEventFilter<
      [string, string, string, BigNumber],
      {
        disputeID: string;
        indexer: string;
        fisherman: string;
        tokens: BigNumber;
      }
    >;

    IndexingDisputeCreated(
      disputeID?: BytesLike | null,
      indexer?: string | null,
      fisherman?: string | null,
      tokens?: null,
      allocationID?: null
    ): TypedEventFilter<
      [string, string, string, BigNumber, string],
      {
        disputeID: string;
        indexer: string;
        fisherman: string;
        tokens: BigNumber;
        allocationID: string;
      }
    >;

    ParameterUpdated(
      param?: null
    ): TypedEventFilter<[string], { param: string }>;

    QueryDisputeCreated(
      disputeID?: BytesLike | null,
      indexer?: string | null,
      fisherman?: string | null,
      tokens?: null,
      subgraphDeploymentID?: null,
      attestation?: null
    ): TypedEventFilter<
      [string, string, string, BigNumber, string, string],
      {
        disputeID: string;
        indexer: string;
        fisherman: string;
        tokens: BigNumber;
        subgraphDeploymentID: string;
        attestation: string;
      }
    >;

    SetController(
      controller?: null
    ): TypedEventFilter<[string], { controller: string }>;
  };

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

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

    acceptProxyAndCall(
      _proxy: string,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    arbitrator(overrides?: CallOverrides): 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>;

    controller(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>;

    disputes(arg0: BytesLike, overrides?: CallOverrides): 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>;

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

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

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

    initialize(
      _controller: string,
      _arbitrator: string,
      _minimumDeposit: BigNumberish,
      _fishermanRewardPercentage: BigNumberish,
      _qrySlashingPercentage: BigNumberish,
      _idxSlashingPercentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

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

    qrySlashingPercentage(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>;

    setController(
      _controller: 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>;

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

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

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

    acceptProxyAndCall(
      _proxy: string,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    arbitrator(overrides?: CallOverrides): 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>;

    controller(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>;

    disputes(
      arg0: BytesLike,
      overrides?: CallOverrides
    ): 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>;

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

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

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

    initialize(
      _controller: string,
      _arbitrator: string,
      _minimumDeposit: BigNumberish,
      _fishermanRewardPercentage: BigNumberish,
      _qrySlashingPercentage: BigNumberish,
      _idxSlashingPercentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

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

    qrySlashingPercentage(
      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>;

    setController(
      _controller: 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>;

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