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.

directory state

Back to all declarations

pkgPath

untyped string

Value

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

appTitle

untyped string

Value

"Community directory"

recipeID

untyped string

Value

"community-directory"

recipeVersion

untyped string

Value

"1.0.0"

pageSize

untyped bigint

Value

(25 <untyped> bigint)

titleIndex

untyped bigint

titleIndex is the form field shown as each entry's title.

Value

(0 <untyped> bigint)

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"

opSubmit

untyped string

Operation names checked against the policy.

Value

"entry.submit"

opReview

untyped string

Operation names checked against the policy.

Value

"entry.review"

opPolicy

untyped string

Operation names checked against the policy.

Value

"policy.set"

Submit

func(name string, link string, category string, since string, summary string) uint64

Submit stores an entry for review and returns its ID. Every answer is public. Leave optional fields empty. - name: required text, at most 80 bytes - link: required text, at most 200 bytes - category: required, one of the field's 4 choices - since: optional integer from 2000 to 2100 - summary: optional multi-line text, at most 500 bytes

Open
OID
0b1459…1a8e:9
Submit details

Inspect func

Accept

func(id uint64)

Accept lists a submitted entry publicly. Review decisions are final.

Open
OID
0b1459…1a8e:10
Accept details

Inspect func

Reject

func(id uint64)

Reject declines a submitted entry. Review decisions are final.

Open
OID
0b1459…1a8e:11
Reject details

Inspect func

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
0b1459…1a8e:12
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
0b1459…1a8e:13
RevokeInvite details

Inspect func

Join

func()

Join accepts the caller's pending invitation.

Open
OID
0b1459…1a8e:14
Join details

Inspect func

Leave

func()

Leave removes the caller from the membership.

Open
OID
0b1459…1a8e:15
Leave details

Inspect func

RemoveMember

func(addr .uverse.address)

RemoveMember removes addr.

Open
OID
0b1459…1a8e:16
RemoveMember details

Inspect func

SetRole

func(addr .uverse.address, role string)

SetRole changes addr's role.

Open
OID
0b1459…1a8e:17
SetRole details

Inspect func

SetRule

func(op string, rule string)

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

Open
OID
0b1459…1a8e:18
SetRule details

Inspect func

Entry

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

Entry returns an inert copy of entry id in any status.

Open
OID
0b1459…1a8e:19
Entry details

Inspect func

Entries

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

Entries pages through accepted entries in submission order.

Open
OID
0b1459…1a8e:20
Entries details

Inspect func

Queue

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

Queue pages through entries awaiting review in submission order.

Open
OID
0b1459…1a8e:21
Queue details

Inspect func

Fields

func() []v1.Field

Fields returns a copy of the form schema.

Open
OID
0b1459…1a8e:22
Fields details

Inspect func

Members

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

Members pages through members ordered by address.

Open
OID
0b1459…1a8e: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
0b1459…1a8e:24
Invites details

Inspect func

RoleOf

func(addr .uverse.address) string

RoleOf returns addr's role name.

Open
OID
0b1459…1a8e:25
RoleOf details

Inspect func

Rules

func() []v1.RuleView

Rules lists every operation's current rule.

Open
OID
0b1459…1a8e:26
Rules details

Inspect func

authorize

func(op string) .uverse.address
Open
OID
0b1459…1a8e:27
authorize details

Inspect func

clampLimit

func(limit int) int
Open
OID
0b1459…1a8e:29
clampLimit details

Inspect func

configDigest

untyped string

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

Value

"sha256:153fa368758d49575cc30288cfa5a5ecd72fec146fe0ed560bc744260cc8719c"

Descriptor

func() v1.AppDescriptor

Descriptor identifies this app's recipe and components.

Open
OID
0b1459…1a8e:31
Descriptor details

Inspect func

Render

func(path string) string

Render serves the native pages: overview, accepted entries, a single entry, the review queue, members and rules.

Open
OID
0b1459…1a8e:33
Render details

Inspect func

renderList

func(heading string, route string, status v1.SubmissionStatus, q url.Values) string
Open
OID
0b1459…1a8e:36
renderList details

Inspect func

renderTable

func(list []v1.SubmissionView, reviewActions bool) string
Open
OID
0b1459…1a8e:37
renderTable details

Inspect func

renderEntry

func(id uint64) string
Open
OID
0b1459…1a8e:38
renderEntry details

Inspect func

renderMembers

func(page int) string
Open
OID
0b1459…1a8e:40
renderMembers details

Inspect func
pkgPath : untyped string ="gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/remixlab/directory"
appTitle : untyped string ="Community directory"
recipeID : untyped string ="community-directory"
recipeVersion : untyped string ="1.0.0"
pageSize : untyped bigint =(25 <untyped> bigint)
titleIndex : untyped bigint =(0 <untyped> bigint)
opInvite : untyped string ="members.invite"
opRemove : untyped string ="members.remove"
opSetRole : untyped string ="members.set_role"
opSubmit : untyped string ="entry.submit"
opReview : untyped string ="entry.review"
opPolicy : untyped string ="policy.set"
members : *v1.Set Inspect
policy : *v1.Policy Inspect
entries : *v1.Form Inspect
init.15 : func() Inspect
setup : func(owner .uverse.address) Inspect
Submit : func(name string, link string, category string, since string, summary string) uint64 Inspect
Accept : func(id uint64) Inspect
Reject : func(id uint64) 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
SetRule : func(op string, rule string) Inspect
Entry : func(id uint64) (v1.SubmissionView, bool) Inspect
Entries : func(offset int, limit int) []v1.SubmissionView Inspect
Queue : func(offset int, limit int) []v1.SubmissionView Inspect
Fields : func() []v1.Field 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
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:153fa368758d49575cc30288cfa5a5ecd72fec146fe0ed560bc744260cc8719c"
Descriptor : func() v1.AppDescriptor Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderList : func(heading string, route string, status v1.SubmissionStatus, q url.Values) string Inspect
renderTable : func(list []v1.SubmissionView, reviewActions bool) string Inspect
renderEntry : func(id uint64) string Inspect
renderMembers : func(page int) string Inspect
renderRules : func() string Inspect
notFound : func() string Inspect