/* 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 {
  OtpMerkleTreeVerifier,
  OtpMerkleTreeVerifierInterface,
} from "../../contracts/OtpMerkleTreeVerifier";

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[2]",
        name: "input",
        type: "uint256[2]",
      },
    ],
    name: "verifyProof",
    outputs: [
      {
        internalType: "bool",
        name: "r",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
];

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

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

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

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

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

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