Julien
dacf2875b7
General WsProvider extensibility improvements ( #5467 )
...
* Make endpoints index selection extensible
* Expose endpoint
* Ensure events happen last
* Added endpoint stats
2023-03-03 08:23:25 +02:00
Jaco
a8d7566186
Adjust tests for node:test env ( #5509 )
2023-02-25 11:48:26 +02:00
Jaco
40810f2fdb
Cleanup tests (& fix ws.connect()) ( #5493 )
...
* Cleanup tests (& fix ws.connect())
* Await mock
* Adjust sc connect ordering
2023-02-17 11:57:34 +02:00
Jaco
b8233fb7b8
Adjust test expectations ( #5490 )
2023-02-16 21:10:17 +02:00
Jaco
2eb453c4ce
Cleanup class variable linebreaks ( #5422 )
2023-01-19 08:52:14 +02:00
Julien
d90ac68e29
Clarified WsProvider constructor parameters documentation ( #5404 )
2023-01-07 14:27:29 +02:00
Jaco
2c949e0fc5
Update headers for 2023 ( #5392 )
2023-01-01 10:25:51 +02:00
Jaco
d9aa61c786
Add isClonable getter on providers ( #5317 )
...
* Add isClonable getter on providers
* Use isClonable in API constructor
* mock clonable
2022-11-04 10:52:51 +02:00
Jaco
aa5cc1eef1
Use ReturnType<typeof setInterval> for timerIds ( #5060 )
...
* Use ReturnType<typeof setInterval> for timerIds
* Remove as number casts for clearInterval
2022-07-12 08:31:50 +03:00
Jaco
617a03ec05
Additional CI actions ( #5036 )
2022-07-06 00:22:36 +03:00
Jaco
5c6294b71c
Improve type argument generation for Option<...> types ( #5035 )
2022-07-05 16:01:10 +03:00
Jaco
75bbd042a9
Adjust NodeJS.Timout type usage ( #5026 )
2022-07-04 16:15:50 +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
a208cc9bb5
LRU Sizing ( #4872 )
2022-05-30 08:36:28 +03:00
serge
09a8d80144
make WS provider timeout configurable ( #4758 )
...
* make WS provider timeout configurable
* minor
2022-04-22 08:05:42 +03:00
Jaco
a392025a15
Adjust default "no RPC response" timeout to 60s ( #4746 )
2022-04-14 16:43:53 +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
63ba84a641
Clear connection timeout on disconnect ( #4681 )
2022-03-23 16:09:25 +02: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
f108d16d1b
RPC timeouts ( #4661 )
...
* RPC timeouts
* for loop
2022-03-17 10:14:26 +02:00
Jaco
392d447b99
Adjust LRU historic size (clarify isCachable flag) ( #4419 )
2022-01-06 09:31:13 +02:00
Jaco
8ba4ed5377
2022 ( #4404 )
2022-01-01 09:28:18 +02:00
Joey
094382373c
don't throw error at onSocketClose ( #4363 )
2021-12-20 10:19:44 +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
15ed0723f1
Adjust Node Websocket options (frame sizes) ( #4087 )
2021-10-21 12:54:25 +03: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
Jaco
7920565b97
Bump deps ( #3929 )
...
* Bump deps
* linting
2021-09-05 10:59:03 +02:00
Jaco
445a080f7d
Adjust Ws .disconnect() logic to always clear auto-connect ( #3749 )
2021-07-09 06:14:30 +02:00
Jaco
63189a6196
4.16 ( #3701 )
2021-06-26 10:37:06 +02:00
Jaco
2d02f61fa7
Align Data.Raw decoding with Substrate (32-bytes) ( #3573 )
...
* Align Data.Raw decoding with Substrate (32-bytes)
* CHANGELOG
* Encoding test updates
* provider.disconnect
* Adjust provider tests
* Unique connection URLs
* Dangling tests
* detectOpenHandles
* Additional
* Remove rx test (catered for by Promise wrap)
* Additional cleanups to tests
2021-05-27 10:18:56 +02:00
Jaco
b0de692147
Under Node.js allow for WS receiving up to 16MB messages ( #3562 )
2021-05-23 17:40:13 +02:00
Jaco
a7b4fe4dd0
Adjust internal TS definitions for providers ( #3503 )
2021-05-07 09:16:10 +02:00
Jaco
53fca2406a
Cleanup WebSocket handlers when close event has been received ( #3469 )
2021-05-02 09:24:10 +02:00
Jaco
378f359a76
add known upgrade block for Polkadot v30 ( #3468 )
2021-05-02 09:04:48 +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
ba470e7417
Bump WS reconnect delay from 1s -> 2.5s ( #3420 )
2021-04-21 12:27:16 +02:00
Ian He
08eda72d4b
clean ws-provider's states on disconnected ( #3197 )
...
* clean ws-provider's states on disconnected
* per comments
2021-02-23 15:36:10 +01:00
Jaco Greeff
dff859ba68
Don't send unsubscribe when already disconnected ( #3192 )
...
* Don't send unsubscribe when already disconnected
* Small cleanups
2021-02-20 12:37:05 +01:00
Jaco Greeff
94d26c76ec
Check for autoConnectMs on reconnect ( #3151 )
...
* Check for autoConnectMs on reconnect
* Update packages/rpc-provider/src/ws/index.ts
2021-02-05 22:03:31 +01:00
Jaco Greeff
2ee3242f41
Remove global ref, use x-global ( #3102 )
2021-01-24 16:11:43 +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
Jaco Greeff
09aa046ab4
Remove send queue, always require connection ( #2881 )
...
* Remove send queue, always require connection
* Adjust tests for non-queued
2020-11-28 12:57:24 +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