@ic-wallet-kit/hpl
Version:
Ic middleware wallet HPL protocol
20 lines (19 loc) • 903 B
TypeScript
import { HplMintCacheModel } from "../../../types/cache/hplMintCacheModel";
import { IdentifierService, ILocalCacheStorage, ILogger, IStorage } from "@ic-wallet-kit/common";
import "reflect-metadata";
export interface IHplMintCacheRepository extends ILocalCacheStorage {
getHplMintByCanisterId(canisterId: string): HplMintCacheModel | undefined;
setHplMint(hplAsset: HplMintCacheModel): void;
removeMint(canisterId: string): void;
}
export declare class HplMintCacheRepository implements IHplMintCacheRepository {
private identifierService;
private logger;
private storage;
constructor(logger: ILogger, identifierService: IdentifierService, storage: IStorage);
getHplMintByCanisterId(canisterId: string): HplMintCacheModel | undefined;
setHplMint(hplMint: HplMintCacheModel): void;
removeMint(canisterId: string): void;
private getItem;
private getKey;
}