Created
January 20, 2021 18:16
-
-
Save jnaviask/9a8d9451e2c355521c0e6d7baefdc841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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