remove more references to libstatus stickers
This commit is contained in:
parent
482aac8e98
commit
f7a8b14bfb
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue