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

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

const _bytecode =
  "0x61011761003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060335760003560e01c806325cc70e8146038575b600080fd5b60496043366004605b565b50600090565b60405190815260200160405180910390f35b600060608284031215606c57600080fd5b82601f830112607a57600080fd5b6040516060810181811067ffffffffffffffff8211171560aa57634e487b7160e01b600052604160045260246000fd5b60405280606084018581111560be57600080fd5b845b8181101560d657803583526020928301920160c0565b50919594505050505056fea2646970667358221220a31b5fa91d3d27aa514faefa33a2097a8068a80dfcc7dbc305099de607a41ed264736f6c63430008120033";

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

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

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

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

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