GroupPosts
Posts made into Groups / Spaces
The GroupPosts contract is a smart contract that allows managing group posts. It provides functionalities for adding, removing, and retrieving messages that are posted in a group.
Table of Contents
Events
logAddPost
This event is emitted whenever a post is added to a group.
logRemovePost
This event is emitted whenever a post is removed from a group.
Public Functions
getMsgIDsByGroupID
This function can be used to retrieve a list of messages posted in a specific group / space. It provides a mechanism for browsing group messages by starting from a specific index, allowing for efficient navigation through large amounts of posts.
Inputs
NameTypeDescriptiongroupID
uint256
The ID of the group / space to get a list of posts for.
startFrom
uint256
The index from where to start getting records.
Outputs
NameTypeDescriptionuint256[]
An array
An array of message IDs.
Example
Last updated