use std::string;
use std::type_name;
use sui::coin;
use sui::event;
use sui::sui;
use sage_admin::admin;
use sage_admin::apps;
Explore this module further in the Mover Registry: @sage/post
Structs
PostFees
Holds the fee amounts for Post
actions.
public struct PostFees has key
id: sui::object::UID,
app: address,
custom_coin_type: std::type_name::TypeName,
like_post_fee_custom: u64,
like_post_fee_sui: u64,
post_from_post_fee_custom: u64,
post_from_post_fee_sui: u64
Events
PostFeesCreated
Emitted when a new PostFees
is created.
public struct PostFeesCreated has copy, drop
app_id: address,
post_fees_id: address,
custom_coin_type: std::type_name::TypeName,
like_post_fee_custom: u64,
like_post_fee_sui: u64,
post_from_post_fee_custom: u64,
post_from_post_fee_sui: u64
PostFeesUpdated
Emitted when a PostFees
is updated.
public struct PostFeesUpdated has copy, drop
post_fees_id: address,
custom_coin_type: std::type_name::TypeName,
like_post_fee_custom: u64,
like_post_fee_sui: u64,
post_from_post_fee_custom: u64,
post_from_post_fee_sui: u64
Constants
Incorrect coin type passed in for the custom_coin
.
const EIncorrectCoinType: u64 = 370;
Incorrect amount of custom_coin
.
const EIncorrectCustomPayment: u64 = 371;
Incorrect amount of sui_coin
.
const EIncorrectSuiPayment: u64 = 372;