Skip to content

Commit

Permalink
Merge pull request #53 from brave/network-logos
Browse files Browse the repository at this point in the history
Add preloaded network logos
  • Loading branch information
onyb committed Mar 17, 2023
2 parents 5d2693b + 0324ffa commit d845a9f
Show file tree
Hide file tree
Showing 8 changed files with 280 additions and 271 deletions.
Binary file added data/evm-contract-map/images/bnb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/evm-contract-map/images/celo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/evm-contract-map/images/fil.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/evm-contract-map/images/ftm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/evm-contract-map/images/sol.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "token-lists",
"version": "1.2.21",
"version": "1.3.0",
"description": "Manages custom token lists for Brave Wallet",
"dependencies": {
"@metamask/contract-metadata": "git+https://git@github.com/MetaMask/contract-metadata.git",
Expand All @@ -13,15 +13,15 @@
},
"devDependencies": {
"imagemin": "^8.0.1",
"imagemin-pngquant": "github:onyb/imagemin-pngquant#fd51901"
"imagemin-pngquant": "github:brave/imagemin-pngquant#fd51901"
},
"resolutions": {
"semver-regex": ">=4.0.5",
"uuid": ">=8.3.2",
"got": ">=11.8.5",
"bin-build": "github:onyb/bin-build#da4209b",
"bin-wrapper": "github:onyb/bin-wrapper#4bc5c9e",
"download": "github:onyb/download#c9c2589"
"bin-build": "github:brave/bin-build#da4209b",
"bin-wrapper": "github:brave/bin-wrapper#4bc5c9e",
"download": "github:brave/download#c9c2589"
},
"main": "index.js",
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions scripts/index.js
Expand Up @@ -80,6 +80,15 @@ async function stageEVMTokenImages(stagingDir, inputTokenFilePath, addExtraToken
var fileTo = file.substr(0, file.lastIndexOf(".")) + ".png"
var fromPath = path.join(imagesSrcPath, file)
var toPath = path.join(imagesDstPath, fileTo)

if (fs.existsSync(toPath)) {
try {
fs.unlinkSync(toPath)
} catch (e) {
console.log(`Failed to remove: ${toPath}`)
}
}

try {
await util.saveToPNGResize(fromPath, toPath, false)
} catch (e) {
Expand Down
532 changes: 266 additions & 266 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit d845a9f

Please sign in to comment.