-
Notifications
You must be signed in to change notification settings - Fork 975
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
PoS - refactor the crate's API #19
Comments
The approach to this will be to use This is because with the raw PoS data, to e.g. find a staking power of a validator or delegator, one must read from multiple storage values (slashes and reward products), so it's much better if that's handled on the ledger's side before returning back to client, instead of the client having to query the raw storage value multiple times. |
I'm switching this to high priority as it will help with code re-use (in e.g. our client, governance which needs to know voting power of validators and delegators for proposal tallying), other integrations wanting to query PoS state such as namada-interface. It will also help with PoS development for which we need to do many breaking changes to the storage layout and types, but can and should be hidden from PoS state consumers by such RPC interface. |
Consider refactoring the PoS crate's main API, which currently provides traits for the transaction and base ledger integrations.
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: