-
Notifications
You must be signed in to change notification settings - Fork 123
On chain Governance
Prasanna Loganathar edited this page Dec 7, 2022
·
5 revisions
Summary: https://github.com/DeFiCh/pinkpaper/tree/main/governance
defi-cli creategovcfp '{ title, amount, payoutAddress, context: <url>, [contextHash: <hash>], [cycles:1-100] }'
defi-cli creategovvoc '{ title, context: <url>, [contextHash: <hash>] }'
defi-cli votegov <proposalId> <masternodeId> <yes/no/neutral>
listgovproposals/getgovproposal/..
defi-cli setgov '{ "ATTRIBUTES": { "v0/params/feature/gov": "true" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/params/feature/gov-payout": "true" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/gov/proposals/voting_period": "130000" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/gov/proposals/quorum": "1%" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/gov/proposals/fee_redistribution": "true" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/gov/proposals/fee_burn_pct": "50%" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/gov/proposals/cfp_fee": "1%" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/gov/proposals/cfp_required_votes": "50%" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/gov/proposals/voc_fee": "100.00000000" }}'
defi-cli setgov '{ "ATTRIBUTES": { "v0/gov/proposals/voc_required_votes": "66.67%" }}'
-
Default: false
-
Accepted: true/false
-
Flags
- v0/params/feature/gov
- v0/params/feature/gov-payout
-
voting_period
- Default:
130000
(~45 days) - Accepted: Any numeric value.
- Description: Voting period in blocks. Any proposal created after this is applied will have the new voting period. Previous proposals will have it's value unaffected, as it's attached to proposal on creation.
- Default:
-
quorum
- Default:
1%
or0.01
- Accepted: Value between 0-100 with % suffix, or a 0-1
- Description: The percent of MN participation required to achieve quorum for a votes to be considered valid.
- Default:
-
fee_redistribution