Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: xcm with computed origin config #633

Merged
merged 9 commits into from
Jul 27, 2023
Merged

feat: xcm with computed origin config #633

merged 9 commits into from
Jul 27, 2023

Conversation

Roznovjak
Copy link
Collaborator

@Roznovjak Roznovjak commented Jul 3, 2023

Based on a discussion with @apopiak, where we reviewed the XCM changes proposed by the Substrate builders programme in this PR #591, we decided to make the following changes:

  1. Use WithComputedOrigin derivative barrier with AllowTopLevelPaidExecutionFrom and AllowSubscriptionsFrom barriers. This outer barrier computes the effective origin (checks for any origin altering operations) and passes this updated origin to inner barriers.
  2. Change XcmExecuteFilter from Everything to Nothing. This change disallows pallet_xcm::execute extrinsic which allows sending arbitrary XCM messages. We are not aware of any issues with this param set to Everything, but better be sure. Moreover, pallet_xcm is blocked by the runtime call filter.

@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Crate versions that have been updated:

  • runtime-integration-tests: v0.9.14 -> v0.9.15
  • basilisk-runtime: v105.0.0 -> v106.0.0

Runtime version has been increased.

@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.13% ⚠️

Comparison is base (fb09976) 49.67% compared to head (31a89bf) 49.54%.

❗ Current head 31a89bf differs from pull request most recent head 5e99efe. Consider uploading reports for the commit 5e99efe to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #633      +/-   ##
==========================================
- Coverage   49.67%   49.54%   -0.13%     
==========================================
  Files          60       60              
  Lines        3867     3865       -2     
==========================================
- Hits         1921     1915       -6     
- Misses       1946     1950       +4     
Files Changed Coverage Δ
runtime/basilisk/src/xcm.rs 72.50% <ø> (-3.70%) ⬇️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@apopiak apopiak left a comment

Choose a reason for hiding this comment

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

looks fine after addressing comments

runtime/basilisk/src/xcm.rs Outdated Show resolved Hide resolved
@mrq1911 mrq1911 changed the title feat: update xcm config feat: xcm with computed origin config Jul 26, 2023
@Roznovjak Roznovjak linked an issue Jul 27, 2023 that may be closed by this pull request
@Roznovjak Roznovjak merged commit 91ee6ea into master Jul 27, 2023
4 of 5 checks passed
@Roznovjak Roznovjak deleted the xcm_config branch July 27, 2023 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XCM computed origin config
3 participants