Skip to content

feat: token discovery and multi-token support #18

Description

@ijeoma270

The create form only lets you pick XLM or USDC. That's it. The stream contract accepts any Stellar token address — we're artificially limiting what users can stream.

Replace the hardcoded dropdown with an actual token selector. Users should be able to pick from a list of popular tokens (pre-populated) or paste any Stellar token contract address. When they paste a custom address, resolve the metadata (symbol, decimals, name) from the chain.

Build a TokenRegistry service that holds known tokens plus user-added ones (persisted in localStorage). The selector component should be searchable, show the user's balance for each token, and have a "recently used" section.

This needs to work everywhere — create stream form, payroll page, vesting form. Token symbols and icons should show up consistently in StreamCard, detail pages, analytics, everywhere.

Done when:

  • Can paste any Stellar token contract address and it resolves
  • Token metadata (symbol, decimals, name) fetched from chain
  • Balance shown in the selector dropdown
  • Popular tokens pre-populated, custom ones saved to localStorage
  • Works in all forms across the app
  • Invalid address shows a clear error, not a crash

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