"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Scroll_Adapter__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_l1GatewayRouter",
                type: "address",
                internalType: "contract IL1GatewayRouter",
            },
            {
                name: "_l1ScrollMessenger",
                type: "address",
                internalType: "contract IL1ScrollMessenger",
            },
            {
                name: "_l2GasPriceOracle",
                type: "address",
                internalType: "contract IL2GasPriceOracle",
            },
            {
                name: "_l2MessageRelayGasLimit",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "_l2TokenRelayGasLimit",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "L1_GATEWAY_ROUTER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IL1GatewayRouter",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "L1_SCROLL_MESSENGER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IL1ScrollMessenger",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "L2_GAS_PRICE_ORACLE",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IL2GasPriceOracle",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "L2_MESSAGE_RELAY_GAS_LIMIT",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "L2_TOKEN_RELAY_GAS_LIMIT",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        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: "l2Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "to",
                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,
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class Scroll_Adapter__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_l1GatewayRouter, _l1ScrollMessenger, _l2GasPriceOracle, _l2MessageRelayGasLimit, _l2TokenRelayGasLimit, overrides) {
        return super.deploy(_l1GatewayRouter, _l1ScrollMessenger, _l2GasPriceOracle, _l2MessageRelayGasLimit, _l2TokenRelayGasLimit, overrides || {});
    }
    getDeployTransaction(_l1GatewayRouter, _l1ScrollMessenger, _l2GasPriceOracle, _l2MessageRelayGasLimit, _l2TokenRelayGasLimit, overrides) {
        return super.getDeployTransaction(_l1GatewayRouter, _l1ScrollMessenger, _l2GasPriceOracle, _l2MessageRelayGasLimit, _l2TokenRelayGasLimit, 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.Scroll_Adapter__factory = Scroll_Adapter__factory;
Scroll_Adapter__factory.bytecode = _bytecode;
Scroll_Adapter__factory.abi = _abi;
