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

Metadata v14 content #385

Open
nuke-web3 opened this issue Oct 18, 2021 · 7 comments
Open

Metadata v14 content #385

nuke-web3 opened this issue Oct 18, 2021 · 7 comments
Assignees
Labels
new content 💡✍️ New Devhub content required.

Comments

@nuke-web3
Copy link
Contributor

With the new scale-info features, many need to migrate and in general we should discuss and inform builders of it.

  • What versions of Substrate include this?
  • What changes in your nodes need to be made?
  • What changes in clients/apps need to be made?

Migration guide: https://gist.github.com/ascjones/0d81a4c44e84cacd9f714cd34a6de823

@nuke-web3 nuke-web3 added doc 📚 new content 💡✍️ New Devhub content required. labels Oct 18, 2021
@nuke-web3
Copy link
Contributor Author

@ascjones could I ask you to add a few links/resources in this issue so we can make this content? 🙏 Any key things we should point out?

@ascjones
Copy link

I had promised to write some docs on this which I have failed to do so far. I will do a session on this at the retreat so need to do some prep this week and can send over my unedited notes for this as a start.

@JoshOrndorff
Copy link

The scale-info crate docs are helpful too https://docs.rs/crate/scale-info/1.0.0

And great tip from @wischli in https://gist.github.com/ascjones/0d81a4c44e84cacd9f714cd34a6de823#gistcomment-3931135

I would like to add that you should add #[scale_info(skip_type_params(T))] for structs which lazily use the pallet's Config as generic such as pub struct Example<T: Config> - if this statement is correct. This would have saved me quite some time when debugging our upgrade to 0.9.11 sweat_smile

@nuke-web3
Copy link
Contributor Author

Pro tip for easy grabbing of a local node ( or remote with RPC unsafe ports open?):

curl -H "Content-Type: application/json" -d '{ "id": 1, "jsonrpc": "2.0", "method": "state_getMetadata"}' http://localhost:9933

@nuke-web3
Copy link
Contributor Author

@ascjones - I still woudl love to see more formal content around this - are you able to help out here? 😀

@ascjones
Copy link

Yes but realistically I won't get around to it until August. It is on my list.

@nuke-web3
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new content 💡✍️ New Devhub content required.
Projects
None yet
Development

No branches or pull requests

4 participants