-
Notifications
You must be signed in to change notification settings - Fork 79
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
Additional RPC-Methods and Runtime-Apis #796
Conversation
I have not yet tested the rpc endpoints with a local chain. Thought, this would be the easiest I can close and be off help. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really useful @mustermeiszer!
Rpc endpoints seem to work. But apps should dedicatedly test this. |
The node currently panics when calling |
@offerijns addressed your feedback. I left the mapping of |
…chain into feature/rpc-extensions
Consumers of the API should always use an Id, never an index. Indexes may change underneat an API consumer at any block if the tranches change, while Ids are stable. This change enforces that correctness, and simplifies client code which no longer needs to wrap Ids in Locs
This is panicking for unknown reasons and can easily be computed on the client instead. We're giving up on it for now ¯\_(ツ)_/¯
* Remove unused `pool_value` from Runtime API * Remove `pool_` prefix, as it is redundant at the RPC level
48ecec2
to
4ae7f82
Compare
These aren't totally working and aren't needed for the first release
This reverts commit 7cb6dba.
* Revert "Additional RPC-Methods and Runtime-Apis (#796)" This reverts commit 7cb6dba. * wip: Update to v0.9.22 * wip * make rpc_ext_builder compile with todo * wip: Migrate api.rs to jsonrpsee * Migrate api.rs/AnchorApi to jsonrpsee Some new dark magic. * docker: bump polkadot images to v0.9.22 * Update to polkadot v0.9.23 * Update to polkadot-v0.9.24 * Bump docker images to 0.9.24 * fmt * Update rust toolchain to 1.62.0 / nightly-2022-05-09 * various fixes Co-authored-by: Miguel Hervas <miguel.hervas.lazaro@gmail.com>
Implements some needed runtime-apis and corresponding rpc-methods.
Closes #747
Closes #749
Closes #748