Skip to content

Non-Fungible Token with time-dependent feature #2

@yz89

Description

@yz89

time-dependent feature

  1. In addition to tokenid, we need to add a lifetime field to indicate the lifetime of the token.

  2. The field lifetime use the BlockNumber type to indicate maximum height it can survive.

  3. Use the on_finalize method to listen for block number updates and then automatically destroy expired tokens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions