Re-export current primitives in crate root (#6487)

* Re-export current primitives in crate root

* Add missing exports

* restart CI
This commit is contained in:
s0me0ne-unkn0wn
2023-01-11 12:28:12 +01:00
committed by GitHub
parent b0f79c2039
commit 1cb1d03c08
221 changed files with 399 additions and 397 deletions
+3 -3
View File
@@ -16,7 +16,7 @@
//! Code related to benchmarking a [`crate::Client`].
use polkadot_primitives::v2::{AccountId, Balance};
use polkadot_primitives::{AccountId, Balance};
use sp_core::{Pair, H256};
use sp_keyring::Sr25519Keyring;
use sp_runtime::OpaqueExtrinsic;
@@ -361,14 +361,14 @@ pub fn benchmark_inherent_data(
let timestamp = sp_timestamp::InherentDataProvider::new(d.into());
futures::executor::block_on(timestamp.provide_inherent_data(&mut inherent_data))?;
let para_data = polkadot_primitives::v2::InherentData {
let para_data = polkadot_primitives::InherentData {
bitfields: Vec::new(),
backed_candidates: Vec::new(),
disputes: Vec::new(),
parent_header: header,
};
inherent_data.put_data(polkadot_primitives::v2::PARACHAINS_INHERENT_IDENTIFIER, &para_data)?;
inherent_data.put_data(polkadot_primitives::PARACHAINS_INHERENT_IDENTIFIER, &para_data)?;
Ok(inherent_data)
}
+1 -2
View File
@@ -20,8 +20,7 @@
//! There is also the [`Client`] enum that combines all the different clients into one common structure.
use polkadot_primitives::{
runtime_api::ParachainHost,
v2::{AccountId, Balance, Block, BlockNumber, Hash, Header, Nonce},
runtime_api::ParachainHost, AccountId, Balance, Block, BlockNumber, Hash, Header, Nonce,
};
use sc_client_api::{AuxStore, Backend as BackendT, BlockchainEvents, KeyIterator, UsageProvider};
use sc_executor::NativeElseWasmExecutor;