Commit Graph
542 Commits
Author SHA1 Message Date
kwingram25 09ee77d0bc Pass online/offline status indicators with staking accounts (#1265)
* staking online status

* restrict onlineStatus.online to validators

* get onlineStatus for stash/validator only

* tests

* fixes

* Add offline

* Revert stash, change to stashId, linting

* Heartbeat signature

* Make CodeClimate (slightly) happier

* keep compatibility

* change status type

* rv null possible

* cleanup
2019-08-05 16:13:42 +00:00
Travis CI 73f33d0168 [CI Skip] 0.90.0-beta.22 2019-08-04 05:44:31 +00:00
Jaco Greeff 8da526132d Retrieve nextKeys, only deal with stash (#1266)
* Retrieve nextKeys, only deal with stash

* Split long function

* Allow 1.x operation

* Make CodeClimate happier

* Define result type

* Cleanups
2019-08-04 07:33:31 +02:00
Travis CI 96aa8ae660 [CI Skip] 0.90.0-beta.21 2019-08-03 18:16:49 +00:00
Travis CI 273fdfe5a8 [CI Skip] 0.90.0-beta.20 2019-08-03 07:50:34 +00:00
Travis CI f7c49906e4 [CI Skip] 0.90.0-beta.19 2019-08-02 19:32:53 +00:00
Jaco Greeff 981a839b4a Bump deps (#1259)
* Bump deps

* Bump common
2019-08-02 21:22:01 +02:00
Jaco Greeff 82a1c25f17 Tests for approvalFlagToBool (#1251)
* Tests for approvalFlagToBool

* Merge master
2019-08-02 20:44:25 +02:00
Travis CI 658cdbbb10 [CI Skip] 0.90.0-beta.18 2019-08-02 13:40:57 +00:00
Travis CI e949d89acb [CI Skip] 0.90.0-beta.17 2019-08-02 12:47:03 +00:00
Travis CI add04b1908 [CI Skip] 0.90.0-beta.16 2019-08-02 12:31:06 +00:00
Travis CI c3c88c0ea4 [CI Skip] 0.90.0-beta.15 2019-08-02 05:26:38 +00:00
Travis CI caaeea101b [CI Skip] 0.90.0-beta.14 2019-08-01 15:28:25 +00:00
Jake Naviasky 58993042c1 Fixing approvalFlagsToBools. (#1250) 2019-08-01 17:18:18 +02:00
Travis CI b885b8681e [CI Skip] 0.90.0-beta.13 2019-08-01 08:56:42 +00:00
Amaury Martiny 92044d471c Make api.rpc.*.* typed (#1237)
* Generate correctly

* Fix rpc-core

* Flexible types

* Make types work!

* Lint

* Fix grumble

* Re generate

* Fix lint

* Fix small bugs

* Maybe really fix lint?

* Fix lint again

* Fix lint

* Small ordering & formatting  changes while playing...
2019-08-01 10:46:28 +02:00
Travis CI 3290f14a75 [CI Skip] 0.90.0-beta.12 2019-07-31 20:25:39 +00:00
Travis CI d1cbf0b450 [CI Skip] 0.90.0-beta.11 2019-07-31 14:58:49 +00:00
Travis CI dc5d71c16a [CI Skip] 0.90.0-beta.10 2019-07-31 13:11:38 +00:00
Travis CI dea3f79c84 [CI Skip] 0.90.0-beta.9 2019-07-31 07:19:24 +00:00
Travis CI 73a0596fd9 [CI Skip] 0.90.0-beta.8 2019-07-30 12:34:45 +00:00
Jaco Greeff 14f018d57f Fix session/era calculations for Babe (#1235) 2019-07-30 14:24:41 +02:00
Travis CI 25fb24ce45 [CI Skip] 0.90.0-beta.7 2019-07-30 11:27:46 +00:00
Travis CI b347f8f13f [CI Skip] 0.90.0-beta.6 2019-07-30 06:25:38 +00:00
Jaco Greeff c90a4ba69d Bump metadata (#1231) 2019-07-30 08:14:50 +02:00
Travis CI 44202ceceb [CI Skip] 0.90.0-beta.5 2019-07-30 05:20:40 +00:00
Travis CI f364a61338 [CI Skip] 0.90.0-beta.4 2019-07-30 04:58:24 +00:00
Travis CI 56e8ef6ebb [CI Skip] 0.90.0-beta.3 2019-07-29 19:34:23 +00:00
Jaco Greeff 0d68f98c75 Extra block author for babe (#1227)
* Update examples for 0.90

* Fix number typo

* Adapth to use timestamp.now (blockPeriod now in all versions)

* Babe extract block author

* TODO for cleaner aura extraction

* Update Babe id

* Update & split tests
2019-07-29 21:23:34 +02:00
Travis CI 29bda0b311 [CI Skip] 0.90.0-beta.2 2019-07-29 18:30:20 +00:00
Travis CI a322fad2e9 [CI Skip] 0.90.0-beta.1 2019-07-29 07:58:31 +00:00
a45e313c84 Upgrade guide (to current) (#1194)
* Upgrade guide (to current)

* ClassOf

* JSON example

* s/srml/interfaces/

* Typos

* Update UPGRADING.md

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

* Add copy-to-apps script

* Properly extend exstended derive types

* Round out UPGRADING

* Version in CHANGELOG

* Typos

* Update UPGRADING.md

* Update CHANGELOG

* Bump common

* 0.90.0-beta.0

* Cleanups

* Split 0.82 & 0.90

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update UPGRADING.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update CHANGELOG.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update CHANGELOG.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Typo

* findFunction -> api.findCall
2019-07-29 09:48:06 +02:00
Jaco Greeff 99368a6d4d createType allows multiple params (#1207) 2019-07-27 08:05:11 +02:00
Jaco Greeff 02cd1331aa Move Event, Address, AccountId, AccountIndex to generic (#1202)
* Move Event, Address, AccountId, AccountIndex to generic

* Move AccountId, AccountIndex, Address & Event to generic

* Move Vote
2019-07-26 16:39:28 +02:00
Jaco Greeff 70bc823d25 Make Block, Header & Digest generic (#1196)
* Make Block, Header & Digest generic

* It lints

* Linting passes, tests passes
2019-07-26 14:34:41 +02:00
Amaury Martiny 441148889d CreateType is typed, add createTypeUnsafe just in case (#1199)
* Use unsafe internally

* Add comments

* Remove <> in createType

* Fix lint

* Fix classOf

* Remove createType from Text

* Fix lint

* Fix Fallback type

* Fix fallback in createType
2019-07-26 14:00:25 +02:00
Jaco Greeff 2a37b8746d Rename srml to interfaces (#1198)
* Rename srml to interfaces

* newline, package.json
2019-07-26 12:08:17 +02:00
Jaco Greeff 478f54c703 Convert RPC classes to primitive classes or /srml types (#1192)
* Convert RPC classes to primitive classes or /srml types

* Lint passes... lokking at tests next.

* Tests pass.

* Types with basic docs (lots of work here)

* Update StorageKey.spec.ts

* Add injector to metadata doc generation

* Fix import
2019-07-26 10:23:37 +02:00
Jaco Greeff 39323a8896 Convert all type/* (and some primitives) to srml/* (#1189)
* Convert (almost-all) non-primitives (and some primitives) to srml/*

* Move Vote to primitives, remove type folder

* Move Balance :-o

* Fixup tests, override Balance.toRaw()
2019-07-25 16:34:47 +02:00
Jaco Greeff a25110b281 Move additional classes to definition-only (#1165)
* Move additional classes to definition-only

* Move some additional quick-hit types

* Last of the easier type/* conversions

* Remove rhd files

* Remove commented line

* Add injector to types loading

* typo

* Update comment

* Merge master

* Rework & organize CHANGELOG

* Some small helper cleanups
2019-07-25 10:32:26 +02:00
Jaco Greeff 9ef7ee4a67 Unskip additional tests (#1185) 2019-07-25 10:29:15 +02:00
Travis CI 65bc0a4a57 [CI Skip] 0.82.0-beta.96 2019-07-24 21:09:04 +00:00
Travis CI 039d3337c8 [CI Skip] 0.82.0-beta.95 2019-07-24 19:46:43 +00:00
Travis CI 2a3cc92e91 [CI Skip] 0.82.0-beta.94 2019-07-24 19:17:32 +00:00
Travis CI 3827353c35 [CI Skip] 0.82.0-beta.93 2019-07-24 18:59:23 +00:00
kwingram25 e1cf002a76 Improve voter derive calls (#1181)
* voterPositions

* cleanup

* rename var

* changes

* export VoterPosition
2019-07-24 19:46:05 +01:00
Travis CI 8bafdc7596 [CI Skip] 0.82.0-beta.92 2019-07-24 15:38:23 +00:00
Amaury Martiny 66ab3ac502 Cache getTypeClass (#1183)
* Put memoizee only in types

* Add some tests

* Add failing tests

* Make instanceof work

* Better tests
2019-07-24 17:22:49 +02:00
Travis CI b89e0d5522 [CI Skip] 0.82.0-beta.91 2019-07-24 14:43:45 +00:00
Travis CI e15db8aed9 [CI Skip] 0.82.0-beta.90 2019-07-24 11:26:16 +00:00