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

Show cooldown info on accounts. #316

Merged
merged 5 commits into from
Aug 27, 2024
Merged

Show cooldown info on accounts. #316

merged 5 commits into from
Aug 27, 2024

Conversation

td202
Copy link
Contributor

@td202 td202 commented Aug 21, 2024

Purpose

Closes #297

This supports cooldowns by updating how account information is shown to include cooldown status. Since it is permissible (from P7) to transition directly between baker and delegator, the required fields for configuring the baker and delegator are different in these cases (namely, you don't need to specify the stake and whether to restake).

Changes

  • Display available balance returned by the node.
  • Display the list of cooldowns on an account.
  • When becoming a delegator, check that the necessary fields are provided.
  • When becoming a validator, check that the necessary fields are provided.
  • Update tests.

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

@td202 td202 merged commit 6371a8a into main Aug 27, 2024
2 checks passed
@td202 td202 deleted the cooldown-account branch August 27, 2024 08:47
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.

Support for new protocol 7 API and functionality
2 participants