factom-vote
Version:
JS implementation of the Factom voting specification
43 lines (42 loc) • 1.25 kB
JSON
{
"proposal": {
"title": "Is the on-chain voting grant a success?",
"externalRef": {
"href": "https://the-voting-grant/vote",
"hash": {
"value": "b950beb02d45cc9c96c198243af669b3dc57d31de994d655f506372fdec3a885",
"algo": "sha256"
}
}
},
"vote": {
"phasesBlockHeights": {
"commitStart": 1000,
"commitEnd": 2000,
"revealEnd": 3000
},
"eligibleVotersChainId": "c164726970df78e4dc7eedb54aad18b20e6023bf1da7cc98fd0d3eb6d7e00b86",
"type": 1,
"config": {
"options": ["yes", "no", "maybe"],
"minOptions": 1,
"maxOptions": 2,
"acceptanceCriteria": {
"minTurnout": {
"weighted": 0.3,
"unweighted": 0.5
}
},
"winnerCriteria": {
"minSupport": {
"*": {
"weighted": 0.6,
"unweighted": 0.9
}
}
},
"allowAbstention": true,
"computeResultsAgainst": "PARTICIPANTS_ONLY"
}
}
}