Homepage | Docs | Developers
This document lists the functionality that can be enabled using environment variables.
Please note that this functionality is marked experimental for a reason and should be used with caution. We welcome feedback and will try to provide support but until the experimental label is removed, we cannot guarantee that this functionality will work for all setups.
By default, the RPC calls that check the current state of your contracts are executed in series. For large projects, this process can take some time as the number of connections between N
contracts is in the order of N2
.
Parallel execution can improve the speed of this process significantly. However, since it requires a large number of RPC calls to be executed simultaneously, it can result in HTTP 429 Too Many Requests
RPC errors when used with public RPCs.
LZ_ENABLE_EXPERIMENTAL_PARALLEL_EXECUTION=1
LZ_ENABLE_EXPERIMENTAL_PARALLEL_EXECUTION=
Some signers might support batched transaction sending (e.g. Gnosis Safe signer). If turned on, this feature flag will make use of the batched sending. If this feature flag is on and batched sending is not available, regular sending will be used instead.
If the signer used does not support batch sending, batched awaiting feature flag will be used to determine which signing strategy to use.
LZ_ENABLE_EXPERIMENTAL_BATCHED_SEND=1
LZ_ENABLE_EXPERIMENTAL_BATCHED_SEND=
By default, the transactions are submitted and awaited one by one. This means a transaction will only be submitted once the previous transaction has been mined (which results in transactions being mined in consecutive blocks, one transaction per block).
This feature flag changes this behavior and allows all transactions to be submitted first to potentially the same block. Only after all of the transactions have been submitted will the code wait for them to be mined.
Important Enabling this behavior can incur higher costs of transaction reverts since a failing transaction can result in more than one revert.
LZ_ENABLE_EXPERIMENTAL_BATCHED_WAIT=1
LZ_ENABLE_EXPERIMENTAL_BATCHED_WAIT=