Skip to content

feat: add Albedo wallet adapter #1

Description

@gloriaelishahabu

Overview

The WalletConnect component currently supports Freighter only. This issue tracks adding full Albedo support via @albedo-link/intent.

What needs to be built

  • Install @albedo-link/intent as an optional peer dependency
  • Implement connectAlbedo() adapter in StellarPayProvider.tsx
  • Implement signWithAlbedo() using albedo.tx({ xdr, network })
  • Add Albedo to the WalletType union (already declared, needs wiring)
  • Test on testnet with a real payment flow

Albedo API reference

import albedo from "@albedo-link/intent";

// Get public key
const { pubkey } = await albedo.publicKey({ token: "optional-token" });

// Sign transaction
const { signed_envelope_xdr } = await albedo.tx({
  xdr: unsignedXdr,
  network: "testnet", // or "public"
  submit: false,
});

Acceptance criteria

  • <WalletConnect wallets={["albedo"]} /> connects and returns a public key
  • useTransaction().sendPayment() signs and broadcasts via Albedo
  • No breaking changes to existing Freighter flow

Related

Closes once Albedo adapter is merged and tested on mainnet.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions