Commit Graph
1075 Commits
Author SHA1 Message Date
Travis CI 14b174473e [CI Skip] 0.40.17 2019-01-22 22:18:30 +00:00
Jaco Greeff 9373e5d6d7 Bump dev dependency (fix for doc generation) (#619) 2019-01-22 23:12:35 +01:00
Travis CI 643c7f14ff [CI Skip] 0.40.16 2019-01-22 20:38:03 +00:00
Stefanie Doll bc697d9449 [Docs] Go through and update existing ApiRx examples (#616)
* [Docs] Go through and update existing ApiRx examples

* [Docs] update existing ApiRx examples -> formatting

* [Docs] Fix name collision in package.json
2019-01-22 21:32:25 +01:00
Travis CI 2d6001197b [CI Skip] 0.40.15 2019-01-22 19:58:11 +00:00
Stefanie Doll a3d333303d [Docs] Fix descriptions and duplicate use of names in package.json files (#617) 2019-01-22 20:52:24 +01:00
Travis CI 69eed0c78d [CI Skip] 0.40.14 2019-01-22 16:50:14 +00:00
Jaco Greeff 9da875b49f Add api.query.<section>.<method>.key(...) => string (#615) 2019-01-22 17:44:15 +01:00
Travis CI 5f7983e72c [CI Skip] 0.40.13 2019-01-22 10:53:04 +00:00
Stefanie Doll 2433d8d1fc WIP: Sd 569 docs add and fix apirx examples (#600)
* Docs: Fixed keyring examples

* Docs: Added Rx examples

* [Docs] Added timeout to showcase unsubscribe method in ApiPromise

* [Docs] Added timeout to showcase unsubscribe method in ApiPromise

* [Docs] Added comments to read_storage example

* [Docs] Renamed "transfer_dots' to a more generic 'make_transfer' since it's not only DOT's

* [Docs] ApiRx examples for simple_connect, listen_to_blocks (incl. unsubscribe), listen_to_balance_change and read_storage

* [Docs] changed back keyring import syntax to require

* [Docs] Removed provider from read storage example

* [Docs] ApiRx "make transfer" example

* [Docs] ApiRx "system events" example

* [Docs] ApiRx "transfer events" example

* [Docs] Removed unused utility functions import

* [Docs] ApiRx 'upgrade chain' example

* [Docs] removed generated html files

* [Docs] Ficed wrong Readme of listen to blocks example

* [Docs added missing import]

* [Docs] Removed unsubscribe() example from 'listen to blocks'

* [Docs] Added Unsubscribe example for ApiPromise and ApiRx

* [Docs] Added links to summary

* [Docs] Removed duplicate info/comment from 04_unsubscribe

* [Docs] Fixed wording

* [Docs] Log actual transaction status in "make_transfer"

* [Docs] Changed author name

* [Docs] Log actual transaction status in "make_transfer"

* [Docs] changed headline of make_transfer example README's

* [Docs] changed status.value to status.asFinalised

* [Docs] Removed auto-generated html

* [Docs] Changed all occurances of status.value.toHex() to status.asFinalised.toHex()

* [Docs] Remove call to nonce observable from signAndSend examples

* [Docs] Use RxJs' zip() operator instead of 'await Promise.all()'

* [Docs] Remove call to nonce observable from 'upgrade_chain' example

* [Docs] Changed author

* [Docs] Changed wording of balance change example

* [Docs] smaller code-review fixes

* [Docs] Fix Rx read_storage example

* [Docs] use pairwise together with startWith in the Rx balance_change example

* [Docs] Wording & little less code

* [Docs] Added whitespace

* [Docs] Use switchMap instead fo subscribe inside subscribe syntax

* [Docs] Fixed import syntax for RxJs examples

* [Docs] removed provider

* [Docs] WIP read storage make-over

* [Docs] update Rx read_storage

* [Docs] Read storage example with piped switchMap()

* [Docs] Turn null into observable

* [Docs] Read storage example added 2nd version using tap()

* [Docs] fixed name typo

* [Docs] removed tap() example
2019-01-22 11:47:27 +01:00
Travis CI 187eae8c81 [CI Skip] 0.40.12 2019-01-21 12:44:09 +00:00
Jaco Greeff a1c64be28c ValidatorPref threshold -> Compact<u32> (#613) 2019-01-21 13:38:26 +01:00
Travis CI 3f53050ab1 [CI Skip] 0.40.11 2019-01-21 09:35:34 +00:00
Jaco Greeff cfd71db468 Allow EnumType to decode isHex (#611)
* Allow EnumType to decode isHex

* Consistently use string (not String/string mix)
2019-01-21 10:30:04 +01:00
Jaco Greeff 15721c16a6 Make U8aFixed always return the correct length (#605)
* Make U8aFixed always return the correct length

* compact isEmpty check

* Revert unsigned-as-long-string

* Skip extra object allocation

* Shortcut version encoding

* Move isEmpty to U8a (base)

* Slightly more optimal set (only when needed)
2019-01-21 10:29:32 +01:00
Jaco Greeff 0d29925406 ValidatorPrefs has Compact<Balance> (#604) 2019-01-21 10:29:09 +01:00
Travis CI 508e3bfa94 [CI Skip] 0.40.10 2019-01-20 23:42:50 +00:00
Xiliang Chen 97c6eca01f fix peerId mapping (#608) 2019-01-21 00:37:10 +01:00
Travis CI 5f372b2b5a [CI Skip] 0.40.9 2019-01-18 13:50:31 +00:00
Jaco Greeff db832f0207 Add derive.chain.{getHeader,subscribeNewHead} with author (#602)
* Add derive.chain.{getHeader,subscribeNewHead} with author

* tslint cast, ignore
2019-01-18 14:44:55 +01:00
Stefanie Doll 96e4f9b7b5 Add 'isSubscription' parameter so submittableExtrinsics onCall function calls (#601) 2019-01-18 14:44:16 +01:00
Travis CI bf40c427f2 [CI Skip] 0.40.8 2019-01-17 16:20:32 +00:00
Jaco Greeff f5b3d58884 Bump deps (#599) 2019-01-17 17:14:45 +01:00
Travis CI cba6c51c97 [CI Skip] 0.40.7 2019-01-17 14:29:03 +00:00
Jaco Greeff 91c9b903ef Bump 2019-01-17 15:21:45 +01:00
Travis CI 22b34299bc [CI Skip] 0.40.6 2019-01-17 14:17:34 +00:00
Jaco Greeff a3e421f665 Allow for balance/indices lookups (#596)
* Allow for balance/indices lookups

* Latest metadata

* Indices work

* Update json with actual decoded

* Update Type.ts

* Some tests updated

* Update final tests

* Remove .only from derive e2e (really skip it)
2019-01-17 15:11:50 +01:00
Travis CI e228fd40ab [CI Skip] 0.40.5 2019-01-17 09:00:53 +00:00
Jaco Greeff a69cff1c64 Add derive.staking.intentionsBalances (#595)
* Add derive.staking.intentionsBalances

* Skip e2e test

* ts-lint?

* Alignment with new signatures, remove all slices
2019-01-17 09:55:08 +01:00
Travis CI 668ec1dd13 [CI Skip] 0.40.4 2019-01-16 17:17:31 +00:00
Jaco Greeff aa8e6131eb Merge branch 'master' of github.com:polkadot-js/api 2019-01-16 18:11:58 +01:00
Jaco Greeff ab50e66e87 Trigger via new trigger file 2019-01-16 18:11:54 +01:00
Travis CI 6c4db5914a [CI Skip] 0.40.3 2019-01-16 17:02:18 +00:00
Jaco Greeff 35c6b0f1eb Some extra (convience) types (#594) 2019-01-16 17:56:27 +01:00
Travis CI 37ff4b2fa5 [CI Skip] 0.40.2 2019-01-16 16:29:03 +00:00
Amaury Martiny f548dd405b Fix signAndSend (#593)
* Fix signAndSend

* Remove useless arg
2019-01-16 17:23:26 +01:00
Travis CI b653ab4742 [CI Skip] 0.40.1 2019-01-16 14:48:42 +00: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
Travis CI 38d2d06772 [CI Skip] 0.39.12 2019-01-16 09:59:36 +00:00
Jaco Greeff dfac7a4a5f Simple README change, trigger bump 2019-01-16 10:53:49 +01:00
Travis CI ea520bcab7 [CI Skip] 0.39.11 2019-01-16 09:11:25 +00:00
Jaco Greeff 695e4f2cad AccountId toString() with isEmpty (#592)
* AccountId toString() with isEmpty

* isEmpty is real isEmpty check
2019-01-16 10:05:46 +01:00
Travis CI af3d4b25ed [CI Skip] 0.39.10 2019-01-15 10:00:15 +00:00
Jaco Greeff c14d51a31b Bump deps (#586) 2019-01-15 10:54:18 +01:00
Travis CI 43228135e7 [CI Skip] 0.39.9 2019-01-14 13:50:30 +00:00
Jaco Greeff 0576375a2b Add isEmpty to AccountId (#583) 2019-01-14 14:42:51 +01:00
Travis CI c50289d15a [CI Skip] 0.39.8 2019-01-14 06:55:39 +00:00
Xiliang Chen 9a4973237e Fix Compact decode hex value (#582)
* decode header is broken

* Ignore length for Compact isHex check
2019-01-14 07:49:59 +01:00
Travis CI 57fe1478ae [CI Skip] 0.39.7 2019-01-12 15:10:39 +00:00
Jaco Greeff 8f698d7964 As gettters, as{ContainedType} to EnumType (convenience) (#579)
* As as{ContainedType} to EnumType (convenience)

* Use as inside phase filter

* asFinalised in SubmittableExtrinsic

* Cleanup imports (lint)

* Cleanup imports (linting)
2019-01-12 16:05:21 +01:00