Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-Fungible Token with time-dependent feature #2

Open
yz89 opened this issue Aug 3, 2019 · 0 comments
Open

Non-Fungible Token with time-dependent feature #2

yz89 opened this issue Aug 3, 2019 · 0 comments

Comments

@yz89
Copy link
Owner

yz89 commented Aug 3, 2019

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.

yz89 added a commit that referenced this issue Aug 3, 2019
yz89 added a commit that referenced this issue Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant