Function pallet_democracy::pallet::dispatchables::set_metadata
source · pub fn set_metadata<T: Config>(
owner: MetadataOwner,
maybe_hash: Option<PreimageHash>
)
Expand description
Set or clear a metadata of a proposal or a referendum.
Parameters:
origin
: Must correspond to theMetadataOwner
.ExternalOrigin
for an external proposal with theSuperMajorityApprove
threshold.ExternalDefaultOrigin
for an external proposal with theSuperMajorityAgainst
threshold.ExternalMajorityOrigin
for an external proposal with theSimpleMajority
threshold.Signed
by a creator for a public proposal.Signed
to clear a metadata for a finished referendum.Root
to set a metadata for an ongoing referendum.
owner
: an identifier of a metadata owner.maybe_hash
: The hash of an on-chain stored preimage.None
to clear a metadata.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_metadata
.