attestation
attestation copied to clipboard
Generate Liscon NFT tokens metadata
Minting Contract code - https://github.com/TokenScript/attestation/blob/b545e1a640e3623206b24bdd76f9ba4f95879296/ethereum/attestation-test/contracts/AttestationMintable.sol Contract address - 0xd2336c95896f8165D9e46Db4671d83ceA90C87F3 Network - Rinkeby tokenURI() according to the rules: https://github.com/AlphaWallet/AlchemyNFT/blob/main/docs/PERMALINKS.md (in the contract code its different, but updated after contract deployed) @JamesSmartCell , can you, please, update tokenURI() in the contract?
@foxgem , can you help with listen for that contract events and generate NFT metadata? After testing we will deploy same contract to the multiple networks and have to listen for them too.
@tomek, can you create image template and metadata content for the Liscon NFT ? content example: { "name":"...." "description":"....", "image":"image_will_be_pregenerated_from_template_by_ticketID", "attributes":[] }
@AW-STJ , can you check if Tomek tagged correctly? (github doesnt autofill Tomek, maybe he is not asigned to that repo)
@oleggrib it's @colourfreak
@oleggrib it's @colourfreak
Thank you, but @colourfreak is not in this repo contributors list.
@foxgem , can you help with listen for that contract events and generate NFT metadata? After testing we will deploy same contract to the multiple networks and have to listen for them too.
please confirm my understanding about business is right:
- the trigger is:
mintUsingAttestation
, if the passed attestation is valid, a ticket is minted. - then
transfer
event will be emitted.
what we need to do: listening for the transfer
event and then generating the metadata / image in the event handler.
what we need:
- metadata template for each token minted.
- image template
- if a contract metadata is required, the template for it also have to be given.
btw, what repo will we use? I personally think this requirement is a project specific, shouldn't we open this issue in a project github repo?
@foxgem , yes, correct. trigger is mintUsingAttestation, if attestation valid then token minted and event Transfer( 0, address) created.
btw, what repo will we use? I personally think this requirement is a project specific, shouldn't we open this issue in a project github repo?
@colourful-land , can you decide ?
Liscon test contract is updated on Rinkeby here: 0x74D2769a4092A021C7A47b7d3e4E2ACa75C4c7de
This contract has the updated Token URI
@foxgem
- metadata template for each token minted.
Can you share the templates that you might have used for AutographNFT, including the metadata template for REMIX Token as well as contract metadata template (or links would be helpful)
- image template
Would this design be enough to create the Liscon NFT ticket image generator: https://app.zeplin.io/project/5fe1c9ddd9d426343ebdf912/screen/61a888cc9cc73c9f543695c4
- if a contract metadata is required, the template for it also have to be given.
I will do it. Please share the templates if you have it.
btw, what repo will we use? I personally think this requirement is a project specific, shouldn't we open this issue in a project github repo?
That is correct. Which repo did we use for Liscon? Ideally we should have this ticket under that repo rather than in attestation repo.
@AW-STJ
example metadata links:
- remix token metadata: https://alchemynft.io/137/0x222222222291749de47895c0c0a9b17e4fca8268/67.json
- remix v1 contract metadata: https://alchemynft.io/contracts/amx.json
That is correct. Which repo did we use for Liscon? Ideally we should have this ticket under that repo rather than in attestation repo.
@oleggrib can you help this?
https://github.com/TokenScript/LisCon we use this repo to auto-deploy LisCon files to the hosting
@tomek, can you create image template and metadata content for the Liscon NFT ? content example: { "name":"...." "description":"....", "image":"image_will_be_pregenerated_from_template_by_ticketID", "attributes":[] }
No idea what do you want me to do. I need more context, more explanation. What do I have to do with the above data? Image template? What do you mean by this? Example, simple sketch or drawing would be helpful.
@colourfreak , we need some creative template of Liscon NFT metadata in the next example format:
{
"name":"Proof of presence at Liscon Conference #222839947262873898129289"
"description":"The NFT is unique for each Liscon Conference Ticket, ensures participation in conference at Oct 20-21, 2021, Lisbon ...",
"image":"image_will_be_pregenerated_from_template_by_ticketID",
"attributes":[
conference: "...",
date: "..."
...
]}
maybe worth to add attributes, like in example.
Do you mean the same info in the different background? @oleggrib
what is the use of it? In which context? What is the size of it?
I still don't understand it.
what is the use of it? In which context? What is the size of it?
size is up to you. It will be Liscon Ticket metadata. It will be visible in OpenSea and other marketplaces. You can see similar data for any NFT in OpenSea,
this is example metadata from autographnft.io
{"name":"Colors","description":null,"image":"https://rinkeby.alchemynft.io/upload/0xf52da9e1fd0a032c4b13659a18fff5a03a211a62395d3cb2ecbe29bfd9a889f4-1629999188513.png","attributes":[],"external_url":"https://testnet.autographnft.io/0x0000853abe6fa93f276b62f6984b75ff2f9dc30e/204/make-offer/"}
but this one contains empty description and attributes
Not sure why it's me who is doing this. It does not look like UI work. I can try, but let me learn in which language this is written. XML?
basically we need nice-looking creative
- tokenName
- tokenDescription
- maybe some creative attributes list
dont care about format, we just need data. cc @AW-STJ , does @colourfreak have to do it?
@AW-STJ It's not my job. I don't have any experience in writing metadata. "Experience": null; It will take time till I will learn JSON. I could cook Hungarian national soup with no experience and it would be the same journey for me. Learn then build.
"Description": "LisCon is a celebration of our culture and values, a coming together of builders, thinkers and creators across the space" "Package": "Full" "ID": "244" "Type": "Physical"
Again, I am not a right person to do this task. I don't know much about Liscon, I don't know JSON. Sorry.
@AW-STJ It's not my job. I don't have any experience in writing metadata. "Experience": null; It will take time till I will learn JSON. I could cook Hungarian national soup with no experience and it would be the same journey for me. Learn then build.
Hey @colourfreak - I will take care of the metadata. However, thank you for taking the journey of learning and attempting to get the job done with what you have. Love the spirit.
Hey @oleggrib - this should work for now right?
"name":"LisCon 2021 Ticket #222839947262873898129289"
"description":"LisCon is a celebration of our culture and values, a coming together of builders, thinkers and creators across the space. This NFT is the token avatar of original ticket, minted by the ticket holder after the event",
"image":"image_will_be_pregenerated_from_template_by_ticketID",
"attributes":[
Year: "2021",
]}
The feedback for the current version of ticket minting.
- The user have to connect to Metamask again. Can we skip this step of connected to Wallet twice?
- There is no loading screen and then success message to show to the user that the minting process is underway. I had to refresh the screen to get the NFT minted screen below. Can we do the process like how AutographNFT behaves right now.
Will share more feedback a I test further.
@AW-STJ , I have added notifications pop-up and centered attestation.id iframe