"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockHubPool__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "_adapter",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "oldAdapter",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newAdapter",
                type: "address",
            },
        ],
        name: "AdapterChanged",
        type: "event",
    },
    {
        stateMutability: "payable",
        type: "fallback",
    },
    {
        inputs: [],
        name: "adapter",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "l2CallData",
                type: "bytes",
            },
        ],
        name: "arbitraryMessage",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "balanceOf",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_adapter",
                type: "address",
            },
        ],
        name: "changeAdapter",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "to",
                type: "address",
            },
        ],
        name: "relayTokens",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "rootBundleProposal",
        outputs: [
            {
                internalType: "bytes32",
                name: "poolRebalanceRoot",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "relayerRefundRoot",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "slowRelayRoot",
                type: "bytes32",
            },
            {
                internalType: "uint256",
                name: "claimedBitMap",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "proposer",
                type: "address",
            },
            {
                internalType: "uint8",
                name: "unclaimedPoolRebalanceLeafCount",
                type: "uint8",
            },
            {
                internalType: "uint32",
                name: "challengePeriodEndTimestamp",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "bytes32",
                        name: "poolRebalanceRoot",
                        type: "bytes32",
                    },
                    {
                        internalType: "bytes32",
                        name: "relayerRefundRoot",
                        type: "bytes32",
                    },
                    {
                        internalType: "bytes32",
                        name: "slowRelayRoot",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint256",
                        name: "claimedBitMap",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "proposer",
                        type: "address",
                    },
                    {
                        internalType: "uint8",
                        name: "unclaimedPoolRebalanceLeafCount",
                        type: "uint8",
                    },
                    {
                        internalType: "uint32",
                        name: "challengePeriodEndTimestamp",
                        type: "uint32",
                    },
                ],
                internalType: "struct HubPoolInterface.RootBundle",
                name: "_rootBundleProposal",
                type: "tuple",
            },
        ],
        name: "setPendingRootBundle",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        stateMutability: "payable",
        type: "receive",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class MockHubPool__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_adapter, overrides) {
        return super.deploy(_adapter, overrides || {});
    }
    getDeployTransaction(_adapter, overrides) {
        return super.getDeployTransaction(_adapter, 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.MockHubPool__factory = MockHubPool__factory;
MockHubPool__factory.bytecode = _bytecode;
MockHubPool__factory.abi = _abi;
