/* 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 {
  PoseidonT2,
  PoseidonT2Interface,
} from "../../../../contracts/hashers/Poseidon.sol/PoseidonT2";

const _abi = [
  {
    inputs: [
      {
        internalType: "uint256[1]",
        name: "input",
        type: "uint256[1]",
      },
    ],
    name: "poseidon",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
] as const;

const _bytecode =
  "0x61011661003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060335760003560e01c80631caab9a7146038575b600080fd5b60496043366004605b565b50600090565b60405190815260200160405180910390f35b60006020808385031215606d57600080fd5b83601f840112607b57600080fd5b60405181810181811067ffffffffffffffff8211171560aa57634e487b7160e01b600052604160045260246000fd5b604052808483018681111560bd57600080fd5b855b8181101560d4578035835291840191840160bf565b5091969550505050505056fea26469706673582212202ec08c7372ee07ceee2d320b2f0f970cf8e1f10be5da228b262f6054ea0ea48d64736f6c63430008120033";

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

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

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

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

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