Move srml RPC extensions to separate crates (#3791)

* Move srml-system RPC out.

* Fix tests for system-rpc module.

* Contracts RPC moved.

* Fix rpc test.

* Clean up.

* Update lockfile.

* Bump runtime version.

* Update srml/contracts/rpc/runtime-api/src/lib.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Bump impl version.
This commit is contained in:
Tomasz Drwięga
2019-10-16 12:40:35 +02:00
committed by Gavin Wood
parent 642c8504c4
commit dc92631180
20 changed files with 344 additions and 182 deletions
+58 -17
View File
@@ -2417,12 +2417,8 @@ dependencies = [
name = "node-primitives"
version = "2.0.0"
dependencies = [
"parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
"pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
"sr-primitives 2.0.0",
"sr-std 2.0.0",
"substrate-client 2.0.0",
"substrate-primitives 2.0.0",
"substrate-serializer 2.0.0",
]
@@ -2431,23 +2427,12 @@ dependencies = [
name = "node-rpc"
version = "2.0.0"
dependencies = [
"env_logger 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-core 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-core-client 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-derive 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-pubsub 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"node-primitives 2.0.0",
"node-runtime 2.0.0",
"node-testing 2.0.0",
"parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
"sr-primitives 2.0.0",
"srml-contracts-rpc 2.0.0",
"srml-system-rpc 2.0.0",
"substrate-client 2.0.0",
"substrate-keyring 2.0.0",
"substrate-primitives 2.0.0",
"substrate-rpc-primitives 2.0.0",
"substrate-transaction-pool 2.0.0",
]
@@ -2484,6 +2469,7 @@ dependencies = [
"srml-balances 2.0.0",
"srml-collective 2.0.0",
"srml-contracts 2.0.0",
"srml-contracts-rpc-runtime-api 2.0.0",
"srml-democracy 2.0.0",
"srml-elections 2.0.0",
"srml-executive 2.0.0",
@@ -2500,6 +2486,7 @@ dependencies = [
"srml-sudo 2.0.0",
"srml-support 2.0.0",
"srml-system 2.0.0",
"srml-system-rpc-runtime-api 2.0.0",
"srml-timestamp 2.0.0",
"srml-treasury 2.0.0",
"srml-utility 2.0.0",
@@ -4047,6 +4034,31 @@ dependencies = [
"wasmi-validation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "srml-contracts-rpc"
version = "2.0.0"
dependencies = [
"jsonrpc-core 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-core-client 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-derive 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
"sr-primitives 2.0.0",
"srml-contracts-rpc-runtime-api 2.0.0",
"substrate-client 2.0.0",
"substrate-rpc-primitives 2.0.0",
]
[[package]]
name = "srml-contracts-rpc-runtime-api"
version = "2.0.0"
dependencies = [
"parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
"sr-std 2.0.0",
"substrate-client 2.0.0",
]
[[package]]
name = "srml-democracy"
version = "2.0.0"
@@ -4434,6 +4446,34 @@ dependencies = [
"substrate-primitives 2.0.0",
]
[[package]]
name = "srml-system-rpc"
version = "2.0.0"
dependencies = [
"env_logger 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-core 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-core-client 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"jsonrpc-derive 13.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
"sr-primitives 2.0.0",
"srml-system-rpc-runtime-api 2.0.0",
"substrate-client 2.0.0",
"substrate-primitives 2.0.0",
"substrate-test-runtime-client 2.0.0",
"substrate-transaction-pool 2.0.0",
]
[[package]]
name = "srml-system-rpc-runtime-api"
version = "2.0.0"
dependencies = [
"parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-client 2.0.0",
]
[[package]]
name = "srml-timestamp"
version = "2.0.0"
@@ -5535,6 +5575,7 @@ dependencies = [
"srml-executive 2.0.0",
"srml-support 2.0.0",
"srml-system 2.0.0",
"srml-system-rpc-runtime-api 2.0.0",
"srml-timestamp 2.0.0",
"substrate-application-crypto 2.0.0",
"substrate-client 2.0.0",