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

How will images of smart contracts work? #55

Closed
aulneau opened this issue Apr 7, 2020 · 3 comments · Fixed by #72
Closed

How will images of smart contracts work? #55

aulneau opened this issue Apr 7, 2020 · 3 comments · Fixed by #72

Comments

@aulneau
Copy link
Contributor

aulneau commented Apr 7, 2020

This is an open question: How will the images for smart contracts function? where are they hosted, how does one associate an image with a smart contract? Do we want to enforce any boundaries/rules?

cc @zone117x

@aulneau aulneau added this to the 2020 Q2 Sprint 7 milestone Apr 7, 2020
@zone117x
Copy link
Member

zone117x commented Apr 8, 2020

I think there are two options:

  1. Define a Clarity contract metadata convention where something like an image URI and website could be defined. For example
(define-constant meta-logo <uri>)
(define-constant meta-website <domain name string>)
  1. Generate images based on the source code hash, like a gravatar

@stackatron
Copy link

@jasperjansz would like a solution for no images. We can always add this later but I don't want us to be forced to prioritize simply because we did not plan for it.

@jasperjansz
Copy link

Have them define a URL with max. 120px width and height. Common image extensions (jpg, png, etc.).

If they don't show generic contract icon: https://www.figma.com/file/31q1g27k69z1yXb6r6vrRD/Explorer?node-id=260%3A1732

@kyranjamie kyranjamie linked a pull request Apr 17, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

4 participants