Skip to content

[P1] Replace hardcoded Lisk wallet assumptions with wallet abstraction #7

Description

@Obiajulu-gif

Priority

P1

Difficulty

Advanced

Task

Create a wallet and chain abstraction layer so the current Privy flow can continue while ChainMove prepares for Stellar account support.

Suggested files

  • lib/wallet/config.ts
  • lib/wallet/types.ts

Expected behavior

The abstraction should separate:

  • current embedded wallet behavior
  • planned Stellar account behavior
  • public wallet display fields
  • chain/network labels

Acceptance criteria

  • Wallet network assumptions are moved into a central abstraction.
  • Existing auth and provider setup continues working.
  • Stellar account display can use the abstraction.
  • Documentation explains current wallet mode vs planned Stellar mode.

Test requirement

Add tests for current wallet config, Stellar account display config, and fallback when no wallet is linked.

Evidence required

  • Screenshot of the app still loading after the change.
  • Screenshot of wallet/profile area before and after.
  • Screenshot of tests passing.

Commands

npm run lint
npm run typecheck --if-present
npm run build

Activity

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

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions