HiveAppAccessCapability

Empowering DApp Integration

The HiveAppAccessCapability object is a key component within the DegenHive protocol that empowers developers to seamlessly integrate decentralized applications (dApps) with the platform's social graph and economic model.

Key Functionality and Fields

The HiveAppAccessCapability struct provides granular control over how a dApp interacts with user data and assets:

    public struct HiveAppAccessCapability has key, store {
        id: UID,
        app_name: AsciiString,
        only_owner_can_add_app: bool,
        only_owner_can_access_app: bool,
        only_owner_can_remove_app: bool,
    }

  • id: UID: A unique identifier for the capability object, ensuring proper tracking and management.

  • app_name: AsciiString: The name of the dApp associated with this capability.

  • only_owner_can_add_app: bool: Dictates whether user consent is required to install the dApp's session store within their HiveProfile.

  • only_owner_can_access_app: bool: Controls whether user permission is needed for the dApp to update its session store within the user's HiveProfile.

  • only_owner_can_remove_app: bool: Determines if the user's permission is required to delete the dApp's session store from their HiveProfile.

Security and Governance:

The HiveAppAccessCapability object can only be minted by passing a proposal through DegenHive's governance system, ensuring community oversight and control over which dApps gain access to these capabilities.

Last updated