xcm-tools icon indicating copy to clipboard operation
xcm-tools copied to clipboard

Add HRMP channel checking

Open dudo50 opened this issue 6 months ago • 0 comments

Right now we don't check wheter there is HRMP channel open between the two chains, rather we are counting on dryrun failing, but we can use onchain query to get more precise data on how are chains connected together.

This will especially be useful in

XCM Trasfers - so we can prevent user from sending if chains are not connected without them even needing to perform dryrun Can also be useful in getDestinations for assets

Can however prevent some scenarios where we use multihop transfer through chain that has HRMP channel

Perhaps we can also use this to find the possible routes if it is not possible to directly transfer between the two chains rather than preventing user from doing this transfer at all. We can build execute XCM that will route the asset the correct way.

dudo50 avatar Jun 13 '25 08:06 dudo50