"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockBridgeHub__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "_sharedBridge",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_chainId",
                type: "uint256",
            },
        ],
        name: "baseToken",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_gasPrice",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_l2GasLimit",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_l2GasPerPubdataByteLimit",
                type: "uint256",
            },
        ],
        name: "l2TransactionBaseCost",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "chainId",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "mintValue",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "l2Contract",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "l2Value",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "l2Calldata",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256",
                        name: "l2GasLimit",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "l2GasPerPubdataByteLimit",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes[]",
                        name: "factoryDeps",
                        type: "bytes[]",
                    },
                    {
                        internalType: "address",
                        name: "refundRecipient",
                        type: "address",
                    },
                ],
                internalType: "struct BridgeHubInterface.L2TransactionRequestDirect",
                name: "_request",
                type: "tuple",
            },
        ],
        name: "requestL2TransactionDirect",
        outputs: [
            {
                internalType: "bytes32",
                name: "canonicalTxHash",
                type: "bytes32",
            },
        ],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "chainId",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "mintValue",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "l2Value",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "l2GasLimit",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "l2GasPerPubdataByteLimit",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "refundRecipient",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "secondBridgeAddress",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "secondBridgeValue",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "secondBridgeCalldata",
                        type: "bytes",
                    },
                ],
                internalType: "struct BridgeHubInterface.L2TransactionRequestTwoBridgesOuter",
                name: "_request",
                type: "tuple",
            },
        ],
        name: "requestL2TransactionTwoBridges",
        outputs: [
            {
                internalType: "bytes32",
                name: "canonicalTxHash",
                type: "bytes32",
            },
        ],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_chainId",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "_baseToken",
                type: "address",
            },
        ],
        name: "setBaseToken",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "sharedBridge",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = "0x60a03461006a57601f61074538819003918201601f19168301916001600160401b0383118484101761006e5780849260209460405283398101031261006a57516001600160a01b038116810361006a576080526040516106c2908161008382396080518161041b0152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe60806040908082526004361015610014575f80fd5b5f3560e01c90816324fd57fb1461043f5750806338720778146103d157806359ec65a21461036157806371623274146102d95780637f1ecd79146102515763d52471c114610060575f80fd5b6100693661051e565b908051916020928381019184835280358483015284810135606083015261009184820161056f565b73ffffffffffffffffffffffffffffffffffffffff8091166080840152606082013560a08401526100df6100c86080840184610590565b9190610120928360c08801526101608701916105e0565b9260a081013560e08601526101009160c08201358387015260e08201357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18336030181121561024d5782019089823592019567ffffffffffffffff831161024d578260051b91823603881361024d5781928c917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08b809a9897959b999b03019089015282845281808501918501019680945f935b8585106101ec57505050505050506101e2946101af910161056f565b16610140830152037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0810183528261061e565b5190209051908152f35b81939597989a506102368a610230899e9c997fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe085966001989a9c03018a5288610590565b906105e0565b9b0194019401918a9896959394918e9a989a610193565b5f80fd5b503461024d57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261024d576024359073ffffffffffffffffffffffffffffffffffffffff821680920361024d576004355f525f6020525f20907fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790555f80f35b503461024d5760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261024d576024356064356044358181029181159183041417156103345781018091116103345760209151908152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b503461024d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261024d576020906004355f525f825273ffffffffffffffffffffffffffffffffffffffff80825f20541680155f146103cb57506001915b5191168152f35b916103c4565b503461024d575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261024d576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b8260209161044c3661051e565b906101e2816104f286820194878652803587840152878101356060840152868101356080840152606081013560a0840152608081013560c08401526104df61049660a0830161056f565b9173ffffffffffffffffffffffffffffffffffffffff80931660e08601526104c060c0820161056f565b926101009316838601526101209260e082013584870152810190610590565b90916101408501526101608401916105e0565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0810183528261061e565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9060208282011261024d576004359167ffffffffffffffff831161024d57826101209203011261024d5760040190565b359073ffffffffffffffffffffffffffffffffffffffff8216820361024d57565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561024d57016020813591019167ffffffffffffffff821161024d57813603831361024d57565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761065f57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffdfea2646970667358221220bf6cd256a5e10799b6a8e2d29ad6b17ec39ac5812e466817bf81d9ba561c87c464736f6c63430008170033";
const isSuperArgs = (xs) => xs.length > 1;
class MockBridgeHub__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_sharedBridge, overrides) {
        return super.deploy(_sharedBridge, overrides || {});
    }
    getDeployTransaction(_sharedBridge, overrides) {
        return super.getDeployTransaction(_sharedBridge, 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.MockBridgeHub__factory = MockBridgeHub__factory;
MockBridgeHub__factory.bytecode = _bytecode;
MockBridgeHub__factory.abi = _abi;
