use std::string;
use sui::dynamic_field;
use sui::dynamic_object_field;
use sage_admin::admin_access;
use sage_analytics::analytics;
use sage_analytics::analytics_actions;
use sage_shared::membership;
use sage_shared::posts;
use sage_user::user_witness;

Explore this module further in the Mover Registry: @sage/user

Structs

UserShared

Represents the User data specific to social interactions.

public struct UserShared has key

Functions

get_key

Returns the lowercase name for the SharedUser.

public fun get_key(shared_user: &UserShared): String

get_owner

Returns the wallet address associated with the SharedUser.

public fun get_owner(shared_user: &UserShared): address

get_owned_user

Returns the address for the OwnedUser associated with the SharedUser.

public fun get_owned_user(shared_user: &UserShared): address

has_analytics

Returns true or false based on whether the SharedUser has analytics for the specified App and reward epoch.

public fun has_analytics(shared_user: &mut UserShared, app_address: address, epoch: u64,): bool