Jaco
63a55d2f8a
Cleanups for bestNumber derives ( #4318 )
...
* Cleanups for bestNumber derives
* Unused imports
* Re-exports of types for *.d.ts outputs
2021-12-11 09:35:52 +02:00
Jaco
969151c4a7
Additional derive cleanups ( #4308 )
...
* Additional derive cleanups
* unwrapNumber
* Adjust
2021-12-09 12:54:51 +02:00
Jaco
7cfad3b1c4
Derive combineLatest order adjustments ( #4186 )
2021-11-08 16:24:27 +02:00
Jaco
affa6ab1bd
Mark api.query.<section>.<method>.at as deprecated ( #4023 )
...
* Use api.at internally for sizeAt/entriesAt/keysAt
* Remove debug logs
* Mark api.query.<section>.<method>.at as deprecated
* formatting
* @deprecated formatting
* commenting
2021-10-06 08:53:50 +03:00
Jaco
d45a9cfe58
Rework derives to ensure cached registries ( #4021 )
2021-10-05 08:57:30 +03:00
Jaco
ff3882f5f7
Bump common (w/ rxjs 7) ( #3736 )
...
* Bump common (w/ rxjs 7)
* Adjust
* pre bump
* Cleanup imports
* Add missing switchMap
* CHANGELOG
* Remove duplicate imports
* Bump common
* Direct rxjs import
2021-07-07 09:26:30 +02:00
Jaco Greeff
f52e518b7b
Adjust extended derives with as-defined instances ( #3336 )
2021-03-18 17:08:18 +01:00
Jaco Greeff
c6785c533f
Use at-block registry/types for derive block/header ( #3320 )
...
* Use at-block registry/types for derive block/header
* Also apply to subscribe
2021-03-15 12:08:25 +01:00
Jaco Greeff
3c9b7de6c7
Add createdAtHash to Codec interface ( #3276 )
...
* Add createdAtHash to Codec interface
* Adjust linkedHash (also on )
* createdAtHash
2021-03-07 16:00:30 +01:00
Jaco Greeff
1c86333b5f
derive.chain.getBlock() now maps events to extrinsics ( #3020 )
...
* derive.chain.getBlock() now maps events to extrinsics
* Also apply to subscribeNewBlocks
* Cleanup
* breaking
2021-01-05 12:21:58 +01:00
Jaco Greeff
a9c9fb5769
2021 ( #3015 )
2021-01-03 11:26:46 +01:00
Jaco Greeff
208fbb24d5
Build esm (& add x-rxjs package) ( #2942 )
2020-12-11 18:44:23 +01:00
Jaco Greeff
8e6a1c8fb1
Bump dev (sort imports) ( #2923 )
...
* Bump dev (sort imports)
* Resort
* Adjust ApiInterfaceRx
2020-12-07 16:26:19 +01:00
Jaco Greeff
0e52e8fe23
Some type imports (interfaces) ( #2887 )
...
* Some type imports (interfaces)
* Additional
* Additional
* Small movements/fixes
* Additional
* Additional
* Unsaved...
2020-12-02 10:12:19 +01:00
Lovesh Harchandani
dd2dde5701
Fix name of "getBlock" in package "api-derive" and export it in "index.ts" ( #2857 )
...
Signed-off-by: lovesh <lovesh.bond@gmail.com >
2020-11-17 15:31:01 +01:00
Jaco Greeff
fb82db382e
Add derive.chain.subscribeNewBlocks ( #2765 )
...
* Add derive.chain.subscribeNewBlocks
* Expand
2020-10-22 19:52:03 +02:00
Jaco Greeff
cdd6544e20
SPDX ( #2619 )
2020-09-17 16:31:06 +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
6f092a1818
api.derive.chain.getBlock(<hash>) with author getter ( #2555 )
...
* api.derive.chain.getBlock<hash>) with author getter
* Update CHANGELOG.md
2020-08-31 21:12:14 +02:00
Jaco Greeff
4ec42f1750
Ensure non-destructive registry swap ( #2543 )
...
* Ensure non-destructive registry swap
* Update packages/api/src/base/Init.ts
2020-08-31 08:59:20 +02: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
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
458dec53dc
Session validators availability detection ( #1759 )
2020-01-28 18:10:06 +01:00
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +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
2875fdf2cf
Wrap all derives in memo (like rpc-core) ( #1564 )
2019-11-11 14:25:07 +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
ad9d21cae2
Remove outdated blockNumber refs. in API docs ( #1382 )
...
* Remove outdated blockNumber refs
* ExtendedHeader
* Update subscribeNewHeads.ts
2019-09-10 20:23:37 +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
895ed80449
subscribeNewHeads ( #1338 )
...
* subscribeNewHeads
* Update CHANGELOG
* Rebuild interfaces
* Sort interfaces, really expose plural
* Fix mocks
2019-08-24 12:10:42 +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
5ee2caf00e
More small readability enhancements ( #1296 )
...
* More small readability enhancements
* Pacify CC on manual checks
2019-08-11 22:44:02 +02:00
Amaury Martiny
92044d471c
Make api.rpc.*.* typed ( #1237 )
...
* Generate correctly
* Fix rpc-core
* Flexible types
* Make types work!
* Lint
* Fix grumble
* Re generate
* Fix lint
* Fix small bugs
* Maybe really fix lint?
* Fix lint again
* Fix lint
* Small ordering & formatting changes while playing...
2019-08-01 10:46:28 +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
Jaco Greeff
70bc823d25
Make Block, Header & Digest generic ( #1196 )
...
* Make Block, Header & Digest generic
* It lints
* Linting passes, tests passes
2019-07-26 14:34: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
Jaco Greeff
36d7a85ed2
Move HeaderExtended type to api-derive ( #923 )
...
* Move HeaderExtended type to api-derive
* Really remove HeaderExt from Header this time around
2019-05-17 11:44:14 +02:00
Stefanie Doll
c30d3a80e8
Added derive e2e tests and documentation ( #898 )
...
* export IExtrinsic
* Switch to localhos & enable tests in promise.spec
* Derive.accounts docs (copy from my other branch) + code examples
* Fixed existing accounts tests and added tests for all accounts.derive methods
* e2e tests and docs/ examples for balances.all and balances.fees
* Removed emty lines below jsdoc info
* tests & documentation dor derive.chain
* Addressed comments from former PR https://github.com/polkadot-js/api/pull/869
* Removed unused import
* obseralbe -> observable
* undo keith' commit
* use correct jsdocs syntax
* Re-enable skip
2019-05-15 11:50:28 +02:00
Stefanie Doll
db78aeb225
Fix for RPC bugs caused by uk spelling ( #904 )
...
* Replaced UK with US spelling
* -ised to -ized
* UK -> US spelling in chain rpc methods
* Tests for RPC chain methods on Alex
2019-05-14 21:27:16 +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