Skip to content

Solidity API

ERC7649BaseStorage

Defines the storage layout for the core ERC7649 token functionality Uses the diamond storage pattern to avoid storage collisions in upgradeable contracts

Layout

solidity
struct Layout {
  struct ITradeableShares.SharesSubject sharesSubject;
  address sharesIssuer;
}

STORAGE_SLOT

solidity
bytes32 STORAGE_SLOT

Unique storage slot for ERC7649 base storage Generated using the contract's full path to ensure uniqueness Used in diamond storage pattern to prevent storage collision with other facets

layout

solidity
function layout() internal pure returns (struct ERC7649BaseStorage.Layout l)

Provides access to the storage layout

Return Values

NameTypeDescription
lstruct ERC7649BaseStorage.LayoutStorage layout struct with proper positioning Uses assembly to position the storage struct at the predetermined slot