-
Notifications
You must be signed in to change notification settings - Fork 248
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
Generate the client from the metadata #97
Comments
If I want send a pallet method transaction, How can I accomplish this. |
I've been working on subxt-gen to do exactly this, but it's still very much a work-in-progress (constructed from parts of subsee and substrate-subxt/proc-macro). @ascjones would you be interested in integrating this upstream (alongside |
Yes indeed @gregdhill, that has always been the long term goal, the main issue being the lack of rich type metadata. However I am making steady progress on that front, I have just been able to produce Some work I have done a long time ago on consuming that metadata and generating types can be found here https://github.com/ascjones/chameleon. It's purely proof of concept atm but could eventually be used as part of the API generation from the metadata. |
Currently, all client implementations are written by hand. This works, but is very tedious and won’t scale to large runtimes.
A better option is to generate the client. This is already done by the TypeScript client implementation, so it should be quite doable for the Rust one.
The text was updated successfully, but these errors were encountered: