Skip to content

feat(L2): L1Watcher PoC#579

Merged
jrchatruc merged 52 commits into
mainfrom
ethereum_rust_l2_l1_watcher
Sep 30, 2024
Merged

feat(L2): L1Watcher PoC#579
jrchatruc merged 52 commits into
mainfrom
ethereum_rust_l2_l1_watcher

Conversation

@ManuelBilbao

Copy link
Copy Markdown
Contributor

Motivation

Start the L1 watcher implementation, who will be looking for events from L1 Inbox contract.

Description

The watcher does a loop polling new logs from an L1 contract. It will need further work, since it's a basic PoC.

ilitteri and others added 30 commits September 25, 2024 15:55
- `l1_tx_sender.rs` is the module that contains the logic for the L1TxSender, component of the operator in charge of sending transactions to L1, these are: commit and verify txs.
- `l1_watcher.rs` is the module that contains the logic for the L1Watcher, component of the operator that listens to specific L1 events and executes txs on L2 based on said events.
- The `prover` module is empty for the moment, but it'll contain the logic for getting proof data for block proof generation, and final proof submission.
@ManuelBilbao ManuelBilbao requested a review from a team as a code owner September 27, 2024 19:40
@ManuelBilbao ManuelBilbao changed the title Ethereum rust l2 l1 watcher L1 Watcher PoC Sep 27, 2024
@ManuelBilbao ManuelBilbao changed the title L1 Watcher PoC feat(L2): L1 Watcher PoC Sep 27, 2024

@ilitteri ilitteri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left a couple of comments.

Comment thread crates/l2/Cargo.toml Outdated
Comment thread crates/l2/operator/l1_watcher.rs
@ilitteri ilitteri changed the title feat(L2): L1 Watcher PoC feat(L2): L1Watcher PoC Sep 27, 2024
ManuelBilbao and others added 3 commits September 27, 2024 16:58
Co-authored-by: Ivan Litteri <67517699+ilitteri@users.noreply.github.com>
Base automatically changed from ethereum_rust_l2_scaffolding to main September 30, 2024 20:05
@jrchatruc jrchatruc enabled auto-merge September 30, 2024 20:54
@jrchatruc jrchatruc added this pull request to the merge queue Sep 30, 2024
Merged via the queue into main with commit 0ae0f40 Sep 30, 2024
@jrchatruc jrchatruc deleted the ethereum_rust_l2_l1_watcher branch September 30, 2024 21:01
@ilitteri ilitteri linked an issue Oct 7, 2024 that may be closed by this pull request
mpaulucci pushed a commit that referenced this pull request Oct 16, 2024
**Motivation**

<!-- Why does this pull request exist? What are its goals? -->
Start the L1 watcher implementation, who will be looking for events from
L1 Inbox contract.

**Description**

<!-- A clear and concise general description of the changes this PR
introduces -->
The watcher does a loop polling new logs from an L1 contract. It will
need further work, since it's a basic PoC.

<!-- Link to issues: Resolves #111, Resolves #222 -->

---------

Co-authored-by: ilitteri <ilitteri@fi.uba.ar>
Co-authored-by: Ivan Litteri <67517699+ilitteri@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

L2: Implement basic L1Watcher component

3 participants