"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 = [
    {
        inputs: [
            {
                internalType: "contract IL1GatewayRouter",
                name: "_l1GatewayRouter",
                type: "address",
            },
            {
                internalType: "contract IL1ScrollMessenger",
                name: "_l1ScrollMessenger",
                type: "address",
            },
            {
                internalType: "contract IL2GasPriceOracle",
                name: "_l2GasPriceOracle",
                type: "address",
            },
            {
                internalType: "uint32",
                name: "_l2MessageRelayGasLimit",
                type: "uint32",
            },
            {
                internalType: "uint32",
                name: "_l2TokenRelayGasLimit",
                type: "uint32",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "message",
                type: "bytes",
            },
        ],
        name: "MessageRelayed",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "to",
                type: "address",
            },
        ],
        name: "TokensRelayed",
        type: "event",
    },
    {
        inputs: [],
        name: "L1_GATEWAY_ROUTER",
        outputs: [
            {
                internalType: "contract IL1GatewayRouter",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "L1_SCROLL_MESSENGER",
        outputs: [
            {
                internalType: "contract IL1ScrollMessenger",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "L2_GAS_PRICE_ORACLE",
        outputs: [
            {
                internalType: "contract IL2GasPriceOracle",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "L2_MESSAGE_RELAY_GAS_LIMIT",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "L2_TOKEN_RELAY_GAS_LIMIT",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "message",
                type: "bytes",
            },
        ],
        name: "relayMessage",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "to",
                type: "address",
            },
        ],
        name: "relayTokens",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
];
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;
