Jaco Greeff
7a4fe4fe5f
Return Raw results on storage decode failures ( #2862 )
2020-11-19 12:12:00 +01:00
Jaco Greeff
f810e65ea2
Additional enum tests ( #2842 )
...
* Additional enum tests
* Adjust compare files
* Remove debug log
2020-11-12 14:45:32 +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
94a4594d32
Cleanup assignments ( #2811 )
...
* Cleanup assignments
* Small adjustments
* Cleanup AnyJson results
* Event toHuman
2020-10-31 12:50:44 +01:00
Jaco Greeff
e855d5a9d4
Cater for new/old contracts_call results ( #2810 )
...
* Cater for new/old contracts_call results
* Update packages/types/src/interfaces/contracts/definitions.ts
* Allow RPC layer to output JSON
* Typing for json outputs
* Convert results
* RPC compat mapping
* Ensure RPC .json is exposed
* Remove compat layer
* Old error detection
* Map to unknown
* Update packages/rpc-core/src/index.ts
* linting
2020-10-31 11:18:58 +01:00
Jaco Greeff
5c69f78676
Expand Call errors with actual callIndex info ( #2806 )
...
* Expand Call errors with actutl callIndex info
* Update test expectation
* casing
2020-10-30 10:17:19 +01:00
Jaco Greeff
9debb854f9
syncState RPCs ( #2797 )
...
* syncState RPCs
* Use endpoint override as available
* Allow Json construction, update syncstate_get def
2020-10-28 13:26:37 +01:00
Jaco Greeff
bb7b94dc35
Use logger in error/warning messages ( #2790 )
...
* Use logger in error/warning messages
* Update packages/types/src/codec/BTreeSet.ts
* Update expectation
* Some additional type tests
2020-10-27 13:14:03 +01:00
Jaco Greeff
d47faa4687
Fix memomization on BigInt values ( #2728 )
2020-10-15 08:59:48 +02:00
Jaco Greeff
cdd6544e20
SPDX ( #2619 )
2020-09-17 16:31:06 +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
Jaco Greeff
b6d1be6ee5
Only memomize via instanceId ( #2572 )
...
* Add memoizee instanceId
* Gotcha.
* linitng
2020-09-02 17:13:38 +02:00
Jaco Greeff
0e9a50e020
Make metadata available on registry swap ( #2556 )
...
* Make metadata available on registry swap
* Return full VersionedRegistry
2020-08-31 22:52:33 +02:00
Jaco Greeff
533f9ce249
Explicit delay for per-hash single queries ( #2548 )
...
* Explicit delay for per-hash single queries
* Expand delay
* Update packages/rpc-core/src/index.ts
2020-08-31 15:20:06 +02:00
Jaco Greeff
2f5e2537a3
Align single-shot memoization ( #2546 )
...
* Align single-shot memoization
* Small tweaks
* Test for delayed creates
* With actual sub
* Expand delay test
* Bump delay
2020-08-31 14:31:44 +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
7876bb9ced
Add isHistoric flags to RPC with hash params ( #2535 )
...
* Add isHistoric flags to RPC with hash params
* Update packages/types/src/interfaces/chain/definitions.ts
* Apply suggestions from code review
* Transparently swap registry on RPC layer
* Simplify (& linting fixes)
* Cleanups
* CHANGELOG
2020-08-30 12:12:18 +02:00
Jaco Greeff
c4323d5e94
Add swapRegistry(hash?) to initlize clean registry ( #2534 )
...
* Add swapRegistry(hash?) to initlize clean registry
* Cater for genesisHash queries
2020-08-29 15:46:42 +02:00
Jaco Greeff
e7669c2b00
Add api typesBundle ( #2422 )
...
* Add api typesBundle
* Inject user-defined RPC from spec/chain
* Linting cleanups
* Invert check fro non-existing
* Extract bundle injection
* Ignore RPC for the first round
* CHANGELOG
* Merge master
2020-07-27 09:12:04 +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
c7315ffb74
Do not use subscriptions on single subs ( #2378 )
...
* Do not use subscriptions on single subs
* Apply suggestions from code review
2020-06-23 09:29:49 +02:00
Jaco Greeff
5c5db2709b
Add system_dryRun RPCs ( #2363 )
...
* Add system_dryRun RPCs
* CHANGELOG
2020-06-18 10:15:41 +02:00
Jaco Greeff
a1655508ba
Cleanups in API typing (& overrides) ( #2362 )
...
* Cleanups in API typing (& overrides)
* Less magic "as" overrides
2020-06-18 09:52:39 +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
a1ad90c2b4
1.13 ( #2248 )
...
* 1.13
* Add grandpa_roundState RPC
* RPC interfaces
2020-05-06 20:22:18 +02:00
Jaco Greeff
844d1a2928
Allow failures on preimage (instead of swallow) ( #2225 )
2020-04-30 15:14:56 +02:00
Jaco Greeff
3de09a2e27
Hack around preimage failures ( #2217 )
2020-04-27 18:59:18 +02:00
Jaco Greeff
e3d3a1ff71
Handle no keysReturn StorageChangeSet with no keys ( #2212 )
2020-04-27 08:54:02 +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
9ba91a3851
Use forkJoin for entries() retrieval ( #2152 )
...
* Use forkJoin for entries() retrieval
* Some current and validator retrieval opts
* Remove duplicate filtering
2020-04-10 12:12:10 +02:00
Jaco Greeff
afdb476796
Small cleanups & consistency ( #2151 )
...
* Small cleanups & consistency
* Fixes
2020-04-09 18:32:30 +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
6aa0d90fc0
Add childstate_* RPCs ( #2065 )
...
* Add childstate_* RPCs
* childstate into rpc-core
* PrefixedStorageKey
2020-03-30 13:53:33 +02:00
Jaco Greeff
a4ea4d648a
Handle double-encoded Bytes in fallback/constants ( #2113 )
...
* Handle double-encoded Bytes in fallback/constants
* Fix import, bypass for tests
2020-03-28 20:55:39 +01:00
Jaco Greeff
8976ded37f
Add state_queryStorageAt RPC ( #2082 )
...
* Add state_queryStorageAt RPC
* Add queryStorageAt rpc
* Clanup merge
2020-03-26 21:08:34 +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
af11444b72
Update RPCs (babe, contracts) ( #2074 )
...
* Update RPCs (babe, contracts)
* Babe in rpc-core
2020-03-21 07:50:56 +01:00
Jaco Greeff
3a1634d67f
Add all missing RPC endpoints ( #2070 )
...
* Add all missing RPC endpoints
* Rework RPC return types
* rpc-core interface
* Remove crap test, checked anyway
2020-03-20 13:42:18 +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
1d8b6a79ef
Rework rpc.queryStorage to return [Hash, Codec[]][] ( #2025 )
2020-03-11 12:21:09 +01:00
Jaco Greeff
c1facd8b1c
memo for range & entries
2020-03-09 22:57:09 +01:00
Jaco Greeff
0e297c6779
Add rpc.raw interface, convert RPC to Augmented wrappers ( #1990 )
...
* Add rpc.raw interface, convert RPC to Augmented
* Augmentaton attempt...
* Failing test
* Fix augmentation
* Cleanup linting
* Expose .raw on decorated RPCs
* .raw into CHANGELOG
* Stray eslint overrides
2020-03-03 08:49:24 +01:00
Jaco Greeff
af1a3385cc
Raise error on parsing errors ( #1987 )
2020-03-02 09:09:27 +01:00
Amaury Martiny
370dc86817
Fix ProviderInterfaceCallback type ( #1965 )
2020-02-27 13:36:26 +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
921e55a82e
Move types/codec/create -> types/create ( #1871 )
...
* Move types/codec/create -> types/create
* Update imports after move
* Cleanups
* Cleanup code circular deps
* Re-add dropped interfaces
* Drop duplicated code
* Fix imports
* Remove whacky comment
2020-02-16 13:51:37 +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
Jaco Greeff
5e0c0ba91a
Align jsonrpc augmentation with others ( #1796 )
2020-02-02 20:16:41 +01:00