Conversation
|
about calls I think it might makes sense to still organize it as metadata V12. In the future we might want to add additional information per call variant. Like the origin the call can accept. Or just some unstructured information about the call. paritytech/polkadot-sdk#349 In this context having the call declared as a vec of function would allow use to just add another field in this FunctionMetadata. |
|
Makes sense, so for events and errors just the |
yes for me it makes sense considering those types are only description. But maybe opinion from other people using the metadata can be helpful here. |
TypeSpec
Replace custom definitions for errors and event metadata with scale-info type information for the pallet
EventandErrortypes (depends on paritytech/scale-info#87 which adds documentation to thescale-infoderive).As @thiolliere pointed out, metadata for events and errors (which are expanded to simple enums) can be captured already by the
scale_infoderives.Call definitions could also just use the
scale-infoderives on theCallenum also, but we will keep the custom types in case we need to add additional metadata, see the comment below.Also: