Storage
Rooch introduces the StorageAbstraction feature, which allows developers to define the state storage structure of their application more flexibly within smart contracts, rather than being limited to standardized solutions provided by the platform. This makes it more suitable for building Fully on-chain applications.
Key features of Rooch's storage abstraction are as follows:
- It provides both global
Object
storage and user storage space (AccountStorage), allowing developers to partition storage based on their specific business requirements. - Developers can define access and extension restriction for storage structures using private generics, as explained in the Private Generics guide.
- It provides a foundation for future application-specific storage spaces and application-specific runtime containers.
For more detailed design documentation, please refer to the Storage Abstraction guide.