mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 05:37:58 +00:00
add substrate-rpc-primitives to use NubmerOrHex in rpc.rs (#19)
This commit is contained in:
committed by
Andrew Jones
parent
e9070e2786
commit
f9ae14bdb9
@@ -26,6 +26,7 @@ serde = { version = "1.0", features = ["derive"] }
|
||||
sr-version = { git = "https://github.com/paritytech/substrate/", package = "sr-version" }
|
||||
srml-system = { git = "https://github.com/paritytech/substrate/", package = "srml-system" }
|
||||
substrate-rpc-api = { git = "https://github.com/paritytech/substrate/", package = "substrate-rpc-api" }
|
||||
substrate-rpc-primitives = { git = "https://github.com/paritytech/substrate/", package = "substrate-rpc-primitives" }
|
||||
substrate-primitives = { git = "https://github.com/paritytech/substrate/", package = "substrate-primitives" }
|
||||
transaction_pool = { git = "https://github.com/paritytech/substrate/", package = "substrate-transaction-pool" }
|
||||
url = "1.7"
|
||||
|
||||
+2
-4
@@ -44,12 +44,10 @@ use std::convert::TryInto;
|
||||
use substrate_primitives::storage::StorageKey;
|
||||
use substrate_rpc_api::{
|
||||
author::AuthorClient,
|
||||
chain::{
|
||||
number::NumberOrHex,
|
||||
ChainClient,
|
||||
},
|
||||
chain::ChainClient,
|
||||
state::StateClient,
|
||||
};
|
||||
use substrate_rpc_primitives::number::NumberOrHex;
|
||||
|
||||
pub type ChainBlock<T> = SignedBlock<Block<<T as System>::Header, OpaqueExtrinsic>>;
|
||||
pub type BlockNumber<T> = NumberOrHex<<T as System>::BlockNumber>;
|
||||
|
||||
Reference in New Issue
Block a user