Jaco Greeff
2c25936e2c
Display elections runnersUp in reverse order ( #1565 )
2019-11-13 10:52:24 +01:00
Jaco Greeff
2875fdf2cf
Wrap all derives in memo (like rpc-core) ( #1564 )
2019-11-11 14:25:07 +01:00
Jaco Greeff
3c47c3fdc3
Detect session.validators for derive extraction ( #1562 )
...
* Detect session.validators for derive extraction
* Add comment
* Indexed extraction without session
2019-11-10 12:25:34 +01:00
Jaco Greeff
022c7ea645
Swap internal derives to use api.derive.* ( #1553 )
...
* Swap internal derives to use api.derive.*
* Rx vs normal decorate
* Small cleanups
* Res-use sessions
* Cleanup types
* Fix refCount lost subs
* Small cleanups
2019-11-07 17:34:53 +01:00
Jaco Greeff
3998b1bcbd
Whack derive memo ( #1546 )
...
* Whack derive memo
* Bump common
2019-11-05 14:36:53 +01:00
Jaco Greeff
2371d6a29c
Remove double-up-drr (memo vs rpc) ( #1541 )
...
* Remove inner memo (no double-up on stringify)
* Validators-specific query
2019-11-03 23:47:55 +01:00
Jaco Greeff
e601ae27a1
Re-add derive memo (def. has an impact) ( #1539 )
2019-11-03 13:28:42 +01:00
Jaco Greeff
506b042f8c
Remove derive memos ( #1538 )
...
* Remove derive memos
* Remove outer memo
* Over-eager replace
2019-11-03 11:38:36 +01:00
Jaco Greeff
8d3cb72189
currentEraPointsEarned not on V1
2019-11-03 00:12:15 +01:00
Jaco Greeff
7cc961f789
Staking overview derive ( #1537 )
...
* Staking overview derive
* Expand derives
* Extract currentIndex/currentEra
* WIP
* Controllers opt
* Add memo
* Memomize the whole lot
* Doc building fixes
* Doc fixes #2
2019-11-02 23:10:10 +01:00
Jaco Greeff
dc105e6b31
Sub/unsub cleanups ( #1535 )
...
* Sub/unsub cleanups
* drr full idAndIndex
* Memo on nick call
* refCountDelay
* Remove scheduler param, always asap
* Flatten
* Test cleanups
* Make tests pass
* Remove logs
* Drop nick memo
* sourceConnection.unsubscribe
* Small cleanups
2019-11-01 14:17:47 +01:00
Jaco Greeff
8379689eaa
Cleanup staking info ( #1532 )
...
* Cleanup staking info
* Cache calls
* V1, V2 (Aura & Babe) tested & working
* Hopefully pacify docs build
* Second time lucky?
* Third time lucky?
* Fouth time
2019-10-30 14:15:20 +01:00
Jaco Greeff
41cf32c808
Flatten more combineLatest into queryMulti ( #1528 )
2019-10-29 17:49:42 +01:00
Jaco Greeff
62eab2d661
Fix returned accountId for derived staking.info ( #1501 )
2019-10-21 17:26:34 +02:00
Jaco Greeff
db3cb47d05
Firm up on derive typings & results ( #1489 )
...
* Firm up on derive typings & results
* Move assertion (eslint vs ts, round 1, fight!)
2019-10-16 10:13:13 +02:00
Amaury Martiny
00d86011a7
Correctly type api.query.*.* ( #1406 )
...
* v1, very wip
* Refactor file arch
* Clean some code
* Make it work for all methods
* Have correct typings!
* Add similar types
* Fix missing imports
* Move function order
* Put any for now
* Make api.queryMulti work
* Add override check
* Fix typings to make it better
* Uncomment code
* Fix lint
* Fix lint
* Put checkTypes into correct place in file
* Spaces...
* Add multi test
* Use interface instead of type alias
* Add comment
* Fix indentation
* Ignore query.types.ts
2019-09-23 16:46:35 +02:00
Jaco Greeff
9ffeda1749
Fix redeemables ( #1358 )
2019-09-02 17:58:36 +02:00
Jaco Greeff
2dd7cc0e69
Typescript-eslint 2 ( #1353 )
...
* Make a start
* More minor cleanups
* Some more cleanups
* Last round?
* Exclude build folders
2019-09-02 07:01:32 +02:00
Jaco Greeff
35a296037a
Update types for offences ( #1317 )
...
* Update static (doc) metadata
* Offences types (definitions & generated)
* Optional recentlyOffline
2019-08-17 10:45:18 +02:00
Jaco Greeff
fbac330e10
Minor readability enhancements ( #1313 )
...
* Minor readability enhancements
* Split unwieldly ApiBase
* Fix import case
* Some movements, init in root
* Simplify overloaded functions
* Some more reworks
* Hoist non-class functions
* Flatten
* Split decorate and init
* Split meta from chain
* getNext cleanup
2019-08-16 00:42:54 +02:00
Jaco Greeff
a39caccedc
Minor cleanups, no functionality ( #1308 )
...
* Minor cleanups, no functionality
* Shared fee parsing
2019-08-14 15:04:58 +02:00
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