"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.TxProofVerifier__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "contract IAnchorVerifier",
                name: "_verifier",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [
            {
                internalType: "uint256[8]",
                name: "_proof",
                type: "uint256[8]",
            },
        ],
        name: "unpackProof",
        outputs: [
            {
                internalType: "uint256[2]",
                name: "",
                type: "uint256[2]",
            },
            {
                internalType: "uint256[2][2]",
                name: "",
                type: "uint256[2][2]",
            },
            {
                internalType: "uint256[2]",
                name: "",
                type: "uint256[2]",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [],
        name: "verifier",
        outputs: [
            {
                internalType: "contract IAnchorVerifier",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b5060405161035c38038061035c83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6102c9806100936000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80632b7ac3f31461003b578063f5ab0dd61461006b575b600080fd5b60005461004e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61007e610079366004610161565b61008d565b60405161006293929190610217565b610095610116565b61009d610134565b6100a5610116565b50506040805180820182528351815260208085015181830152825160808082018552868501518286019081526060808901519084015282528451808601865290870151815260a08701518184015281830152835180850190945260c0860151845260e0909501519083015293909150565b60405180604001604052806002906020820280368337509192915050565b60405180604001604052806002905b61014b610116565b8152602001906001900390816101435790505090565b600061010080838503121561017557600080fd5b83601f84011261018457600080fd5b60405181810181811067ffffffffffffffff821117156101b457634e487b7160e01b600052604160045260246000fd5b6040529083019080858311156101c957600080fd5b845b838110156101e35780358252602091820191016101cb565b509095945050505050565b8060005b60028110156102115781518452602093840193909101906001016101f2565b50505050565b610100810161022682866101ee565b6040808301856000805b600280821061023f5750610279565b835185845b83811015610262578251825260209283019290910190600101610244565b505050938501935060209290920191600101610230565b505050505061028b60c08301846101ee565b94935050505056fea2646970667358221220dcfaeda82481e1440af2d56badc637b0872c75d5f9d82fe90161d4b56085a64764736f6c63430008120033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var TxProofVerifier__factory = exports.TxProofVerifier__factory = /** @class */ (function (_super) {
    __extends(TxProofVerifier__factory, _super);
    function TxProofVerifier__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;
    }
    TxProofVerifier__factory.prototype.deploy = function (_verifier, overrides) {
        return _super.prototype.deploy.call(this, _verifier, overrides || {});
    };
    TxProofVerifier__factory.prototype.getDeployTransaction = function (_verifier, overrides) {
        return _super.prototype.getDeployTransaction.call(this, _verifier, overrides || {});
    };
    TxProofVerifier__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    TxProofVerifier__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    TxProofVerifier__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    TxProofVerifier__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    TxProofVerifier__factory.bytecode = _bytecode;
    TxProofVerifier__factory.abi = _abi;
    return TxProofVerifier__factory;
}(ethers_1.ContractFactory));
