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

Introspectable Extrinsics, Events & Storage plus an RPC #535

Closed
4 tasks done
gavofyork opened this issue Aug 10, 2018 · 2 comments
Closed
4 tasks done

Introspectable Extrinsics, Events & Storage plus an RPC #535

gavofyork opened this issue Aug 10, 2018 · 2 comments
Assignees
Milestone

Comments

@gavofyork
Copy link
Member

gavofyork commented Aug 10, 2018

All information in decl_module! and decl_storage! should be replicated into a call that returns it in an easily accessible structured format (JSON/YAML/whatever).

  • Metadata creation for extrinsics;
  • Metadata creation for storage;
  • Metadata creation for events;
  • RPC call to return the metadata.
bkchr added a commit that referenced this issue Sep 4, 2018
The new function `json_metadata` returns the module declaration
as a json string.

Progress on: #535
gavofyork pushed a commit that referenced this issue Sep 4, 2018
The new function `json_metadata` returns the module declaration
as a json string.

Progress on: #535
bkchr added a commit that referenced this issue Sep 4, 2018
All doc comments (with `///`) are included in the description field of
the function.

Progress on #535
bkchr added a commit that referenced this issue Sep 4, 2018
All doc comments (with `///`) are included in the description field of
the function.

Progress on #535
bkchr added a commit that referenced this issue Sep 4, 2018
All doc comments (with `///`) are included in the description field of
the function.

Progress on #535
gavofyork pushed a commit that referenced this issue Sep 4, 2018
* Include function comments into modules `json_metadata`

All doc comments (with `///`) are included in the description field of
the function.

Progress on #535

* Replace spaces with tabs
@gavofyork gavofyork added this to the PoC-3 (GRANDPA) milestone Sep 5, 2018
@gavofyork gavofyork changed the title Introspectable Extrinsics & Storage Introspectable Extrinsics, Events & Storage Sep 5, 2018
@gavofyork gavofyork changed the title Introspectable Extrinsics, Events & Storage Introspectable Extrinsics, Events & Storage plus an RPC Sep 5, 2018
bkchr added a commit that referenced this issue Sep 6, 2018
bkchr added a commit that referenced this issue Sep 6, 2018
bkchr added a commit that referenced this issue Sep 6, 2018
bkchr added a commit that referenced this issue Sep 7, 2018
gavofyork pushed a commit that referenced this issue Sep 7, 2018
@gavofyork
Copy link
Member Author

gavofyork commented Sep 8, 2018

Note that events is incomplete:

r#"{ "name": "TestEvent", "items": { "#,
	r#""system": "system::Event", "#,
	r#""event_module": "event_module::Event<TestRuntime>", "#,
	r#""event_module2": "event_module2::Event<TestRuntime>" "#,
r#"} }"#

This is wrong. Like Call and Storage it is not enough to merely list the modules: the JSONRPC client has no idea what to do with system::Event or event_module::Event<TestRuntime>". It must detail the contents of these enums. Just like for Call, for this you'll need to encase the pub enum Origin declaration in a macro which generates the inner json.

@bkchr
Copy link
Member

bkchr commented Sep 11, 2018

As #710 is closed, we can mark this issue as closed/resolved?

liuchengxu added a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
* Introduce NetworkProps

Closes paritytech#535

* Move NetworkProps to xsystem module

* Nits

* Build wasm

* Nit

* No camelCase

* Nits
liuchengxu pushed a commit to autonomys/substrate that referenced this issue Jun 3, 2022
helin6 pushed a commit to boolnetwork/substrate that referenced this issue Jul 25, 2023
* Replace log with tracing for integration tests

* Replace log with tracing

* Use correct tracing lib

* Log extrinsic hash and signature

* Debug extrinsic params

* Replace env_logger

* Replace more env_logger init

* Replace new logs with tracing

* Fix final env_logger
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

2 participants