Skip to content

Commit

Permalink
add Encointer as trusted teleporter for Westend (#3411)
Browse files Browse the repository at this point in the history
with the deprecation of Rococo, Encointer needs a new staging
environment. Paseo will be Polkadot-focused and westend Kusama-focused,
so we propose to use Westend
  • Loading branch information
brenzi authored Feb 26, 2024
1 parent 3d9439f commit 49266f1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions polkadot/runtime/westend/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ pub mod system_parachain {
pub const COLLECTIVES_ID: u32 = 1001;
/// BridgeHub parachain ID.
pub const BRIDGE_HUB_ID: u32 = 1002;
/// Encointer parachain ID.
pub const ENCOINTER_ID: u32 = 1003;
/// People Chain parachain ID.
pub const PEOPLE_ID: u32 = 1004;
/// Brokerage parachain ID.
Expand Down
3 changes: 3 additions & 0 deletions polkadot/runtime/westend/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ parameter_types! {
pub AssetHub: Location = Parachain(ASSET_HUB_ID).into_location();
pub Collectives: Location = Parachain(COLLECTIVES_ID).into_location();
pub BridgeHub: Location = Parachain(BRIDGE_HUB_ID).into_location();
pub Encointer: Location = Parachain(ENCOINTER_ID).into_location();
pub People: Location = Parachain(PEOPLE_ID).into_location();
pub Broker: Location = Parachain(BROKER_ID).into_location();
pub Wnd: AssetFilter = Wild(AllOf { fun: WildFungible, id: AssetId(TokenLocation::get()) });
pub WndForAssetHub: (AssetFilter, Location) = (Wnd::get(), AssetHub::get());
pub WndForCollectives: (AssetFilter, Location) = (Wnd::get(), Collectives::get());
pub WndForBridgeHub: (AssetFilter, Location) = (Wnd::get(), BridgeHub::get());
pub WndForEncointer: (AssetFilter, Location) = (Wnd::get(), Encointer::get());
pub WndForPeople: (AssetFilter, Location) = (Wnd::get(), People::get());
pub WndForBroker: (AssetFilter, Location) = (Wnd::get(), Broker::get());
pub MaxInstructions: u32 = 100;
Expand All @@ -130,6 +132,7 @@ pub type TrustedTeleporters = (
xcm_builder::Case<WndForAssetHub>,
xcm_builder::Case<WndForCollectives>,
xcm_builder::Case<WndForBridgeHub>,
xcm_builder::Case<WndForEncointer>,
xcm_builder::Case<WndForPeople>,
xcm_builder::Case<WndForBroker>,
);
Expand Down
11 changes: 11 additions & 0 deletions prdoc/pr_3411.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json

title: add Encointer as trusted teleporter for Westend

doc:
- audience: Runtime Dev
description: |
add Encointer as trusted teleporter for Westend with ParaId 1003

crates: [ ]

0 comments on commit 49266f1

Please sign in to comment.