Skip to content

Instantly share code, notes, and snippets.

@jnaviask
Created January 20, 2021 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnaviask/9a8d9451e2c355521c0e6d7baefdc841 to your computer and use it in GitHub Desktop.
Save jnaviask/9a8d9451e2c355521c0e6d7baefdc841 to your computer and use it in GitHub Desktop.
{
"ProposalRecord": {
"index": "u32",
"author": "AccountId",
"stage": "VoteStage",
"transition_time": "u32",
"title": "Text",
"contents": "Text",
"vote_id": "u64"
},
"ProposalContents": "Bytes",
"ProposalTitle": "Bytes",
"Balance2": "u128",
"VoteStage": {
"_enum": [
"PreVoting",
"Commit",
"Voting",
"Completed"
]
},
"VoteType": {
"_enum": [
"Binary",
"MultiOption",
"RankedChoice"
]
},
"TallyType": {
"_enum": [
"OnePerson",
"OneCoin"
]
},
"VoteOutcome": "[u8; 32]",
"VotingTally": "Option<Vec<(VoteOutcome, u128)>>",
"VoteData": {
"initiator": "AccountId",
"stage": "VoteStage",
"vote_type": "VoteType",
"tally_type": "TallyType",
"is_commit_reveal": "bool"
},
"Commitments": "Vec<(AccountId, VoteOutcome)>",
"Reveals": "Vec<(AccountId, Vec<VoteOutcome>)>",
"VoteRecord": {
"id": "u64",
"commitments": "Commitments",
"reveals": "Reveals",
"data": "VoteData",
"outcomes": "Vec<VoteOutcome>"
},
"voting::VoteType": "VoteType",
"voting::TallyType": "TallyType",
"voting::Tally": "VotingTally",
"RefCount": "u32",
"Address": 'AccountId',
"LookupSource": 'AccountId'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment