Token and chain images for front ends built with the Squid SDK
Token images are stored in the images/migration/webp
folder.
File names in this folder follow the format <chainId>_<tokenAddress.toLowerCase().replaceAll("/", "")>.webp
.
To update token images, run:
yarn update-tokens
This script will:
- fetch all tokens from Squid API
- Download and save every token image (unless it already exists in
images/migration/webp
) - Save new token colors to
scripts/update-tokens/colors.json
(previous conversion to png is needed because of a limitation in the canvas library and webp)
Mac:
yarn setup:macos
Linux:
yarn setup:linux
.
├── package.json
├── images
│ ├── master
│ │ ├── chains
│ │ │ └── ethereum.svg
│ │ ├── tokens
│ │ │ └── eth.svg
│ │ └── wallets
│ │ └── metamask.svg
│ ├── png
│ │ ├── chains
│ │ │ └── ethereum.png
│ │ ├── tokens
│ │ │ └── eth.png
│ │ └── wallets
│ │ └── metamask.png
├ └── webp
│ ├── chains
│ │ └── ethereum.webp
│ ├── tokens
│ │ └── eth.webp
│ └── wallets
│ └── metamask.webp
└── scripts
└── convert.sh