mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-03 14:06:25 +01:00
- Currently, it was possible to generate coin images from Coingecko only in single size (24x24) in two image qualities (1x, 2x).
- Now it's possible to easily add additionally sizes to the `COIN_IMAGE_SIZES` or qualities to `COIN_IMAGE_QUALITIES`.
- This required to change the generated image name. I made sure to update all existing occurances, mainly the `getAssetLogoUrl` util to stay backwards compatible.
Coin image name:
```
type OldCoinImageName = `${string}--{'' | '2x'}.webp`
type NewCoinImageName = `${string}--${24 | 40}{'' | '2x'}.webp`
```
16 lines
360 B
JSON
16 lines
360 B
JSON
{
|
|
"name": "@trezor/asset-utils",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"license": "See LICENSE.md in repo root",
|
|
"sideEffects": false,
|
|
"main": "src/index",
|
|
"dependencies": {
|
|
"@suite-common/icons": "workspace:*"
|
|
},
|
|
"scripts": {
|
|
"depcheck": "yarn g:depcheck",
|
|
"type-check": "yarn g:tsc --build"
|
|
}
|
|
}
|