make remote-ext work with ws and safe RPCs (#8889)

* make remote-ext work with ws and safe RPCs

* Update docs.

* Update utils/frame/remote-externalities/Cargo.toml

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>

* Fix test

* Update lock file

* Update utils/frame/remote-externalities/src/lib.rs

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

* Fix build again.

* revert lifetime stuff

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Kian Paimani
2021-05-25 20:00:50 +02:00
committed by GitHub
parent 53e28b98e9
commit ec409615a3
4 changed files with 231 additions and 81 deletions
@@ -13,7 +13,7 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
jsonrpsee-http-client = { version = "=0.2.0-alpha.6", default-features = false, features = ["tokio02"] }
jsonrpsee-ws-client = { version = "=0.2.0-alpha.6", default-features = false }
jsonrpsee-proc-macros = "=0.2.0-alpha.6"
hex-literal = "0.3.1"
@@ -26,7 +26,7 @@ sp-core = { version = "3.0.0", path = "../../../primitives/core" }
sp-runtime = { version = "3.0.0", path = "../../../primitives/runtime" }
[dev-dependencies]
tokio = { version = "0.2", features = ["macros"] }
tokio = { version = "1.6.0", features = ["macros", "rt"] }
[features]
remote-test = []