Adds babe rpc support (#4729)

* babe_epochAuthorship
remove test-helpers from sp-keyring, bump spec_version, impl_version

* bump Cargo.lock

* add BabeRPC to node-rpc

* rename to BabeApi, remove err_derive

* pass &ServiceBuilder to with_rpc_extensions callback

* sc-consensus-babe-rpc

* Update client/consensus/babe/src/lib.rs

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

* Better docs, code style chanegs

Co-Authored-By: André Silva <andre.beat@gmail.com>

* new line at the end of Cargo.toml

Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
Co-authored-by: André Silva <andre.beat@gmail.com>
This commit is contained in:
Seun Lanlege
2020-02-17 19:05:30 +01:00
committed by GitHub
parent ab47ee226a
commit 5567d18b6a
16 changed files with 489 additions and 68 deletions
+33
View File
@@ -3501,7 +3501,14 @@ dependencies = [
"pallet-contracts-rpc",
"pallet-transaction-payment-rpc",
"sc-client",
"sc-consensus-babe",
"sc-consensus-babe-rpc",
"sc-consensus-epochs",
"sc-keystore",
"sp-api",
"sp-blockchain",
"sp-consensus",
"sp-consensus-babe",
"sp-runtime",
"sp-transaction-pool",
"substrate-frame-rpc-system",
@@ -5840,6 +5847,7 @@ dependencies = [
"sc-service",
"sc-telemetry",
"schnorrkel",
"serde",
"sp-api",
"sp-application-crypto",
"sp-block-builder",
@@ -5858,6 +5866,31 @@ dependencies = [
"tokio 0.1.22",
]
[[package]]
name = "sc-consensus-babe-rpc"
version = "0.8.0"
dependencies = [
"derive_more",
"futures 0.3.4",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
"sc-consensus-babe",
"sc-consensus-epochs",
"sc-keystore",
"serde",
"sp-api",
"sp-application-crypto",
"sp-blockchain",
"sp-consensus",
"sp-consensus-babe",
"sp-core",
"sp-keyring",
"sp-runtime",
"substrate-test-runtime-client",
"tempfile",
]
[[package]]
name = "sc-consensus-epochs"
version = "0.8.0"