#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
pub mod impls;
pub mod message_queue;
pub mod pay;
pub mod xcm_config;
pub use constants::*;
pub use opaque::*;
pub use types::*;
mod types {
use pezsp_runtime::traits::{IdentifyAccount, Verify};
pub type BlockNumber = u32;
pub type Signature = pezsp_runtime::MultiSignature;
pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;
pub type AccountIndex = u32;
pub type Balance = u128;
pub type Nonce = u32;
pub type Hash = pezsp_core::H256;
pub type DigestItem = pezsp_runtime::generic::DigestItem;
pub type AuraId = pezsp_consensus_aura::sr25519::AuthorityId;
pub type AssetHubPezkuwiAuraId = pezsp_consensus_aura::ed25519::AuthorityId;
pub type AssetIdForTrustBackedAssets = u32;
pub type CollectionId = u32;
pub type ItemId = u32;
}
mod constants {
use super::types::BlockNumber;
use pezframe_support::{
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
PalletId,
};
use pezsp_runtime::Perbill;
pub const MILLISECS_PER_BLOCK: u64 = 12000;
pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;
pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
pub const HOURS: BlockNumber = MINUTES * 60;
pub const DAYS: BlockNumber = HOURS * 24;
pub const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
pezkuwi_primitives::MAX_POV_SIZE as u64,
);
pub const MAXIMUM_BLOCK_WEIGHT_FOR_ASYNC_BACKING: Weight = Weight::from_parts(
WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2),
pezkuwi_primitives::MAX_POV_SIZE as u64,
);
pub const TREASURY_PALLET_ID: PalletId = PalletId(*b"py/trsry");
}
pub mod opaque {
use super::*;
use pezsp_runtime::{generic, traits::BlakeTwo256};
pub use pezsp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;
pub type Header = generic::Header<BlockNumber, BlakeTwo256>;
pub type Block = generic::Block<Header, UncheckedExtrinsic>;
pub type BlockId = generic::BlockId<Block>;
}