Commit Graph
1414 Commits
Author SHA1 Message Date
Travis CI e75040daac [CI Skip] 0.42.19 2019-02-14 16:01:17 +00:00
Stefanie Doll f8f41b5ee3 Added custom types example with class constructor (#695) 2019-02-14 16:54:09 +01:00
Travis CI d777b2ea17 [CI Skip] 0.42.18 2019-02-13 20:18:48 +00:00
Jaco Greeff b88b6646af Additional export cleanups (root & types) (#694) 2019-02-13 21:12:49 +01:00
Travis CI 3592ae7308 [CI Skip] 0.42.17 2019-02-13 15:06:56 +00:00
Jaco Greeff f95763906e Add codec exports to types index (#689)
* Add codec exports to types index

* Use actual index exports (internally)

* Merge {AccountId, Balance, Moment}Of into parent classes
2019-02-13 16:00:59 +01:00
Travis CI 271529766d [CI Skip] 0.42.16 2019-02-13 14:58:44 +00:00
Stefanie Doll 9bfaf726fe [Docs] Add info on how to add custom types to API (#672)
* Add info on how to add custom types to API

* Fixed typo instanmce -> instance

* Use <ApiOptions> instead of <WsProvider>

* fixed wording `wsProvider` -> `provider`
2019-02-13 15:52:36 +01:00
Travis CI 79df0047c7 [CI Skip] 0.42.15 2019-02-13 09:09:26 +00:00
Amaury Martiny be17bf51c6 Increase time periods for more consistent tests (#690) 2019-02-13 10:03:35 +01:00
Jaco Greeff b754ea6ffb Expose #687 on index (#688) 2019-02-13 10:02:49 +01:00
Travis CI 1c37662c7b [CI Skip] 0.42.14 2019-02-12 16:46:45 +00:00
Jaco Greeff 0ef15dc547 Add {AccountId, Balance, Moment, Seed}Of (#687) 2019-02-12 17:40:40 +01:00
Travis CI 5e6e65f1f9 [CI Skip] 0.42.13 2019-02-12 13:54:17 +00:00
Jaco Greeff 7792663e9a Export WsProvider from api (single-require use) (#685) 2019-02-12 14:48:15 +01:00
Travis CI 5905c7b6ac [CI Skip] 0.42.12 2019-02-12 10:34:54 +00:00
Jaco Greeff acc318761e Fix encodedLength for non-ascii strings (#684) 2019-02-12 11:28:52 +01:00
Travis CI 500f596587 [CI Skip] 0.42.11 2019-02-11 14:52:07 +00:00
Jaco Greeff dbd37da72f Allow enum definitions via JSON (#681)
* Allow enum definitions via JSON

* Return only type of type & value via toString()

* Remove displaced console.error

* Fix toString tests
2019-02-11 15:46:10 +01:00
Travis CI e6c60bdc10 [CI Skip] 0.42.10 2019-02-11 11:58:23 +00:00
Jaco Greeff 96624a6d66 Allow boolean decoding for Vote constructor (#677) 2019-02-11 12:52:15 +01:00
Jaco Greeff 092129c28e Add Signer with status updates (#675)
* Add Signer with status updates

* Remove useless (now) updateId check

* Don't send updates for non-owned extrinsics

* opt -> options
2019-02-11 12:51:41 +01:00
Travis CI 2ce05019ce [CI Skip] 0.42.9 2019-02-11 10:42:32 +00:00
Jaco Greeff d16671c469 decorated.hash: getStorageSize -> getStorageHash (#671) 2019-02-11 11:36:51 +01:00
Travis CI 1502298659 [CI Skip] 0.42.8 2019-02-09 06:09:12 +00:00
Jaco Greeff 6d759cd234 Add api.registerTypes (#670) 2019-02-09 08:02:47 +02:00
Travis CI 5f4160ab5b [CI Skip] 0.42.7 2019-02-09 06:00:51 +00:00
Jaco Greeff b40d7a301e Return ReferendumIndex along with info (derive) (#669)
* Return ReferendumIndex along with info (derive)

* Rename index

* Doc rename
2019-02-09 07:54:50 +02:00
Travis CI b847a2183d [CI Skip] 0.42.6 2019-02-09 05:40:45 +00:00
Jaco Greeff b960580c4d Alias state_getRuntimeVersion (#663) 2019-02-09 07:35:05 +02:00
Travis CI fd4cc604dd [CI Skip] 0.42.5 2019-02-09 05:21:50 +00:00
Ian He c1672e8eee add Signer to api (#662)
* add Signer to api

* change as commented
2019-02-09 07:15:54 +02:00
Travis CI 66cf11d2ef [CI Skip] 0.42.4 2019-02-08 14:50:17 +00:00
Jaco Greeff b2f06188d9 Add Api{Promise,Rx}.clone() - new instance, new transport (#668)
* Add Api{Promise,Rx}.clone() - new instance, new transport

* If source is not ready, load from chain
2019-02-08 16:43:58 +02:00
Travis CI 6f9e47db21 [CI Skip] 0.42.3 2019-02-08 14:38:20 +00:00
Jaco Greeff a2f863c56b Expose api.disconnect() (#664)
* Expose api.disconnect()

* Noop for non-WS disconnects
2019-02-08 16:32:38 +02:00
Travis CI b122f0cde0 [CI Skip] 0.42.2 2019-01-31 19:53:50 +00:00
Jaco Greeff ea7ecec7a3 Fix derive not returning (needsSubscription issues) (#658)
Fix derive not subscribing (needsSubscription issues)
2019-01-31 20:46:56 +01:00
Travis CI 76673a4d25 [CI Skip] 0.42.1 2019-01-31 17:07:28 +00:00
Jaco Greeff c1a6f0230c Cater for signature over hash (with version checks) (#655)
* Cater for signature over hash (with version checks)

* Allow Submittable signAndSend

* isUndefined for nonce check

* .sign with backwards compat

* e2e tests started

* Work around optional callback for Promise

* Commit actual e2e test

* Promise allows for submitExtrinsic

* e2e tests are passing

* Bump version, update CHANGELOG
2019-01-31 18:01:14 +01:00
Travis CI 8da2b1c451 [CI Skip] 0.41.14 2019-01-31 16:24:47 +00:00
Jaco Greeff 8341538556 Work around optional callback for Promise (#656)
* Work around optional callback for Promise

* Commit actual e2e test

* Promise allows for submitExtrinsic
2019-01-31 17:16:28 +01:00
Travis CI 730d890dcb [CI Skip] 0.41.13 2019-01-31 13:22:32 +00:00
Jaco Greeff 661cb3c453 Codec types (call definitions in API) (#650)
* Codec types (call definitions)

* Pass Codec & Subscription generic types

* WIP typing

* Typing seems ok

* Linting

* Queryable storage retuns Hash & U64 for .hash and .size

* Better typing for SubmittableExtrinsic

* Indentation.

* Update with needsCallback

* Update SubmittableExtrinsic.ts
2019-01-31 14:15:59 +01:00
Travis CI 4c563a7ca0 [CI Skip] 0.41.12 2019-01-31 12:38:13 +00:00
Jaco Greeff 8d7ca09366 Comment around padding of seeds (#653) 2019-01-31 13:32:21 +01:00
Travis CI 89952a16ad [CI Skip] 0.41.11 2019-01-30 14:47:27 +00:00
Jaco Greeff aea223f024 Updates for V1 formatting changes (#651)
* Updates for V1 formatting changes

* Rework V1 with the new simplified structures

* Parsing parses

* asV0 in-place, rework class splits

* e2e testing completed

* Update args, docs & fallback (shorter, non-collision naming)

* More v0-like event output
2019-01-30 15:41:49 +01:00
Jaco Greeff 82531493da Option unwrapOr helper (#652)
* Option unwrapOrNull helper

* unwrapOrNull -> unwrapOr
2019-01-30 15:40:59 +01:00
Travis CI 9e76cdd147 [CI Skip] 0.41.10 2019-01-29 18:53:13 +00:00