remove more references to libstatus stickers

This commit is contained in:
Iuri Matias 2021-06-08 13:01:29 -04:00
parent 482aac8e98
commit f7a8b14bfb
3 changed files with 10 additions and 4 deletions

View File

@ -1,9 +1,9 @@
import chronicles
import ../libstatus/stickers as libstatus_stickers
import ../stickers as status_stickers
logScope:
topics = "sticker-decoding"
# TODO: this is for testing purposes, the correct function should decode the hash
proc decodeContentHash*(value: string): string =
libstatus_stickers.decodeContentHash(value)
status_stickers.decodeContentHash(value)

View File

@ -136,4 +136,10 @@ proc addStickerToRecent*(self: StickersModel, sticker: Sticker, save: bool = fal
if self.recentStickers.len > 24:
self.recentStickers = self.recentStickers[0..23] # take top 24 most recent
if save:
status_stickers.saveRecentStickers(self.recentStickers)
status_stickers.saveRecentStickers(self.recentStickers)
proc decodeContentHash*(value: string): string =
result = status_stickers.decodeContentHash(value)
proc getPackIdFromTokenId*(tokenId: Stuint[256]): int =
result = status_stickers.getPackIdFromTokenId(tokenId)

View File

@ -7,7 +7,7 @@ import # vendor libs
import # status-desktop libs
../libstatus/core as status, ../libstatus/eth/contracts as contracts,
../libstatus/stickers as status_stickers, ../types,
../stickers as status_stickers, ../types,
web3/[conversions, ethtypes], ../utils, account
const CRYPTOKITTY* = "cryptokitty"