Jaco Greeff
2e109ba2a5
Swap Keys to "Opaque" tuple definitions ( #1281 )
2019-08-09 09:19:47 +02:00
Jaco Greeff
fbd6bf1317
Update Keys, add rotateKeys RPC ( #1280 )
...
* author_rotateKeys
* Update Keys encoding
2019-08-08 12:58:36 +02:00
Jaco Greeff
724c4b8263
Return sessionIds & nextSessionIds in staking.info ( #1272 )
...
* Return sessionIds & nextSessionIds in staking.info
* Simplify
2019-08-06 16:34:11 +02:00
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
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
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
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
ebc2fbe3ee
Move (some) from session & elections to srml/types ( #1158 )
...
* Move (some) from session & elections to srml/types
* Just use createType instad of (new ClassOf(type))(value)
* Cleanup generation script (import file duplication)
2019-07-23 11:47:45 +02:00
Jaco Greeff
3b339a2bae
Remove some as any as Observable from derives ( #1129 )
2019-07-15 15:01:54 +02:00
Jaco Greeff
ee27e31275
SessionId extraction for 2.x ( #1127 )
...
* SessionId extraction for 2.x
* Run through e2e & update
2019-07-15 15:01:36 +02:00
Jaco Greeff
71c5920b1f
eslint rules ( #1099 )
...
* Off to the races - 3760 problems (1794 errors, 1966 warnings)
* Convert Array<T> -> T[] (not all correct, eg. extends)
* () => { -> (): void => {
* get is/as -> public get is/as
* public for getters, constructors & base Codec
* Some cleanups from previous overzealous search & replace
* Under 2k, 1874 problems (649 errors, 1225 warnings)
* ^^^ check that commit for details ;)
* Minor.
* rm config header
* Minor cleanups
* Default to tslint, eslint as option
* Trigger
* Update jsonrpc
* 1494 problems (433 errors, 1061 warnings)
* 1103 problems (135 errors, 968 warnings)
* 899 problems (9 errors, 890 warnings)
* 483 problems (9 errors, 474 warnings) (ignore any... for now)
* 366 problems (9 errors, 357 warnings)
* 336 problems (9 errors, 327 warnings)
* 148 problems (9 errors, 139 warnings)
* 31 problems (8 errors, 23 warnings)
* 0, 0
2019-07-14 12:15:14 +02:00
Amaury Martiny
a3ce8672af
Fix staking.info ( #1091 )
...
* Frankenstein
* Remove console.log
* Fix lint
* Remove console
* Fix tests
* Put back old version
* Add comment
* Store changeset data (filling in the blanks) (#1094 )
* Store changeset data (filling in the blanks)
* Option(StorageData, null) when not available
* Make test pass
2019-07-10 13:08:32 +02:00
Jaco Greeff
3b8db2ed3d
Rename SessionKeys fields ( #1046 )
...
* Rename SessionKeys fields
* Shorten
2019-06-21 16:49:20 +02:00
Jaco Greeff
22bf06e6e0
Remove derive {Struct,Vector}Any (new typing magic) ( #1019 )
...
* Remove derive {Struct,Vector}Any (new typing magic)
* Import ordering
* Small lint fix
2019-06-17 10:41:32 +02:00
Jaco Greeff
f9605cd710
Update nextKeyFor to cater for SessionKeys or SessionKey ( #1025 )
...
* Update nextKeyFor to cater for SessionKeys or SessionKey
* no StructAny (yes, done in other PR, but we are touching this...)
2019-06-15 23:37:24 +02:00
Thibaut Sardan
5f43da0623
Add rewardDestination to derive.staking.info ( #977 )
...
* rewardDestination in staking.info
* squash a couple lines together to please CodeClimate
2019-06-07 12:14:14 +02: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
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
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
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
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
Stefanie Doll
adec070434
multi calls for democracy.votes and staking.controllers ( #887 )
...
* .multi for democracy.votes & stating.controllers
* Removed leftover comment from https://github.com/polkadot-js/api/pull/875
* no new line at the end
2019-05-09 09:53:15 +02:00
Jaco Greeff
21dab00203
Basic same-type multi queries ( #866 )
...
* Basic same-type multi queries
* Remove extra map, straight to switchMap
2019-05-03 13:54:05 +02:00
Jaco Greeff
5445314d95
Bump deps ( #861 )
...
* Bump deps
* Align with published common
* Fix rxjs to 6.4.0 (false deprecations on 6.5.1)
2019-04-29 13:47:55 +02:00
Jaco Greeff
5a292db92f
Derive controllers from stashes ( #806 )
...
* Derive controllers from stashes
* Fix combineLatest import
2019-03-28 14:29:05 +01:00
Jaco Greeff
34888bd4fb
Remove /index imports (swap to bare) ( #773 )
...
* Remove /index imports (swap to bare)
* Bump common
2019-03-14 09:02:55 +01:00
Jaco Greeff
f95763906e
Add codec exports to types index ( #689 )
...
* Add codec exports to types index
* Use actual index exports (internally)
* Merge {AccountId, Balance, Moment}Of into parent classes
2019-02-13 16:00:59 +01:00
Jaco Greeff
a69cff1c64
Add derive.staking.intentionsBalances ( #595 )
...
* Add derive.staking.intentionsBalances
* Skip e2e test
* ts-lint?
* Alignment with new signatures, remove all slices
2019-01-17 09:55:08 +01:00