@ecency/sdk 2.4.21 → 2.4.22

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 (516) hide show
  1. package/dist/browser/{chunk-JORE46WK.js → chunk-2EYZMIWD.js} +2 -2
  2. package/dist/browser/{chunk-JORE46WK.js.map → chunk-2EYZMIWD.js.map} +1 -1
  3. package/dist/browser/{chunk-N3JLKXGY.js → chunk-2MIOCMJB.js} +2 -2
  4. package/dist/browser/{chunk-N3JLKXGY.js.map → chunk-2MIOCMJB.js.map} +1 -1
  5. package/dist/browser/{chunk-EU3FL3RJ.js → chunk-2PMKAOIU.js} +2 -2
  6. package/dist/browser/{chunk-EU3FL3RJ.js.map → chunk-2PMKAOIU.js.map} +1 -1
  7. package/dist/browser/{chunk-HESIUSO3.js → chunk-3DS7HIZ6.js} +2 -2
  8. package/dist/browser/{chunk-HESIUSO3.js.map → chunk-3DS7HIZ6.js.map} +1 -1
  9. package/dist/browser/{chunk-RVXGI5TW.js → chunk-4EL7BARO.js} +2 -2
  10. package/dist/browser/{chunk-RVXGI5TW.js.map → chunk-4EL7BARO.js.map} +1 -1
  11. package/dist/browser/{chunk-6DDGZBMD.js → chunk-4JZTDTIL.js} +2 -2
  12. package/dist/browser/{chunk-6DDGZBMD.js.map → chunk-4JZTDTIL.js.map} +1 -1
  13. package/dist/browser/{chunk-7B5LNIZJ.js → chunk-4NADA62G.js} +2 -2
  14. package/dist/browser/{chunk-7B5LNIZJ.js.map → chunk-4NADA62G.js.map} +1 -1
  15. package/dist/browser/{chunk-SQZKXKLW.js → chunk-57A4DG2S.js} +2 -2
  16. package/dist/browser/{chunk-SQZKXKLW.js.map → chunk-57A4DG2S.js.map} +1 -1
  17. package/dist/browser/{chunk-GQGDHPRQ.js → chunk-5BITQZND.js} +2 -2
  18. package/dist/browser/{chunk-GQGDHPRQ.js.map → chunk-5BITQZND.js.map} +1 -1
  19. package/dist/browser/{chunk-RJNZILJR.js → chunk-62ME2K4P.js} +2 -2
  20. package/dist/browser/{chunk-RJNZILJR.js.map → chunk-62ME2K4P.js.map} +1 -1
  21. package/dist/browser/{chunk-FVLWW7QJ.js → chunk-6ARQ76GD.js} +2 -2
  22. package/dist/browser/{chunk-FVLWW7QJ.js.map → chunk-6ARQ76GD.js.map} +1 -1
  23. package/dist/browser/{chunk-Q6EALMA3.js → chunk-7334637K.js} +2 -2
  24. package/dist/browser/{chunk-Q6EALMA3.js.map → chunk-7334637K.js.map} +1 -1
  25. package/dist/browser/{chunk-XTYTT3BK.js → chunk-7JPEXH7J.js} +2 -2
  26. package/dist/browser/{chunk-XTYTT3BK.js.map → chunk-7JPEXH7J.js.map} +1 -1
  27. package/dist/browser/{chunk-VWPIV7DW.js → chunk-7OD25PBQ.js} +2 -2
  28. package/dist/browser/{chunk-VWPIV7DW.js.map → chunk-7OD25PBQ.js.map} +1 -1
  29. package/dist/browser/{chunk-H6FI5RUB.js → chunk-7Q3WCU66.js} +2 -2
  30. package/dist/browser/{chunk-H6FI5RUB.js.map → chunk-7Q3WCU66.js.map} +1 -1
  31. package/dist/browser/{chunk-BUHCN53D.js → chunk-7THEMMDR.js} +2 -2
  32. package/dist/browser/{chunk-BUHCN53D.js.map → chunk-7THEMMDR.js.map} +1 -1
  33. package/dist/browser/{chunk-UBIHDHZY.js → chunk-A4RVVIA6.js} +2 -2
  34. package/dist/browser/{chunk-UBIHDHZY.js.map → chunk-A4RVVIA6.js.map} +1 -1
  35. package/dist/browser/{chunk-2TIZBQHI.js → chunk-AOY46Q5S.js} +2 -2
  36. package/dist/browser/{chunk-2TIZBQHI.js.map → chunk-AOY46Q5S.js.map} +1 -1
  37. package/dist/browser/{chunk-EJCGBTQE.js → chunk-AW5VCJIZ.js} +2 -2
  38. package/dist/browser/{chunk-EJCGBTQE.js.map → chunk-AW5VCJIZ.js.map} +1 -1
  39. package/dist/browser/{chunk-2JN4EIJE.js → chunk-C5PSLR7Z.js} +2 -2
  40. package/dist/browser/{chunk-2JN4EIJE.js.map → chunk-C5PSLR7Z.js.map} +1 -1
  41. package/dist/browser/{chunk-TOQBNISU.js → chunk-CNDSORAV.js} +2 -2
  42. package/dist/browser/{chunk-TOQBNISU.js.map → chunk-CNDSORAV.js.map} +1 -1
  43. package/dist/browser/{chunk-MPLLD6WX.js → chunk-CQTLGJKX.js} +2 -2
  44. package/dist/browser/{chunk-MPLLD6WX.js.map → chunk-CQTLGJKX.js.map} +1 -1
  45. package/dist/browser/{chunk-24GIDC32.js → chunk-F3U2P5JK.js} +2 -2
  46. package/dist/browser/{chunk-24GIDC32.js.map → chunk-F3U2P5JK.js.map} +1 -1
  47. package/dist/browser/{chunk-ADAK5AIP.js → chunk-FFTSEIYV.js} +2 -2
  48. package/dist/browser/{chunk-ADAK5AIP.js.map → chunk-FFTSEIYV.js.map} +1 -1
  49. package/dist/browser/{chunk-SHZTS2C3.js → chunk-FH2NXTZ6.js} +2 -2
  50. package/dist/browser/{chunk-SHZTS2C3.js.map → chunk-FH2NXTZ6.js.map} +1 -1
  51. package/dist/browser/{chunk-KDR4M45T.js → chunk-FU2GC2LE.js} +2 -2
  52. package/dist/browser/{chunk-KDR4M45T.js.map → chunk-FU2GC2LE.js.map} +1 -1
  53. package/dist/browser/chunk-FZ4CS2GG.js +2 -0
  54. package/dist/browser/{chunk-PHNYLTEH.js.map → chunk-FZ4CS2GG.js.map} +1 -1
  55. package/dist/browser/{chunk-PGMEWW46.js → chunk-GB3HQFYD.js} +2 -2
  56. package/dist/browser/{chunk-PGMEWW46.js.map → chunk-GB3HQFYD.js.map} +1 -1
  57. package/dist/browser/{chunk-J3RZOR3T.js → chunk-GFXGKAUS.js} +2 -2
  58. package/dist/browser/{chunk-J3RZOR3T.js.map → chunk-GFXGKAUS.js.map} +1 -1
  59. package/dist/browser/{chunk-44EOXEIC.js → chunk-GNVQHSS3.js} +2 -2
  60. package/dist/browser/{chunk-44EOXEIC.js.map → chunk-GNVQHSS3.js.map} +1 -1
  61. package/dist/browser/{chunk-LL4YZLL2.js → chunk-HO6CZGVL.js} +2 -2
  62. package/dist/browser/{chunk-LL4YZLL2.js.map → chunk-HO6CZGVL.js.map} +1 -1
  63. package/dist/browser/{chunk-LHABXX5K.js → chunk-IF3OTURI.js} +2 -2
  64. package/dist/browser/{chunk-LHABXX5K.js.map → chunk-IF3OTURI.js.map} +1 -1
  65. package/dist/browser/{chunk-YN34NTWC.js → chunk-ILKK5VBZ.js} +2 -2
  66. package/dist/browser/{chunk-YN34NTWC.js.map → chunk-ILKK5VBZ.js.map} +1 -1
  67. package/dist/browser/chunk-IMCYKBDV.js +2 -0
  68. package/dist/browser/chunk-IMCYKBDV.js.map +1 -0
  69. package/dist/browser/chunk-J2HM6MWA.js +2 -0
  70. package/dist/browser/{chunk-K2DAN37J.js.map → chunk-J2HM6MWA.js.map} +1 -1
  71. package/dist/browser/{chunk-6KVHZTYP.js → chunk-LNFPNBAR.js} +2 -2
  72. package/dist/browser/{chunk-6KVHZTYP.js.map → chunk-LNFPNBAR.js.map} +1 -1
  73. package/dist/browser/{chunk-QXRJ3Q4Y.js → chunk-MBDFLDIN.js} +2 -2
  74. package/dist/browser/{chunk-QXRJ3Q4Y.js.map → chunk-MBDFLDIN.js.map} +1 -1
  75. package/dist/browser/{chunk-M3OC7IZG.js → chunk-MR5OYU27.js} +2 -2
  76. package/dist/browser/{chunk-M3OC7IZG.js.map → chunk-MR5OYU27.js.map} +1 -1
  77. package/dist/browser/{chunk-YK7FPU3F.js → chunk-NFO2YHLK.js} +2 -2
  78. package/dist/browser/{chunk-YK7FPU3F.js.map → chunk-NFO2YHLK.js.map} +1 -1
  79. package/dist/browser/{chunk-2MLEAT6V.js → chunk-NHKKPEA7.js} +2 -2
  80. package/dist/browser/{chunk-2MLEAT6V.js.map → chunk-NHKKPEA7.js.map} +1 -1
  81. package/dist/browser/{chunk-6YZ7OSX2.js → chunk-OA7EP5SN.js} +2 -2
  82. package/dist/browser/{chunk-6YZ7OSX2.js.map → chunk-OA7EP5SN.js.map} +1 -1
  83. package/dist/browser/{chunk-7BGXFJVA.js → chunk-OMF5YUFB.js} +2 -2
  84. package/dist/browser/{chunk-7BGXFJVA.js.map → chunk-OMF5YUFB.js.map} +1 -1
  85. package/dist/browser/{chunk-37N2QITX.js → chunk-ONRD3CRU.js} +2 -2
  86. package/dist/browser/{chunk-37N2QITX.js.map → chunk-ONRD3CRU.js.map} +1 -1
  87. package/dist/browser/{chunk-KJUSI6PP.js → chunk-OUIU7KNA.js} +2 -2
  88. package/dist/browser/{chunk-KJUSI6PP.js.map → chunk-OUIU7KNA.js.map} +1 -1
  89. package/dist/browser/{chunk-DX47GSLU.js → chunk-PTXAORWB.js} +2 -2
  90. package/dist/browser/{chunk-DX47GSLU.js.map → chunk-PTXAORWB.js.map} +1 -1
  91. package/dist/browser/{chunk-J3PY2B6H.js → chunk-Q56WX4Q4.js} +2 -2
  92. package/dist/browser/{chunk-J3PY2B6H.js.map → chunk-Q56WX4Q4.js.map} +1 -1
  93. package/dist/browser/{chunk-EYKUJB3F.js → chunk-QQ7MZFRE.js} +2 -2
  94. package/dist/browser/{chunk-EYKUJB3F.js.map → chunk-QQ7MZFRE.js.map} +1 -1
  95. package/dist/browser/{chunk-JDVR32ZT.js → chunk-QXYS66KZ.js} +2 -2
  96. package/dist/browser/{chunk-JDVR32ZT.js.map → chunk-QXYS66KZ.js.map} +1 -1
  97. package/dist/browser/{chunk-DCYSEIIY.js → chunk-RRF5H53D.js} +2 -2
  98. package/dist/browser/{chunk-DCYSEIIY.js.map → chunk-RRF5H53D.js.map} +1 -1
  99. package/dist/browser/{chunk-BLLAF3XJ.js → chunk-SHWRGBMD.js} +2 -2
  100. package/dist/browser/{chunk-BLLAF3XJ.js.map → chunk-SHWRGBMD.js.map} +1 -1
  101. package/dist/browser/{chunk-2HXQJNAQ.js → chunk-SXUNJC2V.js} +2 -2
  102. package/dist/browser/{chunk-2HXQJNAQ.js.map → chunk-SXUNJC2V.js.map} +1 -1
  103. package/dist/browser/{chunk-DLRAARGY.js → chunk-TUFXYNHE.js} +2 -2
  104. package/dist/browser/{chunk-DLRAARGY.js.map → chunk-TUFXYNHE.js.map} +1 -1
  105. package/dist/browser/{chunk-T5Y7X4JU.js → chunk-TUL2MGVZ.js} +2 -2
  106. package/dist/browser/{chunk-T5Y7X4JU.js.map → chunk-TUL2MGVZ.js.map} +1 -1
  107. package/dist/browser/{chunk-NXYHJZ5U.js → chunk-UUNZHPWM.js} +2 -2
  108. package/dist/browser/{chunk-NXYHJZ5U.js.map → chunk-UUNZHPWM.js.map} +1 -1
  109. package/dist/browser/{chunk-BK4LRFXY.js → chunk-VDQYQAHM.js} +2 -2
  110. package/dist/browser/{chunk-BK4LRFXY.js.map → chunk-VDQYQAHM.js.map} +1 -1
  111. package/dist/browser/{chunk-MR4YHEKX.js → chunk-VPRG4WZA.js} +2 -2
  112. package/dist/browser/{chunk-MR4YHEKX.js.map → chunk-VPRG4WZA.js.map} +1 -1
  113. package/dist/browser/{chunk-UXF4JZOD.js → chunk-XEB43J5Q.js} +2 -2
  114. package/dist/browser/chunk-XEB43J5Q.js.map +1 -0
  115. package/dist/browser/{chunk-5XMAKC7Z.js → chunk-XHZFIDDV.js} +2 -2
  116. package/dist/browser/{chunk-5XMAKC7Z.js.map → chunk-XHZFIDDV.js.map} +1 -1
  117. package/dist/browser/{chunk-UM2REEE6.js → chunk-XKIXQLFN.js} +2 -2
  118. package/dist/browser/{chunk-UM2REEE6.js.map → chunk-XKIXQLFN.js.map} +1 -1
  119. package/dist/browser/{chunk-4P3LD6GI.js → chunk-YIBHO7CN.js} +2 -2
  120. package/dist/browser/{chunk-4P3LD6GI.js.map → chunk-YIBHO7CN.js.map} +1 -1
  121. package/dist/browser/{chunk-TUDWKSAB.js → chunk-YMBKK3WL.js} +2 -2
  122. package/dist/browser/{chunk-TUDWKSAB.js.map → chunk-YMBKK3WL.js.map} +1 -1
  123. package/dist/browser/{chunk-U74BMWFM.js → chunk-Z2PD74DL.js} +2 -2
  124. package/dist/browser/{chunk-U74BMWFM.js.map → chunk-Z2PD74DL.js.map} +1 -1
  125. package/dist/browser/{chunk-S22HXPZL.js → chunk-ZKS444CY.js} +2 -2
  126. package/dist/browser/{chunk-S22HXPZL.js.map → chunk-ZKS444CY.js.map} +1 -1
  127. package/dist/browser/{hive-DkEPbBoe.d.ts → hive-BtyYkHAm.d.ts} +14 -1
  128. package/dist/browser/hive-tx/Transaction.js +1 -1
  129. package/dist/browser/hive-tx/index.js +1 -1
  130. package/dist/browser/hive.d.ts +1 -1
  131. package/dist/browser/hive.js +1 -1
  132. package/dist/browser/index.d.ts +2 -2
  133. package/dist/browser/index.js +1 -1
  134. package/dist/browser/modules/accounts/index.js +1 -1
  135. package/dist/browser/modules/accounts/mutations/bookmarks/index.js +1 -1
  136. package/dist/browser/modules/accounts/mutations/bookmarks/use-account-bookmark-add.js +1 -1
  137. package/dist/browser/modules/accounts/mutations/bookmarks/use-account-bookmark-delete.js +1 -1
  138. package/dist/browser/modules/accounts/mutations/favorite-tags/index.js +1 -1
  139. package/dist/browser/modules/accounts/mutations/favorite-tags/requests.js +1 -1
  140. package/dist/browser/modules/accounts/mutations/favorite-tags/use-favorite-tag-add.js +1 -1
  141. package/dist/browser/modules/accounts/mutations/favorite-tags/use-favorite-tag-delete.js +1 -1
  142. package/dist/browser/modules/accounts/mutations/favorites/index.js +1 -1
  143. package/dist/browser/modules/accounts/mutations/favorites/use-account-favorite-add.js +1 -1
  144. package/dist/browser/modules/accounts/mutations/favorites/use-account-favorite-delete.js +1 -1
  145. package/dist/browser/modules/accounts/mutations/index.js +1 -1
  146. package/dist/browser/modules/accounts/mutations/use-account-relations-update.js +1 -1
  147. package/dist/browser/modules/accounts/mutations/use-account-revoke-key.js +1 -1
  148. package/dist/browser/modules/accounts/mutations/use-account-revoke-posting.js +1 -1
  149. package/dist/browser/modules/accounts/mutations/use-account-update-key-auths.js +1 -1
  150. package/dist/browser/modules/accounts/mutations/use-account-update-password.js +1 -1
  151. package/dist/browser/modules/accounts/mutations/use-account-update-recovery.js +1 -1
  152. package/dist/browser/modules/accounts/mutations/use-account-update.js +1 -1
  153. package/dist/browser/modules/accounts/mutations/use-claim-account.js +1 -1
  154. package/dist/browser/modules/accounts/mutations/use-create-account.js +1 -1
  155. package/dist/browser/modules/accounts/mutations/use-follow.js +1 -1
  156. package/dist/browser/modules/accounts/mutations/use-grant-posting-permission.js +1 -1
  157. package/dist/browser/modules/accounts/mutations/use-unfollow.js +1 -1
  158. package/dist/browser/modules/accounts/queries/check-favorite-query-options.js +1 -1
  159. package/dist/browser/modules/accounts/queries/check-username-wallets-pending-query-options.js +1 -1
  160. package/dist/browser/modules/accounts/queries/get-account-full-query-options.js +1 -1
  161. package/dist/browser/modules/accounts/queries/get-account-pending-recovery-query-options.js +1 -1
  162. package/dist/browser/modules/accounts/queries/get-account-recoveries-query-options.js +1 -1
  163. package/dist/browser/modules/accounts/queries/get-account-reputations-query-options.js +1 -1
  164. package/dist/browser/modules/accounts/queries/get-account-subscriptions-query-options.js +1 -1
  165. package/dist/browser/modules/accounts/queries/get-account-vote-history-infinite-query-options.js +1 -1
  166. package/dist/browser/modules/accounts/queries/get-accounts-query-options.js +1 -1
  167. package/dist/browser/modules/accounts/queries/get-aggregated-balance-query-options.js +1 -1
  168. package/dist/browser/modules/accounts/queries/get-balance-history-query-options.js +1 -1
  169. package/dist/browser/modules/accounts/queries/get-bookmarks-query-options.js +1 -1
  170. package/dist/browser/modules/accounts/queries/get-bots-query-options.js +1 -1
  171. package/dist/browser/modules/accounts/queries/get-favorite-tag-check-query-options.js +1 -1
  172. package/dist/browser/modules/accounts/queries/get-favorite-tags-query-options.js +1 -1
  173. package/dist/browser/modules/accounts/queries/get-favorites-query-options.js +1 -1
  174. package/dist/browser/modules/accounts/queries/get-follow-count-query-options.js +1 -1
  175. package/dist/browser/modules/accounts/queries/get-followers-query-options.js +1 -1
  176. package/dist/browser/modules/accounts/queries/get-following-query-options.js +1 -1
  177. package/dist/browser/modules/accounts/queries/get-friends-infinite-query-options.js +1 -1
  178. package/dist/browser/modules/accounts/queries/get-muted-users-query-options.js +1 -1
  179. package/dist/browser/modules/accounts/queries/get-pro-members-query-options.js +1 -1
  180. package/dist/browser/modules/accounts/queries/get-profiles-query-options.js +1 -1
  181. package/dist/browser/modules/accounts/queries/get-referrals-infinite-query-options.js +1 -1
  182. package/dist/browser/modules/accounts/queries/get-referrals-stats-query-options.js +1 -1
  183. package/dist/browser/modules/accounts/queries/get-relationship-between-accounts-query-options.js +1 -1
  184. package/dist/browser/modules/accounts/queries/get-search-friends-query-options.js +1 -1
  185. package/dist/browser/modules/accounts/queries/get-transactions-infinite-query-options.js +1 -1
  186. package/dist/browser/modules/accounts/queries/index.js +1 -1
  187. package/dist/browser/modules/accounts/queries/lookup-accounts-query-options.js +1 -1
  188. package/dist/browser/modules/accounts/queries/search-accounts-by-username-query-options.js +1 -1
  189. package/dist/browser/modules/accounts/utils/account-power.js +1 -1
  190. package/dist/browser/modules/accounts/utils/index.js +1 -1
  191. package/dist/browser/modules/ai/index.js +1 -1
  192. package/dist/browser/modules/ai/mutations/index.js +1 -1
  193. package/dist/browser/modules/ai/mutations/use-ai-assist.js +1 -1
  194. package/dist/browser/modules/ai/mutations/use-ai-transcribe.js +1 -1
  195. package/dist/browser/modules/ai/mutations/use-generate-image.js +1 -1
  196. package/dist/browser/modules/ai/queries/get-ai-assist-price-query-options.js +1 -1
  197. package/dist/browser/modules/ai/queries/get-ai-generate-price-query-options.js +1 -1
  198. package/dist/browser/modules/ai/queries/get-ai-images-query-options.js +1 -1
  199. package/dist/browser/modules/ai/queries/get-ai-transcribe-price-query-options.js +1 -1
  200. package/dist/browser/modules/ai/queries/index.js +1 -1
  201. package/dist/browser/modules/analytics/index.js +1 -1
  202. package/dist/browser/modules/analytics/mutations/index.js +1 -1
  203. package/dist/browser/modules/analytics/mutations/use-record-activity.js +1 -1
  204. package/dist/browser/modules/analytics/queries/get-discover-curation-query-options.js +1 -1
  205. package/dist/browser/modules/analytics/queries/get-discover-leaderboard-query-options.js +1 -1
  206. package/dist/browser/modules/analytics/queries/get-page-stats-query-options.js +1 -1
  207. package/dist/browser/modules/analytics/queries/index.js +1 -1
  208. package/dist/browser/modules/auth/index.js +1 -1
  209. package/dist/browser/modules/auth/requests.js +1 -1
  210. package/dist/browser/modules/bad-actors/index.js +1 -1
  211. package/dist/browser/modules/bad-actors/queries/get-bad-actors-query-options.js +1 -1
  212. package/dist/browser/modules/bad-actors/queries/index.js +1 -1
  213. package/dist/browser/modules/bridge/index.js +1 -1
  214. package/dist/browser/modules/bridge/requests.js +1 -1
  215. package/dist/browser/modules/bridge/verify-on-alternate-node.js +1 -1
  216. package/dist/browser/modules/communities/index.js +1 -1
  217. package/dist/browser/modules/communities/mutations/index.js +1 -1
  218. package/dist/browser/modules/communities/mutations/use-mute-post.js +1 -1
  219. package/dist/browser/modules/communities/mutations/use-pin-post.js +1 -1
  220. package/dist/browser/modules/communities/mutations/use-register-community-rewards.js +1 -1
  221. package/dist/browser/modules/communities/mutations/use-set-community-role.js +1 -1
  222. package/dist/browser/modules/communities/mutations/use-subscribe-community.js +1 -1
  223. package/dist/browser/modules/communities/mutations/use-unsubscribe-community.js +1 -1
  224. package/dist/browser/modules/communities/mutations/use-update-community.js +1 -1
  225. package/dist/browser/modules/communities/queries/get-account-notifications-infinite-query-options.js +1 -1
  226. package/dist/browser/modules/communities/queries/get-communities-query-options.js +1 -1
  227. package/dist/browser/modules/communities/queries/get-community-context-query-options.js +1 -1
  228. package/dist/browser/modules/communities/queries/get-community-query-options.js +1 -1
  229. package/dist/browser/modules/communities/queries/get-community-subscribers-query-options.js +1 -1
  230. package/dist/browser/modules/communities/queries/get-rewarded-communities-query-options.js +1 -1
  231. package/dist/browser/modules/communities/queries/index.js +1 -1
  232. package/dist/browser/modules/core/config.js +1 -1
  233. package/dist/browser/modules/core/hive-tx.js +1 -1
  234. package/dist/browser/modules/core/index.js +1 -1
  235. package/dist/browser/modules/core/mutations/broadcast-json.js +1 -1
  236. package/dist/browser/modules/core/mutations/index.js +1 -1
  237. package/dist/browser/modules/core/mutations/use-broadcast-mutation.js +1 -1
  238. package/dist/browser/modules/core/queries/get-chain-properties-query-options.js +1 -1
  239. package/dist/browser/modules/core/queries/get-dynamic-props-query-options.js +1 -1
  240. package/dist/browser/modules/core/queries/get-reward-fund-query-options.js +1 -1
  241. package/dist/browser/modules/core/queries/index.js +1 -1
  242. package/dist/browser/modules/core/queries-manager.js +1 -1
  243. package/dist/browser/modules/curation/dmca.js +1 -1
  244. package/dist/browser/modules/curation/index.js +1 -1
  245. package/dist/browser/modules/curation/mutations/index.js +1 -1
  246. package/dist/browser/modules/curation/mutations/use-curation-recommend.js +1 -1
  247. package/dist/browser/modules/curation/queries/get-curation-application-query-options.js +1 -1
  248. package/dist/browser/modules/curation/queries/get-curation-applications-query-options.js +1 -1
  249. package/dist/browser/modules/curation/queries/get-curation-feed-infinite-query-options.js +1 -1
  250. package/dist/browser/modules/curation/queries/get-curation-post-query-options.js +1 -1
  251. package/dist/browser/modules/curation/queries/get-curation-recommendations-infinite-query-options.js +1 -1
  252. package/dist/browser/modules/curation/queries/get-curation-recommender-query-options.js +1 -1
  253. package/dist/browser/modules/curation/queries/get-curation-roster-admin-query-options.js +1 -1
  254. package/dist/browser/modules/curation/queries/get-curation-roster-query-options.js +1 -1
  255. package/dist/browser/modules/curation/queries/get-curation-status-query-options.js +1 -1
  256. package/dist/browser/modules/curation/queries/index.js +1 -1
  257. package/dist/browser/modules/curation/requests.js +1 -1
  258. package/dist/browser/modules/games/index.js +1 -1
  259. package/dist/browser/modules/games/mutations/game-claim.js +1 -1
  260. package/dist/browser/modules/games/mutations/index.js +1 -1
  261. package/dist/browser/modules/games/queries/game-status-check-query-options.js +1 -1
  262. package/dist/browser/modules/games/queries/index.js +1 -1
  263. package/dist/browser/modules/hive-engine/index.js +1 -1
  264. package/dist/browser/modules/hive-engine/queries/get-all-hive-engine-tokens-query-options.js +1 -1
  265. package/dist/browser/modules/hive-engine/queries/get-hive-engine-balances-with-usd-query-options.js +1 -1
  266. package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-general-info-query-options.js +1 -1
  267. package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-metrics-query-options.js +1 -1
  268. package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-transactions-query-options.js +1 -1
  269. package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-balances-query-options.js +1 -1
  270. package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-market-query-options.js +1 -1
  271. package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-metadata-query-options.js +1 -1
  272. package/dist/browser/modules/hive-engine/queries/get-hive-engine-unclaimed-rewards-query-options.js +1 -1
  273. package/dist/browser/modules/hive-engine/queries/index.js +1 -1
  274. package/dist/browser/modules/hive-engine/requests.js +1 -1
  275. package/dist/browser/modules/integrations/3speak/index.js +1 -1
  276. package/dist/browser/modules/integrations/3speak/queries/get-account-token-query-options.js +1 -1
  277. package/dist/browser/modules/integrations/3speak/queries/get-account-videos-query-options.js +1 -1
  278. package/dist/browser/modules/integrations/3speak/queries/index.js +1 -1
  279. package/dist/browser/modules/integrations/hiveposh/index.js +1 -1
  280. package/dist/browser/modules/integrations/hiveposh/queries/get-hiveposh-links-query-options.js +1 -1
  281. package/dist/browser/modules/integrations/hiveposh/queries/index.js +1 -1
  282. package/dist/browser/modules/integrations/index.js +1 -1
  283. package/dist/browser/modules/integrations/plausible/index.js +1 -1
  284. package/dist/browser/modules/integrations/plausible/queries/get-stats-query-options.js +1 -1
  285. package/dist/browser/modules/integrations/plausible/queries/index.js +1 -1
  286. package/dist/browser/modules/market/index.js +1 -1
  287. package/dist/browser/modules/market/mutations/index.js +1 -1
  288. package/dist/browser/modules/market/mutations/use-limit-order-cancel.js +1 -1
  289. package/dist/browser/modules/market/mutations/use-limit-order-create.js +1 -1
  290. package/dist/browser/modules/market/queries/get-current-median-history-price-query-options.js +1 -1
  291. package/dist/browser/modules/market/queries/get-feed-history-query-options.js +1 -1
  292. package/dist/browser/modules/market/queries/get-hive-hbd-stats-query-options.js +1 -1
  293. package/dist/browser/modules/market/queries/get-market-data-query-options.js +1 -1
  294. package/dist/browser/modules/market/queries/get-market-history-query-options.js +1 -1
  295. package/dist/browser/modules/market/queries/get-market-statistics-query-options.js +1 -1
  296. package/dist/browser/modules/market/queries/get-order-book-query-options.js +1 -1
  297. package/dist/browser/modules/market/queries/get-trade-history-query-options.js +1 -1
  298. package/dist/browser/modules/market/queries/index.js +1 -1
  299. package/dist/browser/modules/market/requests.js +1 -1
  300. package/dist/browser/modules/newsletter/api.js +1 -1
  301. package/dist/browser/modules/newsletter/index.js +1 -1
  302. package/dist/browser/modules/newsletter/mutations/index.js +1 -1
  303. package/dist/browser/modules/newsletter/mutations/use-leave-digest.js +1 -1
  304. package/dist/browser/modules/newsletter/mutations/use-send-newsletter-issue.js +1 -1
  305. package/dist/browser/modules/newsletter/mutations/use-subscribe-digest.js +1 -1
  306. package/dist/browser/modules/newsletter/mutations/use-unsubscribe-all-digests.js +1 -1
  307. package/dist/browser/modules/newsletter/queries/get-digest-subscriptions-query-options.js +1 -1
  308. package/dist/browser/modules/newsletter/queries/get-newsletter-issues-query-options.js +1 -1
  309. package/dist/browser/modules/newsletter/queries/get-newsletter-posts-query-options.js +1 -1
  310. package/dist/browser/modules/newsletter/queries/get-newsletter-sender-query-options.js +1 -1
  311. package/dist/browser/modules/newsletter/queries/index.js +1 -1
  312. package/dist/browser/modules/notifications/index.js +1 -1
  313. package/dist/browser/modules/notifications/mutations/index.js +1 -1
  314. package/dist/browser/modules/notifications/mutations/use-mark-notifications-read.js +1 -1
  315. package/dist/browser/modules/notifications/mutations/use-set-last-read.js +1 -1
  316. package/dist/browser/modules/notifications/queries/get-announcements-query-options.js +1 -1
  317. package/dist/browser/modules/notifications/queries/get-notifications-infinite-query-options.js +1 -1
  318. package/dist/browser/modules/notifications/queries/get-notifications-settings-query-options.js +1 -1
  319. package/dist/browser/modules/notifications/queries/get-notifications-unread-count-query-options.js +1 -1
  320. package/dist/browser/modules/notifications/queries/get-spotlights-query-options.js +1 -1
  321. package/dist/browser/modules/notifications/queries/index.js +1 -1
  322. package/dist/browser/modules/operations/index.js +1 -1
  323. package/dist/browser/modules/operations/mutations/index.js +1 -1
  324. package/dist/browser/modules/operations/mutations/sign-operation-by-key.js +1 -1
  325. package/dist/browser/modules/operations/queries/get-chain-properties-query-options.js +1 -1
  326. package/dist/browser/modules/operations/queries/index.js +1 -1
  327. package/dist/browser/modules/points/index.js +1 -1
  328. package/dist/browser/modules/points/mutations/index.js +1 -1
  329. package/dist/browser/modules/points/mutations/use-claim-points.js +1 -1
  330. package/dist/browser/modules/points/queries/get-points-asset-general-info-query-options.js +1 -1
  331. package/dist/browser/modules/points/queries/get-points-asset-transactions-query-options.js +1 -1
  332. package/dist/browser/modules/points/queries/get-points-query-options.js +1 -1
  333. package/dist/browser/modules/points/queries/index.js +1 -1
  334. package/dist/browser/modules/polls/index.js +1 -1
  335. package/dist/browser/modules/polls/mutations/index.js +1 -1
  336. package/dist/browser/modules/polls/mutations/use-poll-vote.js +1 -1
  337. package/dist/browser/modules/polls/queries/get-poll-query-options.js +1 -1
  338. package/dist/browser/modules/polls/queries/index.js +1 -1
  339. package/dist/browser/modules/posts/cache/discussions-cache-utils.js +1 -1
  340. package/dist/browser/modules/posts/cache/entries-cache-management.js +1 -1
  341. package/dist/browser/modules/posts/cache/index.js +1 -1
  342. package/dist/browser/modules/posts/index.js +1 -1
  343. package/dist/browser/modules/posts/mutations/add-fragment.js +1 -1
  344. package/dist/browser/modules/posts/mutations/edit-fragment.js +1 -1
  345. package/dist/browser/modules/posts/mutations/index.js +1 -1
  346. package/dist/browser/modules/posts/mutations/remove-fragment.js +1 -1
  347. package/dist/browser/modules/posts/mutations/use-add-draft.js +1 -1
  348. package/dist/browser/modules/posts/mutations/use-add-image.js +1 -1
  349. package/dist/browser/modules/posts/mutations/use-add-schedule.js +1 -1
  350. package/dist/browser/modules/posts/mutations/use-comment.js +1 -1
  351. package/dist/browser/modules/posts/mutations/use-cross-post.js +1 -1
  352. package/dist/browser/modules/posts/mutations/use-delete-comment.js +1 -1
  353. package/dist/browser/modules/posts/mutations/use-delete-draft.js +1 -1
  354. package/dist/browser/modules/posts/mutations/use-delete-image.js +1 -1
  355. package/dist/browser/modules/posts/mutations/use-delete-schedule.js +1 -1
  356. package/dist/browser/modules/posts/mutations/use-move-schedule.js +1 -1
  357. package/dist/browser/modules/posts/mutations/use-promote.js +1 -1
  358. package/dist/browser/modules/posts/mutations/use-reblog.js +1 -1
  359. package/dist/browser/modules/posts/mutations/use-update-draft.js +1 -1
  360. package/dist/browser/modules/posts/mutations/use-update-reply.js +1 -1
  361. package/dist/browser/modules/posts/mutations/use-upload-image.js +1 -1
  362. package/dist/browser/modules/posts/mutations/use-vote.js +1 -1
  363. package/dist/browser/modules/posts/queries/get-account-posts-query-options.js +1 -1
  364. package/dist/browser/modules/posts/queries/get-comment-history-query-options.js +1 -1
  365. package/dist/browser/modules/posts/queries/get-content-query-options.js +1 -1
  366. package/dist/browser/modules/posts/queries/get-content-replies-query-options.js +1 -1
  367. package/dist/browser/modules/posts/queries/get-deleted-entry-query-options.js +1 -1
  368. package/dist/browser/modules/posts/queries/get-discussions-query-options.js +1 -1
  369. package/dist/browser/modules/posts/queries/get-drafts-query-options.js +1 -1
  370. package/dist/browser/modules/posts/queries/get-entry-active-votes-query-options.js +1 -1
  371. package/dist/browser/modules/posts/queries/get-fragments-query-options.js +1 -1
  372. package/dist/browser/modules/posts/queries/get-images-query-options.js +1 -1
  373. package/dist/browser/modules/posts/queries/get-normalize-post-query-options.js +1 -1
  374. package/dist/browser/modules/posts/queries/get-post-header-query-options.js +1 -1
  375. package/dist/browser/modules/posts/queries/get-post-query-options.js +1 -1
  376. package/dist/browser/modules/posts/queries/get-post-tips-query-options.js +1 -1
  377. package/dist/browser/modules/posts/queries/get-posts-ranked-query-options.js +1 -1
  378. package/dist/browser/modules/posts/queries/get-promoted-posts-query-options.js +1 -1
  379. package/dist/browser/modules/posts/queries/get-reblogged-by-query-options.js +1 -1
  380. package/dist/browser/modules/posts/queries/get-reblogs-query-options.js +1 -1
  381. package/dist/browser/modules/posts/queries/get-schedules-query-options.js +1 -1
  382. package/dist/browser/modules/posts/queries/get-shorts-feed-query-options.js +1 -1
  383. package/dist/browser/modules/posts/queries/get-trending-tags-query-options.js +1 -1
  384. package/dist/browser/modules/posts/queries/get-trending-tags-with-stats-query-options.js +1 -1
  385. package/dist/browser/modules/posts/queries/get-user-post-vote-query-options.js +1 -1
  386. package/dist/browser/modules/posts/queries/get-waves-by-account-query-options.js +1 -1
  387. package/dist/browser/modules/posts/queries/get-waves-by-host-query-options.js +1 -1
  388. package/dist/browser/modules/posts/queries/get-waves-by-tag-query-options.js +1 -1
  389. package/dist/browser/modules/posts/queries/get-waves-feed-query-options.js +1 -1
  390. package/dist/browser/modules/posts/queries/get-waves-following-query-options.js +1 -1
  391. package/dist/browser/modules/posts/queries/get-waves-trending-authors-query-options.js +1 -1
  392. package/dist/browser/modules/posts/queries/get-waves-trending-tags-query-options.js +1 -1
  393. package/dist/browser/modules/posts/queries/index.js +1 -1
  394. package/dist/browser/modules/posts/utils/filter-dmca-entries.js +1 -1
  395. package/dist/browser/modules/posts/utils/validate-post-creating.js +1 -1
  396. package/dist/browser/modules/posts/utils/waves-helpers.js +1 -1
  397. package/dist/browser/modules/private-api/index.js +1 -1
  398. package/dist/browser/modules/private-api/requests.js +1 -1
  399. package/dist/browser/modules/promotions/index.js +1 -1
  400. package/dist/browser/modules/promotions/mutations/index.js +1 -1
  401. package/dist/browser/modules/promotions/mutations/use-boost-plus.js +1 -1
  402. package/dist/browser/modules/promotions/mutations/use-rc-delegation.js +1 -1
  403. package/dist/browser/modules/promotions/queries/get-boost-plus-account-prices-query-options.js +1 -1
  404. package/dist/browser/modules/promotions/queries/get-boost-plus-prices-query-options.js +1 -1
  405. package/dist/browser/modules/promotions/queries/get-promote-price-query-options.js +1 -1
  406. package/dist/browser/modules/promotions/queries/get-rc-delegation-active-query-options.js +1 -1
  407. package/dist/browser/modules/promotions/queries/get-rc-delegation-prices-query-options.js +1 -1
  408. package/dist/browser/modules/promotions/queries/index.js +1 -1
  409. package/dist/browser/modules/proposals/index.js +1 -1
  410. package/dist/browser/modules/proposals/mutations/index.js +1 -1
  411. package/dist/browser/modules/proposals/mutations/use-proposal-create.js +1 -1
  412. package/dist/browser/modules/proposals/mutations/use-proposal-vote.js +1 -1
  413. package/dist/browser/modules/proposals/queries/get-proposal-query-options.js +1 -1
  414. package/dist/browser/modules/proposals/queries/get-proposal-votes-query-options.js +1 -1
  415. package/dist/browser/modules/proposals/queries/get-proposals-query-options.js +1 -1
  416. package/dist/browser/modules/proposals/queries/get-user-proposal-votes-query-options.js +1 -1
  417. package/dist/browser/modules/proposals/queries/index.js +1 -1
  418. package/dist/browser/modules/quests/index.js +1 -1
  419. package/dist/browser/modules/quests/mutations/buy-streak-freeze.js +1 -1
  420. package/dist/browser/modules/quests/mutations/index.js +1 -1
  421. package/dist/browser/modules/quests/queries/get-quests-query-options.js +1 -1
  422. package/dist/browser/modules/quests/queries/index.js +1 -1
  423. package/dist/browser/modules/resource-credits/index.js +1 -1
  424. package/dist/browser/modules/resource-credits/queries/get-account-rc-query-options.js +1 -1
  425. package/dist/browser/modules/resource-credits/queries/get-rc-resource-params-query-options.js +1 -1
  426. package/dist/browser/modules/resource-credits/queries/get-rc-stats-query-options.js +1 -1
  427. package/dist/browser/modules/resource-credits/queries/index.js +1 -1
  428. package/dist/browser/modules/resource-credits/utils/estimate-rc-precheck.js +1 -1
  429. package/dist/browser/modules/resource-credits/utils/index.js +1 -1
  430. package/dist/browser/modules/search/dmca.js +1 -1
  431. package/dist/browser/modules/search/index.js +1 -1
  432. package/dist/browser/modules/search/parse-json-response.js +1 -1
  433. package/dist/browser/modules/search/queries/get-search-account-query-options.js +1 -1
  434. package/dist/browser/modules/search/queries/get-search-api-infinite-query-options.js +1 -1
  435. package/dist/browser/modules/search/queries/get-search-path-query-options.js +1 -1
  436. package/dist/browser/modules/search/queries/get-search-query-options.js +1 -1
  437. package/dist/browser/modules/search/queries/get-search-topics-query-options.js +1 -1
  438. package/dist/browser/modules/search/queries/get-similar-entries-query-options.js +1 -1
  439. package/dist/browser/modules/search/queries/index.js +1 -1
  440. package/dist/browser/modules/search/requests.js +1 -1
  441. package/dist/browser/modules/support/index.js +1 -1
  442. package/dist/browser/modules/support/mutations/index.js +1 -1
  443. package/dist/browser/modules/support/mutations/update-support-settings.js +1 -1
  444. package/dist/browser/modules/support/queries/get-support-settings-query-options.js +1 -1
  445. package/dist/browser/modules/support/queries/index.js +1 -1
  446. package/dist/browser/modules/wallet/consts/hive-account-operation-groups.js +1 -1
  447. package/dist/browser/modules/wallet/consts/hive-operation-list.js +1 -1
  448. package/dist/browser/modules/wallet/consts/hive-operation-orders.js +1 -1
  449. package/dist/browser/modules/wallet/consts/index.js +1 -1
  450. package/dist/browser/modules/wallet/index.js +1 -1
  451. package/dist/browser/modules/wallet/mutations/index.js +1 -1
  452. package/dist/browser/modules/wallet/mutations/use-claim-engine-rewards.js +1 -1
  453. package/dist/browser/modules/wallet/mutations/use-claim-interest.js +1 -1
  454. package/dist/browser/modules/wallet/mutations/use-claim-rewards.js +1 -1
  455. package/dist/browser/modules/wallet/mutations/use-convert.js +1 -1
  456. package/dist/browser/modules/wallet/mutations/use-delegate-engine-token.js +1 -1
  457. package/dist/browser/modules/wallet/mutations/use-delegate-rc.js +1 -1
  458. package/dist/browser/modules/wallet/mutations/use-delegate-vesting-shares.js +1 -1
  459. package/dist/browser/modules/wallet/mutations/use-engine-market-order.js +1 -1
  460. package/dist/browser/modules/wallet/mutations/use-set-withdraw-vesting-route.js +1 -1
  461. package/dist/browser/modules/wallet/mutations/use-stake-engine-token.js +1 -1
  462. package/dist/browser/modules/wallet/mutations/use-transfer-engine-token.js +1 -1
  463. package/dist/browser/modules/wallet/mutations/use-transfer-from-savings.js +1 -1
  464. package/dist/browser/modules/wallet/mutations/use-transfer-point.js +1 -1
  465. package/dist/browser/modules/wallet/mutations/use-transfer-to-savings.js +1 -1
  466. package/dist/browser/modules/wallet/mutations/use-transfer-to-vesting.js +1 -1
  467. package/dist/browser/modules/wallet/mutations/use-transfer.js +1 -1
  468. package/dist/browser/modules/wallet/mutations/use-undelegate-engine-token.js +1 -1
  469. package/dist/browser/modules/wallet/mutations/use-unstake-engine-token.js +1 -1
  470. package/dist/browser/modules/wallet/mutations/use-wallet-operation.js +1 -1
  471. package/dist/browser/modules/wallet/mutations/use-withdraw-vesting.js +1 -1
  472. package/dist/browser/modules/wallet/queries/get-account-delegations-query-options.js +1 -1
  473. package/dist/browser/modules/wallet/queries/get-account-wallet-asset-info-query-options.js +1 -1
  474. package/dist/browser/modules/wallet/queries/get-collateralized-conversion-requests-query-options.js +1 -1
  475. package/dist/browser/modules/wallet/queries/get-conversion-requests-query-options.js +1 -1
  476. package/dist/browser/modules/wallet/queries/get-hbd-asset-general-info-query-options.js +1 -1
  477. package/dist/browser/modules/wallet/queries/get-hbd-asset-transactions-query-options.js +1 -1
  478. package/dist/browser/modules/wallet/queries/get-hive-asset-general-info-query-options.js +1 -1
  479. package/dist/browser/modules/wallet/queries/get-hive-asset-metric-query-options.js +1 -1
  480. package/dist/browser/modules/wallet/queries/get-hive-asset-transactions-query-options.js +1 -1
  481. package/dist/browser/modules/wallet/queries/get-hive-asset-withdrawal-routes-query-options.js +1 -1
  482. package/dist/browser/modules/wallet/queries/get-hive-power-asset-general-info-query-options.js +1 -1
  483. package/dist/browser/modules/wallet/queries/get-hive-power-asset-transactions-query-options.js +1 -1
  484. package/dist/browser/modules/wallet/queries/get-hive-power-delegates-query-options.js +1 -1
  485. package/dist/browser/modules/wallet/queries/get-hive-power-delegatings-query-options.js +1 -1
  486. package/dist/browser/modules/wallet/queries/get-incoming-rc-query-options.js +1 -1
  487. package/dist/browser/modules/wallet/queries/get-open-orders-query-options.js +1 -1
  488. package/dist/browser/modules/wallet/queries/get-outgoing-rc-delegations-infinite-query-options.js +1 -1
  489. package/dist/browser/modules/wallet/queries/get-portfolio-query-options.js +1 -1
  490. package/dist/browser/modules/wallet/queries/get-received-vesting-shares-query-options.js +1 -1
  491. package/dist/browser/modules/wallet/queries/get-recurrent-transfers-query-options.js +1 -1
  492. package/dist/browser/modules/wallet/queries/get-savings-withdraw-from-query-options.js +1 -1
  493. package/dist/browser/modules/wallet/queries/get-vesting-delegation-expirations-query-options.js +1 -1
  494. package/dist/browser/modules/wallet/queries/get-vesting-delegations-query-options.js +1 -1
  495. package/dist/browser/modules/wallet/queries/get-withdraw-routes-query-options.js +1 -1
  496. package/dist/browser/modules/wallet/queries/index.js +1 -1
  497. package/dist/browser/modules/witnesses/index.js +1 -1
  498. package/dist/browser/modules/witnesses/mutations/index.js +1 -1
  499. package/dist/browser/modules/witnesses/mutations/use-witness-proxy.js +1 -1
  500. package/dist/browser/modules/witnesses/mutations/use-witness-vote.js +1 -1
  501. package/dist/browser/modules/witnesses/queries/get-witnesses-query-options.js +1 -1
  502. package/dist/browser/modules/witnesses/queries/index.js +1 -1
  503. package/dist/node/hive.cjs +2 -2
  504. package/dist/node/hive.cjs.map +1 -1
  505. package/dist/node/hive.mjs +2 -2
  506. package/dist/node/hive.mjs.map +1 -1
  507. package/dist/node/index.cjs +3 -3
  508. package/dist/node/index.cjs.map +1 -1
  509. package/dist/node/index.mjs +3 -3
  510. package/dist/node/index.mjs.map +1 -1
  511. package/package.json +1 -1
  512. package/dist/browser/chunk-E6WHRKBG.js +0 -2
  513. package/dist/browser/chunk-E6WHRKBG.js.map +0 -1
  514. package/dist/browser/chunk-K2DAN37J.js +0 -2
  515. package/dist/browser/chunk-PHNYLTEH.js +0 -2
  516. package/dist/browser/chunk-UXF4JZOD.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/communities/mutations/use-update-community.ts"],"names":["useUpdateCommunity","community","username","auth","broadcastMode","useBroadcastMutation","props","buildUpdateCommunityOp","_result","variables","getQueryClient","QueryKeys","prev"],"mappings":"uJA6DO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACAC,EACA,CACA,OAAOC,CAAAA,CACL,CAAC,cAAe,QAAA,CAAUJ,CAAS,CAAA,CACnCC,CAAAA,CACCI,GAAU,CACTC,CAAAA,CAAuBL,CAAAA,CAAWD,CAAAA,CAAWK,CAAK,CACpD,CAAA,CACA,MAAOE,IAAcC,CAAAA,GAAc,CAGtBC,GAAAA,EAAe,CACvB,eACD,CAAE,QAAA,CAAUC,CAAAA,CAAU,WAAA,CAAY,aAAaV,CAAS,CAAE,CAAA,CACzDW,CAAAA,EACMA,CAAAA,EACE,CAAE,GAAGA,CAAAA,CAAM,GAAIH,CAA4C,CAEtE,CAAA,CAGIN,CAAAA,EAAM,SAAS,iBAAA,EACjB,MAAMA,CAAAA,CAAK,OAAA,CAAQ,kBAAkB,CACnC,CAAC,GAAGQ,CAAAA,CAAU,WAAA,CAAY,YAAA,CAAaV,CAAS,CAAC,CACnD,CAAC,EAEL,CAAA,CACAE,CAAAA,CACA,UACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,OAAQ,CAC5C,CACF","file":"chunk-SQZKXKLW.js","sourcesContent":["import { useBroadcastMutation, getQueryClient, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildUpdateCommunityOp, type CommunityProps } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Community } from \"../types\";\n\n/**\n * Payload for updating community properties.\n * Matches the CommunityProps interface from builders.\n */\nexport type UpdateCommunityPayload = CommunityProps;\n\n/**\n * React Query mutation hook for updating community properties.\n *\n * This mutation broadcasts an updateProps operation to the Hive blockchain,\n * modifying the community's metadata and settings. Only community admins\n * can update community properties.\n *\n * @param community - Community name (e.g., \"hive-123456\")\n * @param username - The username updating the community (required for broadcast, must be admin)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates community cache to refetch updated properties\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"community\"\n * - Action: [\"updateProps\", {\"community\": \"hive-123456\", \"props\": {...}}]\n * - Authority: Posting key\n *\n * **Properties:**\n * - title - Community display title\n * - about - Short description/tagline\n * - lang - Primary language code (e.g., \"en\")\n * - description - Full community description (markdown supported)\n * - flag_text - Custom text shown when flagging posts\n * - is_nsfw - Whether community contains NSFW content\n *\n * @example\n * ```typescript\n * const updateMutation = useUpdateCommunity('hive-123456', username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Update community properties\n * updateMutation.mutate({\n * title: 'My Awesome Community',\n * about: 'A place for awesome people',\n * lang: 'en',\n * description: '# Welcome\\nThis is our community description',\n * flag_text: 'Please explain why this content violates our rules',\n * is_nsfw: false\n * });\n * ```\n */\nexport function useUpdateCommunity(\n community: string,\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<UpdateCommunityPayload>(\n [\"communities\", \"update\", community],\n username,\n (props) => [\n buildUpdateCommunityOp(username!, community, props)\n ],\n async (_result: any, variables) => {\n // Optimistic property merge in community cache\n // Query key is [\"community\",\"single\",name,observer] — observer varies, so use predicate\n const qc = getQueryClient();\n qc.setQueriesData<Community>(\n { queryKey: QueryKeys.communities.singlePrefix(community) },\n (prev) => {\n if (!prev) return prev;\n return { ...prev, ...(variables as unknown as Partial<Community>) };\n }\n );\n\n // Cache invalidation — prefix-match all community single queries\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n [...QueryKeys.communities.singlePrefix(community)]\n ]);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'async' }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/communities/mutations/use-update-community.ts"],"names":["useUpdateCommunity","community","username","auth","broadcastMode","useBroadcastMutation","props","buildUpdateCommunityOp","_result","variables","getQueryClient","QueryKeys","prev"],"mappings":"uJA6DO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACAC,EACA,CACA,OAAOC,CAAAA,CACL,CAAC,cAAe,QAAA,CAAUJ,CAAS,CAAA,CACnCC,CAAAA,CACCI,GAAU,CACTC,CAAAA,CAAuBL,CAAAA,CAAWD,CAAAA,CAAWK,CAAK,CACpD,CAAA,CACA,MAAOE,IAAcC,CAAAA,GAAc,CAGtBC,GAAAA,EAAe,CACvB,eACD,CAAE,QAAA,CAAUC,CAAAA,CAAU,WAAA,CAAY,aAAaV,CAAS,CAAE,CAAA,CACzDW,CAAAA,EACMA,CAAAA,EACE,CAAE,GAAGA,CAAAA,CAAM,GAAIH,CAA4C,CAEtE,CAAA,CAGIN,CAAAA,EAAM,SAAS,iBAAA,EACjB,MAAMA,CAAAA,CAAK,OAAA,CAAQ,kBAAkB,CACnC,CAAC,GAAGQ,CAAAA,CAAU,WAAA,CAAY,YAAA,CAAaV,CAAS,CAAC,CACnD,CAAC,EAEL,CAAA,CACAE,CAAAA,CACA,UACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,OAAQ,CAC5C,CACF","file":"chunk-57A4DG2S.js","sourcesContent":["import { useBroadcastMutation, getQueryClient, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildUpdateCommunityOp, type CommunityProps } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Community } from \"../types\";\n\n/**\n * Payload for updating community properties.\n * Matches the CommunityProps interface from builders.\n */\nexport type UpdateCommunityPayload = CommunityProps;\n\n/**\n * React Query mutation hook for updating community properties.\n *\n * This mutation broadcasts an updateProps operation to the Hive blockchain,\n * modifying the community's metadata and settings. Only community admins\n * can update community properties.\n *\n * @param community - Community name (e.g., \"hive-123456\")\n * @param username - The username updating the community (required for broadcast, must be admin)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates community cache to refetch updated properties\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"community\"\n * - Action: [\"updateProps\", {\"community\": \"hive-123456\", \"props\": {...}}]\n * - Authority: Posting key\n *\n * **Properties:**\n * - title - Community display title\n * - about - Short description/tagline\n * - lang - Primary language code (e.g., \"en\")\n * - description - Full community description (markdown supported)\n * - flag_text - Custom text shown when flagging posts\n * - is_nsfw - Whether community contains NSFW content\n *\n * @example\n * ```typescript\n * const updateMutation = useUpdateCommunity('hive-123456', username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Update community properties\n * updateMutation.mutate({\n * title: 'My Awesome Community',\n * about: 'A place for awesome people',\n * lang: 'en',\n * description: '# Welcome\\nThis is our community description',\n * flag_text: 'Please explain why this content violates our rules',\n * is_nsfw: false\n * });\n * ```\n */\nexport function useUpdateCommunity(\n community: string,\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<UpdateCommunityPayload>(\n [\"communities\", \"update\", community],\n username,\n (props) => [\n buildUpdateCommunityOp(username!, community, props)\n ],\n async (_result: any, variables) => {\n // Optimistic property merge in community cache\n // Query key is [\"community\",\"single\",name,observer] — observer varies, so use predicate\n const qc = getQueryClient();\n qc.setQueriesData<Community>(\n { queryKey: QueryKeys.communities.singlePrefix(community) },\n (prev) => {\n if (!prev) return prev;\n return { ...prev, ...(variables as unknown as Partial<Community>) };\n }\n );\n\n // Cache invalidation — prefix-match all community single queries\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n [...QueryKeys.communities.singlePrefix(community)]\n ]);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'async' }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {h}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function d(t,r,a$1){return b(["wallet","transfer-to-vesting"],t,o=>[h(t,o.to,o.amount)],async(o,f)=>{await b$1(r?.adapter,a$1,[a.accounts.full(t),a.accounts.full(f.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},r,"active",{broadcastMode:a$1})}export{d as a};//# sourceMappingURL=chunk-GQGDHPRQ.js.map
2
- //# sourceMappingURL=chunk-GQGDHPRQ.js.map
1
+ import {h}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function d(t,r,a$1){return b(["wallet","transfer-to-vesting"],t,o=>[h(t,o.to,o.amount)],async(o,f)=>{await b$1(r?.adapter,a$1,[a.accounts.full(t),a.accounts.full(f.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},r,"active",{broadcastMode:a$1})}export{d as a};//# sourceMappingURL=chunk-5BITQZND.js.map
2
+ //# sourceMappingURL=chunk-5BITQZND.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-transfer-to-vesting.ts"],"names":["useTransferToVesting","username","auth","broadcastMode","useBroadcastMutation","payload","buildTransferToVestingOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"uJAWO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,qBAAqB,CAAA,CAChCH,CAAAA,CACCI,CAAAA,EAAY,CACXC,CAAAA,CAAyBL,CAAAA,CAAWI,CAAAA,CAAQ,EAAA,CAAIA,CAAAA,CAAQ,MAAM,CAChE,CAAA,CACA,MAAOE,CAAAA,CAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBP,GAAM,OAAA,CAASC,GAAAA,CAAe,CAC3DO,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,EAAE,CAAA,CACpC,CAAC,gBAAA,CAAkB,aAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-GQGDHPRQ.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildTransferToVestingOp } from \"@/modules/operations/builders\";\n\nexport interface TransferToVestingPayload {\n to: string;\n amount: string;\n}\n\nexport function useTransferToVesting(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<TransferToVestingPayload>(\n [\"wallet\", \"transfer-to-vesting\"],\n username,\n (payload) => [\n buildTransferToVestingOp(username!, payload.to, payload.amount)\n ],\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-transfer-to-vesting.ts"],"names":["useTransferToVesting","username","auth","broadcastMode","useBroadcastMutation","payload","buildTransferToVestingOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"uJAWO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,qBAAqB,CAAA,CAChCH,CAAAA,CACCI,CAAAA,EAAY,CACXC,CAAAA,CAAyBL,CAAAA,CAAWI,CAAAA,CAAQ,EAAA,CAAIA,CAAAA,CAAQ,MAAM,CAChE,CAAA,CACA,MAAOE,CAAAA,CAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBP,GAAM,OAAA,CAASC,GAAAA,CAAe,CAC3DO,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,EAAE,CAAA,CACpC,CAAC,gBAAA,CAAkB,aAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-5BITQZND.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildTransferToVestingOp } from \"@/modules/operations/builders\";\n\nexport interface TransferToVestingPayload {\n to: string;\n amount: string;\n}\n\nexport function useTransferToVesting(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<TransferToVestingPayload>(\n [\"wallet\", \"transfer-to-vesting\"],\n username,\n (payload) => [\n buildTransferToVestingOp(username!, payload.to, payload.amount)\n ],\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {g}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function c(t,o,r){return b(["wallet","claim-interest"],t,e=>g(t,e.to,e.amount,e.memo,e.requestId),async()=>{await b$1(o?.adapter,r,[a.accounts.full(t),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},o,"active",{broadcastMode:r})}export{c as a};//# sourceMappingURL=chunk-RJNZILJR.js.map
2
- //# sourceMappingURL=chunk-RJNZILJR.js.map
1
+ import {g}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function c(t,o,r){return b(["wallet","claim-interest"],t,e=>g(t,e.to,e.amount,e.memo,e.requestId),async()=>{await b$1(o?.adapter,r,[a.accounts.full(t),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},o,"active",{broadcastMode:r})}export{c as a};//# sourceMappingURL=chunk-62ME2K4P.js.map
2
+ //# sourceMappingURL=chunk-62ME2K4P.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-claim-interest.ts"],"names":["useClaimInterest","username","auth","broadcastMode","useBroadcastMutation","payload","buildClaimInterestOps","invalidateAfterBroadcast","QueryKeys"],"mappings":"uJAaO,SAASA,CAAAA,CAAiBC,CAAAA,CAA8BC,CAAAA,CAC7DC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,gBAAgB,CAAA,CAC3BH,CAAAA,CACCI,CAAAA,EAAYC,EAAsBL,CAAAA,CAAWI,CAAAA,CAAQ,EAAA,CAAIA,CAAAA,CAAQ,MAAA,CAAQA,CAAAA,CAAQ,IAAA,CAAMA,CAAAA,CAAQ,SAAS,CAAA,CACzG,SAAY,CACV,MAAME,GAAAA,CAAyBL,GAAM,OAAA,CAASC,CAAAA,CAAe,CAC3DK,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKP,CAAQ,CAAA,CAChC,CAAC,gBAAA,CAAkB,YAAA,CAAcA,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-RJNZILJR.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildClaimInterestOps } from \"@/modules/operations/builders\";\n\nexport interface ClaimInterestPayload {\n to: string;\n amount: string;\n memo: string;\n requestId: number;\n}\n\nexport function useClaimInterest(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<ClaimInterestPayload>(\n [\"wallet\", \"claim-interest\"],\n username,\n (payload) => buildClaimInterestOps(username!, payload.to, payload.amount, payload.memo, payload.requestId),\n async () => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-claim-interest.ts"],"names":["useClaimInterest","username","auth","broadcastMode","useBroadcastMutation","payload","buildClaimInterestOps","invalidateAfterBroadcast","QueryKeys"],"mappings":"uJAaO,SAASA,CAAAA,CAAiBC,CAAAA,CAA8BC,CAAAA,CAC7DC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,gBAAgB,CAAA,CAC3BH,CAAAA,CACCI,CAAAA,EAAYC,EAAsBL,CAAAA,CAAWI,CAAAA,CAAQ,EAAA,CAAIA,CAAAA,CAAQ,MAAA,CAAQA,CAAAA,CAAQ,IAAA,CAAMA,CAAAA,CAAQ,SAAS,CAAA,CACzG,SAAY,CACV,MAAME,GAAAA,CAAyBL,GAAM,OAAA,CAASC,CAAAA,CAAe,CAC3DK,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKP,CAAQ,CAAA,CAChC,CAAC,gBAAA,CAAkB,YAAA,CAAcA,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-62ME2K4P.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildClaimInterestOps } from \"@/modules/operations/builders\";\n\nexport interface ClaimInterestPayload {\n to: string;\n amount: string;\n memo: string;\n requestId: number;\n}\n\nexport function useClaimInterest(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<ClaimInterestPayload>(\n [\"wallet\", \"claim-interest\"],\n username,\n (payload) => buildClaimInterestOps(username!, payload.to, payload.amount, payload.memo, payload.requestId),\n async () => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {e}from'./chunk-OBSTAXZB.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function u(i,o,a$1){return b(["communities","pin-post"],i,({community:n,account:t,permlink:m,pin:p})=>[e(i,n,t,m,p)],async(n,t)=>{o?.adapter?.invalidateQueries&&await o.adapter.invalidateQueries([a.posts.entry(`/@${t.account}/${t.permlink}`),[...a.communities.singlePrefix(t.community)]]);},o,"posting",{broadcastMode:a$1??"async"})}export{u as a};//# sourceMappingURL=chunk-FVLWW7QJ.js.map
2
- //# sourceMappingURL=chunk-FVLWW7QJ.js.map
1
+ import {e}from'./chunk-OBSTAXZB.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function u(i,o,a$1){return b(["communities","pin-post"],i,({community:n,account:t,permlink:m,pin:p})=>[e(i,n,t,m,p)],async(n,t)=>{o?.adapter?.invalidateQueries&&await o.adapter.invalidateQueries([a.posts.entry(`/@${t.account}/${t.permlink}`),[...a.communities.singlePrefix(t.community)]]);},o,"posting",{broadcastMode:a$1??"async"})}export{u as a};//# sourceMappingURL=chunk-6ARQ76GD.js.map
2
+ //# sourceMappingURL=chunk-6ARQ76GD.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/communities/mutations/use-pin-post.ts"],"names":["usePinPost","username","auth","broadcastMode","useBroadcastMutation","community","account","permlink","pin","buildPinPostOp","_result","variables","QueryKeys"],"mappings":"4GAYO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,aAAA,CAAe,UAAU,CAAA,CAC1BH,CAAAA,CACA,CAAC,CAAE,UAAAI,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,QAAA,CAAAC,EAAU,GAAA,CAAAC,CAAI,CAAA,GAAM,CACzCC,EAAeR,CAAAA,CAAWI,CAAAA,CAAWC,CAAAA,CAASC,CAAAA,CAAUC,CAAG,CAC7D,CAAA,CACA,MAAOE,CAAAA,CAASC,IAAc,CACxBT,CAAAA,EAAM,OAAA,EAAS,iBAAA,EACjB,MAAMA,CAAAA,CAAK,OAAA,CAAQ,iBAAA,CAAkB,CACnCU,CAAAA,CAAU,KAAA,CAAM,KAAA,CAAM,CAAA,EAAA,EAAKD,EAAU,OAAO,CAAA,CAAA,EAAIA,CAAAA,CAAU,QAAQ,EAAE,CAAA,CACpE,CAAC,GAAGC,CAAAA,CAAU,YAAY,YAAA,CAAaD,CAAAA,CAAU,SAAS,CAAC,CAC7D,CAAC,EAEL,CAAA,CACAT,CAAAA,CACA,UACA,CAAE,aAAA,CAAeC,GAAAA,EAAiB,OAAQ,CAC5C,CACF","file":"chunk-FVLWW7QJ.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildPinPostOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\nexport interface PinPostPayload {\n community: string;\n account: string;\n permlink: string;\n pin: boolean;\n}\n\nexport function usePinPost(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<PinPostPayload>(\n [\"communities\", \"pin-post\"],\n username,\n ({ community, account, permlink, pin }) => [\n buildPinPostOp(username!, community, account, permlink, pin)\n ],\n async (_result, variables) => {\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n QueryKeys.posts.entry(`/@${variables.account}/${variables.permlink}`),\n [...QueryKeys.communities.singlePrefix(variables.community)],\n ]);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'async' }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/communities/mutations/use-pin-post.ts"],"names":["usePinPost","username","auth","broadcastMode","useBroadcastMutation","community","account","permlink","pin","buildPinPostOp","_result","variables","QueryKeys"],"mappings":"4GAYO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,aAAA,CAAe,UAAU,CAAA,CAC1BH,CAAAA,CACA,CAAC,CAAE,UAAAI,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,QAAA,CAAAC,EAAU,GAAA,CAAAC,CAAI,CAAA,GAAM,CACzCC,EAAeR,CAAAA,CAAWI,CAAAA,CAAWC,CAAAA,CAASC,CAAAA,CAAUC,CAAG,CAC7D,CAAA,CACA,MAAOE,CAAAA,CAASC,IAAc,CACxBT,CAAAA,EAAM,OAAA,EAAS,iBAAA,EACjB,MAAMA,CAAAA,CAAK,OAAA,CAAQ,iBAAA,CAAkB,CACnCU,CAAAA,CAAU,KAAA,CAAM,KAAA,CAAM,CAAA,EAAA,EAAKD,EAAU,OAAO,CAAA,CAAA,EAAIA,CAAAA,CAAU,QAAQ,EAAE,CAAA,CACpE,CAAC,GAAGC,CAAAA,CAAU,YAAY,YAAA,CAAaD,CAAAA,CAAU,SAAS,CAAC,CAC7D,CAAC,EAEL,CAAA,CACAT,CAAAA,CACA,UACA,CAAE,aAAA,CAAeC,GAAAA,EAAiB,OAAQ,CAC5C,CACF","file":"chunk-6ARQ76GD.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildPinPostOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\nexport interface PinPostPayload {\n community: string;\n account: string;\n permlink: string;\n pin: boolean;\n}\n\nexport function usePinPost(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<PinPostPayload>(\n [\"communities\", \"pin-post\"],\n username,\n ({ community, account, permlink, pin }) => [\n buildPinPostOp(username!, community, account, permlink, pin)\n ],\n async (_result, variables) => {\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n QueryKeys.posts.entry(`/@${variables.account}/${variables.permlink}`),\n [...QueryKeys.communities.singlePrefix(variables.community)],\n ]);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'async' }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function u(t,i,a$1){return b(["wallet","delegate-engine-token"],t,e=>{let o=JSON.stringify({contractName:"tokens",contractAction:"delegate",contractPayload:{symbol:e.symbol,to:e.to,quantity:e.quantity}});return [["custom_json",{id:"ssc-mainnet-hive",required_auths:[t],required_posting_auths:[],json:o}]]},async(e,o)=>{await b$1(i?.adapter,a$1,[a.accounts.full(t),a.accounts.full(o.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},i,"active",{broadcastMode:a$1})}export{u as a};//# sourceMappingURL=chunk-Q6EALMA3.js.map
2
- //# sourceMappingURL=chunk-Q6EALMA3.js.map
1
+ import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function u(t,i,a$1){return b(["wallet","delegate-engine-token"],t,e=>{let o=JSON.stringify({contractName:"tokens",contractAction:"delegate",contractPayload:{symbol:e.symbol,to:e.to,quantity:e.quantity}});return [["custom_json",{id:"ssc-mainnet-hive",required_auths:[t],required_posting_auths:[],json:o}]]},async(e,o)=>{await b$1(i?.adapter,a$1,[a.accounts.full(t),a.accounts.full(o.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},i,"active",{broadcastMode:a$1})}export{u as a};//# sourceMappingURL=chunk-7334637K.js.map
2
+ //# sourceMappingURL=chunk-7334637K.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-delegate-engine-token.ts"],"names":["useDelegateEngineToken","username","auth","broadcastMode","useBroadcastMutation","payload","json","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"mHAYO,SAASA,CAAAA,CAAuBC,EAA8BC,CAAAA,CACnEC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,uBAAuB,EAClCH,CAAAA,CACCI,CAAAA,EAAY,CACX,IAAMC,CAAAA,CAAO,KAAK,SAAA,CAAU,CAC1B,YAAA,CAAc,QAAA,CACd,cAAA,CAAgB,UAAA,CAChB,gBAAiB,CACf,MAAA,CAAQD,EAAQ,MAAA,CAChB,EAAA,CAAIA,EAAQ,EAAA,CACZ,QAAA,CAAUA,CAAAA,CAAQ,QACpB,CACF,CAAC,EACD,OAAO,CAAC,CAAC,aAAA,CAAe,CACtB,GAAI,kBAAA,CACJ,cAAA,CAAgB,CAACJ,CAAS,CAAA,CAC1B,sBAAA,CAAwB,EAAC,CACzB,IAAA,CAAAK,CACF,CAAC,CAAc,CACjB,CAAA,CACA,MAAOC,EAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBP,CAAAA,EAAM,QAASC,GAAAA,CAAe,CAC3DO,EAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,QAAA,CAAS,KAAKF,CAAAA,CAAU,EAAE,EACpC,CAAC,gBAAA,CAAkB,aAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,SACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-Q6EALMA3.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Operation } from \"../../../hive-tx\";\n\nexport interface DelegateEngineTokenPayload {\n to: string;\n symbol: string;\n quantity: string;\n}\n\nexport function useDelegateEngineToken(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<DelegateEngineTokenPayload>(\n [\"wallet\", \"delegate-engine-token\"],\n username,\n (payload) => {\n const json = JSON.stringify({\n contractName: \"tokens\",\n contractAction: \"delegate\",\n contractPayload: {\n symbol: payload.symbol,\n to: payload.to,\n quantity: payload.quantity,\n }\n });\n return [[\"custom_json\", {\n id: \"ssc-mainnet-hive\",\n required_auths: [username!],\n required_posting_auths: [],\n json,\n }] as Operation];\n },\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-delegate-engine-token.ts"],"names":["useDelegateEngineToken","username","auth","broadcastMode","useBroadcastMutation","payload","json","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"mHAYO,SAASA,CAAAA,CAAuBC,EAA8BC,CAAAA,CACnEC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,uBAAuB,EAClCH,CAAAA,CACCI,CAAAA,EAAY,CACX,IAAMC,CAAAA,CAAO,KAAK,SAAA,CAAU,CAC1B,YAAA,CAAc,QAAA,CACd,cAAA,CAAgB,UAAA,CAChB,gBAAiB,CACf,MAAA,CAAQD,EAAQ,MAAA,CAChB,EAAA,CAAIA,EAAQ,EAAA,CACZ,QAAA,CAAUA,CAAAA,CAAQ,QACpB,CACF,CAAC,EACD,OAAO,CAAC,CAAC,aAAA,CAAe,CACtB,GAAI,kBAAA,CACJ,cAAA,CAAgB,CAACJ,CAAS,CAAA,CAC1B,sBAAA,CAAwB,EAAC,CACzB,IAAA,CAAAK,CACF,CAAC,CAAc,CACjB,CAAA,CACA,MAAOC,EAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBP,CAAAA,EAAM,QAASC,GAAAA,CAAe,CAC3DO,EAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,QAAA,CAAS,KAAKF,CAAAA,CAAU,EAAE,EACpC,CAAC,gBAAA,CAAkB,aAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,SACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-7334637K.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Operation } from \"../../../hive-tx\";\n\nexport interface DelegateEngineTokenPayload {\n to: string;\n symbol: string;\n quantity: string;\n}\n\nexport function useDelegateEngineToken(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<DelegateEngineTokenPayload>(\n [\"wallet\", \"delegate-engine-token\"],\n username,\n (payload) => {\n const json = JSON.stringify({\n contractName: \"tokens\",\n contractAction: \"delegate\",\n contractPayload: {\n symbol: payload.symbol,\n to: payload.to,\n quantity: payload.quantity,\n }\n });\n return [[\"custom_json\", {\n id: \"ssc-mainnet-hive\",\n required_auths: [username!],\n required_posting_auths: [],\n json,\n }] as Operation];\n },\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b,c}from'./chunk-UXF4JZOD.js';import {a}from'./chunk-CPEOHI6I.js';import {useMutation}from'@tanstack/react-query';function g(r){return useMutation({mutationKey:["operations","sign",r],mutationFn:({operation:a$1,keyOrSeed:t})=>{if(!r)throw new Error("[Operations][Sign] \u2013 cannot sign op with anon user");let i;return t.split(" ").length===12?i=a.fromLogin(r,t,"active"):b(t)?i=a.fromString(t):i=a.from(t),c([a$1],i)}})}export{g as a};//# sourceMappingURL=chunk-XTYTT3BK.js.map
2
- //# sourceMappingURL=chunk-XTYTT3BK.js.map
1
+ import {b,c}from'./chunk-XEB43J5Q.js';import {a}from'./chunk-CPEOHI6I.js';import {useMutation}from'@tanstack/react-query';function g(r){return useMutation({mutationKey:["operations","sign",r],mutationFn:({operation:a$1,keyOrSeed:t})=>{if(!r)throw new Error("[Operations][Sign] \u2013 cannot sign op with anon user");let i;return t.split(" ").length===12?i=a.fromLogin(r,t,"active"):b(t)?i=a.fromString(t):i=a.from(t),c([a$1],i)}})}export{g as a};//# sourceMappingURL=chunk-7JPEXH7J.js.map
2
+ //# sourceMappingURL=chunk-7JPEXH7J.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/operations/mutations/sign-operation-by-key.ts"],"names":["useSignOperationByKey","username","useMutation","operation","keyOrSeed","privateKey","PrivateKey","isWif","broadcastOperations"],"mappings":"0HAKO,SAASA,EAAsBC,CAAAA,CAA8B,CAClE,OAAOC,WAAAA,CAAY,CACjB,WAAA,CAAa,CAAC,YAAA,CAAc,OAAQD,CAAQ,CAAA,CAC5C,UAAA,CAAY,CAAC,CACX,SAAA,CAAAE,GAAAA,CACA,SAAA,CAAAC,CACF,CAAA,GAGM,CACJ,GAAI,CAACH,EACH,MAAM,IAAI,KAAA,CAAM,yDAAoD,EAGtE,IAAII,CAAAA,CACJ,OAAID,CAAAA,CAAU,KAAA,CAAM,GAAG,CAAA,CAAE,MAAA,GAAW,GAClCC,CAAAA,CAAaC,CAAAA,CAAW,SAAA,CAAUL,CAAAA,CAAUG,CAAAA,CAAW,QAAQ,CAAA,CACtDG,CAAAA,CAAMH,CAAS,CAAA,CACxBC,CAAAA,CAAaC,CAAAA,CAAW,UAAA,CAAWF,CAAS,CAAA,CAE5CC,CAAAA,CAAaC,CAAAA,CAAW,KAAKF,CAAS,CAAA,CAGjCI,CAAAA,CACL,CAACL,GAAS,CAAA,CACVE,CACF,CACF,CACF,CAAC,CACH","file":"chunk-XTYTT3BK.js","sourcesContent":["import { PrivateKey } from \"../../../hive-tx\";\nimport type { Operation } from \"../../../hive-tx\";\nimport { isWif, broadcastOperations } from \"@/modules/core/hive-tx\";\nimport { useMutation } from \"@tanstack/react-query\";\n\nexport function useSignOperationByKey(username: string | undefined) {\n return useMutation({\n mutationKey: [\"operations\", \"sign\", username],\n mutationFn: ({\n operation,\n keyOrSeed,\n }: {\n operation: Operation;\n keyOrSeed: string;\n }) => {\n if (!username) {\n throw new Error(\"[Operations][Sign] – cannot sign op with anon user\");\n }\n\n let privateKey: PrivateKey;\n if (keyOrSeed.split(\" \").length === 12) {\n privateKey = PrivateKey.fromLogin(username, keyOrSeed, \"active\");\n } else if (isWif(keyOrSeed)) {\n privateKey = PrivateKey.fromString(keyOrSeed);\n } else {\n privateKey = PrivateKey.from(keyOrSeed);\n }\n\n return broadcastOperations(\n [operation],\n privateKey\n );\n },\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/operations/mutations/sign-operation-by-key.ts"],"names":["useSignOperationByKey","username","useMutation","operation","keyOrSeed","privateKey","PrivateKey","isWif","broadcastOperations"],"mappings":"0HAKO,SAASA,EAAsBC,CAAAA,CAA8B,CAClE,OAAOC,WAAAA,CAAY,CACjB,WAAA,CAAa,CAAC,YAAA,CAAc,OAAQD,CAAQ,CAAA,CAC5C,UAAA,CAAY,CAAC,CACX,SAAA,CAAAE,GAAAA,CACA,SAAA,CAAAC,CACF,CAAA,GAGM,CACJ,GAAI,CAACH,EACH,MAAM,IAAI,KAAA,CAAM,yDAAoD,EAGtE,IAAII,CAAAA,CACJ,OAAID,CAAAA,CAAU,KAAA,CAAM,GAAG,CAAA,CAAE,MAAA,GAAW,GAClCC,CAAAA,CAAaC,CAAAA,CAAW,SAAA,CAAUL,CAAAA,CAAUG,CAAAA,CAAW,QAAQ,CAAA,CACtDG,CAAAA,CAAMH,CAAS,CAAA,CACxBC,CAAAA,CAAaC,CAAAA,CAAW,UAAA,CAAWF,CAAS,CAAA,CAE5CC,CAAAA,CAAaC,CAAAA,CAAW,KAAKF,CAAS,CAAA,CAGjCI,CAAAA,CACL,CAACL,GAAS,CAAA,CACVE,CACF,CACF,CACF,CAAC,CACH","file":"chunk-7JPEXH7J.js","sourcesContent":["import { PrivateKey } from \"../../../hive-tx\";\nimport type { Operation } from \"../../../hive-tx\";\nimport { isWif, broadcastOperations } from \"@/modules/core/hive-tx\";\nimport { useMutation } from \"@tanstack/react-query\";\n\nexport function useSignOperationByKey(username: string | undefined) {\n return useMutation({\n mutationKey: [\"operations\", \"sign\", username],\n mutationFn: ({\n operation,\n keyOrSeed,\n }: {\n operation: Operation;\n keyOrSeed: string;\n }) => {\n if (!username) {\n throw new Error(\"[Operations][Sign] – cannot sign op with anon user\");\n }\n\n let privateKey: PrivateKey;\n if (keyOrSeed.split(\" \").length === 12) {\n privateKey = PrivateKey.fromLogin(username, keyOrSeed, \"active\");\n } else if (isWif(keyOrSeed)) {\n privateKey = PrivateKey.fromString(keyOrSeed);\n } else {\n privateKey = PrivateKey.from(keyOrSeed);\n }\n\n return broadcastOperations(\n [operation],\n privateKey\n );\n },\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {f}from'./chunk-AEIA5MPL.js';import {b}from'./chunk-K2DAN37J.js';import {b as b$1}from'./chunk-POHYQBLL.js';import {a}from'./chunk-HEILHNSR.js';var y=5e3,o=new Map;function I(e,f$1,m){return b(["wallet","claim-rewards"],e,t=>[f(e,t.rewardHive,t.rewardHbd,t.rewardVests)],()=>{let t=e??"__anonymous__",u=[a.accounts.full(e),["ecency-wallets","asset-info",e],["wallet","portfolio","v2",e],a.assets.hiveGeneralInfo(e),a.assets.hbdGeneralInfo(e),a.assets.hivePowerGeneralInfo(e)],l=o.get(t);l&&(clearTimeout(l),o.delete(t));let w=setTimeout(async()=>{try{let i=b$1(),a=(await Promise.allSettled(u.map(s=>i.invalidateQueries({queryKey:s})))).filter(s=>s.status==="rejected");a.length>0&&console.error("[SDK][Wallet][useClaimRewards] delayed invalidation rejected",{username:e,rejectedCount:a.length,rejected:a});}catch(i){console.error("[SDK][Wallet][useClaimRewards] delayed invalidation failed",{username:e,error:i});}finally{o.delete(t);}},y);o.set(t,w);},f$1,"posting",{broadcastMode:m})}export{I as a};//# sourceMappingURL=chunk-VWPIV7DW.js.map
2
- //# sourceMappingURL=chunk-VWPIV7DW.js.map
1
+ import {f}from'./chunk-AEIA5MPL.js';import {b}from'./chunk-J2HM6MWA.js';import {b as b$1}from'./chunk-POHYQBLL.js';import {a}from'./chunk-HEILHNSR.js';var y=5e3,o=new Map;function I(e,f$1,m){return b(["wallet","claim-rewards"],e,t=>[f(e,t.rewardHive,t.rewardHbd,t.rewardVests)],()=>{let t=e??"__anonymous__",u=[a.accounts.full(e),["ecency-wallets","asset-info",e],["wallet","portfolio","v2",e],a.assets.hiveGeneralInfo(e),a.assets.hbdGeneralInfo(e),a.assets.hivePowerGeneralInfo(e)],l=o.get(t);l&&(clearTimeout(l),o.delete(t));let w=setTimeout(async()=>{try{let i=b$1(),a=(await Promise.allSettled(u.map(s=>i.invalidateQueries({queryKey:s})))).filter(s=>s.status==="rejected");a.length>0&&console.error("[SDK][Wallet][useClaimRewards] delayed invalidation rejected",{username:e,rejectedCount:a.length,rejected:a});}catch(i){console.error("[SDK][Wallet][useClaimRewards] delayed invalidation failed",{username:e,error:i});}finally{o.delete(t);}},y);o.set(t,w);},f$1,"posting",{broadcastMode:m})}export{I as a};//# sourceMappingURL=chunk-7OD25PBQ.js.map
2
+ //# sourceMappingURL=chunk-7OD25PBQ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-claim-rewards.ts"],"names":["CLAIM_REWARDS_INVALIDATION_DELAY_MS","pendingInvalidationTimers","useClaimRewards","username","auth","broadcastMode","useBroadcastMutation","payload","buildClaimRewardBalanceOp","timerKey","keysToInvalidate","QueryKeys","existingTimer","timer","qc","getQueryClient","rejected","key","result","error"],"mappings":"uJAYA,IAAMA,EAAsC,GAAA,CACtCC,CAAAA,CAA4B,IAAI,GAAA,CAE/B,SAASC,CAAAA,CAAgBC,CAAAA,CAA8BC,GAAAA,CAC5DC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,eAAe,EAC1BH,CAAAA,CACCI,CAAAA,EAAY,CACXC,CAAAA,CAA0BL,EAAWI,CAAAA,CAAQ,UAAA,CAAYA,CAAAA,CAAQ,SAAA,CAAWA,EAAQ,WAAW,CACjG,CAAA,CACA,IAAM,CACJ,IAAME,CAAAA,CAAWN,GAAY,eAAA,CACvBO,CAAAA,CAAmB,CACvBC,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKR,CAAQ,EAChC,CAAC,gBAAA,CAAkB,YAAA,CAAcA,CAAQ,EACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CAAA,CACtCQ,CAAAA,CAAU,OAAO,eAAA,CAAgBR,CAAS,EAC1CQ,CAAAA,CAAU,MAAA,CAAO,cAAA,CAAeR,CAAS,EACzCQ,CAAAA,CAAU,MAAA,CAAO,qBAAqBR,CAAS,CACjD,EAIMS,CAAAA,CAAgBX,CAAAA,CAA0B,GAAA,CAAIQ,CAAQ,EACxDG,CAAAA,GACF,YAAA,CAAaA,CAAa,CAAA,CAC1BX,CAAAA,CAA0B,OAAOQ,CAAQ,CAAA,CAAA,CAG3C,IAAMI,CAAAA,CAAQ,WAAW,SAAY,CACnC,GAAI,CACF,IAAMC,CAAAA,CAAKC,GAAAA,EAAe,CAIpBC,CAAAA,CAAAA,CAHU,MAAM,OAAA,CAAQ,UAAA,CAC5BN,EAAiB,GAAA,CAAKO,CAAAA,EAAQH,EAAG,iBAAA,CAAkB,CAAE,QAAA,CAAUG,CAAI,CAAC,CAAC,CACvE,GACyB,MAAA,CAAQC,CAAAA,EAAWA,EAAO,MAAA,GAAW,UAAU,CAAA,CACpEF,CAAAA,CAAS,OAAS,CAAA,EACpB,OAAA,CAAQ,MAAM,8DAAA,CAAgE,CAC5E,SAAAb,CAAAA,CACA,aAAA,CAAea,CAAAA,CAAS,MAAA,CACxB,SAAAA,CACF,CAAC,EAEL,CAAA,MAASG,EAAO,CACd,OAAA,CAAQ,KAAA,CAAM,4DAAA,CAA8D,CAC1E,QAAA,CAAAhB,CAAAA,CACA,MAAAgB,CACF,CAAC,EACH,CAAA,OAAE,CACAlB,CAAAA,CAA0B,MAAA,CAAOQ,CAAQ,EAC3C,CACF,EAAGT,CAAmC,CAAA,CAEtCC,EAA0B,GAAA,CAAIQ,CAAAA,CAAUI,CAAK,EAC/C,EACAT,GAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-VWPIV7DW.js","sourcesContent":["import { useBroadcastMutation } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys, getQueryClient } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildClaimRewardBalanceOp } from \"@/modules/operations/builders\";\n\nexport interface ClaimRewardsPayload {\n rewardHive: string;\n rewardHbd: string;\n rewardVests: string;\n}\n\nconst CLAIM_REWARDS_INVALIDATION_DELAY_MS = 5000;\nconst pendingInvalidationTimers = new Map<string, ReturnType<typeof setTimeout>>();\n\nexport function useClaimRewards(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<ClaimRewardsPayload>(\n [\"wallet\", \"claim-rewards\"],\n username,\n (payload) => [\n buildClaimRewardBalanceOp(username!, payload.rewardHive, payload.rewardHbd, payload.rewardVests)\n ],\n () => {\n const timerKey = username ?? \"__anonymous__\";\n const keysToInvalidate = [\n QueryKeys.accounts.full(username),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username],\n QueryKeys.assets.hiveGeneralInfo(username!),\n QueryKeys.assets.hbdGeneralInfo(username!),\n QueryKeys.assets.hivePowerGeneralInfo(username!),\n ];\n\n // Delay invalidation to allow blockchain to propagate the transaction.\n // Immediate invalidation would fetch stale (pre-confirmation) data.\n const existingTimer = pendingInvalidationTimers.get(timerKey);\n if (existingTimer) {\n clearTimeout(existingTimer);\n pendingInvalidationTimers.delete(timerKey);\n }\n\n const timer = setTimeout(async () => {\n try {\n const qc = getQueryClient();\n const results = await Promise.allSettled(\n keysToInvalidate.map((key) => qc.invalidateQueries({ queryKey: key }))\n );\n const rejected = results.filter((result) => result.status === \"rejected\");\n if (rejected.length > 0) {\n console.error(\"[SDK][Wallet][useClaimRewards] delayed invalidation rejected\", {\n username,\n rejectedCount: rejected.length,\n rejected\n });\n }\n } catch (error) {\n console.error(\"[SDK][Wallet][useClaimRewards] delayed invalidation failed\", {\n username,\n error\n });\n } finally {\n pendingInvalidationTimers.delete(timerKey);\n }\n }, CLAIM_REWARDS_INVALIDATION_DELAY_MS);\n\n pendingInvalidationTimers.set(timerKey, timer);\n },\n auth,\n 'posting',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-claim-rewards.ts"],"names":["CLAIM_REWARDS_INVALIDATION_DELAY_MS","pendingInvalidationTimers","useClaimRewards","username","auth","broadcastMode","useBroadcastMutation","payload","buildClaimRewardBalanceOp","timerKey","keysToInvalidate","QueryKeys","existingTimer","timer","qc","getQueryClient","rejected","key","result","error"],"mappings":"uJAYA,IAAMA,EAAsC,GAAA,CACtCC,CAAAA,CAA4B,IAAI,GAAA,CAE/B,SAASC,CAAAA,CAAgBC,CAAAA,CAA8BC,GAAAA,CAC5DC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,eAAe,EAC1BH,CAAAA,CACCI,CAAAA,EAAY,CACXC,CAAAA,CAA0BL,EAAWI,CAAAA,CAAQ,UAAA,CAAYA,CAAAA,CAAQ,SAAA,CAAWA,EAAQ,WAAW,CACjG,CAAA,CACA,IAAM,CACJ,IAAME,CAAAA,CAAWN,GAAY,eAAA,CACvBO,CAAAA,CAAmB,CACvBC,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKR,CAAQ,EAChC,CAAC,gBAAA,CAAkB,YAAA,CAAcA,CAAQ,EACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CAAA,CACtCQ,CAAAA,CAAU,OAAO,eAAA,CAAgBR,CAAS,EAC1CQ,CAAAA,CAAU,MAAA,CAAO,cAAA,CAAeR,CAAS,EACzCQ,CAAAA,CAAU,MAAA,CAAO,qBAAqBR,CAAS,CACjD,EAIMS,CAAAA,CAAgBX,CAAAA,CAA0B,GAAA,CAAIQ,CAAQ,EACxDG,CAAAA,GACF,YAAA,CAAaA,CAAa,CAAA,CAC1BX,CAAAA,CAA0B,OAAOQ,CAAQ,CAAA,CAAA,CAG3C,IAAMI,CAAAA,CAAQ,WAAW,SAAY,CACnC,GAAI,CACF,IAAMC,CAAAA,CAAKC,GAAAA,EAAe,CAIpBC,CAAAA,CAAAA,CAHU,MAAM,OAAA,CAAQ,UAAA,CAC5BN,EAAiB,GAAA,CAAKO,CAAAA,EAAQH,EAAG,iBAAA,CAAkB,CAAE,QAAA,CAAUG,CAAI,CAAC,CAAC,CACvE,GACyB,MAAA,CAAQC,CAAAA,EAAWA,EAAO,MAAA,GAAW,UAAU,CAAA,CACpEF,CAAAA,CAAS,OAAS,CAAA,EACpB,OAAA,CAAQ,MAAM,8DAAA,CAAgE,CAC5E,SAAAb,CAAAA,CACA,aAAA,CAAea,CAAAA,CAAS,MAAA,CACxB,SAAAA,CACF,CAAC,EAEL,CAAA,MAASG,EAAO,CACd,OAAA,CAAQ,KAAA,CAAM,4DAAA,CAA8D,CAC1E,QAAA,CAAAhB,CAAAA,CACA,MAAAgB,CACF,CAAC,EACH,CAAA,OAAE,CACAlB,CAAAA,CAA0B,MAAA,CAAOQ,CAAQ,EAC3C,CACF,EAAGT,CAAmC,CAAA,CAEtCC,EAA0B,GAAA,CAAIQ,CAAAA,CAAUI,CAAK,EAC/C,EACAT,GAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-7OD25PBQ.js","sourcesContent":["import { useBroadcastMutation } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys, getQueryClient } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildClaimRewardBalanceOp } from \"@/modules/operations/builders\";\n\nexport interface ClaimRewardsPayload {\n rewardHive: string;\n rewardHbd: string;\n rewardVests: string;\n}\n\nconst CLAIM_REWARDS_INVALIDATION_DELAY_MS = 5000;\nconst pendingInvalidationTimers = new Map<string, ReturnType<typeof setTimeout>>();\n\nexport function useClaimRewards(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<ClaimRewardsPayload>(\n [\"wallet\", \"claim-rewards\"],\n username,\n (payload) => [\n buildClaimRewardBalanceOp(username!, payload.rewardHive, payload.rewardHbd, payload.rewardVests)\n ],\n () => {\n const timerKey = username ?? \"__anonymous__\";\n const keysToInvalidate = [\n QueryKeys.accounts.full(username),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username],\n QueryKeys.assets.hiveGeneralInfo(username!),\n QueryKeys.assets.hbdGeneralInfo(username!),\n QueryKeys.assets.hivePowerGeneralInfo(username!),\n ];\n\n // Delay invalidation to allow blockchain to propagate the transaction.\n // Immediate invalidation would fetch stale (pre-confirmation) data.\n const existingTimer = pendingInvalidationTimers.get(timerKey);\n if (existingTimer) {\n clearTimeout(existingTimer);\n pendingInvalidationTimers.delete(timerKey);\n }\n\n const timer = setTimeout(async () => {\n try {\n const qc = getQueryClient();\n const results = await Promise.allSettled(\n keysToInvalidate.map((key) => qc.invalidateQueries({ queryKey: key }))\n );\n const rejected = results.filter((result) => result.status === \"rejected\");\n if (rejected.length > 0) {\n console.error(\"[SDK][Wallet][useClaimRewards] delayed invalidation rejected\", {\n username,\n rejectedCount: rejected.length,\n rejected\n });\n }\n } catch (error) {\n console.error(\"[SDK][Wallet][useClaimRewards] delayed invalidation failed\", {\n username,\n error\n });\n } finally {\n pendingInvalidationTimers.delete(timerKey);\n }\n }, CLAIM_REWARDS_INVALIDATION_DELAY_MS);\n\n pendingInvalidationTimers.set(timerKey, timer);\n },\n auth,\n 'posting',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function u(t,r,i){return b(["wallet","transfer-engine-token"],t,o=>{let e=JSON.stringify({contractName:"tokens",contractAction:"transfer",contractPayload:{symbol:o.symbol,to:o.to,quantity:o.quantity,memo:o.memo}});return [["custom_json",{required_auths:[t],required_posting_auths:[],id:"ssc-mainnet-hive",json:e}]]},async(o,e)=>{await b$1(r?.adapter,i,[a.accounts.full(t),a.accounts.full(e.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},r,"active",{broadcastMode:i})}export{u as a};//# sourceMappingURL=chunk-H6FI5RUB.js.map
2
- //# sourceMappingURL=chunk-H6FI5RUB.js.map
1
+ import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function u(t,r,i){return b(["wallet","transfer-engine-token"],t,o=>{let e=JSON.stringify({contractName:"tokens",contractAction:"transfer",contractPayload:{symbol:o.symbol,to:o.to,quantity:o.quantity,memo:o.memo}});return [["custom_json",{required_auths:[t],required_posting_auths:[],id:"ssc-mainnet-hive",json:e}]]},async(o,e)=>{await b$1(r?.adapter,i,[a.accounts.full(t),a.accounts.full(e.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},r,"active",{broadcastMode:i})}export{u as a};//# sourceMappingURL=chunk-7Q3WCU66.js.map
2
+ //# sourceMappingURL=chunk-7Q3WCU66.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-transfer-engine-token.ts"],"names":["useTransferEngineToken","username","auth","broadcastMode","useBroadcastMutation","payload","json","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"mHAaO,SAASA,CAAAA,CAAuBC,EAA8BC,CAAAA,CACnEC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,uBAAuB,CAAA,CAClCH,EACCI,CAAAA,EAAY,CACX,IAAMC,CAAAA,CAAO,IAAA,CAAK,UAAU,CAC1B,YAAA,CAAc,QAAA,CACd,cAAA,CAAgB,UAAA,CAChB,eAAA,CAAiB,CACf,MAAA,CAAQD,CAAAA,CAAQ,OAChB,EAAA,CAAIA,CAAAA,CAAQ,GACZ,QAAA,CAAUA,CAAAA,CAAQ,QAAA,CAClB,IAAA,CAAMA,CAAAA,CAAQ,IAChB,CACF,CAAC,CAAA,CACD,OAAO,CAAC,CAAC,cAAe,CACtB,cAAA,CAAgB,CAACJ,CAAS,CAAA,CAC1B,sBAAA,CAAwB,EAAC,CACzB,EAAA,CAAI,mBACJ,IAAA,CAAAK,CACF,CAAC,CAAc,CACjB,CAAA,CACA,MAAOC,CAAAA,CAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBP,GAAM,OAAA,CAASC,CAAAA,CAAe,CAC3DO,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,SAAS,IAAA,CAAKF,CAAAA,CAAU,EAAE,CAAA,CACpC,CAAC,iBAAkB,YAAA,CAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,KAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,SACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-H6FI5RUB.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Operation } from \"../../../hive-tx\";\n\nexport interface TransferEngineTokenPayload {\n to: string;\n symbol: string;\n quantity: string;\n memo: string;\n}\n\nexport function useTransferEngineToken(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<TransferEngineTokenPayload>(\n [\"wallet\", \"transfer-engine-token\"],\n username,\n (payload) => {\n const json = JSON.stringify({\n contractName: \"tokens\",\n contractAction: \"transfer\",\n contractPayload: {\n symbol: payload.symbol,\n to: payload.to,\n quantity: payload.quantity,\n memo: payload.memo\n }\n });\n return [[\"custom_json\", {\n required_auths: [username!],\n required_posting_auths: [],\n id: \"ssc-mainnet-hive\",\n json,\n }] as Operation];\n },\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-transfer-engine-token.ts"],"names":["useTransferEngineToken","username","auth","broadcastMode","useBroadcastMutation","payload","json","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"mHAaO,SAASA,CAAAA,CAAuBC,EAA8BC,CAAAA,CACnEC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,uBAAuB,CAAA,CAClCH,EACCI,CAAAA,EAAY,CACX,IAAMC,CAAAA,CAAO,IAAA,CAAK,UAAU,CAC1B,YAAA,CAAc,QAAA,CACd,cAAA,CAAgB,UAAA,CAChB,eAAA,CAAiB,CACf,MAAA,CAAQD,CAAAA,CAAQ,OAChB,EAAA,CAAIA,CAAAA,CAAQ,GACZ,QAAA,CAAUA,CAAAA,CAAQ,QAAA,CAClB,IAAA,CAAMA,CAAAA,CAAQ,IAChB,CACF,CAAC,CAAA,CACD,OAAO,CAAC,CAAC,cAAe,CACtB,cAAA,CAAgB,CAACJ,CAAS,CAAA,CAC1B,sBAAA,CAAwB,EAAC,CACzB,EAAA,CAAI,mBACJ,IAAA,CAAAK,CACF,CAAC,CAAc,CACjB,CAAA,CACA,MAAOC,CAAAA,CAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBP,GAAM,OAAA,CAASC,CAAAA,CAAe,CAC3DO,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,SAAS,IAAA,CAAKF,CAAAA,CAAU,EAAE,CAAA,CACpC,CAAC,iBAAkB,YAAA,CAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,KAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,SACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-7Q3WCU66.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Operation } from \"../../../hive-tx\";\n\nexport interface TransferEngineTokenPayload {\n to: string;\n symbol: string;\n quantity: string;\n memo: string;\n}\n\nexport function useTransferEngineToken(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<TransferEngineTokenPayload>(\n [\"wallet\", \"transfer-engine-token\"],\n username,\n (payload) => {\n const json = JSON.stringify({\n contractName: \"tokens\",\n contractAction: \"transfer\",\n contractPayload: {\n symbol: payload.symbol,\n to: payload.to,\n quantity: payload.quantity,\n memo: payload.memo\n }\n });\n return [[\"custom_json\", {\n required_auths: [username!],\n required_posting_auths: [],\n id: \"ssc-mainnet-hive\",\n json,\n }] as Operation];\n },\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {f}from'./chunk-OBSTAXZB.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function c(s,o,y){return b(["communities","mutePost"],s,({community:i,author:t,permlink:r,notes:n,mute:e})=>[f(s,i,t,r,n,e)],async(i,t)=>{if(o?.adapter?.invalidateQueries){let r=[a.posts.entry(`/@${t.author}/${t.permlink}`),["community","single",t.community],{predicate:n=>{let e=n.queryKey;return Array.isArray(e)&&e[0]==="posts"&&e[1]==="posts-ranked"&&e[3]===t.community}}];await o.adapter.invalidateQueries(r);}},o,"posting",{broadcastMode:y??"sync"})}export{c as a};//# sourceMappingURL=chunk-BUHCN53D.js.map
2
- //# sourceMappingURL=chunk-BUHCN53D.js.map
1
+ import {f}from'./chunk-OBSTAXZB.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function c(s,o,y){return b(["communities","mutePost"],s,({community:i,author:t,permlink:r,notes:n,mute:e})=>[f(s,i,t,r,n,e)],async(i,t)=>{if(o?.adapter?.invalidateQueries){let r=[a.posts.entry(`/@${t.author}/${t.permlink}`),["community","single",t.community],{predicate:n=>{let e=n.queryKey;return Array.isArray(e)&&e[0]==="posts"&&e[1]==="posts-ranked"&&e[3]===t.community}}];await o.adapter.invalidateQueries(r);}},o,"posting",{broadcastMode:y??"sync"})}export{c as a};//# sourceMappingURL=chunk-7THEMMDR.js.map
2
+ //# sourceMappingURL=chunk-7THEMMDR.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/communities/mutations/use-mute-post.ts"],"names":["useMutePost","username","auth","broadcastMode","useBroadcastMutation","community","author","permlink","notes","mute","buildMutePostOp","_result","variables","queriesToInvalidate","QueryKeys","query","key"],"mappings":"4GA+EO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,aAAA,CAAe,UAAU,CAAA,CAC1BH,CAAAA,CACA,CAAC,CAAE,SAAA,CAAAI,CAAAA,CAAW,MAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAAC,EAAU,KAAA,CAAAC,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,GAAM,CAChDC,EAAgBT,CAAAA,CAAWI,CAAAA,CAAWC,CAAAA,CAAQC,CAAAA,CAAUC,CAAAA,CAAOC,CAAI,CACrE,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAEjC,GAAIV,GAAM,OAAA,EAAS,iBAAA,CAAmB,CACpC,IAAMW,CAAAA,CAA6B,CAEjCC,EAAU,KAAA,CAAM,KAAA,CAAM,CAAA,EAAA,EAAKF,CAAAA,CAAU,MAAM,CAAA,CAAA,EAAIA,EAAU,QAAQ,CAAA,CAAE,CAAA,CAEnE,CAAC,WAAA,CAAa,QAAA,CAAUA,EAAU,SAAS,CAAA,CAE3C,CACE,SAAA,CAAYG,CAAAA,EAAe,CACzB,IAAMC,CAAAA,CAAMD,CAAAA,CAAM,QAAA,CAClB,OACE,KAAA,CAAM,OAAA,CAAQC,CAAG,CAAA,EACjBA,CAAAA,CAAI,CAAC,CAAA,GAAM,OAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAM,cAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAMJ,CAAAA,CAAU,SAEzB,CACF,CACF,CAAA,CACA,MAAMV,CAAAA,CAAK,OAAA,CAAQ,kBAAkBW,CAAmB,EAC1D,CACF,CAAA,CACAX,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,MAAO,CAC3C,CACF","file":"chunk-BUHCN53D.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildMutePostOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for muting/unmuting a post in a community.\n */\nexport interface MutePostPayload {\n /** Community name (e.g., \"hive-123456\") */\n community: string;\n /** Post author */\n author: string;\n /** Post permlink */\n permlink: string;\n /** Mute reason/notes (required even for unmute) */\n notes: string;\n /** True to mute, false to unmute */\n mute: boolean;\n}\n\n/**\n * React Query mutation hook for muting/unmuting posts in a community.\n *\n * This mutation broadcasts a custom_json operation to mute (or unmute)\n * a post within a community. Only community moderators/admins can mute posts.\n *\n * @param username - The username performing the mute (required for broadcast, must have permission)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates community posts cache to hide muted content\n * - Invalidates post cache to update mute status\n * - Invalidates feed cache to remove muted posts from feeds\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"community\"\n * - Action: [\"mutePost\", {\"community\": \"hive-123456\", \"account\": \"author\", \"permlink\": \"post\", \"notes\": \"reason\"}]\n * - Action (unmute): [\"unmutePost\", {\"community\": \"hive-123456\", \"account\": \"author\", \"permlink\": \"post\", \"notes\": \"reason\"}]\n * - Authority: Posting key\n *\n * **Mute vs Unmute:**\n * - mute: true - Mutes the post (hides from community feed)\n * - mute: false - Unmutes the post (restores to community feed)\n *\n * **Permission:**\n * - Only community moderators and admins can mute/unmute posts\n * - Attempting to mute without permission will fail with an error\n *\n * @example\n * ```typescript\n * const mutePostMutation = useMutePost(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Mute a post\n * mutePostMutation.mutate({\n * community: 'hive-123456',\n * author: 'alice',\n * permlink: 'my-post',\n * notes: 'Violates community guidelines',\n * mute: true\n * });\n *\n * // Unmute a post\n * mutePostMutation.mutate({\n * community: 'hive-123456',\n * author: 'alice',\n * permlink: 'my-post',\n * notes: 'Resolved after editing',\n * mute: false\n * });\n * ```\n */\nexport function useMutePost(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<MutePostPayload>(\n [\"communities\", \"mutePost\"],\n username,\n ({ community, author, permlink, notes, mute }) => [\n buildMutePostOp(username!, community, author, permlink, notes, mute)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n const queriesToInvalidate: any[] = [\n // Invalidate specific post cache to update mute status\n QueryKeys.posts.entry(`/@${variables.author}/${variables.permlink}`),\n // Invalidate community data\n [\"community\", \"single\", variables.community],\n // Invalidate community feed/posts (matches all sort orders, limits, observers)\n {\n predicate: (query: any) => {\n const key = query.queryKey;\n return (\n Array.isArray(key) &&\n key[0] === \"posts\" &&\n key[1] === \"posts-ranked\" &&\n key[3] === variables.community\n );\n }\n }\n ];\n await auth.adapter.invalidateQueries(queriesToInvalidate);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'sync' }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/communities/mutations/use-mute-post.ts"],"names":["useMutePost","username","auth","broadcastMode","useBroadcastMutation","community","author","permlink","notes","mute","buildMutePostOp","_result","variables","queriesToInvalidate","QueryKeys","query","key"],"mappings":"4GA+EO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,aAAA,CAAe,UAAU,CAAA,CAC1BH,CAAAA,CACA,CAAC,CAAE,SAAA,CAAAI,CAAAA,CAAW,MAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAAC,EAAU,KAAA,CAAAC,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,GAAM,CAChDC,EAAgBT,CAAAA,CAAWI,CAAAA,CAAWC,CAAAA,CAAQC,CAAAA,CAAUC,CAAAA,CAAOC,CAAI,CACrE,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAEjC,GAAIV,GAAM,OAAA,EAAS,iBAAA,CAAmB,CACpC,IAAMW,CAAAA,CAA6B,CAEjCC,EAAU,KAAA,CAAM,KAAA,CAAM,CAAA,EAAA,EAAKF,CAAAA,CAAU,MAAM,CAAA,CAAA,EAAIA,EAAU,QAAQ,CAAA,CAAE,CAAA,CAEnE,CAAC,WAAA,CAAa,QAAA,CAAUA,EAAU,SAAS,CAAA,CAE3C,CACE,SAAA,CAAYG,CAAAA,EAAe,CACzB,IAAMC,CAAAA,CAAMD,CAAAA,CAAM,QAAA,CAClB,OACE,KAAA,CAAM,OAAA,CAAQC,CAAG,CAAA,EACjBA,CAAAA,CAAI,CAAC,CAAA,GAAM,OAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAM,cAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAMJ,CAAAA,CAAU,SAEzB,CACF,CACF,CAAA,CACA,MAAMV,CAAAA,CAAK,OAAA,CAAQ,kBAAkBW,CAAmB,EAC1D,CACF,CAAA,CACAX,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,MAAO,CAC3C,CACF","file":"chunk-7THEMMDR.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildMutePostOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for muting/unmuting a post in a community.\n */\nexport interface MutePostPayload {\n /** Community name (e.g., \"hive-123456\") */\n community: string;\n /** Post author */\n author: string;\n /** Post permlink */\n permlink: string;\n /** Mute reason/notes (required even for unmute) */\n notes: string;\n /** True to mute, false to unmute */\n mute: boolean;\n}\n\n/**\n * React Query mutation hook for muting/unmuting posts in a community.\n *\n * This mutation broadcasts a custom_json operation to mute (or unmute)\n * a post within a community. Only community moderators/admins can mute posts.\n *\n * @param username - The username performing the mute (required for broadcast, must have permission)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates community posts cache to hide muted content\n * - Invalidates post cache to update mute status\n * - Invalidates feed cache to remove muted posts from feeds\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"community\"\n * - Action: [\"mutePost\", {\"community\": \"hive-123456\", \"account\": \"author\", \"permlink\": \"post\", \"notes\": \"reason\"}]\n * - Action (unmute): [\"unmutePost\", {\"community\": \"hive-123456\", \"account\": \"author\", \"permlink\": \"post\", \"notes\": \"reason\"}]\n * - Authority: Posting key\n *\n * **Mute vs Unmute:**\n * - mute: true - Mutes the post (hides from community feed)\n * - mute: false - Unmutes the post (restores to community feed)\n *\n * **Permission:**\n * - Only community moderators and admins can mute/unmute posts\n * - Attempting to mute without permission will fail with an error\n *\n * @example\n * ```typescript\n * const mutePostMutation = useMutePost(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Mute a post\n * mutePostMutation.mutate({\n * community: 'hive-123456',\n * author: 'alice',\n * permlink: 'my-post',\n * notes: 'Violates community guidelines',\n * mute: true\n * });\n *\n * // Unmute a post\n * mutePostMutation.mutate({\n * community: 'hive-123456',\n * author: 'alice',\n * permlink: 'my-post',\n * notes: 'Resolved after editing',\n * mute: false\n * });\n * ```\n */\nexport function useMutePost(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<MutePostPayload>(\n [\"communities\", \"mutePost\"],\n username,\n ({ community, author, permlink, notes, mute }) => [\n buildMutePostOp(username!, community, author, permlink, notes, mute)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n const queriesToInvalidate: any[] = [\n // Invalidate specific post cache to update mute status\n QueryKeys.posts.entry(`/@${variables.author}/${variables.permlink}`),\n // Invalidate community data\n [\"community\", \"single\", variables.community],\n // Invalidate community feed/posts (matches all sort orders, limits, observers)\n {\n predicate: (query: any) => {\n const key = query.queryKey;\n return (\n Array.isArray(key) &&\n key[0] === \"posts\" &&\n key[1] === \"posts-ranked\" &&\n key[3] === variables.community\n );\n }\n }\n ];\n await auth.adapter.invalidateQueries(queriesToInvalidate);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'sync' }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {m,l}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function f(t,e,r){return b(["wallet","convert"],t,o=>[o.collateralized?m(t,o.amount,o.requestId):l(t,o.amount,o.requestId)],async()=>{await b$1(e?.adapter,r,[a.accounts.full(t),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},e,"active",{broadcastMode:r})}export{f as a};//# sourceMappingURL=chunk-UBIHDHZY.js.map
2
- //# sourceMappingURL=chunk-UBIHDHZY.js.map
1
+ import {m,l}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function f(t,e,r){return b(["wallet","convert"],t,o=>[o.collateralized?m(t,o.amount,o.requestId):l(t,o.amount,o.requestId)],async()=>{await b$1(e?.adapter,r,[a.accounts.full(t),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},e,"active",{broadcastMode:r})}export{f as a};//# sourceMappingURL=chunk-A4RVVIA6.js.map
2
+ //# sourceMappingURL=chunk-A4RVVIA6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-convert.ts"],"names":["useConvert","username","auth","broadcastMode","useBroadcastMutation","payload","buildCollateralizedConvertOp","buildConvertOp","invalidateAfterBroadcast","QueryKeys"],"mappings":"yJAYO,SAASA,CAAAA,CAAWC,CAAAA,CAA8BC,CAAAA,CACvDC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,SAAS,CAAA,CACpBH,CAAAA,CACCI,GAAY,CACXA,CAAAA,CAAQ,cAAA,CACJC,CAAAA,CAA6BL,CAAAA,CAAWI,CAAAA,CAAQ,MAAA,CAAQA,CAAAA,CAAQ,SAAS,CAAA,CACzEE,CAAAA,CAAeN,CAAAA,CAAWI,CAAAA,CAAQ,MAAA,CAAQA,CAAAA,CAAQ,SAAS,CACjE,CAAA,CACA,SAAY,CACV,MAAMG,GAAAA,CAAyBN,CAAAA,EAAM,OAAA,CAASC,CAAAA,CAAe,CAC3DM,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKR,CAAQ,CAAA,CAChC,CAAC,gBAAA,CAAkB,aAAcA,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-UBIHDHZY.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildConvertOp, buildCollateralizedConvertOp } from \"@/modules/operations/builders\";\n\nexport interface ConvertPayload {\n amount: string;\n requestId: number;\n collateralized?: boolean;\n}\n\nexport function useConvert(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<ConvertPayload>(\n [\"wallet\", \"convert\"],\n username,\n (payload) => [\n payload.collateralized\n ? buildCollateralizedConvertOp(username!, payload.amount, payload.requestId)\n : buildConvertOp(username!, payload.amount, payload.requestId)\n ],\n async () => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-convert.ts"],"names":["useConvert","username","auth","broadcastMode","useBroadcastMutation","payload","buildCollateralizedConvertOp","buildConvertOp","invalidateAfterBroadcast","QueryKeys"],"mappings":"yJAYO,SAASA,CAAAA,CAAWC,CAAAA,CAA8BC,CAAAA,CACvDC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,SAAS,CAAA,CACpBH,CAAAA,CACCI,GAAY,CACXA,CAAAA,CAAQ,cAAA,CACJC,CAAAA,CAA6BL,CAAAA,CAAWI,CAAAA,CAAQ,MAAA,CAAQA,CAAAA,CAAQ,SAAS,CAAA,CACzEE,CAAAA,CAAeN,CAAAA,CAAWI,CAAAA,CAAQ,MAAA,CAAQA,CAAAA,CAAQ,SAAS,CACjE,CAAA,CACA,SAAY,CACV,MAAMG,GAAAA,CAAyBN,CAAAA,EAAM,OAAA,CAASC,CAAAA,CAAe,CAC3DM,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKR,CAAQ,CAAA,CAChC,CAAC,gBAAA,CAAkB,aAAcA,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-A4RVVIA6.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildConvertOp, buildCollateralizedConvertOp } from \"@/modules/operations/builders\";\n\nexport interface ConvertPayload {\n amount: string;\n requestId: number;\n collateralized?: boolean;\n}\n\nexport function useConvert(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<ConvertPayload>(\n [\"wallet\", \"convert\"],\n username,\n (payload) => [\n payload.collateralized\n ? buildCollateralizedConvertOp(username!, payload.amount, payload.requestId)\n : buildConvertOp(username!, payload.amount, payload.requestId)\n ],\n async () => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {c}from'./chunk-4COFIDSX.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function u(e,r,p){return b(["ecency","promote"],e,({author:i,permlink:t,duration:d})=>[c(e,i,t,d)],async(i,t)=>{r?.adapter?.invalidateQueries&&await r.adapter.invalidateQueries([[...a.posts._promotedPrefix],[...a.points._prefix(e)],a.posts.entry(`/@${t.author}/${t.permlink}`)]);},r,"active",{broadcastMode:p})}export{u as a};//# sourceMappingURL=chunk-2TIZBQHI.js.map
2
- //# sourceMappingURL=chunk-2TIZBQHI.js.map
1
+ import {c}from'./chunk-4COFIDSX.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function u(e,r,p){return b(["ecency","promote"],e,({author:i,permlink:t,duration:d})=>[c(e,i,t,d)],async(i,t)=>{r?.adapter?.invalidateQueries&&await r.adapter.invalidateQueries([[...a.posts._promotedPrefix],[...a.points._prefix(e)],a.posts.entry(`/@${t.author}/${t.permlink}`)]);},r,"active",{broadcastMode:p})}export{u as a};//# sourceMappingURL=chunk-AOY46Q5S.js.map
2
+ //# sourceMappingURL=chunk-AOY46Q5S.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/posts/mutations/use-promote.ts"],"names":["usePromote","username","auth","broadcastMode","useBroadcastMutation","author","permlink","duration","buildPromoteOp","_result","variables","QueryKeys"],"mappings":"4GA4DO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,SAAS,CAAA,CACpBH,CAAAA,CACA,CAAC,CAAE,OAAAI,CAAAA,CAAQ,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAS,CAAA,GAAM,CAClCC,CAAAA,CAAeP,CAAAA,CAAWI,EAAQC,CAAAA,CAAUC,CAAQ,CACtD,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAE7BR,CAAAA,EAAM,SAAS,iBAAA,EACjB,MAAMA,CAAAA,CAAK,OAAA,CAAQ,kBAAkB,CAEnC,CAAC,GAAGS,CAAAA,CAAU,MAAM,eAAe,CAAA,CAEnC,CAAC,GAAGA,EAAU,MAAA,CAAO,OAAA,CAAQV,CAAS,CAAC,EAEvCU,CAAAA,CAAU,KAAA,CAAM,KAAA,CAAM,CAAA,EAAA,EAAKD,EAAU,MAAM,CAAA,CAAA,EAAIA,CAAAA,CAAU,QAAQ,EAAE,CACrE,CAAC,EAEL,CAAA,CACAR,EACA,QAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-2TIZBQHI.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildPromoteOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for promoting a post using Ecency Points.\n */\nexport interface PromotePayload {\n /** Post author */\n author: string;\n /** Post permlink */\n permlink: string;\n /** Promotion duration in days */\n duration: number;\n}\n\n/**\n * React Query mutation hook for promoting posts.\n *\n * This mutation broadcasts a custom_json operation to promote a post\n * using Ecency Points. The post will appear in promoted feeds for the\n * specified duration.\n *\n * @param username - The username promoting the post (required for broadcast, deducts points from this user)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates promoted posts cache to show newly promoted content\n * - Invalidates user points balance\n * - Invalidates post cache to update promotion status\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"ecency_promote\"\n * - JSON: {\"user\": \"username\", \"author\": \"postauthor\", \"permlink\": \"postpermlink\", \"duration\": 7}\n * - Authority: Active key (required for point spending)\n *\n * **Cost:**\n * - Costs Ecency Points based on duration\n * - User must have sufficient points balance\n *\n * @example\n * ```typescript\n * const promoteMutation = usePromote(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Promote a post for 7 days\n * promoteMutation.mutate({\n * author: 'alice',\n * permlink: 'my-great-post',\n * duration: 7\n * });\n * ```\n */\nexport function usePromote(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<PromotePayload>(\n [\"ecency\", \"promote\"],\n username,\n ({ author, permlink, duration }) => [\n buildPromoteOp(username!, author, permlink, duration)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n // Invalidate promoted posts feed\n [...QueryKeys.posts._promotedPrefix],\n // Invalidate user points balance\n [...QueryKeys.points._prefix(username!)],\n // Invalidate specific post cache to update promotion status\n QueryKeys.posts.entry(`/@${variables.author}/${variables.permlink}`),\n ]);\n }\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/posts/mutations/use-promote.ts"],"names":["usePromote","username","auth","broadcastMode","useBroadcastMutation","author","permlink","duration","buildPromoteOp","_result","variables","QueryKeys"],"mappings":"4GA4DO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,SAAS,CAAA,CACpBH,CAAAA,CACA,CAAC,CAAE,OAAAI,CAAAA,CAAQ,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAS,CAAA,GAAM,CAClCC,CAAAA,CAAeP,CAAAA,CAAWI,EAAQC,CAAAA,CAAUC,CAAQ,CACtD,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAE7BR,CAAAA,EAAM,SAAS,iBAAA,EACjB,MAAMA,CAAAA,CAAK,OAAA,CAAQ,kBAAkB,CAEnC,CAAC,GAAGS,CAAAA,CAAU,MAAM,eAAe,CAAA,CAEnC,CAAC,GAAGA,EAAU,MAAA,CAAO,OAAA,CAAQV,CAAS,CAAC,EAEvCU,CAAAA,CAAU,KAAA,CAAM,KAAA,CAAM,CAAA,EAAA,EAAKD,EAAU,MAAM,CAAA,CAAA,EAAIA,CAAAA,CAAU,QAAQ,EAAE,CACrE,CAAC,EAEL,CAAA,CACAR,EACA,QAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-AOY46Q5S.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildPromoteOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for promoting a post using Ecency Points.\n */\nexport interface PromotePayload {\n /** Post author */\n author: string;\n /** Post permlink */\n permlink: string;\n /** Promotion duration in days */\n duration: number;\n}\n\n/**\n * React Query mutation hook for promoting posts.\n *\n * This mutation broadcasts a custom_json operation to promote a post\n * using Ecency Points. The post will appear in promoted feeds for the\n * specified duration.\n *\n * @param username - The username promoting the post (required for broadcast, deducts points from this user)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates promoted posts cache to show newly promoted content\n * - Invalidates user points balance\n * - Invalidates post cache to update promotion status\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"ecency_promote\"\n * - JSON: {\"user\": \"username\", \"author\": \"postauthor\", \"permlink\": \"postpermlink\", \"duration\": 7}\n * - Authority: Active key (required for point spending)\n *\n * **Cost:**\n * - Costs Ecency Points based on duration\n * - User must have sufficient points balance\n *\n * @example\n * ```typescript\n * const promoteMutation = usePromote(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Promote a post for 7 days\n * promoteMutation.mutate({\n * author: 'alice',\n * permlink: 'my-great-post',\n * duration: 7\n * });\n * ```\n */\nexport function usePromote(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<PromotePayload>(\n [\"ecency\", \"promote\"],\n username,\n ({ author, permlink, duration }) => [\n buildPromoteOp(username!, author, permlink, duration)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n // Invalidate promoted posts feed\n [...QueryKeys.posts._promotedPrefix],\n // Invalidate user points balance\n [...QueryKeys.points._prefix(username!)],\n // Invalidate specific post cache to update promotion status\n QueryKeys.posts.entry(`/@${variables.author}/${variables.permlink}`),\n ]);\n }\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b as b$1,c}from'./chunk-EOSE4FQA.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function f(i,o,d){return b(["posts","cross-post"],i,t=>{let r=[];if(r.push(b$1(t.author,t.permlink,"",t.parentPermlink,t.title,t.body,t.jsonMetadata)),t.options){let{maxAcceptedPayout:n="1000000.000 HBD",percentHbd:s=1e4,allowVotes:e=true,allowCurationRewards:m=true}=t.options;r.push(c(t.author,t.permlink,n,s,e,m,[]));}return r},async(t,r)=>{if(o?.adapter?.invalidateQueries){let n=[a.accounts.full(i),{predicate:s=>{let e=s.queryKey;return Array.isArray(e)&&e[0]==="posts"&&e[1]==="posts-ranked"&&e[3]===r.parentPermlink}}];await o.adapter.invalidateQueries(n);}},o,"posting",{broadcastMode:d??"async"})}export{f as a};//# sourceMappingURL=chunk-EJCGBTQE.js.map
2
- //# sourceMappingURL=chunk-EJCGBTQE.js.map
1
+ import {b as b$1,c}from'./chunk-EOSE4FQA.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function f(i,o,d){return b(["posts","cross-post"],i,t=>{let r=[];if(r.push(b$1(t.author,t.permlink,"",t.parentPermlink,t.title,t.body,t.jsonMetadata)),t.options){let{maxAcceptedPayout:n="1000000.000 HBD",percentHbd:s=1e4,allowVotes:e=true,allowCurationRewards:m=true}=t.options;r.push(c(t.author,t.permlink,n,s,e,m,[]));}return r},async(t,r)=>{if(o?.adapter?.invalidateQueries){let n=[a.accounts.full(i),{predicate:s=>{let e=s.queryKey;return Array.isArray(e)&&e[0]==="posts"&&e[1]==="posts-ranked"&&e[3]===r.parentPermlink}}];await o.adapter.invalidateQueries(n);}},o,"posting",{broadcastMode:d??"async"})}export{f as a};//# sourceMappingURL=chunk-AW5VCJIZ.js.map
2
+ //# sourceMappingURL=chunk-AW5VCJIZ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/posts/mutations/use-cross-post.ts"],"names":["useCrossPost","username","auth","broadcastMode","useBroadcastMutation","payload","operations","buildCommentOp","maxAcceptedPayout","percentHbd","allowVotes","allowCurationRewards","buildCommentOptionsOp","_result","variables","queriesToInvalidate","QueryKeys","query","key"],"mappings":"qHAyFO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,OAAA,CAAS,YAAY,CAAA,CACtBH,CAAAA,CACCI,GAAY,CACX,IAAMC,CAAAA,CAA0B,EAAC,CAgBjC,GAbAA,CAAAA,CAAW,IAAA,CACTC,IACEF,CAAAA,CAAQ,MAAA,CACRA,CAAAA,CAAQ,QAAA,CACR,EAAA,CACAA,CAAAA,CAAQ,cAAA,CACRA,CAAAA,CAAQ,MACRA,CAAAA,CAAQ,IAAA,CACRA,CAAAA,CAAQ,YACV,CACF,CAAA,CAGIA,CAAAA,CAAQ,OAAA,CAAS,CACnB,GAAM,CACJ,iBAAA,CAAAG,CAAAA,CAAoB,iBAAA,CACpB,UAAA,CAAAC,CAAAA,CAAa,IACb,UAAA,CAAAC,CAAAA,CAAa,IAAA,CACb,oBAAA,CAAAC,CAAAA,CAAuB,IACzB,CAAA,CAAIN,CAAAA,CAAQ,QAEZC,CAAAA,CAAW,IAAA,CACTM,CAAAA,CACEP,CAAAA,CAAQ,MAAA,CACRA,CAAAA,CAAQ,QAAA,CACRG,CAAAA,CACAC,EACAC,CAAAA,CACAC,CAAAA,CACA,EACF,CACF,EACF,CAEA,OAAOL,CACT,CAAA,CACA,MAAOO,CAAAA,CAAcC,CAAAA,GAAc,CAEjC,GAAIZ,CAAAA,EAAM,SAAS,iBAAA,CAAmB,CACpC,IAAMa,CAAAA,CAA6B,CACjCC,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKf,CAAQ,CAAA,CAEhC,CACE,SAAA,CAAYgB,CAAAA,EAAe,CACzB,IAAMC,CAAAA,CAAMD,CAAAA,CAAM,SAClB,OACE,KAAA,CAAM,OAAA,CAAQC,CAAG,CAAA,EACjBA,CAAAA,CAAI,CAAC,CAAA,GAAM,SACXA,CAAAA,CAAI,CAAC,CAAA,GAAM,cAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAMJ,CAAAA,CAAU,cAEzB,CACF,CACF,CAAA,CACA,MAAMZ,CAAAA,CAAK,OAAA,CAAQ,iBAAA,CAAkBa,CAAmB,EAC1D,CACF,CAAA,CACAb,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,OAAQ,CAC5C,CACF","file":"chunk-EJCGBTQE.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildCommentOp, buildCommentOptionsOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Operation } from \"../../../hive-tx\";\n\n/**\n * Payload for creating a cross-post.\n */\nexport interface CrossPostPayload {\n /** Author of the cross-post (current user) */\n author: string;\n /** Permlink of the cross-post (usually: original-permlink-community-id) */\n permlink: string;\n /** Community ID to cross-post to (used as parent_permlink) */\n parentPermlink: string;\n /** Title of the cross-post (same as original) */\n title: string;\n /** Body of the cross-post (includes reference to original) */\n body: string;\n /** JSON metadata (must include original_author, original_permlink, tags, app) */\n jsonMetadata: Record<string, any>;\n /** Optional: Comment options (beneficiaries, rewards) */\n options?: {\n /** Maximum accepted payout (e.g., \"0.000 HBD\" for declined payout) */\n maxAcceptedPayout?: string;\n /** Percent of payout in HBD (10000 = 100%) */\n percentHbd?: number;\n /** Allow votes on this content */\n allowVotes?: boolean;\n /** Allow curation rewards */\n allowCurationRewards?: boolean;\n };\n}\n\n/**\n * React Query mutation hook for creating cross-posts.\n *\n * A cross-post is a special type of post that references an original post\n * and publishes it to a different community.\n *\n * @param username - The username creating the cross-post (required for broadcast)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates feed/blog caches to show the new cross-post\n *\n * **Operations:**\n * - Always includes a comment operation (with empty parent_author for top-level post)\n * - Optionally includes comment_options operation for rewards/beneficiaries\n *\n * **Metadata Requirements:**\n * The jsonMetadata must include:\n * - `original_author`: Author of the original post\n * - `original_permlink`: Permlink of the original post\n * - `tags`: Tags for the cross-post (typically [\"cross-post\"])\n * - `app`: Application identifier (e.g., \"ecency/3.0.0-vision\")\n *\n * @example\n * ```typescript\n * const crossPostMutation = useCrossPost(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Create a cross-post\n * crossPostMutation.mutate({\n * author: 'alice',\n * permlink: 'great-post-hive-123456',\n * parentPermlink: 'hive-123456', // community ID\n * title: 'Great Post',\n * body: 'This is a cross post of [@bob/great-post](/technology/@bob/great-post) by @alice.<br><br>Check this out!',\n * jsonMetadata: {\n * app: 'ecency/3.0.0-vision',\n * tags: ['cross-post'],\n * original_author: 'bob',\n * original_permlink: 'great-post'\n * },\n * options: {\n * maxAcceptedPayout: '0.000 HBD',\n * allowCurationRewards: false\n * }\n * });\n * ```\n */\nexport function useCrossPost(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<CrossPostPayload>(\n [\"posts\", \"cross-post\"],\n username,\n (payload) => {\n const operations: Operation[] = [];\n\n // Main comment operation (empty parent_author for top-level post)\n operations.push(\n buildCommentOp(\n payload.author,\n payload.permlink,\n \"\", // empty parent_author for top-level post\n payload.parentPermlink, // community ID\n payload.title,\n payload.body,\n payload.jsonMetadata\n )\n );\n\n // Optional comment options operation\n if (payload.options) {\n const {\n maxAcceptedPayout = \"1000000.000 HBD\",\n percentHbd = 10000,\n allowVotes = true,\n allowCurationRewards = true,\n } = payload.options;\n\n operations.push(\n buildCommentOptionsOp(\n payload.author,\n payload.permlink,\n maxAcceptedPayout,\n percentHbd,\n allowVotes,\n allowCurationRewards,\n [] // No beneficiaries for cross-posts\n )\n );\n }\n\n return operations;\n },\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n const queriesToInvalidate: any[] = [\n QueryKeys.accounts.full(username),\n // Invalidate target community feed so cross-post appears\n {\n predicate: (query: any) => {\n const key = query.queryKey;\n return (\n Array.isArray(key) &&\n key[0] === \"posts\" &&\n key[1] === \"posts-ranked\" &&\n key[3] === variables.parentPermlink\n );\n }\n }\n ];\n await auth.adapter.invalidateQueries(queriesToInvalidate);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'async' }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/posts/mutations/use-cross-post.ts"],"names":["useCrossPost","username","auth","broadcastMode","useBroadcastMutation","payload","operations","buildCommentOp","maxAcceptedPayout","percentHbd","allowVotes","allowCurationRewards","buildCommentOptionsOp","_result","variables","queriesToInvalidate","QueryKeys","query","key"],"mappings":"qHAyFO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,OAAA,CAAS,YAAY,CAAA,CACtBH,CAAAA,CACCI,GAAY,CACX,IAAMC,CAAAA,CAA0B,EAAC,CAgBjC,GAbAA,CAAAA,CAAW,IAAA,CACTC,IACEF,CAAAA,CAAQ,MAAA,CACRA,CAAAA,CAAQ,QAAA,CACR,EAAA,CACAA,CAAAA,CAAQ,cAAA,CACRA,CAAAA,CAAQ,MACRA,CAAAA,CAAQ,IAAA,CACRA,CAAAA,CAAQ,YACV,CACF,CAAA,CAGIA,CAAAA,CAAQ,OAAA,CAAS,CACnB,GAAM,CACJ,iBAAA,CAAAG,CAAAA,CAAoB,iBAAA,CACpB,UAAA,CAAAC,CAAAA,CAAa,IACb,UAAA,CAAAC,CAAAA,CAAa,IAAA,CACb,oBAAA,CAAAC,CAAAA,CAAuB,IACzB,CAAA,CAAIN,CAAAA,CAAQ,QAEZC,CAAAA,CAAW,IAAA,CACTM,CAAAA,CACEP,CAAAA,CAAQ,MAAA,CACRA,CAAAA,CAAQ,QAAA,CACRG,CAAAA,CACAC,EACAC,CAAAA,CACAC,CAAAA,CACA,EACF,CACF,EACF,CAEA,OAAOL,CACT,CAAA,CACA,MAAOO,CAAAA,CAAcC,CAAAA,GAAc,CAEjC,GAAIZ,CAAAA,EAAM,SAAS,iBAAA,CAAmB,CACpC,IAAMa,CAAAA,CAA6B,CACjCC,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKf,CAAQ,CAAA,CAEhC,CACE,SAAA,CAAYgB,CAAAA,EAAe,CACzB,IAAMC,CAAAA,CAAMD,CAAAA,CAAM,SAClB,OACE,KAAA,CAAM,OAAA,CAAQC,CAAG,CAAA,EACjBA,CAAAA,CAAI,CAAC,CAAA,GAAM,SACXA,CAAAA,CAAI,CAAC,CAAA,GAAM,cAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAMJ,CAAAA,CAAU,cAEzB,CACF,CACF,CAAA,CACA,MAAMZ,CAAAA,CAAK,OAAA,CAAQ,iBAAA,CAAkBa,CAAmB,EAC1D,CACF,CAAA,CACAb,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,OAAQ,CAC5C,CACF","file":"chunk-AW5VCJIZ.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildCommentOp, buildCommentOptionsOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Operation } from \"../../../hive-tx\";\n\n/**\n * Payload for creating a cross-post.\n */\nexport interface CrossPostPayload {\n /** Author of the cross-post (current user) */\n author: string;\n /** Permlink of the cross-post (usually: original-permlink-community-id) */\n permlink: string;\n /** Community ID to cross-post to (used as parent_permlink) */\n parentPermlink: string;\n /** Title of the cross-post (same as original) */\n title: string;\n /** Body of the cross-post (includes reference to original) */\n body: string;\n /** JSON metadata (must include original_author, original_permlink, tags, app) */\n jsonMetadata: Record<string, any>;\n /** Optional: Comment options (beneficiaries, rewards) */\n options?: {\n /** Maximum accepted payout (e.g., \"0.000 HBD\" for declined payout) */\n maxAcceptedPayout?: string;\n /** Percent of payout in HBD (10000 = 100%) */\n percentHbd?: number;\n /** Allow votes on this content */\n allowVotes?: boolean;\n /** Allow curation rewards */\n allowCurationRewards?: boolean;\n };\n}\n\n/**\n * React Query mutation hook for creating cross-posts.\n *\n * A cross-post is a special type of post that references an original post\n * and publishes it to a different community.\n *\n * @param username - The username creating the cross-post (required for broadcast)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates feed/blog caches to show the new cross-post\n *\n * **Operations:**\n * - Always includes a comment operation (with empty parent_author for top-level post)\n * - Optionally includes comment_options operation for rewards/beneficiaries\n *\n * **Metadata Requirements:**\n * The jsonMetadata must include:\n * - `original_author`: Author of the original post\n * - `original_permlink`: Permlink of the original post\n * - `tags`: Tags for the cross-post (typically [\"cross-post\"])\n * - `app`: Application identifier (e.g., \"ecency/3.0.0-vision\")\n *\n * @example\n * ```typescript\n * const crossPostMutation = useCrossPost(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Create a cross-post\n * crossPostMutation.mutate({\n * author: 'alice',\n * permlink: 'great-post-hive-123456',\n * parentPermlink: 'hive-123456', // community ID\n * title: 'Great Post',\n * body: 'This is a cross post of [@bob/great-post](/technology/@bob/great-post) by @alice.<br><br>Check this out!',\n * jsonMetadata: {\n * app: 'ecency/3.0.0-vision',\n * tags: ['cross-post'],\n * original_author: 'bob',\n * original_permlink: 'great-post'\n * },\n * options: {\n * maxAcceptedPayout: '0.000 HBD',\n * allowCurationRewards: false\n * }\n * });\n * ```\n */\nexport function useCrossPost(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<CrossPostPayload>(\n [\"posts\", \"cross-post\"],\n username,\n (payload) => {\n const operations: Operation[] = [];\n\n // Main comment operation (empty parent_author for top-level post)\n operations.push(\n buildCommentOp(\n payload.author,\n payload.permlink,\n \"\", // empty parent_author for top-level post\n payload.parentPermlink, // community ID\n payload.title,\n payload.body,\n payload.jsonMetadata\n )\n );\n\n // Optional comment options operation\n if (payload.options) {\n const {\n maxAcceptedPayout = \"1000000.000 HBD\",\n percentHbd = 10000,\n allowVotes = true,\n allowCurationRewards = true,\n } = payload.options;\n\n operations.push(\n buildCommentOptionsOp(\n payload.author,\n payload.permlink,\n maxAcceptedPayout,\n percentHbd,\n allowVotes,\n allowCurationRewards,\n [] // No beneficiaries for cross-posts\n )\n );\n }\n\n return operations;\n },\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n const queriesToInvalidate: any[] = [\n QueryKeys.accounts.full(username),\n // Invalidate target community feed so cross-post appears\n {\n predicate: (query: any) => {\n const key = query.queryKey;\n return (\n Array.isArray(key) &&\n key[0] === \"posts\" &&\n key[1] === \"posts-ranked\" &&\n key[3] === variables.parentPermlink\n );\n }\n }\n ];\n await auth.adapter.invalidateQueries(queriesToInvalidate);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'async' }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {c}from'./chunk-UXF4JZOD.js';import {a}from'./chunk-CPEOHI6I.js';import f from'hivesigner';async function u(o,e,i,t){if(!o)throw new Error("[Core][Broadcast] Attempted to call broadcast API with anon user");let n={id:e,required_auths:[],required_posting_auths:[o],json:JSON.stringify(i)};if(t?.broadcast)return t.broadcast([["custom_json",n]],"posting");let a$1=t?.postingKey;if(a$1){let s=a.fromString(a$1);return c([["custom_json",n]],s)}let c$1=t?.accessToken;if(c$1)return (await new f.Client({accessToken:c$1}).customJson([],[o],e,JSON.stringify(i))).result;let r=t?.adapter;if(r){let s=[["custom_json",n]];if(t?.loginType==="keychain"&&r.broadcastWithKeychain)return r.broadcastWithKeychain(o,s,"posting");if(t?.loginType==="hiveauth"&&r.broadcastWithHiveAuth)return r.broadcastWithHiveAuth(o,s,"posting")}throw new Error("[SDK][Broadcast] \u2013 cannot broadcast w/o posting key or token")}export{u as a};//# sourceMappingURL=chunk-2JN4EIJE.js.map
2
- //# sourceMappingURL=chunk-2JN4EIJE.js.map
1
+ import {c}from'./chunk-XEB43J5Q.js';import {a}from'./chunk-CPEOHI6I.js';import f from'hivesigner';async function u(o,e,i,t){if(!o)throw new Error("[Core][Broadcast] Attempted to call broadcast API with anon user");let n={id:e,required_auths:[],required_posting_auths:[o],json:JSON.stringify(i)};if(t?.broadcast)return t.broadcast([["custom_json",n]],"posting");let a$1=t?.postingKey;if(a$1){let s=a.fromString(a$1);return c([["custom_json",n]],s)}let c$1=t?.accessToken;if(c$1)return (await new f.Client({accessToken:c$1}).customJson([],[o],e,JSON.stringify(i))).result;let r=t?.adapter;if(r){let s=[["custom_json",n]];if(t?.loginType==="keychain"&&r.broadcastWithKeychain)return r.broadcastWithKeychain(o,s,"posting");if(t?.loginType==="hiveauth"&&r.broadcastWithHiveAuth)return r.broadcastWithHiveAuth(o,s,"posting")}throw new Error("[SDK][Broadcast] \u2013 cannot broadcast w/o posting key or token")}export{u as a};//# sourceMappingURL=chunk-C5PSLR7Z.js.map
2
+ //# sourceMappingURL=chunk-C5PSLR7Z.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/core/mutations/broadcast-json.ts"],"names":["broadcastJson","username","id","payload","auth","jjson","postingKey","privateKey","PrivateKey","broadcastOperations","accessToken","hs","adapter","ops"],"mappings":"kGAKA,eAAsBA,CAAAA,CACpBC,EACAC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,GAAI,CAACH,CAAAA,CACH,MAAM,IAAI,MACR,kEACF,CAAA,CAEF,IAAMI,CAAAA,CAAQ,CACZ,EAAA,CAAAH,CAAAA,CACA,cAAA,CAAgB,EAAC,CACjB,sBAAA,CAAwB,CAACD,CAAQ,EACjC,IAAA,CAAM,IAAA,CAAK,SAAA,CAAUE,CAAO,CAC9B,CAAA,CAEA,GAAIC,CAAAA,EAAM,SAAA,CACR,OAAOA,CAAAA,CAAK,SAAA,CAAU,CAAC,CAAC,aAAA,CAAeC,CAAK,CAAC,CAAA,CAAG,SAAS,CAAA,CAG3D,IAAMC,GAAAA,CAAaF,CAAAA,EAAM,WACzB,GAAIE,GAAAA,CAAY,CACd,IAAMC,CAAAA,CAAaC,CAAAA,CAAW,UAAA,CAAWF,GAAU,EAEnD,OAAOG,CAAAA,CACL,CAAC,CAAC,cAAeJ,CAAK,CAAC,CAAA,CACvBE,CACF,CACF,CAGA,IAAMG,GAAAA,CAAcN,CAAAA,EAAM,WAAA,CAC1B,GAAIM,GAAAA,CAIF,OAAA,CAHiB,MAAM,IAAIC,CAAAA,CAAG,MAAA,CAAO,CACnC,YAAAD,GACF,CAAC,CAAA,CAAE,UAAA,CAAW,EAAC,CAAG,CAACT,CAAQ,CAAA,CAAGC,CAAAA,CAAI,IAAA,CAAK,SAAA,CAAUC,CAAO,CAAC,CAAA,EACzC,MAAA,CAgBlB,IAAMS,CAAAA,CAAUR,GAAM,OAAA,CACtB,GAAIQ,CAAAA,CAAS,CACX,IAAMC,CAAAA,CACJ,CAAC,CAAC,aAAA,CAAeR,CAAK,CAAC,CAAA,CAEzB,GAAID,GAAM,SAAA,GAAc,UAAA,EAAcQ,CAAAA,CAAQ,qBAAA,CAC5C,OAAOA,CAAAA,CAAQ,qBAAA,CAAsBX,CAAAA,CAAUY,CAAAA,CAAK,SAAS,CAAA,CAE/D,GAAIT,CAAAA,EAAM,SAAA,GAAc,UAAA,EAAcQ,CAAAA,CAAQ,qBAAA,CAC5C,OAAOA,EAAQ,qBAAA,CAAsBX,CAAAA,CAAUY,CAAAA,CAAK,SAAS,CAEjE,CAEA,MAAM,IAAI,KAAA,CACR,mEACF,CACF","file":"chunk-2JN4EIJE.js","sourcesContent":["import { PrivateKey } from \"../../../hive-tx\";\nimport { broadcastOperations } from \"@/modules/core/hive-tx\";\nimport hs from \"hivesigner\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\nexport async function broadcastJson<T>(\n username: string | undefined,\n id: string,\n payload: T,\n auth?: AuthContextV2\n) {\n if (!username) {\n throw new Error(\n \"[Core][Broadcast] Attempted to call broadcast API with anon user\"\n );\n }\n const jjson = {\n id,\n required_auths: [],\n required_posting_auths: [username],\n json: JSON.stringify(payload),\n };\n\n if (auth?.broadcast) {\n return auth.broadcast([[\"custom_json\", jjson]], \"posting\");\n }\n\n const postingKey = auth?.postingKey;\n if (postingKey) {\n const privateKey = PrivateKey.fromString(postingKey);\n\n return broadcastOperations(\n [[\"custom_json\", jjson]],\n privateKey\n );\n }\n\n // With hivesigner access token\n const accessToken = auth?.accessToken;\n if (accessToken) {\n const response = await new hs.Client({\n accessToken,\n }).customJson([], [username], id, JSON.stringify(payload));\n return response.result;\n }\n\n /*\n * Adapter, as a last resort rather than first.\n *\n * `auth.broadcast` above is the supported caller-supplied path inherited by\n * AuthContextV2, but the web app's `getSdkAuthContext` does not populate it.\n * A Keychain user whose posting key is not stored and who has no HiveSigner\n * token therefore reached the throw below instead of being asked to sign.\n * This is reachable today from follow and unfollow.\n *\n * Placed last on purpose: every branch above already works for the sessions\n * that reach it, and reordering would change which method signs for people\n * it currently serves. This only claims cases that were previously errors.\n */\n const adapter = auth?.adapter;\n if (adapter) {\n const ops: Parameters<NonNullable<typeof adapter.broadcastWithKeychain>>[1] =\n [[\"custom_json\", jjson]];\n\n if (auth?.loginType === \"keychain\" && adapter.broadcastWithKeychain) {\n return adapter.broadcastWithKeychain(username, ops, \"posting\");\n }\n if (auth?.loginType === \"hiveauth\" && adapter.broadcastWithHiveAuth) {\n return adapter.broadcastWithHiveAuth(username, ops, \"posting\");\n }\n }\n\n throw new Error(\n \"[SDK][Broadcast] – cannot broadcast w/o posting key or token\"\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/core/mutations/broadcast-json.ts"],"names":["broadcastJson","username","id","payload","auth","jjson","postingKey","privateKey","PrivateKey","broadcastOperations","accessToken","hs","adapter","ops"],"mappings":"kGAKA,eAAsBA,CAAAA,CACpBC,EACAC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,GAAI,CAACH,CAAAA,CACH,MAAM,IAAI,MACR,kEACF,CAAA,CAEF,IAAMI,CAAAA,CAAQ,CACZ,EAAA,CAAAH,CAAAA,CACA,cAAA,CAAgB,EAAC,CACjB,sBAAA,CAAwB,CAACD,CAAQ,EACjC,IAAA,CAAM,IAAA,CAAK,SAAA,CAAUE,CAAO,CAC9B,CAAA,CAEA,GAAIC,CAAAA,EAAM,SAAA,CACR,OAAOA,CAAAA,CAAK,SAAA,CAAU,CAAC,CAAC,aAAA,CAAeC,CAAK,CAAC,CAAA,CAAG,SAAS,CAAA,CAG3D,IAAMC,GAAAA,CAAaF,CAAAA,EAAM,WACzB,GAAIE,GAAAA,CAAY,CACd,IAAMC,CAAAA,CAAaC,CAAAA,CAAW,UAAA,CAAWF,GAAU,EAEnD,OAAOG,CAAAA,CACL,CAAC,CAAC,cAAeJ,CAAK,CAAC,CAAA,CACvBE,CACF,CACF,CAGA,IAAMG,GAAAA,CAAcN,CAAAA,EAAM,WAAA,CAC1B,GAAIM,GAAAA,CAIF,OAAA,CAHiB,MAAM,IAAIC,CAAAA,CAAG,MAAA,CAAO,CACnC,YAAAD,GACF,CAAC,CAAA,CAAE,UAAA,CAAW,EAAC,CAAG,CAACT,CAAQ,CAAA,CAAGC,CAAAA,CAAI,IAAA,CAAK,SAAA,CAAUC,CAAO,CAAC,CAAA,EACzC,MAAA,CAgBlB,IAAMS,CAAAA,CAAUR,GAAM,OAAA,CACtB,GAAIQ,CAAAA,CAAS,CACX,IAAMC,CAAAA,CACJ,CAAC,CAAC,aAAA,CAAeR,CAAK,CAAC,CAAA,CAEzB,GAAID,GAAM,SAAA,GAAc,UAAA,EAAcQ,CAAAA,CAAQ,qBAAA,CAC5C,OAAOA,CAAAA,CAAQ,qBAAA,CAAsBX,CAAAA,CAAUY,CAAAA,CAAK,SAAS,CAAA,CAE/D,GAAIT,CAAAA,EAAM,SAAA,GAAc,UAAA,EAAcQ,CAAAA,CAAQ,qBAAA,CAC5C,OAAOA,EAAQ,qBAAA,CAAsBX,CAAAA,CAAUY,CAAAA,CAAK,SAAS,CAEjE,CAEA,MAAM,IAAI,KAAA,CACR,mEACF,CACF","file":"chunk-C5PSLR7Z.js","sourcesContent":["import { PrivateKey } from \"../../../hive-tx\";\nimport { broadcastOperations } from \"@/modules/core/hive-tx\";\nimport hs from \"hivesigner\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\nexport async function broadcastJson<T>(\n username: string | undefined,\n id: string,\n payload: T,\n auth?: AuthContextV2\n) {\n if (!username) {\n throw new Error(\n \"[Core][Broadcast] Attempted to call broadcast API with anon user\"\n );\n }\n const jjson = {\n id,\n required_auths: [],\n required_posting_auths: [username],\n json: JSON.stringify(payload),\n };\n\n if (auth?.broadcast) {\n return auth.broadcast([[\"custom_json\", jjson]], \"posting\");\n }\n\n const postingKey = auth?.postingKey;\n if (postingKey) {\n const privateKey = PrivateKey.fromString(postingKey);\n\n return broadcastOperations(\n [[\"custom_json\", jjson]],\n privateKey\n );\n }\n\n // With hivesigner access token\n const accessToken = auth?.accessToken;\n if (accessToken) {\n const response = await new hs.Client({\n accessToken,\n }).customJson([], [username], id, JSON.stringify(payload));\n return response.result;\n }\n\n /*\n * Adapter, as a last resort rather than first.\n *\n * `auth.broadcast` above is the supported caller-supplied path inherited by\n * AuthContextV2, but the web app's `getSdkAuthContext` does not populate it.\n * A Keychain user whose posting key is not stored and who has no HiveSigner\n * token therefore reached the throw below instead of being asked to sign.\n * This is reachable today from follow and unfollow.\n *\n * Placed last on purpose: every branch above already works for the sessions\n * that reach it, and reordering would change which method signs for people\n * it currently serves. This only claims cases that were previously errors.\n */\n const adapter = auth?.adapter;\n if (adapter) {\n const ops: Parameters<NonNullable<typeof adapter.broadcastWithKeychain>>[1] =\n [[\"custom_json\", jjson]];\n\n if (auth?.loginType === \"keychain\" && adapter.broadcastWithKeychain) {\n return adapter.broadcastWithKeychain(username, ops, \"posting\");\n }\n if (auth?.loginType === \"hiveauth\" && adapter.broadcastWithHiveAuth) {\n return adapter.broadcastWithHiveAuth(username, ops, \"posting\");\n }\n }\n\n throw new Error(\n \"[SDK][Broadcast] – cannot broadcast w/o posting key or token\"\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b as b$1}from'./chunk-OBSTAXZB.js';import {b}from'./chunk-K2DAN37J.js';import {a as a$1}from'./chunk-HEILHNSR.js';function a(t,o,u){return b(["communities","unsubscribe"],t,({community:e})=>[b$1(t,e)],async(e,n)=>{o?.adapter?.invalidateQueries&&await o.adapter.invalidateQueries([a$1.accounts.subscriptions(t),[...a$1.communities.singlePrefix(n.community)],a$1.communities.context(t,n.community)]);},o,"posting",{broadcastMode:u??"sync"})}export{a};//# sourceMappingURL=chunk-TOQBNISU.js.map
2
- //# sourceMappingURL=chunk-TOQBNISU.js.map
1
+ import {b as b$1}from'./chunk-OBSTAXZB.js';import {b}from'./chunk-J2HM6MWA.js';import {a as a$1}from'./chunk-HEILHNSR.js';function a(t,o,u){return b(["communities","unsubscribe"],t,({community:e})=>[b$1(t,e)],async(e,n)=>{o?.adapter?.invalidateQueries&&await o.adapter.invalidateQueries([a$1.accounts.subscriptions(t),[...a$1.communities.singlePrefix(n.community)],a$1.communities.context(t,n.community)]);},o,"posting",{broadcastMode:u??"sync"})}export{a};//# sourceMappingURL=chunk-CNDSORAV.js.map
2
+ //# sourceMappingURL=chunk-CNDSORAV.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/communities/mutations/use-unsubscribe-community.ts"],"names":["useUnsubscribeCommunity","username","auth","broadcastMode","useBroadcastMutation","community","buildUnsubscribeOp","_result","variables","QueryKeys"],"mappings":"0HAgDO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,aAAA,CAAe,aAAa,CAAA,CAC7BH,CAAAA,CACA,CAAC,CAAE,SAAA,CAAAI,CAAU,CAAA,GAAM,CACjBC,GAAAA,CAAmBL,CAAAA,CAAWI,CAAS,CACzC,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAE7BN,CAAAA,EAAM,OAAA,EAAS,iBAAA,EACjB,MAAMA,CAAAA,CAAK,OAAA,CAAQ,iBAAA,CAAkB,CACnCO,GAAAA,CAAU,QAAA,CAAS,aAAA,CAAcR,CAAS,CAAA,CAC1C,CAAC,GAAGQ,GAAAA,CAAU,WAAA,CAAY,YAAA,CAAaD,CAAAA,CAAU,SAAS,CAAC,CAAA,CAC3DC,GAAAA,CAAU,WAAA,CAAY,OAAA,CAAQR,CAAAA,CAAWO,CAAAA,CAAU,SAAS,CAC9D,CAAC,EAEL,CAAA,CACAN,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,MAAO,CAC3C,CACF","file":"chunk-TOQBNISU.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildUnsubscribeOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for unsubscribing from a community.\n */\nexport interface UnsubscribeCommunityPayload {\n /** Community name (e.g., \"hive-123456\") */\n community: string;\n}\n\n/**\n * React Query mutation hook for unsubscribing from a community.\n *\n * This mutation broadcasts an unsubscribe operation to the Hive blockchain,\n * removing the community from the user's subscription list.\n *\n * @param username - The username unsubscribing (required for broadcast)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates subscriptions cache to show updated subscription list\n * - Invalidates community cache to refetch updated subscriber count\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"community\"\n * - Action: [\"unsubscribe\", {\"community\": \"hive-123456\"}]\n * - Authority: Posting key\n *\n * @example\n * ```typescript\n * const unsubscribeMutation = useUnsubscribeCommunity(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Unsubscribe from a community\n * unsubscribeMutation.mutate({\n * community: 'hive-123456'\n * });\n * ```\n */\nexport function useUnsubscribeCommunity(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<UnsubscribeCommunityPayload>(\n [\"communities\", \"unsubscribe\"],\n username,\n ({ community }) => [\n buildUnsubscribeOp(username!, community)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n QueryKeys.accounts.subscriptions(username!),\n [...QueryKeys.communities.singlePrefix(variables.community)],\n QueryKeys.communities.context(username!, variables.community)\n ]);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'sync' }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/communities/mutations/use-unsubscribe-community.ts"],"names":["useUnsubscribeCommunity","username","auth","broadcastMode","useBroadcastMutation","community","buildUnsubscribeOp","_result","variables","QueryKeys"],"mappings":"0HAgDO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,aAAA,CAAe,aAAa,CAAA,CAC7BH,CAAAA,CACA,CAAC,CAAE,SAAA,CAAAI,CAAU,CAAA,GAAM,CACjBC,GAAAA,CAAmBL,CAAAA,CAAWI,CAAS,CACzC,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAE7BN,CAAAA,EAAM,OAAA,EAAS,iBAAA,EACjB,MAAMA,CAAAA,CAAK,OAAA,CAAQ,iBAAA,CAAkB,CACnCO,GAAAA,CAAU,QAAA,CAAS,aAAA,CAAcR,CAAS,CAAA,CAC1C,CAAC,GAAGQ,GAAAA,CAAU,WAAA,CAAY,YAAA,CAAaD,CAAAA,CAAU,SAAS,CAAC,CAAA,CAC3DC,GAAAA,CAAU,WAAA,CAAY,OAAA,CAAQR,CAAAA,CAAWO,CAAAA,CAAU,SAAS,CAC9D,CAAC,EAEL,CAAA,CACAN,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,MAAO,CAC3C,CACF","file":"chunk-CNDSORAV.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildUnsubscribeOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for unsubscribing from a community.\n */\nexport interface UnsubscribeCommunityPayload {\n /** Community name (e.g., \"hive-123456\") */\n community: string;\n}\n\n/**\n * React Query mutation hook for unsubscribing from a community.\n *\n * This mutation broadcasts an unsubscribe operation to the Hive blockchain,\n * removing the community from the user's subscription list.\n *\n * @param username - The username unsubscribing (required for broadcast)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates subscriptions cache to show updated subscription list\n * - Invalidates community cache to refetch updated subscriber count\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"community\"\n * - Action: [\"unsubscribe\", {\"community\": \"hive-123456\"}]\n * - Authority: Posting key\n *\n * @example\n * ```typescript\n * const unsubscribeMutation = useUnsubscribeCommunity(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Unsubscribe from a community\n * unsubscribeMutation.mutate({\n * community: 'hive-123456'\n * });\n * ```\n */\nexport function useUnsubscribeCommunity(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<UnsubscribeCommunityPayload>(\n [\"communities\", \"unsubscribe\"],\n username,\n ({ community }) => [\n buildUnsubscribeOp(username!, community)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n QueryKeys.accounts.subscriptions(username!),\n [...QueryKeys.communities.singlePrefix(variables.community)],\n QueryKeys.communities.context(username!, variables.community)\n ]);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'sync' }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {e,d}from'./chunk-4COFIDSX.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function f(t){if(!t||typeof t!="object")return null;let o=t,r=typeof o.tx_id=="string"?o.tx_id:typeof o.id=="string"?o.id:null;return r&&/^[0-9a-f]{40}$/.test(r)?r:null}function l(t,o,r){return b(a.curation.recommend(),t,n=>[n.withdraw?e(t,n.author,n.permlink):d(t,n.author,n.permlink,n.reason)],async(n,i)=>{await b$1(o?.adapter,r,[a.curation.post(i.author,i.permlink),[...a.curation._recommendationsPrefix]]);},o,"posting",{broadcastMode:r})}export{f as a,l as b};//# sourceMappingURL=chunk-MPLLD6WX.js.map
2
- //# sourceMappingURL=chunk-MPLLD6WX.js.map
1
+ import {e,d}from'./chunk-4COFIDSX.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function f(t){if(!t||typeof t!="object")return null;let o=t,r=typeof o.tx_id=="string"?o.tx_id:typeof o.id=="string"?o.id:null;return r&&/^[0-9a-f]{40}$/.test(r)?r:null}function l(t,o,r){return b(a.curation.recommend(),t,n=>[n.withdraw?e(t,n.author,n.permlink):d(t,n.author,n.permlink,n.reason)],async(n,i)=>{await b$1(o?.adapter,r,[a.curation.post(i.author,i.permlink),[...a.curation._recommendationsPrefix]]);},o,"posting",{broadcastMode:r})}export{f as a,l as b};//# sourceMappingURL=chunk-CQTLGJKX.js.map
2
+ //# sourceMappingURL=chunk-CQTLGJKX.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/curation/mutations/use-curation-recommend.ts"],"names":["normalizeBroadcastTrxId","result","r","id","useCurationRecommend","username","auth","broadcastMode","useBroadcastMutation","QueryKeys","payload","buildCurationUnrecommendOp","buildCurationRecommendOp","_result","variables","invalidateAfterBroadcast"],"mappings":"yJAyBO,SAASA,CAAAA,CAAwBC,EAAgC,CACtE,GAAI,CAACA,CAAAA,EAAU,OAAOA,CAAAA,EAAW,QAAA,CAAU,OAAO,IAAA,CAClD,IAAMC,CAAAA,CAAID,CAAAA,CACJE,CAAAA,CAAK,OAAOD,CAAAA,CAAE,KAAA,EAAU,SAAWA,CAAAA,CAAE,KAAA,CAAQ,OAAOA,CAAAA,CAAE,EAAA,EAAO,QAAA,CAAWA,EAAE,EAAA,CAAK,IAAA,CACrF,OAAOC,CAAAA,EAAM,gBAAA,CAAiB,KAAKA,CAAE,CAAA,CAAIA,CAAAA,CAAK,IAChD,CAQO,SAASC,EACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACLC,EAAU,QAAA,CAAS,SAAA,EAAU,CAC7BJ,CAAAA,CACCK,CAAAA,EAAY,CACXA,EAAQ,QAAA,CACJC,CAAAA,CAA2BN,EAAWK,CAAAA,CAAQ,MAAA,CAAQA,EAAQ,QAAQ,CAAA,CACtEE,CAAAA,CAAyBP,CAAAA,CAAWK,CAAAA,CAAQ,MAAA,CAAQA,EAAQ,QAAA,CAAUA,CAAAA,CAAQ,MAAM,CAC1F,CAAA,CACA,MAAOG,EAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBT,CAAAA,EAAM,OAAA,CAASC,EAAe,CAC3DE,CAAAA,CAAU,SAAS,IAAA,CAAKK,CAAAA,CAAU,OAAQA,CAAAA,CAAU,QAAQ,CAAA,CAC5D,CAAC,GAAGL,CAAAA,CAAU,SAAS,sBAAsB,CAC/C,CAAC,EACH,CAAA,CACAH,CAAAA,CACA,UACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-MPLLD6WX.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport {\n buildCurationRecommendOp,\n buildCurationUnrecommendOp,\n} from \"@/modules/operations/builders\";\nimport type { CurationReason } from \"../types\";\n\nexport interface CurationRecommendPayload {\n author: string;\n permlink: string;\n /** Defaults to \"quality\" on recommend; ignored on withdraw. */\n reason?: CurationReason;\n /** Broadcast the `unrecommend` op instead. */\n withdraw?: boolean;\n}\n\n/**\n * The broadcast result is not uniform across auth paths: the key path returns\n * `{tx_id, status}`, the HiveSigner token and Keychain extension paths return\n * `{id, block_num, ...}`; the redirect flows never resolve at all. This\n * gives the one shape the desk needs (a 40 hex char id) or null.\n */\nexport function normalizeBroadcastTrxId(result: unknown): string | null {\n if (!result || typeof result !== \"object\") return null;\n const r = result as { tx_id?: unknown; id?: unknown };\n const id = typeof r.tx_id === \"string\" ? r.tx_id : typeof r.id === \"string\" ? r.id : null;\n return id && /^[0-9a-f]{40}$/.test(id) ? id : null;\n}\n\n/**\n * Recommend a post to the curators (or withdraw a recommendation) with one\n * `custom_json` under posting authority. The desk indexes the op from the\n * chain; nothing is written to a desk route here. Platform wrappers send the\n * optional meta ping after success.\n */\nexport function useCurationRecommend(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<CurationRecommendPayload>(\n QueryKeys.curation.recommend(),\n username,\n (payload) => [\n payload.withdraw\n ? buildCurationUnrecommendOp(username!, payload.author, payload.permlink)\n : buildCurationRecommendOp(username!, payload.author, payload.permlink, payload.reason),\n ],\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.curation.post(variables.author, variables.permlink),\n [...QueryKeys.curation._recommendationsPrefix],\n ]);\n },\n auth,\n \"posting\",\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/curation/mutations/use-curation-recommend.ts"],"names":["normalizeBroadcastTrxId","result","r","id","useCurationRecommend","username","auth","broadcastMode","useBroadcastMutation","QueryKeys","payload","buildCurationUnrecommendOp","buildCurationRecommendOp","_result","variables","invalidateAfterBroadcast"],"mappings":"yJAyBO,SAASA,CAAAA,CAAwBC,EAAgC,CACtE,GAAI,CAACA,CAAAA,EAAU,OAAOA,CAAAA,EAAW,QAAA,CAAU,OAAO,IAAA,CAClD,IAAMC,CAAAA,CAAID,CAAAA,CACJE,CAAAA,CAAK,OAAOD,CAAAA,CAAE,KAAA,EAAU,SAAWA,CAAAA,CAAE,KAAA,CAAQ,OAAOA,CAAAA,CAAE,EAAA,EAAO,QAAA,CAAWA,EAAE,EAAA,CAAK,IAAA,CACrF,OAAOC,CAAAA,EAAM,gBAAA,CAAiB,KAAKA,CAAE,CAAA,CAAIA,CAAAA,CAAK,IAChD,CAQO,SAASC,EACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACLC,EAAU,QAAA,CAAS,SAAA,EAAU,CAC7BJ,CAAAA,CACCK,CAAAA,EAAY,CACXA,EAAQ,QAAA,CACJC,CAAAA,CAA2BN,EAAWK,CAAAA,CAAQ,MAAA,CAAQA,EAAQ,QAAQ,CAAA,CACtEE,CAAAA,CAAyBP,CAAAA,CAAWK,CAAAA,CAAQ,MAAA,CAAQA,EAAQ,QAAA,CAAUA,CAAAA,CAAQ,MAAM,CAC1F,CAAA,CACA,MAAOG,EAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBT,CAAAA,EAAM,OAAA,CAASC,EAAe,CAC3DE,CAAAA,CAAU,SAAS,IAAA,CAAKK,CAAAA,CAAU,OAAQA,CAAAA,CAAU,QAAQ,CAAA,CAC5D,CAAC,GAAGL,CAAAA,CAAU,SAAS,sBAAsB,CAC/C,CAAC,EACH,CAAA,CACAH,CAAAA,CACA,UACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-CQTLGJKX.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport {\n buildCurationRecommendOp,\n buildCurationUnrecommendOp,\n} from \"@/modules/operations/builders\";\nimport type { CurationReason } from \"../types\";\n\nexport interface CurationRecommendPayload {\n author: string;\n permlink: string;\n /** Defaults to \"quality\" on recommend; ignored on withdraw. */\n reason?: CurationReason;\n /** Broadcast the `unrecommend` op instead. */\n withdraw?: boolean;\n}\n\n/**\n * The broadcast result is not uniform across auth paths: the key path returns\n * `{tx_id, status}`, the HiveSigner token and Keychain extension paths return\n * `{id, block_num, ...}`; the redirect flows never resolve at all. This\n * gives the one shape the desk needs (a 40 hex char id) or null.\n */\nexport function normalizeBroadcastTrxId(result: unknown): string | null {\n if (!result || typeof result !== \"object\") return null;\n const r = result as { tx_id?: unknown; id?: unknown };\n const id = typeof r.tx_id === \"string\" ? r.tx_id : typeof r.id === \"string\" ? r.id : null;\n return id && /^[0-9a-f]{40}$/.test(id) ? id : null;\n}\n\n/**\n * Recommend a post to the curators (or withdraw a recommendation) with one\n * `custom_json` under posting authority. The desk indexes the op from the\n * chain; nothing is written to a desk route here. Platform wrappers send the\n * optional meta ping after success.\n */\nexport function useCurationRecommend(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<CurationRecommendPayload>(\n QueryKeys.curation.recommend(),\n username,\n (payload) => [\n payload.withdraw\n ? buildCurationUnrecommendOp(username!, payload.author, payload.permlink)\n : buildCurationRecommendOp(username!, payload.author, payload.permlink, payload.reason),\n ],\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.curation.post(variables.author, variables.permlink),\n [...QueryKeys.curation._recommendationsPrefix],\n ]);\n },\n auth,\n \"posting\",\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a as a$1}from'./chunk-HEILHNSR.js';function u(t,e,a$2){return b(["wallet","transfer"],t,o=>[a(t,o.to,o.amount,o.memo)],async(o,f)=>{await b$1(e?.adapter,a$2,[a$1.accounts.full(t),a$1.accounts.full(f.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},e,"active",{broadcastMode:a$2})}export{u as a};//# sourceMappingURL=chunk-24GIDC32.js.map
2
- //# sourceMappingURL=chunk-24GIDC32.js.map
1
+ import {a}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a as a$1}from'./chunk-HEILHNSR.js';function u(t,e,a$2){return b(["wallet","transfer"],t,o=>[a(t,o.to,o.amount,o.memo)],async(o,f)=>{await b$1(e?.adapter,a$2,[a$1.accounts.full(t),a$1.accounts.full(f.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},e,"active",{broadcastMode:a$2})}export{u as a};//# sourceMappingURL=chunk-F3U2P5JK.js.map
2
+ //# sourceMappingURL=chunk-F3U2P5JK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-transfer.ts"],"names":["useTransfer","username","auth","broadcastMode","useBroadcastMutation","payload","buildTransferOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"8JAkCO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,UAAU,CAAA,CACrBH,CAAAA,CACCI,GAAY,CACXC,CAAAA,CAAgBL,CAAAA,CAAWI,CAAAA,CAAQ,EAAA,CAAIA,CAAAA,CAAQ,MAAA,CAAQA,CAAAA,CAAQ,IAAI,CACrE,CAAA,CACA,MAAOE,CAAAA,CAASC,CAAAA,GAAc,CAC5B,MAAMC,IAAyBP,CAAAA,EAAM,OAAA,CAASC,GAAAA,CAAe,CAC3DO,GAAAA,CAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,GAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,EAAE,CAAA,CACpC,CAAC,iBAAkB,YAAA,CAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-24GIDC32.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildTransferOp } from \"@/modules/operations/builders\";\n\n/**\n * Payload for transferring tokens.\n */\nexport interface TransferPayload {\n /** Recipient account */\n to: string;\n /** Amount with asset symbol (e.g., \"1.000 HIVE\", \"5.000 HBD\") */\n amount: string;\n /** Transfer memo */\n memo: string;\n}\n\n/**\n * React Query mutation hook for transferring tokens.\n *\n * This mutation broadcasts a transfer operation to send HIVE or HBD\n * to another account. **Requires ACTIVE authority**.\n *\n * Uses `useBroadcastMutation` with the smart auth strategy:\n * - Adapter determines login type and dispatches to appropriate method\n * - If active key not available (common on web), triggers `showAuthUpgradeUI`\n * - Supports keychain, hivesigner, hiveauth, and direct key signing\n *\n * @param username - The username sending the transfer (required for broadcast)\n * @param auth - Authentication context with platform adapter\n *\n * @returns React Query mutation result\n */\nexport function useTransfer(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<TransferPayload>(\n [\"wallet\", \"transfer\"],\n username,\n (payload) => [\n buildTransferOp(username!, payload.to, payload.amount, payload.memo)\n ],\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-transfer.ts"],"names":["useTransfer","username","auth","broadcastMode","useBroadcastMutation","payload","buildTransferOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"8JAkCO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,UAAU,CAAA,CACrBH,CAAAA,CACCI,GAAY,CACXC,CAAAA,CAAgBL,CAAAA,CAAWI,CAAAA,CAAQ,EAAA,CAAIA,CAAAA,CAAQ,MAAA,CAAQA,CAAAA,CAAQ,IAAI,CACrE,CAAA,CACA,MAAOE,CAAAA,CAASC,CAAAA,GAAc,CAC5B,MAAMC,IAAyBP,CAAAA,EAAM,OAAA,CAASC,GAAAA,CAAe,CAC3DO,GAAAA,CAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,GAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,EAAE,CAAA,CACpC,CAAC,iBAAkB,YAAA,CAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-F3U2P5JK.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildTransferOp } from \"@/modules/operations/builders\";\n\n/**\n * Payload for transferring tokens.\n */\nexport interface TransferPayload {\n /** Recipient account */\n to: string;\n /** Amount with asset symbol (e.g., \"1.000 HIVE\", \"5.000 HBD\") */\n amount: string;\n /** Transfer memo */\n memo: string;\n}\n\n/**\n * React Query mutation hook for transferring tokens.\n *\n * This mutation broadcasts a transfer operation to send HIVE or HBD\n * to another account. **Requires ACTIVE authority**.\n *\n * Uses `useBroadcastMutation` with the smart auth strategy:\n * - Adapter determines login type and dispatches to appropriate method\n * - If active key not available (common on web), triggers `showAuthUpgradeUI`\n * - Supports keychain, hivesigner, hiveauth, and direct key signing\n *\n * @param username - The username sending the transfer (required for broadcast)\n * @param auth - Authentication context with platform adapter\n *\n * @returns React Query mutation result\n */\nexport function useTransfer(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<TransferPayload>(\n [\"wallet\", \"transfer\"],\n username,\n (payload) => [\n buildTransferOp(username!, payload.to, payload.amount, payload.memo)\n ],\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {k}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function p(t,r,i){return b(["wallet","set-withdraw-vesting-route"],t,e=>[k(t,e.toAccount,e.percent,e.autoVest)],async(e,s)=>{await b$1(r?.adapter,i,[a.wallet.withdrawRoutes(t),a.accounts.full(t),a.accounts.full(s.toAccount)]);},r,"active",{broadcastMode:i})}export{p as a};//# sourceMappingURL=chunk-ADAK5AIP.js.map
2
- //# sourceMappingURL=chunk-ADAK5AIP.js.map
1
+ import {k}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function p(t,r,i){return b(["wallet","set-withdraw-vesting-route"],t,e=>[k(t,e.toAccount,e.percent,e.autoVest)],async(e,s)=>{await b$1(r?.adapter,i,[a.wallet.withdrawRoutes(t),a.accounts.full(t),a.accounts.full(s.toAccount)]);},r,"active",{broadcastMode:i})}export{p as a};//# sourceMappingURL=chunk-FFTSEIYV.js.map
2
+ //# sourceMappingURL=chunk-FFTSEIYV.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-set-withdraw-vesting-route.ts"],"names":["useSetWithdrawVestingRoute","username","auth","broadcastMode","useBroadcastMutation","payload","buildSetWithdrawVestingRouteOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"uJAwEO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,4BAA4B,CAAA,CACvCH,CAAAA,CACCI,CAAAA,EAAY,CACXC,CAAAA,CACEL,CAAAA,CACAI,CAAAA,CAAQ,SAAA,CACRA,CAAAA,CAAQ,OAAA,CACRA,CAAAA,CAAQ,QACV,CACF,CAAA,CACA,MAAOE,CAAAA,CAASC,CAAAA,GAAc,CAE5B,MAAMC,GAAAA,CAAyBP,CAAAA,EAAM,OAAA,CAASC,CAAAA,CAAe,CAC3DO,CAAAA,CAAU,MAAA,CAAO,cAAA,CAAeT,CAAS,CAAA,CACzCS,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,SAAS,CAC7C,CAAC,EACH,CAAA,CACAN,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-ADAK5AIP.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildSetWithdrawVestingRouteOp } from \"@/modules/operations/builders\";\n\n/**\n * Payload for setting withdraw vesting route.\n */\nexport interface SetWithdrawVestingRoutePayload {\n /** Account receiving withdrawn vesting */\n toAccount: string;\n /** Percentage to route (0-10000, where 10000 = 100%). Already scaled. */\n percent: number;\n /** Auto convert to vesting (power up) */\n autoVest: boolean;\n}\n\n/**\n * React Query mutation hook for setting withdraw vesting route.\n *\n * This mutation broadcasts a set_withdraw_vesting_route operation to configure\n * where withdrawn VESTS (power down) are sent. **Requires ACTIVE authority**, not posting.\n *\n * @param username - The username setting withdraw route (required for broadcast)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **IMPORTANT: Active Authority Required**\n * - Withdraw route operations require ACTIVE key, not posting key\n * - Make sure your auth adapter provides getActiveKey() method\n * - Keychain/HiveAuth will prompt for Active authority\n *\n * **Withdraw Route Mechanics:**\n * - Routes a percentage of power down (withdraw_vesting) to another account\n * - Percent must be between 0-10000 (where 10000 = 100%)\n * - Multiple routes can be set, total cannot exceed 100%\n * - autoVest=true converts withdrawn VESTS to HP in destination account\n * - autoVest=false converts withdrawn VESTS to liquid HIVE\n *\n * **Post-Broadcast Actions:**\n * - Invalidates withdraw routes cache to show updated routes\n * - Invalidates account data for both accounts\n *\n * @example\n * ```typescript\n * const setRouteMutation = useSetWithdrawVestingRoute(username, {\n * adapter: {\n * ...myAdapter,\n * getActiveKey: async (username) => getActiveKeyFromStorage(username)\n * },\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Route 50% of power down to another account (auto vest)\n * setRouteMutation.mutate({\n * toAccount: 'alice',\n * percent: 5000, // 50% (already scaled)\n * autoVest: true\n * });\n *\n * // Route 100% of power down to another account (liquid HIVE)\n * setRouteMutation.mutate({\n * toAccount: 'bob',\n * percent: 10000, // 100% (already scaled)\n * autoVest: false\n * });\n * ```\n */\nexport function useSetWithdrawVestingRoute(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<SetWithdrawVestingRoutePayload>(\n [\"wallet\", \"set-withdraw-vesting-route\"],\n username,\n (payload) => [\n buildSetWithdrawVestingRouteOp(\n username!,\n payload.toAccount,\n payload.percent,\n payload.autoVest\n )\n ],\n async (_result, variables) => {\n // Cache invalidation\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.wallet.withdrawRoutes(username!),\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.toAccount)\n ]);\n },\n auth,\n 'active', // IMPORTANT: Active authority required\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-set-withdraw-vesting-route.ts"],"names":["useSetWithdrawVestingRoute","username","auth","broadcastMode","useBroadcastMutation","payload","buildSetWithdrawVestingRouteOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"uJAwEO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,4BAA4B,CAAA,CACvCH,CAAAA,CACCI,CAAAA,EAAY,CACXC,CAAAA,CACEL,CAAAA,CACAI,CAAAA,CAAQ,SAAA,CACRA,CAAAA,CAAQ,OAAA,CACRA,CAAAA,CAAQ,QACV,CACF,CAAA,CACA,MAAOE,CAAAA,CAASC,CAAAA,GAAc,CAE5B,MAAMC,GAAAA,CAAyBP,CAAAA,EAAM,OAAA,CAASC,CAAAA,CAAe,CAC3DO,CAAAA,CAAU,MAAA,CAAO,cAAA,CAAeT,CAAS,CAAA,CACzCS,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,SAAS,CAC7C,CAAC,EACH,CAAA,CACAN,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-FFTSEIYV.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport { buildSetWithdrawVestingRouteOp } from \"@/modules/operations/builders\";\n\n/**\n * Payload for setting withdraw vesting route.\n */\nexport interface SetWithdrawVestingRoutePayload {\n /** Account receiving withdrawn vesting */\n toAccount: string;\n /** Percentage to route (0-10000, where 10000 = 100%). Already scaled. */\n percent: number;\n /** Auto convert to vesting (power up) */\n autoVest: boolean;\n}\n\n/**\n * React Query mutation hook for setting withdraw vesting route.\n *\n * This mutation broadcasts a set_withdraw_vesting_route operation to configure\n * where withdrawn VESTS (power down) are sent. **Requires ACTIVE authority**, not posting.\n *\n * @param username - The username setting withdraw route (required for broadcast)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **IMPORTANT: Active Authority Required**\n * - Withdraw route operations require ACTIVE key, not posting key\n * - Make sure your auth adapter provides getActiveKey() method\n * - Keychain/HiveAuth will prompt for Active authority\n *\n * **Withdraw Route Mechanics:**\n * - Routes a percentage of power down (withdraw_vesting) to another account\n * - Percent must be between 0-10000 (where 10000 = 100%)\n * - Multiple routes can be set, total cannot exceed 100%\n * - autoVest=true converts withdrawn VESTS to HP in destination account\n * - autoVest=false converts withdrawn VESTS to liquid HIVE\n *\n * **Post-Broadcast Actions:**\n * - Invalidates withdraw routes cache to show updated routes\n * - Invalidates account data for both accounts\n *\n * @example\n * ```typescript\n * const setRouteMutation = useSetWithdrawVestingRoute(username, {\n * adapter: {\n * ...myAdapter,\n * getActiveKey: async (username) => getActiveKeyFromStorage(username)\n * },\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Route 50% of power down to another account (auto vest)\n * setRouteMutation.mutate({\n * toAccount: 'alice',\n * percent: 5000, // 50% (already scaled)\n * autoVest: true\n * });\n *\n * // Route 100% of power down to another account (liquid HIVE)\n * setRouteMutation.mutate({\n * toAccount: 'bob',\n * percent: 10000, // 100% (already scaled)\n * autoVest: false\n * });\n * ```\n */\nexport function useSetWithdrawVestingRoute(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<SetWithdrawVestingRoutePayload>(\n [\"wallet\", \"set-withdraw-vesting-route\"],\n username,\n (payload) => [\n buildSetWithdrawVestingRouteOp(\n username!,\n payload.toAccount,\n payload.percent,\n payload.autoVest\n )\n ],\n async (_result, variables) => {\n // Cache invalidation\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.wallet.withdrawRoutes(username!),\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.toAccount)\n ]);\n },\n auth,\n 'active', // IMPORTANT: Active authority required\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function l(t,i,a$1){return b(["wallet","stake-engine-token"],t,o=>{let e=JSON.stringify({contractName:"tokens",contractAction:"stake",contractPayload:{symbol:o.symbol,to:o.to,quantity:o.quantity}});return [["custom_json",{id:"ssc-mainnet-hive",required_auths:[t],required_posting_auths:[],json:e}]]},async(o,e)=>{await b$1(i?.adapter,a$1,[a.accounts.full(t),a.accounts.full(e.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},i,"active",{broadcastMode:a$1})}export{l as a};//# sourceMappingURL=chunk-SHZTS2C3.js.map
2
- //# sourceMappingURL=chunk-SHZTS2C3.js.map
1
+ import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function l(t,i,a$1){return b(["wallet","stake-engine-token"],t,o=>{let e=JSON.stringify({contractName:"tokens",contractAction:"stake",contractPayload:{symbol:o.symbol,to:o.to,quantity:o.quantity}});return [["custom_json",{id:"ssc-mainnet-hive",required_auths:[t],required_posting_auths:[],json:e}]]},async(o,e)=>{await b$1(i?.adapter,a$1,[a.accounts.full(t),a.accounts.full(e.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},i,"active",{broadcastMode:a$1})}export{l as a};//# sourceMappingURL=chunk-FH2NXTZ6.js.map
2
+ //# sourceMappingURL=chunk-FH2NXTZ6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-stake-engine-token.ts"],"names":["useStakeEngineToken","username","auth","broadcastMode","useBroadcastMutation","payload","json","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"mHAYO,SAASA,CAAAA,CAAoBC,EAA8BC,CAAAA,CAChEC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,oBAAoB,EAC/BH,CAAAA,CACCI,CAAAA,EAAY,CACX,IAAMC,CAAAA,CAAO,KAAK,SAAA,CAAU,CAC1B,YAAA,CAAc,QAAA,CACd,cAAA,CAAgB,OAAA,CAChB,gBAAiB,CACf,MAAA,CAAQD,EAAQ,MAAA,CAChB,EAAA,CAAIA,EAAQ,EAAA,CACZ,QAAA,CAAUA,CAAAA,CAAQ,QACpB,CACF,CAAC,EACD,OAAO,CAAC,CAAC,aAAA,CAAe,CACtB,GAAI,kBAAA,CACJ,cAAA,CAAgB,CAACJ,CAAS,CAAA,CAC1B,sBAAA,CAAwB,EAAC,CACzB,IAAA,CAAAK,CACF,CAAC,CAAc,CACjB,CAAA,CACA,MAAOC,EAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBP,CAAAA,EAAM,QAASC,GAAAA,CAAe,CAC3DO,EAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,QAAA,CAAS,KAAKF,CAAAA,CAAU,EAAE,EACpC,CAAC,gBAAA,CAAkB,aAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,SACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-SHZTS2C3.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Operation } from \"../../../hive-tx\";\n\nexport interface StakeEngineTokenPayload {\n to: string;\n symbol: string;\n quantity: string;\n}\n\nexport function useStakeEngineToken(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<StakeEngineTokenPayload>(\n [\"wallet\", \"stake-engine-token\"],\n username,\n (payload) => {\n const json = JSON.stringify({\n contractName: \"tokens\",\n contractAction: \"stake\",\n contractPayload: {\n symbol: payload.symbol,\n to: payload.to,\n quantity: payload.quantity,\n }\n });\n return [[\"custom_json\", {\n id: \"ssc-mainnet-hive\",\n required_auths: [username!],\n required_posting_auths: [],\n json,\n }] as Operation];\n },\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-stake-engine-token.ts"],"names":["useStakeEngineToken","username","auth","broadcastMode","useBroadcastMutation","payload","json","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"mHAYO,SAASA,CAAAA,CAAoBC,EAA8BC,CAAAA,CAChEC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,oBAAoB,EAC/BH,CAAAA,CACCI,CAAAA,EAAY,CACX,IAAMC,CAAAA,CAAO,KAAK,SAAA,CAAU,CAC1B,YAAA,CAAc,QAAA,CACd,cAAA,CAAgB,OAAA,CAChB,gBAAiB,CACf,MAAA,CAAQD,EAAQ,MAAA,CAChB,EAAA,CAAIA,EAAQ,EAAA,CACZ,QAAA,CAAUA,CAAAA,CAAQ,QACpB,CACF,CAAC,EACD,OAAO,CAAC,CAAC,aAAA,CAAe,CACtB,GAAI,kBAAA,CACJ,cAAA,CAAgB,CAACJ,CAAS,CAAA,CAC1B,sBAAA,CAAwB,EAAC,CACzB,IAAA,CAAAK,CACF,CAAC,CAAc,CACjB,CAAA,CACA,MAAOC,EAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBP,CAAAA,EAAM,QAASC,GAAAA,CAAe,CAC3DO,EAAU,QAAA,CAAS,IAAA,CAAKT,CAAQ,CAAA,CAChCS,CAAAA,CAAU,QAAA,CAAS,KAAKF,CAAAA,CAAU,EAAE,EACpC,CAAC,gBAAA,CAAkB,aAAcP,CAAQ,CAAA,CACzC,CAAC,QAAA,CAAU,WAAA,CAAa,IAAA,CAAMA,CAAQ,CACxC,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,SACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-FH2NXTZ6.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast } from \"@/modules/core/mutations\";\nimport type { BroadcastMode } from \"@/modules/core/mutations\";\nimport { QueryKeys } from \"@/modules/core\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\nimport type { Operation } from \"../../../hive-tx\";\n\nexport interface StakeEngineTokenPayload {\n to: string;\n symbol: string;\n quantity: string;\n}\n\nexport function useStakeEngineToken(username: string | undefined, auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<StakeEngineTokenPayload>(\n [\"wallet\", \"stake-engine-token\"],\n username,\n (payload) => {\n const json = JSON.stringify({\n contractName: \"tokens\",\n contractAction: \"stake\",\n contractPayload: {\n symbol: payload.symbol,\n to: payload.to,\n quantity: payload.quantity,\n }\n });\n return [[\"custom_json\", {\n id: \"ssc-mainnet-hive\",\n required_auths: [username!],\n required_posting_auths: [],\n json,\n }] as Operation];\n },\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n [\"ecency-wallets\", \"asset-info\", username],\n [\"wallet\", \"portfolio\", \"v2\", username]\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {e}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-K2DAN37J.js';import {a}from'./chunk-HEILHNSR.js';function l(t,e$1,s){return b(["wallet","transfer-from-savings"],t,r=>[e(t,r.to,r.amount,r.memo,r.requestId)],async(r,m)=>{await b$1(e$1?.adapter,s,[a.accounts.full(t),a.accounts.full(m.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},e$1,"active",{broadcastMode:s})}export{l as a};//# sourceMappingURL=chunk-KDR4M45T.js.map
2
- //# sourceMappingURL=chunk-KDR4M45T.js.map
1
+ import {e}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-J2HM6MWA.js';import {a}from'./chunk-HEILHNSR.js';function l(t,e$1,s){return b(["wallet","transfer-from-savings"],t,r=>[e(t,r.to,r.amount,r.memo,r.requestId)],async(r,m)=>{await b$1(e$1?.adapter,s,[a.accounts.full(t),a.accounts.full(m.to),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},e$1,"active",{broadcastMode:s})}export{l as a};//# sourceMappingURL=chunk-FU2GC2LE.js.map
2
+ //# sourceMappingURL=chunk-FU2GC2LE.js.map