Timeline Permissions

Timeline permissions control when timeline-based fields can be updated, such as collection metadata and token metadata.

High-Level Logic

Basic Timeline Permissions

For each timeline update request:
    Check if timeline time matches any timelineTimes criteria
        β†’ If no match: ALLOW (neutral state)
        β†’ If match: Check if current time is in permanentlyPermittedTimes
            β†’ If yes: ALLOW
            β†’ If no: Check if current time is in permanentlyForbiddenTimes
                β†’ If yes: DENY
                β†’ If no: ALLOW (neutral state)

Token-Specific Timeline Permissions

For each token timeline update request:
    Check if timeline time AND token ID match criteria
        β†’ If no match: ALLOW (neutral state)
        β†’ If match: Check if current time is in permanentlyPermittedTimes
            β†’ If yes: ALLOW
            β†’ If no: Check if current time is in permanentlyForbiddenTimes
                β†’ If yes: DENY
                β†’ If no: ALLOW (neutral state)

English:

  • Basic: "For these permission execution times, the (timelineTime -> timelineValue) pairs can be updated"

  • Token-Specific: "For these permission execution times, the (tokenId, timelineTime -> timelineValue) pairs can be updated"

Timeline vs Execution Times

  • Timeline Times: Which timeline values can be updated?

  • Execution Times: When the permission can be executed?

These may not align. For example, you might forbid updating timeline values for Jan 2024 during 2023.

Overview

Types

Basic Timeline Permissions

Control collection-level timeline updates:

Available Actions:

  • canArchiveCollection

  • canUpdateStandards

  • canUpdateCustomData

  • canUpdateManager

  • canUpdateCollectionMetadata

Token-Specific Timeline Permissions

Control token metadata timeline updates:

Available Actions:

  • canUpdateTokenMetadata

Examples

Lock Collection Metadata Forever

Lock Specific Timeline Period

Lock Token Metadata for Existing Tokens

Allow Updates Only During Specific Period

Last updated