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

NDSR-907: Migrate accounts CSV into TOML. #957

Merged
merged 3 commits into from
Feb 22, 2021

Conversation

mpapierski
Copy link
Collaborator

Ref: https://casperlabs.atlassian.net/browse/NDRS-907

This PR replaces accounts.csv into a structured TOML file in preparation to hold delegators data there as well.

New structure:

[[accounts]]
public_key = "01522ef6c89038019cb7af05c340623804392dd2bb1f4dab5e4a9c3ab752fc0179"
balance = "1000000000000000000000000000"
bonded_amount = "0"

Co-authored-by: Joe Sacher <321623+sacherjj@users.noreply.github.com>
Copy link
Contributor

@henrytill henrytill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

@EdHastingsCasperAssociation
Copy link
Collaborator

bors r+

bors bot added a commit that referenced this pull request Feb 19, 2021
957: NDSR-907: Migrate accounts CSV into TOML. r=EdHastingsCasperLabs a=mpapierski

Ref: https://casperlabs.atlassian.net/browse/NDRS-907

This PR replaces accounts.csv into a structured TOML file in preparation to hold delegators data there as well.

New structure:

```toml
[[accounts]]
public_key = "01522ef6c89038019cb7af05c340623804392dd2bb1f4dab5e4a9c3ab752fc0179"
balance = "1000000000000000000000000000"
bonded_amount = "0"
```

Co-authored-by: Michał Papierski <michal@casperlabs.io>
@bors
Copy link
Contributor

bors bot commented Feb 20, 2021

Build failed:

@sacherjj
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 22, 2021

Build succeeded:

@bors bors bot merged commit 43e17b2 into casper-network:master Feb 22, 2021
account = {
'public_key': key_hex,
'balance': f'{motes}',
'staked_amount': f'{weight}'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it "bonded amount" or "staked amount"? You need to be consistent.

bors bot added a commit that referenced this pull request Feb 22, 2021
965: NO-TICKET: Fix `nctl` scripts. r=goral09 a=goral09

#957 broke `nctl` scripts – it used `staked_amount` where `bonded_amount` was [expected](https://github.com/CasperLabs/casper-node/blob/master/node/src/types/chainspec/accounts_config.rs#L24).

Co-authored-by: Mateusz Górski <gorski.mateusz@protonmail.ch>
@piotr-dziubecki piotr-dziubecki added this to the Mainnet milestone Mar 4, 2021
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

Successfully merging this pull request may close these issues.

None yet

6 participants