Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Supports administrative creation and configuration of apps, royalties management, reward toggling, and logs relevant events.
use std::string; use sui::event; use sage_admin::admin; use sage_admin::admin_access; use sage_admin::apps; use sage_admin::fees; use sage_utils::string_helpers;
AppCreated
App
public struct AppCreated has copy, drop
Show Fields
app_id: address, name: std::string::String
create_app
sage_admin::access:ETypeMismatch
owned_user
public fun create_app<ChannelType: key>(channel_config: &ChannelConfig, channel: &ChannelType)
Show Implementation
public fun create_app<OwnedUserType: key> ( app_registry: &mut AppRegistry, app_name: String, owned_user: &OwnedUserType, owned_user_config: &UserOwnedConfig, ctx: &mut TxContext ): address { admin_access::assert_owned_user<OwnedUserType>( owned_user_config, owned_user ); create_app_internal( app_registry, app_name, ctx ) }