mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
parachain-system (#296)
* rename parachain-{upgrade -> system}
* Merge message-broker into parachain-system
* Remove message-broker and clean up
* Update docs
* Test upward messages sending
And also update the relay-sproof-builder so that it allows to set the
relay dispatch queue size for the given parachain.
* Test horizontal message sending
* Remove old inherent definitions
This commit is contained in:
@@ -35,9 +35,8 @@ pallet-transaction-payment = { git = "https://github.com/paritytech/substrate",
|
||||
|
||||
# Cumulus dependencies
|
||||
cumulus-runtime = { path = "../../runtime", default-features = false }
|
||||
cumulus-parachain-upgrade = { path = "../../parachain-upgrade", default-features = false }
|
||||
cumulus-parachain-system = { path = "../../parachain-system", default-features = false }
|
||||
cumulus-primitives = { path = "../../primitives", default-features = false }
|
||||
cumulus-message-broker = { path = "../../message-broker", default-features = false }
|
||||
xcm-handler = { path = "../../xcm-handler", default-features = false }
|
||||
|
||||
# Polkadot dependencies
|
||||
@@ -76,8 +75,7 @@ std = [
|
||||
"parachain-info/std",
|
||||
"rococo-parachain-primitives/std",
|
||||
"cumulus-runtime/std",
|
||||
"cumulus-parachain-upgrade/std",
|
||||
"cumulus-message-broker/std",
|
||||
"cumulus-parachain-system/std",
|
||||
"cumulus-primitives/std",
|
||||
"xcm/std",
|
||||
"xcm-builder/std",
|
||||
|
||||
@@ -229,13 +229,10 @@ impl pallet_sudo::Config for Runtime {
|
||||
type Event = Event;
|
||||
}
|
||||
|
||||
impl cumulus_parachain_upgrade::Config for Runtime {
|
||||
impl cumulus_parachain_system::Config for Runtime {
|
||||
type Event = Event;
|
||||
type OnValidationData = ();
|
||||
type SelfParaId = parachain_info::Module<Runtime>;
|
||||
}
|
||||
|
||||
impl cumulus_message_broker::Config for Runtime {
|
||||
type DownwardMessageHandlers = ();
|
||||
type HrmpMessageHandlers = ();
|
||||
}
|
||||
@@ -290,8 +287,8 @@ impl Config for XcmConfig {
|
||||
impl xcm_handler::Config for Runtime {
|
||||
type Event = Event;
|
||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||
type UpwardMessageSender = MessageBroker;
|
||||
type HrmpMessageSender = MessageBroker;
|
||||
type UpwardMessageSender = ParachainSystem;
|
||||
type HrmpMessageSender = ParachainSystem;
|
||||
}
|
||||
|
||||
construct_runtime! {
|
||||
@@ -305,8 +302,7 @@ construct_runtime! {
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Sudo: pallet_sudo::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage},
|
||||
ParachainUpgrade: cumulus_parachain_upgrade::{Module, Call, Storage, Inherent, Event},
|
||||
MessageBroker: cumulus_message_broker::{Module, Storage, Call, Inherent},
|
||||
ParachainSystem: cumulus_parachain_system::{Module, Call, Storage, Inherent, Event},
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage},
|
||||
ParachainInfo: parachain_info::{Module, Storage, Config},
|
||||
XcmHandler: xcm_handler::{Module, Event<T>, Origin},
|
||||
|
||||
Reference in New Issue
Block a user