Skip to content

Instantly share code, notes, and snippets.

@drewstone
Last active September 11, 2019 13:34
Show Gist options
  • Save drewstone/cee02c503107d06badbdc49bea35c526 to your computer and use it in GitHub Desktop.
Save drewstone/cee02c503107d06badbdc49bea35c526 to your computer and use it in GitHub Desktop.
{
"TransactionInput": {
"parent_output": "Hash",
"signature": "Signature"
},
"TransactionOutput": {
"value": "u128",
"pubkey": "Hash",
"sale": "u32"
},
"Transaction": {
"inputs": "Vec<TransactionInput>",
"outputs": "Vec<TransactionOutput>"
},
"blah": "u32",
"MetadataRecord": {
"avatar": "Text",
"display_name": "Text",
"tagline": "Text"
},
"Registered": "Null",
"Attested": "Null",
"Verified": "Null",
"IdentityStage": {
"registered": "Registered",
"attested": "Attested",
"verified": "Verified"
},
"IdentityRecord": {
"account": "AccountId",
"identity_type": "Text",
"identity": "Bytes",
"stage": "IdentityStage",
"expiration_time": "BlockNumber",
"proof": "Bytes",
"metadata": "Bytes"
},
"Signaling": "Null",
"ProposalCategory": {
"signaling": "Signaling"
},
"PreVoting": "Null",
"Voting": "Null",
"Completed": "Null",
"Commit": "Null",
"ProposalStage": {
"prevoting": "PreVoting",
"voting": "Voting",
"completed": "Completed"
},
"ProposalRecord": {
"index": "u32",
"author": "AccountId",
"stage": "ProposalStage",
"transition_time": "BlockNumber",
"category": "ProposalCategory",
"title": "Vec<u8>",
"contents": "Vec<u8>",
"vote_id": "u64",
"ProposalTitle": "Vec<u8>",
"ProposalContents": "Vec<u8>"
},
"VoteOutcome": "[u8;32]",
"Tally": "Vec<(VoteOutcome,Balance)>",
"VoteStage": {
"prevoting": "PreVoting",
"commit": "Commit",
"voting": "Voting",
"completed": "Completed"
},
"Binary": "Null",
"MultiOption": "Null",
"VoteType": {
"binary": "Binary",
"multioption": "MultiOption"
},
"OnePerson": "Null",
"OneCoin": "Null",
"TallyType": {
"oneperson": "OnePerson",
"onecoin": "OneCoin"
},
"VoteData": {
"initiator": "AccountId",
"stage": "VoteStage",
"vote_type": "VoteType",
"tally_type": "TallyType",
"is_commit_reveal": "Bool"
},
"VoteRecord": {
"id": "u64",
"commitments": "Vec<(AccountId, VoteOutcome)>",
"reveals": "Vec<(AccountId, VoteOutcome)>",
"data": "VoteData",
"outcomes": "Vec<(VoteOutcome)>"
},
"Attestation": "Vec<u8>",
"IdentityType": "Vec<u8>",
"Identity": "Vec<u8>",
"Balance2": "Balance"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment