refactor(remote ext): use jsonrpsee (#8105)

* A clean new attempt

* Checkpoint to move remote.

* A lot of dependency wiring to make it feature gated.

* bad macro, bad macro.

* refactor(remote ext): use jsonrpsee

* refactor(remote ext): use jsonrpsee

* Undo the DB mess.

* fix(remote ext): use max limit `u32::MAX`

* resolve TODOs

* jsonrpsee switch to `hyper` as backend

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

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* update jsonrpsee

* remove boiler-plate

* suppress warnings to CI happy

* Unbreak his build

* Use option

* fix nit; make it work again

* fix err message.

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

* Fix uri stuff

* remove needless clone

Co-authored-by: kianenigma <kian.peymani@gmail.com>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: kianenigma <kian@parity.io>
This commit is contained in:
Niklas Adolfsson
2021-03-06 16:33:22 +01:00
committed by GitHub
parent b0ebf6498f
commit 6bd09c07bd
3 changed files with 106 additions and 48 deletions
+64 -5
View File
@@ -2834,6 +2834,67 @@ dependencies = [
"slab",
]
[[package]]
name = "jsonrpsee-http-client"
version = "0.2.0-alpha"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "124797a4ea7430d0675db78e065e53316e3f1a3cbf0ee4d6dbdd42db7b08e193"
dependencies = [
"async-trait",
"futures 0.3.12",
"hyper 0.13.9",
"jsonrpsee-types",
"jsonrpsee-utils",
"log",
"serde",
"serde_json",
"thiserror",
"unicase",
"url 2.2.0",
]
[[package]]
name = "jsonrpsee-proc-macros"
version = "0.2.0-alpha"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9cd3d41f5b9a1d3e4e4c9ad49a7a34ad8e1134a1a587cd21c72f644f5c053dd"
dependencies = [
"Inflector",
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "jsonrpsee-types"
version = "0.2.0-alpha"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbf718f9a0d09f50621ea35f507679cf3ab66910a6d95844850076c1281a203c"
dependencies = [
"async-trait",
"futures 0.3.12",
"log",
"serde",
"serde_json",
"smallvec 1.6.1",
"thiserror",
]
[[package]]
name = "jsonrpsee-utils"
version = "0.2.0-alpha"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0e45394ec3175a767c3c5bac584560e6ad9b56ebd73216c85ec8bab49619244"
dependencies = [
"futures 0.3.12",
"globset",
"hyper 0.13.9",
"jsonrpsee-types",
"lazy_static",
"log",
"unicase",
]
[[package]]
name = "keccak"
version = "0.1.0"
@@ -6472,16 +6533,14 @@ version = "0.9.0"
dependencies = [
"async-std",
"env_logger 0.8.2",
"futures 0.3.12",
"hex-literal",
"jsonrpc-core-client",
"jsonrpsee-http-client",
"jsonrpsee-proc-macros",
"jsonrpsee-types",
"log",
"parity-scale-codec",
"sc-rpc",
"sc-rpc-api",
"sp-core",
"sp-io",
"tokio 0.1.22",
]
[[package]]