Jaco Greeff
|
60d3d6396a
|
Expand api-codec types (#163)
* Add missing U* (number) types
* Missing number types & indexes
* Add H256, H512, Hash & Signature
* Add Bool, KeyValue & U8a (base)
* Fix LengthCompact encoder (with tests)
* AccountId
* AccountId toU8a
* Order imports
* Apply type aliasses, PropIndex -> ProposalIndex
* Cleanup mappers
* Add fromJSON to Type
* Spliut with Address, AccountId & AccountIndex
* Add some comments around the types
* instanceOf check
* Address can construct from AccountIndex or AccountId
* Remove Address.encode (unused)
* Allow instance of class in constructor
* Cleanup instanceof (String, Bool, H256, H512)
* AccountId/AccountIndex check around CodecU8a
* Fix unused imports
* Additional in-constructor instanceof constructions
* u8a allows hex, string or u8a inputs
* Metadata.fromJSON
* Add Header
* Allow CodecNumber to take hex/string inputs
* fromJSON uses decoder
* Remove LengthFixed (only compact used), add tests
* Some tests around Type
* Remove unused package
* PR comments
* Expand tests (and fix some bug - yay for tests)
* Rename /base -> /codec
|
2018-09-25 13:33:28 +02:00 |
|
Jaco Greeff
|
d9b05cf9f2
|
Decode runtime metadata (#162)
* WIP
* Some output, still borken...
* Events decoded correctly
* WIP, metadata decoded
* String cleanups
* Expand with generics
* Add getters
* Start docs...
* Additional docs
* Extra whitespace on Compact
* CodecLength FIXME
* Remove FIXME (impl. takes care)
* Swap in LengthCompact encoding
* Extend docs, play with auto-type for struct
* Trim strings, add Type for type-specific String
* More string-type hackery
* Don't allow Type re-encoding
* Remove struct experiment
* Cleanup Option
* Remove extra type defs from CodecStruct usage
* Expand Storage function with map (and type returns)
* Description around BaseCodec
* Cleanup linting, add Metadata test
* Move to api-codec
* Extract uniq types
* Uniq updates
* Unwrap, ungeneric
|
2018-09-24 13:51:20 +02:00 |
|