sharedPath
untyped stringsharedPath is the reviewed shared membership realm this app is bound to.
Value
"gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/remixlab/sharedmembers"
sharedReader
typesharedReader adapts the shared membership realm to core.MembershipReader. It is read-only: it can look roles up and take snapshots, nothing else.
Value
sharedpoll.sharedReader
electorate
sharedpoll.sharedReaderelectorate is the membership source for poll electorates. Tests replace it with a local fake; production code never reassigns it.
- OID
- 07600d…da66:4
electorate details
Render
func(path string) stringRender serves the overview, the poll list and single polls.
- OID
- 07600d…da66:5
Render details
renderHome
func() string- OID
- 07600d…da66:7
renderHome details
renderPollTable
func(list []v1.BallotView) string- OID
- 07600d…da66:8
renderPollTable details
renderPoll
func(v v1.BallotView) string- OID
- 07600d…da66:9
renderPoll details
pkgPath
untyped stringValue
"gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/remixlab/sharedpoll"
recipeID
untyped stringValue
"shared-poll-demo"
recipeVersion
untyped stringValue
"1.0.0"
pageSize
untyped bigintValue
(25 <untyped> bigint)
optionSep
untyped stringValue
"|"
configDigest
untyped stringValue
"unset"
opAdmins
untyped stringValue
"admins.manage"
opCreate
untyped stringValue
"poll.create"
opOpen
untyped stringValue
"poll.open"
opPolicy
untyped stringValue
"policy.set"
admins
*v1.Set- OID
- 07600d…da66:33
admins details
policy
*v1.Policy- OID
- 07600d…da66:42
policy details
polls
*v1.Box- OID
- 07600d…da66:68
polls details
init.20
func()- OID
- 07600d…da66:13
init.20 details
setup
func(owner .uverse.address)- OID
- 07600d…da66:15
setup details
Descriptor
func() v1.AppDescriptorDescriptor identifies this app's recipe, components and bindings.
- OID
- 07600d…da66:16
Descriptor details
AddAdmin
func(addr .uverse.address, role string)AddAdmin grants addr a local administrative role ("reviewer" or "owner").
- OID
- 07600d…da66:17
AddAdmin details
RemoveAdmin
func(addr .uverse.address)RemoveAdmin removes a local administrator.
- OID
- 07600d…da66:18
RemoveAdmin details
CreatePoll
func(title string, options string, durationSeconds int64) uint64CreatePoll creates a draft poll. options are separated by "|".
- OID
- 07600d…da66:19
CreatePoll details
CancelPoll
func(id uint64)CancelPoll deletes a draft poll that was never opened. The poll's creator may cancel it, and so may anyone allowed to open polls.
- OID
- 07600d…da66:20
CancelPoll details
OpenPoll
func(id uint64)OpenPoll snapshots the shared realm's current members as the electorate.
- OID
- 07600d…da66:21
OpenPoll details
Vote
func(id uint64, choice int)Vote casts the caller's vote for option index choice.
- OID
- 07600d…da66:22
Vote details
Finalize
func(id uint64)Finalize commits a poll's result once its deadline has passed.
- OID
- 07600d…da66:23
Finalize details
SetRule
func(op string, rule string)SetRule changes the rule for an operation, within its floor.
- OID
- 07600d…da66:24
SetRule details
Poll
func(id uint64) (v1.BallotView, bool)Poll returns an inert summary of poll id.
- OID
- 07600d…da66:25
Poll details
Polls
func(offset int, limit int) []v1.BallotViewPolls pages through polls, newest first.
- OID
- 07600d…da66:26
Polls details
AdminRole
func(addr .uverse.address) stringAdminRole returns addr's local administrative role name ("none" when addr is not an administrator).
- OID
- 07600d…da66:27
AdminRole details
HasVoted
func(id uint64, addr .uverse.address) boolHasVoted reports whether addr voted in poll id.
- OID
- 07600d…da66:28
HasVoted details
authorize
func(op string) .uverse.address- OID
- 07600d…da66:29
authorize details
ready
func()- OID
- 07600d…da66:30
ready details
must
func(err .uverse.error)- OID
- 07600d…da66:31