Jaco
fd5b48058e
Bump common ( #5043 )
...
* Bump common
* Adjust deprecated util signatures
* Adjust
* Adjust http mock typings
2022-07-08 09:31:49 +03:00
Jaco
3a8b1c5683
Adjust assert usage ( #4966 )
...
* Adjust assert usage
* Adjust assert
* Apply suggestions from code review
2022-06-20 20:37:17 +03:00
Jaco
e7beb2d46f
Expose provider errors & .stats on API ( #4878 )
...
* Expose provider errors & .stats on API
* Expose WS errors
2022-05-31 10:24:17 +03:00
Jaco
ba188dcc0d
JSONRPC request/response handler opts ( #4722 )
...
* JSONRPC request/response handler opts
* Fix test
* CHANGELOG
2022-04-08 08:51:44 +03:00
Jaco
d8ad237b00
Add total.bytes{Recv, Sent} to provider stats ( #4671 )
2022-03-22 08:54:42 +02:00
Jaco
9dfb5cb237
state_trieMigrationStatus RPC ( #4664 )
2022-03-18 09:40:37 +02:00
Jaco
d63108a4b4
Add basic provider stats ( #4662 )
...
* Add basic provider stats
* Add timeout counter
* Make stats() optional for providers (don't break what is out there)
* Update packages/rpc-provider/src/types.ts
2022-03-17 17:33:40 +02:00
Jaco
8ba4ed5377
2022 ( #4404 )
2022-01-01 09:28:18 +02:00
Jaco
1c78464e23
Split *.spec.ts into own reference ( #4353 )
2021-12-19 11:33:39 +02:00
Jaco
736fd536f9
Use tsconfig references ( #4328 )
...
* Use tsconfig references
* Move types-known (temp until lower-level split)
* Sources
* Adjust
* tesconfig.eslint.json
* Bumps
* AdjustAdjust
* Linting passing... a start...
* Adjust
* Merge derive
* Merge
* api-contract-support
* It builds?
* compare locations
2021-12-14 12:04:50 +02:00
Jaco
5e1670dbae
Provider-level caching for historic requests ( #4195 )
...
* Provider-level caching for historic requests
* LRUCache
* Adjust
* Adjust
* Adjust
* Opts
* private variables
* Implementation link
* lru .entries adjustment (using .keys)
* Adjust expectations
2021-11-10 14:46:13 +02:00
Jaco
5eb3534d8e
Bump dev (w/ eslint 8) ( #4070 )
...
* Bump dev (w/ eslint 8)
* Additional linting
* Additional
* More lint fixes
* Last batch
* Additional
* Cleanups
2021-10-17 14:49:26 +03:00
Ian He
f28d648fac
HttpProvider support clone() ( #3949 )
...
* HttpProvider support clone()
* fix lint
2021-09-15 06:31:35 +03:00
Jaco
10dacf1d16
Correct dangling (old-style) HttpProvider docs ( #3635 )
2021-06-11 12:54:10 +02:00
Jaco
a7b4fe4dd0
Adjust internal TS definitions for providers ( #3503 )
2021-05-07 09:16:10 +02:00
Jaco
557283a3d1
Struct decoding error messaging ( #3425 )
...
* Struct decoding error messaging
* Error adjust
* Tests
* Bump common, use stringify
* Linting
* Adjust
* Bumps
* Rebump
* Assert cleanups
* Don't modify original value on encoding
* util bump, fixe compact encoding
2021-04-22 15:02:54 +02: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
Jaco Greeff
98a2ef9d72
Support ABI files with wasm (.contract output) ( #2841 )
...
* Support ABI files with wasm (.contract output)
* AbiBase exports
* Additional default exports
* Remove any
* Fix build
2020-11-12 12:23:28 +01:00
Jaco Greeff
21d0622f84
Bump common ( #2832 )
...
* Bump common
* Update for new common non-default exports
* Don't export createSubmittable
* Adjust exports
* default export adjustments
* Some additional non-default exports
2020-11-09 19:41:29 +01:00
Jaco Greeff
cdd6544e20
SPDX ( #2619 )
2020-09-17 16:31:06 +02:00
Jaco Greeff
c10e4d3fc1
Use polyfills from polkadot-js ( #2616 )
...
* Use polyfills from polkadot-js
* no empty catch
* Non-working asjustments
* Adjust WS mocking
* Bump polyfills
* Bumps
* Restore common
2020-09-17 10:05:34 +02:00
Jaco Greeff
2a36987140
Bump deps (incl. isomorphic-fetch replacement) ( #2614 )
...
* Bump deps (incl. isomorphic-fetch replacement)
* Bump ts
2020-09-16 08:53:50 +02:00
Jaco Greeff
00bc441f0e
Add connected() to API interface ( #2580 )
...
* Add connected() to API interface
* Slight doc update
* Align ApiRx
* isConnected() usage
* Updates
* Retrieve isConnected for API via observable
* Remove (now) useless Rx test
2020-09-04 17:57:02 +02:00
Brad Larson and Brad Larson
f821ab8ecd
[NEW] Support for custom headers with providers ( #2423 )
...
* [NEW] Support for custom headers with providers
This allows the user to supply arbitrary headers when constructing the
providers.
* [FIX] null -> undefined, use isChildClass
Co-authored-by: Brad Larson <brad@polychain.capital >
2020-07-14 14:49:42 +02:00
Jaco Greeff
47fc4a2b3c
Bump deps w/ eslint ( #2302 )
...
* Bump deps w/ eslint
* Additional cleanups
* Additional
* @polkadot/types done
* Additional
* @polkadot/typegen done
* Additional
* @polkadot/rpc-core done
* Additional
* Additional
* Additional
* docs
* @polkadot/api-derive done
* @polkadot/api done
* @polkadot/api-contracts done
* Update tests
2020-05-24 09:24:45 +02:00
Jaco Greeff
58de0b8b9c
Rewrite yarn.lock ( #2127 )
2020-04-01 23:49:56 +02: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
Jakub Pánik
59e069f091
Added unsubscribe return function to wsProvider.on() ( #1780 )
...
* Added unsubscribe return function to wsProvider.on()
* Updated mocks, added noop to http provider
2020-01-30 16:48:11 +01:00
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +01:00
Jaco Greeff
c077d0f2e7
Bump deps ( #1550 )
...
* Bump deps
* Updates
2019-11-06 22:56:52 +01: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
417a9ffceb
Bump deps ( #1351 )
2019-08-29 16:21:26 +02:00
Jaco Greeff
9b1aa6aece
Bump dev ( #1344 )
2019-08-27 13:20:29 +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
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 and Amaury Martiny
c01ade86a6
Convert tests to ts and fix existing ( #936 )
...
* Add jest watch option to package.json
* convert promise-alex-spec to ts & add types
* convert ./api tests from JS to TS
* convert ./api tests from JS to TS pt. 2
* More convert tests from JS to TS
* rpc-provider convert tests from js to ts
* rpc-provider tests js => ts
* rpc-provider tests js => ts
* linting issues
* tslint fixes
* 101 => 68 typescript errors
* WIP
* connect() e2e tests
* more fixes
* Fix linting errors of new ERA tests after merge
* test for listeners in connect
* formatting
* getting there...
* re-add skips
* test refactoring & codeclimate fixes
* more fixed tests
* mock.body workaround
* Fixed wrong test description
* ApiPromiseInterface => Api
* ws polyfill / send
* bring back isZero() test
* .then().catch() => .catch()
* Removed leftover body
* Type ProviderInterface => Http
* Fixed polyfill tests
* trailing whitespce
* (mock.body as any)['test_body'] and Balance
* Fix autoconnect in WsProvider
* Fixed part of linting errors in ERA tests
* call unused const unsubscribe
* added ts-ignores for testing private properties/ methods of Provider
* Archive node test
* Fixed linting for ERA tests
* Further changes
* Update packages/rpc-provider/src/ws/polyfill.spec.ts
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* relative paths for imports inside module & reordering of imports pt. 1
* relative paths for imports inside module & reordering of imports pt. 2
* added skip back to e2e transactions
* Fix some more tests in TS (#952 )
* Fix some more tests in ts
* Add more constructor
* More typing in ./api
* .skip
* <SubmittableResult>'s
* .catch() -> return()
* Extrinsics tests
* Left TODO's for extrinsic e2e tests
* Workaround for failing Type Extrinsic tests
2019-05-27 17:08:06 +02:00
Jaco Greeff
34888bd4fb
Remove /index imports (swap to bare) ( #773 )
...
* Remove /index imports (swap to bare)
* Bump common
2019-03-14 09:02:55 +01:00
Jaco Greeff
b2f06188d9
Add Api{Promise,Rx}.clone() - new instance, new transport ( #668 )
...
* Add Api{Promise,Rx}.clone() - new instance, new transport
* If source is not ready, load from chain
2019-02-08 16:43:58 +02:00
Jaco Greeff
a2f863c56b
Expose api.disconnect() ( #664 )
...
* Expose api.disconnect()
* Noop for non-WS disconnects
2019-02-08 16:32:38 +02:00
Jaco Greeff
6678d7255c
Remove api-observable ( #530 )
...
* 2019
* Remove api-observable
* tuples (SomeLonelyType) -> SomeLonelyType
* Bump to 0.37.0
2019-01-04 16:18:44 +01:00
Jaco Greeff
69b05c7fef
Allow any provider into API constructor ( #444 )
...
* Allow any provider into API constructor
* Update documentation
* Remove combineLatest exposure (deprecation error)
* Linting & test cleanups
* Exclude docs from codeclimate
2018-12-06 11:28:40 +01:00
Jaco Greeff
9092250acc
Move types.d.ts -> types.ts ( #421 )
...
* Move types.d.ts -> types.ts
* Bump common deps
2018-11-29 12:13:28 +01:00
Jaco Greeff
4805f9cb36
Update LICENSE and README ( #408 )
...
* Update LICENSE and README
* Bump
2018-11-21 13:37:27 +01:00
Jaco Greeff
d6b6713418
Classify JSONRPC coder ( #341 )
2018-10-25 14:04:26 +02:00
Jaco Greeff
55ac4626d5
Cleanup imports from @polkadot/util ( #315 )
...
* Cleanup imports from @polkadot/util
* Example imports
* Alphabetic imports
2018-10-18 13:30:04 +02:00
Jaco Greeff
dd521f0e45
Formatting ( #260 )
2018-10-11 21:35:51 +02:00
Jaco Greeff
2b88a8f43c
Expand API documentation ( #259 )
...
* Expand API documentation
* Cleanups
* Structuring
* Checks & cleanups
2018-10-11 20:56:42 +02:00