LZOptions
Title: LZOptions
Author: Malda Protocol
LZ Options implementation
State Variables
TYPE_3
uint16 internal constant TYPE_3 = 3
WORKER_ID
uint8 internal constant WORKER_ID = 1
OPTION_TYPE_LZRECEIVE
uint8 internal constant OPTION_TYPE_LZRECEIVE = 1
OPTION_TYPE_LZCOMPOSE
uint8 internal constant OPTION_TYPE_LZCOMPOSE = 3
OPTION_TYPE_ORDERED_EXECUTION
uint8 internal constant OPTION_TYPE_ORDERED_EXECUTION = 4
Functions
newOptions
Creates new options.
function newOptions() internal pure returns (bytes memory);
Returns
| Name | Type | Description |
|---|---|---|
<none> | bytes | options The options. |
addExecutorLzReceiveOption
Adds a LZ Receive option.
function addExecutorLzReceiveOption(bytes memory options, uint128 gas, uint128 value)
internal
pure
returns (bytes memory);
Parameters
| Name | Type | Description |
|---|---|---|
options | bytes | The options. |
gas | uint128 | The gas. |
value | uint128 | The value. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bytes | options The options. |
addExecutorLzComposeOption
Adds a LZ Compose option.
function addExecutorLzComposeOption(bytes memory options, uint16 index, uint128 gas, uint128 value)
internal
pure
returns (bytes memory);
Parameters
| Name | Type | Description |
|---|---|---|
options | bytes | The options. |
index | uint16 | The index. |
gas | uint128 | The gas. |
value | uint128 | The value. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bytes | options The options. |
addExecutorOrderedExecutionOption
Adds an Ordered Execution option.
function addExecutorOrderedExecutionOption(bytes memory options) internal pure returns (bytes memory);
Parameters
| Name | Type | Description |
|---|---|---|
options | bytes | The options. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bytes | options The options. |