Jaco Greeff
affa5d390c
Expose derive staking.nextElected ( #2042 )
2020-03-13 08:45:28 +01:00
Jaco Greeff
98e1cc3f73
Add staking.eraExposure derive ( #2036 )
2020-03-12 21:57:17 +01:00
Jaco Greeff
c2f9ef7ca8
Add .keys on storage entries ( #2032 )
...
* Add .keys on storage entries
* Pass isOptional to storage type unwrap
* Linked maps TS types
2020-03-12 09:12:11 +01:00
Jaco Greeff
8995ef6ae2
dedupKeyPrefix as const
2020-03-11 17:01:07 +01:00
Jaco Greeff
3a37bf1e6b
Add multi variants for derive staking query & rewards ( #2029 )
2020-03-11 15:59:36 +01:00
Jaco Greeff
a09fc51693
Add stakerRewards for available reward calcs ( #2028 )
2020-03-11 12:33:12 +01:00
Jaco Greeff
d818f61dc8
Support new map nextKeys in derives ( #2021 )
...
* Support new map nextKeys in derives
* Update packages/api-derive/src/staking/query.ts
2020-03-10 15:07:02 +01:00
Jaco Greeff
92cdc6c840
Query exposure via clipped ( #2020 )
2020-03-10 13:16:15 +01:00
Jaco Greeff
071b5ba7cb
Re-add erasRewards ( #2019 )
2020-03-10 12:09:18 +01:00
Jaco Greeff
049a1a59f5
Rework eras* calls with minimum information ( #2018 )
2020-03-10 08:20:54 +01:00
Jaco Greeff
c1facd8b1c
memo for range & entries
2020-03-09 22:57:09 +01:00
Jaco Greeff
5b40d95b0f
Disbale identity ( #2016 )
2020-03-09 14:12:52 +01:00
Jaco Greeff
81a2a51610
Expose eraReward on derives ( #2015 )
2020-03-09 10:14:45 +01:00
Jaco Greeff
9bf854445c
Fix entries values decoding ( #2011 )
...
* Fix entries values decoding
* Linting
* Properly unwrap storage subs
2020-03-08 12:57:03 +01:00
Jaco Greeff
0a6c6ec4c5
Combine points into stakerRewards ( #2008 )
...
* Combine points into stakerRewards
* Bump dev
2020-03-08 09:26:54 +01:00
Jaco Greeff
adee447cd0
Add .args to decoded StorageKeys ( #2004 )
...
* Add .args to decoded StorageKeys
* Small opts
* Formatting
2020-03-06 13:47:40 +01:00
Jaco Greeff
89992ea03e
Era exposure cleanups via .entries ( #2003 )
2020-03-06 11:06:10 +01:00
Jaco Greeff
aaf1273794
Additional derives for new staking points & rewards ( #1994 )
...
* Additional derives for new staking points & rewards
* Fix method name
* StakingLedger update
* Expand derives
* Cleanups
* Cleanup Compact decode
* Cleanup derives
* Update CHANGELOG
* Split types
2020-03-05 15:37:34 +01:00
Jaco Greeff
4feed1db5d
Bump metadata (incl. lazy payouts) ( #1995 )
...
* Bump metadata (inl. lazy payouts)
* Fix currentElected via generic
* Update tests for latest metadata
2020-03-03 16:13:28 +01:00
Jaco Greeff
cbc14cc291
Add new staking types, support derives ( #1828 )
...
* Add new staking types
* StakingLedgerTo213 - StakingLedgerTo223
* StakingLedgerTo223 in polkadot (dev)
* Add derive activeEra
* Map Ponts -> RewardPoints
* StakingLedger override CHANGELOG
* Cleanups
* Apparent CC dupes (don't see it, but cleanup useul)
* Cleanup result formatting for indexes
* Map nextElected -> validators
* Fix StakingLedger to current
* Merge CHANGELOG
* Mention derive staking updates
* Mark derive changes as breaking
2020-02-24 16:52:48 +01:00
Jaco Greeff
2b5be7eaab
Remove unexported staking.infostash derive (duplicated as .query) ( #1877 )
2020-02-17 08:46:59 +01:00
Jaco Greeff
2de7a3c130
Add .keyPrefix for storage keys ( #1809 )
...
* Add .keyPrefix for storage keys
* Fix hex length
2020-02-05 15:15:49 +01:00
Jaco Greeff
4aa5693906
Extend type generation ( #1783 )
...
* Cleanup type overrides
* Generate (with catch-all removal)
* Progress
* Re-gen tx types
* Remove unneeded option check
* Linting updates
* Update CHANGELOG (cleanups as per comments)
2020-01-31 15:34:06 +01:00
Jaco Greeff
458dec53dc
Session validators availability detection ( #1759 )
2020-01-28 18:10:06 +01:00
Jaco Greeff
eb5ee9860b
Multi query adjustments ( #1732 )
2020-01-20 13:58:07 +01:00
Jaco Greeff
ffa60d1cfa
Drop V1 support in derive ( #1718 )
...
* Drop V1 support in derive
* Re-do staking with multi
* Re-bump deps
* Adjusts tests (no alice_session)
* CC
2020-01-14 15:55:25 +01:00
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +01:00
Jaco Greeff
8a5a86e8b3
Better performant per-account staking queries ( #1652 )
...
* Better performant per-account staking queries
* Rename retrieval (no confusion)
* staking.info -> staking.account
* Update .info test
2019-12-09 10:14:51 +01:00
Jaco Greeff
9c337422a5
Add derive.staking.electedInfo ( #1612 )
2019-11-27 14:48:00 +01:00
Jaco Greeff and Amaury Martiny
011e24bd49
Pass registry to all codec types ( #1592 )
...
* Pass registry to all codec types
* Pass through registry inside API (where the rubber meets the road)
* Small additions
* Derive w/ registry
* Types are more-or-less covered
* Some test adjustments (guided by linting)
* Rid the world of some ../injector
* Additional cleanups, merge injector into registry
* Cleanup extrinsics (always passing registry)
* Remove injector imports (not all replaced)
* Typ spec cleanups
* Phase 1 - types seem lint-free
* rpc-{core,provider} lint free
* Start working through metadata
* Small metadata additions
* Some e2e tests (out-of-order)
* Down to a handful
* Fixup tests for packages/types/src/codec/*.spec.ts
* packages/types/src/codec passes all tests
* packages/types ok (Convert storage with registry fn)
* progress (sort out injection, dreaded find-before msg)
* Down to 1 lint issue...
* Linting done... along with on-demand import
* Exposed ordering
* Remove global injects
* Cleanup comments
* Add CHANGELOG & UPGRADING
* Apply suggestions from code review
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* Update Metadata description
2019-11-21 16:32:39 +01:00
Jaco Greeff
1c6a2582f3
Controllers on Alex ( #1587 )
2019-11-19 16:01:31 +01:00
Jaco Greeff
b2daf7482f
Types for new slashing ( #1585 )
...
* Types for new slashing
* Unwrap new nominations structures
* Small cleanups
2019-11-19 13:59:27 +01:00
Jaco Greeff
a31921b88e
Fix era countdown block indicator ( #1578 )
2019-11-15 18:41:51 +01:00
Jaco Greeff
c44cb1858e
Fix unlocking/redeemable calc with currentEra ( #1572 )
...
* Fix unlocking/redeemable calc with currentEra
* typo
* >= 0 for era check
* Reverse >= 0, it is only 0
* Pass isVesting flag via balances.all
2019-11-14 18:27:25 +01:00
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