Update jsonrpsee to 0.2.0-alpha.5 (#914)

* update jsonrpsee to 0.2.0-alpha.5

* cargo fmt
This commit is contained in:
Niklas Adolfsson
2021-04-20 21:03:01 +02:00
committed by Bastian Köcher
parent 5e26ba4999
commit f857771ce8
6 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
use bp_runtime::Chain as ChainBase;
use frame_support::Parameter;
use jsonrpsee_types::jsonrpc::{DeserializeOwned, Serialize};
use jsonrpsee_ws_client::{DeserializeOwned, Serialize};
use num_traits::{CheckedSub, Zero};
use sp_core::{storage::StorageKey, Pair};
use sp_runtime::{
@@ -23,8 +23,8 @@ use crate::{ConnectionParams, Error, Result};
use async_std::sync::{Arc, Mutex};
use codec::Decode;
use frame_system::AccountInfo;
use jsonrpsee_types::{jsonrpc::DeserializeOwned, traits::SubscriptionClient};
use jsonrpsee_ws_client::{WsClient as RpcClient, WsClientBuilder as RpcClientBuilder, WsSubscription as Subscription};
use jsonrpsee_ws_client::{traits::SubscriptionClient, v2::params::JsonRpcParams, DeserializeOwned};
use jsonrpsee_ws_client::{Subscription, WsClient as RpcClient, WsClientBuilder as RpcClientBuilder};
use num_traits::Zero;
use pallet_balances::AccountData;
use sp_core::{storage::StorageKey, Bytes};
@@ -267,7 +267,7 @@ impl<C: Chain> Client<C> {
.client
.subscribe(
"grandpa_subscribeJustifications",
jsonrpsee_types::jsonrpc::Params::None,
JsonRpcParams::NoParams,
"grandpa_unsubscribeJustifications",
)
.await?)
+1 -1
View File
@@ -16,7 +16,7 @@
//! Substrate node RPC errors.
use jsonrpsee_types::error::Error as RpcError;
use jsonrpsee_ws_client::Error as RpcError;
use relay_utils::MaybeConnectionError;
use sc_rpc_api::system::Health;