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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IServiceRegistry,
  IServiceRegistryInterface,
} from "../../../../contracts/contracts/discovery/IServiceRegistry";

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "indexer",
        type: "address",
      },
    ],
    name: "isRegistered",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "url",
        type: "string",
      },
      {
        internalType: "string",
        name: "geohash",
        type: "string",
      },
    ],
    name: "register",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        internalType: "string",
        name: "url",
        type: "string",
      },
      {
        internalType: "string",
        name: "geohash",
        type: "string",
      },
    ],
    name: "registerFor",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "unregister",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "indexer",
        type: "address",
      },
    ],
    name: "unregisterFor",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

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