ILayerZeroUserApplicationConfig
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
Name | Type | Description |
---|---|---|
version | uint16 | Messaging library version |
chainId | uint16 | The chainId for the pending config change |
configType | uint256 | Type of configuration. every messaging library has its own convention. |
config | bytes | Configuration in the bytes. can encode arbitrary content. |
setSendVersion
Set the send() LayerZero messaging library version to version
function setSendVersion(uint16 version) external;
Parameters
Name | Type | Description |
---|---|---|
version | uint16 | New messaging library version |
setReceiveVersion
Set the lzReceive() LayerZero messaging library version to version
function setReceiveVersion(uint16 version) external;
Parameters
Name | Type | Description |
---|---|---|
version | uint16 | NMew 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
Name | Type | Description |
---|---|---|
srcChainId | uint16 | The chainId of the source chain |
srcAddress | bytes | The contract address of the source contract at the source chain |