Skip to content

Add Freighter wallet connection state machine #7

Open

Description

@El-swaggerito

Description

Difficulty: Expert

Type: Feature

Summary

Implement a robust Freighter wallet connection state machine for disconnected, connecting, connected, wrong network, locked, rejected, unavailable, and error states.

Current Behaviour

Wallet connection logic may be spread across components and not handle all failure states clearly.

Expected Behaviour

The dashboard should provide consistent wallet state handling across admin and investor flows.

Suggested Implementation

Create wallet state model, provider hooks, reusable connection components, error mapping, network warning UI, tests or fixtures, and docs.

Files or Areas Likely Affected

  • src/features/wallet/
  • src/hooks/
  • src/components/
  • src/lib/
  • app/
  • docs/

Acceptance Criteria

  • Wallet connection state model is implemented.
  • Unavailable, rejected, wrong-network, and connected states are distinct.
  • Reusable wallet connection component is added.
  • Admin and investor flows consume shared wallet state.
  • User-facing errors are clear.
  • Documentation explains Freighter assumptions.

Additional Notes

This is foundational for signed dashboard flows.

Activity

  1. added
    GrantFox OSSIssue tracked for GrantFox OSS contribution
    Maybe RewardedIssue may be eligible for a GrantFox reward
    walletWallet related work
    expertExpert difficulty
    aegisAegis RWA Protocol related work
    dashboardDashboard and frontend work
    freighterFreighter wallet integration
    on Jul 28, 2026
  2. best2025j commented on Jul 28, 2026

    @best2025j
    Contributor

    can this task be assign to me please

  3. ranjeet150 commented on Oct 3, 2026

    @ranjeet150

    Hi,

    I have experience with similar implementations and would like to take this on.

    Plan:

    1. Inspect repository architecture in aegis-rwa/aegis-dashboard for an idiomatic solution.
    2. Implement the feature/fix with clean modular separation and robust error handling.
    3. Add comprehensive unit and integration test coverage for all edge cases.
    4. Verify that all linters, formatting, and CI checks pass cleanly.

    Please assign this to me if the plan looks good. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign labelaegisAegis RWA Protocol related workdashboardDashboard and frontend workexpertExpert difficultyfeatureFeature workfreighterFreighter wallet integrationwalletWallet related work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions