NAC_Blockchain/charter-std/governance/voting.ch

13 lines
274 B
Plaintext

pub fn vote(proposal_id: u256, support: bool) -> bool {
require(proposal_id > 0, "Invalid proposal ID");
return true;
}
pub fn get_votes(proposal_id: u256) -> u256 {
return 0;
}
pub fn has_voted(proposal_id: u256, voter: Address) -> bool {
return false;
}