1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00

coins_details: Added EXP, RSK.

This commit is contained in:
slush 2018-04-11 19:39:04 +02:00
parent a33e8d2ccd
commit 9e80d32b5f
2 changed files with 46 additions and 4 deletions

View File

@ -26,6 +26,32 @@
"t2_enabled": "yes",
"type": "coin"
},
"coin2:EXP": {
"links": {
"Homepage": "https://www.expanse.tech",
"MyCrypto Wallet": "https://mycrypto.com",
"MyEtherWallet": "https://www.myetherwallet.com"
},
"marketcap_usd": 0,
"name": "Expanse",
"shortcut": "EXP",
"t1_enabled": "yes",
"t2_enabled": "yes",
"type": "coin"
},
"coin2:RSK": {
"links": {
"Homepage": "https://www.rsk.co",
"MyCrypto Wallet": "https://mycrypto.com",
"MyEtherWallet": "https://www.myetherwallet.com"
},
"marketcap_usd": 0,
"name": "Rootstock",
"shortcut": "RSK",
"t1_enabled": "yes",
"t2_enabled": "yes",
"type": "coin"
},
"coin2:UBQ": {
"links": {
"Homepage": "https://ubiqsmart.com",
@ -8112,10 +8138,10 @@
},
"info": {
"marketcap_usd": 185205612765,
"t1_coins": 536,
"t2_coins": 536,
"t1_coins": 538,
"t2_coins": 538,
"total_marketcap_usd": 270230834613,
"updated_at": 1523467778,
"updated_at_readable": "Wed Apr 11 19:29:38 2018"
"updated_at": 1523468285,
"updated_at_readable": "Wed Apr 11 19:38:05 2018"
}
}

View File

@ -165,6 +165,22 @@ def update_ethereum(details):
set_default(out, 't2_enabled', 'yes')
update_marketcap(out, 'ethereum-classic')
out = details['coins'].setdefault('coin2:RSK', {})
out['type'] = 'coin'
set_default(out, 'shortcut', 'RSK')
set_default(out, 'name', 'Rootstock')
set_default(out, 't1_enabled', 'yes')
set_default(out, 't2_enabled', 'yes')
update_marketcap(out, 'rootstock')
out = details['coins'].setdefault('coin2:EXP', {})
out['type'] = 'coin'
set_default(out, 'shortcut', 'EXP')
set_default(out, 'name', 'Expanse')
set_default(out, 't1_enabled', 'yes')
set_default(out, 't2_enabled', 'yes')
update_marketcap(out, 'expanse')
out = details['coins'].setdefault('coin2:UBQ', {})
out['type'] = 'coin'
set_default(out, 'shortcut', 'UBQ')