Appearance
Solidity API
PropsBaseStorage
This library defines the storage structure for the PropsBase functionality
Layout
Struct to hold the storage layout for PropsBase
solidity
struct Layout {
mapping(string => struct IPropsBaseFacet.Hook[]) hooks;
mapping(address => bool) approvedDiamonds;
}STORAGE_SLOT
solidity
bytes32 STORAGE_SLOTThis constant is used to ensure that the storage layout is placed in a deterministic location in contract storage
Unique storage slot for PropsERC20HoldToEarn
layout
solidity
function layout() internal pure returns (struct PropsBaseStorage.Layout l)This function uses assembly to access the specific storage slot
Function to access the storage layout
Return Values
| Name | Type | Description |
|---|---|---|
| l | struct PropsBaseStorage.Layout | The storage layout struct |