Commit Graph
626 Commits
Author SHA1 Message Date
Stefanie Doll 7e1d4cd2bd rpc-core e2e tests in typescript (#956)
* WIP rpc-core e2e tests in Typescript

* WIP

* Subscribe_storage test

* Subscribe_storage test

* StorageChangeSet Index workaround

* name random account

* name random account

* rename from krumme-lanke to alexander, test for types

* ALICE doesn't exist on Alex -> change subscription to session.currentIndex

* removed unused import 'Balance'
2019-05-29 11:39:08 +02:00
Travis CI 761682373d [CI Skip] 0.80.0-beta.6 2019-05-27 21:12:07 +00:00
Travis CI 407570c4ea [CI Skip] 0.80.0-beta.5 2019-05-27 15:17:05 +00:00
Stefanie DollandAmaury Martiny c01ade86a6 Convert tests to ts and fix existing (#936)
* Add jest watch option to package.json

* convert promise-alex-spec to ts & add types

* convert ./api tests from JS to TS

* convert ./api tests from JS to TS pt. 2

* More convert tests from JS to TS

* rpc-provider convert tests from js to ts

* rpc-provider tests js => ts

* rpc-provider tests js => ts

* linting issues

* tslint fixes

* 101 => 68 typescript errors

* WIP

* connect() e2e tests

* more fixes

* Fix linting errors of new ERA tests after merge

* test for listeners in connect

* formatting

* getting there...

* re-add skips

* test refactoring & codeclimate fixes

* more fixed tests

* mock.body workaround

* Fixed wrong test description

* ApiPromiseInterface => Api

* ws polyfill / send

* bring back isZero() test

* .then().catch() => .catch()

* Removed leftover body

* Type ProviderInterface => Http

* Fixed polyfill tests

* trailing whitespce

* (mock.body as any)['test_body'] and Balance

* Fix autoconnect in WsProvider

* Fixed part of linting errors in ERA tests

* call unused const unsubscribe

* added ts-ignores for testing private properties/ methods of Provider

* Archive node test

* Fixed linting for ERA tests

* Further changes

* Update packages/rpc-provider/src/ws/polyfill.spec.ts

Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com>

* relative paths for imports inside module & reordering of imports pt. 1

* relative paths for imports inside module & reordering of imports pt. 2

* added skip back to e2e transactions

* Fix some more tests in TS (#952)

* Fix some more tests in ts

* Add more constructor

* More typing in ./api

* .skip

* <SubmittableResult>'s

* .catch() -> return()

* Extrinsics tests

* Left TODO's for extrinsic e2e tests

* Workaround for failing Type Extrinsic tests
2019-05-27 17:08:06 +02:00
Travis CI f50229db0d [CI Skip] 0.80.0-beta.4 2019-05-27 14:09:43 +00:00
Travis CI 96b40d041c [CI Skip] 0.80.0-beta.3 2019-05-27 10:57:42 +00:00
Jaco Greeff acaca67385 derive.{balances, contracts, staking, session} returns Codec (#953)
* derive.{balances, contracts, staking, session} returns Codec

* Json -> StructAny (as per VectorAny)

* multi returns VectorAny

* VectorAny casts

* Bump common
2019-05-27 12:49:19 +02:00
Travis CI 2fe6451447 [CI Skip] 0.80.0-beta.2 2019-05-24 08:10:26 +00:00
Travis CI 5139c15501 [CI Skip] 0.80.0-beta.1 2019-05-23 20:49:52 +00:00
Travis CI fac37316bb [CI Skip] 0.80.0-beta.0 2019-05-23 07:19:44 +00:00
Travis CI 478ce8561b [CI Skip] 0.79.1 2019-05-22 09:54:35 +00:00
Jaco Greeff bdd1ca4f3d 0.79 (#944)
* 0.79

* @polkadot/api -> *
2019-05-22 11:45:32 +02:00
Travis CI b60bc92848 [CI Skip] 0.79.0-beta.35 2019-05-22 08:40:51 +00:00
Travis CI 43940ea716 [CI Skip] 0.79.0-beta.34 2019-05-22 07:27:41 +00:00
Jaco Greeff ce6738c270 Bump deps, align CHANGELOG (#939) 2019-05-22 09:18:33 +02:00
Travis CI 6641c07549 [CI Skip] 0.79.0-beta.33 2019-05-21 08:37:06 +00:00
Travis CI dc8351a7ce [CI Skip] 0.79.0-beta.32 2019-05-20 12:21:10 +00:00
Travis CI b073314d30 [CI Skip] 0.79.0-beta.31 2019-05-17 15:24:49 +00:00
Travis CI 37911b6684 [CI Skip] 0.79.0-beta.30 2019-05-17 14:48:20 +00:00
Travis CI ff0479f48c [CI Skip] 0.79.0-beta.29 2019-05-17 13:15:07 +00:00
Travis CI 74b6cfcb69 [CI Skip] 0.79.0-beta.28 2019-05-17 12:53:48 +00:00
Jaco GreeffandAmaury Martiny f8f05ba21e Show section.method on storage read error (#928)
* Show section.method on storage read error

* Update packages/types/src/primitive/StorageKey.ts

Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com>

* Update StorageKey.ts
2019-05-17 14:39:17 +02:00
Travis CI b0b14046c4 [CI Skip] 0.79.0-beta.27 2019-05-17 12:26:48 +00:00
Jaco Greeff 03234a0cc9 Codec Fallback on createType (along with pedantic) (#929)
* Codec Fallback on createType (along with pedantic)

* Updates for numbers (fix failing tests)

* Add isPedantic to linked
2019-05-17 14:07:51 +02:00
Travis CI e326f27ac6 [CI Skip] 0.79.0-beta.26 2019-05-17 09:56:16 +00:00
Travis CI 43a1d95809 [CI Skip] 0.79.0-beta.25 2019-05-16 16:25:40 +00:00
Travis CI 6e66913db7 [CI Skip] 0.79.0-beta.24 2019-05-16 15:19:37 +00:00
Travis CI 2f002fbb92 [CI Skip] 0.79.0-beta.23 2019-05-16 13:46:24 +00:00
Travis CI 5159e42464 [CI Skip] 0.79.0-beta.22 2019-05-16 12:39:24 +00:00
Travis CI 9a25e8376d [CI Skip] 0.79.0-beta.21 2019-05-16 12:25:37 +00: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
Travis CI facdbf8f3a [CI Skip] 0.79.0-beta.18 2019-05-15 14:16:40 +00:00
Travis CI d4288e28fa [CI Skip] 0.79.0-beta.17 2019-05-15 11:15:07 +00:00
Travis CI 320758e434 [CI Skip] 0.79.0-beta.16 2019-05-15 10:01:06 +00:00
Travis CI 4da52c8d76 [CI Skip] 0.79.0-beta.15 2019-05-15 08:52:53 +00: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
Travis CI ce2bbadf82 [CI Skip] 0.79.0-beta.12 2019-05-14 14:36:52 +00: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
Travis CI 0ad62b4fb6 [CI Skip] 0.79.0-beta.9 2019-05-13 14:09:05 +00:00
Travis CI 2a3fe0060d [CI Skip] 0.79.0-beta.8 2019-05-13 10:04:28 +00:00
Travis CI e1ec95a2f3 [CI Skip] 0.79.0-beta.7 2019-05-13 09:00:48 +00:00
Travis CI 777a73f7c2 [CI Skip] 0.79.0-beta.6 2019-05-10 10:16:54 +00:00
Travis CI 52bae20ef4 [CI Skip] 0.79.0-beta.5 2019-05-09 18:24:32 +00:00
Travis CI 970a114751 [CI Skip] 0.79.0-beta.4 2019-05-09 16:31:26 +00:00
Jaco Greeff a037caba4a Bump util (#892) 2019-05-09 18:20:23 +02:00