@ic-wallet-kit/hpl
Version:
Ic middleware wallet HPL protocol
18 lines (17 loc) • 860 B
TypeScript
import { IdentifierService, ILocalCacheStorage, ILogger, IStorage } from "@ic-wallet-kit/common";
import "reflect-metadata";
export interface IHplFeeConstantCacheRepository extends ILocalCacheStorage {
getFeeConstantByCanisterId(canisterId: string): bigint | undefined;
setFeeConstant(canisterId: string, feeConstant: bigint): void;
removeFeeConstant(canisterId: string): void;
}
export declare class HplFeeConstantCacheRepository implements IHplFeeConstantCacheRepository {
private identifierService;
private logger;
private storage;
constructor(logger: ILogger, identifierService: IdentifierService, storage: IStorage);
getFeeConstantByCanisterId(canisterId: string): bigint | undefined;
setFeeConstant(canisterId: string, feeConstant: bigint): void;
removeFeeConstant(canisterId: string): void;
private getKey;
}