Jaco Greeff
602bb1406b
derive.referendum extended info ( #2086 )
...
* derive.referendum extended info
* update
* util bump
2020-03-24 17:39:37 +01:00
Jaco Greeff
8c011cdc86
Adjust new vote retrieval with entries ( #2080 )
...
* Adjust new vote retrieval with entries
* testing
2020-03-23 11:24:06 +01:00
Keith Ingram and Jaco Greeff
aa37e372dd
Derived account info flags ( #2068 )
...
* Derived account info flags
* Update packages/api-derive/src/accounts/info.ts
Co-Authored-By: Jaco Greeff <jacogr@gmail.com >
* Apply suggestions from code review
* Cleanups
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
2020-03-22 18:16:43 +01:00
Jaco Greeff
7a7d6e9b8a
New democracy types ( #2078 )
...
* New democracy types
* ReferendumInfo
* Adjust democracy derives
* Spring cleaning
* Remove ReferendumInfoExtended
2020-03-22 11:05:57 +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
Keith Ingram
032f2dc040
Remove parachains.watermark ( #2026 )
2020-03-11 12:18:47 +01:00
Jaco Greeff
99d4806a0d
Enable new indexes queries ( #2022 )
...
* Enable new indexes queries
* update mock for state_getKeys
2020-03-10 17:56:20 +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
bcbd4b8d40
linked maps with getStorage only
2020-03-09 21:42:56 +01:00
Jaco Greeff
8ad3d35dd2
Lock all indeeds locks all
2020-03-09 18:44:30 +01:00
Jaco Greeff
77d894dd00
reset identityOf
2020-03-09 14:21:06 +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
6bb421dac6
Fix StorageKey args throw
2020-03-07 10:37:28 +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
e947c638ff
Fix remove deprecated api 'Observable.create' ( #1998 )
2020-03-05 07:00:59 +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
Luke Schoen
b182fd2428
fix: Fixes TypeError: Cannot read property 'vesting' of undefined ( #1970 )
...
We're converting our chain from PoA to PoS in this PR https://github.com/DataHighway-DHX/node/pull/52/commits/7c8c96939ab6a2b77dd3a2f4bef427e831dafbda
But when I run the chain with those latest changes I got error `TypeError: Cannot read property 'vesting' of undefined` when I tried to go to the "Accounts", "Transfer", or "Extrinsics" app using polkadot.js.org/apps, as explained here https://matrix.to/#/!XOxcnpiHXHhAjJfRFP:matrix.parity.io/$0oidO-aZvsjMRdskB2nig6P_Y4CjH4Gc6TMrl4V7ZB8?via=matrix.parity.io&via=matrix.org&via=matrix.dapp.org.uk
After cloning https://github.com/polkadot-js/apps and debugging the error, I found that this change resolved the error and the error no longer appears when I access those apps
2020-02-27 21:28:41 +01:00
Keith Ingram and Jaco Greeff
4e2fb23bdf
Nullable api.derive.parachains.info ( #1968 )
...
* api.derive.registrar.parachains
* remove api parse
* suggestions
* some
* parachains: overview/info
* rm all
* rm all
* refine
* null parachain info
* isNone
* isNone
* isNone
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
2020-02-27 17:57:26 +01:00
Jaco Greeff
4e756704ea
Some minor cleanups ( #1966 )
...
* Some minor cleanups
* Small additions
* Cleanup ExtrinsicEra decoding
* Minor adjustments
* Remove support for metadata v0 parsing
* Adjust refCountDelay
* refCountDelay comments
* Adjust Metadata tests
* Metadata default creation
* Funky lines
* Cleanup as AccountIdAndIndex
* Some derive returns
* Try and cleanup info extraction
2020-02-27 15:01:20 +01:00
Jaco Greeff
85ae6f949b
Allow construction of HashMap ( #1955 )
...
* Allow construction of HashMap
* WIP... add Map to codec, extend BTreeMap & HashMap from it
* Rework various map tests
* registry.createClass
* createClass in tests
2020-02-26 21:30:38 +01:00
Keith Ingram
1a50298ffe
Split parachains.derive calls ( #1948 )
...
* api.derive.registrar.parachains
* remove api parse
* suggestions
* some
* parachains: overview/info
* rm all
* rm all
* refine
2020-02-26 11:26:04 +01:00
Jaco Greeff
8598002801
Swap to registry.createType ( #1947 )
2020-02-26 11:17:11 +01:00
Jaco Greeff
253e48f7bb
Return all additional identity fields ( #1943 )
2020-02-25 15:10:47 +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
3bf4c3fac5
Adjust class privates via #, where applicable ( #1921 )
...
* Adjust class priates via #, where applicable
* Remove stray log
* Cleanup rpc-provider
* Small adjustments
* No private access in tests
* Submittable privates
* Use derive for nonce derivation
* Tweak observers
* Alphabetical privates
2020-02-22 11:29:50 +01:00
Jaco Greeff
4540495a44
BigInt support (& some TS typing cleanups) ( #1919 )
...
* Some TS typing cleanups
* docs building again
* yarn.lock rewrite
* tweaks
* BigInt support
* Checktypes with BigInt
* AccountIndex support for BigInt
* Fix ApiPromise signAsync
2020-02-21 17:26:05 +01:00