Closed TarikGul closed 4 months ago
how would you get erasStakersClipped from api.at(hash) then? I haven't been able to use derive API with historical data
That being said, once all relay chain runtimes are updated to 1004000 it is safe to say we can remove the erasStakersClipped, and have support for only erasStakersPaged
This is referring only to the functionality in the derive
, not api.query
I changed the title to be more less confusing.
Keeping erasStakersClipped
as a future backwards compatible even though the migration is done with Polkadot. I just want to ensure any other chains who use this functionality don't have their api broken.
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.
Via https://github.com/polkadot-js/api/issues/5771
api.derive.staking._erasExposure
needed to change its internal functionality to accommodate the new changes. Currently the derive has forward and backwards compatibility via https://github.com/polkadot-js/api/pull/5815.That being said, once all relay chain runtimes are updated to 1004000 it is safe to say we can remove the
erasStakersClipped
, and have support for onlyerasStakersPaged
. This means we can also adjust the types to ensure there is a single source of truth for the_eraExposure
.This is a tracking issue to ensure we stay on top of it and will be added to the projects board tracking column.