This repository was archived by the owner on Dec 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ set -ueo >/dev/null
44STACKS=$PROJECT_NAME -stacks-1
55API_URL=http://$STACKS :20443/v2/info
66
7- # makes sure the node is ready before proceeding
7+ # --- make sure the node is ready before proceeding
8+
89# stacks node get info
910echo " Waiting on Stacks API"
1011while ! curl -s $API_URL > /dev/null; do
@@ -18,7 +19,16 @@ echo "Waiting on burn block height $DEV_READY_HEIGHT"
1819while [ " $( curl -s $API_URL | jq ' .burn_block_height' ) " -lt $DEV_READY_HEIGHT ]; do
1920 sleep 2
2021done
22+
23+ # stacks ready to take contracts
24+ STACKS_HEIGHT=2
25+ echo " Waiting on Stacks height $STACKS_HEIGHT "
26+ while [ " $( curl -s $API_URL | jq ' .stacks_tip_height' ) " -lt $STACKS_HEIGHT ]; do
27+ sleep 2
28+ done
29+
2130# any other service checks
31+
2232# push contracts
2333cd romeo/asset-contract
2434clarinet deployments apply -d -p deployments/default.devnet-plan.yaml
Original file line number Diff line number Diff line change 44 "stacks_network" : " testnet" ,
55 "bitcoin_network" : " regtest" ,
66 "stacks_node_url" : " http://stacks-api:3999" ,
7- "bitcoin_node_url" : " http://devnet:devnet@bitcoin-explorer:3002/api " ,
7+ "bitcoin_node_url" : " http://devnet:devnet@bitcoin:18443 " ,
88 "electrum_node_url" : " tcp://electrs:60401" ,
99 "contract_name" : " asset"
1010}
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ if [[ -z "$num_blocks" ]]; then
1010 exit 1
1111fi
1212
13- btc_address=$( source $dir /get_credentials.sh | jq -r ' .credentials["0 "].bitcoin.p2wpkh.address' )
13+ btc_address=$( source $dir /get_credentials.sh | jq -r ' .credentials["1 "].bitcoin.p2wpkh.address' )
1414
15- bitcoin-cli -rpcconnect=localhost -rpcport=18443 -rpcuser=devnet -rpcpassword=devnet generatetoaddress $num_blocks $btc_address
15+ $dir /../bitcoin/bin/ bitcoin-cli -rpcconnect=localhost -rpcport=18443 -rpcuser=devnet -rpcpassword=devnet generatetoaddress $num_blocks $btc_address
You can’t perform that action at this time.
0 commit comments