Created
December 22, 2020 12:28
-
-
Save yangwao/066b1366c2401a62370d0f111da9ba66 to your computer and use it in GitHub Desktop.
This file contains hidden or 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" | |
] | |
}, | |
"VotingScheme": { | |
"_enum": [ | |
"Simple", | |
"CommitReveal" | |
] | |
}, | |
"VoteOutcome": "[u8; 32]", | |
"VoteCommitment": "[u8; 32]", | |
"VoteData": { | |
"initiator": "AccountId", | |
"stage": "VoteStage", | |
"vote_type": "VoteType", | |
"tally_type": "TallyType", | |
"voting_scheme": "VotingScheme" | |
}, | |
"VoteRecord": { | |
"id": "u64", | |
"commitments": "Vec<(AccountId, VoteOutcome)>", | |
"reveals": "Vec<(AccountId, Vec<VoteOutcome>)>", | |
"data": "VoteData", | |
"outcomes": "Vec<VoteOutcome>" | |
}, | |
"ChainId": "u8", | |
"DepositNonce": "u64", | |
"ResourceId": "[u8; 32]", | |
"ProposalStatus": { | |
"_enum": [ | |
"Initiated", | |
"Approved", | |
"Rejected" | |
] | |
}, | |
"ProposalVotes": { | |
"votes_for": "Vec<AccountId>", | |
"votes_against": "Vec<AccountId>", | |
"staus": "ProposalStatus", | |
"expiry": "BlockNumber" | |
}, | |
"TransactionCondition": { | |
"_enum": { | |
"block": "u64", | |
"time": "u64" | |
} | |
}, | |
"Transaction": { | |
"block_hash": "Option<H256>", | |
"block_number": "Option<U256>", | |
"chain_id": "Option<u64>", | |
"condition": "Option<TransactionCondition>", | |
"creates": "Option<H160>", | |
"from": "H160", | |
"gas": "U256", | |
"gas_price": "U256", | |
"hash": "H256", | |
"input": "Bytes", | |
"nonce": "U256", | |
"public_key": "Option<H512>", | |
"r": "U256", | |
"raw": "Bytes", | |
"s": "U256", | |
"standard_v": "U256", | |
"to": "Option<H160>", | |
"transaction_index": "Option<U256>", | |
"v": "U256", | |
"value": "U256" | |
}, | |
"Bloom": "[u8; 256]", | |
"TransactionStatus": { | |
"transaction_hash": "H256", | |
"transaction_index": "u32", | |
"from": "H160", | |
"to": "Option<H160>", | |
"contract_address": "Option<H160>", | |
"logs": "Vec<Log>", | |
"logs_bloom": "Bloom" | |
}, | |
"H2048": "Bloom", | |
"Receipt": { | |
"transaction_hash": "Option<H256>", | |
"transaction_index": "Option<U256>", | |
"block_hash": "Option<H256>", | |
"from": "Option<H160>", | |
"to": "Option<H160>", | |
"block_number": "Option<U256>", | |
"cumulative_gas_used": "U256", | |
"gas_used": "Option<U256>", | |
"contract_address": "Option<H160>", | |
"logs": "Vec<Log>", | |
"state_root": "Option<H256>", | |
"logs_bloom": "H2048", | |
"status_code": "Option<U64>" | |
}, | |
"ExitReason": { | |
"_enum": { | |
"ExitSucceed": "bool", | |
"ExitError": "bool", | |
"ExitRevert": "bool", | |
"ExitFatal": "bool" | |
} | |
}, | |
"voting::VoteType": "VoteType", | |
"voting::TallyType": "TallyType", | |
"voting::Tally": "VotingTally" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment