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

Unify staking related runtime APIs #428

Open
gpestana opened this issue Feb 15, 2023 · 2 comments
Open

Unify staking related runtime APIs #428

gpestana opened this issue Feb 15, 2023 · 2 comments

Comments

@gpestana
Copy link
Contributor

Currently, there are a few staking related runtime APIs exposed by the clients (e.g. paritytech/substrate#13119). However, the current runtime APIs are i) not exhaustive and ii) not general/unified.

We should design and implement a set of runtime APIs to query staking related data that covers the needs of wallets and other UIs and that are generic enough to decouple most of the future underlying logic/storage changes from UIs to improve interface stability in the future.

@kianenigma
Copy link
Contributor

A great practice here would be to make sure whatever we implement is compatible with https://docs.moonbeam.network/builders/pallets-precompiles/pallets/staking/

@gpestana
Copy link
Contributor Author

We should consider designing and implementing View Functions for staking when they are available, perhaps it is even more relevant and useful than unifying the staking runtime APIs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📕 Backlog
Development

No branches or pull requests

3 participants