Type Alias pallet_referenda::pallet::MetadataOf
source · pub type MetadataOf<T: Config<I>, I: 'static = ()> = StorageMap<_GeneratedPrefixForStorageMetadataOf<T, I>, Blake2_128Concat, ReferendumIndex, T::Hash>;
Expand description
The metadata is a general information concerning the referendum.
The Hash
refers to the preimage of the Preimages
provider which can be a JSON
dump or IPFS hash of a JSON file.
Consider a garbage collection for a metadata of finished referendums to unrequest
(remove)
large preimages.
Storage type is [StorageMap
] with key type ReferendumIndex
and value type T :: Hash
.
Aliased Type§
struct MetadataOf<T: Config<I>, I: 'static = ()>(/* private fields */);