@ic-wallet-kit/hpl
Version:
Ic middleware wallet HPL protocol
19 lines (18 loc) • 962 B
TypeScript
import { HplOwnerDataCacheModel } from "../../../types/cache/hplOwnerDataCacheModel";
import { IdentifierService, ILocalCacheStorage, ILogger, IStorage } from "@ic-wallet-kit/common";
import "reflect-metadata";
export interface IHplOwnerCacheRepository extends ILocalCacheStorage {
getHplOwnerByCanisterId(canisterId: string): HplOwnerDataCacheModel | undefined;
setHplOwner(canisterId: string, hplAsset: HplOwnerDataCacheModel): void;
removeOwner(canisterId: string): void;
}
export declare class HplOwnerCacheRepository implements IHplOwnerCacheRepository {
private identifierService;
private logger;
private storage;
constructor(logger: ILogger, identifierService: IdentifierService, storage: IStorage);
getHplOwnerByCanisterId(canisterId: string): HplOwnerDataCacheModel | undefined;
setHplOwner(canisterId: string, hplAsset: HplOwnerDataCacheModel): void;
removeOwner(canisterId: string): void;
private getKey;
}