Skip to content

feat(frontend): upgrade Stellar dependencies and memoize Horizon server (#1353) - #1547

Open
sparkysolutions10-pixel wants to merge 1 commit into
OpenKnight-Foundation:mainfrom
sparkysolutions10-pixel:feat/upgrade-stellar-dependencies-1353
Open

sparkysolutions10-pixel wants to merge 1 commit into
OpenKnight-Foundation:mainfrom
sparkysolutions10-pixel:feat/upgrade-stellar-dependencies-1353

Conversation

@sparkysolutions10-pixel

Copy link
Copy Markdown

Summary

Resolves #1353 (FE-112) by upgrading Stellar dependencies and memoizing the Horizon server instance within AppProvider.

Key Changes

  1. Dependency Cleanup (frontend/package.json):

    • Removed deprecated legacy stellar-sdk 10.4.0 and soroban-client 0.1.0 packages.
    • Retained modern @stellar/stellar-sdk v16+ package.
    • Updated @stellar/freighter-api to current ^2.0.0.
  2. Horizon Server Memoization (frontend/context/walletContext.tsx):

    • Wrapped const server = useMemo(() => new Horizon.Server(HORIZON_URL), []); inside AppProvider to prevent recreating Horizon client instances on every render cycle.

Local Quality Assurance & Verification

  • Verified type safety across frontend/context/walletContext.tsx.
  • Confirmed valid JSON structure and clean dependency trees in frontend/package.json.

Closes #1353.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FE-112: Upgrade Stellar Dependencies: stellar-sdk@10.4.0, soroban-client@0.1.0, @stellar/freighter-api@^1

1 participant