You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, anvil-zksync does not support L1-L2 communication, making it challenging to test or debug L1-L2 transactions. This limitation also hinders the creation of a more realistic local development and testing environment for cross-chain applications.
🤔 Rationale
Adding support for L1-L2 communication benefits:
Enabling seamless testing and debugging of L1-L2 transactions.
Providing a more realistic and deterministic local testing environment.
Facilitating the development of cross-chain applications.
Supporting future interop with multiple L2 instances.
Potential Approach
Perform genesis on anvil once.
Use anvil_dumpState to capture the deterministic state of L1.
Start anvil as a subprocess within anvil-zksync.
Use anvil_setState to initialize the L1 state in the subprocess.
Implement basic eth_sender and eth_watch components for communication between L1 and L2.
Enhance testability by introducing methods like anvil_commitBatch, anvil_proveBatch, and anvil_finalizeBatch for managing batches deterministically.
The text was updated successfully, but these errors were encountered:
📝 Description
Currently,
anvil-zksync
does not support L1-L2 communication, making it challenging to test or debug L1-L2 transactions. This limitation also hinders the creation of a more realistic local development and testing environment for cross-chain applications.🤔 Rationale
Adding support for L1-L2 communication benefits:
Potential Approach
anvil
once.anvil_dumpState
to capture the deterministic state of L1.anvil
as a subprocess withinanvil-zksync
.anvil_setState
to initialize the L1 state in the subprocess.eth_sender
andeth_watch
components for communication between L1 and L2.anvil_commitBatch
,anvil_proveBatch
, andanvil_finalizeBatch
for managing batches deterministically.The text was updated successfully, but these errors were encountered: