Staking Protocolerc721Facet

ERC721FacetStorage

ERC721FacetStorage

This library provides a storage layout for ERC721 state variables used in a diamond architecture.

Defines and manages the state variables necessary for the operation of NFT staking position tokens, including mappings for ownership, balances, token approvals, and operator approvals.

STORAGE_SLOT

bytes32 STORAGE_SLOT

Unique identifier for the storage slot where the Layout struct is stored.

Layout

Struct for managing staking position token information.

struct Layout {
  bool isInitialized;
  bool isTransferable;
  string _name;
  string _symbol;
  string _baseURI;
  mapping(uint256 => address) _owners;
  mapping(address => uint256) _balances;
  mapping(uint256 => address) _tokenApprovals;
  mapping(address => mapping(address => bool)) _operatorApprovals;
}

layout

function layout() internal pure returns (struct ERC721FacetStorage.Layout l)

Retrieves a reference to the Layout struct stored at the slot specified by STORAGE_SLOT unique identifier.

On this page