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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  IAllocation,
  IAllocationInterface,
} from "../../../../contracts/subgraph-service/internal/IAllocation";

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
    ],
    name: "AllocationAlreadyExists",
    type: "error",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "closedAt",
        type: "uint256",
      },
    ],
    name: "AllocationClosed",
    type: "error",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
    ],
    name: "AllocationDoesNotExist",
    type: "error",
  },
] as const;

export class IAllocation__factory {
  static readonly abi = _abi;
  static createInterface(): IAllocationInterface {
    return new utils.Interface(_abi) as IAllocationInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider,
  ): IAllocation {
    return new Contract(address, _abi, signerOrProvider) as IAllocation;
  }
}
