Commit Graph
10 Commits
Author SHA1 Message Date
Jaco Greeff fd93fbc4a6 Support new versioned metadata format (#632)
* Start something...

* Parsing via proxy (everything still all-ok)

* Imp[ort order (minor)

* WIP expanding the structure

* Adjust V1 structure

* Parsing seems to do the trick...

* Add CodeHash and Schedule types

* //v0/ -> /v0/

* Update Extrinsic.ts

* Updated with compact outerDispatch, non-throw construction

* v1 to V0 conversion

* Bubble non-magic errors in constructor

* Update e2e after testing them

* Bump version with CHANGELOG  (potentially breaking change)
2019-01-26 16:27:00 +01:00
Amaury Martiny d07ed8ac38 Refactor api-promise/rx (#566)
* Use a generic abstract OnCall

* Add OnCall for Promise

* First run at fixing extrinsics

* Fix types

* Make submittable extrinsic work

* Move file

* Make derive work

* Fix types

* Only call metadata once

* Make tests pass

* Put event emitter in apirx

* Fix small bugs

* Fix tests

* Fix bug decorateStorage

* Make tests pass for tx

* Move rpc base to apirx

* Fix lint

* Fix small bugs

* Fix bug with isSubscription

* Fix codeclimate

* Revert

* Add tslint disable line

* Fix lint

* Skip e2e

* Typo

* Lint

* Re-add combinator back

* Add ._rx in Base

* Make extrinsics work

* Update derivex

* Fix bug lint

* Fix circular dep

* Fix bug e2e

* Remove useless check

* Add description comment

* Clean stuff

* Move assert to Base

* Bump version, update CHANGELOG

* Make _rx private

* Private emit
2019-01-16 15:42:59 +01:00
Jaco Greeff 54eada5d87 Allow handling of RPC errors, promise resolve/reject (#572)
* Allow handling of RPC errors, promise resolve/reject

* Revert doing too much, focus on api-promise only

* tap instead of map

* Bump version, CHANGELOG
2019-01-11 16:46:01 +01:00
Jaco Greeff 2e474d7b05 Compact<Index> minor bump, update CHANGELOG (#551)
* Comapct<Index> minor bump, updatANGELOG

* Update CHANGELOG.md
2019-01-08 15:05:10 +01:00
Jaco Greeff b5d49ebbb2 Swap order of combinator inputs, fn + args (as in storage) (#537)
* Swap order of combinator inputs, fn + args (as in storage)

* Update api exposed combination

* Update CHANGELOG usage (small doc fix)
2019-01-07 10:14:14 +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 3be56ad56c Subscriptions return unsubscribe/dispose function (#527)
* Combinator return unsubscribe/dispose function

* Submittable extrinsics return UnsubFunction

* RPC methods with unsub callback returns

* Update changelog, bump version

* CHANGELOG typo

* Fix combinator unsubscribes

* Be explicit in returns for UnsubFunction (combineLatest)
2019-01-03 16:31:09 +01:00
Jaco Greeff 5f5ce7a098 Bump package (should have been done with metadata, breaking) (#507) 2018-12-20 22:58:02 +01:00
Jaco Greeff 33a4280028 Expand ExtrinsicStatus to mirror Rust types (#494)
* Expand ExtrinsicStatus to mirror Rust types

* Remove .only

* Update test expectation

* typo

* Invalid extends Null

* Remove debug log
2018-12-19 13:39:20 +01:00
Jaco Greeff 5fa087e7c0 Return { status: ExtrinsicStatus } from tx send subscription (#486)
* Return { status: ExtrinsicStatus } from tx send subscription

* Added changelog

* Fix typo

* Bump version

* Bump deps
2018-12-18 11:13:32 +01:00