Skip to content
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

docs: add links to zkevm-datastreamer #423

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions scripts/sanity-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ echo -e "- L2 RPC URL:\t\t\t$l2_rpc_url"
echo -e "- Rollup Manager Address:\t$rollup_manager_addr"
echo -e "- Rollup ID:\t\t\t$rollup_id"

# Update datastreamer config.
# Update datastreamer config. This requires the sanity check script to be run
# from the root of the kurtosis-cdk repo.
# shellcheck disable=SC2016
tomlq -Y --toml-output --in-place --arg l2_datastreamer_url "$l2_datastreamer_url" '.Online.URI = $l2_datastreamer_url' scripts/datastreamer.toml

Expand All @@ -110,7 +111,11 @@ function fetch_l2_batch_info_from_datastream() {
local batch_number="$1"
local result

# This is meant to read the stream and just add all of the objects together which is a little odd but would allow us to see the last unique fields
# This is meant to read the stream and just add all of the objects together
# which is a little odd but would allow us to see the last unique fields.
#
# The tool can be found and built from source here:
# https://github.com/0xPolygonHermez/zkevm-node/tree/develop/tools/datastreamer
result="$(zkevm-datastreamer decode-batch --cfg scripts/datastreamer.toml --batch "$batch_number" --json | jq -s 'add')"

local ts
Expand Down
Loading