feat: add TON wallet connect via TonConnect SDK#23
Merged
Conversation
- 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)
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-pebble-0dd69340f-23.eastus2.4.azurestaticapps.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
web/src/app/providers.tsx— New"use client"wrapper withTonConnectUIProvider, manifest URL pointing topay.oclawbox.com/tonconnect-manifest.jsonweb/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-wideweb/src/components/wallet-connect.tsx— IntegrateuseTonConnectUI()anduseTonAddress()hooks:buildTonTransferMessage()then callssendTransaction()useEffectsyncs TON address from TonConnect toconnectedAddressstateweb/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 testsTesting