-
Notifications
You must be signed in to change notification settings - Fork 20
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
Substrate Utilities - SCALE Decoder #1
Comments
SCALE Decoder does not automatically know what you want to decode. You must provide it the types and structures you need. The metadata type is very complex, and there are easier ways to retrieve it using Polkadot JS:
What is it you are trying to do specifically? |
I see. Well, my goal is to decode metadata for polkadot_api_cpp . The issue usetech-llc/polkadot_api_cpp#32 resume my situation. In short: polkadot_api_cpp has metadata maintained up to V6 (see here), and I'm trying to use the polkadot_api_cpp for metadata V12. I need to be in C++ because my goal is to implement it on a small (or even very small) IoT. Your tool could maybe help me to understand better the metadata structure to code the V12 in polkadot_api_cpp. But it doesn't seem easy!! |
Yeah I dont think my utility will help you here, but check out: https://github.com/polkadot-js/api/tree/master/packages/metadata/src and https://github.com/paritytech/substrate/blob/master/frame/metadata/src/lib.rs#L392 |
Hi,
The SCALE Decoder looks useful but I can't make it work. I'm trying to decode Substrate metadata (V12).
I get a long array of numbers, I'm not sure what to think about it.
I don't know exactly what to put in the custom types.
Do you have any suggestions?
-Luc
The text was updated successfully, but these errors were encountered: