|
Monero
|
Functions | |
| write_support_info () | |
| support_dicts (device) | |
| all_support_dicts () | |
| clear_support (device, key) | |
| set_supported (device, key, value) | |
| set_unsupported (device, key, value) | |
| print_support (coin) | |
| check_support_values () | |
| find_unsupported_coins (coins_dict) | |
| find_orphaned_support_keys (coins_dict) | |
| find_supported_duplicate_tokens (coins_dict) | |
| process_erc20 (coins_dict) | |
| clear_erc20_mixed_buckets (buckets) | |
| cli () | |
| fix (dry_run) | |
| check (check_tokens, ignore_missing) | |
| release (ctx, str device, version, git_tag, release_missing, dry_run, soon, force, add_all, verbose) | |
| show (keyword) | |
| set_support_value (key, entries, reason) | |
Variables | |
| SUPPORT_INFO = coin_info.get_support_data() | |
| VERSION_RE = re.compile(r"\d+.\d+.\d+") | |
| str | ERC20_DUPLICATE_KEY = "(AUTO) duplicate key" |
| support.all_support_dicts | ( | ) |
| 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.
| support.check_support_values | ( | ) |
| support.clear_erc20_mixed_buckets | ( | buckets | ) |
| support.clear_support | ( | device, | |
| key ) |
| support.cli | ( | ) |
| support.find_orphaned_support_keys | ( | coins_dict | ) |
| support.find_supported_duplicate_tokens | ( | coins_dict | ) |
| support.find_unsupported_coins | ( | coins_dict | ) |
| support.fix | ( | dry_run | ) |
Fix expected problems. Prunes orphaned keys and ensures that ERC20 duplicate info matches support info.
| support.print_support | ( | coin | ) |
| 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
| support.release | ( | ctx, | |
| str | device, | ||
| version, | |||
| git_tag, | |||
| release_missing, | |||
| dry_run, | |||
| soon, | |||
| force, | |||
| add_all, | |||
| verbose ) |
Release a new Trezor firmware. Update support infos so that all coins have a clear support status. By default, marks duplicate tokens as unsupported, and all coins that either don't have support info, or they are supported "soon", are set to the released firmware version. Optionally tags the repository with the given version. `device` can be "1", "2", or a string matching `support.json` key. Version is autodetected by downloading a list of latest releases and incrementing micro version by one, or you can specify `--version` explicitly. Unless `--add-all` is specified, the tool will ask you to confirm each added coin. ERC20 tokens are added automatically. Use `--verbose` to see them.
| 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.
| support.set_supported | ( | device, | |
| key, | |||
| value ) |
| support.set_unsupported | ( | device, | |
| key, | |||
| value ) |
| support.show | ( | keyword | ) |
Show support status of specified coins. Keywords match against key, name or shortcut (ticker symbol) of coin.
| support.support_dicts | ( | device | ) |
| support.write_support_info | ( | ) |
| str support.ERC20_DUPLICATE_KEY = "(AUTO) duplicate key" |
| support.SUPPORT_INFO = coin_info.get_support_data() |