@linenext/dapp-portal-sdk
Version:
Dapp Portal SDK
22 lines (21 loc) • 770 B
TypeScript
export declare class SdkLocalStorage {
private readonly chainId;
constructor(chainId: string);
clear(): void;
setWalletType(walletType: string): void;
getWalletType(): string | null;
setProviderType(providerType: string): void;
getProviderType(): string | null;
setSelectedWallet(walletAddress: string): void;
getConnectedWallet(): string | null;
getDeviceId(): string | null;
setDeviceId(deviceId: string): void;
getEventRead(eventId: string): boolean;
setEventRead(eventId: string, read: boolean): void;
getEventFloating(eventId: string): boolean;
setEventFloating(eventId: string, isFloating: boolean): void;
private getKeyWithPrefix;
private setItem;
private getItem;
private removeItem;
}