Commit Graph

11 Commits

Author SHA1 Message Date
David f0c7151a95 Document all v14, v13 and most of v8 items (#33)
* Document all v14, v13 and most of v8 items

* Clarify what a `StorageEntryModifier` is.
2021-12-13 09:00:21 +00:00
Andrew Plaza b5aceed422 Add metadata versions v8-v11 (#28)
* add v11 metadata

* add v10 metadata

* add v8/v9 metadata

* add version and legacy features

* add debug impl for legacy metadata

* any for features in RuntimeMetadata enum

* revert codec version change

* spaces

* add v8-v13 test metadata

* remove runtime version from meta bin name

* move test_data outside of src/

* add tests for v9-v14 metadata

* remove println

* Update frame-metadata/src/lib.rs

Co-authored-by: David <dvdplm@gmail.com>

* add docs per meta version upto 13

* cargo fmt

Co-authored-by: David <dvdplm@gmail.com>
2021-10-21 15:41:43 +02:00
Andrew Jones 385bbbd82a Copy v13 metadata from substrate, move new scale-info version to v14 (#12)
* Copy v13 metadata from substrate, move new scale-info version to v14

* Fmt

* Remove common lib types

* Extract decode different types

* Update CI to check v14

* Add Storage NMap to v14

* Bump version

* NMap keys is a Type

* Fix NMap IntoPortable

* Update frame-metadata/src/v13.rs

Co-authored-by: David <dvdplm@gmail.com>

* Remove All the metadata comments

* More clean up of v12 and v13

* review: fix comment

* Fix v13 Debug derives

Co-authored-by: David <dvdplm@gmail.com>
2021-05-18 10:33:59 +01:00
Andrew Jones f4b1727ec9 Refactor v13 metadata types (#11)
* Encapsulate call and event metadata types, remove OuterEventMetadata

* Rename some types, use pallet instead of module

* Remove some serde bounds

* Fmt

* Rename ErrorMetadata to PalletErrorMetadata

* Rename errors field to error and make optional

* Fix error

* Rename StorageMetadata with Pallet prefix for consistency, fix comment.
2021-05-10 12:00:19 +01:00
Andrew Jones a404c8f405 Remove FunctionArgumentMetadata::is_compact flag (#10) 2021-04-28 09:52:59 +01:00
Andrew Jones 7922e2351d Change v13 constants from an Option a plain Vec (#9)
It was a mistakenly translated from v12 as an Option
2021-04-28 09:52:07 +01:00
Andrew Jones 86bf2b374c Change StorageEntryType keys/values to types instead of strings (#8)
* Change StorageEntryType keys/values to types instead of strings

* Change storage to a single object not a Vec

* Fix IntoPortable impl
2021-04-13 09:56:34 +01:00
Andrew Jones be8092d7bf Update to latest scale-info & codec, remove string parameterization (#7)
* Update to latest scale-info & codec, remove string parameterization

* Remove redundant bound

* Remove more redundant S bounds

* Use substrate branch

* Use latest scale-info release
2021-02-11 09:38:06 +00:00
Andrew Jones 1aaf5ba7fa Extract duplicated RuntimeMetadataPrefixed struct to crate level (#5) 2021-01-18 11:09:58 +00:00
Andrew Jones aa716b2bd6 Complete v13 type definitions, support metadata decoding and serde (#4)
* Add String type param for Decode impl, fix serde serialization

* Remove Deserialize derives and fix FormString impl for no_std

* Add SignedExtensionMetadata type, name is possibly be different than type name

* Add Extrinsic type

* Fix SignedExtenstionMetadata compilation issues

* Fmt

* Use PhantomData for V0 to fix no features check

* Restore ModuleMetadata index field

* Add module constants metadata

* Fmt
2021-01-15 09:26:17 +00:00
Andrew Jones 1ac42f8153 Integrate scale-info for type generation (#2)
* scale-info infused metadata

* Include type registry in metadata

* Fix errors and fmt

* Fix errors

* Add scale-info std

* Use FormString trait

* Make TypeSpec fields public

* WIP v13

* Split v12 and v13 features

* Fmt

* Add v13 CI check

* Fix v12 errors

* Define RuntimeMetadata only once

* Add Extrinsic metadata

* Add errors to module metadata

* Add StorageMetadata to v13

* Allow both v12 and v13, add check
2021-01-06 14:06:14 +01:00