Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add metadata description RPC #8512

Open
apopiak opened this issue Apr 1, 2021 · 6 comments
Open

Add metadata description RPC #8512

apopiak opened this issue Apr 1, 2021 · 6 comments

Comments

@apopiak
Copy link
Contributor

apopiak commented Apr 1, 2021

The runtime metadata is currently only returned as a SCALE encoded blob that needs external descriptions to be decoded.
Let's add an RPC endpoint that returns some useful description of the metadata (even if it is created manually short to medium term).

related to #917

@bkchr
Copy link
Member

bkchr commented Apr 2, 2021

What is useful description of the Metadata?

@shawntabrizi
Copy link
Member

shawntabrizi commented Apr 2, 2021

What is useful description of the Metadata?

Probably a JSON blob in whatever format Polkadot JS needs to connect to the node successfully.

Imagine a JSON file which is compiled into the Wasm and returned when calling this RPC endpoint.

To keep your Polkadot JS UI running, you simply keep this JSON up to date as you upgrade your Wasm.

A manual and temporary solution, but should work.

@bkchr
Copy link
Member

bkchr commented Apr 2, 2021

You mean the types.json?

@shawntabrizi
Copy link
Member

shawntabrizi commented Apr 2, 2021

Yup. We basically want to bake it into the node, or at least give the option to. At least until the real solution is complete to support types in the metadata by autogeneration.

Just one idea.

@bkchr
Copy link
Member

bkchr commented Apr 2, 2021

We could introduce some new metadata version that adds support for adding arbitrary data?

@xlc
Copy link
Contributor

xlc commented Apr 2, 2021

We could introduce some new metadata version that adds support for adding arbitrary data?

#3686

@stale stale bot added the A5-stale Pull request did not receive any updates in a long time. No review needed at this stage. Close it. label Jul 7, 2021
@paritytech paritytech deleted a comment from stale bot Jul 12, 2021
@stale stale bot removed the A5-stale Pull request did not receive any updates in a long time. No review needed at this stage. Close it. label Jul 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants