Monero
Functions | Variables
support Namespace Reference

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
 

Function Documentation

◆ all_support_dicts()

def support.all_support_dicts ( )

◆ check()

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.

◆ check_support_values()

def support.check_support_values ( )

◆ clear_erc20_mixed_buckets()

def support.clear_erc20_mixed_buckets (   buckets)

◆ clear_support()

def support.clear_support (   device,
  key 
)

◆ cli()

def support.cli ( )

◆ find_orphaned_support_keys()

def support.find_orphaned_support_keys (   coins_dict)

◆ find_supported_duplicate_tokens()

def support.find_supported_duplicate_tokens (   coins_dict)

◆ find_unsupported_coins()

def support.find_unsupported_coins (   coins_dict)

◆ fix()

def support.fix (   dry_run)
Fix expected problems.

Prunes orphaned keys and ensures that ERC20 duplicate info matches support info.

◆ print_support()

def support.print_support (   coin)

◆ process_erc20()

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

◆ release()

def support.release (   ctx,
  device 
)

◆ set_support_value()

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.

◆ set_supported()

def support.set_supported (   device,
  key,
  value 
)

◆ set_unsupported()

def support.set_unsupported (   device,
  key,
  value 
)

◆ show()

def support.show (   keyword)
Show support status of specified coins.

Keywords match against key, name or shortcut (ticker symbol) of coin.

◆ support_dicts()

def support.support_dicts (   device)

◆ write_support_info()

def support.write_support_info ( )

Variable Documentation

◆ ERC20_DUPLICATE_KEY

support.ERC20_DUPLICATE_KEY

◆ SUPPORT_INFO

support.SUPPORT_INFO

◆ VERSION_RE

support.VERSION_RE