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

adds unspent notes count to wallet balance rpc, cli #4998

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

hughy
Copy link
Contributor

@hughy hughy commented May 30, 2024

Summary

updates the available balance calculation to also count the number of unspent notes

returns the unspent note count as 'availableNoteCount' from getBalance and getBalances

updates rpc responses for wallet/getBalance and wallet/getBalances to return availableNoteCount

updates wallet:balance and wallet:balances to display available note count when --explain and --all flags are used

Testing Plan

image image

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

updates the available balance calculation to also count the number of unspent
notes

returns the unspent note count as 'availableNoteCount' from getBalance and
getBalances

updates rpc responses for wallet/getBalance and wallet/getBalances to return
availableNoteCount

updates wallet:balance and wallet:balances to display available note count when
--explain and --all flags are used
@hughy hughy requested a review from a team as a code owner May 30, 2024 21:54
@NullSoldier
Copy link
Contributor

NullSoldier commented Jun 6, 2024

This PR does require documentation change to add this to the RPC docs on our website or it won't show the new field in the example response.

@hughy
Copy link
Contributor Author

hughy commented Jun 6, 2024

This PR does require documentation change to add this to the RPC docs on our website or it won't show the new field in the example response.

Documentation changes here: iron-fish/website#705

@hughy hughy merged commit db88f4f into staging Jun 6, 2024
9 checks passed
@hughy hughy deleted the feat/hughy/ifl-2546/unspent-notes-count branch June 6, 2024 23:51
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.

2 participants