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.

clubpoll state

Back to all declarations

pkgPath

untyped string

Value

"gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/remixlab/clubpoll"

appTitle

untyped string

Value

"Club poll"

recipeID

untyped string

Value

"club-poll"

recipeVersion

untyped string

Value

"1.0.0"

pageSize

untyped bigint

Value

(25 <untyped> bigint)

optionSep

untyped string

Value

"|"

opInvite

untyped string

Operation names checked against the policy.

Value

"members.invite"

opRemove

untyped string

Operation names checked against the policy.

Value

"members.remove"

opSetRole

untyped string

Operation names checked against the policy.

Value

"members.set_role"

opCreate

untyped string

Operation names checked against the policy.

Value

"poll.create"

opOpen

untyped string

Operation names checked against the policy.

Value

"poll.open"

opPolicy

untyped string

Operation names checked against the policy.

Value

"policy.set"

Invite

func(addr .uverse.address, role string)

Invite lets addr join with role. Inviting a reviewer or owner also requires the members.set\_role permission.

Open
OID
07a9d9…fc3f:9
Invite details

Inspect func

RevokeInvite

func(addr .uverse.address)

RevokeInvite cancels a pending invitation. Revoking an invitation for a reviewer or owner also requires the members.set\_role permission.

Open
OID
07a9d9…fc3f:10
RevokeInvite details

Inspect func

Join

func()

Join accepts the caller's pending invitation.

Open
OID
07a9d9…fc3f:11
Join details

Inspect func

Leave

func()

Leave removes the caller from the club. Open polls keep their frozen electorate.

Open
OID
07a9d9…fc3f:12
Leave details

Inspect func

RemoveMember

func(addr .uverse.address)

RemoveMember removes addr.

Open
OID
07a9d9…fc3f:13
RemoveMember details

Inspect func

SetRole

func(addr .uverse.address, role string)

SetRole changes addr's role.

Open
OID
07a9d9…fc3f:14
SetRole details

Inspect func

CreatePoll

func(title string, options string, durationSeconds int64) uint64

CreatePoll creates a draft poll. options are separated by "|".

Open
OID
07a9d9…fc3f:15
CreatePoll details

Inspect func

CancelPoll

func(id uint64)

CancelPoll deletes a draft poll that was never opened, freeing its slot. The poll's creator may cancel it, and so may anyone allowed to open polls.

Open
OID
07a9d9…fc3f:16
CancelPoll details

Inspect func

OpenPoll

func(id uint64)

OpenPoll freezes the poll's options and captures the current members as its electorate.

Open
OID
07a9d9…fc3f:17
OpenPoll details

Inspect func

Vote

func(id uint64, choice int)

Vote casts the caller's vote for option index choice.

Open
OID
07a9d9…fc3f:18
Vote details

Inspect func

Finalize

func(id uint64)

Finalize commits a poll's result once its deadline has passed. Anyone may call it; the result depends only on rules frozen at opening.

Open
OID
07a9d9…fc3f:19
Finalize details

Inspect func

SetRule

func(op string, rule string)

SetRule changes the rule for an operation, within that operation's floor.

Open
OID
07a9d9…fc3f:20
SetRule details

Inspect func

Poll

func(id uint64) (v1.BallotView, bool)

Poll returns an inert summary of poll id.

Open
OID
07a9d9…fc3f:21
Poll details

Inspect func

Polls

func(offset int, limit int) []v1.BallotView

Polls pages through polls, newest first.

Open
OID
07a9d9…fc3f:22
Polls details

Inspect func

Members

func(offset int, limit int) []v1.MemberView

Members pages through members ordered by address.

Open
OID
07a9d9…fc3f:23
Members details

Inspect func

Invites

func(offset int, limit int) []v1.MemberView

Invites returns up to limit pending invitations (at most 25) starting at offset, with the role each one grants.

Open
OID
07a9d9…fc3f:24
Invites details

Inspect func

RoleOf

func(addr .uverse.address) string

RoleOf returns addr's role name.

Open
OID
07a9d9…fc3f:25
RoleOf details

Inspect func

HasVoted

func(id uint64, addr .uverse.address) bool

HasVoted reports whether addr voted in poll id.

Open
OID
07a9d9…fc3f:26
HasVoted details

Inspect func

