proposal-trait
SP2F4QC563WN0A0949WPH5W1YXVC4M1R46QKE0G14Source Code
(define-trait proposal-trait
(
(get-votes () (response
{
op1: {id: uint, votes: uint},
op2: {id: uint, votes: uint},
op3: {id: uint, votes: uint},
op4: {id: uint, votes: uint}
}
uint)
)
(get-total-votes () (response uint uint))
(vote (uint) (response bool uint))
(activate (uint) (response bool uint))
(execute (principal uint) (response bool uint))
)
)