-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Functionality for submitting several blobs in single DA block (#690)
* Introduce sciprts for testing deferred blob execution * Clean up logging * Scripts for make demo * Improve logging * Use preferred sequencer * Log transaction hash in batch builder
- Loading branch information
1 parent
597f324
commit d00fb58
Showing
17 changed files
with
138 additions
and
28 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,21 @@ | ||
|
||
COMPOSE_FILE=docker-compose.celestia.yaml | ||
MOUNT_FOLDER=keyring-test | ||
NODE_1_KEY_FILE=bridge_1_key.txt | ||
|
||
up: | ||
docker-compose --file $(COMPOSE_FILE) up -d | ||
|
||
|
||
down: | ||
docker-compose --file "$(COMPOSE_FILE)" down | ||
rm -rf $(MOUNT_FOLDER)/*.txt | ||
rm -rf config_*.toml | ||
|
||
restart: down up generate_configs | ||
|
||
generate_configs: | ||
bash ./generate_configs.sh | ||
|
||
logs: | ||
docker-compose --file "$(COMPOSE_FILE)" logs --follow |
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,19 @@ | ||
MOUNT_FOLDER=keyring-test | ||
NODE_1_KEY_FILE=bridge_1_key.txt | ||
NODE_2_KEY_FILE=bridge_2_key.txt | ||
|
||
count=0; while [[ ! -f "$MOUNT_FOLDER/$NODE_1_KEY_FILE" && $count -lt 300 ]]; do sleep 1; ((count++)); done | ||
|
||
NODE_1_KEY="$(cat "$MOUNT_FOLDER/$NODE_1_KEY_FILE" | egrep -v '^$|^WARNING|^\*\*DO NOT')"; | ||
sed "s/^celestia_rpc_auth_token = .*/celestia_rpc_auth_token = \"$NODE_1_KEY\"/g" template.toml | \ | ||
sed "s/^path = .*/path = \"demo_data_1\"/g" \ | ||
> config_1.toml; | ||
|
||
count=0; while [[ ! -f "$MOUNT_FOLDER/$NODE_2_KEY_FILE" && $count -lt 300 ]]; do sleep 1; ((count++)); done | ||
|
||
NODE_1_KEY="$(cat "$MOUNT_FOLDER/$NODE_2_KEY_FILE" | egrep -v '^$|^WARNING|^\*\*DO NOT')"; | ||
sed "s/^celestia_rpc_auth_token = .*/celestia_rpc_auth_token = \"$NODE_1_KEY\"/g" template.toml | \ | ||
sed "s/^path = .*/path = \"demo_data_2\"/g" | \ | ||
sed "s/^celestia_rpc_address = .*/celestia_rpc_address = \"http:\/\/127.0.0.1:46658\"/g" | \ | ||
sed "s/^bind_port = .*/bind_port = 12346/g" \ | ||
> config_2.toml; |
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,15 @@ | ||
[da] | ||
celestia_rpc_auth_token = "" | ||
celestia_rpc_address = "http://127.0.0.1:26658" | ||
max_celestia_response_body_size = 104_857_600 | ||
celestia_rpc_timeout_seconds = 60 | ||
|
||
[storage] | ||
path = "demo_data" | ||
|
||
[runner] | ||
start_height = 1 | ||
|
||
[runner.rpc_config] | ||
bind_host = "127.0.0.1" | ||
bind_port = 12345 |
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
RPC_ENDPOINT="http://127.0.0.1:12345" | ||
PRIVATE_KEY="../test-data/keys/token_deployer_private_key.json" | ||
SOV_CLI="../../target/debug/sov-cli" | ||
|
||
echo "Preparing..." | ||
$SOV_CLI submit-transaction "$PRIVATE_KEY" Bank ../test-data/requests/create_token.json 0 "$RPC_ENDPOINT" | ||
$SOV_CLI submit-transaction "$PRIVATE_KEY" SequencerRegistry ../test-data/requests/register_sequencer.json 1 "$RPC_ENDPOINT" | ||
$SOV_CLI publish-batch "$RPC_ENDPOINT" | ||
|
||
|
||
sleep 1 | ||
echo "Starting submitting transfers" | ||
for nonce in {2..30}; do | ||
echo "Submitting transaction with nonce $nonce" | ||
$SOV_CLI submit-transaction "$PRIVATE_KEY" Bank ../test-data/requests/transfer.json "$nonce" "$RPC_ENDPOINT" | ||
if [ $((nonce % 3)) -eq 0 ]; then | ||
$SOV_CLI publish-batch "$RPC_ENDPOINT" | ||
fi | ||
done |
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
RPC_ENDPOINT="http://127.0.0.1:12346" | ||
PRIVATE_KEY="../test-data/keys/minter_private_key.json" | ||
SOV_CLI="../../target/debug/sov-cli" | ||
|
||
echo "Starting !!!" | ||
|
||
for nonce in {0..30}; do | ||
echo "Submitting transaction with nonce $nonce" | ||
$SOV_CLI submit-transaction "$PRIVATE_KEY" Bank ../test-data/requests/transfer.json "$nonce" "$RPC_ENDPOINT" | ||
if [ $((nonce % 3)) -eq 0 ]; then | ||
$SOV_CLI publish-batch "$RPC_ENDPOINT" | ||
fi | ||
done |
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
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
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 |
---|---|---|
|
@@ -7,4 +7,3 @@ | |
} | ||
} | ||
} | ||
|
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
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
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