"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
exports.__esModule = true;
exports.NonblockingLzApp__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint16",
                name: "_srcChainId",
                type: "uint16"
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "_srcAddress",
                type: "bytes"
            },
            {
                indexed: false,
                internalType: "uint64",
                name: "_nonce",
                type: "uint64"
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "_payload",
                type: "bytes"
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "_reason",
                type: "bytes"
            },
        ],
        name: "MessageFailed",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint16",
                name: "_srcChainId",
                type: "uint16"
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "_srcAddress",
                type: "bytes"
            },
            {
                indexed: false,
                internalType: "uint64",
                name: "_nonce",
                type: "uint64"
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "_payloadHash",
                type: "bytes32"
            },
        ],
        name: "RetryMessageSuccess",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "previousAdminRole",
                type: "bytes32"
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "newAdminRole",
                type: "bytes32"
            },
        ],
        name: "RoleAdminChanged",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
            {
                indexed: true,
                internalType: "address",
                name: "account",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "sender",
                type: "address"
            },
        ],
        name: "RoleGranted",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
            {
                indexed: true,
                internalType: "address",
                name: "account",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "sender",
                type: "address"
            },
        ],
        name: "RoleRevoked",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint16",
                name: "_dstChainId",
                type: "uint16"
            },
            {
                indexed: false,
                internalType: "uint16",
                name: "_type",
                type: "uint16"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "_minDstGas",
                type: "uint256"
            },
        ],
        name: "SetMinDstGas",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "precrime",
                type: "address"
            },
        ],
        name: "SetPrecrime",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint16",
                name: "_remoteChainId",
                type: "uint16"
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "_path",
                type: "bytes"
            },
        ],
        name: "SetTrustedRemote",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint16",
                name: "_remoteChainId",
                type: "uint16"
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "_remoteAddress",
                type: "bytes"
            },
        ],
        name: "SetTrustedRemoteAddress",
        type: "event"
    },
    {
        inputs: [],
        name: "DEFAULT_ADMIN_ROLE",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "DEFAULT_PAYLOAD_SIZE_LIMIT",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "MINTER_ROLE",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "PAUSER_ROLE",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "",
                type: "uint16"
            },
            {
                internalType: "bytes",
                name: "",
                type: "bytes"
            },
            {
                internalType: "uint64",
                name: "",
                type: "uint64"
            },
        ],
        name: "failedMessages",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_srcChainId",
                type: "uint16"
            },
            {
                internalType: "bytes",
                name: "_srcAddress",
                type: "bytes"
            },
        ],
        name: "forceResumeReceive",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_version",
                type: "uint16"
            },
            {
                internalType: "uint16",
                name: "_chainId",
                type: "uint16"
            },
            {
                internalType: "address",
                name: "",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "_configType",
                type: "uint256"
            },
        ],
        name: "getConfig",
        outputs: [
            {
                internalType: "bytes",
                name: "",
                type: "bytes"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
        ],
        name: "getRoleAdmin",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
            {
                internalType: "uint256",
                name: "index",
                type: "uint256"
            },
        ],
        name: "getRoleMember",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
        ],
        name: "getRoleMemberCount",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_remoteChainId",
                type: "uint16"
            },
        ],
        name: "getTrustedRemoteAddress",
        outputs: [
            {
                internalType: "bytes",
                name: "",
                type: "bytes"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "account",
                type: "address"
            },
        ],
        name: "grantRole",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "account",
                type: "address"
            },
        ],
        name: "hasRole",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_srcChainId",
                type: "uint16"
            },
            {
                internalType: "bytes",
                name: "_srcAddress",
                type: "bytes"
            },
        ],
        name: "isTrustedRemote",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "lzEndpoint",
        outputs: [
            {
                internalType: "contract ILayerZeroEndpoint",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_srcChainId",
                type: "uint16"
            },
            {
                internalType: "bytes",
                name: "_srcAddress",
                type: "bytes"
            },
            {
                internalType: "uint64",
                name: "_nonce",
                type: "uint64"
            },
            {
                internalType: "bytes",
                name: "_payload",
                type: "bytes"
            },
        ],
        name: "lzReceive",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "",
                type: "uint16"
            },
            {
                internalType: "uint16",
                name: "",
                type: "uint16"
            },
        ],
        name: "minDstGasLookup",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_srcChainId",
                type: "uint16"
            },
            {
                internalType: "bytes",
                name: "_srcAddress",
                type: "bytes"
            },
            {
                internalType: "uint64",
                name: "_nonce",
                type: "uint64"
            },
            {
                internalType: "bytes",
                name: "_payload",
                type: "bytes"
            },
        ],
        name: "nonblockingLzReceive",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "",
                type: "uint16"
            },
        ],
        name: "payloadSizeLimitLookup",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "precrime",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "account",
                type: "address"
            },
        ],
        name: "renounceRole",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_srcChainId",
                type: "uint16"
            },
            {
                internalType: "bytes",
                name: "_srcAddress",
                type: "bytes"
            },
            {
                internalType: "uint64",
                name: "_nonce",
                type: "uint64"
            },
            {
                internalType: "bytes",
                name: "_payload",
                type: "bytes"
            },
        ],
        name: "retryMessage",
        outputs: [],
        stateMutability: "payable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "role",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "account",
                type: "address"
            },
        ],
        name: "revokeRole",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_version",
                type: "uint16"
            },
            {
                internalType: "uint16",
                name: "_chainId",
                type: "uint16"
            },
            {
                internalType: "uint256",
                name: "_configType",
                type: "uint256"
            },
            {
                internalType: "bytes",
                name: "_config",
                type: "bytes"
            },
        ],
        name: "setConfig",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_dstChainId",
                type: "uint16"
            },
            {
                internalType: "uint16",
                name: "_packetType",
                type: "uint16"
            },
            {
                internalType: "uint256",
                name: "_minGas",
                type: "uint256"
            },
        ],
        name: "setMinDstGas",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_dstChainId",
                type: "uint16"
            },
            {
                internalType: "uint256",
                name: "_size",
                type: "uint256"
            },
        ],
        name: "setPayloadSizeLimit",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_precrime",
                type: "address"
            },
        ],
        name: "setPrecrime",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_version",
                type: "uint16"
            },
        ],
        name: "setReceiveVersion",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_version",
                type: "uint16"
            },
        ],
        name: "setSendVersion",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_srcChainId",
                type: "uint16"
            },
            {
                internalType: "bytes",
                name: "_path",
                type: "bytes"
            },
        ],
        name: "setTrustedRemote",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "_remoteChainId",
                type: "uint16"
            },
            {
                internalType: "bytes",
                name: "_remoteAddress",
                type: "bytes"
            },
        ],
        name: "setTrustedRemoteAddress",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes4",
                name: "interfaceId",
                type: "bytes4"
            },
        ],
        name: "supportsInterface",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint16",
                name: "",
                type: "uint16"
            },
        ],
        name: "trustedRemoteLookup",
        outputs: [
            {
                internalType: "bytes",
                name: "",
                type: "bytes"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
];
var NonblockingLzApp__factory = /** @class */ (function () {
    function NonblockingLzApp__factory() {
    }
    NonblockingLzApp__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    NonblockingLzApp__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    NonblockingLzApp__factory.abi = _abi;
    return NonblockingLzApp__factory;
}());
exports.NonblockingLzApp__factory = NonblockingLzApp__factory;
//# sourceMappingURL=NonblockingLzApp__factory.js.map