Commit Graph
21 Commits
Author SHA1 Message Date
Jaco Greeff 70ff3c5dfc Use rpc-rx internally to api-promise (#539)
* Use rpc-rx internally to api-promise

* Don't swallow errors

* Remove unused imports
2019-01-07 15:44:15 +01:00
Jaco Greeff 6678d7255c Remove api-observable (#530)
* 2019

* Remove api-observable

* tuples (SomeLonelyType) -> SomeLonelyType

* Bump to 0.37.0
2019-01-04 16:18:44 +01:00
Jaco Greeff 50103dcfab WS error logging & stacks trimmed (#448)
* Cleanup error stacks

* Close error code & reason

* Re-add debug throw

* Remove stack

* Cleanup console checks (bullsh*t, wtf did I add these anyway)
2018-12-07 10:07:20 +01:00
Jaco Greeff 9092250acc Move types.d.ts -> types.ts (#421)
* Move types.d.ts -> types.ts

* Bump common deps
2018-11-29 12:13:28 +01:00
Jaco Greeff 2aa78f2cad createType makes new instance, StorageData tests (#417)
* createType makes new instance, StorageData tests

* Unused import
2018-11-28 12:04:38 +01:00
Jaco Greeff 4805f9cb36 Update LICENSE and README (#408)
* Update LICENSE and README

* Bump
2018-11-21 13:37:27 +01:00
Amaury Martiny 9548f977f5 Simplify Base (#403)
* Convert Base to a wrapper

* Remove isEmpty

* Fix bug with storage

* Fix lint

* Fix imports

* Protected raw

* Remove useless imports

* Remove test for Base

* Use unwrap on Option

* Storage unwrap

* Use isNone

* Add test for accessing values

* Remove comment

* toU8a always return Uint8Array
2018-11-19 11:38:47 +01:00
Jaco Greeff 49136de47b Catch errors while subscribing (#385) 2018-11-08 13:56:51 +01:00
Jaco Greeff cb9a48dc15 Allow construction of all types via U8a (#382) 2018-11-07 20:38:12 +01:00
Jaco Greeff e597f1b21f Allow rawStorage queries via Uint8Array keys (#378)
* Allow rawStorage queries via Uint8Array keys

* Data fallback
2018-11-07 13:39:12 +01:00
Jaco Greeff 55ac4626d5 Cleanup imports from @polkadot/util (#315)
* Cleanup imports from @polkadot/util

* Example imports

* Alphabetic imports
2018-10-18 13:30:04 +02:00
Amaury Martiny 106c59d341 Don't use fromJSON/fromU8a anywhere in code (#298)
* Don't use fromJSON/u8a anywhere

* Remove useless cast

* Nicer formatting
2018-10-16 12:35:40 +02:00
Jaco Greeff 78101e1292 Update subscription naming handling (#266) 2018-10-12 15:39:00 +02:00
Jaco Greeff f8d9f1c76e Align all RPC methods with Rust (#264)
* Align all RPC methods with Rust

* Adjust tests for extrinsicUpdate (e2e & working)

* Update transfer.spec.js

Auto-complete imports removed
2018-10-12 14:47:22 +02:00
Jaco Greeff 8fafedcf00 Extend examples for ApiPromise (#261)
* examples-rpc -> examples/rpc

* 01-simple-connect

* 02-chain-newHead

* Subscriptions only return value
2018-10-12 11:19:35 +02:00
Jaco Greeff 2b88a8f43c Expand API documentation (#259)
* Expand API documentation

* Cleanups

* Structuring

* Checks & cleanups
2018-10-11 20:56:42 +02:00
Amaury Martiny f5948fee52 Intelligent constructor (Part 2) (#252)
* Fix AccountId

* Fix AccountIndex

* Add Bool

* Fix Address

* Small fixes

* Fix Bytes

* Fix ExtrinsicSignature

* Small fixes

* Sorta fix Method

* Fix Extrinsic

* Fix method

* Fix Bytes and KeyValue

* Fix Moment

* Length-prefix the storage key

* Fix Bytes prefix

* Add comment
2018-10-11 13:39:27 +02:00
Jaco Greeff 27b2885722 Extend ApiRx from abstract Base (prepare for promise) (#243)
* Extend ApiRx from abstract Base (prepare for promise)

* Update Metadata parsing

* Update Base.ts

* Update types.d.ts

* Cleanup base

* Cleanup linting (renamed imports)

* PR comments

* Update decoded Metadata.json
2018-10-11 10:20:54 +02:00
Jaco Greeff 7180f8958e @polkadot/api/rx (#233)
* api-rx (new)

* Update SubmittableExtrinsic.ts

* Update types.d.ts

* Update index.ts

* Retrieve genesisHash

* extrinsics -> tx, state -> st

* Update index.ts

* Type cleanup

* Update index.ts

* Update index.ts

* Update index.ts

* Sign returns SubmittableExtrinsic

* Example cleanup

* Move to api-rx package

* Add connected/disconnected events

* Expand storage creation

* isReady/isConnected

* Add static create

* Cleanup docs

* Cleanups

* ReplaySubjects

* Basic tests

* Add runtimeVersion

* Test for version, meta & hash

* Package location

* Expand README

* 2 ways of init

* whenReady -> isReady

* api-rx -> api/rx

* Namings
2018-10-10 20:18:48 +02:00
Luke Schoen bba764bd28 feat: Fixes #210. Add Mermaid.js Gitbook plugin. Generate API flow diagram (#211)
* feat: Add Mermaid.js Gitbook plugin. Generate API flow diagram

* fix: Remove HTTP from diagram. Change text to funnel user to WS
2018-10-10 13:16:36 +02:00
Jaco Greeff 4344f33de8 First stage renames, rpc-{core,provider,rx} (#220)
* Docs renames (& removal for re-gen)

* Rename api, api-provider & api-rx

* Apoi -> Rpc, RxApi -> RpcRx (classes)

* Add .nodoc

* Bump version

* Link updates (summary)

* Cleanup deleted (master version)

* Deleted re-instated

* More... ;)

* Types...

* Revert .nodoc
2018-10-10 10:01:34 +02:00