Commit Graph
1012 Commits
Author SHA1 Message Date
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
Travis CI 3c98dab15d [CI Skip] 0.40.21 2019-01-23 17:00:13 +00:00
Jaco Greeff 767a1978d0 Bubble isSubscription from rpc-rx (#627)
* Bubble isSubscription from rpc-rx

* Fix logic error
2019-01-23 17:54:41 +01:00
Travis CI 18e178ae2a [CI Skip] 0.40.20 2019-01-23 16:34:00 +00:00
Jaco Greeff 0e73f22b27 QueryableStorage overrides for Promise (#628) 2019-01-23 17:25:50 +01:00
Travis CI 2e8a140669 [CI Skip] 0.40.19 2019-01-23 12:35:05 +00:00
Jaco Greeff 52718d76f7 Add .eq to Codec (#622)
* Add .eq to Codec

* Tests for Codec .eq

* Extra ()'s around checks

* Update AbstractInt.ts

* Use .size in Map compare

* Equivalency comment

* Update Compact.eq to user wrapper eq
2019-01-23 13:29:03 +01:00
Stefanie Doll 83a1b975ce [Docs] Re-applied lost changes from PR #616 (#623)
* [Docs] Re-applied lost changes from PR #616

* [Docs] Changed submittable extrinsics example to signAndSend()
2019-01-23 13:26:16 +01:00
Travis CI 69d92c8f3b [CI Skip] 0.40.18 2019-01-23 11:23:26 +00:00
Travis CI 14b174473e [CI Skip] 0.40.17 2019-01-22 22:18:30 +00:00
Travis CI 643c7f14ff [CI Skip] 0.40.16 2019-01-22 20:38:03 +00:00
Travis CI 2d6001197b [CI Skip] 0.40.15 2019-01-22 19:58:11 +00: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
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