CCF
Loading...
Searching...
No Matches
Public Attributes | List of all members
ccf::jsgov::ProposalInfo Struct Reference

Proposal metadata stored in the KV. More...

#include <gov.h>

Public Attributes

ccf::MemberId proposer_id
 ID of the member who originally created/submitted this proposal.
 
ccf::ProposalState state
 Current state of this proposal (eg - open, accepted, withdrawn)
 
Ballots ballots = {}
 
std::optional< Votesfinal_votes = std::nullopt
 
std::optional< VoteFailuresvote_failures = std::nullopt
 
std::optional< Failurefailure = std::nullopt
 

Detailed Description

Proposal metadata stored in the KV.

Member Data Documentation

◆ ballots

Ballots ccf::jsgov::ProposalInfo::ballots = {}

Collection of ballots (scripts) submitted for this proposal. Each ballot is a javascript module exporting a single 'vote' function, re-executed to determine the member's vote each proposal resolution. Keyed by each submitting member's ID

◆ failure

std::optional<Failure> ccf::jsgov::ProposalInfo::failure = std::nullopt

Exception details from execution of the proposal itself, either during resolution or application. Populated in the same circumstances as final_votes

◆ final_votes

std::optional<Votes> ccf::jsgov::ProposalInfo::final_votes = std::nullopt

Collection of boolean results of the submitted ballots, keyed by submitting member's ID, that caused a transition to a terminal state. Note that this is not present for open, withdrawn, or dropped proposals

◆ proposer_id

ccf::MemberId ccf::jsgov::ProposalInfo::proposer_id

ID of the member who originally created/submitted this proposal.

◆ state

ccf::ProposalState ccf::jsgov::ProposalInfo::state

Current state of this proposal (eg - open, accepted, withdrawn)

◆ vote_failures

std::optional<VoteFailures> ccf::jsgov::ProposalInfo::vote_failures = std::nullopt

Collection of exception details describing which ballots failed to execute successfully, keyed by submitting member's ID. Populated in the same circumstances as final_votes


The documentation for this struct was generated from the following file: