From 23726f09ec04b711292ac06cb62cb9c482872544 Mon Sep 17 00:00:00 2001 From: padreug Date: Thu, 18 Sep 2025 09:56:55 +0200 Subject: [PATCH] Enhance documentation for Lightning Wallet integration and real-time features - Expanded CLAUDE.md to include detailed information about the new Wallet Module, emphasizing its functionality for Lightning wallet management and real-time balance updates. - Updated README.md to reflect the modular architecture, key features, and real-time wallet capabilities, including WebSocket configuration and connection management. - Added sections on WebSocket real-time features, including automatic balance updates, live notifications, and battery optimization strategies. These enhancements improve the clarity and accessibility of the wallet integration documentation, aiding developers in implementation and usage. --- CLAUDE.md | 37 +++++++++++++++++++++++++ README.md | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 116 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 185930d..cb789c6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -27,6 +27,7 @@ The application uses a plugin-based modular architecture with dependency injecti **Core Modules:** - **Base Module** (`src/modules/base/`) - Core infrastructure (Nostr, Auth, PWA) +- **Wallet Module** (`src/modules/wallet/`) - Lightning wallet management with real-time balance updates - **Nostr Feed Module** (`src/modules/nostr-feed/`) - Social feed functionality - **Chat Module** (`src/modules/chat/`) - Encrypted Nostr chat - **Events Module** (`src/modules/events/`) - Event ticketing with Lightning payments @@ -79,7 +80,10 @@ const relayHub = injectService(SERVICE_TOKENS.RELAY_HUB) **Available Services:** - `SERVICE_TOKENS.RELAY_HUB` - Centralized Nostr relay management - `SERVICE_TOKENS.AUTH_SERVICE` - Authentication services +- `SERVICE_TOKENS.PAYMENT_SERVICE` - Lightning payment and wallet management - `SERVICE_TOKENS.VISIBILITY_SERVICE` - App visibility and connection management +- `SERVICE_TOKENS.WALLET_SERVICE` - Wallet operations (send, receive, transactions) +- `SERVICE_TOKENS.WALLET_WEBSOCKET_SERVICE` - Real-time wallet balance updates via WebSocket **Core Stack:** - Vue 3 with Composition API (`