Commit Graph
30 Commits
Author SHA1 Message Date
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 e1e46bd0e9 l.warn -> l.debug for formatter warning (#151)
* l.warn -> l.debug for formatter

* Debug with function

* Fix console spy
2018-09-12 14:25:13 +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 ec49c40599 Format hash outputs (#107) 2018-06-28 13:21:59 +02:00
Jaco Greeff f5a9c207d0 Add TSLint (#106)
* Add TSLint

* Update dependencies

* Update dependencies
2018-06-27 12:22:52 +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 c68bf8a689 Update from new @polkadot/params (#95) 2018-05-29 12:26:19 +02:00
Jaco Greeff 60f5718ab4 Encode/decode accountId (#94) 2018-05-27 15:26:33 +02:00
Jaco Greeff 45d89415bb Update @polkadot/jsonrpc (#92)
* Drop api-jsonrpc in favour of @polkadot/jsonrpc

* Change converters

* Address issues after conversion

* Update jsonrpc
2018-05-18 10:46:22 +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 eb156a2378 Revert "Calculate hash on pass-through" (#71)
* Revert "[CI Skip]  0.8.15"

This reverts commit c1b03eaf2c.

* Revert "Calculate hash on pass-through (#70)"

This reverts commit 7074036064.

* Update package.json

* Update package.json

* Update package.json

* yarn
2018-04-20 16:22:01 +02:00
Jaco Greeff 7074036064 Calculate hash on pass-through (#70) 2018-04-20 15:25:37 +02:00
Jaco Greeff 3c40c1de64 Allow optional params (#68)
* Allow optional params

* Don't double-up on method signature

* Cleanup formatters/util
2018-04-17 13:17:19 +02:00
Jaco Greeff d86cd86251 Encode mock responses as JSON (#66)
* Encode mock responses as JSON

* Update primitives
2018-04-16 18:07:21 +02:00
Jaco Greeff 462fa6e5c4 Expose WS subscribe/unsubscribe (#63)
* Expose WS subscribe

* Support unsubscribe

* Align unsubscribe with method

* Basic e2e sub test

* Cleanup parameter positions

* Small update

* Handle non-supplied in output formatter
2018-04-16 13:49:02 +02:00
Jaco Greeff 17cbec7d81 author_submitExtrinsic (#61)
* Package updates

* Add author_submitExtrinsic

* Fix types
2018-04-11 14:23:16 +02:00
Jaco Greeff 74f14160bd Add api.extra.* (test) methods (#55) 2018-03-15 16:33:21 +01:00
Jaco Greeff 21c14bd85c Add pubsub interface definition (#54)
* Add pubsub interface definition

* Functional JsonRpcCoder

* Functional HttpProvider

* Functional WsProvider

* Functional split completed

* Split actual method subscription

* Update flow

* Flatten no user-specified array in sub call
2018-03-15 12:59:49 +01:00
Jaco Greeff 671314f91d Expand license header (#48) 2018-01-15 21:48:22 +01:00
Jaco Greeff d80b737b1a 2018 (#47) 2018-01-04 08:46:12 +01:00
Jaco Greeff 4053064288 Update with flow lint (#46)
* Flow lint warning fixes

* Flow updates fro new flow-bin
2017-12-30 21:54:22 +01:00
Jaco Greeff c980d3e69b Prefer static checking (#43) 2017-12-18 20:08:16 +01:00
Jaco Greeff 2cde699476 Use primitives-json encode & decode (#41) 2017-12-14 22:02:07 +01:00
Jaco Greeff 5bbb46b3a0 Use formatters from primitives-json (#38) 2017-12-08 09:20:03 +01:00
Jaco Greeff 51ea2bf988 Use util/assert (#30) 2017-12-03 09:46:15 +01:00
Jaco Greeff 236534471c Update eslint from dev (#26) 2017-11-30 21:42:19 +01:00
Jaco Greeff 6d6ecb9ec2 Upgrade dependencies (#23) 2017-11-30 20:25:06 +01:00
Jaco Greeff e8ccc9aa79 Move to lerna repo (#19)
* Pull api-* packages into lerna repo

* Bootstrap with hoist

* Update jest alias config

* Add api-jsonrpc

* Pull in jsonrpc

* Update badges

* Don't hoist, use workspaces

* .eslintrc to root

* Cleanups, build from root

* Shorthand commands

* Update to @polkadot/dev 0.9.1

* Update description
2017-11-28 18:03:48 +01:00