Appearance
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_ROLERoleData
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_SLOTUnique 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
| Name | Type | Description |
|---|---|---|
| l | struct PropsAccessControlStorage.Layout | The storage reference to the Layout struct |