Search
K

Permissions Facet

PermissionsError

MaxSupplyExceeded

string MaxSupplyExceeded

NoPermission

string NoPermission

IncorrectMsgValue

string IncorrectMsgValue

PropertyLocked

string PropertyLocked

TransfersLocked

string TransfersLocked

PermissionsFacet

MeemMintPermissionsSet

event MeemMintPermissionsSet(struct MeemPermission[] mintPermissions)
Emitted when mint permissions are set
Name
Type
Description
mintPermissions
struct MeemPermission[]
The new permissions

MeemMaxSupplySet

event MeemMaxSupplySet(uint256 maxSupply)
Emitted when max supply is set
Name
Type
Description
maxSupply
uint256
The new max supply

MeemMaxSupplyLocked

event MeemMaxSupplyLocked()
Emitted when max supply is locked

MINTER_ROLE

function MINTER_ROLE() public pure returns (bytes32)
The minter role grants permission to mint tokens without mintPermission checks
Name
Type
Description
[0]
bytes32
Hashed value that represents this role.

requireCanMint

function requireCanMint(struct RequireCanMintParams params) public payable
Overrides the MeemBaseERC721Facet function to check mint permissions

setMaxSupply

function setMaxSupply(uint256 newMaxSupply) public
Set the max token supply. Must be less than the current total supply.
Name
Type
Description
newMaxSupply
uint256
The new max supply

maxSupply

function maxSupply() public view returns (uint256)
Get the max token supply
Name
Type
Description
[0]
uint256
The max supply

setMintingPermissions

function setMintingPermissions(struct MeemPermission[] newPermissions) public
Set the mint permissions
Name
Type
Description
newPermissions
struct MeemPermission[]
The new mint permissions

validatePermissions

function validatePermissions(struct MeemPermission[] basePermissions, struct MeemPermission[] overridePermissions) public pure
Function that is called to validate permissions before they are set to ensure compatibility
Override this function to add custom validation
Name
Type
Description
basePermissions
struct MeemPermission[]
The current permissions
overridePermissions
struct MeemPermission[]
The new permissions

setIsTransferrable

function setIsTransferrable(bool isTransferrable) public

requireCanTransfer

function requireCanTransfer(address from, address to, uint256 tokenId) public
Overrides the MeemBaseERC721Facet function to check transfer permissions
Name
Type
Description
from
address
The address the token is being transferred from
to
address
The address the token is being transferred to
tokenId
uint256
The token being transferred

isBetweenTimestamps

function isBetweenTimestamps(uint256 start, uint256 end) internal view returns (bool)
Checks if the current block timestamp is between the start and end timestamps
Name
Type
Description
start
uint256
The start timestamp
end
uint256
The end timestamp
Name
Type
Description
[0]
bool
bool Whether the current block timestamp is between the start and end timestamps

requireAdmin

function requireAdmin() internal view
Convenience function to require the caller to be an admin