Storage - bcnmy/nexus GitHub Wiki

Table of Contents


Storage

Git Source

Inherits: IStorage


Manages isolated storage spaces for Modular Smart Account in compliance with ERC-7201 standard to ensure collision-resistant storage.

Implements the ERC-7201 namespaced storage pattern to maintain secure and isolated storage sections for different states within Nexus suite.

State Variables

_STORAGE_LOCATION

bytes32 private constant _STORAGE_LOCATION = 0x00000000000000000000000000000006e7cbd8cb82505941fba30d1eb5b82f00;

Functions

_getAccountStorage

Utilizes ERC-7201's namespaced storage pattern for isolated storage access. This method computes the storage slot based on a predetermined location, ensuring collision-resistant storage for contract states.

function _getAccountStorage() internal pure returns (AccountStorage storage $);

Returns

Name Type Description
$ AccountStorage The proxy to the AccountStorage struct, providing a reference to the namespaced storage slot.

Important

_getAccountStorage: Utilizes ERC-7201's namespaced storage pattern for isolated storage access, ensuring collision-resistant storage for contract states.

⚠️ **GitHub.com Fallback** ⚠️