-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Additional custom metadata for module #3686
Comments
Should ideally be supported with some expansion of: #5678 |
related to #917 |
with pallet macro there is extra constants: https://substrate.dev/rustdocs/v3.0.0/frame_support/attr.pallet.html#extra-constants-palletextra_constants-optional it can add any values to the metadata under any names, would that be enough ? |
Never aware of this feature but I think it solves my issue |
I don't get it. How will this be used? |
with |
It will be useful to have
decl_module
takes an additionalModuleMetadata
Encode
able and have it stored and passed via metadata rpc call.This can be useful for various purposes, such as a workaround of paritytech/polkadot-sdk#368 (manually encode the child storage field info, and then JS SDK can decode it and extract the child storage details).
This is like a more generalised version of the
constants
field in the metadata, that it is not used in runtime, but significantly improves SDK developer's life quality.The text was updated successfully, but these errors were encountered: