-
Notifications
You must be signed in to change notification settings - Fork 363
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
Underlying storage for exposures has changed #5771
Comments
I'll be working on this soon and getting this supported/fixed. Going to ensure there is compatibility for previous runtime versions as well so this doesn't act as a breaking change for some folks. |
So i currently just made sure there is backwards and forward compatibility with Couple things:
This already exists, the user can just use
With the current implementation this is not possible. Since On another note, #5807 did augment the substrate types accordingly so the new storage calls are statically there for users. |
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. |
I'm submitting a ...
What is the current behavior and expected behavior?
The
api.derive.staking._era_exposures(era)
under the hood callsErasStakersClipped
. This storage item would not be used anymore with the paged rewards changes (PR link, forum link) and would be replaced with a new storageErasStakersPaged
which is a nmap of (Era, Validator, Page).What is the motivation for changing the behavior?
When runtime upgrades to v1.4, this api would start breaking.
Suggest a motivation for the request or ideas how to implement the
addition or change
There can be two apis, one to query how many pages of exposure exists which can be looked up by reading the storage item
ErasStakersOverview
. The current_era_exposures
should then take a page index to read the exposure.The text was updated successfully, but these errors were encountered: