Upgrade staking-miner to use jsonrpsee v0.3 (#3466)

This commit is contained in:
Zeke Mostov
2021-07-14 10:30:46 -07:00
committed by GitHub
parent fc253e6e4d
commit ed9208b749
5 changed files with 66 additions and 18 deletions
+1 -3
View File
@@ -10,9 +10,7 @@ tokio = { version = "0.2", features = ["macros"] }
log = "0.4.11"
env_logger = "0.8.3"
structopt = "0.3.0"
jsonrpsee-ws-client = { version = "0.2.0", default-features = false, features = ["tokio02"] }
jsonrpsee-types = { version = "0.2.0" }
jsonrpsee = "=0.2.0-alpha.6"
jsonrpsee-ws-client = { version = "0.3.0", default-features = false, features = ["tokio02"] }
serde_json = "1.0"
serde = "1.0.0"
hex = "0.4.0"
+1 -1
View File
@@ -191,7 +191,7 @@ macro_rules! any_runtime {
#[derive(Debug, thiserror::Error)]
enum Error {
Io(#[from] std::io::Error),
Jsonrpsee(#[from] jsonrpsee_ws_client::Error),
Jsonrpsee(#[from] jsonrpsee_ws_client::types::Error),
Codec(#[from] codec::Error),
Crypto(sp_core::crypto::SecretStringError),
RemoteExternalities(&'static str),
+2 -1
View File
@@ -21,7 +21,8 @@ use crate::{
};
use codec::Encode;
use jsonrpsee_ws_client::{
traits::SubscriptionClient, v2::params::JsonRpcParams, Subscription, WsClient,
WsClient,
types::{Subscription, traits::SubscriptionClient, v2::params::JsonRpcParams},
};
use sc_transaction_pool_api::TransactionStatus;
@@ -17,8 +17,8 @@
//! Helper method for RPC.
use super::*;
use jsonrpsee_ws_client::traits::Client;
pub(crate) use jsonrpsee_ws_client::v2::params::JsonRpcParams;
use jsonrpsee_ws_client::types::traits::Client;
pub(crate) use jsonrpsee_ws_client::types::v2::params::JsonRpcParams;
#[macro_export]
macro_rules! params {