Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

XCM simulator #2544

Closed
xlc opened this issue Mar 1, 2021 · 6 comments
Closed

XCM simulator #2544

xlc opened this issue Mar 1, 2021 · 6 comments
Labels
J0-enhancement An additional feature request.

Comments

@xlc
Copy link
Contributor

xlc commented Mar 1, 2021

It will be helpful to have some tool to simulate the interaction of XCM related code without having us to run multiple relaychain nodes and parachain nodes.

@bkchr bkchr added the J0-enhancement An additional feature request. label Mar 1, 2021
@bkchr
Copy link
Member

bkchr commented Mar 1, 2021

By XCM related code you mean your pallets?

@xlc
Copy link
Contributor Author

xlc commented Mar 1, 2021

Our pallets, other parachain's pallets, but most importantly xcm-executor/builder from Polkadot and maybe xcm-handler from Cumulus.

Right now to run a XCM message, it starts from our pallet, uses xcm-builder in Polkadot, call into xcm-handler from Cumulus, which calls xcm-executor from Polkadot, and to go relaychain, routed to dest parachain, call into xcm-handler, call into xcm-executor, call into custom pallet code.

Too many moving parts over multiple process. Will be helpful to be able to run the whole thing in a single integration test.

Otherwise how do I even write test for our XCM related pallets?

@bkchr
Copy link
Member

bkchr commented Mar 1, 2021

CC @shawntabrizi @pepyakin

@jak-pan
Copy link

jak-pan commented Mar 1, 2021

We're trying to do integration tests and will also probably do these with https://github.com/halva-suite/halva but it needs some upgrades since it's little bit outdated. cc @martinfridrich but this is interesting :) Would be faster for preliminary tests.

@shawntabrizi
Copy link
Member

closed by #3538

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
None yet
Development

No branches or pull requests

5 participants
@xlc @shawntabrizi @jak-pan @bkchr and others