"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.L2GatewayRouter__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "to",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
        ],
        name: "OutboundTransfer",
        type: "event",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
        ],
        name: "calculateL2TokenAddress",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                internalType: "address",
                name: "to",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "",
                type: "bytes",
            },
        ],
        name: "outboundTransfer",
        outputs: [
            {
                internalType: "bytes",
                name: "",
                type: "bytes",
            },
        ],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
        ],
        name: "setL2TokenAddress",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
const _bytecode = "0x6080806040523461001657610343908161001b8239f35b5f80fdfe6040608081526004361015610012575f80fd5b5f3560e01c8063614ef8de1461023a5780637b3a3c8b146100a15763a7e28d481461003b575f80fd5b3461009d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261009d5760209073ffffffffffffffffffffffffffffffffffffffff8061008b6102c7565b165f525f8352815f2054169051908152f35b5f80fd5b5060807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261009d576100d46102c7565b906100dd6102ea565b916064359067ffffffffffffffff9081831161009d573660238401121561009d5782600401359482861161020d5784517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe094601f88018616603f01861682018581118382101761020d578752878252602097366024828401011161009d575f928160248b9401848301370101527f571ae1f9cefc0b41e754f2b973bf9455b2091122ebcc0aac3d777458965e3f658673ffffffffffffffffffffffffffffffffffffffff80885194604435865216941692a38251908482019081118282101761020d578394929194525f8452825193828593845281519182828601525f5b8381106101f75750505f84830186015250601f01168101030190f35b81810183015188820188015287955082016101db565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b503461009d57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261009d576102716102c7565b6102796102ea565b9173ffffffffffffffffffffffffffffffffffffffff8092165f525f6020525f2091167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790555f80f35b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361009d57565b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361009d5756fea2646970667358221220a341545373afa8b2af72407735b995d078c5d28debb6d3d8a5c790e7099b1d7964736f6c63430008170033";
const isSuperArgs = (xs) => xs.length > 1;
class L2GatewayRouter__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.L2GatewayRouter__factory = L2GatewayRouter__factory;
L2GatewayRouter__factory.bytecode = _bytecode;
L2GatewayRouter__factory.abi = _abi;
