ourzora / ocs-hackathon-24

Zora Onchain Summer Hackathon 24 Guide
10 stars 1 forks source link

Text Input Premint 1155 #10

Open hurley87 opened 5 months ago

hurley87 commented 5 months ago

I'd like a user to create Premint 1155 token/contract that only takes in text. Zora handles this nicely at zora.co,

Screenshot 2024-06-14 at 8 49 32 PM

Are there any "text input" examples I can look at? Is the text saved as an SVG when created on Zora?

Thank you!

oveddan commented 5 months ago

Hey @hurley87 - let me get back to you on this

hurley87 commented 4 months ago

Thanks @oveddan. Find anything?

oveddan commented 4 months ago

hey @hurley87 it is just raw a raw text file stored on ipfs. See this one for an example: https://zora.co/collect/zora:0x0f2d3eb199e84afb321b424dd533868096d6104e/6 And corresponding ipfs url: https://ipfs.io/ipfs/bafkreif2saubagvzcnu6ypzpcvpiwmt26ugpd4m3xaesm7kj2l5lz6deeu

oveddan commented 4 months ago

so you would need to upload the raw text file (as a .txt) to an ipfs service

oveddan commented 4 months ago

Hey @hurley87 I've actually found more info...and will include some code to generate the json metadata in the sdk. should be out shortly

hurley87 commented 4 months ago

@oveddan pumped to see this!

oveddan commented 4 months ago

ok finally its out! check out the guide here: https://docs.zora.co/protocol-sdk/metadata/token-metadata#building-metadata-for-text-nfts

hurley87 commented 4 months ago

@oveddan this was really helpful. I ended up using it in my project. Many thanks!