@ton/appkit 0.0.1-alpha.1 → 0.0.1

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 (765) hide show
  1. package/.turbo/turbo-build.log +430 -0
  2. package/CHANGELOG.md +7 -0
  3. package/LICENSE +21 -0
  4. package/README.md +87 -7
  5. package/dist/actions/balances/get-balance-by-address.cjs +33 -0
  6. package/dist/actions/balances/get-balance-by-address.cjs.map +1 -0
  7. package/dist/actions/balances/get-balance-by-address.d.ts +18 -0
  8. package/dist/actions/balances/get-balance-by-address.d.ts.map +1 -0
  9. package/dist/actions/balances/get-balance-by-address.js +13 -0
  10. package/dist/actions/balances/get-balance-by-address.js.map +1 -0
  11. package/dist/actions/balances/get-balance.cjs +36 -0
  12. package/dist/actions/balances/get-balance.cjs.map +1 -0
  13. package/dist/actions/balances/get-balance.d.ts +15 -0
  14. package/dist/actions/balances/get-balance.d.ts.map +1 -0
  15. package/dist/actions/balances/get-balance.js +16 -0
  16. package/dist/actions/balances/get-balance.js.map +1 -0
  17. package/dist/actions/connectors/add-connector.cjs +27 -0
  18. package/dist/actions/connectors/add-connector.cjs.map +1 -0
  19. package/dist/actions/connectors/add-connector.d.ts +16 -0
  20. package/dist/actions/connectors/add-connector.d.ts.map +1 -0
  21. package/dist/actions/connectors/add-connector.js +7 -0
  22. package/dist/actions/connectors/add-connector.js.map +1 -0
  23. package/dist/actions/connectors/connect.cjs +32 -0
  24. package/dist/actions/connectors/connect.cjs.map +1 -0
  25. package/dist/actions/connectors/connect.d.ts +17 -0
  26. package/dist/actions/connectors/connect.d.ts.map +1 -0
  27. package/dist/actions/connectors/connect.js +12 -0
  28. package/dist/actions/connectors/connect.js.map +1 -0
  29. package/dist/actions/connectors/disconnect.cjs +32 -0
  30. package/dist/actions/connectors/disconnect.cjs.map +1 -0
  31. package/dist/actions/connectors/disconnect.d.ts +17 -0
  32. package/dist/actions/connectors/disconnect.d.ts.map +1 -0
  33. package/dist/actions/connectors/disconnect.js +12 -0
  34. package/dist/actions/connectors/disconnect.js.map +1 -0
  35. package/dist/actions/connectors/get-connector-by-id.cjs +27 -0
  36. package/dist/actions/connectors/get-connector-by-id.cjs.map +1 -0
  37. package/dist/actions/connectors/get-connector-by-id.d.ts +18 -0
  38. package/dist/actions/connectors/get-connector-by-id.d.ts.map +1 -0
  39. package/dist/actions/connectors/get-connector-by-id.js +7 -0
  40. package/dist/actions/connectors/get-connector-by-id.js.map +1 -0
  41. package/dist/actions/connectors/get-connectors.cjs +27 -0
  42. package/dist/actions/connectors/get-connectors.cjs.map +1 -0
  43. package/dist/actions/connectors/get-connectors.d.ts +15 -0
  44. package/dist/actions/connectors/get-connectors.d.ts.map +1 -0
  45. package/dist/actions/connectors/get-connectors.js +7 -0
  46. package/dist/actions/connectors/get-connectors.js.map +1 -0
  47. package/dist/actions/connectors/watch-connector-by-id.cjs +33 -0
  48. package/dist/actions/connectors/watch-connector-by-id.cjs.map +1 -0
  49. package/dist/actions/connectors/watch-connector-by-id.d.ts +19 -0
  50. package/dist/actions/connectors/watch-connector-by-id.d.ts.map +1 -0
  51. package/dist/actions/connectors/watch-connector-by-id.js +13 -0
  52. package/dist/actions/connectors/watch-connector-by-id.js.map +1 -0
  53. package/dist/actions/connectors/watch-connectors.cjs +33 -0
  54. package/dist/actions/connectors/watch-connectors.cjs.map +1 -0
  55. package/dist/actions/connectors/watch-connectors.d.ts +18 -0
  56. package/dist/actions/connectors/watch-connectors.d.ts.map +1 -0
  57. package/dist/actions/connectors/watch-connectors.js +13 -0
  58. package/dist/actions/connectors/watch-connectors.js.map +1 -0
  59. package/dist/actions/index.cjs +101 -0
  60. package/dist/actions/index.cjs.map +1 -0
  61. package/dist/actions/index.d.ts +47 -0
  62. package/dist/actions/index.d.ts.map +1 -0
  63. package/dist/actions/index.js +115 -0
  64. package/dist/actions/index.js.map +1 -0
  65. package/dist/actions/jettons/create-transfer-jetton-transaction.cjs +47 -0
  66. package/dist/actions/jettons/create-transfer-jetton-transaction.cjs.map +1 -0
  67. package/dist/actions/jettons/create-transfer-jetton-transaction.d.ts +22 -0
  68. package/dist/actions/jettons/create-transfer-jetton-transaction.d.ts.map +1 -0
  69. package/dist/actions/jettons/create-transfer-jetton-transaction.js +33 -0
  70. package/dist/actions/jettons/create-transfer-jetton-transaction.js.map +1 -0
  71. package/dist/actions/jettons/get-jetton-balance.cjs +37 -0
  72. package/dist/actions/jettons/get-jetton-balance.cjs.map +1 -0
  73. package/dist/actions/jettons/get-jetton-balance.d.ts +19 -0
  74. package/dist/actions/jettons/get-jetton-balance.d.ts.map +1 -0
  75. package/dist/actions/jettons/get-jetton-balance.js +17 -0
  76. package/dist/actions/jettons/get-jetton-balance.js.map +1 -0
  77. package/dist/actions/jettons/get-jetton-info.cjs +56 -0
  78. package/dist/actions/jettons/get-jetton-info.cjs.map +1 -0
  79. package/dist/actions/jettons/get-jetton-info.d.ts +17 -0
  80. package/dist/actions/jettons/get-jetton-info.d.ts.map +1 -0
  81. package/dist/actions/jettons/get-jetton-info.js +36 -0
  82. package/dist/actions/jettons/get-jetton-info.js.map +1 -0
  83. package/dist/actions/jettons/get-jetton-wallet-address.cjs +30 -0
  84. package/dist/actions/jettons/get-jetton-wallet-address.cjs.map +1 -0
  85. package/dist/actions/jettons/get-jetton-wallet-address.d.ts +18 -0
  86. package/dist/actions/jettons/get-jetton-wallet-address.d.ts.map +1 -0
  87. package/dist/actions/jettons/get-jetton-wallet-address.js +10 -0
  88. package/dist/actions/jettons/get-jetton-wallet-address.js.map +1 -0
  89. package/dist/actions/jettons/get-jettons-by-address.cjs +51 -0
  90. package/dist/actions/jettons/get-jettons-by-address.cjs.map +1 -0
  91. package/dist/actions/jettons/get-jettons-by-address.d.ts +20 -0
  92. package/dist/actions/jettons/get-jettons-by-address.d.ts.map +1 -0
  93. package/dist/actions/jettons/get-jettons-by-address.js +31 -0
  94. package/dist/actions/jettons/get-jettons-by-address.js.map +1 -0
  95. package/dist/actions/jettons/get-jettons.cjs +38 -0
  96. package/dist/actions/jettons/get-jettons.cjs.map +1 -0
  97. package/dist/actions/jettons/get-jettons.d.ts +17 -0
  98. package/dist/actions/jettons/get-jettons.d.ts.map +1 -0
  99. package/dist/actions/jettons/get-jettons.js +18 -0
  100. package/dist/actions/jettons/get-jettons.js.map +1 -0
  101. package/dist/actions/jettons/transfer-jetton.cjs +30 -0
  102. package/dist/actions/jettons/transfer-jetton.cjs.map +1 -0
  103. package/dist/actions/jettons/transfer-jetton.d.ts +18 -0
  104. package/dist/actions/jettons/transfer-jetton.d.ts.map +1 -0
  105. package/dist/actions/jettons/transfer-jetton.js +10 -0
  106. package/dist/actions/jettons/transfer-jetton.js.map +1 -0
  107. package/dist/actions/network/get-network.cjs +29 -0
  108. package/dist/actions/network/get-network.cjs.map +1 -0
  109. package/dist/actions/network/get-network.d.ts +15 -0
  110. package/dist/actions/network/get-network.d.ts.map +1 -0
  111. package/dist/actions/network/get-network.js +9 -0
  112. package/dist/actions/network/get-network.js.map +1 -0
  113. package/dist/actions/network/get-networks.cjs +27 -0
  114. package/dist/actions/network/get-networks.cjs.map +1 -0
  115. package/dist/actions/network/get-networks.d.ts +15 -0
  116. package/dist/actions/network/get-networks.d.ts.map +1 -0
  117. package/dist/actions/network/get-networks.js +7 -0
  118. package/dist/actions/network/get-networks.js.map +1 -0
  119. package/dist/actions/network/watch-networks.cjs +33 -0
  120. package/dist/actions/network/watch-networks.cjs.map +1 -0
  121. package/dist/actions/network/watch-networks.d.ts +18 -0
  122. package/dist/actions/network/watch-networks.d.ts.map +1 -0
  123. package/dist/actions/network/watch-networks.js +13 -0
  124. package/dist/actions/network/watch-networks.js.map +1 -0
  125. package/dist/actions/nft/create-transfer-nft-transaction.cjs +44 -0
  126. package/dist/actions/nft/create-transfer-nft-transaction.cjs.map +1 -0
  127. package/dist/actions/nft/create-transfer-nft-transaction.d.ts +21 -0
  128. package/dist/actions/nft/create-transfer-nft-transaction.d.ts.map +1 -0
  129. package/dist/actions/nft/create-transfer-nft-transaction.js +24 -0
  130. package/dist/actions/nft/create-transfer-nft-transaction.js.map +1 -0
  131. package/dist/actions/nft/get-nft.cjs +32 -0
  132. package/dist/actions/nft/get-nft.cjs.map +1 -0
  133. package/dist/actions/nft/get-nft.d.ts +18 -0
  134. package/dist/actions/nft/get-nft.d.ts.map +1 -0
  135. package/dist/actions/nft/get-nft.js +12 -0
  136. package/dist/actions/nft/get-nft.js.map +1 -0
  137. package/dist/actions/nft/get-nfts-by-address.cjs +37 -0
  138. package/dist/actions/nft/get-nfts-by-address.cjs.map +1 -0
  139. package/dist/actions/nft/get-nfts-by-address.d.ts +20 -0
  140. package/dist/actions/nft/get-nfts-by-address.d.ts.map +1 -0
  141. package/dist/actions/nft/get-nfts-by-address.js +17 -0
  142. package/dist/actions/nft/get-nfts-by-address.js.map +1 -0
  143. package/dist/actions/nft/get-nfts.cjs +38 -0
  144. package/dist/actions/nft/get-nfts.cjs.map +1 -0
  145. package/dist/actions/nft/get-nfts.d.ts +17 -0
  146. package/dist/actions/nft/get-nfts.d.ts.map +1 -0
  147. package/dist/actions/nft/get-nfts.js +18 -0
  148. package/dist/actions/nft/get-nfts.js.map +1 -0
  149. package/dist/actions/nft/transfer-nft.cjs +30 -0
  150. package/dist/actions/nft/transfer-nft.cjs.map +1 -0
  151. package/dist/actions/nft/transfer-nft.d.ts +17 -0
  152. package/dist/actions/nft/transfer-nft.d.ts.map +1 -0
  153. package/dist/actions/nft/transfer-nft.js +10 -0
  154. package/dist/actions/nft/transfer-nft.js.map +1 -0
  155. package/dist/actions/providers/register-provider.cjs +27 -0
  156. package/dist/actions/providers/register-provider.cjs.map +1 -0
  157. package/dist/actions/providers/register-provider.d.ts +15 -0
  158. package/dist/actions/providers/register-provider.d.ts.map +1 -0
  159. package/dist/actions/providers/register-provider.js +7 -0
  160. package/dist/actions/providers/register-provider.js.map +1 -0
  161. package/dist/actions/signing/sign-binary.cjs +38 -0
  162. package/dist/actions/signing/sign-binary.cjs.map +1 -0
  163. package/dist/actions/signing/sign-binary.d.ts +29 -0
  164. package/dist/actions/signing/sign-binary.d.ts.map +1 -0
  165. package/dist/actions/signing/sign-binary.js +18 -0
  166. package/dist/actions/signing/sign-binary.js.map +1 -0
  167. package/dist/actions/signing/sign-cell.cjs +41 -0
  168. package/dist/actions/signing/sign-cell.cjs.map +1 -0
  169. package/dist/actions/signing/sign-cell.d.ts +35 -0
  170. package/dist/actions/signing/sign-cell.d.ts.map +1 -0
  171. package/dist/actions/signing/sign-cell.js +21 -0
  172. package/dist/actions/signing/sign-cell.js.map +1 -0
  173. package/dist/actions/signing/sign-text.cjs +38 -0
  174. package/dist/actions/signing/sign-text.cjs.map +1 -0
  175. package/dist/actions/signing/sign-text.d.ts +28 -0
  176. package/dist/actions/signing/sign-text.d.ts.map +1 -0
  177. package/dist/actions/signing/sign-text.js +18 -0
  178. package/dist/actions/signing/sign-text.js.map +1 -0
  179. package/dist/actions/swap/build-swap-transaction.cjs +27 -0
  180. package/dist/actions/swap/build-swap-transaction.cjs.map +1 -0
  181. package/dist/actions/swap/build-swap-transaction.d.ts +17 -0
  182. package/dist/actions/swap/build-swap-transaction.d.ts.map +1 -0
  183. package/dist/actions/swap/build-swap-transaction.js +7 -0
  184. package/dist/actions/swap/build-swap-transaction.js.map +1 -0
  185. package/dist/actions/swap/get-swap-manager.cjs +27 -0
  186. package/dist/actions/swap/get-swap-manager.cjs.map +1 -0
  187. package/dist/actions/swap/get-swap-manager.d.ts +15 -0
  188. package/dist/actions/swap/get-swap-manager.d.ts.map +1 -0
  189. package/dist/actions/swap/get-swap-manager.js +7 -0
  190. package/dist/actions/swap/get-swap-manager.js.map +1 -0
  191. package/dist/actions/swap/get-swap-quote.cjs +27 -0
  192. package/dist/actions/swap/get-swap-quote.cjs.map +1 -0
  193. package/dist/actions/swap/get-swap-quote.d.ts +18 -0
  194. package/dist/actions/swap/get-swap-quote.d.ts.map +1 -0
  195. package/dist/actions/swap/get-swap-quote.js +7 -0
  196. package/dist/actions/swap/get-swap-quote.js.map +1 -0
  197. package/dist/actions/transaction/create-transfer-ton-transaction.cjs +48 -0
  198. package/dist/actions/transaction/create-transfer-ton-transaction.cjs.map +1 -0
  199. package/dist/actions/transaction/create-transfer-ton-transaction.d.ts +27 -0
  200. package/dist/actions/transaction/create-transfer-ton-transaction.d.ts.map +1 -0
  201. package/dist/actions/transaction/create-transfer-ton-transaction.js +28 -0
  202. package/dist/actions/transaction/create-transfer-ton-transaction.js.map +1 -0
  203. package/dist/actions/transaction/send-transaction.cjs +32 -0
  204. package/dist/actions/transaction/send-transaction.cjs.map +1 -0
  205. package/dist/actions/transaction/send-transaction.d.ts +18 -0
  206. package/dist/actions/transaction/send-transaction.d.ts.map +1 -0
  207. package/dist/actions/transaction/send-transaction.js +12 -0
  208. package/dist/actions/transaction/send-transaction.js.map +1 -0
  209. package/dist/actions/transaction/transfer-ton.cjs +30 -0
  210. package/dist/actions/transaction/transfer-ton.cjs.map +1 -0
  211. package/dist/actions/transaction/transfer-ton.d.ts +18 -0
  212. package/dist/actions/transaction/transfer-ton.d.ts.map +1 -0
  213. package/dist/actions/transaction/transfer-ton.js +10 -0
  214. package/dist/actions/transaction/transfer-ton.js.map +1 -0
  215. package/dist/actions/wallets/get-connected-wallets.cjs +27 -0
  216. package/dist/actions/wallets/get-connected-wallets.cjs.map +1 -0
  217. package/dist/actions/wallets/get-connected-wallets.d.ts +15 -0
  218. package/dist/actions/wallets/get-connected-wallets.d.ts.map +1 -0
  219. package/dist/actions/wallets/get-connected-wallets.js +7 -0
  220. package/dist/actions/wallets/get-connected-wallets.js.map +1 -0
  221. package/dist/actions/wallets/get-selected-wallet.cjs +27 -0
  222. package/dist/actions/wallets/get-selected-wallet.cjs.map +1 -0
  223. package/dist/actions/wallets/get-selected-wallet.d.ts +15 -0
  224. package/dist/actions/wallets/get-selected-wallet.d.ts.map +1 -0
  225. package/dist/actions/wallets/get-selected-wallet.js +7 -0
  226. package/dist/actions/wallets/get-selected-wallet.js.map +1 -0
  227. package/dist/actions/wallets/set-selected-wallet-id.cjs +27 -0
  228. package/dist/actions/wallets/set-selected-wallet-id.cjs.map +1 -0
  229. package/dist/actions/wallets/set-selected-wallet-id.d.ts +17 -0
  230. package/dist/actions/wallets/set-selected-wallet-id.d.ts.map +1 -0
  231. package/dist/actions/wallets/set-selected-wallet-id.js +7 -0
  232. package/dist/actions/wallets/set-selected-wallet-id.js.map +1 -0
  233. package/dist/actions/wallets/watch-connected-wallets.cjs +32 -0
  234. package/dist/actions/wallets/watch-connected-wallets.cjs.map +1 -0
  235. package/dist/actions/wallets/watch-connected-wallets.d.ts +18 -0
  236. package/dist/actions/wallets/watch-connected-wallets.d.ts.map +1 -0
  237. package/dist/actions/wallets/watch-connected-wallets.js +12 -0
  238. package/dist/actions/wallets/watch-connected-wallets.js.map +1 -0
  239. package/dist/actions/wallets/watch-selected-wallet.cjs +34 -0
  240. package/dist/actions/wallets/watch-selected-wallet.cjs.map +1 -0
  241. package/dist/actions/wallets/watch-selected-wallet.d.ts +18 -0
  242. package/dist/actions/wallets/watch-selected-wallet.d.ts.map +1 -0
  243. package/dist/actions/wallets/watch-selected-wallet.js +14 -0
  244. package/dist/actions/wallets/watch-selected-wallet.js.map +1 -0
  245. package/dist/connectors/tonconnect/adapters/ton-connect-wallet-adapter.cjs +129 -0
  246. package/dist/connectors/tonconnect/adapters/ton-connect-wallet-adapter.cjs.map +1 -0
  247. package/dist/connectors/tonconnect/adapters/ton-connect-wallet-adapter.d.ts +41 -0
  248. package/dist/connectors/tonconnect/adapters/ton-connect-wallet-adapter.d.ts.map +1 -0
  249. package/dist/connectors/tonconnect/adapters/ton-connect-wallet-adapter.js +109 -0
  250. package/dist/connectors/tonconnect/adapters/ton-connect-wallet-adapter.js.map +1 -0
  251. package/dist/connectors/tonconnect/connectors/ton-connect-connector.cjs +82 -0
  252. package/dist/connectors/tonconnect/connectors/ton-connect-connector.cjs.map +1 -0
  253. package/dist/connectors/tonconnect/connectors/ton-connect-connector.d.ts +33 -0
  254. package/dist/connectors/tonconnect/connectors/ton-connect-connector.d.ts.map +1 -0
  255. package/dist/connectors/tonconnect/connectors/ton-connect-connector.js +62 -0
  256. package/dist/connectors/tonconnect/connectors/ton-connect-connector.js.map +1 -0
  257. package/dist/connectors/tonconnect/constants/id.cjs +25 -0
  258. package/dist/connectors/tonconnect/constants/id.cjs.map +1 -0
  259. package/dist/connectors/tonconnect/constants/id.d.ts +9 -0
  260. package/dist/connectors/tonconnect/constants/id.d.ts.map +1 -0
  261. package/dist/connectors/tonconnect/constants/id.js +5 -0
  262. package/dist/connectors/tonconnect/constants/id.js.map +1 -0
  263. package/dist/connectors/tonconnect/index.cjs +29 -0
  264. package/dist/connectors/tonconnect/index.cjs.map +1 -0
  265. package/dist/connectors/tonconnect/index.d.ts +27 -0
  266. package/dist/connectors/tonconnect/index.d.ts.map +1 -0
  267. package/dist/connectors/tonconnect/index.js +9 -0
  268. package/dist/connectors/tonconnect/index.js.map +1 -0
  269. package/dist/connectors/tonconnect/utils/transaction.cjs +45 -0
  270. package/dist/connectors/tonconnect/utils/transaction.cjs.map +1 -0
  271. package/dist/connectors/tonconnect/utils/transaction.d.ts +31 -0
  272. package/dist/connectors/tonconnect/utils/transaction.d.ts.map +1 -0
  273. package/dist/connectors/tonconnect/utils/transaction.js +25 -0
  274. package/dist/connectors/tonconnect/utils/transaction.js.map +1 -0
  275. package/dist/core/app-kit/constants/events.cjs +41 -0
  276. package/dist/core/app-kit/constants/events.cjs.map +1 -0
  277. package/dist/core/app-kit/constants/events.d.ts +34 -0
  278. package/dist/core/app-kit/constants/events.d.ts.map +1 -0
  279. package/dist/core/app-kit/constants/events.js +21 -0
  280. package/dist/core/app-kit/constants/events.js.map +1 -0
  281. package/dist/core/app-kit/index.cjs +30 -0
  282. package/dist/core/app-kit/index.cjs.map +1 -0
  283. package/dist/core/app-kit/index.d.ts +12 -0
  284. package/dist/core/app-kit/index.d.ts.map +1 -0
  285. package/dist/core/app-kit/index.js +10 -0
  286. package/dist/core/app-kit/index.js.map +1 -0
  287. package/dist/core/app-kit/services/app-kit-network-manager.cjs +36 -0
  288. package/dist/core/app-kit/services/app-kit-network-manager.cjs.map +1 -0
  289. package/dist/core/app-kit/services/app-kit-network-manager.d.ts +16 -0
  290. package/dist/core/app-kit/services/app-kit-network-manager.d.ts.map +1 -0
  291. package/dist/core/app-kit/services/app-kit-network-manager.js +16 -0
  292. package/dist/core/app-kit/services/app-kit-network-manager.js.map +1 -0
  293. package/dist/core/app-kit/services/app-kit.cjs +104 -0
  294. package/dist/core/app-kit/services/app-kit.cjs.map +1 -0
  295. package/dist/core/app-kit/services/app-kit.d.ts +44 -0
  296. package/dist/core/app-kit/services/app-kit.d.ts.map +1 -0
  297. package/dist/core/app-kit/services/app-kit.js +84 -0
  298. package/dist/core/app-kit/services/app-kit.js.map +1 -0
  299. package/dist/core/app-kit/types/config.cjs +17 -0
  300. package/dist/core/app-kit/types/config.cjs.map +1 -0
  301. package/dist/core/app-kit/types/config.d.ts +26 -0
  302. package/dist/core/app-kit/types/config.d.ts.map +1 -0
  303. package/dist/core/app-kit/types/config.js +1 -0
  304. package/dist/core/app-kit/types/config.js.map +1 -0
  305. package/dist/core/app-kit/types/events.cjs +17 -0
  306. package/dist/core/app-kit/types/events.cjs.map +1 -0
  307. package/dist/core/app-kit/types/events.d.ts +35 -0
  308. package/dist/core/app-kit/types/events.d.ts.map +1 -0
  309. package/dist/core/app-kit/types/events.js +1 -0
  310. package/dist/core/app-kit/types/events.js.map +1 -0
  311. package/dist/core/emitter/index.cjs +25 -0
  312. package/dist/core/emitter/index.cjs.map +1 -0
  313. package/dist/core/emitter/index.d.ts +14 -0
  314. package/dist/core/emitter/index.d.ts.map +1 -0
  315. package/dist/core/emitter/index.js +5 -0
  316. package/dist/core/emitter/index.js.map +1 -0
  317. package/dist/core/emitter/services/emitter.cjs +60 -0
  318. package/dist/core/emitter/services/emitter.cjs.map +1 -0
  319. package/dist/core/emitter/services/emitter.d.ts +18 -0
  320. package/dist/core/emitter/services/emitter.d.ts.map +1 -0
  321. package/dist/core/emitter/services/emitter.js +40 -0
  322. package/dist/core/emitter/services/emitter.js.map +1 -0
  323. package/dist/core/emitter/types/events.cjs +17 -0
  324. package/dist/core/emitter/types/events.cjs.map +1 -0
  325. package/dist/core/emitter/types/events.d.ts +16 -0
  326. package/dist/core/emitter/types/events.d.ts.map +1 -0
  327. package/dist/core/emitter/types/events.js +1 -0
  328. package/dist/core/emitter/types/events.js.map +1 -0
  329. package/dist/core/wallets-manager/index.cjs +25 -0
  330. package/dist/core/wallets-manager/index.cjs.map +1 -0
  331. package/dist/core/wallets-manager/index.d.ts +9 -0
  332. package/dist/core/wallets-manager/index.d.ts.map +1 -0
  333. package/dist/core/wallets-manager/index.js +5 -0
  334. package/dist/core/wallets-manager/index.js.map +1 -0
  335. package/dist/core/wallets-manager/services/wallets-manager.cjs +80 -0
  336. package/dist/core/wallets-manager/services/wallets-manager.cjs.map +1 -0
  337. package/dist/core/wallets-manager/services/wallets-manager.d.ts +40 -0
  338. package/dist/core/wallets-manager/services/wallets-manager.d.ts.map +1 -0
  339. package/dist/core/wallets-manager/services/wallets-manager.js +60 -0
  340. package/dist/core/wallets-manager/services/wallets-manager.js.map +1 -0
  341. package/dist/index.cjs +35 -0
  342. package/dist/index.cjs.map +1 -0
  343. package/dist/index.d.ts +43 -0
  344. package/dist/index.d.ts.map +1 -0
  345. package/dist/index.js +18 -0
  346. package/dist/index.js.map +1 -0
  347. package/dist/queries/balances/get-balance-by-address.cjs +43 -0
  348. package/dist/queries/balances/get-balance-by-address.cjs.map +1 -0
  349. package/dist/queries/balances/get-balance-by-address.d.ts +21 -0
  350. package/dist/queries/balances/get-balance-by-address.d.ts.map +1 -0
  351. package/dist/queries/balances/get-balance-by-address.js +23 -0
  352. package/dist/queries/balances/get-balance-by-address.js.map +1 -0
  353. package/dist/queries/connectors/connect.cjs +34 -0
  354. package/dist/queries/connectors/connect.cjs.map +1 -0
  355. package/dist/queries/connectors/connect.d.ts +22 -0
  356. package/dist/queries/connectors/connect.d.ts.map +1 -0
  357. package/dist/queries/connectors/connect.js +14 -0
  358. package/dist/queries/connectors/connect.js.map +1 -0
  359. package/dist/queries/connectors/disconnect.cjs +34 -0
  360. package/dist/queries/connectors/disconnect.cjs.map +1 -0
  361. package/dist/queries/connectors/disconnect.d.ts +22 -0
  362. package/dist/queries/connectors/disconnect.d.ts.map +1 -0
  363. package/dist/queries/connectors/disconnect.js +14 -0
  364. package/dist/queries/connectors/disconnect.js.map +1 -0
  365. package/dist/queries/index.cjs +59 -0
  366. package/dist/queries/index.cjs.map +1 -0
  367. package/dist/queries/index.d.ts +26 -0
  368. package/dist/queries/index.d.ts.map +1 -0
  369. package/dist/queries/index.js +75 -0
  370. package/dist/queries/index.js.map +1 -0
  371. package/dist/queries/jettons/get-jetton-balance-by-address.cjs +44 -0
  372. package/dist/queries/jettons/get-jetton-balance-by-address.cjs.map +1 -0
  373. package/dist/queries/jettons/get-jetton-balance-by-address.d.ts +24 -0
  374. package/dist/queries/jettons/get-jetton-balance-by-address.d.ts.map +1 -0
  375. package/dist/queries/jettons/get-jetton-balance-by-address.js +24 -0
  376. package/dist/queries/jettons/get-jetton-balance-by-address.js.map +1 -0
  377. package/dist/queries/jettons/get-jetton-info.cjs +43 -0
  378. package/dist/queries/jettons/get-jetton-info.cjs.map +1 -0
  379. package/dist/queries/jettons/get-jetton-info.d.ts +21 -0
  380. package/dist/queries/jettons/get-jetton-info.d.ts.map +1 -0
  381. package/dist/queries/jettons/get-jetton-info.js +23 -0
  382. package/dist/queries/jettons/get-jetton-info.js.map +1 -0
  383. package/dist/queries/jettons/get-jetton-wallet-address.cjs +44 -0
  384. package/dist/queries/jettons/get-jetton-wallet-address.cjs.map +1 -0
  385. package/dist/queries/jettons/get-jetton-wallet-address.d.ts +24 -0
  386. package/dist/queries/jettons/get-jetton-wallet-address.d.ts.map +1 -0
  387. package/dist/queries/jettons/get-jetton-wallet-address.js +24 -0
  388. package/dist/queries/jettons/get-jetton-wallet-address.js.map +1 -0
  389. package/dist/queries/jettons/get-jettons-by-address.cjs +43 -0
  390. package/dist/queries/jettons/get-jettons-by-address.cjs.map +1 -0
  391. package/dist/queries/jettons/get-jettons-by-address.d.ts +21 -0
  392. package/dist/queries/jettons/get-jettons-by-address.d.ts.map +1 -0
  393. package/dist/queries/jettons/get-jettons-by-address.js +23 -0
  394. package/dist/queries/jettons/get-jettons-by-address.js.map +1 -0
  395. package/dist/queries/jettons/transfer-jetton.cjs +34 -0
  396. package/dist/queries/jettons/transfer-jetton.cjs.map +1 -0
  397. package/dist/queries/jettons/transfer-jetton.d.ts +22 -0
  398. package/dist/queries/jettons/transfer-jetton.d.ts.map +1 -0
  399. package/dist/queries/jettons/transfer-jetton.js +14 -0
  400. package/dist/queries/jettons/transfer-jetton.js.map +1 -0
  401. package/dist/queries/nft/get-nft.cjs +43 -0
  402. package/dist/queries/nft/get-nft.cjs.map +1 -0
  403. package/dist/queries/nft/get-nft.d.ts +21 -0
  404. package/dist/queries/nft/get-nft.d.ts.map +1 -0
  405. package/dist/queries/nft/get-nft.js +23 -0
  406. package/dist/queries/nft/get-nft.js.map +1 -0
  407. package/dist/queries/nft/get-nfts-by-address.cjs +43 -0
  408. package/dist/queries/nft/get-nfts-by-address.cjs.map +1 -0
  409. package/dist/queries/nft/get-nfts-by-address.d.ts +21 -0
  410. package/dist/queries/nft/get-nfts-by-address.d.ts.map +1 -0
  411. package/dist/queries/nft/get-nfts-by-address.js +23 -0
  412. package/dist/queries/nft/get-nfts-by-address.js.map +1 -0
  413. package/dist/queries/nft/transfer-nft.cjs +34 -0
  414. package/dist/queries/nft/transfer-nft.cjs.map +1 -0
  415. package/dist/queries/nft/transfer-nft.d.ts +22 -0
  416. package/dist/queries/nft/transfer-nft.d.ts.map +1 -0
  417. package/dist/queries/nft/transfer-nft.js +14 -0
  418. package/dist/queries/nft/transfer-nft.js.map +1 -0
  419. package/dist/queries/signing/sign-binary.cjs +34 -0
  420. package/dist/queries/signing/sign-binary.cjs.map +1 -0
  421. package/dist/queries/signing/sign-binary.d.ts +21 -0
  422. package/dist/queries/signing/sign-binary.d.ts.map +1 -0
  423. package/dist/queries/signing/sign-binary.js +14 -0
  424. package/dist/queries/signing/sign-binary.js.map +1 -0
  425. package/dist/queries/signing/sign-cell.cjs +34 -0
  426. package/dist/queries/signing/sign-cell.cjs.map +1 -0
  427. package/dist/queries/signing/sign-cell.d.ts +21 -0
  428. package/dist/queries/signing/sign-cell.d.ts.map +1 -0
  429. package/dist/queries/signing/sign-cell.js +14 -0
  430. package/dist/queries/signing/sign-cell.js.map +1 -0
  431. package/dist/queries/signing/sign-text.cjs +34 -0
  432. package/dist/queries/signing/sign-text.cjs.map +1 -0
  433. package/dist/queries/signing/sign-text.d.ts +21 -0
  434. package/dist/queries/signing/sign-text.d.ts.map +1 -0
  435. package/dist/queries/signing/sign-text.js +14 -0
  436. package/dist/queries/signing/sign-text.js.map +1 -0
  437. package/dist/queries/swap/build-swap-transaction.cjs +38 -0
  438. package/dist/queries/swap/build-swap-transaction.cjs.map +1 -0
  439. package/dist/queries/swap/build-swap-transaction.d.ts +21 -0
  440. package/dist/queries/swap/build-swap-transaction.d.ts.map +1 -0
  441. package/dist/queries/swap/build-swap-transaction.js +18 -0
  442. package/dist/queries/swap/build-swap-transaction.js.map +1 -0
  443. package/dist/queries/swap/get-swap-quote.cjs +54 -0
  444. package/dist/queries/swap/get-swap-quote.cjs.map +1 -0
  445. package/dist/queries/swap/get-swap-quote.d.ts +21 -0
  446. package/dist/queries/swap/get-swap-quote.d.ts.map +1 -0
  447. package/dist/queries/swap/get-swap-quote.js +34 -0
  448. package/dist/queries/swap/get-swap-quote.js.map +1 -0
  449. package/dist/queries/transaction/send-transaction.cjs +34 -0
  450. package/dist/queries/transaction/send-transaction.cjs.map +1 -0
  451. package/dist/queries/transaction/send-transaction.d.ts +21 -0
  452. package/dist/queries/transaction/send-transaction.d.ts.map +1 -0
  453. package/dist/queries/transaction/send-transaction.js +14 -0
  454. package/dist/queries/transaction/send-transaction.js.map +1 -0
  455. package/dist/queries/transaction/transfer-ton.cjs +34 -0
  456. package/dist/queries/transaction/transfer-ton.cjs.map +1 -0
  457. package/dist/queries/transaction/transfer-ton.d.ts +21 -0
  458. package/dist/queries/transaction/transfer-ton.d.ts.map +1 -0
  459. package/dist/queries/transaction/transfer-ton.js +14 -0
  460. package/dist/queries/transaction/transfer-ton.js.map +1 -0
  461. package/dist/swap/index.cjs +17 -0
  462. package/dist/swap/index.cjs.map +1 -0
  463. package/dist/swap/index.d.ts +9 -0
  464. package/dist/swap/index.d.ts.map +1 -0
  465. package/dist/swap/index.js +1 -0
  466. package/dist/swap/index.js.map +1 -0
  467. package/dist/swap/omniston/index.cjs +19 -0
  468. package/dist/swap/omniston/index.cjs.map +1 -0
  469. package/dist/swap/omniston/index.d.ts +9 -0
  470. package/dist/swap/omniston/index.d.ts.map +1 -0
  471. package/dist/swap/omniston/index.js +2 -0
  472. package/dist/swap/omniston/index.js.map +1 -0
  473. package/dist/types/balance.cjs +17 -0
  474. package/dist/types/balance.cjs.map +1 -0
  475. package/dist/types/balance.d.ts +10 -0
  476. package/dist/types/balance.d.ts.map +1 -0
  477. package/dist/types/balance.js +1 -0
  478. package/dist/types/balance.js.map +1 -0
  479. package/dist/types/connector.cjs +17 -0
  480. package/dist/types/connector.cjs.map +1 -0
  481. package/dist/types/connector.d.ts +35 -0
  482. package/dist/types/connector.d.ts.map +1 -0
  483. package/dist/types/connector.js +1 -0
  484. package/dist/types/connector.js.map +1 -0
  485. package/dist/types/jetton.cjs +17 -0
  486. package/dist/types/jetton.cjs.map +1 -0
  487. package/dist/types/jetton.d.ts +9 -0
  488. package/dist/types/jetton.d.ts.map +1 -0
  489. package/dist/types/jetton.js +1 -0
  490. package/dist/types/jetton.js.map +1 -0
  491. package/dist/types/network.cjs +25 -0
  492. package/dist/types/network.cjs.map +1 -0
  493. package/dist/types/network.d.ts +9 -0
  494. package/dist/types/network.d.ts.map +1 -0
  495. package/dist/types/network.js +5 -0
  496. package/dist/types/network.js.map +1 -0
  497. package/dist/types/nft.cjs +17 -0
  498. package/dist/types/nft.cjs.map +1 -0
  499. package/dist/types/nft.d.ts +9 -0
  500. package/dist/types/nft.d.ts.map +1 -0
  501. package/dist/types/nft.js +1 -0
  502. package/dist/types/nft.js.map +1 -0
  503. package/dist/types/primitives.cjs +17 -0
  504. package/dist/types/primitives.cjs.map +1 -0
  505. package/dist/types/primitives.d.ts +9 -0
  506. package/dist/types/primitives.d.ts.map +1 -0
  507. package/dist/types/primitives.js +1 -0
  508. package/dist/types/primitives.js.map +1 -0
  509. package/dist/types/provider.cjs +17 -0
  510. package/dist/types/provider.cjs.map +1 -0
  511. package/dist/types/provider.d.ts +13 -0
  512. package/dist/types/provider.d.ts.map +1 -0
  513. package/dist/types/provider.js +1 -0
  514. package/dist/types/provider.js.map +1 -0
  515. package/dist/types/query.cjs +17 -0
  516. package/dist/types/query.cjs.map +1 -0
  517. package/dist/types/query.d.ts +19 -0
  518. package/dist/types/query.d.ts.map +1 -0
  519. package/dist/types/query.js +1 -0
  520. package/dist/types/query.js.map +1 -0
  521. package/dist/types/signing.cjs +17 -0
  522. package/dist/types/signing.cjs.map +1 -0
  523. package/dist/types/signing.d.ts +76 -0
  524. package/dist/types/signing.d.ts.map +1 -0
  525. package/dist/types/signing.js +1 -0
  526. package/dist/types/signing.js.map +1 -0
  527. package/dist/types/transaction.cjs +17 -0
  528. package/dist/types/transaction.cjs.map +1 -0
  529. package/dist/types/transaction.d.ts +53 -0
  530. package/dist/types/transaction.d.ts.map +1 -0
  531. package/dist/types/transaction.js +1 -0
  532. package/dist/types/transaction.js.map +1 -0
  533. package/dist/types/utils.cjs +17 -0
  534. package/dist/types/utils.cjs.map +1 -0
  535. package/dist/types/utils.d.ts +83 -0
  536. package/dist/types/utils.d.ts.map +1 -0
  537. package/dist/types/utils.js +1 -0
  538. package/dist/types/utils.js.map +1 -0
  539. package/dist/types/wallet.cjs +17 -0
  540. package/dist/types/wallet.cjs.map +1 -0
  541. package/dist/types/wallet.d.ts +32 -0
  542. package/dist/types/wallet.d.ts.map +1 -0
  543. package/dist/types/wallet.js +1 -0
  544. package/dist/types/wallet.js.map +1 -0
  545. package/dist/utils/amount/validate-numeric-string.cjs +37 -0
  546. package/dist/utils/amount/validate-numeric-string.cjs.map +1 -0
  547. package/dist/utils/amount/validate-numeric-string.d.ts +11 -0
  548. package/dist/utils/amount/validate-numeric-string.d.ts.map +1 -0
  549. package/dist/utils/amount/validate-numeric-string.js +17 -0
  550. package/dist/utils/amount/validate-numeric-string.js.map +1 -0
  551. package/dist/utils/amount/validate-numeric-string.test.d.ts +9 -0
  552. package/dist/utils/amount/validate-numeric-string.test.d.ts.map +1 -0
  553. package/dist/utils/arrays/key-by.cjs +32 -0
  554. package/dist/utils/arrays/key-by.cjs.map +1 -0
  555. package/dist/utils/arrays/key-by.d.ts +9 -0
  556. package/dist/utils/arrays/key-by.d.ts.map +1 -0
  557. package/dist/utils/arrays/key-by.js +12 -0
  558. package/dist/utils/arrays/key-by.js.map +1 -0
  559. package/dist/utils/arrays/key-by.test.d.ts +9 -0
  560. package/dist/utils/arrays/key-by.test.d.ts.map +1 -0
  561. package/dist/utils/arrays/random-from-array.cjs +25 -0
  562. package/dist/utils/arrays/random-from-array.cjs.map +1 -0
  563. package/dist/utils/arrays/random-from-array.d.ts +9 -0
  564. package/dist/utils/arrays/random-from-array.d.ts.map +1 -0
  565. package/dist/utils/arrays/random-from-array.js +5 -0
  566. package/dist/utils/arrays/random-from-array.js.map +1 -0
  567. package/dist/utils/arrays/random-from-array.test.d.ts +9 -0
  568. package/dist/utils/arrays/random-from-array.test.d.ts.map +1 -0
  569. package/dist/utils/errors/get-error-message.cjs +34 -0
  570. package/dist/utils/errors/get-error-message.cjs.map +1 -0
  571. package/dist/utils/errors/get-error-message.d.ts +9 -0
  572. package/dist/utils/errors/get-error-message.d.ts.map +1 -0
  573. package/dist/utils/errors/get-error-message.js +14 -0
  574. package/dist/utils/errors/get-error-message.js.map +1 -0
  575. package/dist/utils/errors/get-error-message.test.d.ts +9 -0
  576. package/dist/utils/errors/get-error-message.test.d.ts.map +1 -0
  577. package/dist/utils/functions/noop.cjs +26 -0
  578. package/dist/utils/functions/noop.cjs.map +1 -0
  579. package/dist/utils/functions/noop.d.ts +9 -0
  580. package/dist/utils/functions/noop.d.ts.map +1 -0
  581. package/dist/utils/functions/noop.js +6 -0
  582. package/dist/utils/functions/noop.js.map +1 -0
  583. package/dist/utils/index.cjs +40 -0
  584. package/dist/utils/index.cjs.map +1 -0
  585. package/dist/utils/index.d.ts +22 -0
  586. package/dist/utils/index.d.ts.map +1 -0
  587. package/dist/utils/index.js +19 -0
  588. package/dist/utils/index.js.map +1 -0
  589. package/dist/utils/jetton/jetton-info.cjs +65 -0
  590. package/dist/utils/jetton/jetton-info.cjs.map +1 -0
  591. package/dist/utils/jetton/jetton-info.d.ts +23 -0
  592. package/dist/utils/jetton/jetton-info.d.ts.map +1 -0
  593. package/dist/utils/jetton/jetton-info.js +45 -0
  594. package/dist/utils/jetton/jetton-info.js.map +1 -0
  595. package/dist/utils/nft/nft-info.cjs +70 -0
  596. package/dist/utils/nft/nft-info.cjs.map +1 -0
  597. package/dist/utils/nft/nft-info.d.ts +21 -0
  598. package/dist/utils/nft/nft-info.d.ts.map +1 -0
  599. package/dist/utils/nft/nft-info.js +50 -0
  600. package/dist/utils/nft/nft-info.js.map +1 -0
  601. package/dist/utils/object/map-values.cjs +33 -0
  602. package/dist/utils/object/map-values.cjs.map +1 -0
  603. package/dist/utils/object/map-values.d.ts +9 -0
  604. package/dist/utils/object/map-values.d.ts.map +1 -0
  605. package/dist/utils/object/map-values.js +13 -0
  606. package/dist/utils/object/map-values.js.map +1 -0
  607. package/dist/utils/object/map-values.test.d.ts +9 -0
  608. package/dist/utils/object/map-values.test.d.ts.map +1 -0
  609. package/dist/utils/predicate/is-string.cjs +27 -0
  610. package/dist/utils/predicate/is-string.cjs.map +1 -0
  611. package/dist/utils/predicate/is-string.d.ts +9 -0
  612. package/dist/utils/predicate/is-string.d.ts.map +1 -0
  613. package/dist/utils/predicate/is-string.js +7 -0
  614. package/dist/utils/predicate/is-string.js.map +1 -0
  615. package/dist/utils/predicate/is-string.test.d.ts +9 -0
  616. package/dist/utils/predicate/is-string.test.d.ts.map +1 -0
  617. package/dist/utils/promise/cancel-promise.cjs +32 -0
  618. package/dist/utils/promise/cancel-promise.cjs.map +1 -0
  619. package/dist/utils/promise/cancel-promise.d.ts +9 -0
  620. package/dist/utils/promise/cancel-promise.d.ts.map +1 -0
  621. package/dist/utils/promise/cancel-promise.js +12 -0
  622. package/dist/utils/promise/cancel-promise.js.map +1 -0
  623. package/dist/utils/promise/cancel-promise.test.d.ts +9 -0
  624. package/dist/utils/promise/cancel-promise.test.d.ts.map +1 -0
  625. package/dist/utils/promise/sleep.cjs +29 -0
  626. package/dist/utils/promise/sleep.cjs.map +1 -0
  627. package/dist/utils/promise/sleep.d.ts +9 -0
  628. package/dist/utils/promise/sleep.d.ts.map +1 -0
  629. package/dist/utils/promise/sleep.js +9 -0
  630. package/dist/utils/promise/sleep.js.map +1 -0
  631. package/dist/utils/query/filter-query-options.cjs +28 -0
  632. package/dist/utils/query/filter-query-options.cjs.map +1 -0
  633. package/dist/utils/query/filter-query-options.d.ts +10 -0
  634. package/dist/utils/query/filter-query-options.d.ts.map +1 -0
  635. package/dist/utils/query/filter-query-options.js +8 -0
  636. package/dist/utils/query/filter-query-options.js.map +1 -0
  637. package/dist/utils/string/middle-ellipsis.cjs +30 -0
  638. package/dist/utils/string/middle-ellipsis.cjs.map +1 -0
  639. package/dist/utils/string/middle-ellipsis.d.ts +9 -0
  640. package/dist/utils/string/middle-ellipsis.d.ts.map +1 -0
  641. package/dist/utils/string/middle-ellipsis.js +10 -0
  642. package/dist/utils/string/middle-ellipsis.js.map +1 -0
  643. package/dist/utils/string/middle-ellipsis.test.d.ts +9 -0
  644. package/dist/utils/string/middle-ellipsis.test.d.ts.map +1 -0
  645. package/docs/actions.md +547 -0
  646. package/docs/connectors.md +135 -0
  647. package/docs/query.md +30 -0
  648. package/docs/swap.md +66 -0
  649. package/package.json +95 -8
  650. package/src/actions/balances/get-balance-by-address.ts +33 -0
  651. package/src/actions/balances/get-balance.ts +32 -0
  652. package/src/actions/connectors/add-connector.ts +21 -0
  653. package/src/actions/connectors/connect.ts +29 -0
  654. package/src/actions/connectors/disconnect.ts +29 -0
  655. package/src/actions/connectors/get-connector-by-id.ts +23 -0
  656. package/src/actions/connectors/get-connectors.ts +19 -0
  657. package/src/actions/connectors/watch-connector-by-id.ts +35 -0
  658. package/src/actions/connectors/watch-connectors.ts +31 -0
  659. package/src/actions/index.ts +134 -0
  660. package/src/actions/jettons/create-transfer-jetton-transaction.ts +67 -0
  661. package/src/actions/jettons/get-jetton-balance.ts +40 -0
  662. package/src/actions/jettons/get-jetton-info.ts +72 -0
  663. package/src/actions/jettons/get-jetton-wallet-address.ts +31 -0
  664. package/src/actions/jettons/get-jettons-by-address.ts +55 -0
  665. package/src/actions/jettons/get-jettons.ts +36 -0
  666. package/src/actions/jettons/transfer-jetton.ts +32 -0
  667. package/src/actions/network/get-network.ts +23 -0
  668. package/src/actions/network/get-networks.ts +20 -0
  669. package/src/actions/network/watch-networks.ts +32 -0
  670. package/src/actions/nft/create-transfer-nft-transaction.ts +51 -0
  671. package/src/actions/nft/get-nft.ts +29 -0
  672. package/src/actions/nft/get-nfts-by-address.ts +39 -0
  673. package/src/actions/nft/get-nfts.ts +36 -0
  674. package/src/actions/nft/transfer-nft.ts +30 -0
  675. package/src/actions/providers/register-provider.ts +19 -0
  676. package/src/actions/signing/sign-binary.ts +48 -0
  677. package/src/actions/signing/sign-cell.ts +57 -0
  678. package/src/actions/signing/sign-text.ts +47 -0
  679. package/src/actions/swap/build-swap-transaction.ts +25 -0
  680. package/src/actions/swap/get-swap-manager.ts +20 -0
  681. package/src/actions/swap/get-swap-quote.ts +27 -0
  682. package/src/actions/transaction/create-transfer-ton-transaction.ts +63 -0
  683. package/src/actions/transaction/send-transaction.ts +35 -0
  684. package/src/actions/transaction/transfer-ton.ts +32 -0
  685. package/src/actions/wallets/get-connected-wallets.ts +19 -0
  686. package/src/actions/wallets/get-selected-wallet.ts +19 -0
  687. package/src/actions/wallets/set-selected-wallet-id.ts +25 -0
  688. package/src/actions/wallets/watch-connected-wallets.ts +33 -0
  689. package/src/actions/wallets/watch-selected-wallet.ts +35 -0
  690. package/src/connectors/tonconnect/adapters/ton-connect-wallet-adapter.ts +161 -0
  691. package/src/connectors/tonconnect/connectors/ton-connect-connector.ts +99 -0
  692. package/src/connectors/tonconnect/constants/id.ts +9 -0
  693. package/src/connectors/tonconnect/index.ts +31 -0
  694. package/src/connectors/tonconnect/utils/transaction.ts +50 -0
  695. package/src/core/app-kit/constants/events.ts +37 -0
  696. package/src/core/app-kit/index.ts +19 -0
  697. package/src/core/app-kit/services/app-kit-network-manager.ts +27 -0
  698. package/src/core/app-kit/services/app-kit.ts +123 -0
  699. package/src/core/app-kit/types/config.ts +28 -0
  700. package/src/core/app-kit/types/events.ts +43 -0
  701. package/src/core/emitter/index.ts +15 -0
  702. package/src/core/emitter/services/emitter.ts +53 -0
  703. package/src/core/emitter/types/events.ts +18 -0
  704. package/src/core/wallets-manager/index.ts +9 -0
  705. package/src/core/wallets-manager/services/wallets-manager.ts +87 -0
  706. package/src/index.ts +52 -0
  707. package/src/queries/balances/get-balance-by-address.ts +58 -0
  708. package/src/queries/connectors/connect.ts +60 -0
  709. package/src/queries/connectors/disconnect.ts +64 -0
  710. package/src/queries/index.ts +181 -0
  711. package/src/queries/jettons/get-jetton-balance-by-address.ts +69 -0
  712. package/src/queries/jettons/get-jetton-info.ts +57 -0
  713. package/src/queries/jettons/get-jetton-wallet-address.ts +69 -0
  714. package/src/queries/jettons/get-jettons-by-address.ts +59 -0
  715. package/src/queries/jettons/transfer-jetton.ts +64 -0
  716. package/src/queries/nft/get-nft.ts +56 -0
  717. package/src/queries/nft/get-nfts-by-address.ts +59 -0
  718. package/src/queries/nft/transfer-nft.ts +64 -0
  719. package/src/queries/signing/sign-binary.ts +62 -0
  720. package/src/queries/signing/sign-cell.ts +58 -0
  721. package/src/queries/signing/sign-text.ts +58 -0
  722. package/src/queries/swap/build-swap-transaction.ts +84 -0
  723. package/src/queries/swap/get-swap-quote.ts +70 -0
  724. package/src/queries/transaction/send-transaction.ts +70 -0
  725. package/src/queries/transaction/transfer-ton.ts +66 -0
  726. package/src/swap/index.ts +9 -0
  727. package/src/swap/omniston/index.ts +9 -0
  728. package/src/types/balance.ts +11 -0
  729. package/src/types/connector.ts +45 -0
  730. package/src/types/jetton.ts +9 -0
  731. package/src/types/network.ts +9 -0
  732. package/src/types/nft.ts +9 -0
  733. package/src/types/primitives.ts +9 -0
  734. package/src/types/provider.ts +14 -0
  735. package/src/types/query.ts +44 -0
  736. package/src/types/signing.ts +78 -0
  737. package/src/types/transaction.ts +63 -0
  738. package/src/types/utils.ts +120 -0
  739. package/src/types/wallet.ts +48 -0
  740. package/src/utils/amount/validate-numeric-string.test.ts +53 -0
  741. package/src/utils/amount/validate-numeric-string.ts +25 -0
  742. package/src/utils/arrays/key-by.test.ts +55 -0
  743. package/src/utils/arrays/key-by.ts +18 -0
  744. package/src/utils/arrays/random-from-array.test.ts +37 -0
  745. package/src/utils/arrays/random-from-array.ts +9 -0
  746. package/src/utils/errors/get-error-message.test.ts +39 -0
  747. package/src/utils/errors/get-error-message.ts +24 -0
  748. package/src/utils/functions/noop.ts +11 -0
  749. package/src/utils/index.ts +23 -0
  750. package/src/utils/jetton/jetton-info.ts +62 -0
  751. package/src/utils/nft/nft-info.ts +62 -0
  752. package/src/utils/object/map-values.test.ts +37 -0
  753. package/src/utils/object/map-values.ts +23 -0
  754. package/src/utils/predicate/is-string.test.ts +29 -0
  755. package/src/utils/predicate/is-string.ts +11 -0
  756. package/src/utils/promise/cancel-promise.test.ts +28 -0
  757. package/src/utils/promise/cancel-promise.ts +16 -0
  758. package/src/utils/promise/sleep.ts +13 -0
  759. package/src/utils/query/filter-query-options.ts +15 -0
  760. package/src/utils/string/middle-ellipsis.test.ts +33 -0
  761. package/src/utils/string/middle-ellipsis.ts +15 -0
  762. package/tsconfig.json +29 -0
  763. package/tsup.config.ts +28 -0
  764. package/vitest.config.ts +21 -0
  765. package/index.js +0 -1
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var transfer_jetton_exports = {};
20
+ __export(transfer_jetton_exports, {
21
+ transferJettonMutationOptions: () => transferJettonMutationOptions
22
+ });
23
+ module.exports = __toCommonJS(transfer_jetton_exports);
24
+ var import_transfer_jetton = require("../../actions/jettons/transfer-jetton");
25
+ const transferJettonMutationOptions = (appKit, options = {}) => {
26
+ return {
27
+ ...options.mutation,
28
+ mutationFn(variables) {
29
+ return (0, import_transfer_jetton.transferJetton)(appKit, variables);
30
+ },
31
+ mutationKey: ["transferJetton"]
32
+ };
33
+ };
34
+ //# sourceMappingURL=transfer-jetton.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/jettons/transfer-jetton.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateOptions, MutationOptions } from '@tanstack/query-core';\n\nimport { transferJetton } from '../../actions/jettons/transfer-jetton';\nimport type { TransferJettonParameters, TransferJettonReturnType } from '../../actions/jettons/transfer-jetton';\nimport type { AppKit } from '../../core/app-kit';\nimport type { MutationParameter } from '../../types/query';\nimport type { Compute } from '../../types/utils';\n\nexport type { TransferJettonParameters, TransferJettonReturnType };\n\nexport type TransferJettonErrorType = Error;\n\nexport type TransferJettonOptions<context = unknown> = MutationParameter<\n TransferJettonData,\n TransferJettonErrorType,\n TransferJettonVariables,\n context\n>;\n\nexport const transferJettonMutationOptions = <context = unknown>(\n appKit: AppKit,\n options: TransferJettonOptions<context> = {},\n): TransferJettonMutationOptions<context> => {\n return {\n ...options.mutation,\n mutationFn(variables) {\n return transferJetton(appKit, variables);\n },\n mutationKey: ['transferJetton'],\n };\n};\n\nexport type TransferJettonMutationOptions<context = unknown> = MutationOptions<\n TransferJettonData,\n TransferJettonErrorType,\n TransferJettonVariables,\n context\n>;\n\nexport type TransferJettonData = Compute<TransferJettonReturnType>;\n\nexport type TransferJettonVariables = TransferJettonParameters;\n\nexport type TransferJettonMutate<context = unknown> = (\n variables: TransferJettonVariables,\n options?:\n | Compute<MutateOptions<TransferJettonData, TransferJettonErrorType, Compute<TransferJettonVariables>, context>>\n | undefined,\n) => void;\n\nexport type TransferJettonMutateAsync<context = unknown> = (\n variables: TransferJettonVariables,\n options?:\n | Compute<MutateOptions<TransferJettonData, TransferJettonErrorType, Compute<TransferJettonVariables>, context>>\n | undefined,\n) => Promise<TransferJettonData>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,6BAA+B;AAiBxB,MAAM,gCAAgC,CACzC,QACA,UAA0C,CAAC,MACF;AACzC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,WAAW,WAAW;AAClB,iBAAO,uCAAe,QAAQ,SAAS;AAAA,IAC3C;AAAA,IACA,aAAa,CAAC,gBAAgB;AAAA,EAClC;AACJ;","names":[]}
@@ -0,0 +1,22 @@
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 { MutateOptions, MutationOptions } from '@tanstack/query-core';
9
+ import type { TransferJettonParameters, TransferJettonReturnType } from '../../actions/jettons/transfer-jetton';
10
+ import type { AppKit } from '../../core/app-kit';
11
+ import type { MutationParameter } from '../../types/query';
12
+ import type { Compute } from '../../types/utils';
13
+ export type { TransferJettonParameters, TransferJettonReturnType };
14
+ export type TransferJettonErrorType = Error;
15
+ export type TransferJettonOptions<context = unknown> = MutationParameter<TransferJettonData, TransferJettonErrorType, TransferJettonVariables, context>;
16
+ export declare const transferJettonMutationOptions: <context = unknown>(appKit: AppKit, options?: TransferJettonOptions<context>) => TransferJettonMutationOptions<context>;
17
+ export type TransferJettonMutationOptions<context = unknown> = MutationOptions<TransferJettonData, TransferJettonErrorType, TransferJettonVariables, context>;
18
+ export type TransferJettonData = Compute<TransferJettonReturnType>;
19
+ export type TransferJettonVariables = TransferJettonParameters;
20
+ export type TransferJettonMutate<context = unknown> = (variables: TransferJettonVariables, options?: Compute<MutateOptions<TransferJettonData, TransferJettonErrorType, Compute<TransferJettonVariables>, context>> | undefined) => void;
21
+ export type TransferJettonMutateAsync<context = unknown> = (variables: TransferJettonVariables, options?: Compute<MutateOptions<TransferJettonData, TransferJettonErrorType, Compute<TransferJettonVariables>, context>> | undefined) => Promise<TransferJettonData>;
22
+ //# sourceMappingURL=transfer-jetton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-jetton.d.ts","sourceRoot":"","sources":["../../../src/queries/jettons/transfer-jetton.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAChH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,YAAY,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAE5C,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CACpE,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,OAAO,CACV,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,OAAO,GAAG,OAAO,EAC3D,QAAQ,MAAM,EACd,UAAS,qBAAqB,CAAC,OAAO,CAAM,KAC7C,6BAA6B,CAAC,OAAO,CAQvC,CAAC;AAEF,MAAM,MAAM,6BAA6B,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CAC1E,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,OAAO,CACV,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAE/D,MAAM,MAAM,oBAAoB,CAAC,OAAO,GAAG,OAAO,IAAI,CAClD,SAAS,EAAE,uBAAuB,EAClC,OAAO,CAAC,EACF,OAAO,CAAC,aAAa,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC,CAAC,GAC9G,SAAS,KACd,IAAI,CAAC;AAEV,MAAM,MAAM,yBAAyB,CAAC,OAAO,GAAG,OAAO,IAAI,CACvD,SAAS,EAAE,uBAAuB,EAClC,OAAO,CAAC,EACF,OAAO,CAAC,aAAa,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC,CAAC,GAC9G,SAAS,KACd,OAAO,CAAC,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { transferJetton } from "../../actions/jettons/transfer-jetton";
2
+ const transferJettonMutationOptions = (appKit, options = {}) => {
3
+ return {
4
+ ...options.mutation,
5
+ mutationFn(variables) {
6
+ return transferJetton(appKit, variables);
7
+ },
8
+ mutationKey: ["transferJetton"]
9
+ };
10
+ };
11
+ export {
12
+ transferJettonMutationOptions
13
+ };
14
+ //# sourceMappingURL=transfer-jetton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/jettons/transfer-jetton.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateOptions, MutationOptions } from '@tanstack/query-core';\n\nimport { transferJetton } from '../../actions/jettons/transfer-jetton';\nimport type { TransferJettonParameters, TransferJettonReturnType } from '../../actions/jettons/transfer-jetton';\nimport type { AppKit } from '../../core/app-kit';\nimport type { MutationParameter } from '../../types/query';\nimport type { Compute } from '../../types/utils';\n\nexport type { TransferJettonParameters, TransferJettonReturnType };\n\nexport type TransferJettonErrorType = Error;\n\nexport type TransferJettonOptions<context = unknown> = MutationParameter<\n TransferJettonData,\n TransferJettonErrorType,\n TransferJettonVariables,\n context\n>;\n\nexport const transferJettonMutationOptions = <context = unknown>(\n appKit: AppKit,\n options: TransferJettonOptions<context> = {},\n): TransferJettonMutationOptions<context> => {\n return {\n ...options.mutation,\n mutationFn(variables) {\n return transferJetton(appKit, variables);\n },\n mutationKey: ['transferJetton'],\n };\n};\n\nexport type TransferJettonMutationOptions<context = unknown> = MutationOptions<\n TransferJettonData,\n TransferJettonErrorType,\n TransferJettonVariables,\n context\n>;\n\nexport type TransferJettonData = Compute<TransferJettonReturnType>;\n\nexport type TransferJettonVariables = TransferJettonParameters;\n\nexport type TransferJettonMutate<context = unknown> = (\n variables: TransferJettonVariables,\n options?:\n | Compute<MutateOptions<TransferJettonData, TransferJettonErrorType, Compute<TransferJettonVariables>, context>>\n | undefined,\n) => void;\n\nexport type TransferJettonMutateAsync<context = unknown> = (\n variables: TransferJettonVariables,\n options?:\n | Compute<MutateOptions<TransferJettonData, TransferJettonErrorType, Compute<TransferJettonVariables>, context>>\n | undefined,\n) => Promise<TransferJettonData>;\n"],"mappings":"AAUA,SAAS,sBAAsB;AAiBxB,MAAM,gCAAgC,CACzC,QACA,UAA0C,CAAC,MACF;AACzC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,WAAW,WAAW;AAClB,aAAO,eAAe,QAAQ,SAAS;AAAA,IAC3C;AAAA,IACA,aAAa,CAAC,gBAAgB;AAAA,EAClC;AACJ;","names":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var get_nft_exports = {};
20
+ __export(get_nft_exports, {
21
+ getNftQueryKey: () => getNftQueryKey,
22
+ getNftQueryOptions: () => getNftQueryOptions
23
+ });
24
+ module.exports = __toCommonJS(get_nft_exports);
25
+ var import_get_nft = require("../../actions/nft/get-nft");
26
+ var import_utils = require("../../utils");
27
+ const getNftQueryOptions = (appKit, options = {}) => {
28
+ return {
29
+ ...options.query,
30
+ enabled: Boolean(options.address && (options.query?.enabled ?? true)),
31
+ queryFn: async (context) => {
32
+ const [, parameters] = context.queryKey;
33
+ if (!parameters.address) throw new Error("address is required");
34
+ const nft = await (0, import_get_nft.getNft)(appKit, parameters);
35
+ return nft;
36
+ },
37
+ queryKey: getNftQueryKey(options)
38
+ };
39
+ };
40
+ const getNftQueryKey = (options = {}) => {
41
+ return ["nft", (0, import_utils.filterQueryOptions)(options)];
42
+ };
43
+ //# sourceMappingURL=get-nft.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/nft/get-nft.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { NFT } from '@ton/walletkit';\n\nimport type { AppKit } from '../../core/app-kit';\nimport { getNft } from '../../actions/nft/get-nft';\nimport type { GetNftOptions as GetNftParameters } from '../../actions/nft/get-nft';\nimport type { QueryOptions, QueryParameter } from '../../types/query';\nimport type { Compute, ExactPartial } from '../../types/utils';\nimport { filterQueryOptions } from '../../utils';\n\nexport type GetNftErrorType = Error;\n\nexport type GetNftQueryConfig<selectData = GetNftData> = Compute<ExactPartial<GetNftParameters>> &\n QueryParameter<GetNftQueryFnData, GetNftErrorType, selectData, GetNftQueryKey>;\n\nexport const getNftQueryOptions = <selectData = GetNftData>(\n appKit: AppKit,\n options: GetNftQueryConfig<selectData> = {},\n): GetNftQueryOptions<selectData> => {\n return {\n ...options.query,\n enabled: Boolean(options.address && (options.query?.enabled ?? true)),\n queryFn: async (context) => {\n const [, parameters] = context.queryKey as [string, GetNftParameters];\n if (!parameters.address) throw new Error('address is required');\n\n const nft = await getNft(appKit, parameters);\n return nft;\n },\n queryKey: getNftQueryKey(options),\n };\n};\n\nexport type GetNftQueryFnData = Compute<NFT | null>;\n\nexport type GetNftData = GetNftQueryFnData;\n\nexport const getNftQueryKey = (options: Compute<ExactPartial<GetNftParameters>> = {}): GetNftQueryKey => {\n return ['nft', filterQueryOptions(options)] as const;\n};\n\nexport type GetNftQueryKey = readonly ['nft', Compute<ExactPartial<GetNftParameters>>];\n\nexport type GetNftQueryOptions<selectData = GetNftData> = QueryOptions<\n GetNftQueryFnData,\n GetNftErrorType,\n selectData,\n GetNftQueryKey\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,qBAAuB;AAIvB,mBAAmC;AAO5B,MAAM,qBAAqB,CAC9B,QACA,UAAyC,CAAC,MACT;AACjC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,SAAS,QAAQ,QAAQ,YAAY,QAAQ,OAAO,WAAW,KAAK;AAAA,IACpE,SAAS,OAAO,YAAY;AACxB,YAAM,CAAC,EAAE,UAAU,IAAI,QAAQ;AAC/B,UAAI,CAAC,WAAW,QAAS,OAAM,IAAI,MAAM,qBAAqB;AAE9D,YAAM,MAAM,UAAM,uBAAO,QAAQ,UAAU;AAC3C,aAAO;AAAA,IACX;AAAA,IACA,UAAU,eAAe,OAAO;AAAA,EACpC;AACJ;AAMO,MAAM,iBAAiB,CAAC,UAAmD,CAAC,MAAsB;AACrG,SAAO,CAAC,WAAO,iCAAmB,OAAO,CAAC;AAC9C;","names":[]}
@@ -0,0 +1,21 @@
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 { NFT } from '@ton/walletkit';
9
+ import type { AppKit } from '../../core/app-kit';
10
+ import type { GetNftOptions as GetNftParameters } from '../../actions/nft/get-nft';
11
+ import type { QueryOptions, QueryParameter } from '../../types/query';
12
+ import type { Compute, ExactPartial } from '../../types/utils';
13
+ export type GetNftErrorType = Error;
14
+ export type GetNftQueryConfig<selectData = GetNftData> = Compute<ExactPartial<GetNftParameters>> & QueryParameter<GetNftQueryFnData, GetNftErrorType, selectData, GetNftQueryKey>;
15
+ export declare const getNftQueryOptions: <selectData = GetNftData>(appKit: AppKit, options?: GetNftQueryConfig<selectData>) => GetNftQueryOptions<selectData>;
16
+ export type GetNftQueryFnData = Compute<NFT | null>;
17
+ export type GetNftData = GetNftQueryFnData;
18
+ export declare const getNftQueryKey: (options?: Compute<ExactPartial<GetNftParameters>>) => GetNftQueryKey;
19
+ export type GetNftQueryKey = readonly ['nft', Compute<ExactPartial<GetNftParameters>>];
20
+ export type GetNftQueryOptions<selectData = GetNftData> = QueryOptions<GetNftQueryFnData, GetNftErrorType, selectData, GetNftQueryKey>;
21
+ //# sourceMappingURL=get-nft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-nft.d.ts","sourceRoot":"","sources":["../../../src/queries/nft/get-nft.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG/D,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC;AAEpC,MAAM,MAAM,iBAAiB,CAAC,UAAU,GAAG,UAAU,IAAI,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,GAC5F,cAAc,CAAC,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;AAEnF,eAAO,MAAM,kBAAkB,GAAI,UAAU,GAAG,UAAU,EACtD,QAAQ,MAAM,EACd,UAAS,iBAAiB,CAAC,UAAU,CAAM,KAC5C,kBAAkB,CAAC,UAAU,CAa/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAE3C,eAAO,MAAM,cAAc,GAAI,UAAS,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAM,KAAG,cAEtF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAEvF,MAAM,MAAM,kBAAkB,CAAC,UAAU,GAAG,UAAU,IAAI,YAAY,CAClE,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,cAAc,CACjB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { getNft } from "../../actions/nft/get-nft";
2
+ import { filterQueryOptions } from "../../utils";
3
+ const getNftQueryOptions = (appKit, options = {}) => {
4
+ return {
5
+ ...options.query,
6
+ enabled: Boolean(options.address && (options.query?.enabled ?? true)),
7
+ queryFn: async (context) => {
8
+ const [, parameters] = context.queryKey;
9
+ if (!parameters.address) throw new Error("address is required");
10
+ const nft = await getNft(appKit, parameters);
11
+ return nft;
12
+ },
13
+ queryKey: getNftQueryKey(options)
14
+ };
15
+ };
16
+ const getNftQueryKey = (options = {}) => {
17
+ return ["nft", filterQueryOptions(options)];
18
+ };
19
+ export {
20
+ getNftQueryKey,
21
+ getNftQueryOptions
22
+ };
23
+ //# sourceMappingURL=get-nft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/nft/get-nft.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { NFT } from '@ton/walletkit';\n\nimport type { AppKit } from '../../core/app-kit';\nimport { getNft } from '../../actions/nft/get-nft';\nimport type { GetNftOptions as GetNftParameters } from '../../actions/nft/get-nft';\nimport type { QueryOptions, QueryParameter } from '../../types/query';\nimport type { Compute, ExactPartial } from '../../types/utils';\nimport { filterQueryOptions } from '../../utils';\n\nexport type GetNftErrorType = Error;\n\nexport type GetNftQueryConfig<selectData = GetNftData> = Compute<ExactPartial<GetNftParameters>> &\n QueryParameter<GetNftQueryFnData, GetNftErrorType, selectData, GetNftQueryKey>;\n\nexport const getNftQueryOptions = <selectData = GetNftData>(\n appKit: AppKit,\n options: GetNftQueryConfig<selectData> = {},\n): GetNftQueryOptions<selectData> => {\n return {\n ...options.query,\n enabled: Boolean(options.address && (options.query?.enabled ?? true)),\n queryFn: async (context) => {\n const [, parameters] = context.queryKey as [string, GetNftParameters];\n if (!parameters.address) throw new Error('address is required');\n\n const nft = await getNft(appKit, parameters);\n return nft;\n },\n queryKey: getNftQueryKey(options),\n };\n};\n\nexport type GetNftQueryFnData = Compute<NFT | null>;\n\nexport type GetNftData = GetNftQueryFnData;\n\nexport const getNftQueryKey = (options: Compute<ExactPartial<GetNftParameters>> = {}): GetNftQueryKey => {\n return ['nft', filterQueryOptions(options)] as const;\n};\n\nexport type GetNftQueryKey = readonly ['nft', Compute<ExactPartial<GetNftParameters>>];\n\nexport type GetNftQueryOptions<selectData = GetNftData> = QueryOptions<\n GetNftQueryFnData,\n GetNftErrorType,\n selectData,\n GetNftQueryKey\n>;\n"],"mappings":"AAWA,SAAS,cAAc;AAIvB,SAAS,0BAA0B;AAO5B,MAAM,qBAAqB,CAC9B,QACA,UAAyC,CAAC,MACT;AACjC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,SAAS,QAAQ,QAAQ,YAAY,QAAQ,OAAO,WAAW,KAAK;AAAA,IACpE,SAAS,OAAO,YAAY;AACxB,YAAM,CAAC,EAAE,UAAU,IAAI,QAAQ;AAC/B,UAAI,CAAC,WAAW,QAAS,OAAM,IAAI,MAAM,qBAAqB;AAE9D,YAAM,MAAM,MAAM,OAAO,QAAQ,UAAU;AAC3C,aAAO;AAAA,IACX;AAAA,IACA,UAAU,eAAe,OAAO;AAAA,EACpC;AACJ;AAMO,MAAM,iBAAiB,CAAC,UAAmD,CAAC,MAAsB;AACrG,SAAO,CAAC,OAAO,mBAAmB,OAAO,CAAC;AAC9C;","names":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var get_nfts_by_address_exports = {};
20
+ __export(get_nfts_by_address_exports, {
21
+ getNFTsByAddressQueryKey: () => getNFTsByAddressQueryKey,
22
+ getNFTsByAddressQueryOptions: () => getNFTsByAddressQueryOptions
23
+ });
24
+ module.exports = __toCommonJS(get_nfts_by_address_exports);
25
+ var import_get_nfts_by_address = require("../../actions/nft/get-nfts-by-address");
26
+ var import_utils = require("../../utils");
27
+ const getNFTsByAddressQueryOptions = (appKit, options = {}) => {
28
+ return {
29
+ ...options.query,
30
+ enabled: Boolean(options.address && (options.query?.enabled ?? true)),
31
+ queryFn: async (context) => {
32
+ const [, parameters] = context.queryKey;
33
+ if (!parameters.address) throw new Error("address is required");
34
+ const nfts = await (0, import_get_nfts_by_address.getNftsByAddress)(appKit, parameters);
35
+ return nfts;
36
+ },
37
+ queryKey: getNFTsByAddressQueryKey(options)
38
+ };
39
+ };
40
+ const getNFTsByAddressQueryKey = (options = {}) => {
41
+ return ["nfts", (0, import_utils.filterQueryOptions)(options)];
42
+ };
43
+ //# sourceMappingURL=get-nfts-by-address.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/nft/get-nfts-by-address.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { AppKit } from '../../core/app-kit';\nimport { getNftsByAddress } from '../../actions/nft/get-nfts-by-address';\nimport type { GetNftsByAddressOptions } from '../../actions/nft/get-nfts-by-address';\nimport type { QueryOptions, QueryParameter } from '../../types/query';\nimport type { Compute, ExactPartial } from '../../types/utils';\nimport { filterQueryOptions } from '../../utils';\nimport type { GetNftsByAddressReturnType } from '../../actions/nft/get-nfts-by-address';\n\nexport type GetNFTsErrorType = Error;\n\nexport type GetNFTsByAddressData = GetNFTsQueryFnData;\n\nexport type GetNFTsByAddressQueryConfig<selectData = GetNFTsByAddressData> = Compute<\n ExactPartial<GetNftsByAddressOptions>\n> &\n QueryParameter<GetNFTsQueryFnData, GetNFTsErrorType, selectData, GetNFTsByAddressQueryKey>;\n\nexport const getNFTsByAddressQueryOptions = <selectData = GetNFTsByAddressData>(\n appKit: AppKit,\n options: GetNFTsByAddressQueryConfig<selectData> = {},\n): GetNFTsByAddressQueryOptions<selectData> => {\n return {\n ...options.query,\n enabled: Boolean(options.address && (options.query?.enabled ?? true)),\n queryFn: async (context) => {\n const [, parameters] = context.queryKey as [string, GetNftsByAddressOptions];\n if (!parameters.address) throw new Error('address is required');\n\n const nfts = await getNftsByAddress(appKit, parameters);\n return nfts;\n },\n queryKey: getNFTsByAddressQueryKey(options),\n };\n};\n\nexport type GetNFTsQueryFnData = Compute<Awaited<GetNftsByAddressReturnType>>;\n\nexport const getNFTsByAddressQueryKey = (\n options: Compute<ExactPartial<GetNftsByAddressOptions>> = {},\n): GetNFTsByAddressQueryKey => {\n return ['nfts', filterQueryOptions(options)] as const;\n};\n\nexport type GetNFTsByAddressQueryKey = readonly ['nfts', Compute<ExactPartial<GetNftsByAddressOptions>>];\n\nexport type GetNFTsByAddressQueryOptions<selectData = GetNFTsByAddressData> = QueryOptions<\n GetNFTsQueryFnData,\n GetNFTsErrorType,\n selectData,\n GetNFTsByAddressQueryKey\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,iCAAiC;AAIjC,mBAAmC;AAY5B,MAAM,+BAA+B,CACxC,QACA,UAAmD,CAAC,MACT;AAC3C,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,SAAS,QAAQ,QAAQ,YAAY,QAAQ,OAAO,WAAW,KAAK;AAAA,IACpE,SAAS,OAAO,YAAY;AACxB,YAAM,CAAC,EAAE,UAAU,IAAI,QAAQ;AAC/B,UAAI,CAAC,WAAW,QAAS,OAAM,IAAI,MAAM,qBAAqB;AAE9D,YAAM,OAAO,UAAM,6CAAiB,QAAQ,UAAU;AACtD,aAAO;AAAA,IACX;AAAA,IACA,UAAU,yBAAyB,OAAO;AAAA,EAC9C;AACJ;AAIO,MAAM,2BAA2B,CACpC,UAA0D,CAAC,MAChC;AAC3B,SAAO,CAAC,YAAQ,iCAAmB,OAAO,CAAC;AAC/C;","names":[]}
@@ -0,0 +1,21 @@
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 { AppKit } from '../../core/app-kit';
9
+ import type { GetNftsByAddressOptions } from '../../actions/nft/get-nfts-by-address';
10
+ import type { QueryOptions, QueryParameter } from '../../types/query';
11
+ import type { Compute, ExactPartial } from '../../types/utils';
12
+ import type { GetNftsByAddressReturnType } from '../../actions/nft/get-nfts-by-address';
13
+ export type GetNFTsErrorType = Error;
14
+ export type GetNFTsByAddressData = GetNFTsQueryFnData;
15
+ export type GetNFTsByAddressQueryConfig<selectData = GetNFTsByAddressData> = Compute<ExactPartial<GetNftsByAddressOptions>> & QueryParameter<GetNFTsQueryFnData, GetNFTsErrorType, selectData, GetNFTsByAddressQueryKey>;
16
+ export declare const getNFTsByAddressQueryOptions: <selectData = GetNFTsByAddressData>(appKit: AppKit, options?: GetNFTsByAddressQueryConfig<selectData>) => GetNFTsByAddressQueryOptions<selectData>;
17
+ export type GetNFTsQueryFnData = Compute<Awaited<GetNftsByAddressReturnType>>;
18
+ export declare const getNFTsByAddressQueryKey: (options?: Compute<ExactPartial<GetNftsByAddressOptions>>) => GetNFTsByAddressQueryKey;
19
+ export type GetNFTsByAddressQueryKey = readonly ['nfts', Compute<ExactPartial<GetNftsByAddressOptions>>];
20
+ export type GetNFTsByAddressQueryOptions<selectData = GetNFTsByAddressData> = QueryOptions<GetNFTsQueryFnData, GetNFTsErrorType, selectData, GetNFTsByAddressQueryKey>;
21
+ //# sourceMappingURL=get-nfts-by-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-nfts-by-address.d.ts","sourceRoot":"","sources":["../../../src/queries/nft/get-nfts-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAErC,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;AAEtD,MAAM,MAAM,2BAA2B,CAAC,UAAU,GAAG,oBAAoB,IAAI,OAAO,CAChF,YAAY,CAAC,uBAAuB,CAAC,CACxC,GACG,cAAc,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC;AAE/F,eAAO,MAAM,4BAA4B,GAAI,UAAU,GAAG,oBAAoB,EAC1E,QAAQ,MAAM,EACd,UAAS,2BAA2B,CAAC,UAAU,CAAM,KACtD,4BAA4B,CAAC,UAAU,CAazC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAE9E,eAAO,MAAM,wBAAwB,GACjC,UAAS,OAAO,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAM,KAC7D,wBAEF,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;AAEzG,MAAM,MAAM,4BAA4B,CAAC,UAAU,GAAG,oBAAoB,IAAI,YAAY,CACtF,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACV,wBAAwB,CAC3B,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { getNftsByAddress } from "../../actions/nft/get-nfts-by-address";
2
+ import { filterQueryOptions } from "../../utils";
3
+ const getNFTsByAddressQueryOptions = (appKit, options = {}) => {
4
+ return {
5
+ ...options.query,
6
+ enabled: Boolean(options.address && (options.query?.enabled ?? true)),
7
+ queryFn: async (context) => {
8
+ const [, parameters] = context.queryKey;
9
+ if (!parameters.address) throw new Error("address is required");
10
+ const nfts = await getNftsByAddress(appKit, parameters);
11
+ return nfts;
12
+ },
13
+ queryKey: getNFTsByAddressQueryKey(options)
14
+ };
15
+ };
16
+ const getNFTsByAddressQueryKey = (options = {}) => {
17
+ return ["nfts", filterQueryOptions(options)];
18
+ };
19
+ export {
20
+ getNFTsByAddressQueryKey,
21
+ getNFTsByAddressQueryOptions
22
+ };
23
+ //# sourceMappingURL=get-nfts-by-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/nft/get-nfts-by-address.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { AppKit } from '../../core/app-kit';\nimport { getNftsByAddress } from '../../actions/nft/get-nfts-by-address';\nimport type { GetNftsByAddressOptions } from '../../actions/nft/get-nfts-by-address';\nimport type { QueryOptions, QueryParameter } from '../../types/query';\nimport type { Compute, ExactPartial } from '../../types/utils';\nimport { filterQueryOptions } from '../../utils';\nimport type { GetNftsByAddressReturnType } from '../../actions/nft/get-nfts-by-address';\n\nexport type GetNFTsErrorType = Error;\n\nexport type GetNFTsByAddressData = GetNFTsQueryFnData;\n\nexport type GetNFTsByAddressQueryConfig<selectData = GetNFTsByAddressData> = Compute<\n ExactPartial<GetNftsByAddressOptions>\n> &\n QueryParameter<GetNFTsQueryFnData, GetNFTsErrorType, selectData, GetNFTsByAddressQueryKey>;\n\nexport const getNFTsByAddressQueryOptions = <selectData = GetNFTsByAddressData>(\n appKit: AppKit,\n options: GetNFTsByAddressQueryConfig<selectData> = {},\n): GetNFTsByAddressQueryOptions<selectData> => {\n return {\n ...options.query,\n enabled: Boolean(options.address && (options.query?.enabled ?? true)),\n queryFn: async (context) => {\n const [, parameters] = context.queryKey as [string, GetNftsByAddressOptions];\n if (!parameters.address) throw new Error('address is required');\n\n const nfts = await getNftsByAddress(appKit, parameters);\n return nfts;\n },\n queryKey: getNFTsByAddressQueryKey(options),\n };\n};\n\nexport type GetNFTsQueryFnData = Compute<Awaited<GetNftsByAddressReturnType>>;\n\nexport const getNFTsByAddressQueryKey = (\n options: Compute<ExactPartial<GetNftsByAddressOptions>> = {},\n): GetNFTsByAddressQueryKey => {\n return ['nfts', filterQueryOptions(options)] as const;\n};\n\nexport type GetNFTsByAddressQueryKey = readonly ['nfts', Compute<ExactPartial<GetNftsByAddressOptions>>];\n\nexport type GetNFTsByAddressQueryOptions<selectData = GetNFTsByAddressData> = QueryOptions<\n GetNFTsQueryFnData,\n GetNFTsErrorType,\n selectData,\n GetNFTsByAddressQueryKey\n>;\n"],"mappings":"AASA,SAAS,wBAAwB;AAIjC,SAAS,0BAA0B;AAY5B,MAAM,+BAA+B,CACxC,QACA,UAAmD,CAAC,MACT;AAC3C,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,SAAS,QAAQ,QAAQ,YAAY,QAAQ,OAAO,WAAW,KAAK;AAAA,IACpE,SAAS,OAAO,YAAY;AACxB,YAAM,CAAC,EAAE,UAAU,IAAI,QAAQ;AAC/B,UAAI,CAAC,WAAW,QAAS,OAAM,IAAI,MAAM,qBAAqB;AAE9D,YAAM,OAAO,MAAM,iBAAiB,QAAQ,UAAU;AACtD,aAAO;AAAA,IACX;AAAA,IACA,UAAU,yBAAyB,OAAO;AAAA,EAC9C;AACJ;AAIO,MAAM,2BAA2B,CACpC,UAA0D,CAAC,MAChC;AAC3B,SAAO,CAAC,QAAQ,mBAAmB,OAAO,CAAC;AAC/C;","names":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var transfer_nft_exports = {};
20
+ __export(transfer_nft_exports, {
21
+ transferNftMutationOptions: () => transferNftMutationOptions
22
+ });
23
+ module.exports = __toCommonJS(transfer_nft_exports);
24
+ var import_transfer_nft = require("../../actions/nft/transfer-nft");
25
+ const transferNftMutationOptions = (appKit, options = {}) => {
26
+ return {
27
+ ...options.mutation,
28
+ mutationFn(variables) {
29
+ return (0, import_transfer_nft.transferNft)(appKit, variables);
30
+ },
31
+ mutationKey: ["transferNft"]
32
+ };
33
+ };
34
+ //# sourceMappingURL=transfer-nft.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/nft/transfer-nft.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateOptions, MutationOptions } from '@tanstack/query-core';\n\nimport { transferNft } from '../../actions/nft/transfer-nft';\nimport type { TransferNftParameters, TransferNftReturnType } from '../../actions/nft/transfer-nft';\nimport type { AppKit } from '../../core/app-kit';\nimport type { MutationParameter } from '../../types/query';\nimport type { Compute } from '../../types/utils';\n\nexport type { TransferNftParameters, TransferNftReturnType };\n\nexport type TransferNftErrorType = Error;\n\nexport type TransferNftOptions<context = unknown> = MutationParameter<\n TransferNftData,\n TransferNftErrorType,\n TransferNftVariables,\n context\n>;\n\nexport const transferNftMutationOptions = <context = unknown>(\n appKit: AppKit,\n options: TransferNftOptions<context> = {},\n): TransferNftMutationOptions<context> => {\n return {\n ...options.mutation,\n mutationFn(variables) {\n return transferNft(appKit, variables);\n },\n mutationKey: ['transferNft'],\n };\n};\n\nexport type TransferNftMutationOptions<context = unknown> = MutationOptions<\n TransferNftData,\n TransferNftErrorType,\n TransferNftVariables,\n context\n>;\n\nexport type TransferNftData = Compute<TransferNftReturnType>;\n\nexport type TransferNftVariables = TransferNftParameters;\n\nexport type TransferNftMutate<context = unknown> = (\n variables: TransferNftVariables,\n options?:\n | Compute<MutateOptions<TransferNftData, TransferNftErrorType, Compute<TransferNftVariables>, context>>\n | undefined,\n) => void;\n\nexport type TransferNftMutateAsync<context = unknown> = (\n variables: TransferNftVariables,\n options?:\n | Compute<MutateOptions<TransferNftData, TransferNftErrorType, Compute<TransferNftVariables>, context>>\n | undefined,\n) => Promise<TransferNftData>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,0BAA4B;AAiBrB,MAAM,6BAA6B,CACtC,QACA,UAAuC,CAAC,MACF;AACtC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,WAAW,WAAW;AAClB,iBAAO,iCAAY,QAAQ,SAAS;AAAA,IACxC;AAAA,IACA,aAAa,CAAC,aAAa;AAAA,EAC/B;AACJ;","names":[]}
@@ -0,0 +1,22 @@
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 { MutateOptions, MutationOptions } from '@tanstack/query-core';
9
+ import type { TransferNftParameters, TransferNftReturnType } from '../../actions/nft/transfer-nft';
10
+ import type { AppKit } from '../../core/app-kit';
11
+ import type { MutationParameter } from '../../types/query';
12
+ import type { Compute } from '../../types/utils';
13
+ export type { TransferNftParameters, TransferNftReturnType };
14
+ export type TransferNftErrorType = Error;
15
+ export type TransferNftOptions<context = unknown> = MutationParameter<TransferNftData, TransferNftErrorType, TransferNftVariables, context>;
16
+ export declare const transferNftMutationOptions: <context = unknown>(appKit: AppKit, options?: TransferNftOptions<context>) => TransferNftMutationOptions<context>;
17
+ export type TransferNftMutationOptions<context = unknown> = MutationOptions<TransferNftData, TransferNftErrorType, TransferNftVariables, context>;
18
+ export type TransferNftData = Compute<TransferNftReturnType>;
19
+ export type TransferNftVariables = TransferNftParameters;
20
+ export type TransferNftMutate<context = unknown> = (variables: TransferNftVariables, options?: Compute<MutateOptions<TransferNftData, TransferNftErrorType, Compute<TransferNftVariables>, context>> | undefined) => void;
21
+ export type TransferNftMutateAsync<context = unknown> = (variables: TransferNftVariables, options?: Compute<MutateOptions<TransferNftData, TransferNftErrorType, Compute<TransferNftVariables>, context>> | undefined) => Promise<TransferNftData>;
22
+ //# sourceMappingURL=transfer-nft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-nft.d.ts","sourceRoot":"","sources":["../../../src/queries/nft/transfer-nft.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACnG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;AAE7D,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC,MAAM,MAAM,kBAAkB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CACjE,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,CACV,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,OAAO,GAAG,OAAO,EACxD,QAAQ,MAAM,EACd,UAAS,kBAAkB,CAAC,OAAO,CAAM,KAC1C,0BAA0B,CAAC,OAAO,CAQpC,CAAC;AAEF,MAAM,MAAM,0BAA0B,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CACvE,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,CACV,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAE7D,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAEzD,MAAM,MAAM,iBAAiB,CAAC,OAAO,GAAG,OAAO,IAAI,CAC/C,SAAS,EAAE,oBAAoB,EAC/B,OAAO,CAAC,EACF,OAAO,CAAC,aAAa,CAAC,eAAe,EAAE,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC,CAAC,GACrG,SAAS,KACd,IAAI,CAAC;AAEV,MAAM,MAAM,sBAAsB,CAAC,OAAO,GAAG,OAAO,IAAI,CACpD,SAAS,EAAE,oBAAoB,EAC/B,OAAO,CAAC,EACF,OAAO,CAAC,aAAa,CAAC,eAAe,EAAE,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC,CAAC,GACrG,SAAS,KACd,OAAO,CAAC,eAAe,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { transferNft } from "../../actions/nft/transfer-nft";
2
+ const transferNftMutationOptions = (appKit, options = {}) => {
3
+ return {
4
+ ...options.mutation,
5
+ mutationFn(variables) {
6
+ return transferNft(appKit, variables);
7
+ },
8
+ mutationKey: ["transferNft"]
9
+ };
10
+ };
11
+ export {
12
+ transferNftMutationOptions
13
+ };
14
+ //# sourceMappingURL=transfer-nft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/nft/transfer-nft.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateOptions, MutationOptions } from '@tanstack/query-core';\n\nimport { transferNft } from '../../actions/nft/transfer-nft';\nimport type { TransferNftParameters, TransferNftReturnType } from '../../actions/nft/transfer-nft';\nimport type { AppKit } from '../../core/app-kit';\nimport type { MutationParameter } from '../../types/query';\nimport type { Compute } from '../../types/utils';\n\nexport type { TransferNftParameters, TransferNftReturnType };\n\nexport type TransferNftErrorType = Error;\n\nexport type TransferNftOptions<context = unknown> = MutationParameter<\n TransferNftData,\n TransferNftErrorType,\n TransferNftVariables,\n context\n>;\n\nexport const transferNftMutationOptions = <context = unknown>(\n appKit: AppKit,\n options: TransferNftOptions<context> = {},\n): TransferNftMutationOptions<context> => {\n return {\n ...options.mutation,\n mutationFn(variables) {\n return transferNft(appKit, variables);\n },\n mutationKey: ['transferNft'],\n };\n};\n\nexport type TransferNftMutationOptions<context = unknown> = MutationOptions<\n TransferNftData,\n TransferNftErrorType,\n TransferNftVariables,\n context\n>;\n\nexport type TransferNftData = Compute<TransferNftReturnType>;\n\nexport type TransferNftVariables = TransferNftParameters;\n\nexport type TransferNftMutate<context = unknown> = (\n variables: TransferNftVariables,\n options?:\n | Compute<MutateOptions<TransferNftData, TransferNftErrorType, Compute<TransferNftVariables>, context>>\n | undefined,\n) => void;\n\nexport type TransferNftMutateAsync<context = unknown> = (\n variables: TransferNftVariables,\n options?:\n | Compute<MutateOptions<TransferNftData, TransferNftErrorType, Compute<TransferNftVariables>, context>>\n | undefined,\n) => Promise<TransferNftData>;\n"],"mappings":"AAUA,SAAS,mBAAmB;AAiBrB,MAAM,6BAA6B,CACtC,QACA,UAAuC,CAAC,MACF;AACtC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,WAAW,WAAW;AAClB,aAAO,YAAY,QAAQ,SAAS;AAAA,IACxC;AAAA,IACA,aAAa,CAAC,aAAa;AAAA,EAC/B;AACJ;","names":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var sign_binary_exports = {};
20
+ __export(sign_binary_exports, {
21
+ signBinaryMutationOptions: () => signBinaryMutationOptions
22
+ });
23
+ module.exports = __toCommonJS(sign_binary_exports);
24
+ var import_sign_binary = require("../../actions/signing/sign-binary");
25
+ const signBinaryMutationOptions = (appKit, options = {}) => {
26
+ return {
27
+ ...options.mutation,
28
+ mutationFn(variables) {
29
+ return (0, import_sign_binary.signBinary)(appKit, variables);
30
+ },
31
+ mutationKey: ["signBinary"]
32
+ };
33
+ };
34
+ //# sourceMappingURL=sign-binary.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/signing/sign-binary.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateOptions, MutationOptions } from '@tanstack/query-core';\n\nimport { signBinary } from '../../actions/signing/sign-binary';\nimport type { SignBinaryParameters, SignBinaryReturnType } from '../../actions/signing/sign-binary';\nimport type { AppKit } from '../../core/app-kit';\nimport type { MutationParameter } from '../../types/query';\nimport type { Compute } from '../../types/utils';\n\nexport type SignBinaryErrorType = Error;\n\nexport type SignBinaryOptions<context = unknown> = MutationParameter<\n SignBinaryData,\n SignBinaryErrorType,\n SignBinaryVariables,\n context\n>;\n\nexport const signBinaryMutationOptions = <context = unknown>(\n appKit: AppKit,\n options: SignBinaryOptions<context> = {},\n): SignBinaryMutationOptions<context> => {\n return {\n ...options.mutation,\n mutationFn(variables) {\n return signBinary(appKit, variables);\n },\n mutationKey: ['signBinary'],\n };\n};\n\nexport type SignBinaryMutationOptions<context = unknown> = MutationOptions<\n SignBinaryData,\n SignBinaryErrorType,\n SignBinaryVariables,\n context\n>;\n\nexport type SignBinaryData = Compute<SignBinaryReturnType>;\n\nexport type SignBinaryVariables = SignBinaryParameters;\n\nexport type SignBinaryMutate<context = unknown> = (\n variables: SignBinaryVariables,\n options?:\n | Compute<MutateOptions<SignBinaryData, SignBinaryErrorType, Compute<SignBinaryVariables>, context>>\n | undefined,\n) => void;\n\nexport type SignBinaryMutateAsync<context = unknown> = (\n variables: SignBinaryVariables,\n options?:\n | Compute<MutateOptions<SignBinaryData, SignBinaryErrorType, Compute<SignBinaryVariables>, context>>\n | undefined,\n) => Promise<SignBinaryData>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,yBAA2B;AAepB,MAAM,4BAA4B,CACrC,QACA,UAAsC,CAAC,MACF;AACrC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,WAAW,WAAW;AAClB,iBAAO,+BAAW,QAAQ,SAAS;AAAA,IACvC;AAAA,IACA,aAAa,CAAC,YAAY;AAAA,EAC9B;AACJ;","names":[]}
@@ -0,0 +1,21 @@
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 { MutateOptions, MutationOptions } from '@tanstack/query-core';
9
+ import type { SignBinaryParameters, SignBinaryReturnType } from '../../actions/signing/sign-binary';
10
+ import type { AppKit } from '../../core/app-kit';
11
+ import type { MutationParameter } from '../../types/query';
12
+ import type { Compute } from '../../types/utils';
13
+ export type SignBinaryErrorType = Error;
14
+ export type SignBinaryOptions<context = unknown> = MutationParameter<SignBinaryData, SignBinaryErrorType, SignBinaryVariables, context>;
15
+ export declare const signBinaryMutationOptions: <context = unknown>(appKit: AppKit, options?: SignBinaryOptions<context>) => SignBinaryMutationOptions<context>;
16
+ export type SignBinaryMutationOptions<context = unknown> = MutationOptions<SignBinaryData, SignBinaryErrorType, SignBinaryVariables, context>;
17
+ export type SignBinaryData = Compute<SignBinaryReturnType>;
18
+ export type SignBinaryVariables = SignBinaryParameters;
19
+ export type SignBinaryMutate<context = unknown> = (variables: SignBinaryVariables, options?: Compute<MutateOptions<SignBinaryData, SignBinaryErrorType, Compute<SignBinaryVariables>, context>> | undefined) => void;
20
+ export type SignBinaryMutateAsync<context = unknown> = (variables: SignBinaryVariables, options?: Compute<MutateOptions<SignBinaryData, SignBinaryErrorType, Compute<SignBinaryVariables>, context>> | undefined) => Promise<SignBinaryData>;
21
+ //# sourceMappingURL=sign-binary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-binary.d.ts","sourceRoot":"","sources":["../../../src/queries/signing/sign-binary.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAExC,MAAM,MAAM,iBAAiB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAChE,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,CACV,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,OAAO,GAAG,OAAO,EACvD,QAAQ,MAAM,EACd,UAAS,iBAAiB,CAAC,OAAO,CAAM,KACzC,yBAAyB,CAAC,OAAO,CAQnC,CAAC;AAEF,MAAM,MAAM,yBAAyB,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CACtE,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,CACV,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEvD,MAAM,MAAM,gBAAgB,CAAC,OAAO,GAAG,OAAO,IAAI,CAC9C,SAAS,EAAE,mBAAmB,EAC9B,OAAO,CAAC,EACF,OAAO,CAAC,aAAa,CAAC,cAAc,EAAE,mBAAmB,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC,CAAC,GAClG,SAAS,KACd,IAAI,CAAC;AAEV,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,CACnD,SAAS,EAAE,mBAAmB,EAC9B,OAAO,CAAC,EACF,OAAO,CAAC,aAAa,CAAC,cAAc,EAAE,mBAAmB,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC,CAAC,GAClG,SAAS,KACd,OAAO,CAAC,cAAc,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { signBinary } from "../../actions/signing/sign-binary";
2
+ const signBinaryMutationOptions = (appKit, options = {}) => {
3
+ return {
4
+ ...options.mutation,
5
+ mutationFn(variables) {
6
+ return signBinary(appKit, variables);
7
+ },
8
+ mutationKey: ["signBinary"]
9
+ };
10
+ };
11
+ export {
12
+ signBinaryMutationOptions
13
+ };
14
+ //# sourceMappingURL=sign-binary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/signing/sign-binary.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateOptions, MutationOptions } from '@tanstack/query-core';\n\nimport { signBinary } from '../../actions/signing/sign-binary';\nimport type { SignBinaryParameters, SignBinaryReturnType } from '../../actions/signing/sign-binary';\nimport type { AppKit } from '../../core/app-kit';\nimport type { MutationParameter } from '../../types/query';\nimport type { Compute } from '../../types/utils';\n\nexport type SignBinaryErrorType = Error;\n\nexport type SignBinaryOptions<context = unknown> = MutationParameter<\n SignBinaryData,\n SignBinaryErrorType,\n SignBinaryVariables,\n context\n>;\n\nexport const signBinaryMutationOptions = <context = unknown>(\n appKit: AppKit,\n options: SignBinaryOptions<context> = {},\n): SignBinaryMutationOptions<context> => {\n return {\n ...options.mutation,\n mutationFn(variables) {\n return signBinary(appKit, variables);\n },\n mutationKey: ['signBinary'],\n };\n};\n\nexport type SignBinaryMutationOptions<context = unknown> = MutationOptions<\n SignBinaryData,\n SignBinaryErrorType,\n SignBinaryVariables,\n context\n>;\n\nexport type SignBinaryData = Compute<SignBinaryReturnType>;\n\nexport type SignBinaryVariables = SignBinaryParameters;\n\nexport type SignBinaryMutate<context = unknown> = (\n variables: SignBinaryVariables,\n options?:\n | Compute<MutateOptions<SignBinaryData, SignBinaryErrorType, Compute<SignBinaryVariables>, context>>\n | undefined,\n) => void;\n\nexport type SignBinaryMutateAsync<context = unknown> = (\n variables: SignBinaryVariables,\n options?:\n | Compute<MutateOptions<SignBinaryData, SignBinaryErrorType, Compute<SignBinaryVariables>, context>>\n | undefined,\n) => Promise<SignBinaryData>;\n"],"mappings":"AAUA,SAAS,kBAAkB;AAepB,MAAM,4BAA4B,CACrC,QACA,UAAsC,CAAC,MACF;AACrC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,WAAW,WAAW;AAClB,aAAO,WAAW,QAAQ,SAAS;AAAA,IACvC;AAAA,IACA,aAAa,CAAC,YAAY;AAAA,EAC9B;AACJ;","names":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var sign_cell_exports = {};
20
+ __export(sign_cell_exports, {
21
+ signCellMutationOptions: () => signCellMutationOptions
22
+ });
23
+ module.exports = __toCommonJS(sign_cell_exports);
24
+ var import_sign_cell = require("../../actions/signing/sign-cell");
25
+ const signCellMutationOptions = (appKit, options = {}) => {
26
+ return {
27
+ ...options.mutation,
28
+ mutationFn(variables) {
29
+ return (0, import_sign_cell.signCell)(appKit, variables);
30
+ },
31
+ mutationKey: ["signCell"]
32
+ };
33
+ };
34
+ //# sourceMappingURL=sign-cell.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/queries/signing/sign-cell.ts"],"sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateOptions, MutationOptions } from '@tanstack/query-core';\n\nimport { signCell } from '../../actions/signing/sign-cell';\nimport type { SignCellParameters, SignCellReturnType } from '../../actions/signing/sign-cell';\nimport type { AppKit } from '../../core/app-kit';\nimport type { MutationParameter } from '../../types/query';\nimport type { Compute } from '../../types/utils';\n\nexport type SignCellErrorType = Error;\n\nexport type SignCellOptions<context = unknown> = MutationParameter<\n SignCellData,\n SignCellErrorType,\n SignCellVariables,\n context\n>;\n\nexport const signCellMutationOptions = <context = unknown>(\n appKit: AppKit,\n options: SignCellOptions<context> = {},\n): SignCellMutationOptions<context> => {\n return {\n ...options.mutation,\n mutationFn(variables) {\n return signCell(appKit, variables);\n },\n mutationKey: ['signCell'],\n };\n};\n\nexport type SignCellMutationOptions<context = unknown> = MutationOptions<\n SignCellData,\n SignCellErrorType,\n SignCellVariables,\n context\n>;\n\nexport type SignCellData = Compute<SignCellReturnType>;\n\nexport type SignCellVariables = SignCellParameters;\n\nexport type SignCellMutate<context = unknown> = (\n variables: SignCellVariables,\n options?: Compute<MutateOptions<SignCellData, SignCellErrorType, Compute<SignCellVariables>, context>> | undefined,\n) => void;\n\nexport type SignCellMutateAsync<context = unknown> = (\n variables: SignCellVariables,\n options?: Compute<MutateOptions<SignCellData, SignCellErrorType, Compute<SignCellVariables>, context>> | undefined,\n) => Promise<SignCellData>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,uBAAyB;AAelB,MAAM,0BAA0B,CACnC,QACA,UAAoC,CAAC,MACF;AACnC,SAAO;AAAA,IACH,GAAG,QAAQ;AAAA,IACX,WAAW,WAAW;AAClB,iBAAO,2BAAS,QAAQ,SAAS;AAAA,IACrC;AAAA,IACA,aAAa,CAAC,UAAU;AAAA,EAC5B;AACJ;","names":[]}
@@ -0,0 +1,21 @@
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 { MutateOptions, MutationOptions } from '@tanstack/query-core';
9
+ import type { SignCellParameters, SignCellReturnType } from '../../actions/signing/sign-cell';
10
+ import type { AppKit } from '../../core/app-kit';
11
+ import type { MutationParameter } from '../../types/query';
12
+ import type { Compute } from '../../types/utils';
13
+ export type SignCellErrorType = Error;
14
+ export type SignCellOptions<context = unknown> = MutationParameter<SignCellData, SignCellErrorType, SignCellVariables, context>;
15
+ export declare const signCellMutationOptions: <context = unknown>(appKit: AppKit, options?: SignCellOptions<context>) => SignCellMutationOptions<context>;
16
+ export type SignCellMutationOptions<context = unknown> = MutationOptions<SignCellData, SignCellErrorType, SignCellVariables, context>;
17
+ export type SignCellData = Compute<SignCellReturnType>;
18
+ export type SignCellVariables = SignCellParameters;
19
+ export type SignCellMutate<context = unknown> = (variables: SignCellVariables, options?: Compute<MutateOptions<SignCellData, SignCellErrorType, Compute<SignCellVariables>, context>> | undefined) => void;
20
+ export type SignCellMutateAsync<context = unknown> = (variables: SignCellVariables, options?: Compute<MutateOptions<SignCellData, SignCellErrorType, Compute<SignCellVariables>, context>> | undefined) => Promise<SignCellData>;
21
+ //# sourceMappingURL=sign-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-cell.d.ts","sourceRoot":"","sources":["../../../src/queries/signing/sign-cell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAEtC,MAAM,MAAM,eAAe,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAC9D,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACV,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,GAAG,OAAO,EACrD,QAAQ,MAAM,EACd,UAAS,eAAe,CAAC,OAAO,CAAM,KACvC,uBAAuB,CAAC,OAAO,CAQjC,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CACpE,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACV,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD,MAAM,MAAM,cAAc,CAAC,OAAO,GAAG,OAAO,IAAI,CAC5C,SAAS,EAAE,iBAAiB,EAC5B,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,YAAY,EAAE,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,KACjH,IAAI,CAAC;AAEV,MAAM,MAAM,mBAAmB,CAAC,OAAO,GAAG,OAAO,IAAI,CACjD,SAAS,EAAE,iBAAiB,EAC5B,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,YAAY,EAAE,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,KACjH,OAAO,CAAC,YAAY,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { signCell } from "../../actions/signing/sign-cell";
2
+ const signCellMutationOptions = (appKit, options = {}) => {
3
+ return {
4
+ ...options.mutation,
5
+ mutationFn(variables) {
6
+ return signCell(appKit, variables);
7
+ },
8
+ mutationKey: ["signCell"]
9
+ };
10
+ };
11
+ export {
12
+ signCellMutationOptions
13
+ };
14
+ //# sourceMappingURL=sign-cell.js.map