mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-30 01:58:11 +00:00
76c6e9cd9d
WIP - change trezor{1,2} to their internal names, add support for model R WIP - add EOS and NEM features Capability only for TT WIP - not include EOS and NEM into TR WIP - choose between device models when generating coininfo WIP - regenerate coininfo.py WIP - skip NEM, EOS, Dash, BGold and Decred device tests for TR WIP - fix python support WIP - fix unit tests WIP - import bitcoin-like code only when needed WIP - remove ignored coins for TR in fixtures.json WIP - make all the external references to models UPPERCASE WIP - do the model separation in mako script also for tokens and networks WIP - hot-fixing non-supporting RELEASES_URL for new model names WIP - support.py releases CLI command takes a list of -r key-value pairs DEVICE=VERSION WIP - run `python support.py release` WIP - use utils.MODEL_IS_T2B1 to ignore NEM and EOS WIP - change all the docs and commands to have UPPERCASE model names [no changelog]
38 lines
1.2 KiB
Bash
Executable File
38 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
RETURN=0
|
|
|
|
EXCEPTIONS=()
|
|
EXCEPTIONS+=( "decred" ) # "decred" figures in field names used by the bitcoin app
|
|
EXCEPTIONS+=( "omni" ) # OMNI is part of the bitcoin app
|
|
# BIP39 or SLIP39 words that have "dash", "nem", or "flo" in them
|
|
EXCEPTIONS+=( "cinema" "dash" "enemy" "float" "flock" "flower" "floor" "floral" )
|
|
EXCEPTIONS+=( "mnemonic" ) # has NEM in it
|
|
EXCEPTIONS+=( "workflow" "overflow" ) # has Flo in it
|
|
EXCEPTIONS+=( "SyntaxError" ) # has Axe in it
|
|
EXCEPTIONS+=( "DKDNEM" ) # has NEM in it, some sort of weird coincidence
|
|
EXCEPTIONS+=( "confirm_ethereum_tx" ) # is model-specific, so is in layout/__init__.py instead of ethereum/layout.py
|
|
|
|
GREP_ARGS=()
|
|
for exception in "${EXCEPTIONS[@]}"; do
|
|
GREP_ARGS+=(-e $exception)
|
|
done
|
|
|
|
# dump all coins except the first 3 (Bitcoin, Testnet, Regtest)
|
|
ALTCOINS=$(./common/tools/cointool.py dump -l -p -t -d T1B1 -d T2T1 -d T2B1 | grep '"name"' | cut -d '"' -f 4 | tail -n +4)
|
|
# split on newlines only
|
|
OLDIFS=$IFS
|
|
IFS="
|
|
"
|
|
for altcoin in $ALTCOINS; do
|
|
# echo :"$altcoin":
|
|
if strings "$1" | grep -i "$altcoin" | grep -vi ${GREP_ARGS[@]} ; then
|
|
RETURN=1
|
|
fi
|
|
done
|
|
IFS=$OLDIFS
|
|
|
|
if [ $RETURN -ne 0 ]; then
|
|
echo "ERROR: Altcoin strings found in Bitcoin-only firmware."
|
|
fi
|
|
exit $RETURN
|