Commit Graph
1348 Commits
Author SHA1 Message Date
Jaco Greeff 36d7a85ed2 Move HeaderExtended type to api-derive (#923)
* Move HeaderExtended type to api-derive

* Really remove HeaderExt from Header this time around
2019-05-17 11:44:14 +02:00
Travis CI 43a1d95809 [CI Skip] 0.79.0-beta.25 2019-05-16 16:25:40 +00:00
Jaco Greeff 6b6f04d12a Add edgeware to nodeCompat (#926) 2019-05-16 18:14:07 +02:00
Travis CI 6e66913db7 [CI Skip] 0.79.0-beta.24 2019-05-16 15:19:37 +00:00
Jaco Greeff 2ae9098534 Create submittable via hex (#919)
* Create submittable via hex

* typo
2019-05-16 17:05:16 +02:00
Travis CI 2f002fbb92 [CI Skip] 0.79.0-beta.23 2019-05-16 13:46:24 +00:00
Jaco Greeff b701bdf763 Set assert fix (with tests) (#925)
* Set assert fix (with tests)

* toNumber() -> function
2019-05-16 15:34:59 +02:00
Stefanie Doll 70716d61c9 Extrinsic bug with undefined value (#914)
* Extrinsic contructor to fix

* Switch from Unit8Array to U8a

* new line

* Move Unit8Array to end of decode function

* move unit8array up as default

* only create empty Unit8Array for undefined values

* default value for string

* remove empty ExtrinsicValue in decode function call

* Throw error instead of console.error

* Travis
2019-05-16 15:11:22 +02:00
Travis CI 5159e42464 [CI Skip] 0.79.0-beta.22 2019-05-16 12:39:24 +00:00
Jaco Greeff 07ba80bee1 api.derive.staking.info (all relevant account info) (#915)
* api.derive.staking.info (all relevant account info)

* Update description

* Explicit controller/stash id vars

* Add e2e tests to confirm
2019-05-16 14:28:08 +02:00
Travis CI 9a25e8376d [CI Skip] 0.79.0-beta.21 2019-05-16 12:25:37 +00:00
Jaco Greeff 8c70cbf0f1 Add Codec toRawType (#921)
* Add Codec toType

* Revert i* & u* (toType, catered for in base)

* toType -> toRawType
2019-05-16 14:14:18 +02:00
Jaco Greeff 42fe4e1739 Combine Enum & EnumType (#922)
* Extend EnumType with basic (convert use)

* Remove Enum, adjust EnumType tests with Enum version

* Remove aliasses

* test json finaised -> finalized
2019-05-16 13:52:00 +02:00
Travis CI 25d5869420 [CI Skip] 0.79.0-beta.20 2019-05-16 11:09:06 +00:00
Amaury Martiny 2b538f5f58 refactor: Metadata overhaul (#913)
* Replace part1

* Replace part2

* Replace part3

* Replace part5

* Replace part6

* Fix small bugs

* Fix double map toString

* Small fixes

* Update to v4

* Fix docs script

* Grumbles

* Alphabetical

* Reads better

* comment

* module to modul
2019-05-16 12:57:51 +02:00
Travis CI 51dc4677b2 [CI Skip] 0.79.0-beta.19 2019-05-16 10:06:14 +00:00
Jaco Greeff 5a857a33c8 codec/Set extends JS Set (#917) 2019-05-16 11:54:26 +02:00
Jaco Greeff 2dfc55cb5c Update api.derive to use api.queryMulti (#911)
* session api.queryMulti

* Make a single subscription to retrieve all session info

* Adjustments

* WIP

* Seems mostly comprehensive, need to full test e2e

* e2e tests for operations

* Allow "create from empty"

* skip

* Remove comment

* Remove ancient ?'s

* Update types.ts
2019-05-16 11:36:41 +02:00
Jaco Greeff bafda6dc93 Remove struct map naming overrides (#918) 2019-05-16 11:18:49 +02:00
Jaco Greeff 86a8011c65 Move additional types to primitive & rpc (#916) 2019-05-16 11:11:32 +02:00
Travis CI facdbf8f3a [CI Skip] 0.79.0-beta.18 2019-05-15 14:16:40 +00:00
Jaco Greeff 3ec4bc388f Contract test data (shared_vec) for Option<T>, Result<T> (#906) 2019-05-15 16:05:13 +02:00
Jaco Greeff 2509309326 Update Extrinsic Signature description (#905)
* Update Extrinsic Signature description

* Update ExtrinsicSignature.ts
2019-05-15 16:04:53 +02:00
Travis CI d4288e28fa [CI Skip] 0.79.0-beta.17 2019-05-15 11:15:07 +00:00
Jaco Greeff 63222cf525 Add node-template override (#912) 2019-05-15 13:04:01 +02:00
Travis CI 320758e434 [CI Skip] 0.79.0-beta.16 2019-05-15 10:01:06 +00:00
Stefanie Doll c30d3a80e8 Added derive e2e tests and documentation (#898)
* export IExtrinsic

* Switch to localhos & enable tests in promise.spec

* Derive.accounts docs (copy from my other branch) + code examples

* Fixed existing accounts tests and added tests for all accounts.derive methods

* e2e tests and docs/ examples for balances.all and balances.fees

* Removed emty lines below jsdoc info

* tests & documentation dor derive.chain

* Addressed comments from former PR https://github.com/polkadot-js/api/pull/869

* Removed unused import

* obseralbe -> observable

* undo keith' commit

* use correct jsdocs syntax

* Re-enable skip
2019-05-15 11:50:28 +02:00
Travis CI 4da52c8d76 [CI Skip] 0.79.0-beta.15 2019-05-15 08:52:53 +00:00
Jaco Greeff 3557657034 Expose queryMulti on api (#909)
* Expose queryMulti on api

* Convert contract fees to queryMulti
2019-05-15 10:41:48 +02:00
Travis CI bd22da687e [CI Skip] 0.79.0-beta.14 2019-05-15 06:18:25 +00:00
Jaco Greeff 7b04ea0bfe new EventRecord with topics (#902)
* new EventRecord with topics

* Add additional decoding checks (from #612)

* Slightly rework storage parsing (future checks)

* Split storage result formatting (set vs data)

* Allow v3 event parsing

* Max Vector length check

* assert during Event parsing

* Well, HACK-y fallback

* Revert "Well, HACK-y fallback"

This reverts commit edbf61b99da2753bec3a535126660e71bdcd9861.

* Node overrides...

* Add implVersion

* Register types

* Update with polkadot as well

* inject compatibility types

* EventRecord77 in testing

* Conversion with DoubleMap

* E2E tested against v3 & v4

* Filter with some

* Split archive/remove alex tests

* beforeAll -> beforeEach

* Remove .only

* EventRecordV0 -> 77
2019-05-15 08:07:23 +02:00
Travis CI 3df5672159 [CI Skip] 0.79.0-beta.13 2019-05-14 19:38:28 +00:00
Stefanie Doll db78aeb225 Fix for RPC bugs caused by uk spelling (#904)
* Replaced UK with US spelling

* -ised to -ized

* UK -> US spelling in chain rpc methods

* Tests for RPC chain methods on Alex
2019-05-14 21:27:16 +02:00
Travis CI ce2bbadf82 [CI Skip] 0.79.0-beta.12 2019-05-14 14:36:52 +00:00
Jaco Greeff 57715c50c0 Revert "Update extrinsics FromMetadata. Drop storages with doublemap type when converting v3 to v2 (#888)" (#903)
This reverts commit 97032e7e86.
2019-05-14 16:21:32 +02:00
Travis CI 5ac7841fd9 [CI Skip] 0.79.0-beta.11 2019-05-14 10:42:53 +00:00
Travis CI 8502396168 [CI Skip] 0.79.0-beta.10 2019-05-14 10:31:59 +00:00
satellitex 06a5dc61a2 Add traits replace rules. for invalid cases ::<type> and <type>::. (#885)
* add replace rules

* fix replace grep
2019-05-14 12:21:08 +02:00
Jaco Greeff 27934f7bd9 Metadata update for latest master (#901)
* Latest metadata, add EventIndex type

* Add parsed metadata

* Create empty DoubleMap type
2019-05-14 12:15:34 +02:00
Travis CI 0ad62b4fb6 [CI Skip] 0.79.0-beta.9 2019-05-13 14:09:05 +00:00
Jaco Greeff 7fb1944aa2 Bump RxJS to 6.5.2 (#897)
* Bump RxJS to 6.5.2

* Re-create yarn.lock
2019-05-13 15:57:10 +02:00
Travis CI 2a3fe0060d [CI Skip] 0.79.0-beta.8 2019-05-13 10:04:28 +00:00
Xiliang Chen 46fee3125d Start supporting double map (#843)
* double map fix

* update metadata to prevent error using double map
2019-05-13 11:53:46 +02:00
Travis CI e1ec95a2f3 [CI Skip] 0.79.0-beta.7 2019-05-13 09:00:48 +00:00
Alex Wang 97032e7e86 Update extrinsics FromMetadata. Drop storages with doublemap type when converting v3 to v2 (#888)
* update extrinsics fromMetadata

* drop storages with doublemap when convert v3 to v2

* update Event.injectMetadata
2019-05-13 10:49:29 +02:00
Travis CI 777a73f7c2 [CI Skip] 0.79.0-beta.6 2019-05-10 10:16:54 +00:00
Jaco Greeff 4378ed4bb8 Remove combineLatest where multi is used (#895)
* Remove combineLatest where multi is used

* Add e2e test for derive.controllers
2019-05-10 12:06:02 +02:00
Travis CI 52bae20ef4 [CI Skip] 0.79.0-beta.5 2019-05-09 18:24:32 +00:00
kwingram25 168b12d98f Check array before running bnMax (#893)
* Updated with derive.balances.all

* add new keys to votingBalance

* remove multi test

* vestedBalance > 0

* bestNumber bug

* Check balances.all > 0

* Check balances.all > 0

* Check balances.all > 0

* check locks array

* check locks array
2019-05-09 20:13:31 +02:00
Travis CI 970a114751 [CI Skip] 0.79.0-beta.4 2019-05-09 16:31:26 +00:00