A simple one: create a

#[cfg(doc)]
pub mod storage_types {
   pub use crate::pallet::every_public_storage_item;
}

for nicer discoverability in rustdocs.

Essentially, similar to this page, but better:

https://polkadot.js.org/docs/substrate/storage/#staking

1

This would be a good add-on or follow-up to https://github.com/paritytech/substrate/pull/12334

0

We should not only list all the public storage types. We should probably support having all of them shown in the docs, not just the public ones.

0

We should probably support having all of them shown in the docs, not just the public ones.

Yeah, let's do that. Might be a little confusing though because some of them might not be public in the Rust code.

This pub mod storage_types {} should have a clear documentation saying that what's named here might not be publicly available in the API and is only listed as reference.

0

This would be a good add-on or follow-up to #12334

I think they are rather unrelated in terms of what needs to be done for it, but yeah perhaps a follow-up for you once you are finished there, feel free to assign to yourself :)

0
© 2022 pullanswer.com - All rights reserved.