-
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
Polkadot Facade Feedback #11021
Comments
ReadNote: Any typing examples below will use JS primitive types, and are just examples of aggregated data as a result. These are there as base filler values, and will obviously be interpreted differently on chain depending on the rust types used. StakingStaking is probably one of the most obvious pallets that will benefit from Facade. It will definitely be tough to introduce historical support as well for state that was generated with pallet staking versions below v14, but I think if that is completely abstracted from the user it will introduce a really smooth experience. Generally getting all the information aggregated for staking can be difficult - plus shifting code around to ensure compatibility with changes becomes really hard in already established systems.
SigningGenerally, retrieving signing info takes multiple queries and some small calculations. Aggregating it into one would bring a little more organization to this.
BalanceszThe way data is shaped and interpreted around Balances has changed a lot over the years. It's always a challenge keeping up, and ensuring the data is correctly calculated and aggregated.
SessionGenerally, it's hard reading and or understanding the complex consensus pallets. Therefore, smaller facade functions that can aggregate the below could make a single source of truth for users easier to understand. This idea here can also be extended to other consensus pallets.
Proposals (Treasury and Council)Currently one needs to query both the council and treasury for proposals. It would be a bit easier to combine each in a facade function.
DemocracyThis is super useful for PJS Apps. I don't have much experience with the Preimage and Referendum logic, but it has come in handy for users, and are quite active pages.
|
We are working towards building better APIs to simplify the interacting with "Polkadot Network".
What do we mean here by Polkadot Network? Foremost Polkadot Relay Chain and System Chains (everything DOT related), and then other Parachains.
In a few months (and after gathering feedback via such issues), more details of this project will be shared. To give it a name for now, we are calling it "Polkadot Facade".
The aim of this issue is to learn about the instances where you had to interact with Polkadot Network (as defined above), and you found it difficult. This interaction can be in any form, but to help give you a mental model, I can categorize it as such:
A few notes:
Please feel free to reach out to me on Matrix (
@kianenigma:parity.io
) if need be.The text was updated successfully, but these errors were encountered: