mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-05 18:29:22 +00:00
refactor wallet parameter stub creation
This commit is contained in:
parent
f635f474c6
commit
c2dd01bd1b
1 changed files with 9 additions and 28 deletions
|
@ -6,32 +6,13 @@ if ! test -f "$KEYS"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create template wallet test parameter files if they don't already exist
|
# Create template wallet test parameter files if they don't already exist
|
||||||
BWTP=../test/services/coins/bitcoin/bitcoin_wallet_test_parameters.dart
|
declare -a coins=("bitcoin" "bitcoincash" "dogecoin" "namecoin" "firo") # TODO add monero and wownero when those tests are updated to use the .gitignored test wallet setup: when doing that, make sure to update the test vectors for a new, private development seed
|
||||||
if ! test -f "$BWTP"; then
|
|
||||||
echo 'prebuild.sh: creating template test/services/coins/bitcoin/bitcoin_wallet_test_parameters.dart file'
|
|
||||||
printf 'const TEST_MNEMONIC = "";\nconst ROOT_WIF = "";\nconst NODE_WIF_84 = "";\n' > $BWTP
|
|
||||||
fi
|
|
||||||
|
|
||||||
BCWTP=../test/services/coins/bitcoincash/bitcoincash_wallet_test_parameters.dart
|
for coin in "${coins[@]}"
|
||||||
if ! test -f "$BCWTP"; then
|
do
|
||||||
echo 'prebuild.sh: creating template test/services/coins/bitcoincash/bitcoincash_wallet_test_parameters.dart file'
|
WALLETTESTPARAMFILE="../test/services/coins/${coin}/${coin}_wallet_test_parameters.dart"
|
||||||
printf 'const TEST_MNEMONIC = "";\nconst ROOT_WIF = "";\nconst NODE_WIF_84 = "";\n' > $BCWTP
|
if ! test -f "$WALLETTESTPARAMFILE"; then
|
||||||
fi
|
echo "prebuild.sh: creating template test/services/coins/${coin}/${coin}_wallet_test_parameters.dart file"
|
||||||
|
printf 'const TEST_MNEMONIC = "";\nconst ROOT_WIF = "";\nconst NODE_WIF_84 = "";\n' > $WALLETTESTPARAMFILE
|
||||||
DWTP=../test/services/coins/dogecoin/dogecoin_wallet_test_parameters.dart
|
fi
|
||||||
if ! test -f "$DWTP"; then
|
done
|
||||||
echo 'prebuild.sh: creating template test/services/coins/dogecoin/dogecoin_wallet_test_parameters.dart file'
|
|
||||||
printf 'const TEST_MNEMONIC = "";\nconst ROOT_WIF = "";\nconst NODE_WIF_84 = "";\n' > $DWTP
|
|
||||||
fi
|
|
||||||
|
|
||||||
NWTP=../test/services/coins/namecoin/namecoin_wallet_test_parameters.dart
|
|
||||||
if ! test -f "$NWTP"; then
|
|
||||||
echo 'prebuild.sh: creating template test/services/coins/namecoin/namecoin_wallet_test_parameters.dart file'
|
|
||||||
printf 'const TEST_MNEMONIC = "";\nconst ROOT_WIF = "";\nconst NODE_WIF_84 = "";\n' > $NWTP
|
|
||||||
fi
|
|
||||||
|
|
||||||
FWTP=../test/services/coins/firo/firo_wallet_test_parameters.dart
|
|
||||||
if ! test -f "$FWTP"; then
|
|
||||||
echo 'prebuild.sh: creating template test/services/coins/firo/firo_wallet_test_parameters.dart file'
|
|
||||||
printf 'const TEST_MNEMONIC = "";\nconst ROOT_WIF = "";\nconst NODE_WIF_84 = "";\n' > $FWTP
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue