func Accept
crossing ActionAccept admits a submitted entry to the ballot. Decisions are final.
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package contest is a Remix Lab "demo-contest" app generated from a project configuration. Entrants submit through a f...
Package contest is a Remix Lab "demo-contest" app generated from a project configuration. Entrants submit through a fixed form, reviewers admit up to 10 entries, and members vote for a winner.
The contest runs once: opening the vote closes submissions and review, freezes the admitted entries as the ballot's options and captures the current members as the electorate. Every submission is public chain data, including entries that are later rejected.
Authority model: every write derives the actor from cur.Previous(), the immediate caller. An intermediary realm calling on a user's behalf acts as itself and gains none of that user's roles. Block state lives in unexported variables and only inert views leave the realm.
Accept admits a submitted entry to the ballot. Decisions are final.
Ballot returns the contest ballot once voting has opened.
BallotEntries returns the entry ID of each ballot option, in option order.
Descriptor identifies this app's recipe and components.
Entries lists the admitted entries in submission order.
Entry returns an inert copy of entry id in any status.
Fields returns a copy of the form schema.
Finalize commits the result once the deadline has passed. Anyone may call it; the result depends only on rules frozen when voting opened.
HasVoted reports whether addr has voted.
Invite lets addr join with role. Inviting a reviewer or owner also requires the members.set_role permission.
Invites returns up to limit pending invitations (at most 25) starting at offset, with the role each one grants.
Join accepts the caller's pending invitation.
Leave removes the caller from the membership. An open vote keeps its frozen electorate.
Members pages through members ordered by address.
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.
Queue pages through entries awaiting review in submission order.
Reject declines a submitted entry. Decisions are final.
RemoveMember removes addr.
Render serves the native pages: overview (entries, ballot and result), a single entry, the review queue, members and rules.
RevokeInvite cancels a pending invitation. Revoking an invitation for a reviewer or owner also requires the members.set_role permission.
RoleOf returns addr's role name.
Rules lists every operation's current rule.
SetRole changes addr's role.
SetRule changes the rule for an operation, within that operation's floor.
Submit stores a contest entry for review and returns its ID. Every answer is public. Leave optional fields empty.
Vote casts the caller's vote for an admitted entry.
Winner returns the winning entry once the result is final and has a single winner.