"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 = "0x60a034606657601f6107a938819003918201601f19168301916001600160401b03831184841017606a57808492602094604052833981010312606657516001600160a01b038116810360665760805260405161072a908161007f8239608051816104520152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c90816324fd57fb1461047657508063387207781461040857806359ec65a21461036157806371623274146102d85780637f1ecd791461024f5763d52471c11461005e575f80fd5b61006736610567565b604051602081019060208252823560408201526020830135606082015273ffffffffffffffffffffffffffffffffffffffff6100a5604085016105d7565b166080820152606083013560a08201526100d86100c560808501856105f8565b61012060c0850152610160840191610648565b9260a081013560e083015260c081013561010083015260e08101357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561024b5781016020813591019467ffffffffffffffff821161024b578160051b90813603871361024b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0858298949398030161012086015281815260208082019782010196835f925b8484106101f557602089896101ea818e73ffffffffffffffffffffffffffffffffffffffff6101b76101008f016105d7565b16610140830152037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610686565b519020604051908152f35b90919293949860208061023b836102358e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08860019803018a52886105f8565b90610648565b9b01940194019294939190610185565b5f80fd5b3461024b5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261024b5760243573ffffffffffffffffffffffffffffffffffffffff811680910361024b576004355f525f60205260405f20907fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790555f80f35b3461024b5760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261024b5760243560643560443581810291811591830414171561033457810180911161033457602090604051908152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b3461024b5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261024b57600435805f525f60205273ffffffffffffffffffffffffffffffffffffffff60405f205416155f146103e05750602060015b73ffffffffffffffffffffffffffffffffffffffff60405191168152f35b5f525f602052602073ffffffffffffffffffffffffffffffffffffffff60405f2054166103c2565b3461024b575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261024b57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b60209061048236610567565b906101ea8161053b610527868301958787528035604085015287810135606085015260408101356080850152606081013560a0850152608081013560c085015273ffffffffffffffffffffffffffffffffffffffff6104e360a083016105d7565b1660e085015273ffffffffffffffffffffffffffffffffffffffff61050a60c083016105d7565b1661010085015260e08101356101208501526101008101906105f8565b610120610140850152610160840191610648565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610686565b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc82011261024b576004359067ffffffffffffffff821161024b577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc826101209203011261024b5760040190565b359073ffffffffffffffffffffffffffffffffffffffff8216820361024b57565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561024b57016020813591019167ffffffffffffffff821161024b57813603831361024b57565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176106c757604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffdfea2646970667358221220c32c6dfe65ad8d873c823b54c43ac65398c3bfd85dd6b217c1a79d0af94f07e264736f6c634300081e0033";
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;
