Skip to main content

ILZEndpointV2Authorized

Git Source

Title: ILZEndpointV2Authorized

Subset of LayerZero EndpointV2 operations protected by EndpointV2._assertAuthorized (msg.sender must be the OApp itself or its registered delegate). Covers MessageLibManager configuration (libraries, ULN/Executor config) and MessagingChannel inbound control (skip / nilify / burn / clear).

Implementations are the OApp's delegate from the Endpoint's perspective and call into EndpointV2 on their own behalf. Access control on the external entrypoints is the implementation's responsibility.

Functions​

setSendLibrary​

Pins send library for a destination EID.

function setSendLibrary(uint32 eid_, address lib_) external;

Parameters

NameTypeDescription
eid_uint32The destination endpoint ID.
lib_addressThe send library address to pin.

setReceiveLibrary​

Pins receive library for a source EID.

function setReceiveLibrary(uint32 eid_, address lib_, uint256 gracePeriod_) external;

Parameters

NameTypeDescription
eid_uint32The source endpoint ID.
lib_addressThe receive library address to pin.
gracePeriod_uint256Grace period for migration (0 for immediate).

setReceiveLibraryTimeout​

Sets receive library timeout for migration.

function setReceiveLibraryTimeout(uint32 eid_, address lib_, uint256 expiry_) external;

Parameters

NameTypeDescription
eid_uint32The source endpoint ID.
lib_addressThe library address.
expiry_uint256The expiry timestamp.

setEndpointConfig​

Sets ULN/Executor config on a message library.

function setEndpointConfig(address lib_, SetConfigParam[] calldata params_) external;

Parameters

NameTypeDescription
lib_addressThe message library address.
params_SetConfigParam[]Array of config parameters per EID.

skip​

Skips a nonce for a source path.

function skip(uint32 srcEid_, bytes32 sender_, uint64 nonce_) external;

Parameters

NameTypeDescription
srcEid_uint32The source endpoint ID.
sender_bytes32The sender address (bytes32).
nonce_uint64The nonce to skip.

nilify​

Nilifies a payload for a source path.

function nilify(uint32 srcEid_, bytes32 sender_, uint64 nonce_, bytes32 payloadHash_) external;

Parameters

NameTypeDescription
srcEid_uint32The source endpoint ID.
sender_bytes32The sender address (bytes32).
nonce_uint64The nonce of the message.
payloadHash_bytes32The hash of the payload to nilify.

burn​

Burns a payload for a source path.

function burn(uint32 srcEid_, bytes32 sender_, uint64 nonce_, bytes32 payloadHash_) external;

Parameters

NameTypeDescription
srcEid_uint32The source endpoint ID.
sender_bytes32The sender address (bytes32).
nonce_uint64The nonce of the message.
payloadHash_bytes32The hash of the payload to burn.

clear​

Clears a verified but unexecuted inbound message.

function clear(Origin calldata origin_, bytes32 guid_, bytes calldata message_) external;

Parameters

NameTypeDescription
origin_OriginThe origin of the message.
guid_bytes32The GUID of the message.
message_bytesThe message bytes.