feat(wallet): add Ledger & WalletConnect multi-wallet support (#34) - #188
Merged
Darkvader-ship-it merged 2 commits intoAug 31, 2026
Conversation
…STELLAR#34) - lib/stellar-wallet-kit.ts - Add LedgerModule and WalletConnectModule to kit modules array - Export LEDGER_ID, WALLET_CONNECT_ID, WalletConnectTargetChain - Export TESTNET_PASSPHRASE / MAINNET_PASSPHRASE constants - Add isHardwareWalletSelected() and isWalletConnectSelected() helpers - signTransaction: network passphrase guard for Ledger (rejects unknown network before hitting HID transport) - signTransaction: friendly error messages for USB/timeout/rejected errors - WalletConnect project ID from NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID - components/wallet-provider.tsx - Session restoration on mount via refresh() - Heartbeat: 8 s for hardware wallets, 30 s for extension wallets - navigator.usb connect/disconnect event listeners for immediate Ledger unplug detection - Hardware wallet network passphrase mismatch validation (calls kit.getNetwork() after connect and via effect) - Red banner UI alert when Ledger is on wrong network passphrase - isHardwareWallet / isWalletConnect flags exposed in context - stopHeartbeat() called on disconnect and session expiry - syncModuleFlags() on connect/openWalletPicker to keep flags current - components/freighter-connect.tsx - WalletTypeBadge: amber '⬡ LEDGER' badge for hardware wallets, blue '◈ WC' badge for WalletConnect sessions - Status dot: amber for Ledger, blue for WalletConnect, violet default - Context-aware connecting label: 'Opening Ledger…' / 'Opening QR…' - Import cn from @/lib/utils - .env.local.example - Document NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID variable Closes PHASE-STELLAR#34
|
@Peace-001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lib/stellar-wallet-kit.ts
components/wallet-provider.tsx
components/freighter-connect.tsx
.env.local.example
Closes #34