UNPKG

@ic-wallet-kit/hpl

Version:
19 lines (18 loc) 1.04 kB
import { HplDictionaryDataCacheModel } from "../../../types/cache/hplDictionaryDataCacheModel"; import { IdentifierService, ILocalCacheStorage, ILogger, IStorage } from "@ic-wallet-kit/common"; import "reflect-metadata"; export interface IHplDictionaryCacheRepository extends ILocalCacheStorage { getHplDictionaryByCanisterId(canisterId: string): HplDictionaryDataCacheModel | undefined; setHplDictionary(canisterId: string, hplAsset: HplDictionaryDataCacheModel): void; removeDictionary(canisterId: string): void; } export declare class HplDictionaryCacheRepository implements IHplDictionaryCacheRepository { private identifierService; private logger; private storage; constructor(logger: ILogger, identifierService: IdentifierService, storage: IStorage); getHplDictionaryByCanisterId(canisterId: string): HplDictionaryDataCacheModel | undefined; setHplDictionary(canisterId: string, hplAsset: HplDictionaryDataCacheModel): void; removeDictionary(canisterId: string): void; private getKey; }