Celo uses a formal on-chain governance mechanism to manage and upgrade the protocol. More information about the Governance system can be found in the Governance section of the protocol documentation. Here, we will discuss using the Celo CLI to participate in Governance as a voter as well as how to create a proposal.
A list of active proposals can be viewed with the following command:
Included will be three lists of proposals by status:
Queued proposals have been submitted, but are not yet being considered. Voters can upvote proposals in this list, and proposals with the most upvotes from this list will be moved from the queue to be considered.
Dequeued proposals are actively being considered and will pass through the Approval, Referendum, and Execution stages, as discussed in the protocol documentation.
Expired proposals are no longer being considered.
You can view information about a specific proposal with:
celocli governance:show --proposalID=<PROPOSAL_ID>
For example, the proposal 14 on Mainnet was as follows:
Running Checks:✔ 14 is an existing proposalproposal:0:contract: Governancefunction: setBaselineQuorumFactorargs:0: 500000000000000000000000params:baselineQuorumFactor: 500000000000000000000000 (~5.000e+23)value: 0metadata:proposer: 0xF3EB910DA09B8AF348E0E5B6636da442cFa79239deposit: 100000000000000000000 (~1.000e+20)timestamp: 1609961608 (~1.610e+9)transactionCount: 1descriptionURL: https://github.com/celo-org/celo-proposals/blob/master/CGPs/0016.mdstage: Referendumupvotes: 0votes:Yes: 95934607718520408413613056 (~9.593e+25)No: 0Abstain: 0passing: truerequirements:participation: 0.2009694258486agreement: 90%isApproved: trueisProposalPassing: truetimeUntilStages:referendum: pastexecution: 57 minutes, 59 secondsexpiration: 3 days, 57 minutes, 59 seconds
When a proposal is Queued, you can upvote the proposal to indicate you'd like it to be considered.
celocli governance:upvote --proposalID=<PROPOSAL_ID> --from=<YOUR_VOTER_ADDRESS>
At a defined frequency, which can be checked with the
celocli network:parameters command, proposals can be dequeued, with the highest upvoted proposals being dequeued first.
After a proposal is dequeued, it will first enter the Approval phase. In this phase, the Governance Approver may choose to approve the proposal, which will allow it to proceed to the Referendum phase after the configured length of time.
Once a proposal has reached the Referendum phase, it is open to community for voting.
celocli governance:vote --proposalID=<PROPOSAL_ID> --value=<Abstain|Yes|No> --from=<YOUR_VOTER_ADDRESS>
If a Governance Proposal receives enough votes and passes in the Referendum phase, it can be executed by anyone.
celocli governance:execute --proposalID=<PROPOSAL_ID> --from=<YOUR_VOTER_ADDRESS>