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

Fix logging for (un)bond querying. #1239

Merged
merged 9 commits into from
Apr 13, 2023
Merged

Conversation

brentstone
Copy link
Contributor

@brentstone brentstone commented Mar 20, 2023

Fix the CLI output for different client commands related to PoS actions like bonding and unbonding.

Currently based on 0.14.2. Closes #1232, closes #1236, closes #1219.

Main changes so far:

  • Don't show bonds with 0 remaining token amount in query_bonds
  • After an unbond tx, only print to the client the amount just unbonded and the epoch from which it can be withdrawn (previously displayed all withdrawable token data)
  • When querying bond and unbond details, fix the bug wherein unbonds were not shown if one of the source or validator was not specified.

@brentstone brentstone force-pushed the brent/fix-bonding-query-logging branch 2 times, most recently from 4aed665 to 895f3c0 Compare March 20, 2023 21:22
@brentstone brentstone force-pushed the brent/fix-bonding-query-logging branch from 895f3c0 to 7d58ec7 Compare March 21, 2023 17:56
@brentstone brentstone force-pushed the brent/fix-bonding-query-logging branch 2 times, most recently from 476051c to 372ee4b Compare March 21, 2023 20:31
@tzemanovic tzemanovic marked this pull request as draft March 23, 2023 09:54
@brentstone brentstone force-pushed the brent/fix-bonding-query-logging branch 3 times, most recently from 04f5c54 to abd4bd4 Compare March 27, 2023 15:50
@brentstone brentstone marked this pull request as ready for review March 27, 2023 15:52
@brentstone
Copy link
Contributor Author

pls update wasm

@tzemanovic
Copy link
Member

@brentstone The changes look great, thanks for fixing all these! I just added 2 little commits - the first one can be auto-squashed if it looks ok

@brentstone brentstone force-pushed the brent/fix-bonding-query-logging branch from 9fa1345 to 3cafbcc Compare March 29, 2023 22:44
tzemanovic added a commit that referenced this pull request Mar 30, 2023
* brent/fix-bonding-query-logging:
  changelog: add #1239
  [ci] wasm checksums update
  client/rpc/query_bonds: refactor writelns
  test for the CLI output
  Fix CLI output of `submit_unbond`
  fix unbond query details when only one of source/validator is specified (and tests)
  submit_unbond: only print out the unbond tx amount and its withdrawable epoch
  fix `query_and_print_unbonds`
  query_bonds: don't show bond entries with 0 amount
tzemanovic added a commit that referenced this pull request Apr 12, 2023
* brent/fix-bonding-query-logging:
  changelog: add #1239
  [ci] wasm checksums update
  client/rpc/query_bonds: refactor writelns
  test for the CLI output
  Fix CLI output of `submit_unbond`
  fix unbond query details when only one of source/validator is specified (and tests)
  submit_unbond: only print out the unbond tx amount and its withdrawable epoch
  fix `query_and_print_unbonds`
  query_bonds: don't show bond entries with 0 amount
@tzemanovic tzemanovic mentioned this pull request Apr 12, 2023
@juped juped merged commit 0be5f1b into main Apr 13, 2023
@juped juped deleted the brent/fix-bonding-query-logging branch April 13, 2023 06:07
bengtlofgren pushed a commit that referenced this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants