@ton/appkit-react 0.0.6-alpha.1 → 0.0.6-alpha.3

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 (133) hide show
  1. package/README.md +65 -2
  2. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js +2 -2
  3. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -1
  4. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js +2 -2
  5. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js.map +1 -1
  6. package/dist/esm/features/balances/hooks/use-watch-balance-by-address.js +43 -0
  7. package/dist/esm/features/balances/hooks/use-watch-balance-by-address.js.map +1 -0
  8. package/dist/esm/features/balances/hooks/use-watch-balance.js +20 -0
  9. package/dist/esm/features/balances/hooks/use-watch-balance.js.map +1 -0
  10. package/dist/esm/features/balances/index.js +2 -0
  11. package/dist/esm/features/balances/index.js.map +1 -1
  12. package/dist/esm/features/jettons/hooks/use-watch-jettons-by-address.js +49 -0
  13. package/dist/esm/features/jettons/hooks/use-watch-jettons-by-address.js.map +1 -0
  14. package/dist/esm/features/jettons/hooks/use-watch-jettons.js +20 -0
  15. package/dist/esm/features/jettons/hooks/use-watch-jettons.js.map +1 -0
  16. package/dist/esm/features/jettons/index.js +2 -0
  17. package/dist/esm/features/jettons/index.js.map +1 -1
  18. package/dist/esm/features/staking/hooks/use-build-stake-transaction.js +18 -0
  19. package/dist/esm/features/staking/hooks/use-build-stake-transaction.js.map +1 -0
  20. package/dist/esm/features/staking/hooks/use-staked-balance.js +18 -0
  21. package/dist/esm/features/staking/hooks/use-staked-balance.js.map +1 -0
  22. package/dist/esm/features/staking/hooks/use-staking-provider-info.js +18 -0
  23. package/dist/esm/features/staking/hooks/use-staking-provider-info.js.map +1 -0
  24. package/dist/esm/features/staking/hooks/use-staking-providers.js +18 -0
  25. package/dist/esm/features/staking/hooks/use-staking-providers.js.map +1 -0
  26. package/dist/esm/features/staking/hooks/use-staking-quote.js +18 -0
  27. package/dist/esm/features/staking/hooks/use-staking-quote.js.map +1 -0
  28. package/dist/esm/features/staking/index.js +14 -0
  29. package/dist/esm/features/staking/index.js.map +1 -0
  30. package/dist/esm/features/transaction/components/transaction/index.js +1 -1
  31. package/dist/esm/features/transaction/components/transaction/index.js.map +1 -1
  32. package/dist/esm/features/transaction/components/transaction/{transaction.js → send.js} +6 -6
  33. package/dist/esm/features/transaction/components/transaction/send.js.map +1 -0
  34. package/dist/esm/features/transaction/components/transaction-provider/index.js +1 -1
  35. package/dist/esm/features/transaction/components/transaction-provider/index.js.map +1 -1
  36. package/dist/esm/features/transaction/components/transaction-provider/{transaction-provider.js → send-provider.js} +6 -6
  37. package/dist/esm/features/transaction/components/transaction-provider/send-provider.js.map +1 -0
  38. package/dist/esm/features/transaction/hooks/use-watch-transactions-by-address.js +43 -0
  39. package/dist/esm/features/transaction/hooks/use-watch-transactions-by-address.js.map +1 -0
  40. package/dist/esm/features/transaction/hooks/use-watch-transactions.js +19 -0
  41. package/dist/esm/features/transaction/hooks/use-watch-transactions.js.map +1 -0
  42. package/dist/esm/features/transaction/index.js +2 -0
  43. package/dist/esm/features/transaction/index.js.map +1 -1
  44. package/dist/esm/features/wallets/hooks/use-connected-wallets.js +1 -1
  45. package/dist/esm/features/wallets/hooks/use-connected-wallets.js.map +1 -1
  46. package/dist/esm/features/wallets/hooks/use-connector-by-id.js +1 -1
  47. package/dist/esm/features/wallets/hooks/use-connector-by-id.js.map +1 -1
  48. package/dist/esm/features/wallets/hooks/use-connectors.js +1 -1
  49. package/dist/esm/features/wallets/hooks/use-connectors.js.map +1 -1
  50. package/dist/esm/features/wallets/hooks/use-selected-wallet.js +1 -1
  51. package/dist/esm/features/wallets/hooks/use-selected-wallet.js.map +1 -1
  52. package/dist/esm/index.js +1 -0
  53. package/dist/esm/index.js.map +1 -1
  54. package/dist/esm/tonconnect/tonconnect-bridge.js +3 -3
  55. package/dist/esm/tonconnect/tonconnect-bridge.js.map +1 -1
  56. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  57. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts +2 -2
  58. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -1
  59. package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts +2 -2
  60. package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -1
  61. package/dist/types/features/balances/hooks/use-watch-balance-by-address.d.ts +15 -0
  62. package/dist/types/features/balances/hooks/use-watch-balance-by-address.d.ts.map +1 -0
  63. package/dist/types/features/balances/hooks/use-watch-balance.d.ts +15 -0
  64. package/dist/types/features/balances/hooks/use-watch-balance.d.ts.map +1 -0
  65. package/dist/types/features/balances/index.d.ts +2 -0
  66. package/dist/types/features/balances/index.d.ts.map +1 -1
  67. package/dist/types/features/jettons/hooks/use-watch-jettons-by-address.d.ts +15 -0
  68. package/dist/types/features/jettons/hooks/use-watch-jettons-by-address.d.ts.map +1 -0
  69. package/dist/types/features/jettons/hooks/use-watch-jettons.d.ts +15 -0
  70. package/dist/types/features/jettons/hooks/use-watch-jettons.d.ts.map +1 -0
  71. package/dist/types/features/jettons/index.d.ts +2 -0
  72. package/dist/types/features/jettons/index.d.ts.map +1 -1
  73. package/dist/types/features/staking/hooks/use-build-stake-transaction.d.ts +15 -0
  74. package/dist/types/features/staking/hooks/use-build-stake-transaction.d.ts.map +1 -0
  75. package/dist/types/features/staking/hooks/use-staked-balance.d.ts +16 -0
  76. package/dist/types/features/staking/hooks/use-staked-balance.d.ts.map +1 -0
  77. package/dist/types/features/staking/hooks/use-staking-provider-info.d.ts +16 -0
  78. package/dist/types/features/staking/hooks/use-staking-provider-info.d.ts.map +1 -0
  79. package/dist/types/features/staking/hooks/use-staking-providers.d.ts +16 -0
  80. package/dist/types/features/staking/hooks/use-staking-providers.d.ts.map +1 -0
  81. package/dist/types/features/staking/hooks/use-staking-quote.d.ts +16 -0
  82. package/dist/types/features/staking/hooks/use-staking-quote.d.ts.map +1 -0
  83. package/dist/types/features/staking/index.d.ts +14 -0
  84. package/dist/types/features/staking/index.d.ts.map +1 -0
  85. package/dist/types/features/transaction/components/transaction/index.d.ts +2 -2
  86. package/dist/types/features/transaction/components/transaction/index.d.ts.map +1 -1
  87. package/dist/types/features/transaction/components/transaction/{transaction.d.ts → send.d.ts} +7 -7
  88. package/dist/types/features/transaction/components/transaction/send.d.ts.map +1 -0
  89. package/dist/types/features/transaction/components/transaction-provider/index.d.ts +2 -2
  90. package/dist/types/features/transaction/components/transaction-provider/index.d.ts.map +1 -1
  91. package/dist/types/features/transaction/components/transaction-provider/{transaction-provider.d.ts → send-provider.d.ts} +8 -8
  92. package/dist/types/features/transaction/components/transaction-provider/send-provider.d.ts.map +1 -0
  93. package/dist/types/features/transaction/hooks/use-watch-transactions-by-address.d.ts +14 -0
  94. package/dist/types/features/transaction/hooks/use-watch-transactions-by-address.d.ts.map +1 -0
  95. package/dist/types/features/transaction/hooks/use-watch-transactions.d.ts +16 -0
  96. package/dist/types/features/transaction/hooks/use-watch-transactions.d.ts.map +1 -0
  97. package/dist/types/features/transaction/index.d.ts +2 -0
  98. package/dist/types/features/transaction/index.d.ts.map +1 -1
  99. package/dist/types/index.d.ts +1 -0
  100. package/dist/types/index.d.ts.map +1 -1
  101. package/dist/types/tonconnect/tonconnect-bridge.d.ts.map +1 -1
  102. package/package.json +12 -12
  103. package/src/features/balances/components/send-jetton-button/send-jetton-button.tsx +4 -4
  104. package/src/features/balances/components/send-ton-button/send-ton-button.tsx +4 -4
  105. package/src/features/balances/hooks/use-watch-balance-by-address.ts +54 -0
  106. package/src/features/balances/hooks/use-watch-balance.ts +25 -0
  107. package/src/features/balances/index.ts +2 -0
  108. package/src/features/jettons/hooks/use-watch-jettons-by-address.ts +66 -0
  109. package/src/features/jettons/hooks/use-watch-jettons.ts +26 -0
  110. package/src/features/jettons/index.ts +2 -0
  111. package/src/features/staking/hooks/use-build-stake-transaction.ts +33 -0
  112. package/src/features/staking/hooks/use-staked-balance.ts +30 -0
  113. package/src/features/staking/hooks/use-staking-provider-info.ts +35 -0
  114. package/src/features/staking/hooks/use-staking-providers.ts +35 -0
  115. package/src/features/staking/hooks/use-staking-quote.ts +30 -0
  116. package/src/features/staking/index.ts +31 -0
  117. package/src/features/transaction/components/transaction/index.ts +2 -2
  118. package/src/features/transaction/components/transaction/{transaction.tsx → send.tsx} +15 -15
  119. package/src/features/transaction/components/transaction-provider/index.ts +2 -2
  120. package/src/features/transaction/components/transaction-provider/{transaction-provider.tsx → send-provider.tsx} +9 -15
  121. package/src/features/transaction/hooks/use-watch-transactions-by-address.ts +55 -0
  122. package/src/features/transaction/hooks/use-watch-transactions.ts +27 -0
  123. package/src/features/transaction/index.ts +2 -0
  124. package/src/features/wallets/hooks/use-connected-wallets.ts +1 -1
  125. package/src/features/wallets/hooks/use-connector-by-id.ts +1 -1
  126. package/src/features/wallets/hooks/use-connectors.ts +1 -1
  127. package/src/features/wallets/hooks/use-selected-wallet.ts +1 -1
  128. package/src/index.ts +1 -0
  129. package/src/tonconnect/tonconnect-bridge.tsx +6 -3
  130. package/dist/esm/features/transaction/components/transaction/transaction.js.map +0 -1
  131. package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js.map +0 -1
  132. package/dist/types/features/transaction/components/transaction/transaction.d.ts.map +0 -1
  133. package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +0 -1
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import type { FC } from 'react';
9
- import type { TransactionProps } from '../../../transaction';
10
- export interface SendJettonButtonProps extends Omit<TransactionProps, 'request'> {
9
+ import type { SendProps } from '../../../transaction';
10
+ export interface SendJettonButtonProps extends Omit<SendProps, 'request'> {
11
11
  recipientAddress: string;
12
12
  amount: string;
13
13
  jetton: {
@@ -1 +1 @@
1
- {"version":3,"file":"send-jetton-button.d.ts","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-jetton-button/send-jetton-button.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA+CtD,CAAC"}
1
+ {"version":3,"file":"send-jetton-button.d.ts","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-jetton-button/send-jetton-button.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACrE,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA+CtD,CAAC"}
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import type { FC } from 'react';
9
- import type { TransactionProps } from '../../../transaction';
10
- export interface SendTonButtonProps extends Omit<TransactionProps, 'request'> {
9
+ import type { SendProps } from '../../../transaction';
10
+ export interface SendTonButtonProps extends Omit<SendProps, 'request'> {
11
11
  recipientAddress: string;
12
12
  amount: string;
13
13
  comment?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"send-ton-button.d.ts","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-ton-button/send-ton-button.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC;IACzE,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAoBhD,CAAC"}
1
+ {"version":3,"file":"send-ton-button.d.ts","sourceRoot":"","sources":["../../../../../../src/features/balances/components/send-ton-button/send-ton-button.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IAClE,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAoBhD,CAAC"}
@@ -0,0 +1,15 @@
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 type { WatchBalanceByAddressOptions } from '@ton/appkit';
9
+ export type UseWatchBalanceByAddressParameters = Partial<WatchBalanceByAddressOptions>;
10
+ /**
11
+ * Hook to watch balance of a specific address in real-time.
12
+ * Automatically updates the TanStack Query cache for `useBalanceByAddress`.
13
+ */
14
+ export declare const useWatchBalanceByAddress: (parameters: UseWatchBalanceByAddressParameters) => void;
15
+ //# sourceMappingURL=use-watch-balance-by-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-watch-balance-by-address.d.ts","sourceRoot":"","sources":["../../../../../src/features/balances/hooks/use-watch-balance-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAKhE,MAAM,MAAM,kCAAkC,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEvF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,YAAY,kCAAkC,KAAG,IA+BzF,CAAC"}
@@ -0,0 +1,15 @@
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 type { UseWatchBalanceByAddressParameters } from './use-watch-balance-by-address';
9
+ export type UseWatchBalanceParameters = Omit<UseWatchBalanceByAddressParameters, 'address'>;
10
+ /**
11
+ * Hook to watch balance of the currently selected wallet in real-time.
12
+ * Automatically updates the TanStack Query cache for `useBalance`.
13
+ */
14
+ export declare const useWatchBalance: (parameters?: UseWatchBalanceParameters) => void;
15
+ //# sourceMappingURL=use-watch-balance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-watch-balance.d.ts","sourceRoot":"","sources":["../../../../../src/features/balances/hooks/use-watch-balance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,gCAAgC,CAAC;AAEzF,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,kCAAkC,EAAE,SAAS,CAAC,CAAC;AAE5F;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,aAAY,yBAA8B,KAAG,IAK5E,CAAC"}
@@ -11,4 +11,6 @@ export * from './components/send-ton-button';
11
11
  export * from './components/send-jetton-button';
12
12
  export * from './hooks/use-balance';
13
13
  export * from './hooks/use-balance-by-address';
14
+ export * from './hooks/use-watch-balance';
15
+ export * from './hooks/use-watch-balance-by-address';
14
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","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"}
1
+ {"version":3,"file":"index.d.ts","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;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,15 @@
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 type { WatchJettonsByAddressOptions } from '@ton/appkit';
9
+ export type UseWatchJettonsByAddressParameters = Partial<WatchJettonsByAddressOptions>;
10
+ /**
11
+ * Hook to watch jetton updates for a specific address in real-time.
12
+ * Automatically updates TanStack Query caches for jetton balances.
13
+ */
14
+ export declare const useWatchJettonsByAddress: (parameters: UseWatchJettonsByAddressParameters) => void;
15
+ //# sourceMappingURL=use-watch-jettons-by-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-watch-jettons-by-address.d.ts","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-watch-jettons-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,4BAA4B,EAAgB,MAAM,aAAa,CAAC;AAK9E,MAAM,MAAM,kCAAkC,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEvF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,YAAY,kCAAkC,KAAG,IA2CzF,CAAC"}
@@ -0,0 +1,15 @@
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 type { WatchJettonsOptions } from '@ton/appkit';
9
+ export type UseWatchJettonsParameters = Partial<WatchJettonsOptions>;
10
+ /**
11
+ * Hook to watch jetton updates of the currently selected wallet in real-time.
12
+ * Automatically updates TanStack Query caches for jetton balances.
13
+ */
14
+ export declare const useWatchJettons: (parameters?: UseWatchJettonsParameters) => void;
15
+ //# sourceMappingURL=use-watch-jettons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-watch-jettons.d.ts","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-watch-jettons.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMvD,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,aAAY,yBAA8B,KAAG,IAK5E,CAAC"}
@@ -10,5 +10,7 @@ export * from './hooks/use-jetton-wallet-address';
10
10
  export * from './hooks/use-jetton-balance-by-address';
11
11
  export * from './hooks/use-jettons';
12
12
  export * from './hooks/use-jettons-by-address';
13
+ export * from './hooks/use-watch-jettons-by-address';
13
14
  export * from './hooks/use-transfer-jetton';
15
+ export * from './hooks/use-watch-jettons';
14
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/jettons/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/jettons/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,15 @@
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 type { UseMutationResult } from '@tanstack/react-query';
9
+ import type { BuildStakeTransactionData, BuildStakeTransactionErrorType, BuildStakeTransactionVariables } from '@ton/appkit/queries';
10
+ export type UseBuildStakeTransactionReturnType<context = unknown> = UseMutationResult<BuildStakeTransactionData, BuildStakeTransactionErrorType, BuildStakeTransactionVariables, context>;
11
+ /**
12
+ * Hook to build stake transaction
13
+ */
14
+ export declare const useBuildStakeTransaction: <context = unknown>() => UseBuildStakeTransactionReturnType<context>;
15
+ //# sourceMappingURL=use-build-stake-transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-build-stake-transaction.d.ts","sourceRoot":"","sources":["../../../../../src/features/staking/hooks/use-build-stake-transaction.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EACR,yBAAyB,EACzB,8BAA8B,EAC9B,8BAA8B,EACjC,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,kCAAkC,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CACjF,yBAAyB,EACzB,8BAA8B,EAC9B,8BAA8B,EAC9B,OAAO,CACV,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,OAAO,GAAG,OAAO,OAAK,kCAAkC,CAAC,OAAO,CAGxG,CAAC"}
@@ -0,0 +1,16 @@
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 type { GetStakedBalanceData, GetStakedBalanceErrorType, GetStakedBalanceQueryConfig } from '@ton/appkit/queries';
9
+ import type { UseQueryReturnType } from '../../../libs/query';
10
+ export type UseStakedBalanceParameters<selectData = GetStakedBalanceData> = GetStakedBalanceQueryConfig<selectData>;
11
+ export type UseStakedBalanceReturnType<selectData = GetStakedBalanceData> = UseQueryReturnType<selectData, GetStakedBalanceErrorType>;
12
+ /**
13
+ * Hook to get user's staked balance
14
+ */
15
+ export declare const useStakedBalance: <selectData = GetStakedBalanceData>(parameters?: UseStakedBalanceParameters<selectData>) => UseStakedBalanceReturnType<selectData>;
16
+ //# sourceMappingURL=use-staked-balance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-staked-balance.d.ts","sourceRoot":"","sources":["../../../../../src/features/staking/hooks/use-staked-balance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAIxH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,0BAA0B,CAAC,UAAU,GAAG,oBAAoB,IAAI,2BAA2B,CAAC,UAAU,CAAC,CAAC;AACpH,MAAM,MAAM,0BAA0B,CAAC,UAAU,GAAG,oBAAoB,IAAI,kBAAkB,CAC1F,UAAU,EACV,yBAAyB,CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,GAAG,oBAAoB,EAC9D,aAAY,0BAA0B,CAAC,UAAU,CAAM,KACxD,0BAA0B,CAAC,UAAU,CAGvC,CAAC"}
@@ -0,0 +1,16 @@
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 type { GetStakingProviderInfoData, GetStakingProviderInfoErrorType, GetStakingProviderInfoQueryConfig } from '@ton/appkit/queries';
9
+ import type { UseQueryReturnType } from '../../../libs/query';
10
+ export type UseStakingProviderInfoParameters<selectData = GetStakingProviderInfoData> = GetStakingProviderInfoQueryConfig<selectData>;
11
+ export type UseStakingProviderInfoReturnType<selectData = GetStakingProviderInfoData> = UseQueryReturnType<selectData, GetStakingProviderInfoErrorType>;
12
+ /**
13
+ * Hook to get staking provider information
14
+ */
15
+ export declare const useStakingProviderInfo: <selectData = GetStakingProviderInfoData>(parameters?: UseStakingProviderInfoParameters<selectData>) => UseStakingProviderInfoReturnType<selectData>;
16
+ //# sourceMappingURL=use-staking-provider-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-staking-provider-info.d.ts","sourceRoot":"","sources":["../../../../../src/features/staking/hooks/use-staking-provider-info.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACR,0BAA0B,EAC1B,+BAA+B,EAC/B,iCAAiC,EACpC,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,gCAAgC,CAAC,UAAU,GAAG,0BAA0B,IAChF,iCAAiC,CAAC,UAAU,CAAC,CAAC;AAClD,MAAM,MAAM,gCAAgC,CAAC,UAAU,GAAG,0BAA0B,IAAI,kBAAkB,CACtG,UAAU,EACV,+BAA+B,CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAU,GAAG,0BAA0B,EAC1E,aAAY,gCAAgC,CAAC,UAAU,CAAM,KAC9D,gCAAgC,CAAC,UAAU,CAG7C,CAAC"}
@@ -0,0 +1,16 @@
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 type { GetStakingProvidersData, GetStakingProvidersErrorType, GetStakingProvidersQueryConfig } from '@ton/appkit/queries';
9
+ import type { UseQueryReturnType } from '../../../libs/query';
10
+ export type UseStakingProvidersParameters<selectData = GetStakingProvidersData> = GetStakingProvidersQueryConfig<selectData>;
11
+ export type UseStakingProvidersReturnType<selectData = GetStakingProvidersData> = UseQueryReturnType<selectData, GetStakingProvidersErrorType>;
12
+ /**
13
+ * Hook to get available staking provider IDs
14
+ */
15
+ export declare const useStakingProviders: <selectData = GetStakingProvidersData>(parameters?: UseStakingProvidersParameters<selectData>) => UseStakingProvidersReturnType<selectData>;
16
+ //# sourceMappingURL=use-staking-providers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-staking-providers.d.ts","sourceRoot":"","sources":["../../../../../src/features/staking/hooks/use-staking-providers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACR,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EACjC,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,6BAA6B,CAAC,UAAU,GAAG,uBAAuB,IAC1E,8BAA8B,CAAC,UAAU,CAAC,CAAC;AAC/C,MAAM,MAAM,6BAA6B,CAAC,UAAU,GAAG,uBAAuB,IAAI,kBAAkB,CAChG,UAAU,EACV,4BAA4B,CAC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,GAAG,uBAAuB,EACpE,aAAY,6BAA6B,CAAC,UAAU,CAAM,KAC3D,6BAA6B,CAAC,UAAU,CAG1C,CAAC"}
@@ -0,0 +1,16 @@
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 type { GetStakingQuoteData, GetStakingQuoteErrorType, GetStakingQuoteQueryConfig } from '@ton/appkit/queries';
9
+ import type { UseQueryReturnType } from '../../../libs/query';
10
+ export type UseStakingQuoteParameters<selectData = GetStakingQuoteData> = GetStakingQuoteQueryConfig<selectData>;
11
+ export type UseStakingQuoteReturnType<selectData = GetStakingQuoteData> = UseQueryReturnType<selectData, GetStakingQuoteErrorType>;
12
+ /**
13
+ * Hook to get staking/unstaking quote
14
+ */
15
+ export declare const useStakingQuote: <selectData = GetStakingQuoteData>(parameters?: UseStakingQuoteParameters<selectData>) => UseStakingQuoteReturnType<selectData>;
16
+ //# sourceMappingURL=use-staking-quote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-staking-quote.d.ts","sourceRoot":"","sources":["../../../../../src/features/staking/hooks/use-staking-quote.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAIrH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,yBAAyB,CAAC,UAAU,GAAG,mBAAmB,IAAI,0BAA0B,CAAC,UAAU,CAAC,CAAC;AACjH,MAAM,MAAM,yBAAyB,CAAC,UAAU,GAAG,mBAAmB,IAAI,kBAAkB,CACxF,UAAU,EACV,wBAAwB,CAC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,GAAG,mBAAmB,EAC5D,aAAY,yBAAyB,CAAC,UAAU,CAAM,KACvD,yBAAyB,CAAC,UAAU,CAGtC,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 { UnstakeMode, type UnstakeModes } from '@ton/appkit';
9
+ export { useStakingProviders, type UseStakingProvidersParameters, type UseStakingProvidersReturnType, } from './hooks/use-staking-providers';
10
+ export { useStakingQuote, type UseStakingQuoteParameters, type UseStakingQuoteReturnType, } from './hooks/use-staking-quote';
11
+ export { useStakedBalance, type UseStakedBalanceParameters, type UseStakedBalanceReturnType, } from './hooks/use-staked-balance';
12
+ export { useStakingProviderInfo, type UseStakingProviderInfoParameters, type UseStakingProviderInfoReturnType, } from './hooks/use-staking-provider-info';
13
+ export { useBuildStakeTransaction, type UseBuildStakeTransactionReturnType } from './hooks/use-build-stake-transaction';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/staking/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,EACH,mBAAmB,EACnB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,GACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,eAAe,EACf,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,gBAAgB,EAChB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,sBAAsB,EACtB,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACxC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,KAAK,kCAAkC,EAAE,MAAM,qCAAqC,CAAC"}
@@ -5,6 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export { Transaction } from './transaction';
9
- export type { TransactionProps, TransactionRenderProps } from './transaction';
8
+ export { Send } from './send';
9
+ export type { SendProps, SendRenderProps, SendRequest } from './send';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
@@ -7,16 +7,16 @@
7
7
  */
8
8
  import type { FC, ReactNode, ComponentProps } from 'react';
9
9
  import type { SendTransactionParameters, SendTransactionReturnType } from '@ton/appkit';
10
- export interface TransactionRenderProps {
10
+ export interface SendRenderProps {
11
11
  isLoading: boolean;
12
12
  onSubmit: () => void;
13
13
  disabled: boolean;
14
14
  text: ReactNode;
15
15
  }
16
- export type TransactionRequest = SendTransactionParameters | Promise<SendTransactionParameters> | (() => SendTransactionParameters) | (() => Promise<SendTransactionParameters>);
17
- export interface TransactionProps extends Omit<ComponentProps<'button'>, 'children' | 'onError'> {
16
+ export type SendRequest = SendTransactionParameters | Promise<SendTransactionParameters> | (() => SendTransactionParameters) | (() => Promise<SendTransactionParameters>);
17
+ export interface SendProps extends Omit<ComponentProps<'button'>, 'children' | 'onError'> {
18
18
  /** The transaction request parameters */
19
- request: TransactionRequest;
19
+ request: SendRequest;
20
20
  /** Callback when an error occurs */
21
21
  onError?: (error: Error) => void;
22
22
  /** Callback when the transaction is successful */
@@ -24,7 +24,7 @@ export interface TransactionProps extends Omit<ComponentProps<'button'>, 'childr
24
24
  /** Custom button text */
25
25
  text?: ReactNode;
26
26
  /** Custom render function */
27
- children?: (props: TransactionRenderProps) => ReactNode;
27
+ children?: (props: SendRenderProps) => ReactNode;
28
28
  }
29
- export declare const Transaction: FC<TransactionProps>;
30
- //# sourceMappingURL=transaction.d.ts.map
29
+ export declare const Send: FC<SendProps>;
30
+ //# sourceMappingURL=send.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction/send.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAMxF,MAAM,WAAW,eAAe;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GACjB,yBAAyB,GACzB,OAAO,CAAC,yBAAyB,CAAC,GAClC,CAAC,MAAM,yBAAyB,CAAC,GACjC,CAAC,MAAM,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;AAEjD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACrF,yCAAyC;IACzC,OAAO,EAAE,WAAW,CAAC;IACrB,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kDAAkD;IAClD,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,SAAS,CAAC;CACpD;AA+CD,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAiB9B,CAAC"}
@@ -5,6 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export { TransactionProvider, useTransactionContext, TransactionContext } from './transaction-provider';
9
- export type { TransactionContextType } from './transaction-provider';
8
+ export { SendProvider, useSendContext, SendContext } from './send-provider';
9
+ export type { SendProviderProps, SendContextType } from './send-provider';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction-provider/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction-provider/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC5E,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
@@ -7,8 +7,8 @@
7
7
  */
8
8
  import type { FC, PropsWithChildren } from 'react';
9
9
  import type { SendTransactionReturnType } from '@ton/appkit';
10
- import type { TransactionRequest } from '../transaction/transaction';
11
- export interface TransactionContextType {
10
+ import type { SendRequest } from '../transaction/send';
11
+ export interface SendContextType {
12
12
  /** Function to submit the transaction */
13
13
  onSubmit: () => void;
14
14
  /** Whether the transaction is currently loading */
@@ -20,11 +20,11 @@ export interface TransactionContextType {
20
20
  /** Disable the button/interaction */
21
21
  disabled?: boolean;
22
22
  }
23
- export declare const TransactionContext: import("react").Context<TransactionContextType>;
24
- export declare function useTransactionContext(): TransactionContextType;
25
- export interface TransactionProviderProps extends PropsWithChildren {
23
+ export declare const SendContext: import("react").Context<SendContextType>;
24
+ export declare function useSendContext(): SendContextType;
25
+ export interface SendProviderProps extends PropsWithChildren {
26
26
  /** The transaction request parameters */
27
- request: TransactionRequest;
27
+ request: SendRequest;
28
28
  /** Callback when an error occurs */
29
29
  onError?: (error: Error) => void;
30
30
  /** Callback when the transaction is successful */
@@ -32,5 +32,5 @@ export interface TransactionProviderProps extends PropsWithChildren {
32
32
  /** Disable the button/interaction */
33
33
  disabled?: boolean;
34
34
  }
35
- export declare const TransactionProvider: FC<TransactionProviderProps>;
36
- //# sourceMappingURL=transaction-provider.d.ts.map
35
+ export declare const SendProvider: FC<SendProviderProps>;
36
+ //# sourceMappingURL=send-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-provider.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction-provider/send-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC5B,yCAAyC;IACzC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,gDAAgD;IAChD,OAAO,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC3C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,0CAKtB,CAAC;AAEH,wBAAgB,cAAc,oBAI7B;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IACxD,yCAAyC;IACzC,OAAO,EAAE,WAAW,CAAC;IACrB,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kDAAkD;IAClD,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAuD9C,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
+ import type { WatchTransactionsByAddressOptions } from '@ton/appkit';
9
+ export type UseWatchTransactionsByAddressParameters = Partial<WatchTransactionsByAddressOptions>;
10
+ /**
11
+ * Hook to watch transactions for a specific address in real-time.
12
+ */
13
+ export declare const useWatchTransactionsByAddress: (parameters: UseWatchTransactionsByAddressParameters) => void;
14
+ //# sourceMappingURL=use-watch-transactions-by-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-watch-transactions-by-address.d.ts","sourceRoot":"","sources":["../../../../../src/features/transaction/hooks/use-watch-transactions-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,iCAAiC,EAAsB,MAAM,aAAa,CAAC;AAIzF,MAAM,MAAM,uCAAuC,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC;AAEjG;;GAEG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,uCAAuC,KAAG,IAmCnG,CAAC"}
@@ -0,0 +1,16 @@
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 type { TransactionsUpdate } from '@ton/appkit';
9
+ export interface UseWatchTransactionsParameters {
10
+ onChange?: (update: TransactionsUpdate) => void;
11
+ }
12
+ /**
13
+ * Hook to watch transaction updates of the currently selected wallet in real-time.
14
+ */
15
+ export declare const useWatchTransactions: (parameters?: UseWatchTransactionsParameters) => void;
16
+ //# sourceMappingURL=use-watch-transactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-watch-transactions.d.ts","sourceRoot":"","sources":["../../../../../src/features/transaction/hooks/use-watch-transactions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAMtD,MAAM,WAAW,8BAA8B;IAC3C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,aAAY,8BAAmC,KAAG,IAKtF,CAAC"}
@@ -8,6 +8,8 @@
8
8
  export * from './hooks/use-send-transaction';
9
9
  export * from './hooks/use-transfer-ton';
10
10
  export * from './hooks/use-transaction-status';
11
+ export * from './hooks/use-watch-transactions-by-address';
12
+ export * from './hooks/use-watch-transactions';
11
13
  export * from './components/transaction';
12
14
  export * from './components/transaction-progress';
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAE/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAE/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC"}
@@ -23,4 +23,5 @@ export * from './features/transaction';
23
23
  export * from './features/wallets';
24
24
  export * from './features/swap';
25
25
  export * from './features/signing';
26
+ export * from './features/staking';
26
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,cAAc,aAAa,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,cAAc,aAAa,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tonconnect-bridge.d.ts","sourceRoot":"","sources":["../../../src/tonconnect/tonconnect-bridge.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAOnD,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAYtD,CAAC"}
1
+ {"version":3,"file":"tonconnect-bridge.d.ts","sourceRoot":"","sources":["../../../src/tonconnect/tonconnect-bridge.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAOnD,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAetD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ton/appkit-react",
3
- "version": "0.0.6-alpha.1",
3
+ "version": "0.0.6-alpha.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,24 +36,24 @@
36
36
  "clsx": "2.1.1",
37
37
  "radix-ui": "^1.4.3",
38
38
  "rosetta": "1.1.0",
39
- "@ton/appkit": "0.0.5-alpha.1"
39
+ "@ton/appkit": "0.0.5-alpha.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@storybook/addon-docs": "10.2.8",
43
- "@storybook/react": "10.2.8",
44
- "@storybook/react-vite": "10.2.8",
42
+ "@storybook/addon-docs": "10.3.5",
43
+ "@storybook/react": "10.3.5",
44
+ "@storybook/react-vite": "10.3.5",
45
45
  "@storybook/test": "^8.6.15",
46
- "@tanstack/react-query": "5.90.20",
47
- "@tonconnect/ui-react": "2.4.1",
48
- "@types/react": "19.2.8",
46
+ "@tanstack/react-query": "5.99.0",
47
+ "@tonconnect/ui-react": "2.4.4",
48
+ "@types/react": "19.2.14",
49
49
  "@types/react-dom": "19.2.3",
50
50
  "copyfiles": "2.4.1",
51
51
  "react": "19.2.3",
52
52
  "react-dom": "19.2.3",
53
- "storybook": "10.2.8",
54
- "typescript": "^5.9.2",
55
- "vite": "^7.3.1",
56
- "vite-plugin-node-polyfills": "^0.25.0"
53
+ "storybook": "10.3.5",
54
+ "typescript": "^5.9.3",
55
+ "vite": "^8.0.8",
56
+ "vite-plugin-node-polyfills": "^0.26.0"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@tanstack/react-query": ">=5.0.0",
@@ -12,10 +12,10 @@ import { createTransferJettonTransaction, formatUnits, parseUnits } from '@ton/a
12
12
 
13
13
  import { useI18n } from '../../../../hooks/use-i18n';
14
14
  import { useAppKit } from '../../../../hooks/use-app-kit';
15
- import type { TransactionProps } from '../../../transaction';
16
- import { Transaction } from '../../../transaction';
15
+ import type { SendProps } from '../../../transaction';
16
+ import { Send } from '../../../transaction';
17
17
 
18
- export interface SendJettonButtonProps extends Omit<TransactionProps, 'request'> {
18
+ export interface SendJettonButtonProps extends Omit<SendProps, 'request'> {
19
19
  recipientAddress: string;
20
20
  amount: string;
21
21
  jetton: {
@@ -66,7 +66,7 @@ export const SendJettonButton: FC<SendJettonButtonProps> = ({
66
66
  }, [t, amount, jetton]);
67
67
 
68
68
  return (
69
- <Transaction
69
+ <Send
70
70
  request={createTransferTransaction}
71
71
  text={text}
72
72
  disabled={!recipientAddress || !amount || !jetton.address || !jetton.decimals}
@@ -12,10 +12,10 @@ import { createTransferTonTransaction } from '@ton/appkit';
12
12
 
13
13
  import { useI18n } from '../../../../hooks/use-i18n';
14
14
  import { useAppKit } from '../../../../hooks/use-app-kit';
15
- import type { TransactionProps } from '../../../transaction';
16
- import { Transaction } from '../../../transaction';
15
+ import type { SendProps } from '../../../transaction';
16
+ import { Send } from '../../../transaction';
17
17
 
18
- export interface SendTonButtonProps extends Omit<TransactionProps, 'request'> {
18
+ export interface SendTonButtonProps extends Omit<SendProps, 'request'> {
19
19
  recipientAddress: string;
20
20
  amount: string;
21
21
  comment?: string;
@@ -34,7 +34,7 @@ export const SendTonButton: FC<SendTonButtonProps> = ({ recipientAddress, amount
34
34
  }, [appKit, recipientAddress, amount, comment]);
35
35
 
36
36
  return (
37
- <Transaction
37
+ <Send
38
38
  request={createTransferTransaction}
39
39
  disabled={!recipientAddress || !amount}
40
40
  text={t('balances.sendTon', { amount })}