"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 = [
    {
        type: "function",
        name: "calculateL2TokenAddress",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "outboundTransfer",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "to",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "setL2TokenAddress",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "l2Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "event",
        name: "OutboundTransfer",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "to",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
];
const _bytecode = "0x6080806040523460155761027b908161001a8239f35b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c8063614ef8de146101895780637b3a3c8b1461007e5763a7e28d481461003a575f80fd5b3461007a57602036600319011261007a576001600160a01b0361005b6101f3565b165f525f60205260206001600160a01b0360405f205416604051908152f35b5f80fd5b608036600319011261007a576100926101f3565b61009a610209565b60643567ffffffffffffffff811161007a573660238201121561007a5780600401359067ffffffffffffffff8211610175576100df601f8301601f191660200161021f565b91808352366024828401011161007a575f9281602460209401848301370101527f571ae1f9cefc0b41e754f2b973bf9455b2091122ebcc0aac3d777458965e3f6560206001600160a01b038060405194604435865216941692a3602060406101468261021f565b5f8152815192839181835280519182918282860152018484015e5f828201840152601f01601f19168101030190f35b634e487b7160e01b5f52604160045260245ffd5b3461007a57604036600319011261007a576101a26101f3565b6001600160a01b036101b2610209565b91165f525f6020526001600160a01b0360405f2091167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790555f80f35b600435906001600160a01b038216820361007a57565b602435906001600160a01b038216820361007a57565b6040519190601f01601f1916820167ffffffffffffffff8111838210176101755760405256fea2646970667358221220c83a7d924fde294d49fab9d1646e94b28f191aa648265eb9fa2676971c85c42464736f6c634300081e0033";
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;
