<mxfile host="drawio.lan">
  <diagram id="pdao-proposals-state" name="pDAO Proposals - State Diagram">
    <mxGraphModel dx="773" dy="750" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="2000" pageHeight="850" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="initial" parent="1" style="ellipse;html=1;fillColor=#000000;strokeColor=#000000;" value="" vertex="1">
          <mxGeometry height="22" width="22" x="30" y="364" as="geometry" />
        </mxCell>
        <mxCell id="pending" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="Pending" vertex="1">
          <mxGeometry height="54" width="111" x="122" y="348" as="geometry" />
        </mxCell>
        <mxCell id="phase1" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="ActivePhase1" vertex="1">
          <mxGeometry height="54" width="116" x="372" y="348" as="geometry" />
        </mxCell>
        <mxCell id="phase2" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="ActivePhase2" vertex="1">
          <mxGeometry height="54" width="121" x="622" y="348" as="geometry" />
        </mxCell>
        <mxCell id="destroyed" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="Destroyed" vertex="1">
          <mxGeometry height="54" width="111" x="377" y="581" as="geometry" />
        </mxCell>
        <mxCell id="succeeded" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="Succeeded" vertex="1">
          <mxGeometry height="54" width="116" x="1222" y="251" as="geometry" />
        </mxCell>
        <mxCell id="defeated" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="Defeated" vertex="1">
          <mxGeometry height="54" width="111" x="1224" y="348" as="geometry" />
        </mxCell>
        <mxCell id="vetoed" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="Vetoed" vertex="1">
          <mxGeometry height="54" width="111" x="1224" y="464" as="geometry" />
        </mxCell>
        <mxCell id="quorum" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="Quorum&#xa;Not Met" vertex="1">
          <mxGeometry height="58" width="111" x="1224" y="576" as="geometry" />
        </mxCell>
        <mxCell id="executed" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="Executed" vertex="1">
          <mxGeometry height="54" width="111" x="1672" y="151" as="geometry" />
        </mxCell>
        <mxCell id="expired" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=30;fillColor=#FFFFFF;strokeColor=#000000;" value="Expired" vertex="1">
          <mxGeometry height="54" width="111" x="1672" y="346" as="geometry" />
        </mxCell>
        <mxCell id="fin_destroyed_o" parent="1" style="ellipse;html=1;fillColor=#FFFFFF;strokeColor=#000000;strokeWidth=2;" value="" vertex="1">
          <mxGeometry height="26" width="26" x="416" y="650" as="geometry" />
        </mxCell>
        <mxCell id="fin_destroyed_i" parent="1" style="ellipse;html=1;fillColor=#000000;strokeColor=#000000;" value="" vertex="1">
          <mxGeometry height="12" width="12" x="423" y="657" as="geometry" />
        </mxCell>
        <mxCell id="fin_defeated_o" parent="1" style="ellipse;html=1;fillColor=#FFFFFF;strokeColor=#000000;strokeWidth=2;" value="" vertex="1">
          <mxGeometry height="26" width="26" x="1266" y="425" as="geometry" />
        </mxCell>
        <mxCell id="fin_defeated_i" parent="1" style="ellipse;html=1;fillColor=#000000;strokeColor=#000000;" value="" vertex="1">
          <mxGeometry height="12" width="12" x="1273" y="432" as="geometry" />
        </mxCell>
        <mxCell id="fin_vetoed_o" parent="1" style="ellipse;html=1;fillColor=#FFFFFF;strokeColor=#000000;strokeWidth=2;" value="" vertex="1">
          <mxGeometry height="26" width="26" x="1266" y="538" as="geometry" />
        </mxCell>
        <mxCell id="fin_vetoed_i" parent="1" style="ellipse;html=1;fillColor=#000000;strokeColor=#000000;" value="" vertex="1">
          <mxGeometry height="12" width="12" x="1273" y="545" as="geometry" />
        </mxCell>
        <mxCell id="fin_quorum_o" parent="1" style="ellipse;html=1;fillColor=#FFFFFF;strokeColor=#000000;strokeWidth=2;" value="" vertex="1">
          <mxGeometry height="26" width="26" x="1266" y="655" as="geometry" />
        </mxCell>
        <mxCell id="fin_quorum_i" parent="1" style="ellipse;html=1;fillColor=#000000;strokeColor=#000000;" value="" vertex="1">
          <mxGeometry height="12" width="12" x="1273" y="662" as="geometry" />
        </mxCell>
        <mxCell id="fin_executed_o" parent="1" style="ellipse;html=1;fillColor=#FFFFFF;strokeColor=#000000;strokeWidth=2;" value="" vertex="1">
          <mxGeometry height="26" width="26" x="1714" y="225" as="geometry" />
        </mxCell>
        <mxCell id="fin_executed_i" parent="1" style="ellipse;html=1;fillColor=#000000;strokeColor=#000000;" value="" vertex="1">
          <mxGeometry height="12" width="12" x="1721" y="232" as="geometry" />
        </mxCell>
        <mxCell id="e_init" edge="1" parent="1" source="initial" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;" target="pending" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e_p_p1" edge="1" parent="1" source="pending" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;" target="phase1" value="vote delay passed">
          <mxGeometry relative="1" x="-0.036" y="15" as="geometry">
            <mxPoint as="offset" />
          </mxGeometry>
        </mxCell>
        <mxCell id="e_p1_p2" edge="1" parent="1" source="phase1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;" target="phase2" value="phase 1 period passed">
          <mxGeometry relative="1" x="-0.0746" y="15" as="geometry">
            <mxPoint as="offset" />
          </mxGeometry>
        </mxCell>
        <mxCell id="e_p1_self" edge="1" parent="1" source="phase1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=1;entryDx=0;entryDy=0;" target="phase1" value="vote">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="405" y="430" />
              <mxPoint x="455" y="430" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e_p2_self" edge="1" parent="1" source="phase2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=1;entryDx=0;entryDy=0;" target="phase2" value="vote override">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="657" y="430" />
              <mxPoint x="708" y="430" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e_p_destroyed" edge="1" parent="1" source="pending" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="destroyed" value="proposal failed verification&#xa;(proposal defeated)">
          <mxGeometry relative="1" x="-0.122" y="-48" as="geometry">
            <mxPoint as="offset" />
            <Array as="points">
              <mxPoint x="177" y="608" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e_destroyed_fin" edge="1" parent="1" source="destroyed" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="fin_destroyed_o" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e_p2_succ" edge="1" parent="1" source="phase2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="succeeded" value="winning option is FOR proposal">
          <mxGeometry relative="1" x="-0.0139" y="18" as="geometry">
            <mxPoint as="offset" />
            <Array as="points">
              <mxPoint x="800" y="278" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e_p2_def" edge="1" parent="1" source="phase2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="defeated" value="winning option is AGAINST proposal">
          <mxGeometry relative="1" x="-0.186" y="15" as="geometry">
            <mxPoint as="offset" />
          </mxGeometry>
        </mxCell>
        <mxCell id="e_p2_veto" edge="1" parent="1" source="phase2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="vetoed" value="winning option is AGAINST WITH VETO proposal">
          <mxGeometry relative="1" x="0.1156" y="11" as="geometry">
            <mxPoint as="offset" />
            <Array as="points">
              <mxPoint x="800" y="491" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e_p2_quorum" edge="1" parent="1" source="phase2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="quorum" value="failed to reach quorum">
          <mxGeometry relative="1" x="0.0886" y="15" as="geometry">
            <mxPoint as="offset" />
            <Array as="points">
              <mxPoint x="800" y="605" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e_succ_exec" edge="1" parent="1" source="succeeded" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="executed" value="proposal executed">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="1500" y="178" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e_succ_exp" edge="1" parent="1" source="succeeded" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="expired" value="proposal passed expiry">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="1500" y="373" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e_exec_fin" edge="1" parent="1" source="executed" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="fin_executed_o" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e_def_fin" edge="1" parent="1" source="defeated" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="fin_defeated_o" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e_veto_fin" edge="1" parent="1" source="vetoed" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="fin_vetoed_o" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e_quorum_fin" edge="1" parent="1" source="quorum" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="fin_quorum_o" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="note_pending" parent="1" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fillColor=#FCE9A4;strokeColor=#E6C972;fontColor=#000000;align=center;verticalAlign=middle;shadow=1;" value="Proposal is pending while in vote delay period&#xa;&#xa;During the vote delay period, challengers can challenge the proposal submission" vertex="1">
          <mxGeometry height="140" width="145" x="110" y="180" as="geometry" />
        </mxCell>
        <mxCell id="note_phase1" parent="1" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fillColor=#FCE9A4;strokeColor=#E6C972;fontColor=#000000;align=center;verticalAlign=middle;shadow=1;" value="Once the vote delay has passed, voting can begin.&#xa;&#xa;Delegates and node operators who have not delegated may vote in phase 1." vertex="1">
          <mxGeometry height="140" width="145" x="360" y="180" as="geometry" />
        </mxCell>
        <mxCell id="note_phase2" parent="1" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fillColor=#FCE9A4;strokeColor=#E6C972;fontColor=#000000;align=center;verticalAlign=middle;shadow=1;" value="Once the phase 1 voting period is complete, phase 2 begins.&#xa;&#xa;In phase 2, node operators can override their delegate, if they feel they have voted against their desire." vertex="1">
          <mxGeometry height="150" width="150" x="608" y="180" as="geometry" />
        </mxCell>
        <mxCell id="note_legend" parent="1" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fillColor=#FCE9A4;strokeColor=#E6C972;fontColor=#000000;align=center;verticalAlign=middle;shadow=1;" value="&lt;b&gt;Succeeded&lt;/b&gt; - if the winning option is FOR proposal&lt;br&gt;&lt;br&gt;&lt;b&gt;Defeated&lt;/b&gt; - if the winning option is AGAINST proposal&lt;br&gt;&lt;br&gt;&lt;b&gt;Vetoed&lt;/b&gt; - if the winning option is AGAINST WITH VETO proposal&lt;br&gt;&lt;br&gt;&lt;b&gt;Quorum Not Met&lt;/b&gt; - if failed to reach quorum threshold" vertex="1">
          <mxGeometry height="195" width="185" x="1235" y="20" as="geometry" />
        </mxCell>
        <mxCell id="note_executed" parent="1" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fillColor=#FCE9A4;strokeColor=#E6C972;fontColor=#000000;align=center;verticalAlign=middle;shadow=1;" value="Once &lt;b&gt;succeeded&lt;/b&gt;, a proposal can be executed.&#xa;&#xa;The proposals payload is executed and the protocol changes take affect." vertex="1">
          <mxGeometry height="135" width="135" x="1820" y="110" as="geometry" />
        </mxCell>
        <mxCell id="note_expired" parent="1" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fillColor=#FCE9A4;strokeColor=#E6C972;fontColor=#000000;align=center;verticalAlign=middle;shadow=1;" value="Once &lt;b&gt;succeeded&lt;/b&gt;, the proposal should be executed before the expiry timelimit, otherwise it expires." vertex="1">
          <mxGeometry height="125" width="135" x="1820" y="345" as="geometry" />
        </mxCell>
        <mxCell id="note_vetoed" parent="1" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fillColor=#FCE9A4;strokeColor=#E6C972;fontColor=#000000;align=center;verticalAlign=middle;shadow=1;" value="Once &lt;b&gt;vetoed&lt;/b&gt;, the proposal can be finalised to execute the veto and burn the proposers bond." vertex="1">
          <mxGeometry height="140" width="120" x="1360" y="448" as="geometry" />
        </mxCell>
        <mxCell id="note_destroyed" parent="1" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fillColor=#FCE9A4;strokeColor=#E6C972;fontColor=#000000;align=center;verticalAlign=middle;shadow=1;" value="If the proposal is successfully challenged, it is &lt;b&gt;destroyed&lt;/b&gt;.&#xa;&#xa;A proposal can be challenged if it contains an incorrect calculation of the total effective stake." vertex="1">
          <mxGeometry height="155" width="135" x="210" y="635" as="geometry" />
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
