Jaco Greeff
8213fa7cb9
Add validator total to staker rewards ( #2129 )
...
* Add validator total to staker rewards
* yarn rewrite
2020-04-02 16:16:10 +02:00
Jaco Greeff
0dc46445bc
Bump dev (incl. lint fixes) ( #2126 )
...
* Bump dev (incl. lint fixes)
* Fix call encoding (stepped into that one)
* Event struct order
* Update with missing tuple type (getTypeDef type)
2020-04-01 22:44:34 +02:00
Jaco Greeff
5ab0bf3998
Aplit derive session.{info, progress} ( #2117 )
2020-03-30 18:20:34 +02:00
Jaco Greeff
bb14471e60
Consistency in Derive* type names ( #2106 )
2020-03-27 15:34:41 +01:00
Jaco Greeff
e6afed9bb1
Allow electedInfo commition with/without linked maps ( #2060 )
2020-03-18 00:08:49 +01:00
Jaco Greeff
a613308bdb
Update
2020-03-17 19:34:51 +01:00
Jaco Greeff
a863e5eb95
Non-array nominators
2020-03-17 19:22:16 +01:00
Jaco Greeff
82c1e3f35a
Cater for new non-linked map validator queries ( #2055 )
...
* Cater for new non-linked map validator queries
* Update staking tests
* stakers -> stashes
2020-03-16 11:13:46 +01:00
Jaco Greeff
63573ca0de
Add ownExposure & ownSlashes ( #2054 )
2020-03-16 08:15:00 +01:00
Jaco Greeff
f942510309
Expose stakerSlahes & eraSlashes ( #2052 )
2020-03-15 17:49:15 +01:00
Jaco Greeff
908d0fcf52
Add missing commission to payout calculations ( #2051 )
...
* Add missing comission to payout calcs
* yarn
* Bump dev with version update fix
2020-03-15 09:51:52 +01:00
Jaco Greeff
94a3b1f09a
eraPoints args ( #2047 )
2020-03-13 21:05:40 +01:00
Jaco Greeff
dd217f82b2
Chunk keys & values retrievals on keys()/entries() ( #2046 )
...
* Chunk keys & values retrievals on keys()/entries()
* Bump chunk sizes
* Fix concatMap index
* Update mock
2020-03-13 19:40:57 +01:00
Jaco Greeff
d9dad3566a
Use asyncScheduler for all derives ( #2043 )
2020-03-13 12:32:42 +01:00
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