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
+4 -4
View File
@@ -20,7 +20,7 @@
#![warn(missing_docs)]
use parity_scale_codec::{Decode, Encode};
use polkadot_primitives::v2::{BlockNumber, Hash};
use polkadot_primitives::{BlockNumber, Hash};
use std::{collections::HashMap, fmt};
#[doc(hidden)]
@@ -139,7 +139,7 @@ impl std::ops::Deref for OurView {
///
/// ```
/// # use polkadot_node_network_protocol::our_view;
/// # use polkadot_primitives::v2::Hash;
/// # use polkadot_primitives::Hash;
/// let our_view = our_view![Hash::repeat_byte(1), Hash::repeat_byte(2)];
/// ```
#[macro_export]
@@ -173,7 +173,7 @@ pub struct View {
///
/// ```
/// # use polkadot_node_network_protocol::view;
/// # use polkadot_primitives::v2::Hash;
/// # use polkadot_primitives::Hash;
/// let view = view![Hash::repeat_byte(1), Hash::repeat_byte(2)];
/// ```
#[macro_export]
@@ -398,7 +398,7 @@ impl_versioned_try_from!(
pub mod v1 {
use parity_scale_codec::{Decode, Encode};
use polkadot_primitives::v2::{
use polkadot_primitives::{
CandidateHash, CandidateIndex, CollatorId, CollatorSignature, CompactStatement, Hash,
Id as ParaId, UncheckedSignedAvailabilityBitfield, ValidatorIndex, ValidatorSignature,
};