import hash from "imurmurhash"; import { getCryptoAssetsStore } from "../cryptoAssetsStore"; export async function getSyncHash( currencyId: string, blacklistedTokenIds: string[] | undefined = [], ): Promise { const tokensHash = await getCryptoAssetsStore().getTokensSyncHash(currencyId); const sortedIds = [...blacklistedTokenIds].sort(); const combination = `${tokensHash}${sortedIds.join("")}`; return `0x${hash(combination).result().toString(16)}`; }