Skip to content

feat: add TON wallet connect via TonConnect SDK#23

Merged
dzianisv merged 1 commit intomainfrom
feat/ton-wallet-connect
Feb 16, 2026
Merged

feat: add TON wallet connect via TonConnect SDK#23
dzianisv merged 1 commit intomainfrom
feat/ton-wallet-connect

Conversation

@dzianisv
Copy link
Copy Markdown
Contributor

Summary

  • Add TonConnect SDK integration for TON wallet connect and send
  • Users can now connect TON wallets (Tonkeeper, etc.) via TonConnect modal and sign jetton transfer transactions directly

Changes

  • web/src/app/providers.tsx — New "use client" wrapper with TonConnectUIProvider, manifest URL pointing to pay.oclawbox.com/tonconnect-manifest.json
  • web/public/tonconnect-manifest.json — TonConnect manifest for wallet discovery (name, URL, icon)
  • web/src/app/layout.tsx — Wrap children with <Providers> to enable TonConnect hooks app-wide
  • web/src/components/wallet-connect.tsx — Integrate useTonConnectUI() and useTonAddress() hooks:
    • TON connect path opens TonConnect modal
    • TON send path builds jetton transfer BOC via buildTonTransferMessage() then calls sendTransaction()
    • useEffect syncs TON address from TonConnect to connectedAddress state
  • web/src/__tests__/components/wallet-connect.test.tsx — 5 new TON tests (no install prompt, modal open, address display, send, rejection error)
  • web/src/__tests__/app/pay/page.test.tsx — Add TonConnect and TON wallet mocks to fix page-level tests

Testing

  • 70 web tests passing (21 wallet-connect, 12 page, 37 others)
  • 65 API tests passing
  • Build succeeds

- Add TonConnectUIProvider wrapper and tonconnect-manifest.json
- Integrate useTonConnectUI/useTonAddress hooks in wallet-connect component
- TON connect opens TonConnect modal, send builds jetton transfer BOC
- Add TonConnect mocks to both wallet-connect and page test suites
- All 135 tests passing (70 web + 65 API)
@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-pebble-0dd69340f-23.eastus2.4.azurestaticapps.net

@dzianisv dzianisv merged commit 6593c9a into main Feb 16, 2026
2 checks passed
@dzianisv dzianisv deleted the feat/ton-wallet-connect branch February 16, 2026 09:55
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.

1 participant