Skip to main content

is_charter_election

Function is_charter_election 

Source
pub fn is_charter_election(
    contract_id: &Identifier,
    document_type_name: &str,
) -> bool
Expand description

Whether a contest on the contested index of document_type_name in the contract contract_id is a moderation election: an electedCharter of the moderation charters contract, contending for the seat of its target contract. A moderation election runs on the join and vote windows its target declares and is prefunded with the moderation fund; every other contest keeps the generic windows and fund.