sharedmembers source realm
Package sharedmembers is the Remix Lab reference shared membership service: one membership set that several apps cons...
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.
1
11
func Invite
crossing ActionInvite lets addr join with role. Inviting a reviewer or owner also requires the set-role permission.
func Invites
ActionInvites pages through pending invitations ordered by address.
func Join
crossing ActionJoin accepts the caller's pending invitation.
func Leave
crossing ActionLeave removes the caller.
func Members
ActionMembers pages through members ordered by address.
func RemoveMember
crossing ActionRemoveMember removes addr.
func Render
Render lists the members.
func RevokeInvite
crossing ActionRevokeInvite cancels a pending invitation. Revoking an invitation for a reviewer or owner also requires the set-role permission.
func RoleOf
ActionRoleOf returns addr's role.
func SetRole
crossing ActionSetRole changes addr's role.
func Size
ActionSize returns the number of members.