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

Vstam1/xcm admin origin #6928

Merged
merged 5 commits into from
Mar 23, 2023
Merged

Vstam1/xcm admin origin #6928

merged 5 commits into from
Mar 23, 2023

Conversation

vstam1
Copy link
Contributor

@vstam1 vstam1 commented Mar 21, 2023

Fixes CI from #6632. Commit 5ae05e1 cherry-picked as solution for #6442

Add new associated type, AdminOrigin, bounded by EnsureOrigin trait in XCM-pallet config. Replace ensure_root() with ensure_origin(). Use EnsureRoot in all implementations of XCM pallet to preserve the current behavior until Gov2 specific origins are implemented.


cumulus companion: paritytech/cumulus#2356

serkul and others added 2 commits March 21, 2023 12:06
5ae05e1

Add new associated type, AdminOrigin, bounded by EnsureOrigin trait in
XCM pallet. Replace ensure_root() with ensure_origin() from a
EnsureOrigin trait. Set AdminOrigin as EnsureRoot<AccountId> in xcm
configs.
@vstam1 vstam1 added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. T6-XCM This PR/Issue is related to XCM. labels Mar 21, 2023
@vstam1 vstam1 requested a review from KiChjang March 21, 2023 11:47
@paritytech-ci paritytech-ci requested review from a team March 21, 2023 11:47
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

I dont quite understand why you not directly push to #6632 but looks good.

runtime/polkadot/src/xcm_config.rs Outdated Show resolved Hide resolved
@ggwpez ggwpez added B1-note_worthy Changes should be noted in the release notes T1-runtime This PR/Issue is related to the topic “runtime”. and removed B0-silent Changes should not be mentioned in any release notes T6-XCM This PR/Issue is related to XCM. labels Mar 21, 2023
@KiChjang
Copy link
Contributor

Pinging @gavofyork -- you have expressed concerns for this feature in person, but I recall in an earlier element conversation you mentioned that this may be desirable. Is this still the case?

@@ -231,6 +231,9 @@ pub mod pallet {
/// `pallet_xcm::CurrentXcmVersion`.
type AdvertisedXcmVersion: Get<XcmVersion>;

/// The origin that is allowed to call privileged operations on the XCM pallet
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// The origin that is allowed to call privileged operations on the XCM pallet
/// The origin that is allowed to call privileged operations on the XCM pallet.

@gavofyork gavofyork merged commit d8e6ca5 into master Mar 23, 2023
@gavofyork gavofyork deleted the vstam1/xcm-admin-origin branch March 23, 2023 09:58
ordian added a commit that referenced this pull request Mar 23, 2023
* master:
  Bump parity-scale-codec to v 3.4.0 (#6945)
  XCM ExportMessage benchmark support (#6923)
  Vstam1/xcm admin origin (#6928)
  Ensure candidate-backing and provisioner exit on missing Overseer (#6939)
  move back to ci-linux@production image
  runtime/inclusion: fix availability_threshold (#6931)
  Companion for #13624 (#6924)
ordian added a commit that referenced this pull request Mar 23, 2023
* master:
  Bump parity-scale-codec to v 3.4.0 (#6945)
  XCM ExportMessage benchmark support (#6923)
  Vstam1/xcm admin origin (#6928)
  Ensure candidate-backing and provisioner exit on missing Overseer (#6939)
  move back to ci-linux@production image
  runtime/inclusion: fix availability_threshold (#6931)
  Companion for #13624 (#6924)
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. B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. T1-runtime This PR/Issue is related to the topic “runtime”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants