Make test-client generic over runtime (#2824)

* Make test-client generic over runtime.

* Make sure genesis storage is constructed correctly.

* Use prelude in tests.

* Add an example of how to use test-client with node/runtime.

* Bump version.

* Rename test-clients.
This commit is contained in:
Tomasz Drwięga
2019-06-11 21:54:34 +02:00
committed by Bastian Köcher
parent cae324598f
commit ad2d958248
36 changed files with 497 additions and 342 deletions
+6 -18
View File
@@ -7,25 +7,13 @@ edition = "2018"
[dependencies]
client = { package = "substrate-client", path = "../client" }
client-db = { package = "substrate-client-db", path = "../client/db", features = ["test-helpers"] }
futures = { version = "0.1.17" }
parity-codec = "3.5.1"
executor = { package = "substrate-executor", path = "../executor" }
consensus = { package = "substrate-consensus-common", path = "../consensus/common" }
keyring = { package = "substrate-keyring", path = "../../core/keyring" }
executor = { package = "substrate-executor", path = "../executor" }
futures = { version = "0.1.27" }
hash-db = "0.12"
keyring = { package = "substrate-keyring", path = "../keyring" }
parity-codec = "3.5.1"
primitives = { package = "substrate-primitives", path = "../primitives" }
state_machine = { package = "substrate-state-machine", path = "../state-machine" }
runtime = { package = "substrate-test-runtime", path = "../test-runtime", default-features = false }
runtime_primitives = { package = "sr-primitives", path = "../sr-primitives" }
state_machine = { package = "substrate-state-machine", path = "../state-machine" }
[features]
default = [
"include-wasm-blob",
"std",
]
std = [
"runtime/std",
]
# If enabled, the WASM blob is added to the `GenesisConfig`.
include-wasm-blob = [
"runtime/include-wasm-blob",
]