Adding sync external assets feature.

This commit is contained in:
softsimon
2021-12-21 02:00:50 +04:00
parent 4a56fb817e
commit 401ba3e9e7
6 changed files with 51 additions and 7 deletions

View File

@@ -6,10 +6,10 @@ class Icons {
private static FILE_NAME = './icons.json';
private iconIds: string[] = [];
private icons: { [assetId: string]: string; } = {};
constructor() {
if (config.MEMPOOL.NETWORK !== 'liquid') {
return;
}
constructor() {}
public loadIcons() {
if (!fs.existsSync(Icons.FILE_NAME)) {
logger.warn(`${Icons.FILE_NAME} does not exist. No Liquid icons loaded.`);
return;