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

Add end to end decode examples #3

Open
jsdw opened this issue Oct 2, 2024 · 1 comment
Open

Add end to end decode examples #3

jsdw opened this issue Oct 2, 2024 · 1 comment

Comments

@jsdw
Copy link
Collaborator

jsdw commented Oct 2, 2024

It'd be great if we had a couple of example binaries in this folder which use the absolute minimum of code to decode a specific block or storage entry from an RPC node.

Perhaps we'll end up with two separate commands/binaries like:

  • decode_storage --block 1234 --pallet System --entry Accounts --types types/polkadot_types.yaml --url wss://rpc.polkadot.io
  • decode_block --block 1234 --types types/polkadot_types.yaml --url wss://rpc.polkadot.io

These commands wouldn't do anything clever or have great error handling or whatever; just print basic information on decoding. To see the required logic we can look at the more complicated subcommands in https://github.com/jsdw/polkadot-historic-decoding-example/tree/main/src/commands.

@Polkadot-Forum
Copy link

This issue has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/decoding-old-and-new-blocks-and-storage-entries-in-rust-october-2024-update/10276/1

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