pkgPath
untyped stringValue
"gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/remixlab/contest"
appTitle
untyped stringValue
"Demo contest"
recipeID
untyped stringValue
"demo-contest"
recipeVersion
untyped stringValue
"1.0.0"
pageSize
untyped bigintValue
(25 <untyped> bigint)
maxEntries
untyped bigintValue
(10 <untyped> bigint)
maxElectorate
untyped bigintValue
(100 <untyped> bigint)
titleIndex
untyped biginttitleIndex is the form field shown as each entry's title.
Value
(0 <untyped> bigint)
opInvite
untyped stringOperation names checked against the policy.
Value
"members.invite"
opRemove
untyped stringOperation names checked against the policy.
Value
"members.remove"
opSetRole
untyped stringOperation names checked against the policy.
Value
"members.set_role"
opSubmit
untyped stringOperation names checked against the policy.
Value
"entry.submit"
opReview
untyped stringOperation names checked against the policy.
Value
"entry.review"
opOpen
untyped stringOperation names checked against the policy.
Value
"contest.open"
opPolicy
untyped stringOperation names checked against the policy.
Value
"policy.set"
members
*v1.Set- OID
- 0f5f43…fe6f:54
members details
policy
*v1.Policy- OID
- 0f5f43…fe6f:63
policy details
entries
*v1.Form- OID
- 0f5f43…fe6f:107
entries details
ballot
*v1.Box- OID
- 0f5f43…fe6f:125
ballot details
ballotID
uint64Value
0
ballotEntries
[]uint64Value
<zero>
init.21
func()- OID
- 0f5f43…fe6f:9
init.21 details
setup
func(owner .uverse.address)- OID
- 0f5f43…fe6f:11
setup details
Submit
func(title string, link string, team string) uint64Submit stores a contest entry for review and returns its ID. Every answer is public. Leave optional fields empty. - title: required text, at most 80 bytes - link: required text, at most 200 bytes - team: optional text, at most 120 bytes
- OID
- 0f5f43…fe6f:12
Submit details
Accept
func(id uint64)Accept admits a submitted entry to the ballot. Decisions are final.
- OID
- 0f5f43…fe6f:13
Accept details
Reject
func(id uint64)Reject declines a submitted entry. Decisions are final.
- OID
- 0f5f43…fe6f:14
Reject details
OpenVoting
func(durationSeconds int64)OpenVoting closes submissions and review, turns the admitted entries into the ballot's options, captures the current members as the electorate and opens voting for durationSeconds.
- OID
- 0f5f43…fe6f:15
OpenVoting details
Vote
func(entryID uint64)Vote casts the caller's vote for an admitted entry.
- OID
- 0f5f43…fe6f:16
Vote details
Finalize
func()Finalize commits the result once the deadline has passed. Anyone may call it; the result depends only on rules frozen when voting opened.
- OID
- 0f5f43…fe6f:17
Finalize details
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.
- OID
- 0f5f43…fe6f:18
Invite details
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.
- OID
- 0f5f43…fe6f:19
RevokeInvite details
Join
func()Join accepts the caller's pending invitation.
- OID
- 0f5f43…fe6f:20
Join details
Leave
func()Leave removes the caller from the membership. An open vote keeps its frozen electorate.
- OID
- 0f5f43…fe6f:21
Leave details
RemoveMember
func(addr .uverse.address)RemoveMember removes addr.
- OID
- 0f5f43…fe6f:22
RemoveMember details
SetRole
func(addr .uverse.address, role string)SetRole changes addr's role.
- OID
- 0f5f43…fe6f:23
SetRole details
SetRule
func(op string, rule string)SetRule changes the rule for an operation, within that operation's floor.
- OID
- 0f5f43…fe6f:24
SetRule details
Entry
func(id uint64) (v1.SubmissionView, bool)Entry returns an inert copy of entry id in any status.
- OID
- 0f5f43…fe6f:25
Entry details
Entries
func() []v1.SubmissionViewEntries lists the admitted entries in submission order.
- OID
- 0f5f43…fe6f:26
Entries details
Queue
func(offset int, limit int) []v1.SubmissionViewQueue pages through entries awaiting review in submission order.
- OID
- 0f5f43…fe6f:27
Queue details
Fields
func() []v1.FieldFields returns a copy of the form schema.
- OID
- 0f5f43…fe6f:28
Fields details
Ballot
func() (v1.BallotView, bool)Ballot returns the contest ballot once voting has opened.
- OID
- 0f5f43…fe6f:29
Ballot details
BallotEntries
func() []uint64BallotEntries returns the entry ID of each ballot option, in option order.
- OID
- 0f5f43…fe6f:30
BallotEntries details
Winner
func() (uint64, bool)Winner returns the winning entry once the result is final and has a single winner.
- OID
- 0f5f43…fe6f:31
Winner details
HasVoted
func(addr .uverse.address) boolHasVoted reports whether addr has voted.
- OID
- 0f5f43…fe6f:32
HasVoted details
Members
func(offset int, limit int) []v1.MemberViewMembers pages through members ordered by address.
- OID
- 0f5f43…fe6f:33
Members details
Invites
func(offset int, limit int) []v1.MemberViewInvites returns up to limit pending invitations (at most 25) starting at offset, with the role each one grants.
- OID
- 0f5f43…fe6f:34
Invites details
RoleOf
func(addr .uverse.address) stringRoleOf returns addr's role name.
- OID
- 0f5f43…fe6f:35
RoleOf details
Rules
func() []v1.RuleViewRules lists every operation's current rule.
- OID
- 0f5f43…fe6f:36
Rules details
authorize
func(op string) .uverse.address- OID
- 0f5f43…fe6f:37
authorize details
mustBeOpenForEntries
func()- OID
- 0f5f43…fe6f:38
mustBeOpenForEntries details
ready
func()- OID
- 0f5f43…fe6f:39
ready details
clampLimit
func(limit int) int- OID
- 0f5f43…fe6f:40
clampLimit details
must
func(err .uverse.error)- OID
- 0f5f43…fe6f:41
must details
configDigest
untyped stringconfigDigest is the canonical digest of the project configuration that produced this realm.
Value
"sha256:3331f81eb7b7680d3f2131ae50dfbbcd0080a281fbc35f2c6523a810d0c08bd5"
Descriptor
func() v1.AppDescriptorDescriptor identifies this app's recipe and components.
- OID
- 0f5f43…fe6f:42
Descriptor details
Render
func(path string) stringRender serves the native pages: overview (entries, ballot and result), a single entry, the review queue, members and rules.
- OID
- 0f5f43…fe6f:44
Render details
renderHome
func() string- OID
- 0f5f43…fe6f:46
renderHome details
renderQueue
func(page int) string- OID
- 0f5f43…fe6f:47
renderQueue details
renderEntry
func(id uint64) string- OID
- 0f5f43…fe6f:48
renderEntry details
reviewLinks
func(idStr string) string- OID
- 0f5f43…fe6f:49
reviewLinks details
renderMembers
func(page int) string- OID
- 0f5f43…fe6f:50
renderMembers details
renderRules
func() string- OID
- 0f5f43…fe6f:51
renderRules details
resultLabel
func(v v1.BallotView) string- OID
- 0f5f43…fe6f:52
resultLabel details
notFound
func() string- OID
- 0f5f43…fe6f:53