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

w3sper: Add an API to fetch stake information for the given account(s) #2943

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

ZER0
Copy link
Contributor

@ZER0 ZER0 commented Nov 12, 2024

  • Remove unnecessary async from BookEntry#balance
  • Add BookEntry#stakeInfo() method
  • Add Bookkeeper#stakeInfo() method
  • Add Contracts#stakeContract getter
  • Add private StakeAmount class in AccountSyncer
  • Add private StakeInfo class in AccountSyncer
  • Add AccountSyncer#stakes method
  • Change test Treasury to fetch and store stakes information
  • Add tests/stake_test.js

Resolves #2942

ascartabelli
ascartabelli previously approved these changes Nov 12, 2024
- Remove unnecessary `async` from `BookEntry#balance`
- Add `BookEntry#stakeInfo()` method
- Add `Bookkeeper#stakeInfo()` method
- Add `Contracts#stakeContract` getter
- Add private `StakeAmount` class in `AccountSyncer`
- Add private `StakeInfo` class in `AccountSyncer`
- Add `AccountSyncer#stakes` method
- Change test Treasury to fetch and store stakes information
- Add `tests/stake_test.js`

Resolves #2942
@ZER0 ZER0 merged commit a758ec3 into master Nov 12, 2024
12 checks passed
@ZER0 ZER0 deleted the w3sper-stake-info-2942 branch November 12, 2024 14:49
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.

w3sper: Add an API to fetch stake information for the given account(s)
2 participants