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

Custom RPC to get info about rewards that are about to expire #1698

Closed
3 tasks done
shannonwells opened this issue Oct 5, 2023 · 1 comment · Fixed by #2088
Closed
3 tasks done

Custom RPC to get info about rewards that are about to expire #1698

shannonwells opened this issue Oct 5, 2023 · 1 comment · Fixed by #2088

Comments

@shannonwells
Copy link
Collaborator

shannonwells commented Oct 5, 2023

Story

As a user, I would like to know if I have unclaimed staking rewards and when they will expire.

Acceptance criteria

  • implement list_unclaimed_rewards fn in the Capacity pallet.
  • Unit and e2e Tests for same

Dependencies

  • Ability to calculate a reward for an individual staking account for a given Reward Era
@shannonwells shannonwells added the needs details Needs details added before anything else label Jun 12, 2024
@shannonwells shannonwells changed the title Custom RPC to get info about rewards that are about to expire (needs definition) Custom RPC to get info about rewards that are about to expire Jun 12, 2024
@shannonwells
Copy link
Collaborator Author

There is a function now called list_unclaimed_rewards (#1969) but no custom RPC for it or e2e tests.

@shannonwells shannonwells removed the needs details Needs details added before anything else label Jul 15, 2024
shannonwells added a commit that referenced this issue Jul 19, 2024
# Goal
The goal of this PR is to implement a capacity runtime api for the `list_unclaimed_rewards` endpoint.

Following the current recommendation of Parity, there is no custom RPC matching this runtime API endpoint; instead, use state.call to access the endpoint. For examples using either Observable or APIPromise, see the e2e tests.

Closes #1698
shannonwells added a commit that referenced this issue Jul 23, 2024
# Goal
The goal of this PR is to implement a capacity runtime api for the `list_unclaimed_rewards` endpoint.

Following the current recommendation of Parity, there is no custom RPC matching this runtime API endpoint; instead, use state.call to access the endpoint. For examples using either Observable or APIPromise, see the e2e tests.

Closes #1698
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants