"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MerkleLibTest__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "claimedBitMap",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "claimedBitMap1D",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "index",
                type: "uint256",
            },
        ],
        name: "isClaimed",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint8",
                name: "index",
                type: "uint8",
            },
        ],
        name: "isClaimed1D",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "index",
                type: "uint256",
            },
        ],
        name: "setClaimed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint8",
                name: "index",
                type: "uint8",
            },
        ],
        name: "setClaimed1D",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "root",
                type: "bytes32",
            },
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "chainId",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256[]",
                        name: "bundleLpFees",
                        type: "uint256[]",
                    },
                    {
                        internalType: "int256[]",
                        name: "netSendAmounts",
                        type: "int256[]",
                    },
                    {
                        internalType: "int256[]",
                        name: "runningBalances",
                        type: "int256[]",
                    },
                    {
                        internalType: "uint256",
                        name: "groupIndex",
                        type: "uint256",
                    },
                    {
                        internalType: "uint8",
                        name: "leafId",
                        type: "uint8",
                    },
                    {
                        internalType: "address[]",
                        name: "l1Tokens",
                        type: "address[]",
                    },
                ],
                internalType: "struct HubPoolInterface.PoolRebalanceLeaf",
                name: "rebalance",
                type: "tuple",
            },
            {
                internalType: "bytes32[]",
                name: "proof",
                type: "bytes32[]",
            },
        ],
        name: "verifyPoolRebalance",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "root",
                type: "bytes32",
            },
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "amountToReturn",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "chainId",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256[]",
                        name: "refundAmounts",
                        type: "uint256[]",
                    },
                    {
                        internalType: "uint32",
                        name: "leafId",
                        type: "uint32",
                    },
                    {
                        internalType: "address",
                        name: "l2TokenAddress",
                        type: "address",
                    },
                    {
                        internalType: "address[]",
                        name: "refundAddresses",
                        type: "address[]",
                    },
                ],
                internalType: "struct SpokePoolInterface.RelayerRefundLeaf",
                name: "refund",
                type: "tuple",
            },
            {
                internalType: "bytes32[]",
                name: "proof",
                type: "bytes32[]",
            },
        ],
        name: "verifyRelayerRefund",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "root",
                type: "bytes32",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                            {
                                internalType: "address",
                                name: "destinationToken",
                                type: "address",
                            },
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                            {
                                internalType: "uint256",
                                name: "originChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "uint256",
                                name: "destinationChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "int64",
                                name: "realizedLpFeePct",
                                type: "int64",
                            },
                            {
                                internalType: "int64",
                                name: "relayerFeePct",
                                type: "int64",
                            },
                            {
                                internalType: "uint32",
                                name: "depositId",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct MockV2SpokePoolInterface.RelayData",
                        name: "relayData",
                        type: "tuple",
                    },
                    {
                        internalType: "int256",
                        name: "payoutAdjustmentPct",
                        type: "int256",
                    },
                ],
                internalType: "struct MockV2SpokePoolInterface.SlowFill",
                name: "slowFill",
                type: "tuple",
            },
            {
                internalType: "bytes32[]",
                name: "proof",
                type: "bytes32[]",
            },
        ],
        name: "verifySlowRelayFulfillment",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "root",
                type: "bytes32",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                            {
                                internalType: "address",
                                name: "exclusiveRelayer",
                                type: "address",
                            },
                            {
                                internalType: "address",
                                name: "inputToken",
                                type: "address",
                            },
                            {
                                internalType: "address",
                                name: "outputToken",
                                type: "address",
                            },
                            {
                                internalType: "uint256",
                                name: "inputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "uint256",
                                name: "outputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "uint256",
                                name: "originChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "uint32",
                                name: "depositId",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "fillDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "exclusivityDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct V3SpokePoolInterface.V3RelayData",
                        name: "relayData",
                        type: "tuple",
                    },
                    {
                        internalType: "uint256",
                        name: "chainId",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "updatedOutputAmount",
                        type: "uint256",
                    },
                ],
                internalType: "struct V3SpokePoolInterface.V3SlowFill",
                name: "slowFill",
                type: "tuple",
            },
            {
                internalType: "bytes32[]",
                name: "proof",
                type: "bytes32[]",
            },
        ],
        name: "verifyV3SlowRelayFulfillment",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class MerkleLibTest__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(overrides) {
        return super.deploy(overrides || {});
    }
    getDeployTransaction(overrides) {
        return super.getDeployTransaction(overrides || {});
    }
    attach(address) {
        return super.attach(address);
    }
    connect(signer) {
        return super.connect(signer);
    }
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.MerkleLibTest__factory = MerkleLibTest__factory;
MerkleLibTest__factory.bytecode = _bytecode;
MerkleLibTest__factory.abi = _abi;
