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
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
1f6c8c2eb8
Use assertReturn to cleanup ( #2804 )
...
* Use assertReturn to cleanup
* Remove Uint/Int duplication
* Adjust
* ws errors, part 2
* .
* Adj. manual
* adj
* switchMap
* Revert "switchMap"
This reverts commit edfa4a2258f09042b61a27fd3812f0c53039fe4f.
* Revert.
* Revert.
* protected constructor
* Correct isHexJson flag
* Remove isHexJson (always detect)
* Adjust
* Flags
2020-10-29 17:17:22 +01:00
Jaco Greeff
fb377fb0d4
Adjust index WS imports ( #2785 )
2020-10-26 22:36:03 +01:00
Mokhtar Naamani and Jaco Greeff
773618acfb
Disable websocket outgoing message fragmentation for w3cwebsocket ( #2738 )
...
* Disable websocket outgoing message fragmentation for w3cwebsocket
* Message fragmentation with 256K fragment size
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
2020-10-16 21:57:26 +02: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
e425a38a7c
Cleanups for WebSocket class detection and creation ( #2604 )
...
* Cleanups for WebSocket class detection and creation
* Create change
2020-09-14 13:08:28 +02:00
Jaco Greeff
ad8ad42344
Map Websocket error codes to short descriptions ( #2601 )
2020-09-13 14:23:00 +02:00
Jaco Greeff
5af98cc89e
Retry WS on initial connection failures ( #2585 )
2020-09-05 14:30:55 +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
76da2638c1
Ensure subscriptions always unsubscribe as required ( #2380 )
...
* Ensure single-shot calls always unsubscribe
* memo/refCount cleanups
* Fix unsubscriptions
* Cleanup linting types
* CHANGELOG
2020-06-23 13:47:28 +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
c35f31bfbd
Adjust mock timeouts ( #2244 )
...
* Adjust mock timeouts
* Play with timeouts some more...
* Ooops, overzealous search-and-replace
2020-05-06 15:36:20 +02:00
Hoani Bryson and Jaco Greeff
102a06b0f2
Multiple Endpoint support for WsProvider ( #2234 )
...
* Fix incorrect ws connect test cases
* Make endpoint an array of endpoints
* Add requirement that WsProvider endpoint arrays must not be empty
* Simple endpoint increment
* Add multi-endpoint test for endpoint closing its connection
* Implement endpoint round robin
* Revert change to mock's TEST_WS_URL
* Address Lint errors
* Change endpoint variable to plural in WsProvider
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
* Review corrections to WsProvider
* Grouping improvement in WsProvider connect
* Correct endpoint logging to only show the specific endpoint involved
* Correct ordering of endpoint increment on connect
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
2020-05-06 14:42:30 +02:00
Jake Naviasky
04c8d49e9d
Add configurable provider auto-reconnect time. ( #2215 )
2020-04-29 17:39:31 +02:00
Jaco Greeff
e7a01f9780
Dump dev (incl. eslint header checks) ( #2142 )
2020-04-07 11:20:07 +02:00
Jaco Greeff
58de0b8b9c
Rewrite yarn.lock ( #2127 )
2020-04-01 23:49:56 +02:00
Jaco Greeff
0dc46445bc
Bump dev (incl. lint fixes) ( #2126 )
...
* Bump dev (incl. lint fixes)
* Fix call encoding (stepped into that one)
* Event struct order
* Update with missing tuple type (getTypeDef type)
2020-04-01 22:44:34 +02:00
Amaury Martiny
370dc86817
Fix ProviderInterfaceCallback type ( #1965 )
2020-02-27 13:36:26 +01:00
Jaco Greeff
51686f0cd4
Don't clobber global space in WS provider ( #1922 )
...
* Don't clbber global space in WS provider
* Re-use getWSClass
2020-02-22 13:56:37 +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
5c4920db6f
Remove balances.freeBalance & system.accountNonce refs ( #1847 )
...
* Remove freeBalance references
* Cleanup placeholders
* Add substrate templates to .gitignore
* Swap all use of system.accountNonce
* typo
2020-02-14 13:52:45 +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