@ton/appkit-react 0.0.1-alpha.2 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +211 -1
  2. package/dist/esm/components/block/block.js +7 -0
  3. package/dist/esm/components/block/block.js.map +1 -0
  4. package/dist/esm/components/block/block.module.css +13 -0
  5. package/dist/esm/components/block/block.stories.js +27 -0
  6. package/dist/esm/components/block/block.stories.js.map +1 -0
  7. package/dist/esm/components/block/index.js +9 -0
  8. package/dist/esm/components/block/index.js.map +1 -0
  9. package/dist/esm/components/button/button.js +7 -0
  10. package/dist/esm/components/button/button.js.map +1 -0
  11. package/dist/esm/components/button/button.module.css +38 -0
  12. package/dist/esm/components/button/button.stories.js +30 -0
  13. package/dist/esm/components/button/button.stories.js.map +1 -0
  14. package/dist/esm/components/button/index.js +9 -0
  15. package/dist/esm/components/button/index.js.map +1 -0
  16. package/dist/esm/components/circle-icon/circle-icon.js +8 -0
  17. package/dist/esm/components/circle-icon/circle-icon.js.map +1 -0
  18. package/dist/esm/components/circle-icon/circle-icon.module.css +32 -0
  19. package/dist/esm/components/circle-icon/circle-icon.stories.js +56 -0
  20. package/dist/esm/components/circle-icon/circle-icon.stories.js.map +1 -0
  21. package/dist/esm/components/circle-icon/index.js +9 -0
  22. package/dist/esm/components/circle-icon/index.js.map +1 -0
  23. package/dist/esm/components/ton-icon/index.js +9 -0
  24. package/dist/esm/components/ton-icon/index.js.map +1 -0
  25. package/dist/esm/components/ton-icon/ton-icon.js +8 -0
  26. package/dist/esm/components/ton-icon/ton-icon.js.map +1 -0
  27. package/dist/esm/components/ton-icon/ton-icon.stories.js +56 -0
  28. package/dist/esm/components/ton-icon/ton-icon.stories.js.map +1 -0
  29. package/dist/esm/features/balances/components/balance-badge/balance-badge.js +33 -0
  30. package/dist/esm/features/balances/components/balance-badge/balance-badge.js.map +1 -0
  31. package/dist/esm/features/balances/components/balance-badge/balance-badge.module.css +21 -0
  32. package/dist/esm/features/balances/components/balance-badge/balance-badge.stories.js +23 -0
  33. package/dist/esm/features/balances/components/balance-badge/balance-badge.stories.js.map +1 -0
  34. package/dist/esm/features/balances/components/balance-badge/index.js +9 -0
  35. package/dist/esm/features/balances/components/balance-badge/index.js.map +1 -0
  36. package/dist/esm/features/balances/components/currency-item/currency-item.js +8 -0
  37. package/dist/esm/features/balances/components/currency-item/currency-item.js.map +1 -0
  38. package/dist/esm/features/balances/components/currency-item/currency-item.module.css +80 -0
  39. package/dist/esm/features/balances/components/currency-item/currency-item.stories.js +61 -0
  40. package/dist/esm/features/balances/components/currency-item/currency-item.stories.js.map +1 -0
  41. package/dist/esm/features/balances/components/currency-item/index.js +9 -0
  42. package/dist/esm/features/balances/components/currency-item/index.js.map +1 -0
  43. package/dist/esm/features/balances/components/send-jetton-button/index.js +9 -0
  44. package/dist/esm/features/balances/components/send-jetton-button/index.js.map +1 -0
  45. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js +43 -0
  46. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
  47. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.stories.js +41 -0
  48. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +1 -0
  49. package/dist/esm/features/balances/components/send-ton-button/index.js +9 -0
  50. package/dist/esm/features/balances/components/send-ton-button/index.js.map +1 -0
  51. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js +26 -0
  52. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
  53. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.stories.js +36 -0
  54. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.stories.js.map +1 -0
  55. package/dist/esm/features/balances/hooks/use-balance-by-address.js +18 -0
  56. package/dist/esm/features/balances/hooks/use-balance-by-address.js.map +1 -0
  57. package/dist/esm/features/balances/hooks/use-balance.js +17 -0
  58. package/dist/esm/features/balances/hooks/use-balance.js.map +1 -0
  59. package/dist/esm/features/balances/index.js +14 -0
  60. package/dist/esm/features/balances/index.js.map +1 -0
  61. package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js +18 -0
  62. package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
  63. package/dist/esm/features/jettons/hooks/use-jetton-info.js +18 -0
  64. package/dist/esm/features/jettons/hooks/use-jetton-info.js.map +1 -0
  65. package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js +18 -0
  66. package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
  67. package/dist/esm/features/jettons/hooks/use-jettons-by-address.js +18 -0
  68. package/dist/esm/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
  69. package/dist/esm/features/jettons/hooks/use-jettons.js +17 -0
  70. package/dist/esm/features/jettons/hooks/use-jettons.js.map +1 -0
  71. package/dist/esm/features/jettons/hooks/use-transfer-jetton.js +16 -0
  72. package/dist/esm/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
  73. package/dist/esm/features/jettons/index.js +14 -0
  74. package/dist/esm/features/jettons/index.js.map +1 -0
  75. package/dist/esm/features/network/hooks/use-network.js +17 -0
  76. package/dist/esm/features/network/hooks/use-network.js.map +1 -0
  77. package/dist/esm/features/network/hooks/use-networks.js +24 -0
  78. package/dist/esm/features/network/hooks/use-networks.js.map +1 -0
  79. package/dist/esm/features/network/index.js +11 -0
  80. package/dist/esm/features/network/index.js.map +1 -0
  81. package/dist/esm/features/nft/components/nft-item/index.js +9 -0
  82. package/dist/esm/features/nft/components/nft-item/index.js.map +1 -0
  83. package/dist/esm/features/nft/components/nft-item/nft-item.js +15 -0
  84. package/dist/esm/features/nft/components/nft-item/nft-item.js.map +1 -0
  85. package/dist/esm/features/nft/components/nft-item/nft-item.module.css +74 -0
  86. package/dist/esm/features/nft/components/nft-item/nft-item.stories.js +52 -0
  87. package/dist/esm/features/nft/components/nft-item/nft-item.stories.js.map +1 -0
  88. package/dist/esm/features/nft/hooks/use-nft.js +18 -0
  89. package/dist/esm/features/nft/hooks/use-nft.js.map +1 -0
  90. package/dist/esm/features/nft/hooks/use-nfts-by-address.js +18 -0
  91. package/dist/esm/features/nft/hooks/use-nfts-by-address.js.map +1 -0
  92. package/dist/esm/features/nft/hooks/use-nfts.js +17 -0
  93. package/dist/esm/features/nft/hooks/use-nfts.js.map +1 -0
  94. package/dist/esm/features/nft/hooks/use-transfer-nft.js +16 -0
  95. package/dist/esm/features/nft/hooks/use-transfer-nft.js.map +1 -0
  96. package/dist/esm/features/nft/index.js +13 -0
  97. package/dist/esm/features/nft/index.js.map +1 -0
  98. package/dist/esm/features/signing/hooks/use-sign-binary.js +27 -0
  99. package/dist/esm/features/signing/hooks/use-sign-binary.js.map +1 -0
  100. package/dist/esm/features/signing/hooks/use-sign-cell.js +28 -0
  101. package/dist/esm/features/signing/hooks/use-sign-cell.js.map +1 -0
  102. package/dist/esm/features/signing/hooks/use-sign-text.js +27 -0
  103. package/dist/esm/features/signing/hooks/use-sign-text.js.map +1 -0
  104. package/dist/esm/features/signing/index.js +11 -0
  105. package/dist/esm/features/signing/index.js.map +1 -0
  106. package/dist/esm/features/swap/hooks/use-build-swap-transaction.js +16 -0
  107. package/dist/esm/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
  108. package/dist/esm/features/swap/hooks/use-swap-quote.js +16 -0
  109. package/dist/esm/features/swap/hooks/use-swap-quote.js.map +1 -0
  110. package/dist/esm/features/swap/index.js +10 -0
  111. package/dist/esm/features/swap/index.js.map +1 -0
  112. package/dist/esm/features/transaction/components/transaction/index.js +9 -0
  113. package/dist/esm/features/transaction/components/transaction/index.js.map +1 -0
  114. package/dist/esm/features/transaction/components/transaction/transaction.js +41 -0
  115. package/dist/esm/features/transaction/components/transaction/transaction.js.map +1 -0
  116. package/dist/esm/features/transaction/components/transaction/transaction.stories.js +47 -0
  117. package/dist/esm/features/transaction/components/transaction/transaction.stories.js.map +1 -0
  118. package/dist/esm/features/transaction/components/transaction-provider/index.js +9 -0
  119. package/dist/esm/features/transaction/components/transaction-provider/index.js.map +1 -0
  120. package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js +64 -0
  121. package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
  122. package/dist/esm/features/transaction/hooks/use-send-transaction.js +16 -0
  123. package/dist/esm/features/transaction/hooks/use-send-transaction.js.map +1 -0
  124. package/dist/esm/features/transaction/hooks/use-transfer-ton.js +16 -0
  125. package/dist/esm/features/transaction/hooks/use-transfer-ton.js.map +1 -0
  126. package/dist/esm/features/transaction/index.js +11 -0
  127. package/dist/esm/features/transaction/index.js.map +1 -0
  128. package/dist/esm/features/wallets/components/connect-button/index.js +9 -0
  129. package/dist/esm/features/wallets/components/connect-button/index.js.map +1 -0
  130. package/dist/esm/features/wallets/hooks/use-address.js +17 -0
  131. package/dist/esm/features/wallets/hooks/use-address.js.map +1 -0
  132. package/dist/esm/features/wallets/hooks/use-connect.js +15 -0
  133. package/dist/esm/features/wallets/hooks/use-connect.js.map +1 -0
  134. package/dist/esm/features/wallets/hooks/use-connected-wallets.js +21 -0
  135. package/dist/esm/features/wallets/hooks/use-connected-wallets.js.map +1 -0
  136. package/dist/esm/features/wallets/hooks/use-connector-by-id.js +21 -0
  137. package/dist/esm/features/wallets/hooks/use-connector-by-id.js.map +1 -0
  138. package/dist/esm/features/wallets/hooks/use-connectors.js +21 -0
  139. package/dist/esm/features/wallets/hooks/use-connectors.js.map +1 -0
  140. package/dist/esm/features/wallets/hooks/use-disconnect.js +16 -0
  141. package/dist/esm/features/wallets/hooks/use-disconnect.js.map +1 -0
  142. package/dist/esm/features/wallets/hooks/use-selected-wallet.js +28 -0
  143. package/dist/esm/features/wallets/hooks/use-selected-wallet.js.map +1 -0
  144. package/dist/esm/features/wallets/index.js +16 -0
  145. package/dist/esm/features/wallets/index.js.map +1 -0
  146. package/dist/esm/hooks/use-app-kit-theme.js +17 -0
  147. package/dist/esm/hooks/use-app-kit-theme.js.map +1 -0
  148. package/dist/esm/hooks/use-app-kit.js +17 -0
  149. package/dist/esm/hooks/use-app-kit.js.map +1 -0
  150. package/dist/esm/hooks/use-i18n.js +17 -0
  151. package/dist/esm/hooks/use-i18n.js.map +1 -0
  152. package/dist/esm/index.js +26 -0
  153. package/dist/esm/index.js.map +1 -0
  154. package/dist/esm/libs/i18n.js +14 -0
  155. package/dist/esm/libs/i18n.js.map +1 -0
  156. package/dist/esm/libs/query.js +18 -0
  157. package/dist/esm/libs/query.js.map +1 -0
  158. package/dist/esm/locales/en.js +32 -0
  159. package/dist/esm/locales/en.js.map +1 -0
  160. package/dist/esm/providers/app-kit-provider.js +9 -0
  161. package/dist/esm/providers/app-kit-provider.js.map +1 -0
  162. package/dist/esm/providers/i18n-provider.js +51 -0
  163. package/dist/esm/providers/i18n-provider.js.map +1 -0
  164. package/dist/esm/styles/index.css +88 -0
  165. package/dist/esm/styles/typography.module.css +92 -0
  166. package/dist/esm/tonconnect/tonconnect-bridge.js +27 -0
  167. package/dist/esm/tonconnect/tonconnect-bridge.js.map +1 -0
  168. package/dist/esm/tsconfig.build.tsbuildinfo +1 -0
  169. package/dist/types/components/block/block.d.ts +13 -0
  170. package/dist/types/components/block/block.d.ts.map +1 -0
  171. package/dist/types/components/block/block.stories.d.ts +15 -0
  172. package/dist/types/components/block/block.stories.d.ts.map +1 -0
  173. package/dist/types/components/block/index.d.ts +9 -0
  174. package/dist/types/components/block/index.d.ts.map +1 -0
  175. package/dist/types/components/button/button.d.ts +10 -0
  176. package/dist/types/components/button/button.d.ts.map +1 -0
  177. package/dist/types/components/button/button.stories.d.ts +16 -0
  178. package/dist/types/components/button/button.stories.d.ts.map +1 -0
  179. package/dist/types/components/button/index.d.ts +9 -0
  180. package/dist/types/components/button/index.d.ts.map +1 -0
  181. package/dist/types/components/circle-icon/circle-icon.d.ts +16 -0
  182. package/dist/types/components/circle-icon/circle-icon.d.ts.map +1 -0
  183. package/dist/types/components/circle-icon/circle-icon.stories.d.ts +18 -0
  184. package/dist/types/components/circle-icon/circle-icon.stories.d.ts.map +1 -0
  185. package/dist/types/components/circle-icon/index.d.ts +9 -0
  186. package/dist/types/components/circle-icon/index.d.ts.map +1 -0
  187. package/dist/types/components/ton-icon/index.d.ts +9 -0
  188. package/dist/types/components/ton-icon/index.d.ts.map +1 -0
  189. package/dist/types/components/ton-icon/ton-icon.d.ts +14 -0
  190. package/dist/types/components/ton-icon/ton-icon.d.ts.map +1 -0
  191. package/dist/types/components/ton-icon/ton-icon.stories.d.ts +20 -0
  192. package/dist/types/components/ton-icon/ton-icon.stories.d.ts.map +1 -0
  193. package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts +21 -0
  194. package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
  195. package/dist/types/features/balances/components/balance-badge/balance-badge.stories.d.ts +16 -0
  196. package/dist/types/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +1 -0
  197. package/dist/types/features/balances/components/balance-badge/index.d.ts +9 -0
  198. package/dist/types/features/balances/components/balance-badge/index.d.ts.map +1 -0
  199. package/dist/types/features/balances/components/currency-item/currency-item.d.ts +17 -0
  200. package/dist/types/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
  201. package/dist/types/features/balances/components/currency-item/currency-item.stories.d.ts +19 -0
  202. package/dist/types/features/balances/components/currency-item/currency-item.stories.d.ts.map +1 -0
  203. package/dist/types/features/balances/components/currency-item/index.d.ts +9 -0
  204. package/dist/types/features/balances/components/currency-item/index.d.ts.map +1 -0
  205. package/dist/types/features/balances/components/send-jetton-button/index.d.ts +9 -0
  206. package/dist/types/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
  207. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts +21 -0
  208. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
  209. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +22 -0
  210. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +1 -0
  211. package/dist/types/features/balances/components/send-ton-button/index.d.ts +9 -0
  212. package/dist/types/features/balances/components/send-ton-button/index.d.ts.map +1 -0
  213. package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts +16 -0
  214. package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
  215. package/dist/types/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +21 -0
  216. package/dist/types/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +1 -0
  217. package/dist/types/features/balances/hooks/use-balance-by-address.d.ts +16 -0
  218. package/dist/types/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
  219. package/dist/types/features/balances/hooks/use-balance.d.ts +16 -0
  220. package/dist/types/features/balances/hooks/use-balance.d.ts.map +1 -0
  221. package/dist/types/features/balances/index.d.ts +14 -0
  222. package/dist/types/features/balances/index.d.ts.map +1 -0
  223. package/dist/types/features/jettons/hooks/use-jetton-balance-by-address.d.ts +16 -0
  224. package/dist/types/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
  225. package/dist/types/features/jettons/hooks/use-jetton-info.d.ts +16 -0
  226. package/dist/types/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
  227. package/dist/types/features/jettons/hooks/use-jetton-wallet-address.d.ts +16 -0
  228. package/dist/types/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
  229. package/dist/types/features/jettons/hooks/use-jettons-by-address.d.ts +16 -0
  230. package/dist/types/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
  231. package/dist/types/features/jettons/hooks/use-jettons.d.ts +16 -0
  232. package/dist/types/features/jettons/hooks/use-jettons.d.ts.map +1 -0
  233. package/dist/types/features/jettons/hooks/use-transfer-jetton.d.ts +14 -0
  234. package/dist/types/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
  235. package/dist/types/features/jettons/index.d.ts +14 -0
  236. package/dist/types/features/jettons/index.d.ts.map +1 -0
  237. package/dist/types/features/network/hooks/use-network.d.ts +14 -0
  238. package/dist/types/features/network/hooks/use-network.d.ts.map +1 -0
  239. package/dist/types/features/network/hooks/use-networks.d.ts +14 -0
  240. package/dist/types/features/network/hooks/use-networks.d.ts.map +1 -0
  241. package/dist/types/features/network/index.d.ts +10 -0
  242. package/dist/types/features/network/index.d.ts.map +1 -0
  243. package/dist/types/features/nft/components/nft-item/index.d.ts +9 -0
  244. package/dist/types/features/nft/components/nft-item/index.d.ts.map +1 -0
  245. package/dist/types/features/nft/components/nft-item/nft-item.d.ts +14 -0
  246. package/dist/types/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
  247. package/dist/types/features/nft/components/nft-item/nft-item.stories.d.ts +25 -0
  248. package/dist/types/features/nft/components/nft-item/nft-item.stories.d.ts.map +1 -0
  249. package/dist/types/features/nft/hooks/use-nft.d.ts +16 -0
  250. package/dist/types/features/nft/hooks/use-nft.d.ts.map +1 -0
  251. package/dist/types/features/nft/hooks/use-nfts-by-address.d.ts +16 -0
  252. package/dist/types/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
  253. package/dist/types/features/nft/hooks/use-nfts.d.ts +16 -0
  254. package/dist/types/features/nft/hooks/use-nfts.d.ts.map +1 -0
  255. package/dist/types/features/nft/hooks/use-transfer-nft.d.ts +14 -0
  256. package/dist/types/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
  257. package/dist/types/features/nft/index.d.ts +13 -0
  258. package/dist/types/features/nft/index.d.ts.map +1 -0
  259. package/dist/types/features/signing/hooks/use-sign-binary.d.ts +25 -0
  260. package/dist/types/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
  261. package/dist/types/features/signing/hooks/use-sign-cell.d.ts +26 -0
  262. package/dist/types/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
  263. package/dist/types/features/signing/hooks/use-sign-text.d.ts +25 -0
  264. package/dist/types/features/signing/hooks/use-sign-text.d.ts.map +1 -0
  265. package/dist/types/features/signing/index.d.ts +11 -0
  266. package/dist/types/features/signing/index.d.ts.map +1 -0
  267. package/dist/types/features/swap/hooks/use-build-swap-transaction.d.ts +13 -0
  268. package/dist/types/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
  269. package/dist/types/features/swap/hooks/use-swap-quote.d.ts +13 -0
  270. package/dist/types/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
  271. package/dist/types/features/swap/index.d.ts +10 -0
  272. package/dist/types/features/swap/index.d.ts.map +1 -0
  273. package/dist/types/features/transaction/components/transaction/index.d.ts +10 -0
  274. package/dist/types/features/transaction/components/transaction/index.d.ts.map +1 -0
  275. package/dist/types/features/transaction/components/transaction/transaction.d.ts +30 -0
  276. package/dist/types/features/transaction/components/transaction/transaction.d.ts.map +1 -0
  277. package/dist/types/features/transaction/components/transaction/transaction.stories.d.ts +23 -0
  278. package/dist/types/features/transaction/components/transaction/transaction.stories.d.ts.map +1 -0
  279. package/dist/types/features/transaction/components/transaction-provider/index.d.ts +10 -0
  280. package/dist/types/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
  281. package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts +36 -0
  282. package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
  283. package/dist/types/features/transaction/hooks/use-send-transaction.d.ts +14 -0
  284. package/dist/types/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
  285. package/dist/types/features/transaction/hooks/use-transfer-ton.d.ts +14 -0
  286. package/dist/types/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
  287. package/dist/types/features/transaction/index.d.ts +11 -0
  288. package/dist/types/features/transaction/index.d.ts.map +1 -0
  289. package/dist/types/features/wallets/components/connect-button/index.d.ts +9 -0
  290. package/dist/types/features/wallets/components/connect-button/index.d.ts.map +1 -0
  291. package/dist/types/features/wallets/hooks/use-address.d.ts +13 -0
  292. package/dist/types/features/wallets/hooks/use-address.d.ts.map +1 -0
  293. package/dist/types/features/wallets/hooks/use-connect.d.ts +14 -0
  294. package/dist/types/features/wallets/hooks/use-connect.d.ts.map +1 -0
  295. package/dist/types/features/wallets/hooks/use-connected-wallets.d.ts +11 -0
  296. package/dist/types/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
  297. package/dist/types/features/wallets/hooks/use-connector-by-id.d.ts +10 -0
  298. package/dist/types/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
  299. package/dist/types/features/wallets/hooks/use-connectors.d.ts +11 -0
  300. package/dist/types/features/wallets/hooks/use-connectors.d.ts.map +1 -0
  301. package/dist/types/features/wallets/hooks/use-disconnect.d.ts +14 -0
  302. package/dist/types/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
  303. package/dist/types/features/wallets/hooks/use-selected-wallet.d.ts +14 -0
  304. package/dist/types/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
  305. package/dist/types/features/wallets/index.d.ts +16 -0
  306. package/dist/types/features/wallets/index.d.ts.map +1 -0
  307. package/dist/types/hooks/use-app-kit-theme.d.ts +10 -0
  308. package/dist/types/hooks/use-app-kit-theme.d.ts.map +1 -0
  309. package/dist/types/hooks/use-app-kit.d.ts +9 -0
  310. package/dist/types/hooks/use-app-kit.d.ts.map +1 -0
  311. package/dist/types/hooks/use-i18n.d.ts +9 -0
  312. package/dist/types/hooks/use-i18n.d.ts.map +1 -0
  313. package/dist/types/index.d.ts +26 -0
  314. package/dist/types/index.d.ts.map +1 -0
  315. package/dist/types/libs/i18n.d.ts +34 -0
  316. package/dist/types/libs/i18n.d.ts.map +1 -0
  317. package/dist/types/libs/query.d.ts +26 -0
  318. package/dist/types/libs/query.d.ts.map +1 -0
  319. package/dist/types/locales/en.d.ts +29 -0
  320. package/dist/types/locales/en.d.ts.map +1 -0
  321. package/dist/types/providers/app-kit-provider.d.ts +15 -0
  322. package/dist/types/providers/app-kit-provider.d.ts.map +1 -0
  323. package/dist/types/providers/i18n-provider.d.ts +22 -0
  324. package/dist/types/providers/i18n-provider.d.ts.map +1 -0
  325. package/dist/types/tonconnect/tonconnect-bridge.d.ts +19 -0
  326. package/dist/types/tonconnect/tonconnect-bridge.d.ts.map +1 -0
  327. package/package.json +70 -7
  328. package/src/components/block/block.tsx +20 -0
  329. package/src/components/block/index.ts +9 -0
  330. package/src/components/button/button.tsx +16 -0
  331. package/src/components/button/index.ts +9 -0
  332. package/src/components/circle-icon/circle-icon.tsx +34 -0
  333. package/src/components/circle-icon/index.ts +9 -0
  334. package/src/components/ton-icon/index.ts +9 -0
  335. package/src/components/ton-icon/ton-icon.tsx +46 -0
  336. package/src/features/balances/components/balance-badge/balance-badge.tsx +47 -0
  337. package/src/features/balances/components/balance-badge/index.ts +9 -0
  338. package/src/features/balances/components/currency-item/currency-item.tsx +59 -0
  339. package/src/features/balances/components/currency-item/index.ts +9 -0
  340. package/src/features/balances/components/send-jetton-button/index.ts +9 -0
  341. package/src/features/balances/components/send-jetton-button/send-jetton-button.tsx +76 -0
  342. package/src/features/balances/components/send-ton-button/index.ts +9 -0
  343. package/src/features/balances/components/send-ton-button/send-ton-button.tsx +44 -0
  344. package/src/features/balances/hooks/use-balance-by-address.ts +33 -0
  345. package/src/features/balances/hooks/use-balance.ts +28 -0
  346. package/src/features/balances/index.ts +15 -0
  347. package/src/features/jettons/hooks/use-jetton-balance-by-address.ts +37 -0
  348. package/src/features/jettons/hooks/use-jetton-info.ts +32 -0
  349. package/src/features/jettons/hooks/use-jetton-wallet-address.ts +37 -0
  350. package/src/features/jettons/hooks/use-jettons-by-address.ts +33 -0
  351. package/src/features/jettons/hooks/use-jettons.ts +28 -0
  352. package/src/features/jettons/hooks/use-transfer-jetton.ts +44 -0
  353. package/src/features/jettons/index.ts +14 -0
  354. package/src/features/network/hooks/use-network.ts +23 -0
  355. package/src/features/network/hooks/use-networks.ts +35 -0
  356. package/src/features/network/index.ts +11 -0
  357. package/src/features/nft/components/nft-item/index.ts +9 -0
  358. package/src/features/nft/components/nft-item/nft-item.tsx +57 -0
  359. package/src/features/nft/hooks/use-nft.ts +29 -0
  360. package/src/features/nft/hooks/use-nfts-by-address.ts +29 -0
  361. package/src/features/nft/hooks/use-nfts.ts +28 -0
  362. package/src/features/nft/hooks/use-transfer-nft.ts +44 -0
  363. package/src/features/nft/index.ts +14 -0
  364. package/src/features/signing/hooks/use-sign-binary.ts +43 -0
  365. package/src/features/signing/hooks/use-sign-cell.ts +44 -0
  366. package/src/features/signing/hooks/use-sign-text.ts +43 -0
  367. package/src/features/signing/index.ts +11 -0
  368. package/src/features/swap/hooks/use-build-swap-transaction.ts +38 -0
  369. package/src/features/swap/hooks/use-swap-quote.ts +31 -0
  370. package/src/features/swap/index.ts +10 -0
  371. package/src/features/transaction/components/transaction/index.ts +10 -0
  372. package/src/features/transaction/components/transaction/transaction.tsx +105 -0
  373. package/src/features/transaction/components/transaction-provider/index.ts +10 -0
  374. package/src/features/transaction/components/transaction-provider/transaction-provider.tsx +114 -0
  375. package/src/features/transaction/hooks/use-send-transaction.ts +44 -0
  376. package/src/features/transaction/hooks/use-transfer-ton.ts +44 -0
  377. package/src/features/transaction/index.ts +12 -0
  378. package/src/features/wallets/components/connect-button/index.ts +9 -0
  379. package/src/features/wallets/hooks/use-address.ts +22 -0
  380. package/src/features/wallets/hooks/use-connect.ts +37 -0
  381. package/src/features/wallets/hooks/use-connected-wallets.ts +32 -0
  382. package/src/features/wallets/hooks/use-connector-by-id.ts +30 -0
  383. package/src/features/wallets/hooks/use-connectors.ts +32 -0
  384. package/src/features/wallets/hooks/use-disconnect.ts +39 -0
  385. package/src/features/wallets/hooks/use-selected-wallet.ts +44 -0
  386. package/src/features/wallets/index.ts +18 -0
  387. package/src/global.d.ts +12 -0
  388. package/src/hooks/use-app-kit-theme.ts +22 -0
  389. package/src/hooks/use-app-kit.ts +21 -0
  390. package/src/hooks/use-i18n.ts +21 -0
  391. package/src/index.ts +29 -0
  392. package/src/libs/i18n.ts +20 -0
  393. package/src/libs/query.ts +69 -0
  394. package/src/locales/en.ts +35 -0
  395. package/src/providers/app-kit-provider.tsx +30 -0
  396. package/src/providers/i18n-provider.tsx +83 -0
  397. package/src/tonconnect/tonconnect-bridge.tsx +39 -0
@@ -0,0 +1,21 @@
1
+ .balance {
2
+ composes: bodyMedium from "../../../../styles/typography.module.css";
3
+
4
+ width: fit-content;
5
+ gap: 12px;
6
+ padding: 12px;
7
+ color: var(--ta-color-text-secondary);
8
+ line-height: 1;
9
+ }
10
+
11
+ .balanceContainer {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 4px;
15
+ }
16
+
17
+ .ticker {
18
+ composes: bodyBold from "../../../../styles/typography.module.css";
19
+ color: var(--ta-color-text);
20
+ line-height: 1;
21
+ }
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { BalanceBadge } from './balance-badge';
3
+ const meta = {
4
+ title: 'Public/Features/Balances/BalanceBadge',
5
+ tags: ['autodocs'],
6
+ parameters: {
7
+ layout: 'centered',
8
+ },
9
+ };
10
+ export default meta;
11
+ export const TonBalance = {
12
+ render: () => (_jsxs(BalanceBadge.Container, { children: [_jsx(BalanceBadge.Icon, { src: "https://ton.org/download/ton_symbol.png", alt: "TON", size: 40 }), _jsxs(BalanceBadge.BalanceBlock, { children: [_jsx(BalanceBadge.Balance, { balance: "1500000000", decimals: 9 }), _jsx(BalanceBadge.Symbol, { symbol: "TON" })] })] })),
13
+ };
14
+ export const JettonBalance = {
15
+ render: () => (_jsxs(BalanceBadge.Container, { children: [_jsx(BalanceBadge.Icon, { fallback: "U", alt: "USDT", size: 40 }), _jsxs(BalanceBadge.BalanceBlock, { children: [_jsx(BalanceBadge.Balance, { balance: "100000000", decimals: 6 }), _jsx(BalanceBadge.Symbol, { symbol: "USDT" })] })] })),
16
+ };
17
+ export const ZeroBalance = {
18
+ render: () => (_jsxs(BalanceBadge.Container, { children: [_jsx(BalanceBadge.Icon, { src: "https://ton.org/download/ton_symbol.png", alt: "TON", size: 40 }), _jsxs(BalanceBadge.BalanceBlock, { children: [_jsx(BalanceBadge.Balance, { balance: "", decimals: 9 }), _jsx(BalanceBadge.Symbol, { symbol: "TON" })] })] })),
19
+ };
20
+ export const LargeBalance = {
21
+ render: () => (_jsxs(BalanceBadge.Container, { children: [_jsx(BalanceBadge.Icon, { src: "https://ton.org/download/ton_symbol.png", alt: "TON", size: 40 }), _jsxs(BalanceBadge.BalanceBlock, { children: [_jsx(BalanceBadge.Balance, { balance: "999999999999999999", decimals: 9 }), _jsx(BalanceBadge.Symbol, { symbol: "TON" })] })] })),
22
+ };
23
+ //# sourceMappingURL=balance-badge.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"balance-badge.stories.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/balance-badge/balance-badge.stories.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,uCAAuC;IAC9C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACR,MAAM,EAAE,UAAU;KACrB;CACJ,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,UAAU,GAAU;IAC7B,MAAM,EAAE,GAAG,EAAE,CAAC,CACV,MAAC,YAAY,CAAC,SAAS,eACnB,KAAC,YAAY,CAAC,IAAI,IAAC,GAAG,EAAC,yCAAyC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAE,EAAE,GAAI,EACvF,MAAC,YAAY,CAAC,YAAY,eACtB,KAAC,YAAY,CAAC,OAAO,IAAC,OAAO,EAAC,YAAY,EAAC,QAAQ,EAAE,CAAC,GAAI,EAC1D,KAAC,YAAY,CAAC,MAAM,IAAC,MAAM,EAAC,KAAK,GAAG,IACZ,IACP,CAC5B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAU;IAChC,MAAM,EAAE,GAAG,EAAE,CAAC,CACV,MAAC,YAAY,CAAC,SAAS,eACnB,KAAC,YAAY,CAAC,IAAI,IAAC,QAAQ,EAAC,GAAG,EAAC,GAAG,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,GAAI,EACvD,MAAC,YAAY,CAAC,YAAY,eACtB,KAAC,YAAY,CAAC,OAAO,IAAC,OAAO,EAAC,WAAW,EAAC,QAAQ,EAAE,CAAC,GAAI,EACzD,KAAC,YAAY,CAAC,MAAM,IAAC,MAAM,EAAC,MAAM,GAAG,IACb,IACP,CAC5B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAU;IAC9B,MAAM,EAAE,GAAG,EAAE,CAAC,CACV,MAAC,YAAY,CAAC,SAAS,eACnB,KAAC,YAAY,CAAC,IAAI,IAAC,GAAG,EAAC,yCAAyC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAE,EAAE,GAAI,EACvF,MAAC,YAAY,CAAC,YAAY,eACtB,KAAC,YAAY,CAAC,OAAO,IAAC,OAAO,EAAC,EAAE,EAAC,QAAQ,EAAE,CAAC,GAAI,EAChD,KAAC,YAAY,CAAC,MAAM,IAAC,MAAM,EAAC,KAAK,GAAG,IACZ,IACP,CAC5B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAU;IAC/B,MAAM,EAAE,GAAG,EAAE,CAAC,CACV,MAAC,YAAY,CAAC,SAAS,eACnB,KAAC,YAAY,CAAC,IAAI,IAAC,GAAG,EAAC,yCAAyC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAE,EAAE,GAAI,EACvF,MAAC,YAAY,CAAC,YAAY,eACtB,KAAC,YAAY,CAAC,OAAO,IAAC,OAAO,EAAC,oBAAoB,EAAC,QAAQ,EAAE,CAAC,GAAI,EAClE,KAAC,YAAY,CAAC,MAAM,IAAC,MAAM,EAAC,KAAK,GAAG,IACZ,IACP,CAC5B;CACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export { BalanceBadge } from './balance-badge';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/balance-badge/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import clsx from 'clsx';
3
+ import { CircleIcon } from '../../../../components/circle-icon';
4
+ import styles from './currency-item.module.css';
5
+ export const CurrencyItem = ({ ticker, name, balance, icon, isVerified, className, ...props }) => {
6
+ return (_jsxs("button", { className: clsx(styles.currencyItem, className), ...props, children: [_jsx(CircleIcon, { className: styles.icon, size: 40, src: icon, fallback: ticker[0], alt: ticker }), _jsxs("div", { className: styles.info, children: [_jsxs("div", { className: styles.header, children: [_jsx("h4", { className: styles.name, children: name || ticker }), isVerified && (_jsx("svg", { className: styles.verified, fill: "currentColor", viewBox: "0 0 20 20", children: _jsx("path", { fillRule: "evenodd", d: "M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", clipRule: "evenodd" }) }))] }), _jsx("p", { className: styles.ticker, children: ticker })] }), _jsx("div", { className: styles.balance, children: _jsx("p", { children: balance ?? '0' }) })] }));
7
+ };
8
+ //# sourceMappingURL=currency-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-item.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/currency-item/currency-item.tsx"],"names":[],"mappings":";AASA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAUhD,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,EAChD,MAAM,EACN,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EACX,EAAE,EAAE;IACD,OAAO,CACH,kBAAQ,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,KAAM,KAAK,aAC9D,KAAC,UAAU,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAI,EAE7F,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACvB,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aACzB,aAAI,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,IAAI,MAAM,GAAM,EAEhD,UAAU,IAAI,CACX,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,YACpE,eACI,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,iiBAAiiB,EACniB,QAAQ,EAAC,SAAS,GACpB,GACA,CACT,IACC,EAEN,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,YAAG,MAAM,GAAK,IACvC,EAEN,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC1B,sBAAI,OAAO,IAAI,GAAG,GAAK,GACrB,IACD,CACZ,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,80 @@
1
+ .currencyItem {
2
+ box-sizing: border-box;
3
+ border-radius: var(--ta-border-radius-l);
4
+ width: 100%;
5
+ display: flex;
6
+ flex-direction: row;
7
+ align-items: center;
8
+ gap: 12px;
9
+ padding: 12px;
10
+ background-color: var(--ta-color-block);
11
+ transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
12
+ cursor: pointer;
13
+ border: 1px solid transparent;
14
+ outline: none;
15
+ }
16
+
17
+ .currencyItem:hover {
18
+ border-color: var(--ta-color-primary);
19
+ }
20
+
21
+ .icon {
22
+ width: 40px;
23
+ height: 40px;
24
+ background-color: var(--ta-color-background-secondary);
25
+ border-radius: var(--ta-border-radius-full);
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ overflow: hidden;
30
+ flex-shrink: 0;
31
+ }
32
+
33
+ .info {
34
+ flex: 1;
35
+ min-width: 0;
36
+ display: flex;
37
+ flex-direction: column;
38
+ align-items: flex-start;
39
+ }
40
+
41
+ .header {
42
+ display: flex;
43
+ align-items: center;
44
+ gap: 8px;
45
+ }
46
+
47
+ .name {
48
+ composes: bodyBold from "../../../../styles/typography.module.css";
49
+
50
+ color: var(--ta-color-text);
51
+ white-space: nowrap;
52
+ overflow: hidden;
53
+ text-overflow: ellipsis;
54
+ margin: 0;
55
+ }
56
+
57
+ .verified {
58
+ width: 16px;
59
+ height: 16px;
60
+ color: var(--ta-color-primary);
61
+ flex-shrink: 0;
62
+ }
63
+
64
+ .ticker {
65
+ composes: bodyMedium from "../../../../styles/typography.module.css";
66
+
67
+ color: var(--ta-color-text-secondary);
68
+ margin: 0;
69
+ }
70
+
71
+ .details {
72
+ text-align: right;
73
+ }
74
+
75
+ .balance {
76
+ composes: bodyMedium from "../../../../styles/typography.module.css";
77
+
78
+ color: var(--ta-color-text);
79
+ margin: 0;
80
+ }
@@ -0,0 +1,61 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { fn } from '@storybook/test';
3
+ import { CurrencyItem } from './currency-item';
4
+ const meta = {
5
+ title: 'Public/Features/Balances/CurrencyItem',
6
+ component: CurrencyItem,
7
+ tags: ['autodocs'],
8
+ parameters: {
9
+ layout: 'centered',
10
+ },
11
+ args: {
12
+ onClick: fn(),
13
+ },
14
+ };
15
+ export default meta;
16
+ export const TON = {
17
+ args: {
18
+ ticker: 'TON',
19
+ name: 'Toncoin',
20
+ balance: '55',
21
+ icon: 'https://ton.org/download/ton_symbol.png',
22
+ isVerified: true,
23
+ },
24
+ };
25
+ export const USDT = {
26
+ args: {
27
+ ticker: 'USDT',
28
+ name: 'Tether USD',
29
+ balance: '10',
30
+ isVerified: true,
31
+ },
32
+ };
33
+ export const Unverified = {
34
+ args: {
35
+ ticker: 'MEME',
36
+ name: 'Meme Token',
37
+ balance: '10000',
38
+ isVerified: false,
39
+ },
40
+ };
41
+ export const ZeroBalance = {
42
+ args: {
43
+ ticker: 'TON',
44
+ name: 'Toncoin',
45
+ balance: '0',
46
+ icon: 'https://ton.org/download/ton_symbol.png',
47
+ isVerified: true,
48
+ },
49
+ };
50
+ export const NoBalance = {
51
+ args: {
52
+ ticker: 'TON',
53
+ name: 'Toncoin',
54
+ icon: 'https://ton.org/download/ton_symbol.png',
55
+ isVerified: true,
56
+ },
57
+ };
58
+ export const CurrencyList = {
59
+ render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '4px', width: '320px' }, children: [_jsx(CurrencyItem, { ticker: "TON", name: "Toncoin", balance: "55", icon: "https://ton.org/download/ton_symbol.png", isVerified: true, onClick: fn() }), _jsx(CurrencyItem, { ticker: "USDT", name: "Tether USD", balance: "10", isVerified: true, onClick: fn() }), _jsx(CurrencyItem, { ticker: "NOT", name: "Notcoin", balance: "500", isVerified: true, onClick: fn() })] })),
60
+ };
61
+ //# sourceMappingURL=currency-item.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-item.stories.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/currency-item/currency-item.stories.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,IAAI,GAA8B;IACpC,KAAK,EAAE,uCAAuC;IAC9C,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACR,MAAM,EAAE,UAAU;KACrB;IACD,IAAI,EAAE;QACF,OAAO,EAAE,EAAE,EAAE;KAChB;CACJ,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,GAAG,GAAU;IACtB,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,IAAI;KACnB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAU;IACvB,IAAI,EAAE;QACF,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KACnB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAU;IAC7B,IAAI,EAAE;QACF,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,OAAO;QAChB,UAAU,EAAE,KAAK;KACpB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAU;IAC9B,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,GAAG;QACZ,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,IAAI;KACnB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC5B,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,IAAI;KACnB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAU;IAC/B,MAAM,EAAE,GAAG,EAAE,CAAC,CACV,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,aAChF,KAAC,YAAY,IACT,MAAM,EAAC,KAAK,EACZ,IAAI,EAAC,SAAS,EACd,OAAO,EAAC,IAAI,EACZ,IAAI,EAAC,yCAAyC,EAC9C,UAAU,EAAE,IAAI,EAChB,OAAO,EAAE,EAAE,EAAE,GACf,EACF,KAAC,YAAY,IAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,YAAY,EAAC,OAAO,EAAC,IAAI,EAAC,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAI,EAC9F,KAAC,YAAY,IAAC,MAAM,EAAC,KAAK,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAC,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAI,IACzF,CACT;CACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './currency-item';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/currency-item/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './send-jetton-button';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-jetton-button/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) TonTech.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ *
8
+ */
9
+ import { useCallback, useMemo } from 'react';
10
+ import { createTransferJettonTransaction, formatUnits, parseUnits } from '@ton/appkit';
11
+ import { useI18n } from '../../../../hooks/use-i18n';
12
+ import { useAppKit } from '../../../../hooks/use-app-kit';
13
+ import { Transaction } from '../../../transaction';
14
+ export const SendJettonButton = ({ recipientAddress, amount, comment, jetton, ...props }) => {
15
+ const appKit = useAppKit();
16
+ const { t } = useI18n();
17
+ const createTransferTransaction = useCallback(async () => {
18
+ if (!jetton.address) {
19
+ throw new Error('Jetton address is required');
20
+ }
21
+ if (!jetton.decimals) {
22
+ throw new Error('Jetton decimals is required');
23
+ }
24
+ return createTransferJettonTransaction(appKit, {
25
+ jettonAddress: jetton.address,
26
+ recipientAddress,
27
+ amount,
28
+ comment,
29
+ jettonDecimals: jetton.decimals,
30
+ });
31
+ }, [appKit, recipientAddress, amount, comment, jetton]);
32
+ const text = useMemo(() => {
33
+ if (amount && jetton.decimals) {
34
+ return t('balances.sendJettonWithAmount', {
35
+ amount: formatUnits(parseUnits(amount, jetton.decimals), jetton.decimals).toString(),
36
+ symbol: jetton.symbol,
37
+ });
38
+ }
39
+ return t('balances.sendJetton', { symbol: jetton.symbol, amount });
40
+ }, [t, amount, jetton]);
41
+ return (_jsx(Transaction, { request: createTransferTransaction, text: text, disabled: !recipientAddress || !amount || !jetton.address || !jetton.decimals, ...props }));
42
+ };
43
+ //# sourceMappingURL=send-jetton-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-jetton-button.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-jetton-button/send-jetton-button.tsx"],"names":[],"mappings":";AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,+BAA+B,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEvF,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAanD,MAAM,CAAC,MAAM,gBAAgB,GAA8B,CAAC,EACxD,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACX,EAAE,EAAE;IACD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC;IAExB,MAAM,yBAAyB,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;QACrD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,+BAA+B,CAAC,MAAM,EAAE;YAC3C,aAAa,EAAE,MAAM,CAAC,OAAO;YAC7B,gBAAgB;YAChB,MAAM;YACN,OAAO;YACP,cAAc,EAAE,MAAM,CAAC,QAAQ;SAClC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAExD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE;QACtB,IAAI,MAAM,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YAC5B,OAAO,CAAC,CAAC,+BAA+B,EAAE;gBACtC,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;gBACpF,MAAM,EAAE,MAAM,CAAC,MAAM;aACxB,CAAC,CAAC;QACP,CAAC;QAED,OAAO,CAAC,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACvE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAExB,OAAO,CACH,KAAC,WAAW,IACR,OAAO,EAAE,yBAAyB,EAClC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,gBAAgB,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,KACzE,KAAK,GACX,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button } from '../../../../components/button';
3
+ const SendJettonButtonPreview = ({ text = 'Send USDT', isLoading = false, disabled = false, }) => {
4
+ return _jsx(Button, { disabled: disabled || isLoading, children: isLoading ? 'Processing...' : text });
5
+ };
6
+ const meta = {
7
+ title: 'Public/Features/Balances/SendJettonButton',
8
+ component: SendJettonButtonPreview,
9
+ tags: ['autodocs'],
10
+ parameters: {
11
+ layout: 'centered',
12
+ },
13
+ };
14
+ export default meta;
15
+ export const USDT = {
16
+ args: {
17
+ text: 'Send 100 USDT',
18
+ },
19
+ };
20
+ export const NOT = {
21
+ args: {
22
+ text: 'Send 500 NOT',
23
+ },
24
+ };
25
+ export const WithoutAmount = {
26
+ args: {
27
+ text: 'Send USDT',
28
+ },
29
+ };
30
+ export const Loading = {
31
+ args: {
32
+ isLoading: true,
33
+ },
34
+ };
35
+ export const Disabled = {
36
+ args: {
37
+ text: 'Send 100 USDT',
38
+ disabled: true,
39
+ },
40
+ };
41
+ //# sourceMappingURL=send-jetton-button.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-jetton-button.stories.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-jetton-button/send-jetton-button.stories.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEvD,MAAM,uBAAuB,GAAG,CAAC,EAC7B,IAAI,GAAG,WAAW,EAClB,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,GAKnB,EAAE,EAAE;IACD,OAAO,KAAC,MAAM,IAAC,QAAQ,EAAE,QAAQ,IAAI,SAAS,YAAG,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,GAAU,CAAC;AAClG,CAAC,CAAC;AAEF,MAAM,IAAI,GAAyC;IAC/C,KAAK,EAAE,2CAA2C;IAClD,SAAS,EAAE,uBAAuB;IAClC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACR,MAAM,EAAE,UAAU;KACrB;CACJ,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,IAAI,GAAU;IACvB,IAAI,EAAE;QACF,IAAI,EAAE,eAAe;KACxB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAU;IACtB,IAAI,EAAE;QACF,IAAI,EAAE,cAAc;KACvB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAU;IAChC,IAAI,EAAE;QACF,IAAI,EAAE,WAAW;KACpB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC1B,IAAI,EAAE;QACF,SAAS,EAAE,IAAI;KAClB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC3B,IAAI,EAAE;QACF,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,IAAI;KACjB;CACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './send-ton-button';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-ton-button/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) TonTech.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ *
8
+ */
9
+ import { useCallback } from 'react';
10
+ import { createTransferTonTransaction } from '@ton/appkit';
11
+ import { useI18n } from '../../../../hooks/use-i18n';
12
+ import { useAppKit } from '../../../../hooks/use-app-kit';
13
+ import { Transaction } from '../../../transaction';
14
+ export const SendTonButton = ({ recipientAddress, amount, comment, ...props }) => {
15
+ const appKit = useAppKit();
16
+ const { t } = useI18n();
17
+ const createTransferTransaction = useCallback(async () => {
18
+ return createTransferTonTransaction(appKit, {
19
+ recipientAddress,
20
+ amount,
21
+ comment,
22
+ });
23
+ }, [appKit, recipientAddress, amount, comment]);
24
+ return (_jsx(Transaction, { request: createTransferTransaction, disabled: !recipientAddress || !amount, text: t('balances.sendTon', { amount }), ...props }));
25
+ };
26
+ //# sourceMappingURL=send-ton-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-ton-button.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-ton-button/send-ton-button.tsx"],"names":[],"mappings":";AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAQnD,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACrG,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC;IAExB,MAAM,yBAAyB,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;QACrD,OAAO,4BAA4B,CAAC,MAAM,EAAE;YACxC,gBAAgB;YAChB,MAAM;YACN,OAAO;SACV,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEhD,OAAO,CACH,KAAC,WAAW,IACR,OAAO,EAAE,yBAAyB,EAClC,QAAQ,EAAE,CAAC,gBAAgB,IAAI,CAAC,MAAM,EACtC,IAAI,EAAE,CAAC,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,KACnC,KAAK,GACX,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button } from '../../../../components/button';
3
+ const SendTonButtonPreview = ({ text = 'Send TON', isLoading = false, disabled = false, }) => {
4
+ return _jsx(Button, { disabled: disabled || isLoading, children: isLoading ? 'Processing...' : text });
5
+ };
6
+ const meta = {
7
+ title: 'Public/Features/Balances/SendTonButton',
8
+ component: SendTonButtonPreview,
9
+ tags: ['autodocs'],
10
+ parameters: {
11
+ layout: 'centered',
12
+ },
13
+ };
14
+ export default meta;
15
+ export const Default = {
16
+ args: {
17
+ text: 'Send 1.5 TON',
18
+ },
19
+ };
20
+ export const LargeAmount = {
21
+ args: {
22
+ text: 'Send 999.99 TON',
23
+ },
24
+ };
25
+ export const Loading = {
26
+ args: {
27
+ isLoading: true,
28
+ },
29
+ };
30
+ export const Disabled = {
31
+ args: {
32
+ text: 'Send 1.5 TON',
33
+ disabled: true,
34
+ },
35
+ };
36
+ //# sourceMappingURL=send-ton-button.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-ton-button.stories.js","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-ton-button/send-ton-button.stories.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEvD,MAAM,oBAAoB,GAAG,CAAC,EAC1B,IAAI,GAAG,UAAU,EACjB,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,GAKnB,EAAE,EAAE;IACD,OAAO,KAAC,MAAM,IAAC,QAAQ,EAAE,QAAQ,IAAI,SAAS,YAAG,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,GAAU,CAAC;AAClG,CAAC,CAAC;AAEF,MAAM,IAAI,GAAsC;IAC5C,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,oBAAoB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACR,MAAM,EAAE,UAAU;KACrB;CACJ,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC1B,IAAI,EAAE;QACF,IAAI,EAAE,cAAc;KACvB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAU;IAC9B,IAAI,EAAE;QACF,IAAI,EAAE,iBAAiB;KAC1B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC1B,IAAI,EAAE;QACF,SAAS,EAAE,IAAI;KAClB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC3B,IAAI,EAAE;QACF,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,IAAI;KACjB;CACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { getBalanceByAddressQueryOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useQuery } from '../../../libs/query';
11
+ /**
12
+ * Hook to get balance
13
+ */
14
+ export const useBalanceByAddress = (parameters = {}) => {
15
+ const appKit = useAppKit();
16
+ return useQuery(getBalanceByAddressQueryOptions(appKit, parameters));
17
+ };
18
+ //# sourceMappingURL=use-balance-by-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-balance-by-address.js","sourceRoot":"","sources":["../../../../../src/features/balances/hooks/use-balance-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAW/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAC/B,aAAwD,EAAE,EACjB,EAAE;IAC3C,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,+BAA+B,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { useAddress } from '../../wallets/hooks/use-address';
9
+ import { useBalanceByAddress } from './use-balance-by-address';
10
+ /**
11
+ * Hook to get balance of the selected wallet
12
+ */
13
+ export const useBalance = (parameters = {}) => {
14
+ const address = useAddress();
15
+ return useBalanceByAddress({ ...parameters, address });
16
+ };
17
+ //# sourceMappingURL=use-balance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-balance.js","sourceRoot":"","sources":["../../../../../src/features/balances/hooks/use-balance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAO/D;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACtB,aAA+C,EAAE,EACjB,EAAE;IAClC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,OAAO,mBAAmB,CAAC,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './components/currency-item';
9
+ export * from './components/balance-badge';
10
+ export * from './components/send-ton-button';
11
+ export * from './components/send-jetton-button';
12
+ export * from './hooks/use-balance';
13
+ export * from './hooks/use-balance-by-address';
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/balances/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { getJettonBalanceByAddressQueryOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useQuery } from '../../../libs/query';
11
+ /**
12
+ * Hook to get jetton balance
13
+ */
14
+ export const useJettonBalanceByAddress = (parameters = {}) => {
15
+ const appKit = useAppKit();
16
+ return useQuery(getJettonBalanceByAddressQueryOptions(appKit, parameters));
17
+ };
18
+ //# sourceMappingURL=use-jetton-balance-by-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-jetton-balance-by-address.js","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jetton-balance-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qCAAqC,EAAE,MAAM,qBAAqB,CAAC;AAO5E,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAW/C;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACrC,aAA8D,EAAE,EACjB,EAAE;IACjD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,qCAAqC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { getJettonInfoQueryOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useQuery } from '../../../libs/query';
11
+ /**
12
+ * Hook to get jetton info by address
13
+ */
14
+ export const useJettonInfo = (parameters = {}) => {
15
+ const appKit = useAppKit();
16
+ return useQuery(getJettonInfoQueryOptions(appKit, parameters));
17
+ };
18
+ //# sourceMappingURL=use-jetton-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-jetton-info.js","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jetton-info.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAU/C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CACzB,aAAkD,EAAE,EACjB,EAAE;IACrC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,yBAAyB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACnE,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { getJettonWalletAddressQueryOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useQuery } from '../../../libs/query';
11
+ /**
12
+ * Hook to get jetton wallet address
13
+ */
14
+ export const useJettonWalletAddress = (parameters = {}) => {
15
+ const appKit = useAppKit();
16
+ return useQuery(getJettonWalletAddressQueryOptions(appKit, parameters));
17
+ };
18
+ //# sourceMappingURL=use-jetton-wallet-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-jetton-wallet-address.js","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jetton-wallet-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qBAAqB,CAAC;AAOzE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAW/C;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAClC,aAA2D,EAAE,EAC/D,EAAE;IACA,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,kCAAkC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAC5E,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { getJettonsByAddressQueryOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useQuery } from '../../../libs/query';
11
+ /**
12
+ * Hook to get jettons
13
+ */
14
+ export const useJettonsByAddress = (parameters = {}) => {
15
+ const appKit = useAppKit();
16
+ return useQuery(getJettonsByAddressQueryOptions(appKit, parameters));
17
+ };
18
+ //# sourceMappingURL=use-jettons-by-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-jettons-by-address.js","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jettons-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAW/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAC/B,aAAwD,EAAE,EACjB,EAAE;IAC3C,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,+BAA+B,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { useAddress } from '../../wallets/hooks/use-address';
9
+ import { useJettonsByAddress } from './use-jettons-by-address';
10
+ /**
11
+ * Hook to get jettons of the selected wallet
12
+ */
13
+ export const useJettons = (parameters = {}) => {
14
+ const address = useAddress();
15
+ return useJettonsByAddress({ ...parameters, address });
16
+ };
17
+ //# sourceMappingURL=use-jettons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-jettons.js","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jettons.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAO/D;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACtB,aAA+C,EAAE,EACjB,EAAE;IAClC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,OAAO,mBAAmB,CAAC,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC"}