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

Add XCM pallet and config to Polkadot runtime #4313

Merged
merged 7 commits into from
Nov 22, 2021

Conversation

NachoPal
Copy link
Contributor

@NachoPal NachoPal commented Nov 17, 2021

This PR adds support for sending XCMs in the Polkadot runtime by adding pallet-xcm.

The configuration is mostly similar to Kusama with these differences:

  • AdvertisedXcmVersion is set to 2.
  • Child System parachain related configs are removed.

This PR also adds Statemint as a trusted teleporter for DOTs.

closes #4289
closes #4309

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Nov 17, 2021
runtime/polkadot/src/lib.rs Outdated Show resolved Hide resolved
runtime/polkadot/src/lib.rs Show resolved Hide resolved
@apopiak apopiak added B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited. labels Nov 19, 2021
pub const Polkadot: MultiAssetFilter = Wild(AllOf { fun: WildFungible, id: Concrete(DotLocation::get()) });
pub const PolkadotForStatemint: (MultiAssetFilter, MultiLocation) = (Polkadot::get(), Parachain(1000).into());
}
pub type TrustedTeleporters = (xcm_builder::Case<PolkadotForStatemint>,);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joepetrowski this addresses #4289

@apopiak apopiak added this to the v0.9.13 milestone Nov 22, 2021
@apopiak apopiak merged commit 6fa464b into master Nov 22, 2021
@apopiak apopiak deleted the nacho/add-xcm-pallet-and-config branch November 22, 2021 14:00
@@ -158,6 +163,10 @@ std = [
"beefy-primitives/std",
"pallet-mmr-primitives/std",
"frame-election-provider-support/std",
"pallet-xcm/std",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tab or spaces, this is the question

drahnr pushed a commit that referenced this pull request Nov 24, 2021
* xcm added

* xcm pallet & config added Polkadot

* set advertise XCM version to 2 for Polkadot

* remove ChildSystemParachainAsSuperuser from Polkadot XCM config

* remove unpaid execution for system parachains

* remove unused imports

Co-authored-by: Alexander Popiak <[email protected]>
@viniul viniul added D1-audited 👍 PR contains changes to critical logic that has been properly reviewed and externally audited. and removed D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited. labels Nov 25, 2021
bkchr pushed a commit that referenced this pull request Dec 1, 2021
* xcm added

* xcm pallet & config added Polkadot

* set advertise XCM version to 2 for Polkadot

* remove ChildSystemParachainAsSuperuser from Polkadot XCM config

* remove unpaid execution for system parachains

* remove unused imports

Co-authored-by: Alexander Popiak <[email protected]>
bkchr added a commit that referenced this pull request Dec 2, 2021
* Update Substrate branch

* add disputes to Kusama runtime (#4356)

* add disputes to Kusama runtime

* Update DisputesHandler

* fmt

* add the benchmarks

* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::disputes --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_disputes.rs

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Parity Bot <[email protected]>

* Add XCM pallet and config to Polkadot runtime (#4313)

* xcm added

* xcm pallet & config added Polkadot

* set advertise XCM version to 2 for Polkadot

* remove ChildSystemParachainAsSuperuser from Polkadot XCM config

* remove unpaid execution for system parachains

* remove unused imports

Co-authored-by: Alexander Popiak <[email protected]>

* Pin changelogerator to the latest compatible version for the current flow (#4392) (#4436)

* add missing feature (#4355)

* add pallet-babe/std (#4438)

* Apply v0.9.13 weights (#4444)

* Update weights for Westend

* Update weights for kusama

* Update weights for polkadot

* bump tx versions (#4447) (#4450)

Co-authored-by: Robert Habermeier <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Ignacio Palacios <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Chevdor <[email protected]>
Co-authored-by: Xiliang Chen <[email protected]>
Co-authored-by: zjb0807 <[email protected]>
Co-authored-by: Martin Pugh <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D1-audited 👍 PR contains changes to critical logic that has been properly reviewed and externally audited.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pallet-xcm to Polkadot Add Statemint as TrustedTeleporter to Polkadot
6 participants