mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 09:31:02 +00:00
Upgrade staking-miner to use jsonrpsee v0.3 (#3466)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user