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

Contribute some common XCM related code to ORML? #409

Open
xlc opened this issue Sep 22, 2021 · 2 comments
Open

Contribute some common XCM related code to ORML? #409

xlc opened this issue Sep 22, 2021 · 2 comments

Comments

@xlc
Copy link
Contributor

xlc commented Sep 22, 2021

I can see you have some XCM related work to handle relaychain encoding and we have the exact requirement at Acala. I image other parachains will have similar requirements. Should we collaborate to build some shared library in ORML?

For example, those two module does the same job in a slightly different way.
https://github.com/ChainSafe/PINT/tree/main/primitives/xcm-calls
https://github.com/AcalaNetwork/Acala/blob/feature/homa-lite-redeem/modules/relaychain/src/lib.rs

@mattsse
Copy link
Contributor

mattsse commented Sep 22, 2021

There will probably more demand for features like this so it is definitely worthwhile to add support for this to ORML.

I think an ORML solution should provide a way to get bindings for a specific chain (like relaychain) the bigger challenge is then to make this work for multiple chains as we tried with PINT, since call encoding is chain specific.
I'm also not sure how this would be affected by future metadata changes or something like https://github.com/ascjones/chameleon
I also experimented with generating generic Call enums from the T:Config bound types the substrate macros generate: https://github.com/mattsse/substrate-pallet-call-extract

@xlc
Copy link
Contributor Author

xlc commented Sep 22, 2021

The metadata change won't be helping in this case. We have no way to fetch & parse the latest metadata from dest runtime.
polkadot-fellows/xcm-format#22 is the long term solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants