forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Keszey Dániel
authored and
Keszey Dániel
committed
Jul 23, 2024
1 parent
d6079da
commit 33a509e
Showing
3 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
|
||
install: | ||
./scripts/setup_deps.sh | ||
|
||
propose: | ||
./scripts/propose_block.sh |
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,29 @@ | ||
#!/bin/bash | ||
|
||
# Run the setup_deps.sh script to ensure dependencies are set up | ||
./scripts/setup_deps.sh | ||
|
||
# Read the RPC port from temporary file | ||
RPC_PORT=$(cat /tmp/kurtosis_rpc_port) | ||
|
||
# Load the .env file and extract the PRIVATE_KEY | ||
if [ -f .env ]; then | ||
export $(grep -v '^#' .env | xargs) | ||
PRIVATE_KEY=${PRIVATE_KEY} | ||
else | ||
echo ".env file not found. Please create a .env file with your PRIVATE_KEY." | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$PRIVATE_KEY" ]; then | ||
echo "PRIVATE_KEY not found in the .env file." | ||
exit 1 | ||
fi | ||
|
||
# Run the forge foundry script using the extracted RPC port and PRIVATE_KEY | ||
FORGE_COMMAND="forge script --rpc-url http://127.0.0.1:$RPC_PORT scripts/L2_txn_simulation/ProposeBlock.s.sol -vvvv --broadcast --private-key $PRIVATE_KEY --legacy" | ||
|
||
echo "Running forge foundry script..." | ||
eval $FORGE_COMMAND | ||
|
||
echo "Forge script execution completed." |
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