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
926d1e55d1
Parallel RPC calls (metadata/methods alongside chain details) ( #3011 )
...
* Parallel metadata retrieval
* Update
* Parallel genesisHash
* Checks
* rpc_methods in mock provider (now required)
2021-01-02 09:44:08 +01:00
Jaco Greeff
987896e323
Adjust for last remaining circular deps ( #2971 )
...
* Adjust for last remaining circular deps
* Remove RegistryMetadata duplication
* Update packages/typegen/scripts/polkadot-types-internal-interfaces.js
* typo
* Direct decorateExtrinsics import
2020-12-21 17:17:20 +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
5a1fd4a1bb
Adjust internal generic imports ( #2838 )
2020-11-11 09:40:35 +01:00
Jaco Greeff
af9437f80a
Adjust create imports ( #2834 )
...
* Adjust create imports
* Restore create root exports
* Adjust unsafe creation
2020-11-10 11:14:38 +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
94ebb321f1
Complexity adjustments ( #2803 )
...
* Complexity adjustments
* cleanups
* Small cleanups
* Additional
* revert era
* ExtrinsicEra
2020-10-29 14:20:10 +01:00
Jaco Greeff
ea3ee428d8
Rework asLatest update ( #2802 )
...
* Revert "[CI Skip] release/beta 2.4.2-10"
This reverts commit 5cb1c2d33a .
* Revert "Use asLatest in metadata extraction (#2800 )"
This reverts commit 600666de1c .
* Bumps
* Expansion
* Flatten
* Metadata class imports
* Cleanup Decorate exports
* Move Metadata to top-level
* Swap logger on ABI
* Adjust imports
* Cleanups
* Updates
2020-10-29 11:59:37 +01:00
Jaco Greeff
600666de1c
Use asLatest in metadata extraction ( #2800 )
...
* User asLatest in metadata extraction
* Cleanup Decorated, bump
* linting
* cleanup decorate
* Remove registry arg from Decorated
2020-10-29 09:05:53 +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
27c58b930b
Reformat RPC errors (with less trimming) ( #2668 )
...
* Reformat RPC errors (with less trimming)
* Adjust decoding
2020-10-02 13:38:48 +02:00
Jaco Greeff
b56c1a8282
Explicit tie of metadata to registry (not implicit) ( #2621 )
...
* Explicit tie of metadata to registry (not implicit)
* Update type generation
* Test updates
* Revert non-problematic
* Cleanup mocks
* Updata metadata tests
* CHANGELOG
* linting
2020-09-17 23:15:09 +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
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
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
7310ea825e
Allow for string subids ( #2335 )
2020-06-07 19:16:16 +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
a833dccdaf
All private prefixed with _ ( #2157 )
...
* All private prefixed with _
* Fix test
2020-04-11 22:21:55 +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
Jaco Greeff
21a2b5f0b7
signAndSend with finalized hash (depending on lag) ( #2104 )
...
* signAndSend with finalized hash (depending on drift)
* Extract lag calc
* mock update
* getSigningHeader
* api.derive.tx (with submittable cleanups)
* Adjust mortal calculations
* Cleanup new tx derives
* Optimize calcs
* Comment cleanups, next-up testing
* Adjust mocks
* Adjust sig (period is now based on metadata)
* Remove extra fn, tested and it works
2020-03-27 13:26:12 +01:00
Jaco Greeff
a0979a9ce3
Only format error log, upstream error from core ( #2089 )
...
* Only format error log, upstream error from core
* Remove (now unused) wrapping info
2020-03-25 08:00:14 +01:00
Jaco Greeff
044efbc6de
Convert jsonrpc & typings to definitions ( #2064 )
...
* Convert jsonrpc & typings to definitions
* Handle empty interface generation (no types)
* Move jsonrpc/create to rpc-core/create
* Create imports
* Remove jsonrpc package, generate rpc-core from defs
* Debug :)
* Generate RPC definitions via interfaces
* Generate md docs
* Remove @polkadot/jsonrpc refs (at least packages)
* No empty types
* Add PAHNTOM "cleanup" gen
* *sigh* regex loop
* Update mock for no jsonrpc
* Add definition export types
* Cleanup linting
* Mocking 1 fix
* Mocking 2 fix
* rpc-core tests updates
* CHANGELOG & docs
* Add jsonrpc (already mapped) to interfaces
* Add aliasses for RPCs
* Fix rpc-core tests
2020-03-19 14:40:54 +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
99d4806a0d
Enable new indexes queries ( #2022 )
...
* Enable new indexes queries
* update mock for state_getKeys
2020-03-10 17:56:20 +01:00
Jaco Greeff
ca9f671553
Re-format jsonrpc errors ( #2014 )
2020-03-09 08:27:00 +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
Amaury Martiny
370dc86817
Fix ProviderInterfaceCallback type ( #1965 )
2020-02-27 13:36:26 +01:00
Jaco Greeff
8598002801
Swap to registry.createType ( #1947 )
2020-02-26 11:17:11 +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