Commit Graph
714 Commits
Author SHA1 Message Date
Jaco Greeff 16df614b0c Bytes from StorageData (possibly prefixed) (#413)
* Bytes from StorageData (possibly prefixed)

* StorageData extends Data

* Cyclic-dep require, StorageData extends Bytes
2018-11-27 12:53:46 +01:00
Travis CI 06d69e51a8 [CI Skip] 0.32.5 2018-11-26 14:11:19 +00:00
Jaco Greeff 1a47d555a6 Allow ability to add raw signature (bytes) to Extrinsic (#412)
* Allow ability to add raw signature (bytes) to Extrinsic

* Linting

* Alphabetical

* Remove unused imports

* Export Immortal era constant
2018-11-26 15:06:36 +01:00
Travis CI d94eb549f6 [CI Skip] 0.32.4 2018-11-23 12:34:42 +00:00
Jaco Greeff 585350702d Update with Grandpa types (#411)
* Update with Grandpa types

* JSON rename for input/output

* JSON -> latest

* Revert rpc update

* Remove U8a | Uint8Array (equivalent)

* Justification is Bytes

* Update MisbehaviourReport

* Fix JSON
2018-11-23 13:29:54 +01:00
Travis CI 3fb7e1507e [CI Skip] 0.32.3 2018-11-22 13:49:01 +00:00
Jaco Greeff 4497be6f19 Cleanup api-observable Vector FIXMEs (#410)
* Cleanup api-observable Vector FIXMEs

* Simplify rawStorage

* Fix linting

* Bump deps
2018-11-22 14:44:11 +01:00
Travis CI 8c5cff55e1 [CI Skip] 0.32.2 2018-11-21 16:26:43 +00:00
Jaco Greeff d0ff8937a4 Use compact* from util for encoding (#409)
* Use compact* from util for encoding

* Remove @polkadot/extrinsics from types imports

* Cleanup manual length concat

* Add missing @polkadot/types dependencies
2018-11-21 17:21:44 +01:00
Travis CI 44ad29021b [CI Skip] 0.32.1 2018-11-21 12:42:02 +00:00
Jaco Greeff 4805f9cb36 Update LICENSE and README (#408)
* Update LICENSE and README

* Bump
2018-11-21 13:37:27 +01:00
Travis CI c66d83368b [CI Skip] 0.31.123 2018-11-20 16:09:22 +00:00
Mario Neises 141f761063 fix usage with typescript (#405)
* fix usage with typescript
- export Base within codec
- Codec is not generic
- use wildcard import for json rpc types

* remove unsued generic + remove unsued import

* import Codec instead of Base

* use correct import for codec type

* replace Base by Codec import and usage

* remove unsued import
2018-11-20 17:04:28 +01:00
Travis CI 7fc67826d7 [CI Skip] 0.31.122 2018-11-20 11:50:38 +00:00
Amaury Martiny b6dd43ee71 Vector extends Array (#404)
* Vector extends Array

* Update tests

* Add tests for Vector

* Remove .get on Vector

* Change back toString representation
2018-11-20 12:45:56 +01:00
Travis CI efa61a3c5f [CI Skip] 0.31.121 2018-11-19 10:43:20 +00:00
Amaury Martiny 9548f977f5 Simplify Base (#403)
* Convert Base to a wrapper

* Remove isEmpty

* Fix bug with storage

* Fix lint

* Fix imports

* Protected raw

* Remove useless imports

* Remove test for Base

* Use unwrap on Option

* Storage unwrap

* Use isNone

* Add test for accessing values

* Remove comment

* toU8a always return Uint8Array
2018-11-19 11:38:47 +01:00
Travis CI d369809835 [CI Skip] 0.31.120 2018-11-15 15:03:07 +00:00
Jaco Greeff 945818959a Use .toString() instead of .raw for metadata uniq (#402) 2018-11-15 15:58:20 +01:00
Travis CI 559e2ccba9 [CI Skip] 0.31.119 2018-11-15 14:00:35 +00:00
Amaury Martiny b580c12149 Bool extends Boolean (#401)
* Bool extends Boolean

* Private static

* Add tests for Bool

* Type
2018-11-15 14:55:50 +01:00
Amaury Martiny 681cda22b3 Moment extends Date (#400)
* Moment extends Date

* FIx tests

* Add comments

* Use toISOString

* Use toISOString
2018-11-15 14:51:51 +01:00
Travis CI 185ecd6fde [CI Skip] 0.31.118 2018-11-15 13:24:24 +00:00
Amaury Martiny f381a4d045 Text extends String (#399)
* Text extends String

* Fix type

* Cleaner code

* Add explicit return type
2018-11-15 14:19:41 +01:00
Travis CI ca2f69d086 [CI Skip] 0.31.117 2018-11-14 13:49:01 +00:00
Jaco Greeff 19aed57c98 Bump dependencies (#398) 2018-11-14 14:44:09 +01:00
Travis CI 9ad2e85e0b [CI Skip] 0.31.116 2018-11-14 11:39:41 +00:00
Amaury Martiny d097a7a32d UInt extends BN (#396)
* Fix Uint and Moment and Compact

* Fix address and account index

* Remove .toBN

* Add comment

* Fix lint

* _raw to raw

* bitLength as method in U8aFixed
2018-11-14 12:35:06 +01:00
Travis CI b9d93b5fa1 [CI Skip] 0.31.115 2018-11-14 10:15:49 +00:00
Jaco Greeff 67dd4987cf Bump deps (common) (#397) 2018-11-14 11:11:19 +01:00
Travis CI 02e3b1f566 [CI Skip] 0.31.114 2018-11-13 15:05:22 +00:00
Jaco Greeff 42e9347033 Override subarray, returning via Uint8Array.from (#395)
* Override subarray, returning via Uint8Array.from

* Import order

* Use .from in subarray test
2018-11-13 16:00:16 +01:00
Travis CI a108184955 [CI Skip] 0.31.113 2018-11-13 12:05:19 +00:00
Jaco Greeff ba4f6ac02b Merge master 2018-11-13 12:59:42 +01:00
Jaco Greeff 7afcb49871 Bump deps 2018-11-13 12:58:13 +01:00
Travis CI d8c3e7298e [CI Skip] 0.31.112 2018-11-13 11:53:56 +00:00
Amaury Martiny 73710b708b U8a extends Uint8Array (#392)
* U8a implements Codec

* Fix U8aFixed

* Fix Bytes

* Fix AccountId

* Remove if instanceof U8a

* Fix Bytes

* Fix lint

* Fix AccountId

* Remove any type

* Remove isBuffer

* Use this directly
2018-11-13 12:49:21 +01:00
Travis CI 60acb289e3 [CI Skip] 0.31.111 2018-11-13 10:33:57 +00:00
Jaco Greeff de284fb2f9 (hopefully) fix d.ts generation with explicit imports (#394) 2018-11-13 11:28:06 +01:00
Travis CI d3d4f992ed [CI Skip] 0.31.110 2018-11-12 17:21:28 +00:00
Jaco Greeff 8121aa2927 Bump util, fix constructors (#393) 2018-11-12 18:15:35 +01:00
Travis CI ff8d5cc5bf [CI Skip] 0.31.109 2018-11-10 11:01:18 +00:00
Jaco Greeff d5bca161b5 Allow index calc as fallback (#391) 2018-11-10 11:56:43 +01:00
Travis CI 614416e1bc [CI Skip] 0.31.108 2018-11-09 16:48:44 +00:00
Jaco Greeff 4b3b6944ae democracy.voteOf with Tuple input (#390) 2018-11-09 17:44:10 +01:00
Travis CI 8fabcc3877 [CI Skip] 0.31.107 2018-11-09 15:49:33 +00:00
Jaco Greeff 77a883c89c Vector should instantiate from Vector (#389) 2018-11-09 16:44:56 +01:00
Travis CI 98add3359d [CI Skip] 0.31.106 2018-11-09 13:10:22 +00:00
Jaco Greeff 7483dc58da Don't do !args check, value could be 0 (#388) 2018-11-09 14:05:45 +01:00
Travis CI 7d97206c8d [CI Skip] 0.31.105 2018-11-08 15:04:09 +00:00