Implement storage json metadata (#670)

* `decl_storage!` exposes json metadata about the storage

The metadata can be accessed by calling `store_json_metadata()`.

* Hide internal macros in the documentation

* Include the function documentation in the store json metadata

* Adapt the storage declarations to use doc comments
This commit is contained in:
Bastian Köcher
2018-09-05 22:53:18 +02:00
committed by Gav Wood
parent 07a59621cc
commit b538733a24
12 changed files with 703 additions and 212 deletions
@@ -136,7 +136,7 @@ decl_storage! {
pub ExtrinsicIndex get(extrinsic_index): u32;
ExtrinsicData get(extrinsic_data): required map [ u32 => Vec<u8> ];
RandomSeed get(random_seed): required T::Hash;
// The current block number being processed. Set by `execute_block`.
/// The current block number being processed. Set by `execute_block`.
Number get(block_number): required T::BlockNumber;
ParentHash get(parent_hash): required T::Hash;
ExtrinsicsRoot get(extrinsics_root): required T::Hash;