KindSpend
untyped bigintValue
(1 <untyped> bigint)
KindSignal
untyped bigintValue
(3 <untyped> bigint)
KindIncentive
untyped bigintValue
(4 <untyped> bigint)
VoteWindow
int64Value
604800
maxMemo
untyped bigintValue
(1200 <untyped> bigint)
notePrefix
untyped stringValue
"wizards-note/1\n"
noteSplit
untyped stringValue
"\n---\n"
proposal
typeValue
gov.proposal
ballot
typeValue
gov.ballot
treasury
.uverse.addressValue
<gnolang.StringValue>
spentCommunity
int64Value
0
spentIncentive
int64Value
0
proposals
v0.Tree- OID
- 01ec43…01fb:7
proposals details
votes
v0.Tree- OID
- 01ec43…01fb:9
votes details
nextProposal
intValue
1
Bind
func()Bind records this realm as the drop token's GovDAO. The transaction signer must be the token admin. One call, before Seal.
- OID
- 01ec43…01fb:11
Bind details
Propose
func(kind int, to .uverse.address, tokenAmt int64, memo string) intPropose opens a vote. Claims on the token must already have started. The caller must hold WIZ. kind is KindSpend, KindSignal, or KindIncentive.
- OID
- 01ec43…01fb:13
Propose details
Vote
func(id int, yes bool)Vote records the caller's current WIZ balance as yes or no. One vote per address. That balance stays locked until this proposal ends.
- OID
- 01ec43…01fb:14
Vote details
Execute
func(id int)Execute closes a finished proposal. A passed spend pays one sleeve. A failed vote moves nothing. Anyone may call it.
- OID
- 01ec43…01fb:15
Execute details
Treasury
func() int64- OID
- 01ec43…01fb:16
Treasury details
CommunityLeft
func() int64CommunityLeft is the community sleeve still available to a vote.
- OID
- 01ec43…01fb:17
CommunityLeft details
IncentiveLeft
func() int64IncentiveLeft is the incentive sleeve still available to a vote.
- OID
- 01ec43…01fb:18
IncentiveLeft details
TreasuryAddress
func() .uverse.address- OID
- 01ec43…01fb:19
TreasuryAddress details
ProposalCount
func() int- OID
- 01ec43…01fb:20
ProposalCount details
ProposalKind
func(id int) int- OID
- 01ec43…01fb:21
ProposalKind details
ProposalYes
func(id int) int64- OID
- 01ec43…01fb:22
ProposalYes details
ProposalNo
func(id int) int64- OID
- 01ec43…01fb:23
ProposalNo details
ProposalExecuted
func(id int) bool- OID
- 01ec43…01fb:24
ProposalExecuted details
ProposalPassed
func(id int) bool- OID
- 01ec43…01fb:25
ProposalPassed details
ProposalEnd
func(id int) int64- OID
- 01ec43…01fb:26
ProposalEnd details
ProposalTokenAmt
func(id int) int64- OID
- 01ec43…01fb:27
ProposalTokenAmt details
ProposalTo
func(id int) .uverse.address- OID
- 01ec43…01fb:28
ProposalTo details
ProposalMemo
func(id int) string- OID
- 01ec43…01fb:29
ProposalMemo details
ProposalProposer
func(id int) .uverse.address- OID
- 01ec43…01fb:30
ProposalProposer details
Voted
func(id int, voter .uverse.address) (cast bool, yes bool)Voted reports whether voter has a ballot on id. A missing ballot is (false, false).
- OID
- 01ec43…01fb:31
Voted details
Render
func(path string) stringRender prints one proposal at "proposal/\<id>". Other paths print the treasury.
- OID
- 01ec43…01fb:32
Render details
renderProposal
func(idText string) string- OID
- 01ec43…01fb:33
renderProposal details
renderMemo
func(memo string) string- OID
- 01ec43…01fb:34
renderMemo details
splitNote
func(memo string) (title string, summary string, change string, ok bool)- OID
- 01ec43…01fb:35
splitNote details
oneLine
func(s string) string- OID
- 01ec43…01fb:36
oneLine details
executable
func(p *gov.proposal) bool- OID
- 01ec43…01fb:37
executable details
payable
func(p *gov.proposal, left int64) bool- OID
- 01ec43…01fb:38
payable details
mustPayProposal
func(to .uverse.address, tokenAmt int64, left int64)- OID
- 01ec43…01fb:39
mustPayProposal details
sleeveLeft
func(sent int64, spent int64) int64- OID
- 01ec43…01fb:40
sleeveLeft details
proposalOf
func(id int) *gov.proposal- OID
- 01ec43…01fb:41
proposalOf details
voteKey
func(id int, voter .uverse.address) string- OID
- 01ec43…01fb:42
voteKey details
mustCurrent
func()- OID
- 01ec43…01fb:43
mustCurrent details
mustUser
func()- OID
- 01ec43…01fb:44
mustUser details
mustNoPayment
func()- OID
- 01ec43…01fb:45