diff --git a/devenv/utils/deposit.sh b/devenv/utils/deposit.sh index ac07a986..8622f990 100755 --- a/devenv/utils/deposit.sh +++ b/devenv/utils/deposit.sh @@ -4,9 +4,12 @@ dir="$(dirname "$0")" -btc_wif=$(source $dir/get_credentials.sh | jq -r '.credentials["0"].bitcoin.p2wpkh.wif') +# the sbtc wallet btc_p2tr_address=$(source $dir/get_credentials.sh | jq -r '.credentials["0"].bitcoin.p2tr.address') -stacks_address=$(source $dir/get_credentials.sh | jq -r '.credentials["0"].stacks.address') +# Alice's btc address +btc_wif=$(source $dir/get_credentials.sh | jq -r '.credentials["1"].bitcoin.p2wpkh.wif') +# Alice's stx address +stacks_address=$(source $dir/get_credentials.sh | jq -r '.credentials["1"].stacks.address') amount=$((RANDOM%9000+1000)) diff --git a/devenv/utils/get_credentials.sh b/devenv/utils/get_credentials.sh index d0bc1c66..f54e1a32 100755 --- a/devenv/utils/get_credentials.sh +++ b/devenv/utils/get_credentials.sh @@ -4,4 +4,4 @@ mnemonic="twice kind fence tip hidden tilt action fragile skin nothing glory cousin green tomorrow spring wrist shed math olympic multiply hip blue scout claw" -sbtc generate-from -s testnet -b regtest mnemonic "$mnemonic" +sbtc generate-from -s testnet -b regtest --accounts 2 mnemonic "$mnemonic" diff --git a/devenv/utils/withdraw.sh b/devenv/utils/withdraw.sh index d2026f1b..36a816dd 100755 --- a/devenv/utils/withdraw.sh +++ b/devenv/utils/withdraw.sh @@ -5,10 +5,15 @@ dir="$(dirname "$0")" -btc_wif=$(source $dir/get_credentials.sh | jq -r '.credentials["0"].bitcoin.p2wpkh.wif') -btc_address=$(source $dir/get_credentials.sh | jq -r '.credentials["0"].bitcoin.p2wpkh.address') +# the sbtc wallet btc_p2tr_address=$(source $dir/get_credentials.sh | jq -r '.credentials["0"].bitcoin.p2tr.address') -stacks_wif=$(source $dir/get_credentials.sh | jq -r '.credentials["0"].stacks.wif') + +# Alice's btc credential as wif +btc_wif=$(source $dir/get_credentials.sh | jq -r '.credentials["1"].bitcoin.p2wpkh.wif') +# Alice's btc address +btc_address=$(source $dir/get_credentials.sh | jq -r '.credentials["1"].bitcoin.p2wpkh.address') +# Alice's stx credential as wif +stacks_wif=$(source $dir/get_credentials.sh | jq -r '.credentials["1"].stacks.wif') amount=$((RANDOM%1000+1000)) fulfillment_fee=$((RANDOM%1000+1000))