8000 XCM revamp by gavofyork · Pull Request #2836 · paritytech/polkadot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

XCM revamp #2836

Merged
merged 43 commits into from
Apr 7, 2021
Merged

XCM revamp #2836

merged 43 commits into from
Apr 7, 2021

Conversation

gavofyork
Copy link
Member
@gavofyork gavofyork commented Apr 7, 2021
  • Make the Xcm and Order enums generic over the Call type.
  • Introduce Order::BuyExecution
  • Introduce additional traits WeightTrader, ShouldExecute and WeightBounds.
  • Introduce basic implementions of each trait, including several sensible ones for ShouldExecute.
  • Introduce a mock test environment and plenty of tests.

TODO:

  • Rename Xcm -> opaque::Xcm and rename XcmGeneric -> generic::Xcm, same for Order and VersionedXcm
  • Move builder structs in xcm-executor over into xcm-builder
  • Implement MatchesFungible for tuples (#MATCHTUPLE)

gavofyork and others added 24 commits April 1, 2021 22:13
- Moved most of the logic into xcm-handler pallet
- Altered the outgoing XCMP API from push to pull
- Changed underlying outgoing queue data structures to avoid multi-page read/writes
- Introduced queuing for incoming messages
- Introduced signal messages as a flow-control sub-stream
- Introduced flow-control with basic threshold back-pressure
- Introduced overall weight limitation on messages executed
- Additonal alterations to XCM APIs for the new system
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Apr 7, 2021
@gavofyork gavofyork added 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. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Apr 7, 2021
gavofyork and others added 2 commits April 7, 2021 14:39
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
let mut result = location.clone();
for (i, j) in location.iter_rev()
.map(|j| match j {
Junction::Parent => ancestry.take_first().unwrap_or(Junction::OnlyChild),
Copy link
Member

Choose a reason for hiding this comment

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

note to revisit this

@gavofyork gavofyork mentioned this pull request Apr 7, 2021
47 tasks
@gavofyork gavofyork merged commit 12a3e03 into master Apr 7, 2021
@gavofyork gavofyork deleted the gav-new-xcm branch April 7, 2021 20:38
shawntabrizi added a commit that referenced this pull request Apr 8, 2021
This reverts commit 12a3e03.
rphmeier added a commit that referenced this pull request Apr 8, 2021
This reverts commit 12a3e03.
rphmeier added a commit that referenced this pull request Apr 9, 2021
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. 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. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0