"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
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.MultiAssetVAnchorProxy__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "contract IHasher",
                name: "_hasher",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "lastProcessedDepositLeaf",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "newRoot",
                type: "bytes32",
            },
        ],
        name: "BatchInsertERC20s",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "lastProcessedNFTLeaf",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "newRoot",
                type: "bytes32",
            },
        ],
        name: "BatchInsertNFTs",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "lastProcessedRewardSpentTreeLeaf",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "newRoot",
                type: "bytes32",
            },
        ],
        name: "BatchInsertRewardSpentTree",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "lastProcessedRewardUnspentTreeLeaf",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "newRoot",
                type: "bytes32",
            },
        ],
        name: "BatchInsertRewardUnspentTree",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "depositIndex",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
        ],
        name: "QueueDeposit",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "rewardSpentTreeIndex",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
        ],
        name: "QueueRewardSpentTree",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "rewardUnspentTreeIndex",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
        ],
        name: "QueueRewardUnspentTree",
        type: "event",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "QueueERC20DepositMap",
        outputs: [
            {
                internalType: "address",
                name: "unwrappedToken",
                type: "address",
            },
            {
                internalType: "address",
                name: "wrappedToken",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "assetID",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "tokenID",
                type: "uint256",
            },
            {
                internalType: "bytes32",
                name: "depositPartialCommitment",
                type: "bytes32",
            },
            {
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "QueueERC721DepositMap",
        outputs: [
            {
                internalType: "address",
                name: "unwrappedToken",
                type: "address",
            },
            {
                internalType: "address",
                name: "wrappedToken",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "assetID",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "tokenID",
                type: "uint256",
            },
            {
                internalType: "bytes32",
                name: "depositPartialCommitment",
                type: "bytes32",
            },
            {
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "RewardSpentTreeCommitmentMap",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "RewardUnspentTreeCommitmentMap",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "_proof",
                type: "bytes",
            },
            {
                internalType: "bytes32",
                name: "_argsHash",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "_currentRoot",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "_newRoot",
                type: "bytes32",
            },
            {
                internalType: "uint32",
                name: "_pathIndices",
                type: "uint32",
            },
            {
                internalType: "uint8",
                name: "_batchHeight",
                type: "uint8",
            },
        ],
        name: "batchDepositERC20s",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "_proof",
                type: "bytes",
            },
            {
                internalType: "bytes32",
                name: "_argsHash",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "_currentRoot",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "_newRoot",
                type: "bytes32",
            },
            {
                internalType: "uint32",
                name: "_pathIndices",
                type: "uint32",
            },
            {
                internalType: "uint8",
                name: "_batchHeight",
                type: "uint8",
            },
        ],
        name: "batchDepositERC721s",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "_proof",
                type: "bytes",
            },
            {
                internalType: "bytes32",
                name: "_argsHash",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "_currentRoot",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "_newRoot",
                type: "bytes32",
            },
            {
                internalType: "uint32",
                name: "_pathIndices",
                type: "uint32",
            },
            {
                internalType: "uint8",
                name: "_batchHeight",
                type: "uint8",
            },
        ],
        name: "batchInsertRewardSpentTree",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "_proof",
                type: "bytes",
            },
            {
                internalType: "bytes32",
                name: "_argsHash",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "_currentRoot",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "_newRoot",
                type: "bytes32",
            },
            {
                internalType: "uint32",
                name: "_pathIndices",
                type: "uint32",
            },
            {
                internalType: "uint8",
                name: "_batchHeight",
                type: "uint8",
            },
        ],
        name: "batchInsertRewardUnspentTree",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "depositRoot",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "hasher",
        outputs: [
            {
                internalType: "contract IHasher",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IMultiAssetVAnchorBatchTree[]",
                name: "_validProxiedMASPs",
                type: "address[]",
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "initialized",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lastProcessedERC20DepositLeaf",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lastProcessedERC721DepositLeaf",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lastProcessedRewardSpentTreeLeaf",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lastProcessedRewardUnspentTreeLeaf",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "nextQueueERC20DepositIndex",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "nextQueueERC721DepositIndex",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "nextRewardSpentTreeCommitmentIndex",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "nextRewardUnspentTreeCommitmentIndex",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "operator",
                type: "address",
            },
            {
                internalType: "address",
                name: "from",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "tokenId",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "data",
                type: "bytes",
            },
        ],
        name: "onERC721Received",
        outputs: [
            {
                internalType: "bytes4",
                name: "",
                type: "bytes4",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "previousDepositRoot",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "previousWithdrawalRoot",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "address",
                        name: "unwrappedToken",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "wrappedToken",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "amount",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "assetID",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "tokenID",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes32",
                        name: "depositPartialCommitment",
                        type: "bytes32",
                    },
                    {
                        internalType: "address",
                        name: "proxiedMASP",
                        type: "address",
                    },
                ],
                internalType: "struct MultiAssetVAnchorProxy.QueueDepositInfo",
                name: "depositInfo",
                type: "tuple",
            },
        ],
        name: "queueERC20Deposit",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "address",
                        name: "unwrappedToken",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "wrappedToken",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "amount",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "assetID",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "tokenID",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes32",
                        name: "depositPartialCommitment",
                        type: "bytes32",
                    },
                    {
                        internalType: "address",
                        name: "proxiedMASP",
                        type: "address",
                    },
                ],
                internalType: "struct MultiAssetVAnchorProxy.QueueDepositInfo",
                name: "depositInfo",
                type: "tuple",
            },
        ],
        name: "queueERC721Deposit",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "rewardSpentTreeCommitment",
                type: "bytes32",
            },
        ],
        name: "queueRewardSpentTreeCommitment",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "proxiedMASP",
                type: "address",
            },
            {
                internalType: "bytes32",
                name: "rewardUnspentTreeCommitment",
                type: "bytes32",
            },
        ],
        name: "queueRewardUnspentTreeCommitment",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "validProxiedMASPs",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "withdrawalRoot",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
var _bytecode = " ";
var MultiAssetVAnchorProxy__factory = /** @class */ (function (_super) {
    __extends(MultiAssetVAnchorProxy__factory, _super);
    function MultiAssetVAnchorProxy__factory() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var _this = this;
        if (args.length === 1) {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        else {
            _this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
        }
        return _this;
    }
    MultiAssetVAnchorProxy__factory.prototype.deploy = function (_hasher, overrides) {
        return _super.prototype.deploy.call(this, _hasher, overrides || {});
    };
    MultiAssetVAnchorProxy__factory.prototype.getDeployTransaction = function (_hasher, overrides) {
        return _super.prototype.getDeployTransaction.call(this, _hasher, overrides || {});
    };
    MultiAssetVAnchorProxy__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    MultiAssetVAnchorProxy__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    MultiAssetVAnchorProxy__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    MultiAssetVAnchorProxy__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    MultiAssetVAnchorProxy__factory.bytecode = _bytecode;
    MultiAssetVAnchorProxy__factory.abi = _abi;
    return MultiAssetVAnchorProxy__factory;
}(ethers_1.ContractFactory));
exports.MultiAssetVAnchorProxy__factory = MultiAssetVAnchorProxy__factory;
