Commit Graph
1134 Commits
Author SHA1 Message Date
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
Jaco Greeff 4fa8ee085c Remove the nonce when using signAndSend (promise examples) (#648)
* Remove the nonce when using signAndSend

* Update descriptions
2019-01-29 19:47:25 +01:00
Travis CI 273f1260e4 [CI Skip] 0.41.9 2019-01-29 16:15:42 +00:00
Jaco Greeff 383573658b Auto-convert large numbers to hex, smaller as number (#647)
* Auto-convert large numbers to hex, smaller as number

* Update tests
2019-01-29 17:09:54 +01:00
Travis CI 2edd69c935 [CI Skip] 0.41.8 2019-01-28 17:52:36 +00:00
Amaury Martiny e811d737f2 Use memoizee instead of custom cache (#643)
* First run at using memoizee

* Make cached test pass

* Fix replay test

* Update e2e test

* Fix types

* Fix lint

* Simplify types

* Add comment
2019-01-28 18:46:46 +01:00
Travis CI eccaa75192 [CI Skip] 0.41.7 2019-01-28 17:08:02 +00:00
Jaco Greeff ebcb7954cc EnumType toJSON to include type & value (#645)
* EnumType toJSON to include type & value

* Update metadata for new EnumType formatting

* PlainType & MapType
2019-01-28 18:01:25 +01:00
Travis CI c4fe565fbb [CI Skip] 0.41.6 2019-01-28 15:56:34 +00:00
Jaco Greeff b34277aeca Filter events based on order and actual number of events (#644) 2019-01-28 16:50:57 +01:00
Travis CI 58debde7e9 [CI Skip] 0.41.5 2019-01-28 12:17:56 +00:00
Jaco Greeff e798df949b Ensure large >U32 is encoded as hex (#641)
* Ensure large >U32 is enocoded as hex

* Update U64 test compares to hex

* Update subscribe.spec.ts
2019-01-28 13:11:44 +01:00
Travis CI 14a34284d8 [CI Skip] 0.41.4 2019-01-28 11:20:11 +00:00
Jaco Greeff 5898caa71e Compact unwrap (returns raw UInt/Moment) (#636) 2019-01-28 12:14:27 +01:00
Travis CI e4de84b225 [CI Skip] 0.41.3 2019-01-28 10:28:07 +00:00
Jaco Greeff bfe5661d8f derive.balances.* handle Address & AccountIndex everywhere (#639) 2019-01-28 11:22:11 +01:00
Travis CI 22897fa3c2 [CI Skip] 0.41.2 2019-01-26 15:50:58 +00:00
Jaco Greeff 3ced943f36 derive.chain.* allows for non-available session (#638)
* derive.chain.* allows for non-available session

* Cleanup typing

* Slightly more robust validators init
2019-01-26 16:45:11 +01:00
Travis CI d482c3a917 [CI Skip] 0.41.1 2019-01-26 15:32:47 +00:00
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
Travis CI f32404b1e4 [CI Skip] 0.40.26 2019-01-25 10:40:13 +00:00
Jaco Greeff 98ea1f90a2 Add query.<sec>.<met>.{size, hash}(arg? any) (#630) 2019-01-25 11:33:53 +01:00
Travis CI 32bd58ccc3 [CI Skip] 0.40.25 2019-01-24 17:15:56 +00:00
Jaco Greeff 25c18bb399 Pull in latest contract types (#634) 2019-01-24 18:09:09 +01:00
Travis CI e3959fb8b7 [CI Skip] 0.40.24 2019-01-24 13:44:11 +00:00
Jaco Greeff 10bdaf518a Check actual valueOf in bool for yes/no (#633)
* Check actual valueOf in bool for yes/no

* Add test for false encoding
2019-01-24 14:38:20 +01:00
Travis CI 613c021109 [CI Skip] 0.40.23 2019-01-23 22:37:18 +00:00
Jaco Greeff ee21272bbc Revert "Bubble isSubscription from rpc-rx (#627)" (#631)
This reverts commit 767a1978d0.
2019-01-23 23:31:21 +01:00
Travis CI 4ca14eb831 [CI Skip] 0.40.22 2019-01-23 21:16:18 +00:00
Jaco Greeff 843f374ca7 Misc small cleanups (#625)
* Misc small cleanups

* Bump deps
2019-01-23 22:10:38 +01:00
Jaco Greeff 64670bfc9c Add derive.chain.bestNumberLag (#629)
* Add derive.chain.bestNumberLag

* type typo
2019-01-23 18:00:44 +01:00