This repository was archived by the owner on Dec 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
devenv/integration/docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ set -ueo >/dev/null
33
44STACKS=$PROJECT_NAME -stacks-1
55API_URL=http://$STACKS :20443/v2/info
6+ BITCOIN=$PROJECT_NAME -bitcoin-1
7+
8+ # --- make sure the node is ready before proceeding
69
7- # makes sure the node is ready before proceeding
810# stacks node get info
9- echo " Waiting on Stacks API"
11+ echo " Waiting on Stacks API $API_URL "
1012while ! curl -s $API_URL > /dev/null; do
1113 sleep 1
1214done
@@ -18,10 +20,21 @@ echo "Waiting on burn block height $DEV_READY_HEIGHT"
1820while [ " $( curl -s $API_URL | jq ' .burn_block_height' ) " -lt $DEV_READY_HEIGHT ]; do
1921 sleep 2
2022done
23+
24+ # stacks ready to take contracts
25+ STACKS_HEIGHT=1
26+ echo " Waiting on Stacks height $STACKS_HEIGHT "
27+ while [ " $( curl -s $API_URL | jq ' .stacks_tip_height' ) " -lt $STACKS_HEIGHT ]; do
28+ sleep 2
29+ done
30+
2131# any other service checks
32+
2233# push contracts
2334cd romeo/asset-contract
24- clarinet deployments apply -d -p deployments/default.devnet-plan.yaml
35+ sed -i " s/localhost:20443/$STACKS :20443/" deployments/default.devnet-plan.yaml
36+ sed -i " s/localhost:18443/$BITCOIN :18443/" deployments/default.devnet-plan.yaml
37+ clarinet deployments apply --no-dashboard -d -p deployments/default.devnet-plan.yaml
2538cd -
2639
2740echo with filter: " '$@ '"
You can’t perform that action at this time.
0 commit comments