forked from cerc-io/stack-orchestrator
Thomas E Lackey
01fd7e251a
* Remove fixed IPs and separate network for fixturenet. * Remove static port mapping. * Add helper script for checking your fxiturenet status * Sleep 1 second * Fix spacing * Fix for latest genesis generator. * run as archive node
18 lines
508 B
Python
18 lines
508 B
Python
from web3.auto import w3
|
|
import json
|
|
import ruamel.yaml as yaml
|
|
import sys
|
|
|
|
w3.eth.account.enable_unaudited_hdwallet_features()
|
|
|
|
testnet_config_path = "genesis-config.yaml"
|
|
if len(sys.argv) > 1:
|
|
testnet_config_path = sys.argv[1]
|
|
|
|
with open(testnet_config_path) as stream:
|
|
data = yaml.safe_load(stream)
|
|
|
|
for key, value in data['el_premine'].items():
|
|
acct = w3.eth.account.from_mnemonic(data['mnemonic'], account_path=key, passphrase='')
|
|
print("%s,%s,%s" % (key, acct.address, acct.key.hex()))
|