Actions
Comment
The comment
function has these effects:
Asserts authentication
Asserts the payment matches the configuration
Borrow the Posts from the Post
Creates a Post
Adds Post to Posts
Collect any fees
Emits the "CommentCreated" event:
public struct CommentCreated has copy, drop { id: address, app: String, created_at: u64, created_by: address, data: String, description: String, parent_post_id: address, title: String }
Returns (post address, sender address, timestamp)
Create
The create
function has these effects:
Asserts authentication
Creates a Post
Adds Post to Posts
Returns (post address, sender address, timestamp)
Like
The create
function has these effects:
Asserts authentication
Asserts the payment matches the configuration
Borrow the Likes from the Post
Add Like to the Likes
Distribute the payments via the Royalties config
Emits the "PostLiked" event:
public struct PostLiked has copy, drop { id: address, updated_at: u64, user: address }
Last updated