Commit Graph
13 Commits
Author SHA1 Message Date
Jaco Greeff 02aba14e7e Expose whenReady and extrinsics/storage (#199)
* Expose whenReady and extrinsics/storage

* Load genesisHash, expose

* Fix import

* whenReady -> Observable<boolean>

* Check isConnected before making call

* Fix import order
2018-10-04 11:16:45 +02:00
Jaco Greeff cce329b19a UncheckedEncoding (#192)
* Re add type-extrinsics

* Add descriptor

* Add uncheked mortal extrinsic

* Add e2e test

* Add versionInfo and signatureInfo

* Skip e2e test

* Small updates

* Additions for era & extra types

* Move types to types, fixup tests

* Small test updates

* Update test for full decoding
2018-10-04 08:37:32 +02:00
Jaco Greeff a4572e42c2 Update tests 2018-10-04 08:21:12 +02:00
Jaco Greeff 48e57f9a55 Rename api-codec -> types (#183)
* Rename api-codec -> types

* Cleanups with exports (as found with use)

* Docs to build for /types
2018-10-02 11:30:45 +02:00
Jaco Greeff 2f60ba0e1c Add method name & prefix to StorageFunction (#182)
* Add methods & prefix to StorageFunction

* Match method/section to exposed names

* Export method/section on extrinsic & jsonrpc

* PR comment prefix -> section
2018-10-02 11:10:17 +02:00
Amaury Martiny 8840f33d20 Rewrite type-extrinsics (#173)
* Cleanup jsonrpc, refer to api-codec

* Remove misplaced debug log

* Add metadat array (hack around json import)

* Move json metadata to ts

* Rewrite type-extrinsics

* Make tests pass in type-params

* Skip failing tests in type-primitives

* Use legacy type for legacy stuff

* Remove useless comments

* Remove type params (finally)

* Remove type-primitives (!)

* Remove legacy stuff

* Remove useless import

* Remove useless file

* Update header

* Remove useless files

* Fix test

* Typo

* Export default

* Fix test

* Add index counting

* Fix test index counting

* toNumber() on id

* Fix bug u8a
2018-10-01 10:43:05 +02:00
Jaco Greeff eb0356b6eb Cleanup extrinsic encoding (#150)
* Cleanup extrinsic encoding

* Removed now-defunct type

* Add uncheckedLength encoding
2018-09-12 12:14:50 +02:00
Jaco Greeff 99628f2dbd Allow extrinsic length encoding to operate on u8a[] (#148) 2018-09-12 10:25:31 +02:00
Jaco Greeff 0b61aded8f Missing staking methods (slashing, propsal missed, setBalance) (#143) 2018-09-04 09:57:24 +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 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 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