StorageLib

Git Source

State Variables

TOKEN_DATA_MAPPING_SLOT

uint256 constant TOKEN_DATA_MAPPING_SLOT = 2;

SIG_NONCES_MAPPING_SLOT

uint256 constant SIG_NONCES_MAPPING_SLOT = 10;

LAST_INITIALIZED_REVISION_SLOT

uint256 constant LAST_INITIALIZED_REVISION_SLOT = 11;

PROTOCOL_STATE_SLOT

uint256 constant PROTOCOL_STATE_SLOT = 12;

PROFILE_CREATOR_WHITELIST_MAPPING_SLOT

uint256 constant PROFILE_CREATOR_WHITELIST_MAPPING_SLOT = 13;

PROFILE_ID_BY_HANDLE_HASH_MAPPING_SLOT

uint256 constant PROFILE_ID_BY_HANDLE_HASH_MAPPING_SLOT = 18;

PROFILES_MAPPING_SLOT

uint256 constant PROFILES_MAPPING_SLOT = 19;

PUBLICATIONS_MAPPING_SLOT

uint256 constant PUBLICATIONS_MAPPING_SLOT = 20;

PROFILE_COUNTER_SLOT

uint256 constant PROFILE_COUNTER_SLOT = 22;

GOVERNANCE_SLOT

uint256 constant GOVERNANCE_SLOT = 23;

EMERGENCY_ADMIN_SLOT

uint256 constant EMERGENCY_ADMIN_SLOT = 24;

TOKEN_GUARDIAN_DISABLING_TIMESTAMP_MAPPING_SLOT

Introduced in Lens V1.3: ///

uint256 constant TOKEN_GUARDIAN_DISABLING_TIMESTAMP_MAPPING_SLOT = 25;

DELEGATED_EXECUTOR_CONFIG_MAPPING_SLOT

Introduced in Lens V2: ///

uint256 constant DELEGATED_EXECUTOR_CONFIG_MAPPING_SLOT = 26;

BLOCKED_STATUS_MAPPING_SLOT

uint256 constant BLOCKED_STATUS_MAPPING_SLOT = 27;

PROFILE_ROYALTIES_BPS_SLOT

uint256 constant PROFILE_ROYALTIES_BPS_SLOT = 28;

MIGRATION_ADMINS_WHITELISTED_MAPPING_SLOT

uint256 constant MIGRATION_ADMINS_WHITELISTED_MAPPING_SLOT = 29;

TREASURY_DATA_SLOT

uint256 constant TREASURY_DATA_SLOT = 30;

Functions

getPublication

function getPublication(uint256 profileId, uint256 pubId)
    internal
    pure
    returns (Types.Publication storage _publication);

getPublicationMemory

function getPublicationMemory(uint256 profileId, uint256 pubId)
    internal
    pure
    returns (Types.PublicationMemory memory);

getProfile

function getProfile(uint256 profileId) internal pure returns (Types.Profile storage _profiles);

getDelegatedExecutorsConfig

function getDelegatedExecutorsConfig(uint256 delegatorProfileId)
    internal
    pure
    returns (Types.DelegatedExecutorsConfig storage _delegatedExecutorsConfig);

tokenGuardianDisablingTimestamp

function tokenGuardianDisablingTimestamp()
    internal
    pure
    returns (mapping(address => uint256) storage _tokenGuardianDisablingTimestamp);

getTokenData

function getTokenData(uint256 tokenId) internal pure returns (Types.TokenData storage _tokenData);

blockedStatus

function blockedStatus(uint256 blockerProfileId)
    internal
    pure
    returns (mapping(uint256 => bool) storage _blockedStatus);

nonces

function nonces() internal pure returns (mapping(address => uint256) storage _nonces);

profileIdByHandleHash

function profileIdByHandleHash() internal pure returns (mapping(bytes32 => uint256) storage _profileIdByHandleHash);

profileCreatorWhitelisted

function profileCreatorWhitelisted()
    internal
    pure
    returns (mapping(address => bool) storage _profileCreatorWhitelisted);

migrationAdminWhitelisted

function migrationAdminWhitelisted()
    internal
    pure
    returns (mapping(address => bool) storage _migrationAdminWhitelisted);

getGovernance

function getGovernance() internal view returns (address _governance);

setGovernance

function setGovernance(address newGovernance) internal;

getEmergencyAdmin

function getEmergencyAdmin() internal view returns (address _emergencyAdmin);

setEmergencyAdmin

function setEmergencyAdmin(address newEmergencyAdmin) internal;

getState

function getState() internal view returns (Types.ProtocolState _state);

setState

function setState(Types.ProtocolState newState) internal;

getLastInitializedRevision

function getLastInitializedRevision() internal view returns (uint256 _lastInitializedRevision);

setLastInitializedRevision

function setLastInitializedRevision(uint256 newLastInitializedRevision) internal;

getTreasuryData

function getTreasuryData() internal pure returns (Types.TreasuryData storage _treasuryData);