ourzora / ocs-hackathon-24

Zora Onchain Summer Hackathon 24 Guide
7 stars 0 forks source link

Text Input Premint 1155 #10

Open hurley87 opened 2 weeks ago

hurley87 commented 2 weeks 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 1 week ago

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

hurley87 commented 1 week ago

Thanks @oveddan. Find anything?

oveddan commented 4 days 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 days ago

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

oveddan commented 4 days 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 3 days ago

@oveddan pumped to see this!

oveddan commented 1 day ago

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