"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.SwapEncodeInputs__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [],
        name: "EVM_CHAIN_ID_TYPE",
        outputs: [
            {
                internalType: "bytes2",
                name: "",
                type: "bytes2",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "bytes",
                        name: "roots",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256",
                        name: "aliceSpendNullifier",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "bobSpendNullifier",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "swapChainID",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "currentTimestamp",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "aliceChangeRecord",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "bobChangeRecord",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "aliceReceiveRecord",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "bobReceiveRecord",
                        type: "uint256",
                    },
                ],
                internalType: "struct SwapPublicInputs",
                name: "_args",
                type: "tuple",
            },
            {
                internalType: "uint8",
                name: "_maxEdges",
                type: "uint8",
            },
        ],
        name: "_encodeInputs",
        outputs: [
            {
                internalType: "bytes",
                name: "",
                type: "bytes",
            },
            {
                internalType: "uint256[]",
                name: "",
                type: "uint256[]",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "getChainId",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "getChainIdType",
        outputs: [
            {
                internalType: "uint48",
                name: "",
                type: "uint48",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
var _bytecode = " ";
var SwapEncodeInputs__factory = /** @class */ (function (_super) {
    __extends(SwapEncodeInputs__factory, _super);
    function SwapEncodeInputs__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;
    }
    SwapEncodeInputs__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    SwapEncodeInputs__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    SwapEncodeInputs__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    SwapEncodeInputs__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    SwapEncodeInputs__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    SwapEncodeInputs__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    SwapEncodeInputs__factory.bytecode = _bytecode;
    SwapEncodeInputs__factory.abi = _abi;
    return SwapEncodeInputs__factory;
}(ethers_1.ContractFactory));
exports.SwapEncodeInputs__factory = SwapEncodeInputs__factory;
