"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Router_Adapter__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_l1Adapter",
                type: "address",
                internalType: "address",
            },
            {
                name: "_l2Target",
                type: "address",
                internalType: "address",
            },
            {
                name: "_l2ChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "_l3ChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "_hubPool",
                type: "address",
                internalType: "contract HubPoolInterface",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "HUB_POOL",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract HubPoolInterface",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "L1_ADAPTER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "L2_CHAIN_ID",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "L2_TARGET",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "L3_CHAIN_ID",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "relayMessage",
        inputs: [
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "relayTokens",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "l3Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "event",
        name: "MessageRelayed",
        inputs: [
            {
                name: "target",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "TokensRelayed",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "l2Token",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "to",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "L2RouteNotWhitelisted",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "RelayMessageFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "RelayTokensFailed",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
    },
];
class Router_Adapter__factory {
    static abi = _abi;
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.Router_Adapter__factory = Router_Adapter__factory;
//# sourceMappingURL=Router_Adapter__factory.js.map