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

[META] [Genesis] genesis balances #1230

Closed
zivkovicmilos opened this issue Oct 11, 2023 · 1 comment · Fixed by #1276
Closed

[META] [Genesis] genesis balances #1230

zivkovicmilos opened this issue Oct 11, 2023 · 1 comment · Fixed by #1276
Assignees
Labels
📦 ⛰️ gno.land Issues or PRs gno.land package related 🌱 feature New update to Gno

Comments

@zivkovicmilos
Copy link
Member

zivkovicmilos commented Oct 11, 2023

Description

Task copied from the master issue: #1203

balances

The balances subcommand manages the genesis.json balances information.

Flags

  • --genesis-path - the path to the genesis.json

balances add

The balances add subcommand adds in the balance information from a specified source (see flags) to the genesis.json.

Flags (EITHER-OR)

  • --balance-sheet - the path to the balance file containing addresses in the format <address>=<amount>ugnot
  • --single - the direct balance addition in the format <address>=<amount>ugnot
  • --parse-export - the path to the tx-archive export containing a list of transactions. The command should parse the exported transactions and calculate balances of initialized accounts

balances remove

The balances remove subcommand removes the balance information of a specific account from the genesis.json.

Flags

  • --address - the address of the account whose balance information should be removed from genesis.json

PR against branch: feat/genesis

@zivkovicmilos zivkovicmilos added help wanted 🌱 feature New update to Gno 📦 ⛰️ gno.land Issues or PRs gno.land package related labels Oct 11, 2023
@zivkovicmilos zivkovicmilos moved this from Backlog to TODO in 🚪🔁 The Portal Loop Oct 11, 2023
@moul moul moved this to 🌟 Wanted for Launch in 🚀 The Launch [DEPRECATED] Oct 11, 2023
@zivkovicmilos zivkovicmilos self-assigned this Oct 20, 2023
zivkovicmilos added a commit that referenced this issue Oct 25, 2023
## Description

This PR introduces the `genesis balances` subcommand, as outlined in
#1230.

Closes #1230 

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [x] Provided any useful hints for running manual tests
- [x] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
@zivkovicmilos
Copy link
Member Author

Closed by #1276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 ⛰️ gno.land Issues or PRs gno.land package related 🌱 feature New update to Gno
Projects
Status: 🌟 Wanted for Launch
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant