Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ton-connect/sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3aa4db5b4d27f3ef2df278988a5c1b0ec8db8928
Choose a base ref
...
head repository: ton-connect/sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7e051b422d5245192cce92c2094774304c1305ab
Choose a head ref

Commits on Jul 8, 2024

  1. build(docs): docs rebuild by github action

    BOT_TonConnect_Builder authored and BOT_TonConnect_Builder committed Jul 8, 2024
    Copy the full SHA
    f1a3583 View commit details

Commits on Jul 10, 2024

  1. improve: readme document

    mlikhtar authored and thekiba committed Jul 10, 2024
    Copy the full SHA
    cfe1f9b View commit details
  2. build(docs): docs rebuild by github action

    BOT_TonConnect_Builder authored and BOT_TonConnect_Builder committed Jul 10, 2024
    Copy the full SHA
    468e4cc View commit details

Commits on Jul 31, 2024

  1. Copy the full SHA
    6ff4761 View commit details
  2. build(docs): docs rebuild by github action

    BOT_TonConnect_Builder authored and BOT_TonConnect_Builder committed Jul 31, 2024
    Copy the full SHA
    c244c8c View commit details
  3. feat(ui): adjust letter spacing for wallet's names and update text we…

    …ight as per new design
    thekiba committed Jul 31, 2024
    Copy the full SHA
    5b3a5cb View commit details
  4. build(docs): docs rebuild by github action

    BOT_TonConnect_Builder authored and BOT_TonConnect_Builder committed Jul 31, 2024
    Copy the full SHA
    7e5f517 View commit details
  5. Copy the full SHA
    2cfdecc View commit details
  6. Copy the full SHA
    63a911e View commit details
  7. Copy the full SHA
    3d161aa View commit details
  8. Copy the full SHA
    9a81cd7 View commit details
  9. Copy the full SHA
    49d4c40 View commit details
  10. build(docs): docs rebuild by github action

    BOT_TonConnect_Builder authored and BOT_TonConnect_Builder committed Jul 31, 2024
    Copy the full SHA
    84ce3df View commit details
  11. Copy the full SHA
    6538103 View commit details
  12. build(docs): docs rebuild by github action

    BOT_TonConnect_Builder authored and BOT_TonConnect_Builder committed Jul 31, 2024
    Copy the full SHA
    cec81e0 View commit details
  13. Copy the full SHA
    45e8ec5 View commit details
  14. Copy the full SHA
    cba046e View commit details
  15. Copy the full SHA
    0c6a1b7 View commit details
  16. Copy the full SHA
    302a101 View commit details
  17. Copy the full SHA
    d1f2f60 View commit details
  18. Copy the full SHA
    dce8a6b View commit details
  19. Copy the full SHA
    85fb993 View commit details
  20. Copy the full SHA
    fcd2982 View commit details
  21. Copy the full SHA
    2933402 View commit details
  22. Copy the full SHA
    1e2a612 View commit details
  23. Copy the full SHA
    b720b25 View commit details
  24. build(docs): docs rebuild by github action

    BOT_TonConnect_Builder authored and BOT_TonConnect_Builder committed Jul 31, 2024
    Copy the full SHA
    ea937f6 View commit details

Commits on Aug 9, 2024

  1. Copy the full SHA
    40d9a36 View commit details
  2. Copy the full SHA
    10cf7ad View commit details
  3. Copy the full SHA
    f3d9190 View commit details
  4. Copy the full SHA
    02febe1 View commit details
  5. Copy the full SHA
    7e051b4 View commit details
Showing with 756 additions and 596 deletions.
  1. +50 −34 README.md
  2. +6 −6 docs/classes/_tonconnect_protocol.SessionCrypto.html
  3. +2 −2 docs/classes/_tonconnect_sdk.BadRequestError.html
  4. +3 −3 docs/classes/_tonconnect_sdk.BrowserEventDispatcher.html
  5. +2 −2 docs/classes/_tonconnect_sdk.FetchWalletsError.html
  6. +2 −2 docs/classes/_tonconnect_sdk.LocalstorageNotFoundError.html
  7. +2 −2 docs/classes/_tonconnect_sdk.ParseHexError.html
  8. +19 −19 docs/classes/_tonconnect_sdk.TonConnect.html
  9. +2 −2 docs/classes/_tonconnect_sdk.TonConnectError.html
  10. +2 −2 docs/classes/_tonconnect_sdk.UnknownAppError.html
  11. +2 −2 docs/classes/_tonconnect_sdk.UnknownError.html
  12. +2 −2 docs/classes/_tonconnect_sdk.UserRejectsError.html
  13. +2 −2 docs/classes/_tonconnect_sdk.WalletAlreadyConnectedError.html
  14. +2 −2 docs/classes/_tonconnect_sdk.WalletNotConnectedError.html
  15. +2 −2 docs/classes/_tonconnect_sdk.WalletNotInjectedError.html
  16. +4 −4 docs/classes/_tonconnect_sdk.WalletsListManager.html
  17. +2 −2 docs/classes/_tonconnect_sdk.WrongAddressError.html
  18. +24 −24 docs/classes/_tonconnect_ui.TonConnectUI.html
  19. +2 −2 docs/classes/_tonconnect_ui.TonConnectUIError.html
  20. +2 −2 docs/classes/_tonconnect_ui_react.TonConnectProviderNotSetError.html
  21. +2 −2 docs/classes/_tonconnect_ui_react.TonConnectUIReactError.html
  22. +3 −3 docs/enums/_tonconnect_protocol.CHAIN.html
  23. +8 −8 docs/enums/_tonconnect_protocol.CONNECT_EVENT_ERROR_CODES.html
  24. +3 −3 docs/enums/_tonconnect_protocol.CONNECT_ITEM_ERROR_CODES.html
  25. +5 −5 docs/enums/_tonconnect_protocol.DISCONNECT_ERROR_CODES.html
  26. +6 −6 docs/enums/_tonconnect_protocol.SEND_TRANSACTION_ERROR_CODES.html
  27. +6 −6 docs/enums/_tonconnect_protocol.SIGN_DATA_ERROR_CODES.html
  28. +3 −3 docs/enums/_tonconnect_ui.THEME.html
  29. +1 −1 docs/functions/_tonconnect_protocol.concatUint8Arrays.html
  30. +1 −1 docs/functions/_tonconnect_protocol.hexToByteArray.html
  31. +1 −1 docs/functions/_tonconnect_protocol.isNode.html
  32. +1 −1 docs/functions/_tonconnect_protocol.splitToUint8Arrays.html
  33. +1 −1 docs/functions/_tonconnect_protocol.toHexString.html
  34. +1 −1 docs/functions/_tonconnect_sdk.createConnectionCompletedEvent.html
  35. +1 −1 docs/functions/_tonconnect_sdk.createConnectionErrorEvent.html
  36. +1 −1 docs/functions/_tonconnect_sdk.createConnectionRestoringCompletedEvent.html
  37. +1 −1 docs/functions/_tonconnect_sdk.createConnectionRestoringErrorEvent.html
  38. +1 −1 docs/functions/_tonconnect_sdk.createConnectionRestoringStartedEvent.html
  39. +1 −1 docs/functions/_tonconnect_sdk.createConnectionStartedEvent.html
  40. +1 −1 docs/functions/_tonconnect_sdk.createDisconnectionEvent.html
  41. +1 −1 docs/functions/_tonconnect_sdk.createRequestVersionEvent.html
  42. +1 −1 docs/functions/_tonconnect_sdk.createResponseVersionEvent.html
  43. +1 −1 docs/functions/_tonconnect_sdk.createTransactionSentForSignatureEvent.html
  44. +1 −1 docs/functions/_tonconnect_sdk.createTransactionSignedEvent.html
  45. +1 −1 docs/functions/_tonconnect_sdk.createTransactionSigningFailedEvent.html
  46. +1 −1 docs/functions/_tonconnect_sdk.createVersionInfo.html
  47. +1 −1 docs/functions/_tonconnect_sdk.encodeTelegramUrlParameters.html
  48. +1 −1 docs/functions/_tonconnect_sdk.isTelegramUrl.html
  49. +1 −1 docs/functions/_tonconnect_sdk.isWalletInfoCurrentlyEmbedded.html
  50. +1 −1 docs/functions/_tonconnect_sdk.isWalletInfoCurrentlyInjected.html
  51. +1 −1 docs/functions/_tonconnect_sdk.isWalletInfoInjectable.html
  52. +1 −1 docs/functions/_tonconnect_sdk.isWalletInfoInjected.html
  53. +1 −1 docs/functions/_tonconnect_sdk.isWalletInfoRemote.html
  54. +1 −1 docs/functions/_tonconnect_sdk.toUserFriendlyAddress.html
  55. +1 −1 docs/functions/_tonconnect_ui_react.useIsConnectionRestored.html
  56. +1 −1 docs/functions/_tonconnect_ui_react.useTonAddress.html
  57. +1 −1 docs/functions/_tonconnect_ui_react.useTonConnectModal.html
  58. +1 −1 docs/functions/_tonconnect_ui_react.useTonConnectUI.html
  59. +1 −1 docs/functions/_tonconnect_ui_react.useTonWallet.html
  60. +57 −40 docs/index.html
  61. +4 −4 docs/interfaces/_tonconnect_protocol.ConnectEventError.html
  62. +4 −4 docs/interfaces/_tonconnect_protocol.ConnectEventSuccess.html
  63. +3 −3 docs/interfaces/_tonconnect_protocol.ConnectRequest.html
  64. +6 −6 docs/interfaces/_tonconnect_protocol.DeviceInfo.html
  65. +4 −4 docs/interfaces/_tonconnect_protocol.DisconnectEvent.html
  66. +4 −4 docs/interfaces/_tonconnect_protocol.DisconnectRpcRequest.html
  67. +3 −3 docs/interfaces/_tonconnect_protocol.DisconnectRpcResponseError.html
  68. +3 −3 docs/interfaces/_tonconnect_protocol.DisconnectRpcResponseSuccess.html
  69. +3 −3 docs/interfaces/_tonconnect_protocol.KeyPair.html
  70. +4 −4 docs/interfaces/_tonconnect_protocol.SendTransactionRpcRequest.html
  71. +3 −3 docs/interfaces/_tonconnect_protocol.SendTransactionRpcResponseError.html
  72. +3 −3 docs/interfaces/_tonconnect_protocol.SendTransactionRpcResponseSuccess.html
  73. +4 −4 docs/interfaces/_tonconnect_protocol.SignDataRpcRequest.html
  74. +3 −3 docs/interfaces/_tonconnect_protocol.SignDataRpcResponseError.html
  75. +3 −3 docs/interfaces/_tonconnect_protocol.SignDataRpcResponseSuccess.html
  76. +2 −2 docs/interfaces/_tonconnect_protocol.TonAddressItem.html
  77. +6 −6 docs/interfaces/_tonconnect_protocol.TonAddressItemReply.html
  78. +3 −3 docs/interfaces/_tonconnect_protocol.TonProofItem.html
  79. +3 −3 docs/interfaces/_tonconnect_protocol.TonProofItemReplySuccess.html
  80. +3 −3 docs/interfaces/_tonconnect_protocol.WalletResponseTemplateError.html
  81. +3 −3 docs/interfaces/_tonconnect_protocol.WalletResponseTemplateSuccess.html
  82. +5 −5 docs/interfaces/_tonconnect_sdk.Account.html
  83. +2 −2 docs/interfaces/_tonconnect_sdk.ConnectAdditionalRequest.html
  84. +4 −4 docs/interfaces/_tonconnect_sdk.DappMetadata.html
  85. +3 −3 docs/interfaces/_tonconnect_sdk.EventDispatcher.html
  86. +4 −4 docs/interfaces/_tonconnect_sdk.IStorage.html
  87. +13 −13 docs/interfaces/_tonconnect_sdk.ITonConnect.html
  88. +5 −5 docs/interfaces/_tonconnect_sdk.SendTransactionRequest.html
  89. +2 −2 docs/interfaces/_tonconnect_sdk.SendTransactionResponse.html
  90. +7 −7 docs/interfaces/_tonconnect_sdk.TonConnectOptions.html
  91. +5 −5 docs/interfaces/_tonconnect_sdk.Wallet.html
  92. +3 −3 docs/interfaces/_tonconnect_sdk.WalletConnectionSourceHTTP.html
  93. +2 −2 docs/interfaces/_tonconnect_sdk.WalletConnectionSourceJS.html
  94. +7 −7 docs/interfaces/_tonconnect_sdk.WalletInfoBase.html
  95. +10 −10 docs/interfaces/_tonconnect_sdk.WalletInfoCurrentlyEmbedded.html
  96. +10 −10 docs/interfaces/_tonconnect_sdk.WalletInfoCurrentlyInjected.html
  97. +10 −10 docs/interfaces/_tonconnect_sdk.WalletInfoInjectable.html
  98. +10 −10 docs/interfaces/_tonconnect_sdk.WalletInfoInjected.html
  99. +10 −10 docs/interfaces/_tonconnect_sdk.WalletInfoRemote.html
  100. +6 −6 docs/interfaces/_tonconnect_ui.ActionConfiguration.html
  101. +10 −10 docs/interfaces/_tonconnect_ui.TonConnectUiCreateOptionsBase.html
  102. +7 −7 docs/interfaces/_tonconnect_ui.TonConnectUiOptions.html
  103. +11 −11 docs/interfaces/_tonconnect_ui.TonConnectUiOptionsWithConnector.html
  104. +11 −11 docs/interfaces/_tonconnect_ui.TonConnectUiOptionsWithManifest.html
  105. +4 −4 docs/interfaces/_tonconnect_ui.UIPreferences.html
  106. +5 −5 docs/interfaces/_tonconnect_ui.WalletsModal.html
  107. +3 −3 docs/interfaces/_tonconnect_ui_react.TonConnectButtonProps.html
  108. +8 −8 docs/interfaces/_tonconnect_ui_react.TonConnectUIProviderPropsBase.html
  109. +2 −2 docs/interfaces/_tonconnect_ui_react.TonConnectUIProviderPropsWithConnector.html
  110. +2 −2 docs/interfaces/_tonconnect_ui_react.TonConnectUIProviderPropsWithManifest.html
  111. +1 −1 docs/modules/_tonconnect_protocol.html
  112. +1 −1 docs/modules/_tonconnect_sdk.html
  113. +1 −1 docs/modules/_tonconnect_ui.html
  114. +1 −1 docs/modules/_tonconnect_ui_react.html
  115. +1 −1 docs/types/_tonconnect_protocol.AppMessage.html
  116. +1 −1 docs/types/_tonconnect_protocol.AppRequest.html
  117. +1 −1 docs/types/_tonconnect_protocol.ConnectEvent.html
  118. +1 −1 docs/types/_tonconnect_protocol.ConnectItem.html
  119. +1 −1 docs/types/_tonconnect_protocol.ConnectItemReply.html
  120. +1 −1 docs/types/_tonconnect_protocol.ConnectItemReplyError.html
  121. +1 −1 docs/types/_tonconnect_protocol.DisconnectRpcResponse.html
  122. +1 −1 docs/types/_tonconnect_protocol.Feature.html
  123. +1 −1 docs/types/_tonconnect_protocol.RpcMethod.html
  124. +1 −1 docs/types/_tonconnect_protocol.RpcRequests.html
  125. +1 −1 docs/types/_tonconnect_protocol.RpcResponses.html
  126. +1 −1 docs/types/_tonconnect_protocol.SendTransactionFeature.html
  127. +1 −1 docs/types/_tonconnect_protocol.SendTransactionFeatureDeprecated.html
  128. +1 −1 docs/types/_tonconnect_protocol.SendTransactionRpcResponse.html
  129. +1 −1 docs/types/_tonconnect_protocol.SignDataFeature.html
  130. +1 −1 docs/types/_tonconnect_protocol.SignDataRpcResponse.html
  131. +1 −1 docs/types/_tonconnect_protocol.TonProofItemReply.html
  132. +1 −1 docs/types/_tonconnect_protocol.TonProofItemReplyError.html
  133. +1 −1 docs/types/_tonconnect_protocol.WalletEvent.html
  134. +1 −1 docs/types/_tonconnect_protocol.WalletMessage.html
  135. +1 −1 docs/types/_tonconnect_protocol.WalletResponse.html
  136. +1 −1 docs/types/_tonconnect_protocol.WalletResponseError.html
  137. +1 −1 docs/types/_tonconnect_protocol.WalletResponseSuccess.html
  138. +1 −1 docs/types/_tonconnect_sdk.AddTonConnectPrefix.html
  139. +1 −1 docs/types/_tonconnect_sdk.AuthType.html
  140. +1 −1 docs/types/_tonconnect_sdk.ConnectionCompletedEvent.html
  141. +1 −1 docs/types/_tonconnect_sdk.ConnectionErrorEvent.html
  142. +1 −1 docs/types/_tonconnect_sdk.ConnectionEvent.html
  143. +1 −1 docs/types/_tonconnect_sdk.ConnectionInfo.html
  144. +1 −1 docs/types/_tonconnect_sdk.ConnectionRestoringCompletedEvent.html
  145. +1 −1 docs/types/_tonconnect_sdk.ConnectionRestoringErrorEvent.html
  146. +1 −1 docs/types/_tonconnect_sdk.ConnectionRestoringEvent.html
  147. +1 −1 docs/types/_tonconnect_sdk.ConnectionRestoringStartedEvent.html
  148. +1 −1 docs/types/_tonconnect_sdk.ConnectionStartedEvent.html
  149. +1 −1 docs/types/_tonconnect_sdk.DisconnectionEvent.html
  150. +1 −1 docs/types/_tonconnect_sdk.RemoveTonConnectPrefix.html
  151. +1 −1 docs/types/_tonconnect_sdk.RequestVersionEvent.html
  152. +1 −1 docs/types/_tonconnect_sdk.ResponseVersionEvent.html
  153. +1 −1 docs/types/_tonconnect_sdk.SdkActionEvent.html
  154. +1 −1 docs/types/_tonconnect_sdk.TransactionInfo.html
  155. +1 −1 docs/types/_tonconnect_sdk.TransactionMessage.html
  156. +1 −1 docs/types/_tonconnect_sdk.TransactionSentForSignatureEvent.html
  157. +1 −1 docs/types/_tonconnect_sdk.TransactionSignedEvent.html
  158. +1 −1 docs/types/_tonconnect_sdk.TransactionSigningEvent.html
  159. +1 −1 docs/types/_tonconnect_sdk.TransactionSigningFailedEvent.html
  160. +1 −1 docs/types/_tonconnect_sdk.Version.html
  161. +1 −1 docs/types/_tonconnect_sdk.VersionEvent.html
  162. +1 −1 docs/types/_tonconnect_sdk.WalletConnectionSource.html
  163. +1 −1 docs/types/_tonconnect_sdk.WalletInfo.html
  164. +1 −1 docs/types/_tonconnect_sdk.WithoutVersion.html
  165. +1 −1 docs/types/_tonconnect_ui.BorderRadius.html
  166. +1 −1 docs/types/_tonconnect_ui.Color.html
  167. +1 −1 docs/types/_tonconnect_ui.ColorsSet.html
  168. +1 −1 docs/types/_tonconnect_ui.ConnectedWallet.html
  169. +1 −1 docs/types/_tonconnect_ui.Loadable.html
  170. +1 −1 docs/types/_tonconnect_ui.LoadableLoading.html
  171. +1 −1 docs/types/_tonconnect_ui.LoadableReady.html
  172. +1 −1 docs/types/_tonconnect_ui.Locales.html
  173. +1 −1 docs/types/_tonconnect_ui.PartialColorsSet.html
  174. +1 −1 docs/types/_tonconnect_ui.ReturnStrategy.html
  175. +1 −1 docs/types/_tonconnect_ui.Theme-1.html
  176. +1 −1 docs/types/_tonconnect_ui.TonConnectUiCreateOptions.html
  177. +1 −1 docs/types/_tonconnect_ui.UIWallet.html
  178. +1 −1 docs/types/_tonconnect_ui.UserActionEvent.html
  179. +1 −1 docs/types/_tonconnect_ui.WalletInfoRemoteWithOpenMethod.html
  180. +1 −1 docs/types/_tonconnect_ui.WalletInfoWithOpenMethod.html
  181. +1 −1 docs/types/_tonconnect_ui.WalletModalClosed.html
  182. +1 −1 docs/types/_tonconnect_ui.WalletModalOpened.html
  183. +1 −1 docs/types/_tonconnect_ui.WalletOpenMethod.html
  184. +1 −1 docs/types/_tonconnect_ui.WalletsListConfiguration.html
  185. +1 −1 docs/types/_tonconnect_ui.WalletsModalCloseReason.html
  186. +1 −1 docs/types/_tonconnect_ui.WalletsModalState.html
  187. +1 −1 docs/types/_tonconnect_ui_react.TonConnectUIProviderProps.html
  188. +4 −4 docs/variables/_tonconnect_protocol.Base64.html
  189. +1 −1 docs/variables/_tonconnect_ui_react.TonConnectUIContext.html
  190. +31 −0 packages/sdk/CHANGELOG.md
  191. +1 −1 packages/sdk/package.json
  192. +6 −4 packages/sdk/src/provider/bridge/bridge-gateway.ts
  193. +15 −9 packages/sdk/src/provider/bridge/bridge-provider.ts
  194. +6 −2 packages/sdk/src/ton-connect.ts
  195. +12 −2 packages/sdk/src/utils/timeout.ts
  196. +16 −0 packages/ui-react/CHANGELOG.md
  197. +2 −2 packages/ui-react/package.json
  198. +21 −0 packages/ui/CHANGELOG.md
  199. +2 −2 packages/ui/package.json
  200. +1 −1 packages/ui/src/app/components/button/style.ts
  201. +1 −1 packages/ui/src/app/components/typography/h1/style.ts
  202. +1 −1 packages/ui/src/app/components/typography/h2/style.ts
  203. +1 −1 packages/ui/src/app/components/typography/h3/style.ts
  204. +33 −2 packages/ui/src/app/components/wallet-item/index.tsx
  205. +2 −2 packages/ui/src/app/components/wallet-item/style.ts
  206. +4 −2 packages/ui/src/app/views/modals/wallets-modal/mobile-universal-modal/index.tsx
  207. +6 −2 packages/ui/src/app/views/modals/wallets-modal/mobile-universal-modal/style.ts
84 changes: 50 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,65 @@
# TON Connect
# 🚀 TON Connect

This is the implementation of the TonConnect protocol. You can find more details about TonConnect protocol in the [docs](https://docs.ton.org/develop/dapps/ton-connect/overview).
Welcome to the implementation of the TonConnect protocol! Before diving in, here's where to start:

[Latest API documentation](https://ton-connect.github.io/sdk/)

Repository contains following packages:
- [@tonconnect/sdk](https://www.npmjs.com/package/@tonconnect/sdk)
- [@tonconnect/protocol](https://www.npmjs.com/package/@tonconnect/protocol)
- [@tonconnect/ui](https://www.npmjs.com/package/@tonconnect/ui)
- [@tonconnect/ui-react](https://www.npmjs.com/package/@tonconnect/ui-react)
- Easily connect users to your Dapp and start blockchain interactions:
- [TON Connect UI React](https://www.npmjs.com/package/@tonconnect/ui-react): Seamlessly integrate wallet connection components into your React app.
- [TON Connect UI](https://www.npmjs.com/package/@tonconnect/ui): Quickly add wallet connection components to your Dapp.

## TON Connect SDK
- [github link](https://github.com/ton-connect/sdk/tree/main/packages/sdk)
- [npm link](https://www.npmjs.com/package/@tonconnect/sdk)
- [API documentation](https://ton-connect.github.io/sdk/modules/_tonconnect_sdk.html)

Use it to connect your app to TON wallets via TonConnect protocol.
You can find the full description in the link above.
- For detailed information about the TonConnect protocol, visit the [official documentation](https://docs.ton.org/develop/dapps/ton-connect/overview).

## TON Connect protocol models
- [github link](https://github.com/ton-connect/sdk/tree/main/packages/protocol)
- [npm link](https://www.npmjs.com/package/@tonconnect/protocol)
- [API documentation](https://ton-connect.github.io/sdk/modules/_tonconnect_protocol.html)
- [📚 Latest API documentation](https://ton-connect.github.io/sdk/)

This package contains protocol requests, responses and event models and encoding, decoding functions.
You can use it to integrate TonConnect to your wallet app (written with TypeScript).
If you want to integrate TonConnect to your dApp, you should use [@tonconnect/sdk](https://www.npmjs.com/package/@tonconnect/sdk).
## 📦 Packages

## TON Connect UI
- [github link](https://github.com/ton-connect/sdk/tree/main/packages/ui)
- [npm link](https://www.npmjs.com/package/@tonconnect/ui)
- [API documentation](https://ton-connect.github.io/sdk/modules/_tonconnect_ui.html)
The repository contains the following packages:

- [**@tonconnect/sdk**](https://www.npmjs.com/package/@tonconnect/sdk)
- [**@tonconnect/protocol**](https://www.npmjs.com/package/@tonconnect/protocol)
- [**@tonconnect/ui**](https://www.npmjs.com/package/@tonconnect/ui)
- [**@tonconnect/ui-react**](https://www.npmjs.com/package/@tonconnect/ui-react)

TonConnect UI is a UI kit for TonConnect SDK. Use it to connect your app to TON wallets via TonConnect protocol.
It allows you to integrate TonConnect to your app easier using our UI elements such as "connect wallet button", "select wallet dialog" and confirmation modals.
---

## TON Connect UI React
- [github link](https://github.com/ton-connect/sdk/tree/main/packages/ui-react)
- [npm link](https://www.npmjs.com/package/@tonconnect/ui-react)
- [API documentation](https://ton-connect.github.io/sdk/modules/_tonconnect_ui_react.html)
## 📘 TON Connect SDK
- **GitHub**: [link](https://github.com/ton-connect/sdk/tree/main/packages/sdk)
- **npm**: [link](https://www.npmjs.com/package/@tonconnect/sdk)
- **API Documentation**: [link](https://ton-connect.github.io/sdk/modules/_tonconnect_sdk.html)

Use this package to connect your app to TON wallets via the TonConnect protocol.
A full description can be found in the link above.

TonConnect UI React is a React UI kit for TonConnect SDK. Use it to connect your app to TON wallets via TonConnect protocol in React apps.
---

## Development
## 📗 TON Connect Protocol Models
- **GitHub**: [link](https://github.com/ton-connect/sdk/tree/main/packages/protocol)
- **npm**: [link](https://www.npmjs.com/package/@tonconnect/protocol)
- **API Documentation**: [link](https://ton-connect.github.io/sdk/modules/_tonconnect_protocol.html)

Follow the instructions in [DEVELOPERS.md](./DEVELOPERS.md) to setup the development environment.
This package contains protocol requests, responses, and event models, along with encoding and decoding functions. Use it to integrate TonConnect into your wallet app (written with TypeScript). For integrating TonConnect into your dApp, use [@tonconnect/sdk](https://www.npmjs.com/package/@tonconnect/sdk).

---

## 📙 TON Connect UI
- **GitHub**: [link](https://github.com/ton-connect/sdk/tree/main/packages/ui)
- **npm**: [link](https://www.npmjs.com/package/@tonconnect/ui)
- **API Documentation**: [link](https://ton-connect.github.io/sdk/modules/_tonconnect_ui.html)

TonConnect UI is a UI kit for TonConnect SDK. Use it to connect your app to TON wallets via the TonConnect protocol. It simplifies integration using UI elements like the "connect wallet button," "select wallet dialog," and confirmation modals.

---

## 📕 TON Connect UI React
- **GitHub**: [link](https://github.com/ton-connect/sdk/tree/main/packages/ui-react)
- **npm**: [link](https://www.npmjs.com/package/@tonconnect/ui-react)
- **API Documentation**: [link](https://ton-connect.github.io/sdk/modules/_tonconnect_ui_react.html)

TonConnect UI React is a React UI kit for TonConnect SDK. Use it to connect your app to TON wallets via the TonConnect protocol in React apps.

---

## 🛠️ Development

Follow the instructions in [DEVELOPERS.md](./DEVELOPERS.md) to set up the development environment.
12 changes: 6 additions & 6 deletions docs/classes/_tonconnect_protocol.SessionCrypto.html
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">SessionCrypto</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L5">packages/protocol/src/crypto/session-crypto.ts:5</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/protocol/src/crypto/session-crypto.ts#L5">packages/protocol/src/crypto/session-crypto.ts:5</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -55,14 +55,14 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> keyPair: <a href="../interfaces/_tonconnect_protocol.KeyPair.html" class="tsd-signature-type" data-tsd-kind="Interface">KeyPair</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="_tonconnect_protocol.SessionCrypto.html" class="tsd-signature-type" data-tsd-kind="Class">SessionCrypto</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L12">packages/protocol/src/crypto/session-crypto.ts:12</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/protocol/src/crypto/session-crypto.ts#L12">packages/protocol/src/crypto/session-crypto.ts:12</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="sessionId" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>session<wbr/>Id</span><a href="#sessionId" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">session<wbr/>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L10">packages/protocol/src/crypto/session-crypto.ts:10</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/protocol/src/crypto/session-crypto.ts#L10">packages/protocol/src/crypto/session-crypto.ts:10</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="decrypt" class="tsd-anchor"></a>
@@ -79,7 +79,7 @@ <h5>message: <span class="tsd-signature-type">Uint8Array</span></h5></li>
<h5>senderPublicKey: <span class="tsd-signature-type">Uint8Array</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L44">packages/protocol/src/crypto/session-crypto.ts:44</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/protocol/src/crypto/session-crypto.ts#L44">packages/protocol/src/crypto/session-crypto.ts:44</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="encrypt" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>encrypt</span><a href="#encrypt" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -94,15 +94,15 @@ <h5>message: <span class="tsd-signature-type">string</span></h5></li>
<h5>receiverPublicKey: <span class="tsd-signature-type">Uint8Array</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Uint8Array</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L32">packages/protocol/src/crypto/session-crypto.ts:32</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/protocol/src/crypto/session-crypto.ts#L32">packages/protocol/src/crypto/session-crypto.ts:32</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stringifyKeypair" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>stringify<wbr/>Keypair</span><a href="#stringifyKeypair" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-anchor-link" id="stringifyKeypair.stringifyKeypair-1">stringify<wbr/>Keypair<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/_tonconnect_protocol.KeyPair.html" class="tsd-signature-type" data-tsd-kind="Interface">KeyPair</a><a href="#stringifyKeypair.stringifyKeypair-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
<li class="tsd-description">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/_tonconnect_protocol.KeyPair.html" class="tsd-signature-type" data-tsd-kind="Interface">KeyPair</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L63">packages/protocol/src/crypto/session-crypto.ts:63</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/protocol/src/crypto/session-crypto.ts#L63">packages/protocol/src/crypto/session-crypto.ts:63</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
4 changes: 2 additions & 2 deletions docs/classes/_tonconnect_sdk.BadRequestError.html
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">BadRequestError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/protocol/responses/bad-request.error.ts#L6">packages/sdk/src/errors/protocol/responses/bad-request.error.ts:6</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/sdk/src/errors/protocol/responses/bad-request.error.ts#L6">packages/sdk/src/errors/protocol/responses/bad-request.error.ts:6</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -64,7 +64,7 @@ <h5><code class="tsd-tag ts-flagRest">Rest</code> <span class="tsd-signature-sym
<h4 class="tsd-returns-title">Returns <a href="_tonconnect_sdk.BadRequestError.html" class="tsd-signature-type" data-tsd-kind="Class">BadRequestError</a></h4><aside class="tsd-sources">
<p>Overrides <a href="_tonconnect_sdk.TonConnectError.html">TonConnectError</a>.<a href="_tonconnect_sdk.TonConnectError.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/protocol/responses/bad-request.error.ts#L11">packages/sdk/src/errors/protocol/responses/bad-request.error.ts:11</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/sdk/src/errors/protocol/responses/bad-request.error.ts#L11">packages/sdk/src/errors/protocol/responses/bad-request.error.ts:11</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="cause" class="tsd-anchor"></a>
6 changes: 3 additions & 3 deletions docs/classes/_tonconnect_sdk.BrowserEventDispatcher.html
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ <h4>Implements</h4>
<ul class="tsd-hierarchy">
<li><a href="../interfaces/_tonconnect_sdk.EventDispatcher.html" class="tsd-signature-type" data-tsd-kind="Interface">EventDispatcher</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/tracker/browser-event-dispatcher.ts#L7">packages/sdk/src/tracker/browser-event-dispatcher.ts:7</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/sdk/src/tracker/browser-event-dispatcher.ts#L7">packages/sdk/src/tracker/browser-event-dispatcher.ts:7</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -106,7 +106,7 @@ <h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <span class="
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_tonconnect_sdk.EventDispatcher.html">EventDispatcher</a>.<a href="../interfaces/_tonconnect_sdk.EventDispatcher.html#addEventListener">addEventListener</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/tracker/browser-event-dispatcher.ts#L35">packages/sdk/src/tracker/browser-event-dispatcher.ts:35</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/sdk/src/tracker/browser-event-dispatcher.ts#L35">packages/sdk/src/tracker/browser-event-dispatcher.ts:35</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="dispatchEvent" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>dispatch<wbr/>Event</span><a href="#dispatchEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -135,7 +135,7 @@ <h5>eventDetails: <span class="tsd-signature-type" data-tsd-kind="Type parameter
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_tonconnect_sdk.EventDispatcher.html">EventDispatcher</a>.<a href="../interfaces/_tonconnect_sdk.EventDispatcher.html#dispatchEvent">dispatchEvent</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/tracker/browser-event-dispatcher.ts#L20">packages/sdk/src/tracker/browser-event-dispatcher.ts:20</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b720b25/packages/sdk/src/tracker/browser-event-dispatcher.ts#L20">packages/sdk/src/tracker/browser-event-dispatcher.ts:20</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Loading