LensHubStorage

Git Source

Author: Lens Protocol

This is an abstract contract that ONLY contains storage for the LensHub contract. This MUST be inherited last to preserve the LensHub storage layout. Adding storage variables should be done ONLY at the bottom of this contract.

State Variables

_lastInitializedRevision

uint256 private _lastInitializedRevision;

_state

Types.ProtocolState internal _state;

_profileCreatorWhitelisted

mapping(address profileCreator => bool isWhitelisted) internal _profileCreatorWhitelisted;

__DEPRECATED__followModuleWhitelisted

mapping(address => bool isWhitelisted) internal __DEPRECATED__followModuleWhitelisted;

__DEPRECATED__collectModuleWhitelisted

mapping(address collectModule => bool isWhitelisted) internal __DEPRECATED__collectModuleWhitelisted;

__DEPRECATED__referenceModuleWhitelisted

mapping(address referenceModule => bool isWhitelisted) internal __DEPRECATED__referenceModuleWhitelisted;

__DEPRECATED__dispatcherByProfile

mapping(uint256 profileId => address dispatcher) internal __DEPRECATED__dispatcherByProfile;

__DEPRECATED__profileIdByHandleHash

mapping(bytes32 handleHash => uint256 profileId) internal __DEPRECATED__profileIdByHandleHash;

_profiles

mapping(uint256 profileId => Types.Profile profile) internal _profiles;

_publications

mapping(uint256 profileId => mapping(uint256 pubId => Types.Publication publication)) internal _publications;

__DEPRECATED__defaultProfiles

mapping(address userAddress => uint256 profileId) internal __DEPRECATED__defaultProfiles;

_profileCounter

uint256 internal _profileCounter;

_governance

address internal _governance;

_emergencyAdmin

address internal _emergencyAdmin;

_tokenGuardianDisablingTimestamp

mapping(address => uint256) internal _tokenGuardianDisablingTimestamp;

_delegatedExecutorsConfigs

mapping(uint256 profileId => Types.DelegatedExecutorsConfig config) internal _delegatedExecutorsConfigs;

_blockedStatus

mapping(uint256 blockerProfileId => mapping(uint256 blockedProfileId => bool isBlocked)) internal _blockedStatus;

_profileRoyaltiesBps

uint256 internal _profileRoyaltiesBps;

_migrationAdminWhitelisted

mapping(address migrationAdmin => bool allowed) internal _migrationAdminWhitelisted;

_treasuryData

Types.TreasuryData internal _treasuryData;