add substrate-rpc-primitives to use NubmerOrHex in rpc.rs (#19)

This commit is contained in:
Andrew Plaza
2019-09-16 03:20:54 -07:00
committed by Andrew Jones
parent e9070e2786
commit f9ae14bdb9
2 changed files with 3 additions and 4 deletions
+1
View File
@@ -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
View File
@@ -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>;