Commit Graph
1064 Commits
Author SHA1 Message Date
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
Travis CI fa650277fe [CI Skip] 0.39.6 2019-01-12 08:27:48 +00:00
Jaco Greeff 1f401d6791 Add system_peers RPC endpoint (#577)
* Add system_peers RPC endpoint

* Don't double-up on error logs
2019-01-12 09:22:27 +01:00
Travis CI 9e38a25e90 [CI Skip] 0.39.5 2019-01-11 22:43:10 +00:00
Jaco Greeff 7393710951 Update README.md 2019-01-11 23:37:52 +01:00
Travis CI 7c542503c9 [CI Skip] 0.39.4 2019-01-11 22:27:57 +00:00
Jaco Greeff 13e2aa0b44 ApiPromise combinator return PromiseSubscription (#576)
* ApiPromise combinator return PromiseSubscription

* PromiseSubscription can return anything
2019-01-11 23:22:27 +01:00
Travis CI 64ec9e61f3 [CI Skip] 0.39.3 2019-01-11 16:33:54 +00:00
Jaco Greeff 2751491f6a Fix resolve before subscription is active (#575) 2019-01-11 17:28:24 +01:00
Travis CI 3305fea41c [CI Skip] 0.39.2 2019-01-11 16:05:28 +00:00
Jaco Greeff a2f176dca7 Construct Bytes via Array<number> (no prefix) (#573)
* Construct Bytes via Array<number> (no prefix)

* Remove unused imports

* Allow extrinsics with/without prefix
2019-01-11 16:59:34 +01:00
Travis CI 532dbe637a [CI Skip] 0.39.1 2019-01-11 15:51:22 +00:00