evm-tokenvote

Voting machine using ERC20 tokens as votes.
Info | Log | Files | Refs | README

states.texi (1483B)


      1 @appendix Proposal states
      2 
      3 @multitable .10 .15 .75 
      4 @headitem label
      5 @tab bit value
      6 @tab description
      7 @item INIT
      8 @tab 1
      9 @tab Proposal has been initiated. It is used to disambiguate a proposal struct that has not yet been added, due to the ambiguity of the default struct value in solidity.
     10 @item @code{FINAL}
     11 @tab 2
     12 @tab @code{finalize()} has been successfully called.
     13 @item @code{SCANNED}
     14 @tab 4
     15 @tab @code{scan(...)} has been successfully called for all available options.
     16 @item @code{INSUFFICIENT}
     17 @tab 8
     18 @tab Voting participation did not been the required target vote before the deadline.
     19 @item @code{TIED}
     20 @tab 16
     21 @tab Proposal contains two or more options, and two or more options have received the same amount of votes before the deadline.
     22 @item @code{SUPPLYCHANGE}
     23 @tab 32
     24 @tab The token supply changed between when the proposal was added and voting ended. If supply is protected, this has also @code{CANCELLED} the vote.
     25 @item @code{IMMEDIATE}
     26 @tab 64
     27 @tab Voting was completed before the deadline.
     28 @item @code{CANCELLED}
     29 @tab 128
     30 @tab Interpretation depends on context. See below.
     31 @end multitable	
     32 
     33 Interpreting @code{CANCELLED}:
     34 
     35 @itemize
     36 @item With @code{SUPPLYCHANGE}, this means that vote has been invalidated and should be discarded.
     37 @item If proposal has options, it should be interpreted as that the existence of the proposal itself has been @emph{rejected}.
     38 @item With no or one option, it should be interpreted as the proposal has been @emph{defeated}.
     39 @end itemize