-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: example devnet config with default tag
- Loading branch information
1 parent
8428128
commit 44dd267
Showing
4 changed files
with
21 additions
and
36 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 @@ | ||
kurtosis_config.yaml |
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 |
---|---|---|
@@ -1,26 +1,18 @@ | ||
#!/bin/bash | ||
|
||
echo "Starting the devnet..." | ||
ENV=$1 | ||
|
||
# spin up the kurtosis devnet | ||
kurtosis run --enclave bolt-devnet github.com/chainbound/ethereum-package@bolt --args-file ./scripts/kurtosis_config.yaml | ||
echo "Devnet online! Waiting for the RPC to be available..." | ||
sleep 5 | ||
if [ -z "$ENV" ]; then | ||
echo "Usage: start-devnet.sh <ENV>" | ||
exit 1 | ||
fi | ||
|
||
echo "Starting the devnet on $ENV..." | ||
|
||
RPC=$(kurtosis port print bolt-devnet el-1-geth-lighthouse rpc) | ||
PK="bcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31" | ||
echo "RPC endpoint: $RPC" | ||
# the environment needs to match the image tags in the kurtosis config file | ||
sed "s/\$TAG/$ENV/g" ./scripts/kurtosis_config.template.yaml > ./scripts/kurtosis_config.yaml | ||
|
||
# wait for the rpc to be available | ||
while ! curl -s -X POST --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' "$RPC" >/dev/null; do | ||
sleep 1 | ||
done | ||
# spin up the kurtosis devnet | ||
kurtosis run --enclave bolt-devnet github.com/chainbound/ethereum-package@bolt --args-file ./scripts/kurtosis_config.yaml | ||
|
||
# TODO: re-add after new registry, challenger and staking contracts are available | ||
# deploy the contracts | ||
# ( | ||
# cd ./bolt-contracts || exit | ||
# forge build # make sure the contracts are compiled before deploying | ||
# forge script script/DeployOnDevnet.s.sol --broadcast --rpc-url "$RPC" --private-key "$PK" | ||
# ) | ||
# echo "Contracts deployed!" | ||
echo "Devnet online!" |