/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import type { PromiseOrValue } from "../../../common";
import type {
  HashCheckVerifier,
  HashCheckVerifierInterface,
} from "../../../contracts/Verifiers/HashCheckVerifier";

const _abi = [
  {
    inputs: [
      {
        internalType: "uint256[2]",
        name: "a",
        type: "uint256[2]",
      },
      {
        internalType: "uint256[2][2]",
        name: "b",
        type: "uint256[2][2]",
      },
      {
        internalType: "uint256[2]",
        name: "c",
        type: "uint256[2]",
      },
      {
        internalType: "uint256[1]",
        name: "input",
        type: "uint256[1]",
      },
    ],
    name: "verifyProof",
    outputs: [
      {
        internalType: "bool",
        name: "r",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
];

const _bytecode =
  "[encoded data, 9026 characters]";

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

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

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

  override deploy(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<HashCheckVerifier> {
    return super.deploy(overrides || {}) as Promise<HashCheckVerifier>;
  }
  override getDeployTransaction(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(overrides || {});
  }
  override attach(address: string): HashCheckVerifier {
    return super.attach(address) as HashCheckVerifier;
  }
  override connect(signer: Signer): HashCheckVerifier__factory {
    return super.connect(signer) as HashCheckVerifier__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): HashCheckVerifierInterface {
    return new utils.Interface(_abi) as HashCheckVerifierInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): HashCheckVerifier {
    return new Contract(address, _abi, signerOrProvider) as HashCheckVerifier;
  }
}
