/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Contract,
  ContractFactory,
  ContractTransactionResponse,
  Interface,
} from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../../../../../common";
import type {
  LinkedList,
  LinkedListInterface,
} from "../../../../../@graphprotocol/horizon/contracts/libraries/LinkedList";

const _abi = [
  {
    inputs: [],
    name: "LinkedListEmptyList",
    type: "error",
  },
  {
    inputs: [],
    name: "LinkedListInvalidIterations",
    type: "error",
  },
  {
    inputs: [],
    name: "LinkedListInvalidZeroId",
    type: "error",
  },
  {
    inputs: [],
    name: "LinkedListMaxElementsExceeded",
    type: "error",
  },
] as const;

const _bytecode =
  "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220634bc6e5aef788fd779dcee4cca795e76964f7e1e5b44586fd8eda2c36fc128764736f6c634300081b0033";

type LinkedListConstructorParams =
  | [signer?: Signer]
  | ConstructorParameters<typeof ContractFactory>;

const isSuperArgs = (
  xs: LinkedListConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;

export class LinkedList__factory extends ContractFactory {
  constructor(...args: LinkedListConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
  }

  override getDeployTransaction(
    overrides?: NonPayableOverrides & { from?: string }
  ): Promise<ContractDeployTransaction> {
    return super.getDeployTransaction(overrides || {});
  }
  override deploy(overrides?: NonPayableOverrides & { from?: string }) {
    return super.deploy(overrides || {}) as Promise<
      LinkedList & {
        deploymentTransaction(): ContractTransactionResponse;
      }
    >;
  }
  override connect(runner: ContractRunner | null): LinkedList__factory {
    return super.connect(runner) as LinkedList__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): LinkedListInterface {
    return new Interface(_abi) as LinkedListInterface;
  }
  static connect(address: string, runner?: ContractRunner | null): LinkedList {
    return new Contract(address, _abi, runner) as unknown as LinkedList;
  }
}
