ethereum-optimism / optimistic-specs

Optimistic: Bedrock, is a protocol that strives to be an extremely simple optimistic rollup that maintains 1:1 compatibility with Ethereum
MIT License
167 stars 35 forks source link

StateViz: Visualize rollup state changes #419

Closed Inphi closed 2 years ago

Inphi commented 2 years ago

Log rollup state changes so they can be later inspected using stateviz. stateviz is a webserver that serves HTML visualizing rollup state snapshots. Each rollup driver engine can be viewed side by side on a table where each row represents a rollup state change event.

stateviz is added to the devnet deployment and accessible at http://localhost:9090 upon running make devnet-up. The webpage can be manually refreshed every couple seconds to get the latest snapshots logged by the opnode.

image

Metadata

codecov-commenter commented 2 years ago

Codecov Report

Merging #419 (0a6df4e) into main (b6dd9da) will decrease coverage by 1.26%. The diff coverage is 14.76%.

@@            Coverage Diff             @@
##             main     #419      +/-   ##
==========================================
- Coverage   53.23%   51.96%   -1.27%     
==========================================
  Files          62       63       +1     
  Lines        6481     6677     +196     
==========================================
+ Hits         3450     3470      +20     
- Misses       2592     2768     +176     
  Partials      439      439              
Impacted Files Coverage Δ
opnode/cmd/main.go 7.89% <0.00%> (-0.56%) :arrow_down:
opnode/cmd/stateviz/main.go 0.00% <0.00%> (ø)
opnode/flags/flags.go 100.00% <ø> (ø)
opnode/service.go 0.00% <0.00%> (ø)
opnode/node/node.go 60.15% <77.77%> (+0.15%) :arrow_up:
opnode/rollup/driver/driver.go 100.00% <100.00%> (ø)
opnode/rollup/driver/state.go 72.99% <100.00%> (+1.75%) :arrow_up:
opnode/test/setup.go 72.81% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b6dd9da...0a6df4e. Read the comment docs.