leather-io / extension

Leather browser extension
https://leather.io
MIT License
289 stars 137 forks source link

Support SRC-20 art #5311

Open brandonmarshall-tm opened 2 months ago

brandonmarshall-tm commented 2 months ago

At our request, the SRC20 API was recently updated to add a deploy_img endpoint, which corresponds with the SRC-20's art.

The accompanying SRC20 image is an important part of the Stamp culture, and part of what makes trading them interesting. If one is available, it would be great to show them in place of the default SRC-20 icon.

Some examples: image image

SRC-20 marketplaces usually display the art with the corresponding JSON overlayed on top like this: Screenshot 2024-04-24 at 10 30 24 AM

markmhendrickson commented 2 months ago

Mind commenting with a few sample asset URLs for reference?

I'm wondering how we ought to format these assets if we use them as token icons, since the artwork is usually in the bottom-right quadrant and will get cut off if we simply apply a round silhouette?

brandonmarshall-tm commented 2 months ago

Agreed, we'd need to format as a square since so much of the art is around the outside of the image to make room for the JSON text in the middle. Pretty much every SRC20 token has its own art: https://openstamp.io/market/src20