-
Notifications
You must be signed in to change notification settings - Fork 8
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
XCM MultiLocation Written Format #188
Comments
Hey @ryanleecode, thank you for your suggestion! We will look into this shortly and let you know if we have any questions for you regarding this feature/tool you requested. With kind regards, |
@ryanleecode , we had deep dive to this issue. Could you please confirm us, if we understand correctly? So you wish us to create function/tool/package, that converts lenghty JSON to something like this? : The above would be translated from :
If we understand your request correctly, could you please specify if the output format we mentioned suits your needs and if not, how would you format the output of the tool? Thanks you! |
Is that an yaml array? I'm not sure what the structure is between the comments. But from what I understand there should be 1 parent and the interior field should be an array. For example {
"parents": "0",
"interior": {
"X2": [
{
"PalletInstance": "50"
},
{
"GeneralIndex": "41"
}
]
}
} is equal to If it had parent field set to If i were to take your example at then that looks like 3 separate XCM paths to me
There are also some examples in the PBA book. Make sure to use the down arrow on your keyboard instead of the right arrow: https://polkadot-blockchain-academy.github.io/pba-content/hong-kong-2024/syllabus/8-XCM/1-Core_Concepts_of_XCM/Core_Concepts_of_XCM_slides.html#/6 |
Great, this helps a lot. We will work hard to bring this tool asap. We will ping you once it is ready. With kind regards, |
Can you make this functionality its own separate package in the monorepo with minimal dependencies? See the discussion here: polkadot-js/extension#1331 (comment) |
@ryanleecode , yes that is the plan. It is scheduled for development in pipeline for early april. Will ping you afterward. With kind regards, |
@ryanleecode here is PR for the tool you requested: #189 We will let you know soon how you can try it. Please let us know then, if it works as you expected and if not, let us know what we can change. |
Hello @ryanleecode, Instructions:
The file is located in the folder There first example shows converting a single MultiLocation to URL. The second example shows how an XCM call arguments can be converted into an array of URLs where MultiLocations are automatically found using object comparison. These XCM arguments can be extracted from Extrinsics object using .args property. Let us know your opinion. With kind regards, |
@ryanleecode one more thing, the package name is We will ping you once it is released (Should be within hour or two). |
@ryanleecode The XCM analyser package has been released: https://www.npmjs.com/package/@paraspell/xcm-analyser Let us know if you have any more concerns. |
Given a scale or JSON encoded XCM MultiLocation, there should be a tool that converts it into its human readable written format.
The text was updated successfully, but these errors were encountered: