Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

gov state

Back to all declarations

KindSpend

untyped bigint

Value

(1 <untyped> bigint)

KindSignal

untyped bigint

Value

(3 <untyped> bigint)

KindIncentive

untyped bigint

Value

(4 <untyped> bigint)

VoteWindow

int64

Value

604800

maxMemo

untyped bigint

Value

(1200 <untyped> bigint)

notePrefix

untyped string

Value

"wizards-note/1\n"

noteSplit

untyped string

Value

"\n---\n"

proposal

type

Value

gov.proposal

ballot

type

Value

gov.ballot

treasury

.uverse.address

Value

<gnolang.StringValue>

spentCommunity

int64

Value

0

spentIncentive

int64

Value

0

nextProposal

int

Value

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.

Open
OID
01ec43…01fb:11
Bind details

Inspect func

Propose

func(kind int, to .uverse.address, tokenAmt int64, memo string) int

Propose opens a vote. Claims on the token must already have started. The caller must hold WIZ. kind is KindSpend, KindSignal, or KindIncentive.

Open
OID
01ec43…01fb:13
Propose details

Inspect func

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.

Open
OID
01ec43…01fb:14
Vote details

Inspect func

Execute

func(id int)

Execute closes a finished proposal. A passed spend pays one sleeve. A failed vote moves nothing. Anyone may call it.

Open
OID
01ec43…01fb:15
Execute details

Inspect func

CommunityLeft

func() int64

CommunityLeft is the community sleeve still available to a vote.

Open
OID
01ec43…01fb:17
CommunityLeft details

Inspect func

IncentiveLeft

func() int64

IncentiveLeft is the incentive sleeve still available to a vote.

Open
OID
01ec43…01fb:18
IncentiveLeft details

Inspect func

TreasuryAddress

func() .uverse.address
Open
OID
01ec43…01fb:19
TreasuryAddress details

Inspect func

ProposalKind

func(id int) int
Open
OID
01ec43…01fb:21
ProposalKind details

Inspect func

ProposalYes

func(id int) int64
Open
OID
01ec43…01fb:22
ProposalYes details

Inspect func

ProposalExecuted

func(id int) bool
Open
OID
01ec43…01fb:24
ProposalExecuted details

Inspect func

ProposalPassed

func(id int) bool
Open
OID
01ec43…01fb:25
ProposalPassed details

Inspect func

ProposalEnd

func(id int) int64
Open
OID
01ec43…01fb:26
ProposalEnd details

Inspect func

ProposalTokenAmt

func(id int) int64
Open
OID
01ec43…01fb:27
ProposalTokenAmt details

Inspect func

ProposalTo

func(id int) .uverse.address
Open
OID
01ec43…01fb:28
ProposalTo details

Inspect func

ProposalMemo

func(id int) string
Open
OID
01ec43…01fb:29
ProposalMemo details

Inspect func

ProposalProposer

func(id int) .uverse.address
Open
OID
01ec43…01fb:30
ProposalProposer details

Inspect func

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).

Open
OID
01ec43…01fb:31
Voted details

Inspect func

Render

func(path string) string

Render prints one proposal at "proposal/\<id>". Other paths print the treasury.

Open
OID
01ec43…01fb:32
Render details

Inspect func

renderProposal

func(idText string) string
Open
OID
01ec43…01fb:33
renderProposal details

Inspect func

renderMemo

func(memo string) string
Open
OID
01ec43…01fb:34
renderMemo details

Inspect func

splitNote

func(memo string) (title string, summary string, change string, ok bool)
Open
OID
01ec43…01fb:35
splitNote details

Inspect func

executable

func(p *gov.proposal) bool
Open
OID
01ec43…01fb:37
executable details

Inspect func

payable

func(p *gov.proposal, left int64) bool
Open
OID
01ec43…01fb:38
payable details

Inspect func

mustPayProposal

func(to .uverse.address, tokenAmt int64, left int64)
Open
OID
01ec43…01fb:39
mustPayProposal details

Inspect func

sleeveLeft

func(sent int64, spent int64) int64
Open
OID
01ec43…01fb:40
sleeveLeft details

Inspect func

proposalOf

func(id int) *gov.proposal
Open
OID
01ec43…01fb:41
proposalOf details

Inspect func

voteKey

func(id int, voter .uverse.address) string
Open
OID
01ec43…01fb:42
voteKey details

Inspect func
KindSpend : untyped bigint =(1 <untyped> bigint)
KindSignal : untyped bigint =(3 <untyped> bigint)
KindIncentive : untyped bigint =(4 <untyped> bigint)
VoteWindow : int64 =604800
maxMemo : untyped bigint =(1200 <untyped> bigint)
notePrefix : untyped string ="wizards-note/1\n"
noteSplit : untyped string ="\n---\n"
proposal : type =gov.proposal
ballot : type =gov.ballot
treasury : .uverse.address =<gnolang.StringValue>
spentCommunity : int64 =0
spentIncentive : int64 =0
proposals : v0.Tree Inspect
votes : v0.Tree Inspect
nextProposal : int =1
Bind : func() Inspect
Propose : func(kind int, to .uverse.address, tokenAmt int64, memo string) int Inspect
Vote : func(id int, yes bool) Inspect
Execute : func(id int) Inspect
Treasury : func() int64 Inspect
CommunityLeft : func() int64 Inspect
IncentiveLeft : func() int64 Inspect
TreasuryAddress : func() .uverse.address Inspect
ProposalCount : func() int Inspect
ProposalKind : func(id int) int Inspect
ProposalYes : func(id int) int64 Inspect
ProposalNo : func(id int) int64 Inspect
ProposalExecuted : func(id int) bool Inspect
ProposalPassed : func(id int) bool Inspect
ProposalEnd : func(id int) int64 Inspect
ProposalTokenAmt : func(id int) int64 Inspect
ProposalTo : func(id int) .uverse.address Inspect
ProposalMemo : func(id int) string Inspect
ProposalProposer : func(id int) .uverse.address Inspect
Voted : func(id int, voter .uverse.address) (cast bool, yes bool) Inspect
Render : func(path string) string Inspect
renderProposal : func(idText string) string Inspect
renderMemo : func(memo string) string Inspect
splitNote : func(memo string) (title string, summary string, change string, ok bool) Inspect
oneLine : func(s string) string Inspect
executable : func(p *gov.proposal) bool Inspect
payable : func(p *gov.proposal, left int64) bool Inspect
mustPayProposal : func(to .uverse.address, tokenAmt int64, left int64) Inspect
sleeveLeft : func(sent int64, spent int64) int64 Inspect
proposalOf : func(id int) *gov.proposal Inspect
voteKey : func(id int, voter .uverse.address) string Inspect
mustCurrent : func() Inspect
mustUser : func() Inspect
mustNoPayment : func() Inspect