Delayed Reveal Batch Metadata ERC-721

Description

The DelayedRevealBatchMetadataERC721 contract is an module that provides functionality for delayed reveal of metadata for ERC-721 tokens. It enables the uploading of metadata for ranges of token IDs with optional encryption, allowing tokens to be revealed at a later time with a decryption key. This is useful for scenarios where the token metadata needs to be kept secret until a specified time.

Callback Functions

FunctionDescription
onTokenURICallback function for ERC721Metadata.tokenURI. Returns the metadata URI for a given tokenId. If the metadata is encrypted, it returns a placeholder URI.

Fallback Functions

FunctionDescription
getAllMetadataBatchesReturns all metadata batches for a token. Each batch contains a range of token IDs, their associated base URI, and any encrypted data.
uploadMetadataUploads metadata for a range of token IDs. Emits a NewMetadataBatch event and a BatchMetadataUpdate event. Optionally includes encrypted data and a provenance hash.
revealReveals the URI for a range of 'delayed-reveal' tokens using a provided decryption key. Emits a TokenURIRevealed event and a BatchMetadataUpdate event.

Required Interfaces

InterfaceID
ERC-7210x80ac58cd

Supported Interfaces

InterfaceID
ERC-49060x49064906