Monero
Loading...
Searching...
No Matches
coins_details Namespace Reference

Functions

 coinmarketcap_call (endpoint, api_key, params=None)
 coinmarketcap_init (api_key, refresh=None)
 marketcap (coin)
 update_marketcaps (coins)
 summary (coins, api_key)
 _is_supported (support, trezor_version)
 _webwallet_support (coin, support)
 dict_merge (orig, new)
 update_simple (coins, support_info, type)
 update_bitcoin (coins, support_info)
 update_erc20 (coins, networks, support_info)
 update_ethereum_networks (coins, support_info)
 update_nem_mosaics (coins, support_info)
 check_missing_data (coins)
 apply_overrides (coins)
 finalize_wallets (coins)
 main (refresh, api_key, verbose)

Variables

 LOG = logging.getLogger(__name__)
tuple OPTIONAL_KEYS = ("links", "notes", "wallet")
tuple ALLOWED_SUPPORT_STATUS = ("yes", "no", "planned", "soon")
 WALLETS = coin_info.load_json("wallets.json")
 OVERRIDES = coin_info.load_json("coins_details.override.json")
 VERSIONS = coin_info.latest_releases()
 COINMAKETCAP_CACHE = os.path.join(os.path.dirname(__file__), "coinmarketcap.json")
str COINMARKETCAP_API_BASE = "https://pro-api.coinmarketcap.com/v1/"
dict MARKET_CAPS = {}
dict WALLET_TREZOR = {"Trezor": "https://wallet.trezor.io"}
dict WALLET_ETH_TREZOR = {"Trezor Beta": "https://beta-wallet.trezor.io/next/"}
dict WALLET_NEM
dict WALLETS_ETH_3RDPARTY
tuple TREZOR_KNOWN_URLS

Detailed Description

Fetch information about coins and tokens supported by Trezor and update it in coins_details.json.

Function Documentation

◆ _is_supported()

coins_details._is_supported ( support,
trezor_version )
protected

◆ _webwallet_support()

coins_details._webwallet_support ( coin,
support )
protected
Check the "webwallet" support property.
If set, check that at least one of the backends run on trezor.io.
If yes, assume we support the coin in our wallet.
Otherwise it's probably working with a custom backend, which means don't
link to our wallet.

◆ apply_overrides()

coins_details.apply_overrides ( coins)

◆ check_missing_data()

coins_details.check_missing_data ( coins)

◆ coinmarketcap_call()

coins_details.coinmarketcap_call ( endpoint,
api_key,
params = None )

◆ coinmarketcap_init()

coins_details.coinmarketcap_init ( api_key,
refresh = None )

◆ dict_merge()

coins_details.dict_merge ( orig,
new )

◆ finalize_wallets()

coins_details.finalize_wallets ( coins)

◆ main()

coins_details.main ( refresh,
api_key,
verbose )

◆ marketcap()

coins_details.marketcap ( coin)

◆ summary()

coins_details.summary ( coins,
api_key )

◆ update_bitcoin()

coins_details.update_bitcoin ( coins,
support_info )

◆ update_erc20()

coins_details.update_erc20 ( coins,
networks,
support_info )

◆ update_ethereum_networks()

coins_details.update_ethereum_networks ( coins,
support_info )

◆ update_marketcaps()

coins_details.update_marketcaps ( coins)

◆ update_nem_mosaics()

coins_details.update_nem_mosaics ( coins,
support_info )

◆ update_simple()

coins_details.update_simple ( coins,
support_info,
type )

Variable Documentation

◆ ALLOWED_SUPPORT_STATUS

tuple coins_details.ALLOWED_SUPPORT_STATUS = ("yes", "no", "planned", "soon")

◆ COINMAKETCAP_CACHE

coins_details.COINMAKETCAP_CACHE = os.path.join(os.path.dirname(__file__), "coinmarketcap.json")

◆ COINMARKETCAP_API_BASE

str coins_details.COINMARKETCAP_API_BASE = "https://pro-api.coinmarketcap.com/v1/"

◆ LOG

coins_details.LOG = logging.getLogger(__name__)

◆ MARKET_CAPS

dict coins_details.MARKET_CAPS = {}

◆ OPTIONAL_KEYS

tuple coins_details.OPTIONAL_KEYS = ("links", "notes", "wallet")

◆ OVERRIDES

coins_details.OVERRIDES = coin_info.load_json("coins_details.override.json")

◆ TREZOR_KNOWN_URLS

tuple coins_details.TREZOR_KNOWN_URLS
Initial value:
1= (
2 "https://wallet.trezor.io",
3 "https://beta-wallet.trezor.io/next/",
4 "https://trezor.io/stellar/",
5 "https://omnitrezor.com/",
6)

◆ VERSIONS

coins_details.VERSIONS = coin_info.latest_releases()

◆ WALLET_ETH_TREZOR

dict coins_details.WALLET_ETH_TREZOR = {"Trezor Beta": "https://beta-wallet.trezor.io/next/"}

◆ WALLET_NEM

dict coins_details.WALLET_NEM
Initial value:
1= {
2 "Nano Wallet": "https://nem.io/downloads/",
3 "Magnum": "https://magnumwallet.co",
4}

◆ WALLET_TREZOR

dict coins_details.WALLET_TREZOR = {"Trezor": "https://wallet.trezor.io"}

◆ WALLETS

coins_details.WALLETS = coin_info.load_json("wallets.json")

◆ WALLETS_ETH_3RDPARTY

dict coins_details.WALLETS_ETH_3RDPARTY
Initial value:
1= {
2 "MyEtherWallet": "https://www.myetherwallet.com",
3 "MyCrypto": "https://mycrypto.com",
4}