"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ovm_Forwarder__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_wrappedNativeToken",
                type: "address",
                internalType: "contract WETH9Interface",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "receive",
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "MESSENGER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "WRAPPED_NATIVE_TOKEN",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract WETH9Interface",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "__Forwarder_init",
        inputs: [
            {
                name: "_crossDomainAdmin",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "chainAdapters",
        inputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "crossDomainAdmin",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "executeRelayTokens",
        inputs: [
            {
                name: "tokenRelayId",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "initialize",
        inputs: [
            {
                name: "_crossDomainAdmin",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "multicall",
        inputs: [
            {
                name: "data",
                type: "bytes[]",
                internalType: "bytes[]",
            },
        ],
        outputs: [
            {
                name: "results",
                type: "bytes[]",
                internalType: "bytes[]",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "proxiableUUID",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "relayMessage",
        inputs: [
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "relayTokens",
        inputs: [
            {
                name: "l2Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "l3Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "to",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "setCrossDomainAdmin",
        inputs: [
            {
                name: "_newCrossDomainAdmin",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "tokenRelays",
        inputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "l2Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "l3Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "to",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "executed",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "updateAdapter",
        inputs: [
            {
                name: "_destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "_l2Adapter",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "upgradeTo",
        inputs: [
            {
                name: "newImplementation",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "upgradeToAndCall",
        inputs: [
            {
                name: "newImplementation",
                type: "address",
                internalType: "address",
            },
            {
                name: "data",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "event",
        name: "AdminChanged",
        inputs: [
            {
                name: "previousAdmin",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "newAdmin",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "BeaconUpgraded",
        inputs: [
            {
                name: "beacon",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ChainAdaptersUpdated",
        inputs: [
            {
                name: "destinationChainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "l2Adapter",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ExecutedTokenRelay",
        inputs: [
            {
                name: "tokenRelayId",
                type: "uint32",
                indexed: true,
                internalType: "uint32",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "Initialized",
        inputs: [
            {
                name: "version",
                type: "uint8",
                indexed: false,
                internalType: "uint8",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "MessageForwarded",
        inputs: [
            {
                name: "target",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "chainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ReceivedTokenRelay",
        inputs: [
            {
                name: "tokenRelayId",
                type: "uint32",
                indexed: true,
                internalType: "uint32",
            },
            {
                name: "tokenRelay",
                type: "tuple",
                indexed: false,
                internalType: "struct ForwarderInterface.TokenRelay",
                components: [
                    {
                        name: "l2Token",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "l3Token",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "to",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "amount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "destinationChainId",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "executed",
                        type: "bool",
                        internalType: "bool",
                    },
                ],
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SetXDomainAdmin",
        inputs: [
            {
                name: "crossDomainAdmin",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "Upgraded",
        inputs: [
            {
                name: "implementation",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "InsufficientNativeTokenBalance",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidCrossDomainAdmin",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidTokenRelayId",
        inputs: [],
    },
    {
        type: "error",
        name: "NotCrossChainCall",
        inputs: [],
    },
    {
        type: "error",
        name: "NotCrossDomainAdmin",
        inputs: [],
    },
    {
        type: "error",
        name: "RelayMessageFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "RelayTokensFailed",
        inputs: [
            {
                name: "l2Token",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "TokenRelayExecuted",
        inputs: [],
    },
    {
        type: "error",
        name: "UninitializedChainAdapter",
        inputs: [],
    },
];
class Ovm_Forwarder__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.Ovm_Forwarder__factory = Ovm_Forwarder__factory;
//# sourceMappingURL=Ovm_Forwarder__factory.js.map