Skip to main content

CONTRACT_MODERATION_ACTION_COUNTS_KEY

Constant CONTRACT_MODERATION_ACTION_COUNTS_KEY 

Source
pub const CONTRACT_MODERATION_ACTION_COUNTS_KEY: u8 = 48;
Expand description

The key under a contract’s other tree ([64, id, 2]) of the moderation action counts of a contract that declares elected moderation (protocol version 14): identity id -> Item(count, u32 big-endian), one per member of the seated team who signed a counted moderation action (a ban, a suspension, a warning or a document deletion) since the moderators pot was last settled. Every settle, a claim or a change of the team, pays the pot out by them and deletes them. Created with an elected contract, the only kind that has a seated team.

Read by the moderation actions of the team and by a settle, never by a document transition, so it sorts below 64: created together with the lists of an elected contract it keeps the banlist on top when the contract keeps two or three lists, with or without removal records beside them (the combination of every ability included), where a key above 128 would push it down in most of those. It costs the banlist a level for a contract keeping the banlist alone, or the banlist and one other list beside removal records.