Commit Graph
861 Commits
Author SHA1 Message Date
Amaury Martiny 04c639ded9 Add types from latest metadata (#466)
* Update to latest metadata

* Remove whitespaces

* Fix ::Proposal

* Add missing types

* Allow Option<> in metadata

* Empty typle

* Remove useless indenetation

* getTypeClass add Option

* Add test with Option
2018-12-13 17:20:45 +01:00
Travis CI 25b1e9bccd [CI Skip] 0.33.14 2018-12-12 15:19:25 +00:00
Jaco Greeff 3c8b3d325e Option instantiates from Option (#465) 2018-12-12 16:13:58 +01:00
Travis CI 5488328dc6 [CI Skip] 0.33.13 2018-12-12 15:07:20 +00:00
Jaco Greeff ef926e9bfd Allow Struct to take Map (and Struct) in constructor (#464)
* Allow Struct to take Map (and Struct) in constructor

* First do key mapping, then reduce

* Remove extra type refs

* Revert "cleanups" - KISS
2018-12-12 16:01:39 +01:00
Travis CI 90a2e26540 [CI Skip] 0.33.12 2018-12-11 13:47:23 +00:00
Jaco Greeff c0a9924c64 Update Set toU8a, Enum accepts string in constructor (#460)
* Update Set toU8a, Enum accepts string in constructor

* Standalone else

* Handle undefined case in check

* Revert previous... :(

* Flatten else usage
2018-12-11 14:42:01 +01:00
Travis CI 2bfbaac09f [CI Skip] 0.33.11 2018-12-10 13:52:28 +00:00
Amaury Martiny 0c947a5905 Update types parsing to latest metadata (#456)
* Remove useless whitespaces

* Update latest metadata

* Update latest metadata
2018-12-10 13:46:58 +00:00
Travis CI 70bd74765f [CI Skip] 0.33.10 2018-12-10 11:03:10 +00:00
Jaco Greeff 7be8d825da Bump dependencies (#455) 2018-12-10 11:57:48 +01:00
Travis CI 3a12fef5a1 [CI Skip] 0.33.9 2018-12-10 09:51:27 +00:00
Xiliang Chen 7b667cfb9f Improve events (#454)
* Fix typo in docs

* Improve events
Expose `error` event
Add `once`
Allow method chaining for `on` and `once`
2018-12-10 10:46:04 +01:00
Travis CI dd9c5ee5e2 [CI Skip] 0.33.8 2018-12-09 13:36:42 +00:00
Jaco Greeff 6b3ba22da7 Bump common, some additional cleanups (#453) 2018-12-09 14:30:09 +01:00
Travis CI 5a090caf42 [CI Skip] 0.33.7 2018-12-09 10:00:00 +00:00
Jaco Greeff 3e7e1c653b Additional Codeclimate cleanups (#452)
* Additional Codeclimate cleanups

* Keep original Vector.with

* Cleanup subtype extraction

* Cleanup fromMeta

* Cleanup createType tests
2018-12-09 10:54:43 +01:00
Jaco Greeff 871c3db84a [CI Skip] Update .codeclimate.yml (#451) 2018-12-08 21:08:11 +01:00
Travis CI c30cecf0c1 [CI Skip] 0.33.6 2018-12-08 14:37:17 +00:00
Jaco Greeff 448a729d70 Fix some Codeclimate smells (#450)
* Fix some Codeclimate smells

* Cleanup Metadata complexity

* Cleanup uniqueTypes

* Bump deps
2018-12-08 15:31:54 +01:00
Travis CI b99ff21a67 [CI Skip] 0.33.5 2018-12-07 11:35:46 +00:00
Jaco Greeff 69f68509ef Expand with all currently known RPC methods 2018-12-07 12:30:09 +01:00
Travis CI 0a80c66c27 [CI Skip] 0.33.4 2018-12-07 09:12:49 +00:00
Jaco Greeff 50103dcfab WS error logging & stacks trimmed (#448)
* Cleanup error stacks

* Close error code & reason

* Re-add debug throw

* Remove stack

* Cleanup console checks (bullsh*t, wtf did I add these anyway)
2018-12-07 10:07:20 +01:00
Travis CI b9215d286f [CI Skip] 0.33.3 2018-12-06 11:35:08 +00:00
Jaco Greeff c9cc9042e2 Bump common (#446) 2018-12-06 12:29:26 +01:00
Travis CI 477ad7e444 [CI Skip] 0.33.2 2018-12-06 11:17:30 +00:00
Jaco Greeff b52a86eab0 Fix types documentation links (#445)
* Fix types documentation links

* Adjust CSS selector

* Don't include Summary in the README
2018-12-06 12:11:56 +01:00
Travis CI 6ee9f3eb62 [CI Skip] 0.33.1 2018-12-06 10:33:35 +00:00
Jaco Greeff 69b05c7fef Allow any provider into API constructor (#444)
* Allow any provider into API constructor

* Update documentation

* Remove combineLatest exposure (deprecation error)

* Linting & test cleanups

* Exclude docs from codeclimate
2018-12-06 11:28:40 +01:00
Travis CI ba53f712e4 [CI Skip] 0.32.24 2018-12-05 15:06:52 +00:00
Jaco Greeff fced67f23d Migrate to travis-ci.com, bump deps (#441) 2018-12-05 16:02:00 +01:00
Travis CI 8ec6991632 [CI Skip] 0.32.23 2018-12-04 16:18:59 +00:00
Jaco Greeff ad73e60728 (insubstantial) Documentation CSS updates (#439) 2018-12-04 17:13:35 +01:00
Travis CI 2c045c4192 [CI Skip] 0.32.22 2018-12-04 12:54:29 +00:00
Jaco Greeff 101f869423 Expose a hasOrigin getter (public vs private) (#437)
* Expose a hasOrigin getter (public vs private)

* Add tests, fix hex creation
2018-12-04 13:49:37 +01:00
Travis CI 929da62719 [CI Skip] 0.32.21 2018-12-04 10:47:19 +00:00
Amaury Martiny e2c029cc9e Expose map and filter on Tuple (#436) 2018-12-04 11:42:08 +01:00
Travis CI ff96e8ee79 [CI Skip] 0.32.20 2018-12-04 09:22:19 +00:00
Jaco Greeff 637182baf9 API cleanups, circular deps (#433)
* Cleanups with @polkadot/util packages

* Initi registry at types root

* Revert test throw

* Fallback to root types when registry lookup fails

* Update StorageChangeSet.spec.ts

* Update createType.ts

* Linting update

* Update createType.ts

* Rename TypeRegistry.ts to typeRegistry.ts
2018-12-04 10:17:26 +01:00
Travis CI 4c60da91bb [CI Skip] 0.32.19 2018-12-03 14:59:53 +00:00
Amaury Martiny 1d1832111b Tuple extends Array (#432)
* Tuple extend array

* Fix all tests

* Add tests on Tupel

* Remove getAtIndex for tuples

* Add noInheritDoc

* Update comments

* Update docs
2018-12-03 15:54:52 +01:00
Travis CI 41e98ed243 [CI Skip] 0.32.18 2018-12-03 14:53:12 +00:00
Jaco Greeff a7b177d7dd Document getters and functions for all types (static missing) (#431)
* Document getters and functions for all types (static missing)

* Update SignedBlock.ts

* Bump @polkadot/dev, introduce @noInheritDoc

* Text inherits from String

* Link to indv. types from README

* Add base to UInt toString
2018-12-03 15:47:22 +01:00
Travis CI f1df2f7c75 [CI Skip] 0.32.17 2018-12-03 10:28:14 +00:00
Jaco Greeff 6cab9be9c8 Document @polkadot/types (#430)
* Start with codec descriptions

* Base codec types have definitions...

* Base interface defintions

* Descriptions for all type classes

* Link to types docs

* Remove stray template block

* Typos

* Hash -> H256 in description
2018-12-03 11:23:18 +01:00
Travis CI 55fa4912b3 [CI Skip] 0.32.16 2018-11-30 14:59:05 +00:00
Xiliang Chen 82dcbe50d5 Type registry (#428)
* basic type registry

* register all buildin types

* get types from TypeRegistry

* Update Api constructor options to include additionalTypes

* Fix linter issue

* Style improvements and rename ApiBaseOptions to ApiOptions

* refactor Api classes constructor options
2018-11-30 15:52:40 +01:00
Travis CI d5515efa83 [CI Skip] 0.32.15 2018-11-29 17:09:41 +00:00
Jaco Greeff 0e6d138b1f Events example (#426)
* Bump example deps

* System events example

* Example comments

* Link to example in docs

* Typo in own surname, tsk, tsk...

* Update README.md
2018-11-29 18:04:47 +01:00