UNPKG

@arkade-os/sdk

Version:

Bitcoin wallet SDK with Taproot and Ark integration

18 lines (17 loc) 367 B
export class InMemoryStorageAdapter { constructor() { this.store = new Map(); } async getItem(key) { return this.store.get(key) ?? null; } async setItem(key, value) { this.store.set(key, value); } async removeItem(key) { this.store.delete(key); } async clear() { this.store.clear(); } }