Skip to main content

Auction state

State_Machine
Copy

_16
┌─────────┐
_16
│InAuction│ ─┬──► Failed { NotEnoughBidders }
_16
└─────────┘ │
_16
_16
│ ┌─────────┐
_16
└──► │InWriting│ ──┬──► Failed { WritingDeadlinePassed }
_16
└─────────┘ │
_16
▲ │
_16
│ │ ┌────────┐
_16
│ └──► │InReview│
_16
│ └───┬────┘
_16
│ │
_16
│ ▼
_16
│ ┌──────┐
_16
└──── yes ──── [Vetoed] ─── no ──► │Passed│
_16
└──────┘

  1. A proposal enters the InAuction state upon creation.
  2. If an auction does not have enough bidders, its status becomes Failed { NotEnoughBidders }.
  3. If enough bidders are found, the status becomes InWriting.
  4. If a writer submits a story after the end of the writing deadline, its status becomes Failed { WritingDeadlinePassed }.
  5. If a writer submits a final version of a story within writing deadline, its status becomes InReview.
  6. If more than half of the arbitration owners veto the story, the proposal moves back to the InWriting state and repeats steps 4-6.
  7. If a proposal is reviewed without veto before the end of the writing deadline, the status becomes Passed.