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

Commit

Permalink
Add Collectives as Trusted Teleporter (#6326)
Browse files Browse the repository at this point in the history
* add collectives as trusted teleporter

* fix statemint-specific doc
  • Loading branch information
joepetrowski authored Nov 29, 2022
1 parent d8ae624 commit 7cd860e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/polkadot/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ pub type XcmRouter = (
parameter_types! {
pub const Polkadot: MultiAssetFilter = Wild(AllOf { fun: WildFungible, id: Concrete(DotLocation::get()) });
pub const PolkadotForStatemint: (MultiAssetFilter, MultiLocation) = (Polkadot::get(), Parachain(1000).into());
pub const PolkadotForCollectives: (MultiAssetFilter, MultiLocation) = (Polkadot::get(), Parachain(1001).into());
}

/// Polkadot Relay recognizes/respects the Statemint chain as a teleporter.
pub type TrustedTeleporters = (xcm_builder::Case<PolkadotForStatemint>,);
/// Polkadot Relay recognizes/respects System parachains as teleporters.
pub type TrustedTeleporters =
(xcm_builder::Case<PolkadotForStatemint>, xcm_builder::Case<PolkadotForCollectives>);

match_types! {
pub type OnlyParachains: impl Contains<MultiLocation> = {
Expand Down

0 comments on commit 7cd860e

Please sign in to comment.