diff --git a/blockchains/ethereum/assets/0x1626e3d05De1428FD209BBfb911d78E0E06a73F2/logo.png b/blockchains/ethereum/assets/0x1626e3d05De1428FD209BBfb911d78E0E06a73F2/logo.png index c9d8a4f57..f10345ea1 100644 Binary files a/blockchains/ethereum/assets/0x1626e3d05De1428FD209BBfb911d78E0E06a73F2/logo.png and b/blockchains/ethereum/assets/0x1626e3d05De1428FD209BBfb911d78E0E06a73F2/logo.png differ diff --git a/blockchains/ethereum/assets/0x5ec41a158e09De1dBA6410AEbe72f504f2428052/logo.png b/blockchains/ethereum/assets/0x5ec41a158e09De1dBA6410AEbe72f504f2428052/logo.png index 56a98e82f..eefd7cd9d 100644 Binary files a/blockchains/ethereum/assets/0x5ec41a158e09De1dBA6410AEbe72f504f2428052/logo.png and b/blockchains/ethereum/assets/0x5ec41a158e09De1dBA6410AEbe72f504f2428052/logo.png differ diff --git a/blockchains/ethereum/assets/0x657f624dd8Eef219E020C456A991A68f3e205a3D/logo.png b/blockchains/ethereum/assets/0x657f624dd8Eef219E020C456A991A68f3e205a3D/logo.png index 9ecf09da2..546f310f5 100644 Binary files a/blockchains/ethereum/assets/0x657f624dd8Eef219E020C456A991A68f3e205a3D/logo.png and b/blockchains/ethereum/assets/0x657f624dd8Eef219E020C456A991A68f3e205a3D/logo.png differ diff --git a/blockchains/ethereum/assets/0x93453fbCf7fD8CcF9F3740af2fb9D14960a23b39/logo.png b/blockchains/ethereum/assets/0x93453fbCf7fD8CcF9F3740af2fb9D14960a23b39/logo.png index d04f64259..7f562c381 100644 Binary files a/blockchains/ethereum/assets/0x93453fbCf7fD8CcF9F3740af2fb9D14960a23b39/logo.png and b/blockchains/ethereum/assets/0x93453fbCf7fD8CcF9F3740af2fb9D14960a23b39/logo.png differ diff --git a/blockchains/ethereum/assets/0xf729dE55b9Ca9412F5DD12935AfF0201fdB1Ea8F/logo.png b/blockchains/ethereum/assets/0xf729dE55b9Ca9412F5DD12935AfF0201fdB1Ea8F/logo.png index cea192f23..0a2529611 100644 Binary files a/blockchains/ethereum/assets/0xf729dE55b9Ca9412F5DD12935AfF0201fdB1Ea8F/logo.png and b/blockchains/ethereum/assets/0xf729dE55b9Ca9412F5DD12935AfF0201fdB1Ea8F/logo.png differ diff --git a/blockchains/tezos/validators/list.json b/blockchains/tezos/validators/list.json index 745feb782..a1c92d21c 100644 --- a/blockchains/tezos/validators/list.json +++ b/blockchains/tezos/validators/list.json @@ -187,7 +187,7 @@ "description": "Bake'n'Rolls - one of the first Tezos bakery. Our mission is to deliver freshly baked pretzels on every cycle.", "website": "https://bakenrolls.com/", "payout": { - "commission": 9, + "commission": 5, "payoutDelay": 6, "payoutPeriod": 1 }, @@ -350,7 +350,7 @@ }, "status": { "disabled": true, - "note": "No more capacity: -13158" + "note": "No more capacity: -12883" } }, { diff --git a/script/remove_empthy_folder.ts b/script/remove_empthy_folder.ts new file mode 100644 index 000000000..f33af6a61 --- /dev/null +++ b/script/remove_empthy_folder.ts @@ -0,0 +1,26 @@ +import { + getChainAssetPath, + getChainAssetsPath, + isPathDir, + isPathDirEmpthy, + readDirSync, + removeDir, + getAllChainsList, +} from "../src/test/helpers" + +getAllChainsList().forEach(async chain => { + const chainAssetsPath = getChainAssetsPath(chain) + + if (isPathDir(chainAssetsPath)) { + readDirSync(chainAssetsPath).forEach(async (asset) => { + const assetPath = getChainAssetPath(chain, asset); + const isDir = await isPathDir(assetPath); + const isPathEmpthy = await isPathDirEmpthy(assetPath); + + if (isDir && isPathEmpthy) { + removeDir(assetPath) + console.log(`Removed empty folder at path ${assetPath}`); + } + }) + } +}) diff --git a/src/test/helpers.ts b/src/test/helpers.ts index 8ef21a789..22abd992f 100644 --- a/src/test/helpers.ts +++ b/src/test/helpers.ts @@ -61,6 +61,7 @@ export const maxLogoHeight = 512 export const maxAssetLogoSizeInKilobyte = 100 export const getChainAssetPath = (chain: string, address: string) => `${getChainAssetsPath(chain)}/${address}` +export const getAllChainsList = (): string[] => readDirSync(chainsFolderPath) export const getChainAssetLogoPath = (chain: string, address: string) => `${getChainAssetsPath(chain)}/${address}/${logo}` export const getChainAssetFilesList = (chain: string, address: string) => readDirSync(getChainAssetPath(chain, address)) export const getChainAssetsList = (chain: string): string[] => readDirSync(getChainAssetsPath(chain)) @@ -139,6 +140,23 @@ export const isPathDir = (path: string): boolean => { } } +export const isPathDirEmpthy = (path: string): boolean => { + try { + if (isPathDir(path)) { + return fs.readdirSync(path).length == 0 + } else { + false + } + } catch (error) { + console.log(`Error isPathDirEmpthy`, error) + process.exit(1) + } +} + +export const removeDir = (path: string) => { + fs.rmdirSync(path, {recursive: true}) +} + export const makeDirIfDoestExist = async (dirPath: string, dirName: string) => { const path = `${dirPath}/${dirName}` await fs.mkdir(path, {recursive: true}, (err) => {