/* 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 declare namespace IDisputeManager {
  export type AttestationStruct = {
    requestCID: PromiseOrValue<BytesLike>;
    responseCID: PromiseOrValue<BytesLike>;
    subgraphDeploymentID: PromiseOrValue<BytesLike>;
    r: PromiseOrValue<BytesLike>;
    s: PromiseOrValue<BytesLike>;
    v: PromiseOrValue<BigNumberish>;
  };

  export type AttestationStructOutput = [
    string,
    string,
    string,
    string,
    string,
    number,
  ] & {
    requestCID: string;
    responseCID: string;
    subgraphDeploymentID: string;
    r: string;
    s: string;
    v: number;
  };

  export type ReceiptStruct = {
    requestCID: PromiseOrValue<BytesLike>;
    responseCID: PromiseOrValue<BytesLike>;
    subgraphDeploymentID: PromiseOrValue<BytesLike>;
  };

  export type ReceiptStructOutput = [string, string, string] & {
    requestCID: string;
    responseCID: string;
    subgraphDeploymentID: string;
  };
}

export interface IDisputeManagerInterface extends utils.Interface {
  functions: {
    "acceptDispute(bytes32)": FunctionFragment;
    "areConflictingAttestations((bytes32,bytes32,bytes32,bytes32,bytes32,uint8),(bytes32,bytes32,bytes32,bytes32,bytes32,uint8))": FunctionFragment;
    "createIndexingDispute(address,uint256)": FunctionFragment;
    "createQueryDispute(bytes,uint256)": FunctionFragment;
    "createQueryDisputeConflict(bytes,bytes)": FunctionFragment;
    "drawDispute(bytes32)": FunctionFragment;
    "encodeHashReceipt((bytes32,bytes32,bytes32))": FunctionFragment;
    "getAttestationIndexer((bytes32,bytes32,bytes32,bytes32,bytes32,uint8))": FunctionFragment;
    "isDisputeCreated(bytes32)": FunctionFragment;
    "rejectDispute(bytes32)": FunctionFragment;
    "setArbitrator(address)": FunctionFragment;
    "setFishermanRewardPercentage(uint32)": FunctionFragment;
    "setMinimumDeposit(uint256)": FunctionFragment;
    "setSlashingPercentage(uint32,uint32)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "acceptDispute"
      | "areConflictingAttestations"
      | "createIndexingDispute"
      | "createQueryDispute"
      | "createQueryDisputeConflict"
      | "drawDispute"
      | "encodeHashReceipt"
      | "getAttestationIndexer"
      | "isDisputeCreated"
      | "rejectDispute"
      | "setArbitrator"
      | "setFishermanRewardPercentage"
      | "setMinimumDeposit"
      | "setSlashingPercentage",
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "acceptDispute",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "areConflictingAttestations",
    values: [
      IDisputeManager.AttestationStruct,
      IDisputeManager.AttestationStruct,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "createIndexingDispute",
    values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "createQueryDispute",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "createQueryDisputeConflict",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "drawDispute",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "encodeHashReceipt",
    values: [IDisputeManager.ReceiptStruct],
  ): string;
  encodeFunctionData(
    functionFragment: "getAttestationIndexer",
    values: [IDisputeManager.AttestationStruct],
  ): string;
  encodeFunctionData(
    functionFragment: "isDisputeCreated",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "rejectDispute",
    values: [PromiseOrValue<BytesLike>],
  ): string;
  encodeFunctionData(
    functionFragment: "setArbitrator",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "setFishermanRewardPercentage",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "setMinimumDeposit",
    values: [PromiseOrValue<BigNumberish>],
  ): string;
  encodeFunctionData(
    functionFragment: "setSlashingPercentage",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<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 interface IDisputeManager extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  interface: IDisputeManagerInterface;

  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: {
    acceptDispute(
      disputeID: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    areConflictingAttestations(
      attestation1: IDisputeManager.AttestationStruct,
      attestation2: IDisputeManager.AttestationStruct,
      overrides?: CallOverrides,
    ): Promise<[boolean]>;

    createIndexingDispute(
      allocationID: PromiseOrValue<string>,
      deposit: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    createQueryDispute(
      attestationData: PromiseOrValue<BytesLike>,
      deposit: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    createQueryDisputeConflict(
      attestationData1: PromiseOrValue<BytesLike>,
      attestationData2: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

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

    encodeHashReceipt(
      receipt: IDisputeManager.ReceiptStruct,
      overrides?: CallOverrides,
    ): Promise<[string]>;

    getAttestationIndexer(
      attestation: IDisputeManager.AttestationStruct,
      overrides?: CallOverrides,
    ): Promise<[string]>;

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

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

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

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

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

    setSlashingPercentage(
      qryPercentage: PromiseOrValue<BigNumberish>,
      idxPercentage: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;
  };

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

  areConflictingAttestations(
    attestation1: IDisputeManager.AttestationStruct,
    attestation2: IDisputeManager.AttestationStruct,
    overrides?: CallOverrides,
  ): Promise<boolean>;

  createIndexingDispute(
    allocationID: PromiseOrValue<string>,
    deposit: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  createQueryDispute(
    attestationData: PromiseOrValue<BytesLike>,
    deposit: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  createQueryDisputeConflict(
    attestationData1: PromiseOrValue<BytesLike>,
    attestationData2: PromiseOrValue<BytesLike>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

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

  encodeHashReceipt(
    receipt: IDisputeManager.ReceiptStruct,
    overrides?: CallOverrides,
  ): Promise<string>;

  getAttestationIndexer(
    attestation: IDisputeManager.AttestationStruct,
    overrides?: CallOverrides,
  ): Promise<string>;

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

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

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

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

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

  setSlashingPercentage(
    qryPercentage: PromiseOrValue<BigNumberish>,
    idxPercentage: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

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

    areConflictingAttestations(
      attestation1: IDisputeManager.AttestationStruct,
      attestation2: IDisputeManager.AttestationStruct,
      overrides?: CallOverrides,
    ): Promise<boolean>;

    createIndexingDispute(
      allocationID: PromiseOrValue<string>,
      deposit: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<string>;

    createQueryDispute(
      attestationData: PromiseOrValue<BytesLike>,
      deposit: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<string>;

    createQueryDisputeConflict(
      attestationData1: PromiseOrValue<BytesLike>,
      attestationData2: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides,
    ): Promise<[string, string]>;

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

    encodeHashReceipt(
      receipt: IDisputeManager.ReceiptStruct,
      overrides?: CallOverrides,
    ): Promise<string>;

    getAttestationIndexer(
      attestation: IDisputeManager.AttestationStruct,
      overrides?: CallOverrides,
    ): Promise<string>;

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

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

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

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

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

    setSlashingPercentage(
      qryPercentage: PromiseOrValue<BigNumberish>,
      idxPercentage: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;
  };

  filters: {};

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

    areConflictingAttestations(
      attestation1: IDisputeManager.AttestationStruct,
      attestation2: IDisputeManager.AttestationStruct,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    createIndexingDispute(
      allocationID: PromiseOrValue<string>,
      deposit: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    createQueryDispute(
      attestationData: PromiseOrValue<BytesLike>,
      deposit: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    createQueryDisputeConflict(
      attestationData1: PromiseOrValue<BytesLike>,
      attestationData2: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

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

    encodeHashReceipt(
      receipt: IDisputeManager.ReceiptStruct,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    getAttestationIndexer(
      attestation: IDisputeManager.AttestationStruct,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

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

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

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

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

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

    setSlashingPercentage(
      qryPercentage: PromiseOrValue<BigNumberish>,
      idxPercentage: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;
  };

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

    areConflictingAttestations(
      attestation1: IDisputeManager.AttestationStruct,
      attestation2: IDisputeManager.AttestationStruct,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    createIndexingDispute(
      allocationID: PromiseOrValue<string>,
      deposit: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    createQueryDispute(
      attestationData: PromiseOrValue<BytesLike>,
      deposit: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    createQueryDisputeConflict(
      attestationData1: PromiseOrValue<BytesLike>,
      attestationData2: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

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

    encodeHashReceipt(
      receipt: IDisputeManager.ReceiptStruct,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    getAttestationIndexer(
      attestation: IDisputeManager.AttestationStruct,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

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

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

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

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

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

    setSlashingPercentage(
      qryPercentage: PromiseOrValue<BigNumberish>,
      idxPercentage: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;
  };
}
