Vote合约
message VotingItem {
// The voting activity id.
aelf.Hash voting_item_id = 1;
// The token symbol which will be accepted.
string accepted_currency = 2;
// Whether the vote will lock token.
bool is_lock_token = 3;
// The current snapshot number.
int64 current_snapshot_number = 4;
// The total snapshot number.
int64 total_snapshot_number = 5;
// The list of options.
repeated string options = 6;
// The register time of the voting activity.
google.protobuf.Timestamp register_timestamp = 7;
// The start time of the voting.
google.protobuf.Timestamp start_timestamp = 8;
// The end time of the voting.
google.protobuf.Timestamp end_timestamp = 9;
// The start time of current round of the voting.
google.protobuf.Timestamp current_snapshot_start_timestamp = 10;
// The sponsor address of the voting activity.
aelf.Address sponsor = 11;
}注册投票项目 - Register
投票 - Vote
赎回 - Withdraw
快照 - TakeSnapshot
操作投票选项 - AddOption / AddOptions / RemoveOption / RemoveOptions
Last updated