πŸ‘₯Groups

Groups (or Spaces) are subsets of posts by members and non-members of the group. Groups are NFT's that are owned by users.

Table of Contents


Events

logLeaveGroup

This event is emitted when a member leaves a group.

logJoinGroup

This event is emitted when a new member joins a group.

logUpdateGroupNameFormat

This event is emitted when the group name's format is updated.


Public Functions

getOwnerOfGroupByID

Retrieves the owner address of the specified group.

Inputs

Name
Type
Description

groupID

uint256

Unique ID of the group

Returns

Name
Type
Description

address

Address of the owner of group


getMembersOfGroupByID

Retrieves the member addresses of the specified group.

Inputs

Name
Type
Description

groupID

uint256

Unique ID of the group

Returns

Name
Type
Description

address[]

Addresses of the members of the group


isMemberOfGroupByID

Checks if a user or group is a member of the specified group.

Inputs

Name
Type
Description

groupID

uint256

Unique ID of the group

member

address

Address of the member

Returns

Name
Type
Description

bool

True if they are a member, false otherwise


getGroupID

Gets the Group ID of a group from the group name.

Inputs

Name
Type
Description

groupName

string

Name of the group

Returns

Name
Type
Description

uint256

Unique ID of the group


getGroupAddressFromID

Gets the Group address of a group from the group ID.

Inputs

Name
Type
Description

groupID

uint256

Unique ID of the group

Returns

Name
Type
Description

address

Address of the group


getGroupIDFromAddress

Gets the Group ID of a group from the group address.

Inputs

Name
Type
Description

groupAddress

address

Address of the group

Returns

Name
Type
Description

uint256

Unique ID of the group


getOwnerOfGroupByAddress

Gets the owner address of a group from the group address.

Inputs

Name
Type
Description

groupAddress

address

Address of the group

Returns

Name
Type
Description

address

Address of the group owner

Last updated