1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

EGEM trezor support (#104)

This commit is contained in:
Derek May 2018-05-09 04:53:55 -07:00 committed by Pavol Rusnak
parent 039263589f
commit 093696d00f
2 changed files with 22 additions and 1 deletions

View File

@ -65,6 +65,19 @@
"t2_enabled": "yes",
"type": "coin"
},
"coin2:EGEM": {
"links": {
"Homepage": "https://egem.io",
"MyCrypto Wallet": "https://mycrypto.com",
"MyEtherWallet": "https://www.myetherwallet.com"
},
"marketcap_usd": 0,
"name": "EtherGem",
"shortcut": "EGEM",
"t1_enabled": "yes",
"t2_enabled": "yes",
"type": "coin"
},
"coin2:XLM": {
"links": {
"Homepage": "https://www.stellar.org"
@ -8144,4 +8157,4 @@
"updated_at": 1523468285,
"updated_at_readable": "Wed Apr 11 19:38:05 2018"
}
}
}

View File

@ -188,6 +188,14 @@ def update_ethereum(details):
set_default(out, 't1_enabled', 'yes')
set_default(out, 't2_enabled', 'yes')
update_marketcap(out, 'ubiq')
out = details['coins'].setdefault('coin2:EGEM', {})
out['type'] = 'coin'
set_default(out, 'shortcut', 'EGEM')
set_default(out, 'name', 'EtherGem')
set_default(out, 't1_enabled', 'yes')
set_default(out, 't2_enabled', 'yes')
update_marketcap(out, 'egem')
def update_mosaics(details):
r = requests.get('https://raw.githubusercontent.com/trezor/trezor-mcu/master/firmware/nem_mosaics.json')