Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Westend xcm: collectives parachain is trusted teleporter #5798

Merged
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
10 changes: 8 additions & 2 deletions runtime/westend/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,20 @@ pub type XcmRouter = (
parameter_types! {
pub const Westmint: MultiLocation = Parachain(1000).into();
pub const Encointer: MultiLocation = Parachain(1001).into();
pub const Collectives: MultiLocation = Parachain(1002).into();
pub const WestendForWestmint: (MultiAssetFilter, MultiLocation) =
(Wild(AllOf { fun: WildFungible, id: Concrete(WndLocation::get()) }), Westmint::get());
pub const WestendForEncointer: (MultiAssetFilter, MultiLocation) =
(Wild(AllOf { fun: WildFungible, id: Concrete(WndLocation::get()) }), Encointer::get());
pub const WestendForCollectives: (MultiAssetFilter, MultiLocation) =
(Wild(AllOf { fun: WildFungible, id: Concrete(WndLocation::get()) }), Collectives::get());
pub const MaxInstructions: u32 = 100;
}
pub type TrustedTeleporters =
(xcm_builder::Case<WestendForWestmint>, xcm_builder::Case<WestendForEncointer>);
pub type TrustedTeleporters = (
xcm_builder::Case<WestendForWestmint>,
xcm_builder::Case<WestendForEncointer>,
xcm_builder::Case<WestendForCollectives>,
);

/// The barriers one of which must be passed for an XCM message to be executed.
pub type Barrier = (
Expand Down