pathfinder
pathfinder copied to clipboard
Add support for L1 to L2 message log syncing
Introduces functionality to sync L1 to L2 message logs, improving our ability to track cross-chain interactions.
Key Changes
- Added
get_logs
method to the Ethereum client:- Allows fetching logs for a specified block range
- Implements recursive fetching with automatic range splitting for large queries
- Implemented bulk syncing of
L1ToL2MessageLog
:- Fetches logs from the last synced L1 block up to the current state
- Stores these logs for later matching with L2 transactions
- Enhanced L1 sync process:
- Bulk fetches logs at the beginning of execution
- Waits for L2 blocks and matches
l1_handler
transactions with corresponding L1 transaction hashes
- Introduced
L1BlockNumber
andL1TransactionHash
types to avoid confusion
Closes #2243