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

zora sdk 1155 #11

Open
khcd opened this issue Jun 21, 2024 · 1 comment
Open

zora sdk 1155 #11

khcd opened this issue Jun 21, 2024 · 1 comment

Comments

@khcd
Copy link

khcd commented Jun 21, 2024

couple of questions:

  1. Do we need to use the zora specific 1155 for integrations? I assume the new contracts in use must be created from ZoraCreator1155FactoryImpl.sol
  2. When calling creatorClient.create1155(); Are there examples of contract.json and token.json ?

thanks

@oveddan
Copy link
Collaborator

oveddan commented Jun 27, 2024

We're about to release some new sdk functionality and docs that will help build the metadata.

Until this is out, contract metadata has the following json schema:

{
  "name": "{contract name}",
  "description": "{contract description}",
  "image": "{contract image}"
} 

Token metadata has the following json schema:

{
  "name": "{token name}",
  "description": "{token description}",
  "image": "{token image ipfs url}",
  "animation_url": "{token media ipfs url}",
  "content": {
    "mime": "{content mime type}",
    "uri": "{content ipfs uri}"
  },
  "attributes": {
    "trait_type": "{trait type}",
    "value": "{trait value}"
  }
}

Contract and token metadata should be pinned to IPFS using a preferred pinning service,
and the url when set on a contract or token should be in an ipfs url format, like: ipfs://{cid}

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