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): add xcm topic id wrappers to router and barrier #961

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XY-Wang
Copy link

@XY-Wang XY-Wang commented Dec 12, 2024

This PR adds the WithUniqueTopic and TrailingSetTopicAsId wrappers, introduced in paritytech/polkadot#7234, to the XCM Router and Barrier respectively.

This will allow for easier tracking of XCM, especially in the case of multi-hop messages where the message hash differs on each leg.

More detailed explanation: https://substrate.stackexchange.com/questions/1893/is-there-an-id-for-xcm-message/1906#1906

The implementation mirrors that of the system parachains:

https://github.com/polkadot-fellows/runtimes/blob/7b096c14c2b16cc81ca4e2188eea9103f120b7a4/system-parachains/asset-hubs/asset-hub-polkadot/src/xcm_config.rs#L295

https://github.com/polkadot-fellows/runtimes/blob/7b096c14c2b16cc81ca4e2188eea9103f120b7a4/system-parachains/asset-hubs/asset-hub-polkadot/src/xcm_config.rs#L477

@jak-pan
Copy link
Contributor

jak-pan commented Dec 30, 2024

We need rebench here and we can merge. @XY-Wang can you send your wallet address?

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.

2 participants