Commit Graph
16 Commits
Author SHA1 Message Date
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
Jaco Greeff 6bc06ad38f Add session.noteOffline extrinsic (#140)
* Add session.noteOffline extrinsic

* Remove extra debug logging
2018-08-22 10:04:22 +02:00
Jaco Greeff e891d4ec2b Decode poc-2 & poc-1 extrinsics from JSON (#138) 2018-08-17 10:11:33 +02:00
Jaco Greeff 4594989fc7 Decode JSON justifications for blocks (#137) 2018-08-16 21:44:03 +02:00
Jaco Greeff ed30f76207 Decode accountIds with prefixes (#136)
* Decode accountIds with prefixes

* Test for extrinsic decoding
2018-08-16 15:02:42 +02:00
Jaco Greeff bd2a1f54fc Track subscriptions per method (#134)
* Track subscriptions per method

* Update subscription tests

* Correct newHead un/subscribe methods
2018-08-15 16:20:45 +02:00
Jaco Greeff a369c8804a Add chain_getBlock & author_pendingExtrinsics (#132)
* Add chain_getBlock & author_pendingExtrinsics

* Remove sample

* TSLint
2018-08-15 15:34:16 +02:00
Jaco Greeff 8ce2b87e87 null/undefined checks for boolean 2018-08-14 14:07:28 +02:00
Jaco Greeff ef1c87872e Handle null/undefined param values properly (#127) 2018-08-13 11:17:23 +02:00
Jaco Greeff 8300cf787b Return all Accounts as ss58 2018-08-13 09:35:05 +02:00
Jaco Greeff b57b03450d null/undefined check for value decoding 2018-08-12 00:47:23 +02:00
Jaco Greeff 415bedcd3b accountId decoding 2018-08-12 00:40:12 +02:00
Jaco Greeff 285e56bf11 Don't convert null to Uint8Array([]) 2018-08-12 00:32:33 +02:00
Jaco Greeff a7dd6edcf6 Object values return undefined 2018-08-11 23:56:45 +02:00
Jaco Greeff 187c66f600 Add storage subscription API endpoints (#126)
* Add storage subscriptions

* StorageResult formatting

* Decoding WIP

* Storage subsciptions in place

* Allow null decodes, ref https://github.com/polkadot-js/apps/issues/215

* e2e tests for subscribeStorage

* Cache subscription results, return with changeset
2018-08-11 20:50:57 +02:00
Jaco Greeff ad968ec794 Import type-* from common repo (#125)
* Import type-* from common repo

* Update links

* Fix lint links (package index)
2018-08-11 11:14:20 +02:00