Crates.io | zksync_eth_watch |
lib.rs | zksync_eth_watch |
version | 0.1.0 |
source | src |
created_at | 2024-07-13 10:02:09.577767 |
updated_at | 2024-07-13 10:02:09.577767 |
description | ZKsync Ethereum watcher |
homepage | https://zksync.io/ |
repository | https://github.com/matter-labs/zksync-era |
max_upload_size | |
id | 1302206 |
size | 57,914 |
This crate contains an implementation of the ZKsync Era Eth Watcher component, which fetches the changes from the corresponding L1 contract.
Internally, Eth Watcher contains event processors, each of which provides a relevant topic (i.e., a bytes32
Solidity
event selector) and is responsible for processing the corresponding events. Besides events, processors have access to
the L1 client (to query more info) and to the node Postgres (to persist processing results). Examples of processors are:
Eth Watcher combines topics from the processors into a single filter and periodically queries L1 for the corresponding events. The fetched events are partitioned per processor and fed to them in succession.