Type Definition pallet_referenda::pallet::MetadataOf
source · pub type MetadataOf<T: Config<I>, I: 'static = ()> = StorageMap<_GeneratedPrefixForStorageMetadataOf<T, I>, Blake2_128Concat, ReferendumIndex, PreimageHash>;
Expand description
The metadata is a general information concerning the referendum.
The PreimageHash
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 PreimageHash
.