snapshot before rebranding
This commit is contained in:
@@ -51,7 +51,7 @@ pub mod xcm_config;
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::{vec, vec::Vec};
|
||||
use cumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
use pezcumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
use pezsp_api::impl_runtime_apis;
|
||||
pub use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
|
||||
use pezsp_core::{crypto::KeyTypeId, OpaqueMetadata};
|
||||
@@ -65,7 +65,7 @@ use pezsp_runtime::{
|
||||
use pezsp_version::NativeVersion;
|
||||
use pezsp_version::RuntimeVersion;
|
||||
|
||||
use cumulus_primitives_core::{AggregateMessageOrigin, ParaId};
|
||||
use pezcumulus_primitives_core::{AggregateMessageOrigin, ParaId};
|
||||
pub use pezframe_support::{
|
||||
construct_runtime, derive_impl,
|
||||
dispatch::DispatchClass,
|
||||
@@ -160,7 +160,7 @@ impl pezframe_system::Config for Runtime {
|
||||
type BlockWeights = RuntimeBlockWeights;
|
||||
type BlockLength = RuntimeBlockLength;
|
||||
type SS58Prefix = SS58Prefix;
|
||||
type OnSetCode = cumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
|
||||
}
|
||||
|
||||
@@ -170,14 +170,14 @@ parameter_types! {
|
||||
pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
|
||||
}
|
||||
|
||||
type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
|
||||
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
|
||||
Runtime,
|
||||
RELAY_CHAIN_SLOT_DURATION_MILLIS,
|
||||
3,
|
||||
9,
|
||||
>;
|
||||
|
||||
impl cumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OnSystemEvent = ();
|
||||
type SelfParaId = teyrchain_info::Pallet<Runtime>;
|
||||
@@ -188,7 +188,7 @@ impl cumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type ReservedXcmpWeight = ();
|
||||
type CheckAssociatedRelayNumber = RelayNumberMonotonicallyIncreases;
|
||||
type ConsensusHook = ConsensusHook;
|
||||
type WeightInfo = weights::cumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
type RelayParentOffset = ConstU32<0>;
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ impl pezpallet_message_queue::Config for Runtime {
|
||||
type WeightInfo = weights::pezpallet_message_queue::WeightInfo<Runtime>;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type MessageProcessor = pezpallet_message_queue::mock_helpers::NoopMessageProcessor<
|
||||
cumulus_primitives_core::AggregateMessageOrigin,
|
||||
pezcumulus_primitives_core::AggregateMessageOrigin,
|
||||
>;
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
type MessageProcessor = xcm_builder::ProcessXcmMessage<
|
||||
@@ -222,7 +222,7 @@ impl pezpallet_message_queue::Config for Runtime {
|
||||
|
||||
impl teyrchain_info::Config for Runtime {}
|
||||
|
||||
impl cumulus_pallet_aura_ext::Config for Runtime {}
|
||||
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
|
||||
|
||||
impl pezpallet_timestamp::Config for Runtime {
|
||||
type Moment = u64;
|
||||
@@ -255,12 +255,12 @@ construct_runtime! {
|
||||
pub enum Runtime
|
||||
{
|
||||
System: pezframe_system = 0,
|
||||
TeyrchainSystem: cumulus_pallet_teyrchain_system = 1,
|
||||
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
|
||||
TeyrchainInfo: teyrchain_info = 2,
|
||||
Timestamp: pezpallet_timestamp = 3,
|
||||
|
||||
// DMP handler.
|
||||
CumulusXcm: cumulus_pallet_xcm = 10,
|
||||
CumulusXcm: pezcumulus_pallet_xcm = 10,
|
||||
MessageQueue: pezpallet_message_queue = 11,
|
||||
|
||||
// The main stage.
|
||||
@@ -268,7 +268,7 @@ construct_runtime! {
|
||||
|
||||
// Collator support
|
||||
Aura: pezpallet_aura = 30,
|
||||
AuraExt: cumulus_pallet_aura_ext = 31,
|
||||
AuraExt: pezcumulus_pallet_aura_ext = 31,
|
||||
|
||||
// Sudo.
|
||||
Sudo: pezpallet_sudo = 255,
|
||||
@@ -318,7 +318,7 @@ pub type Executive = pezframe_executive::Executive<
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
mod benches {
|
||||
pezframe_benchmarking::define_benchmarks!(
|
||||
[cumulus_pallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezframe_system, SystemBench::<Runtime>]
|
||||
[pezframe_system_extensions, SystemExtensionsBench::<Runtime>]
|
||||
[pezpallet_glutton, Glutton]
|
||||
@@ -366,16 +366,16 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl cumulus_primitives_core::RelayParentOffsetApi<Block> for Runtime {
|
||||
impl pezcumulus_primitives_core::RelayParentOffsetApi<Block> for Runtime {
|
||||
fn relay_parent_offset() -> u32 {
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
impl cumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
|
||||
impl pezcumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
|
||||
fn can_build_upon(
|
||||
included_hash: <Block as BlockT>::Hash,
|
||||
slot: cumulus_primitives_aura::Slot,
|
||||
slot: pezcumulus_primitives_aura::Slot,
|
||||
) -> bool {
|
||||
ConsensusHook::can_build_upon(included_hash, slot)
|
||||
}
|
||||
@@ -429,8 +429,8 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
|
||||
fn collect_collation_info(header: &<Block as BlockT>::Header) -> cumulus_primitives_core::CollationInfo {
|
||||
impl pezcumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
|
||||
fn collect_collation_info(header: &<Block as BlockT>::Header) -> pezcumulus_primitives_core::CollationInfo {
|
||||
TeyrchainSystem::collect_collation_info(header)
|
||||
}
|
||||
}
|
||||
@@ -476,7 +476,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn verify_set_code() {
|
||||
System::assert_last_event(cumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -504,20 +504,20 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl cumulus_primitives_core::GetTeyrchainInfo<Block> for Runtime {
|
||||
impl pezcumulus_primitives_core::GetTeyrchainInfo<Block> for Runtime {
|
||||
fn teyrchain_id() -> ParaId {
|
||||
TeyrchainInfo::teyrchain_id()
|
||||
}
|
||||
}
|
||||
|
||||
impl cumulus_primitives_core::TargetBlockRate<Block> for Runtime {
|
||||
impl pezcumulus_primitives_core::TargetBlockRate<Block> for Runtime {
|
||||
fn target_block_rate() -> u32 {
|
||||
1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cumulus_pallet_teyrchain_system::register_validate_block! {
|
||||
pezcumulus_pallet_teyrchain_system::register_validate_block! {
|
||||
Runtime = Runtime,
|
||||
BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user