Files
trezor-suite/packages/asset-utils/package.json
Jiří Čermák 28e951aaa7 refactor: extend coin image sizes
- 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`
```
2025-11-07 07:30:42 +01:00

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"
}
}