Jaco Greeff
cdd6544e20
SPDX ( #2619 )
2020-09-17 16:31:06 +02:00
Jaco Greeff
430beb9f25
staking.currentEra returns Option ( #2574 )
...
* staking.currentEra returns Option
* Flatten
* Cleanups.
* Option<EraIndex> or EraIndex
* Test unwrapOrDefault
2020-09-03 12:45:50 +02:00
Jaco Greeff
b6d1be6ee5
Only memomize via instanceId ( #2572 )
...
* Add memoizee instanceId
* Gotcha.
* linitng
2020-09-02 17:13:38 +02:00
Jaco Greeff
ee0a46adc4
Cleanup progress calcs for Aura ( #2425 )
2020-07-14 10:02:44 +02:00
Jaco Greeff
e5c2c6a228
Use BN in-place operators as appropriate ( #2381 )
...
* Use BN in-place operators as appropriate
* CHANGELOG
2020-06-23 14:02:54 +02:00
Jaco Greeff
45786b31da
Bump deps ( #2286 )
...
* Bump deps
* Linting cleanups
2020-05-15 13:35:15 +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
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
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
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
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
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
883b191ae7
Try and detect v2 for node-template-like chains ( #1607 )
2019-11-26 09:04:23 +01:00
Jaco Greeff
ed4af1d04b
Remove v1 era/session length changes ( #1606 )
2019-11-26 07:59:17 +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
b2daf7482f
Types for new slashing ( #1585 )
...
* Types for new slashing
* Unwrap new nominations structures
* Small cleanups
2019-11-19 13:59:27 +01:00
Amaury Martiny
0a27f63423
Make api.const.*.* typed ( #1584 )
...
* Make api.const.*.* typed
* Fix tsc errors
* Remove ConstantCodec
* as any as
* Remove as any
2019-11-18 17:21:54 +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
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
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
7555a3a7ce
Use currentEraStartSessionIndex for babe ( #1530 )
...
* Use currentEraStartSessionIndex for babe
* Update WithdrawReasons
2019-10-29 23:25:45 +01:00
Jaco Greeff
41cf32c808
Flatten more combineLatest into queryMulti ( #1528 )
2019-10-29 17:49:42 +01:00
Jaco Greeff
0b71291cf1
Update latest extrinsic version ( #1511 )
...
* Update latest extrinsic version
* Don't export const with types
2019-10-25 08:51:03 +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
Jaco Greeff
f145fe7c8b
Fix isGenesisSlot (only on Babe) ( #1443 )
2019-10-03 22:46:31 +02:00
Jaco Greeff
8de45cb09e
Update metadata (Babe updates) ( #1410 )
...
* Update metadata (Babe updates)
* Bump with latest master
* Use genesisSlot as opposed to epochStartSlot (wrongly)
* Calculate session from genesis start
* Re-create after master merge
* Kusama CC1 chain type overrides
2019-09-24 16:47:04 +02:00
Jaco Greeff
0f21d522d7
Don't fail session info when babe is not available ( #1391 )
2019-09-13 12:27:39 +02:00
Jaco Greeff
07b89e759c
Some non-functionality readability cleanups ( #1295 )
...
* Some non-functionality readability cleanups
* Small Address cleanups
2019-08-11 21:45:16 +02:00
Jaco Greeff
14f018d57f
Fix session/era calculations for Babe ( #1235 )
2019-07-30 14:24:41 +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
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
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
Stefanie Doll
8ca4b5aa3b
belated naming fix ( #1104 )
2019-07-10 19:09:03 +02:00
Stefanie Doll
1393c8c5cf
Include api.consts in api.derive methods ( #1084 )
...
* Bring back derive changes
* Fix fees tests
* contract fees for v1.0
* Contract fees v1.0 test
* Bring back console.logs
* Uase api.consts instead
* linter fixes
* more linter nits
* Fixed staking & session
* .skip()
* Formatting nits
2019-07-10 16:56:11 +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
ea991e4ccc
Additional types for latest substrate master ( #1016 )
...
* Additional types for latest substrate master
* Method tests updated for new structure
* Adjust extrinsic test indexes
* Adjust type-extrinsics tests
* Adapt for new session/era calc
* Small comment update
* Update with patch for system
* Adjust tests with system calls in metadata
2019-06-15 19:06:02 +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
2dfc55cb5c
Update api.derive to use api.queryMulti ( #911 )
...
* session api.queryMulti
* Make a single subscription to retrieve all session info
* Adjustments
* WIP
* Seems mostly comprehensive, need to full test e2e
* e2e tests for operations
* Allow "create from empty"
* skip
* Remove comment
* Remove ancient ?'s
* Update types.ts
2019-05-16 11:36:41 +02:00