mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 19:08:12 +00:00
15 lines
335 B
Python
Executable File
15 lines
335 B
Python
Executable File
#!/usr/bin/env python3
|
|
import json
|
|
|
|
j = json.load(open('../../vendor/trezor-common/defs/ethereum/networks.json', 'r'))
|
|
|
|
print('NETWORKS = [')
|
|
|
|
for n in j:
|
|
print(' NetworkInfo(')
|
|
for f in ['chain_id', 'slip44', 'shortcut', 'name', 'rskip60']:
|
|
print(' %s=%s,' % (f, repr(n[f])))
|
|
print(' ),')
|
|
|
|
print(']')
|