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

Bridges: Setup chopstics test for asset transfer over bridge #7837

Open
bkontur opened this issue Mar 6, 2025 · 0 comments
Open

Bridges: Setup chopstics test for asset transfer over bridge #7837

bkontur opened this issue Mar 6, 2025 · 0 comments
Labels
T10-tests This PR/Issue is related to tests. T15-bridges This PR/Issue is related to bridges.

Comments

@bkontur
Copy link
Contributor

bkontur commented Mar 6, 2025

Relates to: #4793
Relates to: AcalaNetwork/chopsticks#741

Let's prepare an initial Chopsticks test (either standalone or PET-like) for Bridges that:

  • Sets up the following environments:
    • Kusama, AssetHubKusama, BridgeHubKusama
    • Polkadot, AssetHubPolkadot, BridgeHubPolkadot
  • Submits limited_reserve_transfer_assets(dest: AssetHubKusama, beneficiary: SomeAccountOnAssetHubKusama, assets: DOTs) on AssetHubPolkadot.
  • Waits for and asserts the MessagesAccepted event on BridgeHubPolkadot.
  • Waits for a finalized block containing MessagesAccepted.
  • Includes a README or instructions on how to run it locally.
  • This should be sufficient as an initial step.

When initial step is done, we will continue exploring ways to simulate or fake a "relay" to BridgeHubKusama, for example:

  • Adding a root-like extrinsic that bypasses validation and directly manipulates storage to trigger message dispatch.
  • Using substrate-relay (I am not sure if Chopsticks can integrate and run different standalone binaries?) / (This could be cool, as it would also allow us to test substrate-relay with live networks).
  • Performing some TS/JS-based workaround to call submit_proofs extrinsics (finality, parachain, messages) similarly to how substrate-relay constructs them.
  • Other?
@bkontur bkontur added T10-tests This PR/Issue is related to tests. T15-bridges This PR/Issue is related to bridges. labels Mar 6, 2025
@bkontur bkontur moved this to Todo in Bridges + XCM Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T10-tests This PR/Issue is related to tests. T15-bridges This PR/Issue is related to bridges.
Projects
Status: No status
Status: Todo
Development

No branches or pull requests

1 participant