Refactor sr-api to not depend on client anymore (#4086)

* Refactor sr-api to not depend on client anymore

* Fix benches

* Apply suggestions from code review

Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* Apply suggestions from code review
This commit is contained in:
Bastian Köcher
2019-11-11 16:26:49 +01:00
committed by Benjamin Kampmann
parent e26d1a0b3e
commit 2ecffa1cd0
140 changed files with 1514 additions and 984 deletions
+8 -2
View File
@@ -10,7 +10,8 @@ log = { version = "0.4.8", optional = true }
serde = { version = "1.0.101", optional = true, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
keyring = { package = "substrate-keyring", path = "../keyring", optional = true }
substrate-client = { path = "../client", default-features = false }
sr-api = { path = "../sr-api", default-features = false }
substrate-client = { path = "../client", optional = true }
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
app-crypto = { package = "substrate-application-crypto", path = "../application-crypto", default-features = false }
inherents = { package = "substrate-inherents", path = "../inherents", default-features = false }
@@ -33,6 +34,8 @@ srml-babe = { path = "../../srml/babe", default-features = false }
srml-timestamp = { path = "../../srml/timestamp", default-features = false }
srml-system = { path = "../../srml/system", default-features = false }
srml-system-rpc-runtime-api = { path = "../../srml/system/rpc/runtime-api", default-features = false }
transaction-pool-api = { package = "substrate-transaction-pool-runtime-api", path = "../transaction-pool/runtime-api", default-features = false }
block-builder-api = { package = "substrate-block-builder-runtime-api", path = "../block-builder/runtime-api", default-features = false }
[dev-dependencies]
substrate-executor = { path = "../executor" }
@@ -49,7 +52,7 @@ default = [
std = [
"log",
"serde",
"substrate-client/std",
"sr-api/std",
"keyring",
"codec/std",
"rstd/std",
@@ -74,4 +77,7 @@ std = [
"app-crypto/std",
"session/std",
"runtime-interface/std",
"transaction-pool-api/std",
"block-builder-api/std",
"substrate-client",
]