Jaco Greeff
782bb8063c
Pull in observable API from UI ( #175 )
...
* Pull in observable api...
* Progress changing stuff...
* votingBalance
* Update resul types
* Expose toBn on Moment
* Rework... WIP
* ... More type cleanups
* Linting passes
* BN helpers for UInt
* Update api-observable
* Add api-observable package.json
* Allow Struct/Tuple to create from hex string
* Future-proof Length with bitLength (u64/u128 compant encoding PR out)
* Make Compact number encoding shareable
* Split Api into functional sections
* Cleanup types
* Additional per-use comments
* Remove params/primitives from README
* api-format -> api-codec
* Whitespace.
2018-10-01 11:22:15 +02:00
Jaco Greeff
b3a95b58ed
Cleanup jsonrpc, refer to api-codec ( #174 )
...
* Cleanup jsonrpc, refer to api-codec
* Move storagekey legacy into type-params (legacy)
* Remove misplaced debug log
* Remove header encoding, use api-codec/Header
* Remove legacy types
* Add metadat array (hack around json import)
* Move json metadata to ts
2018-09-28 18:35:39 +02:00
Jaco Greeff
74737b6367
API formatting for inputs & outputs ( #171 )
...
* API formatting for inputs & outputs
* Shorten naming
* getStorage (signle key) operational
* Remove api-format (not used in api anymore)
* Cleanup creation logic
* Cleanup linting
* Cleanup storage creation
* e2e state test
* Add code test
* Add isBare flag to toU8a
* Uppercase... wtill wrong though
* Update metadata json
* We are creating keys properly
* Cleanup tslint
* Type splitting,m handling Tuple & Vector
* StorageChangeSet results in-place
* Update deps
* Allow Tuples to have array constructors
* Test for uncloded vec/tuple
* Update deps
2018-09-28 15:42:23 +02:00
Jaco Greeff
5f8c52d1e1
Remove create/* folder for API, include priv methods ( #156 )
...
* Remove create/* folder for API, include priv methods
* Move create/* into Api-rx as private
* Modularize subsequent value caching
2018-09-17 10:33:57 +02:00
Chevdor
0981a30d84
Add documentation and examples ( #145 )
...
* Add documentation
* Justification u8a decoding and json encoding (#146 )
* Decode Justifications
* Json encoding for justifications
* Bump deps
* Allow extrinsic length encoding to operate on u8a[] (#148 )
* Fix config and move generated doc to a subfolder
* Cleanup extrinsic encoding (#150 )
* Cleanup extrinsic encoding
* Removed now-defunct type
* Add uncheckedLength encoding
* Add examples
* Ignore package-lock since we use yarn
* Cleanup examples
* Add gitbook config and some base files for the doc
* Do not make full doc mandatory for now
* Add contributing guide, polish doc and samples
* Update the deps of all samples and add yarn scripts
Fix and regenerate the doc
* Fix Contributing guide
2018-09-15 09:11:56 +02:00
Jaco Greeff
35b4f9a095
Api & RxApi now created via new ( #153 )
...
* Api & RxApi now created via new
* Bump version
2018-09-14 17:32:58 +02:00
Jaco Greeff
20927589b4
Handle observable errors ( #128 )
...
* Handle observable errors
* Catch subscription errors
* Handle Promise errors
2018-08-15 09:40:26 +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
Jaco Greeff
c5eff1d37a
Storage now returns null (not undefined) on non-existent ( #124 )
...
* Storage now returns null (not undefined on failure)
* Update deps
* Linting
2018-08-10 14:28:00 +02:00
Jaco Greeff
e2365bb00a
RxJS 6 ( #123 )
...
* RxJS 6
* Don't log observable promise.catch to console
* Extra space
2018-08-07 17:30:18 +02:00
Jaco Greeff
fe4c34defe
Classify Http & Ws providers ( #120 )
...
* Class-ify HttpProvider
* Class-ify WsProvider (tests still WIP)
* Rework tests
* rx-api usage
2018-08-07 16:59:40 +02:00
Jaco Greeff
ee01cc5287
Promise observables don't throw ( #122 )
2018-08-07 12:29:34 +02:00
Jaco Greeff
ae9fc0bd97
Update @polkadot/types ( #105 )
2018-06-26 11:11:43 +02:00
Jaco Greeff
432f9a73a9
TypeScript conversion ( #101 )
...
* Auto-conversion
* ES6 import/export
* WIP...
* WIP...
* And... we are TS typed, some good, some bad, some better, some worse
* Tests passing
2018-06-23 13:39:31 +02:00
Jaco Greeff
41acc4a5e7
Copyright project authors ( #98 )
...
* Copyright project authors
* Add contributors
2018-06-13 22:27:29 +02:00
Jaco Greeff
a0e77730a5
Update @polkadot/jsonrpc (system_*)
2018-05-28 16:14:42 +02:00
Jaco Greeff
9cef7feea1
Update dependencies ( #93 )
2018-05-24 16:41:41 +02:00
Jaco Greeff
861155f9ef
Use jsonrpc definitions from @polkadot/jsonrpc ( #91 )
...
* Drop api-jsonrpc in favour of @polkadot/jsonrpc
* Change converters
* Address issues after conversion
2018-05-18 10:08:08 +02:00
Jaco Greeff
91862244a4
Bump dependencies
2018-05-15 14:26:05 +02:00
Jaco Greeff
92c7c2cc1f
Move Rx API wrapper into api ( #87 )
...
* Move Rx API wrapper into api
* Bump
2018-05-07 12:01:09 +02:00