Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 64701d8

Browse files
committed
reword Contract deployment
1 parent 3291ff4 commit 64701d8

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

devenv/integration/docker/entrypoint

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -ueo >/dev/null
44
STACKS=$PROJECT_NAME-stacks-1
55
API_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
910
echo "Waiting on Stacks API"
1011
while ! curl -s $API_URL >/dev/null; do
@@ -18,7 +19,16 @@ echo "Waiting on burn block height $DEV_READY_HEIGHT"
1819
while [ "$(curl -s $API_URL | jq '.burn_block_height')" -lt $DEV_READY_HEIGHT ]; do
1920
sleep 2
2021
done
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
2333
cd romeo/asset-contract
2434
clarinet deployments apply -d -p deployments/default.devnet-plan.yaml

devenv/sbtc/docker/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
}

devenv/utils/mine_btc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ if [[ -z "$num_blocks" ]]; then
1010
exit 1
1111
fi
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

0 commit comments

Comments
 (0)