forked from OffchainLabs/nitro-testnode
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
listen_to_sequencer_feed() { | ||
# Listen to the sequencer feed and check if the sender address is detected | ||
while read -r message; do | ||
# Check if the message contains the specific sender address | ||
if [[ "$message" == *"\"sender\":\"0xdd6bd74674c356345db88c354491c7d3173c6806\""* ]]; then | ||
echo "Sender address detected" | ||
break | ||
fi | ||
done < <(websocat ws://127.0.0.1:9642) | ||
} | ||
|
||
|
||
./test-node.bash --espresso --latest-espresso-image --validate --tokenbridge --init-force --detach --espresso-finality-node | ||
|
||
# Start the espresso finality node | ||
docker compose up -d sequencer-espresso-finality --wait --detach | ||
|
||
# Sending L2 transaction | ||
./test-node.bash script send-l2 --ethamount 100 --to user_l2user --wait | ||
|
||
listen_to_sequencer_feed | ||
|
||
docker compose down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters