2016-10-20 14:40:46 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import json
|
2016-11-09 13:52:43 +00:00
|
|
|
|
|
|
|
fields = [
|
|
|
|
'coin_name',
|
|
|
|
'coin_shortcut',
|
|
|
|
'address_type',
|
|
|
|
'maxfee_kb',
|
|
|
|
'address_type_p2sh',
|
|
|
|
'address_type_p2wpkh',
|
|
|
|
'address_type_p2wsh',
|
|
|
|
'signed_message_header',
|
|
|
|
]
|
2016-10-20 14:40:46 +00:00
|
|
|
|
2016-10-20 15:07:56 +00:00
|
|
|
coins = json.load(open('../../trezor-common/coins.json', 'r'))
|
2016-10-20 14:40:46 +00:00
|
|
|
|
|
|
|
print('_coins = [')
|
|
|
|
for c in coins:
|
2016-11-09 13:46:59 +00:00
|
|
|
print(' CoinType(')
|
2016-11-09 13:52:43 +00:00
|
|
|
for n in fields:
|
|
|
|
print(' %s=%s,' % (n, repr(c[n])))
|
2016-11-09 13:46:59 +00:00
|
|
|
print(' ),')
|
2016-10-20 14:40:46 +00:00
|
|
|
print(']\n')
|