"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OAppReceiverUpgradeable__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [],
        name: "InvalidDelegate",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidEndpointCall",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "eid",
                type: "uint32",
            },
        ],
        name: "NoPeer",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "addr",
                type: "address",
            },
        ],
        name: "OnlyEndpoint",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "eid",
                type: "uint32",
            },
            {
                internalType: "bytes32",
                name: "sender",
                type: "bytes32",
            },
        ],
        name: "OnlyPeer",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint8",
                name: "version",
                type: "uint8",
            },
        ],
        name: "Initialized",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "previousOwner",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "OwnershipTransferred",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint32",
                name: "eid",
                type: "uint32",
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "peer",
                type: "bytes32",
            },
        ],
        name: "PeerSet",
        type: "event",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "srcEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "sender",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint64",
                        name: "nonce",
                        type: "uint64",
                    },
                ],
                internalType: "struct Origin",
                name: "origin",
                type: "tuple",
            },
        ],
        name: "allowInitializePath",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "endpoint",
        outputs: [
            {
                internalType: "contract ILayerZeroEndpointV2",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "srcEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "sender",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint64",
                        name: "nonce",
                        type: "uint64",
                    },
                ],
                internalType: "struct Origin",
                name: "",
                type: "tuple",
            },
            {
                internalType: "bytes",
                name: "",
                type: "bytes",
            },
            {
                internalType: "address",
                name: "_sender",
                type: "address",
            },
        ],
        name: "isComposeMsgSender",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "srcEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "sender",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint64",
                        name: "nonce",
                        type: "uint64",
                    },
                ],
                internalType: "struct Origin",
                name: "_origin",
                type: "tuple",
            },
            {
                internalType: "bytes32",
                name: "_guid",
                type: "bytes32",
            },
            {
                internalType: "bytes",
                name: "_message",
                type: "bytes",
            },
            {
                internalType: "address",
                name: "_executor",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "_extraData",
                type: "bytes",
            },
        ],
        name: "lzReceive",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        name: "nextNonce",
        outputs: [
            {
                internalType: "uint64",
                name: "nonce",
                type: "uint64",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "oAppVersion",
        outputs: [
            {
                internalType: "uint64",
                name: "senderVersion",
                type: "uint64",
            },
            {
                internalType: "uint64",
                name: "receiverVersion",
                type: "uint64",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_eid",
                type: "uint32",
            },
        ],
        name: "peers",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "renounceOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_delegate",
                type: "address",
            },
        ],
        name: "setDelegate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_eid",
                type: "uint32",
            },
            {
                internalType: "bytes32",
                name: "_peer",
                type: "bytes32",
            },
        ],
        name: "setPeer",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "transferOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
class OAppReceiverUpgradeable__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.OAppReceiverUpgradeable__factory = OAppReceiverUpgradeable__factory;
OAppReceiverUpgradeable__factory.abi = _abi;
//# sourceMappingURL=OAppReceiverUpgradeable__factory.js.map