Skip to content

feat(wallet): add Stellar Wallets Kit, stellar-sdk, freighter-api, an…#85

Merged
IbrahimIjai merged 1 commit into
SO4-Markets:mainfrom
0xsteins:issue-2
May 26, 2026
Merged

feat(wallet): add Stellar Wallets Kit, stellar-sdk, freighter-api, an…#85
IbrahimIjai merged 1 commit into
SO4-Markets:mainfrom
0xsteins:issue-2

Conversation

@0xsteins
Copy link
Copy Markdown
Contributor

…d Zustand wallet store

Closes #13 — adds @creit.tech/stellar-wallets-kit ^3.7.0, @stellar/stellar-sdk ^13.3.0, and @stellar/freighter-api ^4.0.0 to apps/web/package.json.

Closes #14 — adds zustand ^5.0.4 and creates
apps/web/src/features/wallet/store/wallet-store.ts with a typed WalletStore that persists address, walletId, and network to localStorage via Zustand persist middleware. Network defaults to VITE_NETWORK env var (falls back to testnet).

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 26, 2026

@0xsteins Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…d Zustand wallet store

Closes SO4-Markets#13 — adds @creit.tech/stellar-wallets-kit ^3.7.0, @stellar/stellar-sdk ^13.3.0,
and @stellar/freighter-api ^4.0.0 to apps/web/package.json.

Closes SO4-Markets#14 — adds zustand ^5.0.4 and creates
apps/web/src/features/wallet/store/wallet-store.ts with a typed WalletStore
that persists address, walletId, and network to localStorage via Zustand
persist middleware. Network defaults to VITE_NETWORK env var (falls back to testnet).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@IbrahimIjai IbrahimIjai merged commit a912624 into SO4-Markets:main May 26, 2026
1 check failed
IbrahimIjai pushed a commit that referenced this pull request May 28, 2026
… deeplinks

- #86 stakeSO4: replace the mock with a real StakingRouter.stakeSO4 Soroban tx
  (build + simulate + assemble, signed via walletKit) submitted through
  useTxSubmit; validates the account/amount and invalidates useStakingInfo +
  token balances on success.
- #87 unstakeSO4: same real-tx treatment for StakingRouter.unstakeSO4, with an
  unbonding-period note in the success toast.
- #88 depositGM: replace the mock with a real ExchangeRouter.createDeposit tx;
  resolves the GM pool by name/id/market, surfaces the simulated GM tokens to
  receive, and invalidates useGMPoolData on success.
- #85 share position deeplink: add a "Share" button on each position row that
  copies /trade?market=<index>&type=long|short, and have the trade page pre-fill
  the market + direction from those validated search params.

Closes #124
Closes #123
Closes #122
Closes #121
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.

#14 — Add Zustand dependency and create wallet store #13 — Add Stellar Wallets Kit dependency

2 participants