Validates and manages fees related to user actions.
use std::string;
use std::type_name;
use sui::coin;
use sui::event;
use sui::sui;
use sage_admin::admin;
use sage_admin::apps;
UserFees
User
actions.
public struct UserFees has key
Show Fields
id: sui::object::UID,
app: address,
custom_coin_type: std::type_name::TypeName,
create_invite_fee_custom: u64,
create_invite_fee_sui: u64,
create_user_fee_custom: u64,
create_user_fee_sui: u64,
follow_user_fee_custom: u64,
follow_user_fee_sui: u64,
friend_user_fee_custom: u64,
friend_user_fee_sui: u64,
post_to_user_fee_custom: u64,
post_to_user_fee_sui: u64,
unfollow_user_fee_custom: u64,
unfollow_user_fee_sui: u64,
unfriend_user_fee_custom: u64,
unfriend_user_fee_sui: u64,
update_user_fee_custom: u64,
update_user_fee_sui: u64
UserFeesCreated
UserFees
is created.
public struct UserFeesCreated has copy, drop
Show Fields
app_id: address,
user_fees_id: address,
custom_coin_type: std::type_name::TypeName,
create_invite_fee_custom: u64,
create_invite_fee_sui: u64,
create_user_fee_custom: u64,
create_user_fee_sui: u64,
follow_user_fee_custom: u64,
follow_user_fee_sui: u64,
friend_user_fee_custom: u64,
friend_user_fee_sui: u64,
post_to_user_fee_custom: u64,
post_to_user_fee_sui: u64,
unfollow_user_fee_custom: u64,
unfollow_user_fee_sui: u64,
unfriend_user_fee_custom: u64,
unfriend_user_fee_sui: u64,
update_user_fee_custom: u64,
update_user_fee_sui: u64
UserFeesUpdated
UserFees
is updated.
public struct UserFeesUpdated has copy, drop
Show Fields
user_fees_id: address,
custom_coin_type: std::type_name::TypeName,
create_invite_fee_custom: u64,
create_invite_fee_sui: u64,
create_user_fee_custom: u64,
create_user_fee_sui: u64,
follow_user_fee_custom: u64,
follow_user_fee_sui: u64,
friend_user_fee_custom: u64,
friend_user_fee_sui: u64,
post_to_user_fee_custom: u64,
post_to_user_fee_sui: u64,
unfollow_user_fee_custom: u64,
unfollow_user_fee_sui: u64,
unfriend_user_fee_custom: u64,
unfriend_user_fee_sui: u64,
update_user_fee_custom: u64,
update_user_fee_sui: u64
custom_coin
.
const EIncorrectCoinType: u64 = 370;
custom_coin
.
const EIncorrectCustomPayment: u64 = 371;
sui_coin
.
const EIncorrectSuiPayment: u64 = 372;