👥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
groupID
uint256
Unique ID of the group
Returns
address
Address of the owner of group
getMembersOfGroupByID
Retrieves the member addresses of the specified group.
Inputs
groupID
uint256
Unique ID of the group
Returns
address[]
Addresses of the members of the group
isMemberOfGroupByID
Checks if a user or group is a member of the specified group.
Inputs
groupID
uint256
Unique ID of the group
member
address
Address of the member
Returns
bool
True if they are a member, false otherwise
getGroupID
Gets the Group ID of a group from the group name.
Inputs
groupName
string
Name of the group
Returns
uint256
Unique ID of the group
getGroupAddressFromID
Gets the Group address of a group from the group ID.
Inputs
groupID
uint256
Unique ID of the group
Returns
address
Address of the group
getGroupIDFromAddress
Gets the Group ID of a group from the group address.
Inputs
groupAddress
address
Address of the group
Returns
uint256
Unique ID of the group
getOwnerOfGroupByAddress
Gets the owner address of a group from the group address.
Inputs
groupAddress
address
Address of the group
Returns
address
Address of the group owner
Last updated