Add Collectives as Trusted Teleporter (#6326)

* add collectives as trusted teleporter

* fix statemint-specific doc
This commit is contained in:
joe petrowski
2022-11-29 17:14:47 +01:00
committed by GitHub
parent b5d5a7ee4f
commit 8042b1cb2a
+4 -2
View File
@@ -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> = {