Commit Graph
1515 Commits
Author SHA1 Message Date
Jaco Greeff 543fdc034f Update for latest substrate master metadata (#958)
* Update for latest substrate master metadata

* Add ContractStorageKey type

* Update schedule
2019-05-29 17:23:06 +02:00
Travis CI 67337dc986 [CI Skip] 0.80.0-beta.11 2019-05-29 15:15:40 +00:00
Thibaut Sardan 7155848ba7 Redeemable and Unlocking in staking.info (#959)
* init

* init2

* redeemable

* unlocking

* address some comments

* remove map and exit early

* add test for unlocking

* lint

* comment and lint

* use SubmittableResult

* swap _stakingLedger and stakingLedger
2019-05-29 17:06:47 +02:00
Travis CI 570fa13ffd [CI Skip] 0.80.0-beta.10 2019-05-29 14:25:03 +00:00
Alex Wang a7f16064a9 update signature of doublemap storage function, add e2e test cases (#957)
* update signature of doublemap storage function

* add test cases

* update doublemap implementation

* update implementation

* remove duplicate test case

* update test cases
2019-05-29 16:14:42 +02:00
Travis CI e1a54f2b42 [CI Skip] 0.80.0-beta.9 2019-05-29 12:48:32 +00:00
Jaco Greeff bb38db580b Convert contract e2e to flipper (#960)
* Convert contract e2e to flipper

* Bump gas, rename contract
2019-05-29 14:38:45 +02:00
Travis CI d350c2b711 [CI Skip] 0.80.0-beta.8 2019-05-29 11:45:21 +00:00
Jaco Greeff f9e8aedd22 Bump common & dev to latest (#961) 2019-05-29 13:36:24 +02:00
Travis CI 1b03d1e64f [CI Skip] 0.80.0-beta.7 2019-05-29 09:48:01 +00:00
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
Stefanie Doll c916da6415 Nits from PR #936 (#955)
* Nits from PR #936

* Suggested (broken) changes for discussion

* Fixes for Codec errors

* Removed unused imports
2019-05-27 23:03:06 +02: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
Jaco Greeff 2d94ac7d24 Alias votingBalance -> all 2019-05-27 16:00:38 +02: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
Jaco Greeff 054cf1f51e Fix ContractAbi assert name (#951) 2019-05-24 10:01:46 +02:00
Travis CI 5139c15501 [CI Skip] 0.80.0-beta.1 2019-05-23 20:49:52 +00:00
Jaco Greeff fc8653eecc multi-merge failure 2019-05-23 22:40:48 +02:00
Travis CI fac37316bb [CI Skip] 0.80.0-beta.0 2019-05-23 07:19:44 +00:00
KarishmaBothara 0f3a745ed8 ERA changes (#927) 2019-05-23 09:10:34 +02:00
Amaury Martiny a81929de09 Use name instead of prefix (#948)
* Use name instead of prefix

* Rename var
2019-05-23 09:10:25 +02:00
Jaco Greeff 96133d22b8 Align IExtrinsic with Extrinsic impl. (signer/signature string) (#946) 2019-05-23 09:05:25 +02: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
Jaco Greeff c431815c4d Emit error on init (#940) 2019-05-22 10:32:10 +02:00
Jaco Greeff 2ebd1e1dbb Provide genesisHash & version to signer (#941)
* Provide genesisHash & version to signer

* Remove runtimeVersion (until needed, supplied anyway)
2019-05-22 10:23:29 +02: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
Alex Wang 833b49d012 support double map storage function (#934)
* support double map storage function

* add twox_64_concat, clean comments

* change Twox128Concat to Twox64Concat

* update decodeStorageKey

* fix: update decodeStorageKey

* test: add e2e test
2019-05-21 10:25:58 +02:00
Travis CI dc8351a7ce [CI Skip] 0.79.0-beta.32 2019-05-20 12:21:10 +00:00
Jaco Greeff 767891dca0 ExtrinsicSignature init with address/signature strings (#935) 2019-05-20 14:09:29 +02:00
Travis CI b073314d30 [CI Skip] 0.79.0-beta.31 2019-05-17 15:24:49 +00:00
Jaco Greeff 9f258ff4c7 Allow Moment with BE/LE hex encoding (#933)
* Allow Moment with BE/LE hex encoding

* description clarification
2019-05-17 17:13:11 +02:00
Travis CI 37911b6684 [CI Skip] 0.79.0-beta.30 2019-05-17 14:48:20 +00:00
Jaco Greeff 1e8e0b2974 Polkadot master specVersion bump (#932)
* Polkadot master specVersion bump

* EventRecord_0_76
2019-05-17 16:37:22 +02:00
Travis CI ff0479f48c [CI Skip] 0.79.0-beta.29 2019-05-17 13:15:07 +00:00
Jaco Greeff ed5c886845 Add staking.stakers to derive.staking.info (#931)
* Add staking.stakers to derive.staking.info

* alphabetical ordering

* add staking.nominators

* Fix lint
2019-05-17 15:04:21 +02: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
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