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
+2 -3
View File
@@ -10,9 +10,8 @@ bp-eth-poa = { path = "../../primitives/ethereum-poa" }
codec = { package = "parity-scale-codec", version = "2.0.0" }
headers-relay = { path = "../headers" }
hex-literal = "0.3"
jsonrpsee-proc-macros = { git = "https://github.com/paritytech/jsonrpsee", rev = "de7b58a881512cd5ab8bbf16a56241ca808c7765" }
jsonrpsee-types = { git = "https://github.com/paritytech/jsonrpsee", rev = "de7b58a881512cd5ab8bbf16a56241ca808c7765" }
jsonrpsee-ws-client = { git = "https://github.com/paritytech/jsonrpsee", rev = "de7b58a881512cd5ab8bbf16a56241ca808c7765" }
jsonrpsee-proc-macros = "=0.2.0-alpha.5"
jsonrpsee-ws-client = "=0.2.0-alpha.5"
libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] }
log = "0.4.11"
relay-utils = { path = "../utils" }
+1 -1
View File
@@ -18,7 +18,7 @@
use crate::types::U256;
use jsonrpsee_types::error::Error as RpcError;
use jsonrpsee_ws_client::Error as RpcError;
use relay_utils::MaybeConnectionError;
/// Result type used by Ethereum client.
+2 -3
View File
@@ -9,9 +9,8 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
async-std = "1.6.5"
async-trait = "0.1.40"
codec = { package = "parity-scale-codec", version = "2.0.0" }
jsonrpsee-proc-macros = { git = "https://github.com/paritytech/jsonrpsee", rev = "de7b58a881512cd5ab8bbf16a56241ca808c7765" }
jsonrpsee-types = { git = "https://github.com/paritytech/jsonrpsee", rev = "de7b58a881512cd5ab8bbf16a56241ca808c7765" }
jsonrpsee-ws-client = { git = "https://github.com/paritytech/jsonrpsee", rev = "de7b58a881512cd5ab8bbf16a56241ca808c7765" }
jsonrpsee-proc-macros = "=0.2.0-alpha.5"
jsonrpsee-ws-client = "=0.2.0-alpha.5"
log = "0.4.11"
num-traits = "0.2"
rand = "0.7"
+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;