Jaco Greeff
|
773358195a
|
Round out metadata types (#169)
* Fake Origin for compatibility
* Add Gas
* Add Moment
* Cleanups
* NewAccountOutcome
* Permill & Perbill
* PrendingExtrinsics -> PendingExtrinsics
* Extrinsics & PendingExtrinsics
* Alias String -> Text (as found in jsonrpc, expose it)
* MetaDate -> Metadata (compat)
* Add StorageData, StorageKey & ChangeSet
* Cleanup comments
* Comment update
* Comment typo
* Add ParachainId
* Add Tuple type
* Tuple tests
* Clenaup Tuple generics
* Expand comment
* Expose keys/values on struct
* Array-like at -> get
* Cleanup & simplify EnumType
* Use setValue internally to fromU8a
* Add RuntimeVersion
* Expose RuntimeVersion
|
2018-09-27 12:42:20 +02:00 |
|
Jaco Greeff
|
dfd2e70931
|
Expand types & tests (#166)
* RegEx for alias
* Expand tests
* Cleanup naming
* Options & Struct tests
* Cleanup Length with tests
* Enum tests
* TODO... expand/question assumption
* Remove extra line
* Hashin tests (commented, encoding change)
* Export Type on Vector & Struct
* Test Type & Base
* Address FIXME & additional test
* Cleanup TODOs
* Add MisbehaviorReport
* Add index.ts combinators
* typo in export
* Comment typo
* Update index.ts
* Update MisbehaviorReport.ts
* Update MisbehaviorReport.spec.js
* Extract Bft, add SignedBlock (allow anonymous structures)
* <foo>Struct -> <foo>Value (for constructor args)
* AnyNumber/U8a types for inputs (PR comment)
* Comment struct generics
* Typo in comment
* Simplify StorageFunctionType construction
* Fix liniting (wtf?)
* Fix linting & tests, make more robust
|
2018-09-26 14:33:12 +02:00 |
|
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 |
|