mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 11:28:14 +00:00
coins_details: Added missing ETC, UBQ.
This commit is contained in:
parent
9a9bca0310
commit
a33e8d2ccd
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user