add getVoteHash

This commit is contained in:
Ricardo Guilherme Schmidt 2019-03-20 22:04:10 -03:00
parent a040bf1e01
commit 1d57ac8fe8
No known key found for this signature in database
GPG Key ID: BFB3F5C8ED618A94
1 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,11 @@ pragma solidity >=0.5.0 <0.6.0;
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
*/
interface Proposal {
event VoteSignatures(uint256 position, bytes32 merkleTree);
event Voted(Vote indexed vote, address voter);
event PartialResult(Vote indexed vote, uint256 total);
event Claimed(Vote indexed vote, address claimer, address source);
enum Vote {
Null,
Reject,
@ -34,6 +38,7 @@ interface Proposal {
function clear() external;
function isApproved() external view returns (bool);
function isFinalized() external view returns (bool);
function getVoteHash(Vote _vote) external view returns (bytes32);
}