Skip to content

Solidity API

PropsAccessControlStorage

Library for managing storage for the PropsAccessControl facet

This library uses a unique storage slot to avoid collisions in the diamond storage pattern

DEFAULT_ADMIN_ROLE

solidity
bytes32 DEFAULT_ADMIN_ROLE

RoleData

solidity
struct RoleData {
  struct EnumerableSet.AddressSet members;
  bytes32 adminRole;
}

Layout

Struct defining the storage layout for PropsAccessControl

This struct holds all the state variables for the PropsAccessControl facet

solidity
struct Layout {
  address factoryAddress;
  mapping(bytes32 => struct PropsAccessControlStorage.RoleData) roles;
}

STORAGE_SLOT

solidity
bytes32 STORAGE_SLOT

Unique storage slot for PropsAccessControl

This constant is used to ensure that the storage location is unique across all facets

layout

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

Function to access the storage layout

This function uses assembly to return the storage reference of the Layout struct

Return Values

NameTypeDescription
lstruct PropsAccessControlStorage.LayoutThe storage reference to the Layout struct