runtime_eden/
pallets_parachain.rsuse crate::{constants, MessageQueue, Runtime, RuntimeEvent, XcmpQueue};
use cumulus_pallet_parachain_system::RelayNumberMonotonicallyIncreases;
use cumulus_primitives_core::AggregateMessageOrigin;
use frame_support::parameter_types;
use xcm::latest::prelude::*;
parameter_types! {
pub const ReservedXcmpWeight: Weight = constants::MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
pub const ReservedDmpWeight: Weight = constants::MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
}
pub type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
{ constants::RELAY_CHAIN_SLOT_DURATION_MILLIS },
{ constants::BLOCK_PROCESSING_VELOCITY },
{ constants::UNINCLUDED_SEGMENT_CAPACITY },
>;
impl cumulus_pallet_parachain_system::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type OnSystemEvent = ();
type SelfParaId = parachain_info::Pallet<Runtime>;
type OutboundXcmpMessageSource = XcmpQueue;
type ReservedDmpWeight = ReservedDmpWeight;
type XcmpMessageHandler = XcmpQueue;
type ReservedXcmpWeight = ReservedXcmpWeight;
type CheckAssociatedRelayNumber = RelayNumberMonotonicallyIncreases;
type DmpQueue = frame_support::traits::EnqueueWithOrigin<MessageQueue, RelayOrigin>;
type ConsensusHook = ConsensusHook;
type WeightInfo = crate::weights::cumulus_pallet_parachain_system::WeightInfo<Runtime>;
}
impl parachain_info::Config for Runtime {}