Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Dry run xcms on bridge hubs to get forwarded xcms across the W<>R bridge #6002
base: master
Are you sure you want to change the base?
Dry run xcms on bridge hubs to get forwarded xcms across the W<>R bridge #6002
Changes from 19 commits
0a74c6e
4ba9883
b9755bf
4594acb
08dad22
196d265
5914f23
84e60a0
72d1a00
aab1b1d
4cddc77
250c987
ddc07f3
5fab2ab
096b855
daa1d8a
671a326
be83b0f
a6f8b11
840ab25
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@franciscoaguirre
I think we should be able to test or dry-run the full route: AHK -> BHK ... BHP -> AHP.
This way, in the end, we'll be able to write or run a periodic TypeScript/PAPI/whatever script that tests/simulates/dry-runs an asset transfer from AHK to AHP live, without the need to manually intervene (no chopsticks required).
I think the only missing piece is the
DescendOrigin
I mentioned here. We need to trigger somepre-dispatch
,fake-message-proof-delivery
, or whatever runtime API on the bridged BridgeHub, that will ultimately append theDescendOrigin
. Let me think about it more.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't the dispatch (and DescendOrigin appending) happen before sending to outbound HRMP queue? I mean outbound HRMP Q of BH will contain full XCM exactly as it goes to AH, so I don't see the problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, not exactly, bridged/target BridgeHub appends to the xcm
DescendOrigin
when dispatching: https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/xcm/xcm-builder/src/universal_exports.rs#L433-L439so the XCM in outbound Q on sender BridgeHub is not exactly the same as it comes to the target AH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the appending
DescendOrigin
we can do "offchain" (in the test, PAPI call), so this PR should be enough probablyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking of adding chopsticks tests for this under
integration-tests/chopsticks/
but in another PR