zksync_eth_watch

Crates.iozksync_eth_watch
lib.rszksync_eth_watch
version0.1.0
sourcesrc
created_at2024-07-13 10:02:09.577767
updated_at2024-07-13 10:02:09.577767
descriptionZKsync Ethereum watcher
homepagehttps://zksync.io/
repositoryhttps://github.com/matter-labs/zksync-era
max_upload_size
id1302206
size57,914
crates-io (github:matter-labs:crates-io)

documentation

README

ZKsync Era Eth Watcher

This crate contains an implementation of the ZKsync Era Eth Watcher component, which fetches the changes from the corresponding L1 contract.

Overview

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.

Commit count: 1500

cargo fmt