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
This commit is contained in:
Jaco Greeff
2020-03-19 14:40:54 +01:00
committed by GitHub
parent 27e3fbfd0f
commit 044efbc6de
170 changed files with 1281 additions and 1346 deletions
-13
View File
@@ -2668,16 +2668,6 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/jsonrpc@1.8.0-beta.2, @polkadot/jsonrpc@workspace:packages/jsonrpc":
version: 0.0.0-use.local
resolution: "@polkadot/jsonrpc@workspace:packages/jsonrpc"
dependencies:
"@babel/runtime": ^7.8.7
"@polkadot/types": 1.8.0-beta.2
"@polkadot/util": ^2.6.2
languageName: unknown
linkType: soft
"@polkadot/keyring@npm:^2.6.2":
version: 2.6.2
resolution: "@polkadot/keyring@npm:2.6.2"
@@ -2707,7 +2697,6 @@ __metadata:
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.8.7
"@polkadot/jsonrpc": 1.8.0-beta.2
"@polkadot/keyring": ^2.6.2
"@polkadot/metadata": 1.8.0-beta.2
"@polkadot/rpc-provider": 1.8.0-beta.2
@@ -2723,7 +2712,6 @@ __metadata:
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.8.7
"@polkadot/jsonrpc": 1.8.0-beta.2
"@polkadot/keyring": ^2.6.2
"@polkadot/metadata": 1.8.0-beta.2
"@polkadot/types": 1.8.0-beta.2
@@ -2755,7 +2743,6 @@ __metadata:
"@babel/register": ^7.8.6
"@babel/runtime": ^7.8.7
"@polkadot/api": 1.8.0-beta.2
"@polkadot/jsonrpc": 1.8.0-beta.2
"@polkadot/metadata": 1.8.0-beta.2
"@polkadot/rpc-provider": 1.8.0-beta.2
"@polkadot/types": 1.8.0-beta.2