mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 07:31:02 +00:00
updat jsonrpsee (#828)
This commit is contained in:
committed by
Bastian Köcher
parent
d749bc3a96
commit
4cd6d128ea
@@ -10,9 +10,9 @@ bp-eth-poa = { path = "../../../primitives/ethereum-poa" }
|
|||||||
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
||||||
headers-relay = { path = "../../generic/headers" }
|
headers-relay = { path = "../../generic/headers" }
|
||||||
hex-literal = "0.3"
|
hex-literal = "0.3"
|
||||||
jsonrpsee-proc-macros = "0.2.0-alpha"
|
jsonrpsee-proc-macros = "0.2.0-alpha.2"
|
||||||
jsonrpsee-types = "0.2.0-alpha"
|
jsonrpsee-types = "0.2.0-alpha.2"
|
||||||
jsonrpsee-ws-client = "0.2.0-alpha"
|
jsonrpsee-ws-client = "0.2.0-alpha.2"
|
||||||
libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] }
|
libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] }
|
||||||
log = "0.4.11"
|
log = "0.4.11"
|
||||||
relay-utils = { path = "../../generic/utils" }
|
relay-utils = { path = "../../generic/utils" }
|
||||||
|
|||||||
@@ -16,11 +16,6 @@
|
|||||||
|
|
||||||
//! Ethereum node RPC interface.
|
//! Ethereum node RPC interface.
|
||||||
|
|
||||||
// The compiler doesn't think we're using the
|
|
||||||
// code from rpc_api!
|
|
||||||
#![allow(dead_code)]
|
|
||||||
#![allow(unused_variables)]
|
|
||||||
|
|
||||||
use crate::types::{
|
use crate::types::{
|
||||||
Address, Bytes, CallRequest, Header, HeaderWithTransactions, Receipt, SyncState, Transaction, TransactionHash,
|
Address, Bytes, CallRequest, Header, HeaderWithTransactions, Receipt, SyncState, Transaction, TransactionHash,
|
||||||
H256, U256, U64,
|
H256, U256, U64,
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|||||||
async-std = "1.6.5"
|
async-std = "1.6.5"
|
||||||
async-trait = "0.1.40"
|
async-trait = "0.1.40"
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
||||||
jsonrpsee-proc-macros = "0.2.0-alpha"
|
jsonrpsee-proc-macros = "0.2.0-alpha.2"
|
||||||
jsonrpsee-types = "0.2.0-alpha"
|
jsonrpsee-types = "0.2.0-alpha.2"
|
||||||
jsonrpsee-ws-client = "0.2.0-alpha"
|
jsonrpsee-ws-client = "0.2.0-alpha.2"
|
||||||
log = "0.4.11"
|
log = "0.4.11"
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
rand = "0.7"
|
rand = "0.7"
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ impl<C: Chain> Client<C> {
|
|||||||
params.port,
|
params.port,
|
||||||
);
|
);
|
||||||
let mut config = RpcConfig::with_url(&uri);
|
let mut config = RpcConfig::with_url(&uri);
|
||||||
config.max_subscription_capacity = MAX_SUBSCRIPTION_CAPACITY;
|
config.max_notifs_per_subscription = MAX_SUBSCRIPTION_CAPACITY;
|
||||||
let client = RpcClient::new(config).await?;
|
let client = RpcClient::new(config).await?;
|
||||||
Ok(client)
|
Ok(client)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,11 +16,6 @@
|
|||||||
|
|
||||||
//! The most generic Substrate node RPC interface.
|
//! The most generic Substrate node RPC interface.
|
||||||
|
|
||||||
// The compiler doesn't think we're using the
|
|
||||||
// code from rpc_api!
|
|
||||||
#![allow(dead_code)]
|
|
||||||
#![allow(unused_variables)]
|
|
||||||
|
|
||||||
use crate::chain::Chain;
|
use crate::chain::Chain;
|
||||||
|
|
||||||
use bp_message_lane::{LaneId, MessageNonce};
|
use bp_message_lane::{LaneId, MessageNonce};
|
||||||
|
|||||||
Reference in New Issue
Block a user