Skip to content

feat(l2): monitor for ethrex L2 #3410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

feat(l2): monitor for ethrex L2 #3410

wants to merge 16 commits into from

Conversation

ilitteri
Copy link
Contributor

@ilitteri ilitteri commented Jun 30, 2025

Motivation

Description

How to test

  1. Run a Sequencer with make restart in crates/l2.
  2. Get ON_CHAIN_PROPOSER_ADDRESS and COMMON_BRIDGE_ADDRESS from crates/l2/.env
  3. Run the monitor with the following command in crates/l2:
    cargo run --release --bin ethrex-l2-based-monitor -- \
    --l1.rpc-url http://localhost:8545 \
    --l2.rpc-url http://localhost:1729 \
    --l1.on-chain-proposer-address <ON_CHAIN_PROPOSER_ADDRESS> \
    --l1.common-bridge-address <COMMON_BRIDGE_ADDRESS>
    

Showcase

image

@ilitteri ilitteri self-assigned this Jun 30, 2025
@ilitteri ilitteri added the L2 Rollup client label Jun 30, 2025
Copy link

github-actions bot commented Jun 30, 2025

Lines of code report

Total lines added: 1248
Total lines removed: 6
Total lines changed: 1254

Detailed view
+------------------------------------------------------+-------+------+
| File                                                 | Lines | Diff |
+------------------------------------------------------+-------+------+
| ethrex/cmd/ethrex/l2/command.rs                      | 465   | +12  |
+------------------------------------------------------+-------+------+
| ethrex/cmd/ethrex/l2/initializers.rs                 | 109   | +15  |
+------------------------------------------------------+-------+------+
| ethrex/cmd/ethrex/l2/options.rs                      | 545   | +13  |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/based/sequencer_state.rs            | 32    | +1   |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/l2.rs                               | 12    | +2   |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/monitor/app.rs                      | 683   | +683 |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/monitor/mod.rs                      | 69    | +69  |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/monitor/ui/mod.rs                   | 35    | +35  |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/monitor/ui/tabs/logs.rs             | 36    | +36  |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/monitor/ui/tabs/mod.rs              | 2     | +2   |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/monitor/ui/tabs/overview.rs         | 248   | +248 |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/monitor/utils.rs                    | 33    | +33  |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/networking/rpc/based/mod.rs         | 1     | +1   |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/networking/rpc/based/node_status.rs | 20    | +20  |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/networking/rpc/lib.rs               | 5     | +1   |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/networking/rpc/rpc.rs               | 207   | +16  |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/sequencer/configs.rs                | 87    | +5   |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/sequencer/errors.rs                 | 276   | +7   |
+------------------------------------------------------+-------+------+
| ethrex/crates/l2/sequencer/mod.rs                    | 152   | -6   |
+------------------------------------------------------+-------+------+
| ethrex/crates/networking/rpc/clients/eth/errors.rs   | 239   | +13  |
+------------------------------------------------------+-------+------+
| ethrex/crates/networking/rpc/clients/eth/mod.rs      | 1280  | +36  |
+------------------------------------------------------+-------+------+

@ilitteri ilitteri moved this to In Progress in ethrex_l2 Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L2 Rollup client
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant