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.

sharedmembers source realm

Package sharedmembers is the Remix Lab reference shared membership service: one membership set that several apps cons...

Overview

Package sharedmembers is the Remix Lab reference shared membership service: one membership set that several apps consult.

Other realms get read-only access through RoleOf, Size and Snapshot, which together implement core.MembershipReader (membership.read/v1). Mutations happen only through this realm's own authorized entry points; reading a member's role never grants the reader any power over that member.

Constants 1

const pkgPath, pageSize, InterfaceVersion

1const (
2	pkgPath  = "gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/remixlab/sharedmembers"
3	pageSize = 25
4
5	// InterfaceVersion is the read interface this realm provides.
6	InterfaceVersion = "membership.read/v1"
7)
source

Functions 11

func Invite

crossing Action
1func Invite(cur realm, addr address, role string)
source

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

func Invites

Action
1func Invites(offset, limit int) []core.MemberView
source

Invites pages through pending invitations ordered by address.

func Join

crossing Action
1func Join(cur realm)
source

Join accepts the caller's pending invitation.

func Members

Action
1func Members(offset, limit int) []core.MemberView
source

Members pages through members ordered by address.

func Render

1func Render(path string) string
source

Render lists the members.

func RevokeInvite

crossing Action
1func RevokeInvite(cur realm, addr address)
source

RevokeInvite cancels a pending invitation. Revoking an invitation for a reviewer or owner also requires the set-role permission.

func SetRole

crossing Action
1func SetRole(cur realm, addr address, role string)
source

SetRole changes addr's role.

Dependencies

Source Files 2