Overview
BaseModule is an abstract contract that acts as a foundational layer for modules within the system. It integrates shared logic such as initializer protection, reentrancy guard, IERC721Receiver compliance and low level storage access.
This module is intended to be inherited and extended by other functional modules.
Constructor
Public & External Functions
getStorageAt(bytes32 slot)
StorageSlot pattern.
Parameters:
slot— Thebytes32identifier of the storage slot.
- A
StorageSlot.Bytes32Slotstruct pointing to the slot.
onERC721Received(...)
IERC721Receiver.
Returns:
IERC721Receiver.onERC721Received.selector— confirms compliance.
receive()
Internal Functions
__BaseModule_init()
- Calls
__ReentrancyGuard_init()to initialize reentrancy protection.