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
@@ -0,0 +1,20 @@
[package]
name = "substrate-test-runtime-client"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
generic-test-client = { package = "substrate-test-client", path = "../../test-client" }
primitives = { package = "substrate-primitives", path = "../../primitives" }
runtime = { package = "substrate-test-runtime", path = "../../test-runtime", default-features = false }
runtime_primitives = { package = "sr-primitives", path = "../../sr-primitives" }
[features]
default = [
"std",
"runtime/include-wasm-blob",
]
std = [
"runtime/std",
]