Enables creating posts, comments, and likes with royalty and fee enforcement.
use std::string; use std::clock; use std::coin; use std::event; use std::sui; use sage_admin::admin_access; use sage_admin::apps; use sage_admin::fees; use sage_post::post; use sage_post::post_fees; use sage_shared::likes; use sage_shared::posts;
Explore this module further in the Mover Registry: @sage/post
CommentCreated
Comment on a Post.
Post
public struct CommentCreated has copy, drop
Show Fields
app_id: address, created_at: u64, created_by: address, data: std::string::String, description: std::string::String, parent_post_id: address, post_id: address, title: std::string::String
PostLiked
Like on a Post.
public struct PostLiked has copy, drop
post_id: address, updated_at: u64, user_id: address
Tried to comment from one App to a Post on another App.
App
const EAppMismatch: u64 = 370;