Rules

func() []v1.RuleView

Rules lists every operation's current rule.

Open
OID
07a9d9…fc3f:27
Rules details

Inspect func

authorize

func(op string) .uverse.address
Open
OID
07a9d9…fc3f:28
authorize details

Inspect func

clampLimit

func(limit int) int
Open
OID
07a9d9…fc3f:30
clampLimit details

Inspect func

configDigest

untyped string

configDigest is the canonical digest of the project configuration that produced this realm.

Value

"sha256:71e3b6329d3673ad99b14ca709473ade630b2ec3c8ee265c10ecdc2978d6ec2b"

Descriptor

func() v1.AppDescriptor

Descriptor identifies this app's recipe and components.

Open
OID
07a9d9…fc3f:32
Descriptor details

Inspect func

Render

func(path string) string

Render serves the native pages: overview, polls, a single poll, members and rules.

Open
OID
07a9d9…fc3f:34
Render details

Inspect func

renderPolls

func(page int) string
Open
OID
07a9d9…fc3f:37
renderPolls details

Inspect func

renderPollTable

func(list []v1.BallotView) string
Open
OID
07a9d9…fc3f:38
renderPollTable details

Inspect func

renderPoll

func(id uint64) string
Open
OID
07a9d9…fc3f:39
renderPoll details

Inspect func

renderMembers

func(page int) string
Open
OID
07a9d9…fc3f:40
renderMembers details

Inspect func

statusLabel

func(v v1.BallotView, now int64) string
Open
OID
07a9d9…fc3f:42
statusLabel details

Inspect func

outcomeLabel

func(v v1.BallotView) string
Open
OID
07a9d9…fc3f:43
outcomeLabel details

Inspect func
pkgPath : untyped string ="gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/remixlab/clubpoll"
appTitle : untyped string ="Club poll"
recipeID : untyped string ="club-poll"
recipeVersion : untyped string ="1.0.0"
pageSize : untyped bigint =(25 <untyped> bigint)
optionSep : untyped string ="|"
opInvite : untyped string ="members.invite"
opRemove : untyped string ="members.remove"
opSetRole : untyped string ="members.set_role"
opCreate : untyped string ="poll.create"
opOpen : untyped string ="poll.open"
opPolicy : untyped string ="policy.set"
members : *v1.Set Inspect
policy : *v1.Policy Inspect
polls : *v1.Box Inspect
init.15 : func() Inspect
setup : func(owner .uverse.address) Inspect
Invite : func(addr .uverse.address, role string) Inspect
RevokeInvite : func(addr .uverse.address) Inspect
Join : func() Inspect
Leave : func() Inspect
RemoveMember : func(addr .uverse.address) Inspect
SetRole : func(addr .uverse.address, role string) Inspect
CreatePoll : func(title string, options string, durationSeconds int64) uint64 Inspect
CancelPoll : func(id uint64) Inspect
OpenPoll : func(id uint64) Inspect
Vote : func(id uint64, choice int) Inspect
Finalize : func(id uint64) Inspect
SetRule : func(op string, rule string) Inspect
Poll : func(id uint64) (v1.BallotView, bool) Inspect
Polls : func(offset int, limit int) []v1.BallotView Inspect
Members : func(offset int, limit int) []v1.MemberView Inspect
Invites : func(offset int, limit int) []v1.MemberView Inspect
RoleOf : func(addr .uverse.address) string Inspect
HasVoted : func(id uint64, addr .uverse.address) bool Inspect
Rules : func() []v1.RuleView Inspect
authorize : func(op string) .uverse.address Inspect
ready : func() Inspect
clampLimit : func(limit int) int Inspect
must : func(err .uverse.error) Inspect
configDigest : untyped string ="sha256:71e3b6329d3673ad99b14ca709473ade630b2ec3c8ee265c10ecdc2978d6ec2b"
Descriptor : func() v1.AppDescriptor Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderPolls : func(page int) string Inspect
renderPollTable : func(list []v1.BallotView) string Inspect
renderPoll : func(id uint64) string Inspect
renderMembers : func(page int) string Inspect
renderRules : func() string Inspect
statusLabel : func(v v1.BallotView, now int64) string Inspect
outcomeLabel : func(v v1.BallotView) string Inspect
notFound : func() string Inspect