Skip to content

Wallet adapter abstraction + LOBSTR extension support #516

Description

@ScriptedBro

Context: Connection is hard-wired to Freighter . LOBSTR ships a browser extension with a similar API surface; users outside Freighter's audience are locked out.

Tasks:

  • Define a StellarWalletAdapter interface: id, name, detect(, connect(, getAddress(, getNetwork(, signTransaction(xdr), disconnect( (sign used by the fE-013 Client-side Soroban signing for escrow release and approval confirmations)
  • Refactor useWallet to consume adapters; Freighter becomes the first adapter (behavior unchanged)
  • Implement a LOBSTR adapter behind the same interface
  • Wallet picker UI on the wallet page/connect entry point listing detected adapters, with "not installed → install link" states

Acceptance criteria:

  • Connecting via either extension works on testnet; selection persisted per browser
  • Existing Freighter flows show no regression (manual pass + unit tests)
  • Adding a third adapter requires only a new file implementing the interface (documented)


Estimated effort: 3 days

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions