forked from chainbound/bolt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-devnet.sh
More file actions
executable file
·26 lines (20 loc) · 871 Bytes
/
Copy pathstart-devnet.sh
File metadata and controls
executable file
·26 lines (20 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
echo "Starting the devnet..."
# spin up the kurtosis devnet
kurtosis run --enclave bolt-devnet github.com/chainbound/ethereum-package@bolt --args-file ./scripts/kurtosis_config.yaml
sleep 3
RPC=$(kurtosis port print bolt-devnet el-1-geth-lighthouse rpc)
PK="bcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31"
# 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
echo "Devnet started!"
# 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!"