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
@@ -20,7 +20,7 @@ pub mod weights;
/// Money matters.
pub mod currency {
use primitives::v2::Balance;
use primitives::Balance;
/// The existential deposit.
pub const EXISTENTIAL_DEPOSIT: Balance = 1 * CENTS;
@@ -38,7 +38,7 @@ pub mod currency {
/// Time and blocks.
pub mod time {
use primitives::v2::{BlockNumber, Moment};
use primitives::{BlockNumber, Moment};
use runtime_common::prod_or_fast;
pub const MILLISECS_PER_BLOCK: Moment = 6000;
pub const SLOT_DURATION: Moment = MILLISECS_PER_BLOCK;
@@ -63,7 +63,7 @@ pub mod fee {
use frame_support::weights::{
WeightToFeeCoefficient, WeightToFeeCoefficients, WeightToFeePolynomial,
};
use primitives::v2::Balance;
use primitives::Balance;
use smallvec::smallvec;
pub use sp_runtime::Perbill;
+5 -5
View File
@@ -22,7 +22,7 @@
use pallet_nis::WithMaximumOf;
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
use primitives::v2::{
use primitives::{
AccountId, AccountIndex, Balance, BlockNumber, CandidateEvent, CommittedCandidateReceipt,
CoreState, GroupRotationInfo, Hash, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage,
Moment, Nonce, OccupiedCoreAssumption, PersistedValidationData, ScrapedOnChainVotes,
@@ -1324,7 +1324,7 @@ impl pallet_nomination_pools::Config for Runtime {
construct_runtime! {
pub enum Runtime where
Block = Block,
NodeBlock = primitives::v2::Block,
NodeBlock = primitives::Block,
UncheckedExtrinsic = UncheckedExtrinsic
{
// Basic stuff; balances is uncallable initially.
@@ -1670,7 +1670,7 @@ sp_api::impl_runtime_apis! {
fn check_validation_outputs(
para_id: ParaId,
outputs: primitives::v2::CandidateCommitments,
outputs: primitives::CandidateCommitments,
) -> bool {
parachains_runtime_api_impl::check_validation_outputs::<Runtime>(para_id, outputs)
}
@@ -1722,8 +1722,8 @@ sp_api::impl_runtime_apis! {
}
fn submit_pvf_check_statement(
stmt: primitives::v2::PvfCheckStatement,
signature: primitives::v2::ValidatorSignature,
stmt: primitives::PvfCheckStatement,
signature: primitives::ValidatorSignature,
) {
parachains_runtime_api_impl::submit_pvf_check_statement::<Runtime>(stmt, signature)
}