Commit Graph

9 Commits

Author SHA1 Message Date
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
Tomasz Drwięga f8fa4d1338 CI build & reformat. (#1)
* CI build & reformat.

* Fix no default features builds.

* Fix v12 build.
2020-12-10 13:23:33 +01:00
Tomasz Drwięga 6826ca8a00 Add frame-metadata from substrate. 2020-12-10 13:02:22 +01:00