-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support Paged Reward Payouts #10004
Comments
Any updates to this? The changes are live on westend. |
polkadot-js/api#5813 fixes the erasStakersClipped issue |
Completed in the API via: polkadot-js/api#5815 for ErasStakersPaged |
Hi, There seems to be something wrong with the new When I query the keys of the storage item for the current era 6522 it gives 1000 keys. Two of those pages belong to And when I checked it against the active validator list, the storage item doesn't give the exposure for validator It looks like there's no storage item where I can get the exposure for Thanks in advance. |
@kukabi {
total: 6,999,998,586,259,297
own: 6,999,998,586,259,297
nominatorCount: 0
pageCount: 0
} This is why you do not see any entry for |
Not sure if you meant there is some issue with console.log((await api.query.staking.erasStakersOverview(6522, 'GUw3gm93T85i9Syb4hA3NotNMFgCB56p7osxi3hnoqforMj')))
console.log((await api.query.staking.erasStakersPaged.keys(6522, 'GUw3gm93T85i9Syb4hA3NotNMFgCB56p7osxi3hnoqforMj')).length)
console.log((await api.query.staking.erasStakersPaged(6522, 'GUw3gm93T85i9Syb4hA3NotNMFgCB56p7osxi3hnoqforMj', 0)).unwrap().others.length)
console.log((await api.query.staking.erasStakersPaged(6522, 'GUw3gm93T85i9Syb4hA3NotNMFgCB56p7osxi3hnoqforMj', 1)).unwrap().others.length) Output:
|
@Ank4n That probably was the issue, thanks. And no there's no issue with |
Completed via #10554 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
We will soon have paged rewards once paritytech/polkadot-sdk#1189 makes it to the runtime upgrade. Creating this ticket to add support for this to Polkadot-js app.
Similar to: polkadot-cloud/polkadot-staking-dashboard#1586
Changes are not reflected in rust docs yet but linking to the documentation and relevant structs in the code.
Changes:
3 new Storage items:
Following storage items are deprecated.
(Note: Once these changes are in a runtime, all the new era exposure will go to new storage items above while the following storage items will still keep historical era information (looking to make this info easy to get via a runtime api). In 84 eras after the release, all these storage items will be empty and can be removed from runtime code.)
Extrinsics to payout rewards:
payout_stakers: can be called multiple times for an era and validator stash, paying out one page of exposure at a time.
payout_stakers_by_page: can be used to payout rewards for a particular page of exposure.
Feel free to add any useful runtime api requests to issue#426 to help with this.
The text was updated successfully, but these errors were encountered: