From a33e8d2ccd08dce3064da831eef43dc2e87f306d Mon Sep 17 00:00:00 2001 From: slush Date: Wed, 11 Apr 2018 19:30:25 +0200 Subject: [PATCH] coins_details: Added missing ETC, UBQ. --- coins_details.json | 36 +++++++++++++++++++++++++++++++----- coins_details.py | 17 ++++++++++++++++- 2 files changed, 47 insertions(+), 6 deletions(-) diff --git a/coins_details.json b/coins_details.json index 953f5ef40d..1d12b570ce 100644 --- a/coins_details.json +++ b/coins_details.json @@ -1,5 +1,18 @@ { "coins": { + "coin2:ETC": { + "links": { + "Homepage": "https://ethereumclassic.github.io", + "MyCrypto Wallet": "https://mycrypto.com", + "MyEtherWallet": "https://www.myetherwallet.com" + }, + "marketcap_usd": 0, + "name": "Ethereum Classic", + "shortcut": "ETC", + "t1_enabled": "yes", + "t2_enabled": "yes", + "type": "coin" + }, "coin2:ETH": { "links": { "Homepage": "https://www.ethereum.org", @@ -13,6 +26,19 @@ "t2_enabled": "yes", "type": "coin" }, + "coin2:UBQ": { + "links": { + "Homepage": "https://ubiqsmart.com", + "MyCrypto Wallet": "https://mycrypto.com", + "MyEtherWallet": "https://www.myetherwallet.com" + }, + "marketcap_usd": 0, + "name": "Ubiq", + "shortcut": "UBQ", + "t1_enabled": "yes", + "t2_enabled": "yes", + "type": "coin" + }, "coin2:XLM": { "links": { "Homepage": "https://www.stellar.org" @@ -8086,10 +8112,10 @@ }, "info": { "marketcap_usd": 185205612765, - "t1_coins": 534, - "t2_coins": 534, + "t1_coins": 536, + "t2_coins": 536, "total_marketcap_usd": 270230834613, - "updated_at": 1523464863, - "updated_at_readable": "Wed Apr 11 18:41:03 2018" + "updated_at": 1523467778, + "updated_at_readable": "Wed Apr 11 19:29:38 2018" } -} +} \ No newline at end of file diff --git a/coins_details.py b/coins_details.py index 128a705d3a..852697ebc3 100755 --- a/coins_details.py +++ b/coins_details.py @@ -149,7 +149,6 @@ def update_erc20(details): check_unsupported(details, 'erc20:', supported) def update_ethereum(details): - # print('Updating Ethereum ETH') out = details['coins'].setdefault('coin2:ETH', {}) out['type'] = 'coin' set_default(out, 'shortcut', 'ETH') @@ -158,6 +157,22 @@ def update_ethereum(details): set_default(out, 't2_enabled', 'yes') update_marketcap(out, 'ethereum') + out = details['coins'].setdefault('coin2:ETC', {}) + out['type'] = 'coin' + set_default(out, 'shortcut', 'ETC') + set_default(out, 'name', 'Ethereum Classic') + set_default(out, 't1_enabled', 'yes') + set_default(out, 't2_enabled', 'yes') + update_marketcap(out, 'ethereum-classic') + + out = details['coins'].setdefault('coin2:UBQ', {}) + out['type'] = 'coin' + set_default(out, 'shortcut', 'UBQ') + set_default(out, 'name', 'Ubiq') + set_default(out, 't1_enabled', 'yes') + set_default(out, 't2_enabled', 'yes') + update_marketcap(out, 'ubiq') + def update_mosaics(details): r = requests.get('https://raw.githubusercontent.com/trezor/trezor-mcu/master/firmware/nem_mosaics.json') supported = []