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