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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  IServiceRegistryToolshed,
  IServiceRegistryToolshedInterface,
} from "../../../contracts/toolshed/IServiceRegistryToolshed";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        indexed: false,
        internalType: "string",
        name: "url",
        type: "string",
      },
      {
        indexed: false,
        internalType: "string",
        name: "geohash",
        type: "string",
      },
    ],
    name: "ServiceRegistered",
    type: "event",
  },
  {
    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: [
      {
        internalType: "address",
        name: "indexer",
        type: "address",
      },
    ],
    name: "services",
    outputs: [
      {
        internalType: "string",
        name: "url",
        type: "string",
      },
      {
        internalType: "string",
        name: "geoHash",
        type: "string",
      },
    ],
    stateMutability: "view",
    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 IServiceRegistryToolshed__factory {
  static readonly abi = _abi;
  static createInterface(): IServiceRegistryToolshedInterface {
    return new utils.Interface(_abi) as IServiceRegistryToolshedInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider,
  ): IServiceRegistryToolshed {
    return new Contract(
      address,
      _abi,
      signerOrProvider,
    ) as IServiceRegistryToolshed;
  }
}
