mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-15 16:12:16 +00:00
update prebuild.sh to create stub wallet test parameter files
This commit is contained in:
parent
861d362966
commit
f635f474c6
1 changed files with 32 additions and 1 deletions
|
@ -2,5 +2,36 @@
|
|||
KEYS=../lib/external_api_keys.dart
|
||||
if ! test -f "$KEYS"; then
|
||||
echo 'prebuild.sh: creating template lib/external_api_keys.dart file'
|
||||
printf 'const kChangeNowApiKey = "";\nconst kSimpleSwapApiKey = "";' > $KEYS
|
||||
printf 'const kChangeNowApiKey = "";\nconst kSimpleSwapApiKey = "";\n' > $KEYS
|
||||
fi
|
||||
|
||||
# Create template wallet test parameter files if they don't already exist
|
||||
BWTP=../test/services/coins/bitcoin/bitcoin_wallet_test_parameters.dart
|
||||
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
|
||||
if ! test -f "$BCWTP"; then
|
||||
echo 'prebuild.sh: creating template test/services/coins/bitcoincash/bitcoincash_wallet_test_parameters.dart file'
|
||||
printf 'const TEST_MNEMONIC = "";\nconst ROOT_WIF = "";\nconst NODE_WIF_84 = "";\n' > $BCWTP
|
||||
fi
|
||||
|
||||
DWTP=../test/services/coins/dogecoin/dogecoin_wallet_test_parameters.dart
|
||||
if ! test -f "$DWTP"; then
|
||||
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