Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Add solo-to-para pallet to all runtimes #163

Merged
merged 1 commit into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions runtime/crab-parachain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ smallvec = { version = "1.9" }
cumulus-pallet-aura-ext = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-dmp-queue = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-parachain-system = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-solo-to-para = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27"}
cumulus-pallet-xcm = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-xcmp-queue = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-primitives-core = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
Expand Down Expand Up @@ -94,6 +95,7 @@ std = [
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-solo-to-para/std",
"cumulus-pallet-xcm/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-primitives-core/std",
Expand Down
1 change: 1 addition & 0 deletions runtime/crab-parachain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ frame_support::construct_runtime! {
FromCrabIssuing: dp_common_runtime::helixbridge::{Pallet, Call, Storage, Event<T>} = 24,

MessageRouter: dp_common_runtime::message_router::{Pallet, Call, Storage, Event<T>} = 26,
SoloToPara: cumulus_pallet_solo_to_para::{Pallet, Call, Storage, Event} = 27,
}
}

Expand Down
3 changes: 3 additions & 0 deletions runtime/crab-parachain/src/pallets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ pub use helixbridge::*;

pub mod message_router;
pub use message_router::*;

pub mod solo_to_para;
pub use solo_to_para::*;
2 changes: 1 addition & 1 deletion runtime/crab-parachain/src/pallets/parachain_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl Config for Runtime {
type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases;
type DmpMessageHandler = DmpQueue;
type Event = Event;
type OnSystemEvent = ();
type OnSystemEvent = cumulus_pallet_solo_to_para::Pallet<Runtime>;
type OutboundXcmpMessageSource = XcmpQueue;
type ReservedDmpWeight = ReservedDmpWeight;
type ReservedXcmpWeight = ReservedXcmpWeight;
Expand Down
6 changes: 6 additions & 0 deletions runtime/crab-parachain/src/pallets/solo_to_para.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// --- darwinia-network ---
use crate::*;

impl cumulus_pallet_solo_to_para::Config for Runtime {
type Event = Event;
}
2 changes: 2 additions & 0 deletions runtime/darwinia-parachain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ smallvec = { version = "1.9" }
cumulus-pallet-aura-ext = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-dmp-queue = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-parachain-system = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-solo-to-para = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27"}
cumulus-pallet-xcm = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-xcmp-queue = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-primitives-core = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
Expand Down Expand Up @@ -91,6 +92,7 @@ std = [
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-solo-to-para/std",
"cumulus-pallet-xcm/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-primitives-core/std",
Expand Down
2 changes: 2 additions & 0 deletions runtime/darwinia-parachain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ frame_support::construct_runtime! {

DarwiniaFeeMarket: pallet_fee_market::<Instance1>::{Pallet, Call, Storage, Event<T>} = 23,
FromDarwiniaIssuing: dp_common_runtime::helixbridge::{Pallet, Call, Storage, Event<T>} = 24,

MessageRouter: dp_common_runtime::message_router::{Pallet, Call, Storage, Event<T>} = 26,
SoloToPara: cumulus_pallet_solo_to_para::{Pallet, Call, Storage, Event} = 27,
}
}

Expand Down
3 changes: 3 additions & 0 deletions runtime/darwinia-parachain/src/pallets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ pub use helixbridge::*;

pub mod message_router;
pub use message_router::*;

pub mod solo_to_para;
pub use solo_to_para::*;
2 changes: 1 addition & 1 deletion runtime/darwinia-parachain/src/pallets/parachain_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl Config for Runtime {
type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases;
type DmpMessageHandler = DmpQueue;
type Event = Event;
type OnSystemEvent = ();
type OnSystemEvent = cumulus_pallet_solo_to_para::Pallet<Runtime>;
type OutboundXcmpMessageSource = XcmpQueue;
type ReservedDmpWeight = ReservedDmpWeight;
type ReservedXcmpWeight = ReservedXcmpWeight;
Expand Down
6 changes: 6 additions & 0 deletions runtime/darwinia-parachain/src/pallets/solo_to_para.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// --- darwinia-network ---
use crate::*;

impl cumulus_pallet_solo_to_para::Config for Runtime {
type Event = Event;
}
2 changes: 2 additions & 0 deletions runtime/pangolin-parachain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ smallvec = { version = "1.9" }
cumulus-pallet-aura-ext = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-dmp-queue = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-parachain-system = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-solo-to-para = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27"}
cumulus-pallet-xcm = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-pallet-xcmp-queue = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
cumulus-primitives-core = { default-features = false, git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.27" }
Expand Down Expand Up @@ -95,6 +96,7 @@ std = [
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-solo-to-para/std",
"cumulus-pallet-xcm/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-primitives-core/std",
Expand Down
1 change: 1 addition & 0 deletions runtime/pangolin-parachain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ frame_support::construct_runtime! {
FromPangolinIssuing: dp_common_runtime::helixbridge::{Pallet, Call, Storage, Event<T>} = 24,

MessageRouter: dp_common_runtime::message_router::{Pallet, Call, Storage, Event<T>} = 26,
SoloToPara: cumulus_pallet_solo_to_para::{Pallet, Call, Storage, Event} = 27,
}
}

Expand Down
3 changes: 3 additions & 0 deletions runtime/pangolin-parachain/src/pallets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ pub use helixbridge::*;

pub mod message_router;
pub use message_router::*;

pub mod solo_to_para;
pub use solo_to_para::*;
2 changes: 1 addition & 1 deletion runtime/pangolin-parachain/src/pallets/parachain_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl Config for Runtime {
type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases;
type DmpMessageHandler = DmpQueue;
type Event = Event;
type OnSystemEvent = ();
type OnSystemEvent = cumulus_pallet_solo_to_para::Pallet<Runtime>;
type OutboundXcmpMessageSource = XcmpQueue;
type ReservedDmpWeight = ReservedDmpWeight;
type ReservedXcmpWeight = ReservedXcmpWeight;
Expand Down
6 changes: 6 additions & 0 deletions runtime/pangolin-parachain/src/pallets/solo_to_para.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// --- darwinia-network ---
use crate::*;

impl cumulus_pallet_solo_to_para::Config for Runtime {
type Event = Event;
}