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

Implement QueryBalanceDetails RPC method #86

Merged

Conversation

ZhmakAS
Copy link
Collaborator

@ZhmakAS ZhmakAS commented May 14, 2024

  • Resolves: #

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • All commits are signed
  • Tests included/updated or not needed
  • Documentation (manuals or wiki) has been updated or is not required

Copy link
Member

@davidatwhiletrue davidatwhiletrue left a comment

Choose a reason for hiding this comment

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

@ZhmakAS see my comment

@ZhmakAS ZhmakAS requested a review from davidatwhiletrue May 23, 2024 08:27
Copy link
Member

@koltsov-iv koltsov-iv left a comment

Choose a reason for hiding this comment

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

Please check my comment.

Copy link
Member

@davidatwhiletrue davidatwhiletrue left a comment

Choose a reason for hiding this comment

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

LGTM. Check my comment about GetBalance method.

rpc/client.go Outdated
// The request takes in the formatted representation of a purse URef as a parameter.
// If the param stateRootHash is nil, the client will make an additional RPC call to retrieve the latest stateRootHash.
GetAccountBalance(ctx context.Context, stateRootHash *string, purseURef string) (StateGetBalanceResult, error)
GetBalance(ctx context.Context, purseURef string, stateRootHash *string) (StateGetBalanceResult, error)
Copy link
Member

Choose a reason for hiding this comment

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

Just realized. Should we have GetLatestBalance and GetBalanceByStateRootHash methods?

@ZhmakAS ZhmakAS merged commit a1d231a into casper-2.0.0 Jul 3, 2024
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.

3 participants