Freezing
Freezing is the process of locking data and/or relations so that a Patchwork721 can be sold or transferred with data guaranteed intact. Patchwork enables inherited ownership models between assignees and fragments. Without freezing, a malicious actor could sell an assignee and frontrun the transaction with an unassign call, stripping away some value off of the NFT to be sold. Related functions fromIPatchwork721
- The owner will call
setFrozen(myTokenId, true)
to freeze the NFT. - The third party (marketplace) will call
getFreezeNonce(myTokenId)
to get the current freeze nonce. - The third party (marketplace) will call
safeTransferFromWithFreezeNonce()
providing the known freeze nonce to transfer.
Frozen
or Thawed
event are emitted when frozen state changes
Locking
Locking prevents an NFT from being assigned or transferred.Locked
or Unlocked
event are emitted when locked state changes