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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IDisputeManager,
  IDisputeManagerInterface,
} from "../../../../contracts/contracts/disputes/IDisputeManager";

const _abi = [
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "disputeID",
        type: "bytes32",
      },
    ],
    name: "acceptDispute",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        components: [
          {
            internalType: "bytes32",
            name: "requestCID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "responseCID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "subgraphDeploymentID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "r",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "s",
            type: "bytes32",
          },
          {
            internalType: "uint8",
            name: "v",
            type: "uint8",
          },
        ],
        internalType: "struct IDisputeManager.Attestation",
        name: "attestation1",
        type: "tuple",
      },
      {
        components: [
          {
            internalType: "bytes32",
            name: "requestCID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "responseCID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "subgraphDeploymentID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "r",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "s",
            type: "bytes32",
          },
          {
            internalType: "uint8",
            name: "v",
            type: "uint8",
          },
        ],
        internalType: "struct IDisputeManager.Attestation",
        name: "attestation2",
        type: "tuple",
      },
    ],
    name: "areConflictingAttestations",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "allocationID",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "deposit",
        type: "uint256",
      },
    ],
    name: "createIndexingDispute",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes",
        name: "attestationData",
        type: "bytes",
      },
      {
        internalType: "uint256",
        name: "deposit",
        type: "uint256",
      },
    ],
    name: "createQueryDispute",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes",
        name: "attestationData1",
        type: "bytes",
      },
      {
        internalType: "bytes",
        name: "attestationData2",
        type: "bytes",
      },
    ],
    name: "createQueryDisputeConflict",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "disputeID",
        type: "bytes32",
      },
    ],
    name: "drawDispute",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        components: [
          {
            internalType: "bytes32",
            name: "requestCID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "responseCID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "subgraphDeploymentID",
            type: "bytes32",
          },
        ],
        internalType: "struct IDisputeManager.Receipt",
        name: "receipt",
        type: "tuple",
      },
    ],
    name: "encodeHashReceipt",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        components: [
          {
            internalType: "bytes32",
            name: "requestCID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "responseCID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "subgraphDeploymentID",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "r",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "s",
            type: "bytes32",
          },
          {
            internalType: "uint8",
            name: "v",
            type: "uint8",
          },
        ],
        internalType: "struct IDisputeManager.Attestation",
        name: "attestation",
        type: "tuple",
      },
    ],
    name: "getAttestationIndexer",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "disputeID",
        type: "bytes32",
      },
    ],
    name: "isDisputeCreated",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "disputeID",
        type: "bytes32",
      },
    ],
    name: "rejectDispute",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "arbitrator",
        type: "address",
      },
    ],
    name: "setArbitrator",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint32",
        name: "percentage",
        type: "uint32",
      },
    ],
    name: "setFishermanRewardPercentage",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "minimumDeposit",
        type: "uint256",
      },
    ],
    name: "setMinimumDeposit",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint32",
        name: "qryPercentage",
        type: "uint32",
      },
      {
        internalType: "uint32",
        name: "idxPercentage",
        type: "uint32",
      },
    ],
    name: "setSlashingPercentage",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class IDisputeManager__factory {
  static readonly abi = _abi;
  static readonly interfaceId = "0xef9774c2" as const;
  static readonly interfaceName = "IDisputeManager" as const;
  static createInterface(): IDisputeManagerInterface {
    return new Interface(_abi) as IDisputeManagerInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null,
  ): IDisputeManager {
    return new Contract(address, _abi, runner) as unknown as IDisputeManager;
  }
}
