Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# Token Lists

Automativally generate Token Lists
Automatically generate Token Lists

## How to add an image to the CoW Swap default token list

In order to add a new token to the CoW Swap default token list follow these steps

- Find an icon with reasonable quality/size (256px, <100kB).
- Add the icon to `src/public/images/<chainId>/<address>.png` [^1]
- Upload the image to Pinata (login in 1Password)
- Create a new entry in `src/public/CowSwap.json` containing token address, symbol, etc. (**use IPFS link for icon!**)
- Make sure you bump the version using [SemVersions](https://github.com/Uniswap/token-lists#semantic-versioning)
- Create a PR with these changes

[^1]: To resize/convert your image [ImageMagick](https://formulae.brew.sh/formula/imagemagick) installed you can simply run `convert ~/Downloads/img.png -resize 256 src/public/images/<chainId>/<address>.png`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this optimize like https://tinypng.com do?
cc/ @fairlighteth


## Setup

```bash
# Install dependencies
Expand Down