|
Monero
|
Functions | |
| def | write_support_info () |
| def | support_dicts (device) |
| def | all_support_dicts () |
| def | clear_support (device, key) |
| def | set_supported (device, key, value) |
| def | set_unsupported (device, key, value) |
| def | print_support (coin) |
| def | check_support_values () |
| def | find_unsupported_coins (coins_dict) |
| def | find_orphaned_support_keys (coins_dict) |
| def | find_supported_duplicate_tokens (coins_dict) |
| def | process_erc20 (coins_dict) |
| def | clear_erc20_mixed_buckets (buckets) |
| def | cli () |
| def | fix (dry_run) |
| def | check (check_tokens, ignore_missing) |
| def | release |
| def | show (keyword) |
| def | set_support_value (key, entries, reason) |
Variables | |
| SUPPORT_INFO | |
| VERSION_RE | |
| ERC20_DUPLICATE_KEY | |
| def support.all_support_dicts | ( | ) |
| def support.check | ( | check_tokens, | |
| ignore_missing | |||
| ) |
Check validity of support information. Ensures that `support.json` data is well formed, there are no keys without corresponding coins, and there are no coins without corresponding keys. If `--check-tokens` is specified, the check will also take into account ERC20 tokens without support info. This is disabled by default, because support info for ERC20 tokens is not strictly required. If `--ignore-missing` is specified, the check will display coins with missing support info, but will not fail when missing coins are found. This is useful in Travis.
| def support.check_support_values | ( | ) |
| def support.clear_erc20_mixed_buckets | ( | buckets | ) |
| def support.clear_support | ( | device, | |
| key | |||
| ) |
| def support.cli | ( | ) |
| def support.find_orphaned_support_keys | ( | coins_dict | ) |
| def support.find_supported_duplicate_tokens | ( | coins_dict | ) |
| def support.find_unsupported_coins | ( | coins_dict | ) |
| def support.fix | ( | dry_run | ) |
Fix expected problems. Prunes orphaned keys and ensures that ERC20 duplicate info matches support info.
| def support.print_support | ( | coin | ) |
| def support.process_erc20 | ( | coins_dict | ) |
Make sure that: * orphaned ERC20 support info is cleared out * duplicate ERC20 tokens are not listed as supported * non-duplicate ERC20 tokens are cleared out from the unsupported list
| def support.release | ( | ctx, | |
| device | |||
| ) |
| def support.set_support_value | ( | key, | |
| entries, | |||
| reason | |||
| ) |
Set a support info variable.
Examples:
support.py set coin:BTC trezor1=soon trezor2=2.0.7 webwallet=yes connect=no
support.py set coin:LTC trezor1=yes connect=
Setting a variable to "yes", "true" or "1" sets support to true.
Setting a variable to "no", "false" or "0" sets support to false.
(or null, in case of trezor1/2)
Setting variable to empty ("trezor1=") will set to null, or clear the entry.
Setting to "soon", "planned", "2.1.1" etc. will set the literal string.
| def support.set_supported | ( | device, | |
| key, | |||
| value | |||
| ) |
| def support.set_unsupported | ( | device, | |
| key, | |||
| value | |||
| ) |
| def support.show | ( | keyword | ) |
Show support status of specified coins. Keywords match against key, name or shortcut (ticker symbol) of coin.
| def support.support_dicts | ( | device | ) |
| def support.write_support_info | ( | ) |
| support.ERC20_DUPLICATE_KEY |
| support.SUPPORT_INFO |
| support.VERSION_RE |
1.8.14