Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Feature) Script to fill chain.json from a CSV file #2

Closed
igorbarinov opened this issue Dec 1, 2017 · 2 comments
Closed

(Feature) Script to fill chain.json from a CSV file #2

igorbarinov opened this issue Dec 1, 2017 · 2 comments

Comments

@igorbarinov
Copy link
Member

There is a list of accounts and balances structured as a CSV file with two columns.
First column is ethereum address and second column is value in tokens

0x2c57E1E3AD53F0b971422696c1470cEB84F83B1B,6888412
0xca9B0753E2Ea13d7bBE0e90516Bcf940A275eFA8,540773

In chain.json file there is an accounts section with structure like this

"accounts": {
 "0xDd0BB0e2a1594240fED0c2f2c17C1E9AB4F87126": {
      "balance": "252460800000000000000000000"
    }

Each address from the CSV file should be added to the account section of the chain.json file after all existing entries. Token values should be converted to Wei.

Tests:

@igorbarinov
Copy link
Member Author

The script should be provided in the master branch in script/ folder.

@igorbarinov
Copy link
Member Author

This issue is for Artem

varasev added a commit to varasev/poa-chain-spec that referenced this issue Oct 8, 2018
varasev added a commit to varasev/poa-chain-spec that referenced this issue Oct 8, 2018
phahulin added a commit that referenced this issue Oct 8, 2018
(Feature) Hard Fork #2 in Core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant