DiamondStorage.sol
DiamondStorage
struct DiamondStorage {
mapping(bytes4 => bytes32) facets;
mapping(uint256 => bytes32) selectorSlots;
uint16 selectorCount;
mapping(bytes4 => bool) supportedInterfaces;
}
InitializationFunctionReverted
error InitializationFunctionReverted(address _initializationContractAddress, bytes _calldata)
DiamondStorageLib
DIAMOND_STORAGE_POSITION
bytes32 DIAMOND_STORAGE_POSITION
diamondStorage
function diamondStorage() internal pure returns (struct DiamondStorage ds)
DiamondCut
event DiamondCut(struct IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata)
CLEAR_ADDRESS_MASK
bytes32 CLEAR_ADDRESS_MASK
CLEAR_SELECTOR_MASK
bytes32 CLEAR_SELECTOR_MASK
diamondCut
function diamondCut(struct IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata) internal
addReplaceRemoveFacetSelectors
function addReplaceRemoveFacetSelectors(uint256 _selectorCount, bytes32 _selectorSlot, address _newFacetAddress, enum IDiamondCut.FacetCutAction _action, bytes4[] _selectors) internal returns (uint256, bytes32)
initializeDiamondCut
function initializeDiamondCut(address _init, bytes _calldata) internal
enforceHasContractCode
function enforceHasContractCode(address _contract, string _errorMessage) internal view