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

NFT metadata templating #33

Closed
victorges opened this issue May 16, 2022 · 0 comments
Closed

NFT metadata templating #33

victorges opened this issue May 16, 2022 · 0 comments
Assignees

Comments

@victorges
Copy link
Member

victorges commented May 16, 2022

To allow creation of Lens publication as well as regular video NFTs. For that we need to implement some kind of NFT metadata templating in the task-runner.

  • This is to allow minting both regular NFTs for marketplaces but also the Lens publications which have additional fields (including some “dynamic” fields, using the CID of the file exported to IPFS).
  • We can implement this in a couple of ways, here are some ideas:
    • A full templating language on the requests, setting fields to something like {{ .output.ipfs.videoFileUrl }}, or
    • Just a set of pre-defined templates in the code (e.g. right now erc721 or lens_publication). We just specify on the request which template to use. This will give us less flexibility but should be much simpler to implement, so may be preferred.

https://www.notion.so/livepeer/Lens-Integration-e756c036e6c741de97d8e9ef1c351e84#6394c0df8bdc464f9285aecb458161f3

Defintions of done:
1. Can export to IPFS a metadata corresponding to a Lens publication, following all the spec described here
2. Can also export to IPFS a metadata corresponding to a regular Video NFT without any of the Lens-specific fields

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

2 participants