Commit 1554492
refactor(replay):
**Motivation**
<!-- Why does this pull request exist? What are its goals? -->
**Description**
> [!NOTE]
> Some of these changes were inspired by
[`ere`](https://github.com/eth-act/ere) and
[`zkevm-benchmark-workload`](https://github.com/eth-act/zkevm-benchmark-workload).
> This PR settles the ground for adding `ere` as an alternative backend
for `ethrex-replay`.
- Adds new options `--zkvm`, `--resource` (cpu, gpu), and `--action`
(prove, execute).
- Adds help heading for options.
- Makes block number, batch number, tx hash positional args to avoid
needing to specify them with flags (could seem redundant in some
commands e.g. `ethrex-replay block --block`, `ethrex-replay batch
--batch`, etc).
- Executes using CPU and no ZKVM by default.
- Removes the module `bench` as it was already replaced by the report.
- Refactors the reports (both how it is printed in the console and as
slack message, se the images below).
**Old Messages/Console print**
<img width="397" height="323" alt="image"
src="https://github.com/user-attachments/assets/16715acf-8feb-44e9-99c6-4166b51ce15b"
/>
<img width="1406" height="37" alt="image"
src="https://github.com/user-attachments/assets/3ea6ef85-9e5d-4375-bd11-6ed16a9f4c01"
/>
**New**
<img width="486" height="327" alt="image"
src="https://github.com/user-attachments/assets/d85d97cd-2ff7-4027-9c6b-74cc8554fe7b"
/>
<img width="464" height="221" alt="image"
src="https://github.com/user-attachments/assets/973ee4ba-b5d2-4c3f-8eb4-1c8390f4ac12"
/>
---------
Co-authored-by: Jeremías Salomón 🐃🐄🥚 <48994069+JereSalo@users.noreply.github.com>ethrex-replay improvements (#4641)1 parent 1c41473 commit 1554492
10 files changed
Lines changed: 962 additions & 816 deletions
File tree
- cmd/ethrex_replay
- src
- docs/ethrex_replay
- tooling/replayer/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
This file was deleted.
0 commit comments