ILayerZeroUserApplicationConfig

Git Source

Functions

setConfig

Set the configuration of the LayerZero messaging library of the specified version

function setConfig(uint16 version, uint16 chainId, uint256 configType, bytes calldata config) external;

Parameters

NameTypeDescription
versionuint16Messaging library version
chainIduint16The chainId for the pending config change
configTypeuint256Type of configuration. every messaging library has its own convention.
configbytesConfiguration in the bytes. can encode arbitrary content.

setSendVersion

Set the send() LayerZero messaging library version to version

function setSendVersion(uint16 version) external;

Parameters

NameTypeDescription
versionuint16New messaging library version

setReceiveVersion

Set the lzReceive() LayerZero messaging library version to version

function setReceiveVersion(uint16 version) external;

Parameters

NameTypeDescription
versionuint16NMew messaging library version

forceResumeReceive

Only when the UA needs to resume the message flow in blocking mode and clear the stored payload

function forceResumeReceive(uint16 srcChainId, bytes calldata srcAddress) external;

Parameters

NameTypeDescription
srcChainIduint16The chainId of the source chain
srcAddressbytesThe contract address of the source contract at the source chain