Skip to main content

Module elected

Module elected 

Source
Expand description

Elected moderation: the declaration that a contract’s moderators are a team chosen by masternodes and evonodes instead of by the contract owner (protocol version 14).

The declaration is fixed at the contract’s creation and never changes: the election parameters, whether the seat can be contested again once a team is seated, the document types the team moderates with the abilities it holds on each, who moderates until the first team is seated, and whether the owner is protected from the team. A charter does not price the moderators part of a document action: the type’s own actionFees.moderators amount is the most a team may charge, and a charter charges a share of it. No election exists yet: until one does, the contract is in its interim, moderated by the interim moderators the declaration names, or by nobody: with the moderated types not yet usable, or usable and unmoderated meanwhile.

Modules§

property_names
The keys of an elected declaration on the wire, beside the $type of its variant.

Structs§

ElectedModerators
The declaration that a contract’s moderators are an elected team. Every field is fixed at the contract’s creation.

Enums§

InterimModerators
Who moderates an elected contract until its first team is seated.
ModerationAbility
What a moderation team may do to a contract’s users and content. The contract declares which of these a seated team holds on each moderated document type. A team holds every ability the declaration gives it; its charter narrows what it may act on only through the moderation reasons it lists, since every action names one.

Constants§

DEFAULT_ELECTION_WINDOW_SECONDS
One week: the join window and the vote window a declaration gets when it leaves them out.