mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user