mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 15:28:10 +00:00
24 lines
462 B
Python
Executable File
24 lines
462 B
Python
Executable File
#!/usr/bin/env python3
|
|
import json
|
|
|
|
fields = [
|
|
'coin_name',
|
|
'coin_shortcut',
|
|
'address_type',
|
|
'maxfee_kb',
|
|
'address_type_p2sh',
|
|
'address_type_p2wpkh',
|
|
'address_type_p2wsh',
|
|
'signed_message_header',
|
|
]
|
|
|
|
coins = json.load(open('../../trezor-common/coins.json', 'r'))
|
|
|
|
print('COINS = [')
|
|
for c in coins:
|
|
print(' CoinType(')
|
|
for n in fields:
|
|
print(' %s=%s,' % (n, repr(c[n])))
|
|
print(' ),')
|
|
print(']\n')
|