"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __read = (this && this.__read) || function (o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PoseidonT2__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "uint256[1]",
                name: "input",
                type: "uint256[1]",
            },
        ],
        name: "poseidon",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
];
var _bytecode = "0x61011661003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060335760003560e01c80631caab9a7146038575b600080fd5b60496043366004605b565b50600090565b60405190815260200160405180910390f35b60006020808385031215606d57600080fd5b83601f840112607b57600080fd5b60405181810181811067ffffffffffffffff8211171560aa57634e487b7160e01b600052604160045260246000fd5b604052808483018681111560bd57600080fd5b855b8181101560d4578035835291840191840160bf565b5091969550505050505056fea26469706673582212202ec08c7372ee07ceee2d320b2f0f970cf8e1f10be5da228b262f6054ea0ea48d64736f6c63430008120033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var PoseidonT2__factory = exports.PoseidonT2__factory = /** @class */ (function (_super) {
    __extends(PoseidonT2__factory, _super);
    function PoseidonT2__factory() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var _this = this;
        if (isSuperArgs(args)) {
            _this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
        }
        else {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        return _this;
    }
    PoseidonT2__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    PoseidonT2__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    PoseidonT2__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    PoseidonT2__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    PoseidonT2__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    PoseidonT2__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    PoseidonT2__factory.bytecode = _bytecode;
    PoseidonT2__factory.abi = _abi;
    return PoseidonT2__factory;
}(ethers_1.ContractFactory));
