V2-FE-006: Implement real wallet connection lifecycle - #300
Open
abdullahilateefat03-boop wants to merge 1 commit into
Open
V2-FE-006: Implement real wallet connection lifecycle#300abdullahilateefat03-boop wants to merge 1 commit into
abdullahilateefat03-boop wants to merge 1 commit into
Conversation
…EVM/Wagmi patterns - Add lifecycle metadata to useAccount: address, chain, isConnecting, isReconnecting, connector, connectorError - Return null when wallet is disconnected to prevent phantom connected state - Implement useWallet hook as app-facing wallet state adapter exposing full lifecycle - Add minimal localStorage persistence for wallet preference (connector + chain only) - Update TypeScript config to include Node and Jest types for proper test environment - Add @types/jest to devDependencies for test type resolution - Fix malformed test block in claim-submission integration test - Ensure hydration-safe rendering of wallet connection status Fixes V2-FE-006
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.
Closes #241
Changes
Implements the canonical EVM/Wagmi wallet connection lifecycle for TruthBounty frontend, replacing incomplete connection state handling with a complete lifecycle contract.
Implementation Details
useAccount Hook: Central EVM account adapter
useWallet Hook: App-facing wallet state adapter
Wallet Preference Storage: Minimal, non-sensitive persistence
Configuration: TypeScript and environment fixes
Testing
Wallet lifecycle verification passing:
Related Issue
Fixes #V2-FE-006