@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.19

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 (275) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +182 -182
  3. package/esm/cosmos/bundle.js +182 -182
  4. package/esm/ibc/bundle.js +106 -106
  5. package/esm/sparkdream/blog/v1/params.js +113 -52
  6. package/esm/sparkdream/blog/v1/tx.js +583 -2
  7. package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
  8. package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
  9. package/esm/sparkdream/bundle.js +448 -346
  10. package/esm/sparkdream/client.js +7 -1
  11. package/esm/sparkdream/collect/v1/params.js +121 -1
  12. package/esm/sparkdream/collect/v1/tx.js +293 -1
  13. package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
  14. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
  15. package/esm/sparkdream/collect/v1/types.js +147 -3
  16. package/esm/sparkdream/commons/v1/genesis.js +29 -1
  17. package/esm/sparkdream/commons/v1/query.js +317 -0
  18. package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
  19. package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
  20. package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
  21. package/esm/sparkdream/commons/v1/tx.js +693 -0
  22. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  23. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
  24. package/esm/sparkdream/federation/v1/genesis.js +10 -10
  25. package/esm/sparkdream/federation/v1/params.js +29 -54
  26. package/esm/sparkdream/federation/v1/query.js +216 -71
  27. package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
  28. package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  29. package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
  30. package/esm/sparkdream/federation/v1/tx.js +1146 -1105
  31. package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
  32. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
  33. package/esm/sparkdream/federation/v1/types.js +355 -99
  34. package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
  35. package/esm/sparkdream/forum/v1/params.js +389 -148
  36. package/esm/sparkdream/forum/v1/post.js +25 -1
  37. package/esm/sparkdream/forum/v1/tx.js +460 -0
  38. package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
  39. package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
  40. package/esm/sparkdream/forum/v1/types.js +355 -0
  41. package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
  42. package/esm/sparkdream/guardian/module/v1/module.js +68 -0
  43. package/esm/sparkdream/guardian/v1/query.js +128 -0
  44. package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
  45. package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
  46. package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
  47. package/esm/sparkdream/guardian/v1/tx.js +175 -0
  48. package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
  49. package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
  50. package/esm/sparkdream/identity/module/v1/module.js +71 -0
  51. package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
  52. package/esm/sparkdream/identity/v1/genesis.js +84 -0
  53. package/esm/sparkdream/identity/v1/query.js +372 -0
  54. package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
  55. package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
  56. package/esm/sparkdream/lcd.js +15 -0
  57. package/esm/sparkdream/name/v1/params.js +19 -18
  58. package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
  59. package/esm/sparkdream/rep/v1/member.js +209 -1
  60. package/esm/sparkdream/rep/v1/tag.js +6 -13
  61. package/esm/sparkdream/rpc.query.js +9 -0
  62. package/esm/sparkdream/rpc.tx.js +6 -0
  63. package/esm/sparkdream/service/module/v1/module.js +71 -0
  64. package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
  65. package/esm/sparkdream/service/v1/genesis.js +240 -0
  66. package/esm/sparkdream/service/v1/operator.js +250 -0
  67. package/esm/sparkdream/service/v1/params.js +355 -0
  68. package/esm/sparkdream/service/v1/query.js +1582 -0
  69. package/esm/sparkdream/service/v1/query.lcd.js +107 -0
  70. package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
  71. package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
  72. package/esm/sparkdream/service/v1/report.js +212 -0
  73. package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
  74. package/esm/sparkdream/service/v1/service_type_config.js +264 -0
  75. package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
  76. package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
  77. package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
  78. package/esm/sparkdream/service/v1/tx.amino.js +69 -0
  79. package/esm/sparkdream/service/v1/tx.js +2124 -0
  80. package/esm/sparkdream/service/v1/tx.registry.js +249 -0
  81. package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
  82. package/esm/sparkdream/service/v1/types.js +353 -0
  83. package/esm/sparkdream/session/v1/genesis.js +136 -10
  84. package/esm/sparkdream/session/v1/grant.js +1020 -0
  85. package/esm/sparkdream/session/v1/params.js +543 -19
  86. package/esm/sparkdream/session/v1/query.js +487 -0
  87. package/esm/sparkdream/session/v1/query.lcd.js +41 -3
  88. package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
  89. package/esm/sparkdream/session/v1/session.js +6 -0
  90. package/esm/sparkdream/session/v1/tx.js +1066 -0
  91. package/esm/sparkdream/session/v1/tx.registry.js +110 -2
  92. package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
  93. package/esm/tendermint/bundle.js +20 -20
  94. package/ibc/bundle.d.ts +90 -90
  95. package/ibc/bundle.js +106 -106
  96. package/package.json +1 -1
  97. package/sparkdream/blog/v1/params.d.ts +89 -28
  98. package/sparkdream/blog/v1/params.js +113 -52
  99. package/sparkdream/blog/v1/post.d.ts +2 -2
  100. package/sparkdream/blog/v1/tx.d.ts +385 -10
  101. package/sparkdream/blog/v1/tx.js +584 -3
  102. package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
  103. package/sparkdream/blog/v1/tx.registry.js +73 -1
  104. package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
  105. package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
  106. package/sparkdream/bundle.d.ts +15308 -12896
  107. package/sparkdream/bundle.js +448 -346
  108. package/sparkdream/client.d.ts +90 -20
  109. package/sparkdream/client.js +7 -1
  110. package/sparkdream/collect/v1/params.d.ts +140 -0
  111. package/sparkdream/collect/v1/params.js +121 -1
  112. package/sparkdream/collect/v1/tx.d.ts +195 -3
  113. package/sparkdream/collect/v1/tx.js +294 -2
  114. package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
  115. package/sparkdream/collect/v1/tx.registry.js +37 -1
  116. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
  117. package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
  118. package/sparkdream/collect/v1/types.d.ts +114 -0
  119. package/sparkdream/collect/v1/types.js +147 -3
  120. package/sparkdream/commons/v1/genesis.d.ts +17 -0
  121. package/sparkdream/commons/v1/genesis.js +29 -1
  122. package/sparkdream/commons/v1/query.d.ts +186 -0
  123. package/sparkdream/commons/v1/query.js +318 -1
  124. package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
  125. package/sparkdream/commons/v1/query.lcd.js +23 -0
  126. package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
  127. package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
  128. package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
  129. package/sparkdream/commons/v1/recurring_spend.js +301 -0
  130. package/sparkdream/commons/v1/tx.d.ts +472 -0
  131. package/sparkdream/commons/v1/tx.js +694 -1
  132. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  133. package/sparkdream/commons/v1/tx.registry.js +73 -1
  134. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
  135. package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
  136. package/sparkdream/federation/v1/genesis.d.ts +3 -3
  137. package/sparkdream/federation/v1/genesis.js +9 -9
  138. package/sparkdream/federation/v1/params.d.ts +64 -13
  139. package/sparkdream/federation/v1/params.js +29 -54
  140. package/sparkdream/federation/v1/query.d.ts +209 -100
  141. package/sparkdream/federation/v1/query.js +216 -71
  142. package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
  143. package/sparkdream/federation/v1/query.lcd.js +11 -6
  144. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  145. package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  146. package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
  147. package/sparkdream/federation/v1/tx.amino.js +20 -20
  148. package/sparkdream/federation/v1/tx.d.ts +479 -352
  149. package/sparkdream/federation/v1/tx.js +1147 -1106
  150. package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
  151. package/sparkdream/federation/v1/tx.registry.js +73 -73
  152. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
  153. package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
  154. package/sparkdream/federation/v1/types.d.ts +307 -41
  155. package/sparkdream/federation/v1/types.js +360 -100
  156. package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
  157. package/sparkdream/federation/v1/verifier_activity.js +13 -1
  158. package/sparkdream/forum/v1/params.d.ts +309 -62
  159. package/sparkdream/forum/v1/params.js +389 -148
  160. package/sparkdream/forum/v1/post.d.ts +28 -0
  161. package/sparkdream/forum/v1/post.js +25 -1
  162. package/sparkdream/forum/v1/tx.d.ts +291 -0
  163. package/sparkdream/forum/v1/tx.js +462 -2
  164. package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
  165. package/sparkdream/forum/v1/tx.registry.js +55 -1
  166. package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
  167. package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
  168. package/sparkdream/forum/v1/types.d.ts +247 -0
  169. package/sparkdream/forum/v1/types.js +356 -1
  170. package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
  171. package/sparkdream/forum/v1/user_rate_limit.js +41 -2
  172. package/sparkdream/guardian/module/v1/module.d.ts +74 -0
  173. package/sparkdream/guardian/module/v1/module.js +71 -0
  174. package/sparkdream/guardian/v1/query.d.ts +88 -0
  175. package/sparkdream/guardian/v1/query.js +131 -0
  176. package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
  177. package/sparkdream/guardian/v1/query.lcd.js +17 -0
  178. package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
  179. package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
  180. package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
  181. package/sparkdream/guardian/v1/tx.amino.js +12 -0
  182. package/sparkdream/guardian/v1/tx.d.ts +138 -0
  183. package/sparkdream/guardian/v1/tx.js +181 -0
  184. package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
  185. package/sparkdream/guardian/v1/tx.registry.js +37 -0
  186. package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
  187. package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
  188. package/sparkdream/identity/module/v1/module.d.ts +54 -0
  189. package/sparkdream/identity/module/v1/module.js +74 -0
  190. package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
  191. package/sparkdream/identity/v1/chain_identity.js +202 -0
  192. package/sparkdream/identity/v1/genesis.d.ts +65 -0
  193. package/sparkdream/identity/v1/genesis.js +87 -0
  194. package/sparkdream/identity/v1/query.d.ts +243 -0
  195. package/sparkdream/identity/v1/query.js +375 -0
  196. package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
  197. package/sparkdream/identity/v1/query.lcd.js +25 -0
  198. package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
  199. package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
  200. package/sparkdream/lcd.d.ts +9 -0
  201. package/sparkdream/lcd.js +15 -0
  202. package/sparkdream/name/v1/params.d.ts +25 -8
  203. package/sparkdream/name/v1/params.js +19 -18
  204. package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
  205. package/sparkdream/rep/v1/bonded_role.js +48 -2
  206. package/sparkdream/rep/v1/member.d.ts +134 -0
  207. package/sparkdream/rep/v1/member.js +210 -2
  208. package/sparkdream/rep/v1/tag.d.ts +15 -2
  209. package/sparkdream/rep/v1/tag.js +6 -13
  210. package/sparkdream/rpc.query.d.ts +34 -2
  211. package/sparkdream/rpc.query.js +9 -0
  212. package/sparkdream/rpc.tx.d.ts +6 -0
  213. package/sparkdream/rpc.tx.js +6 -0
  214. package/sparkdream/service/module/v1/module.d.ts +54 -0
  215. package/sparkdream/service/module/v1/module.js +74 -0
  216. package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
  217. package/sparkdream/service/v1/controller_transfer_case.js +158 -0
  218. package/sparkdream/service/v1/genesis.d.ts +172 -0
  219. package/sparkdream/service/v1/genesis.js +243 -0
  220. package/sparkdream/service/v1/operator.d.ts +215 -0
  221. package/sparkdream/service/v1/operator.js +253 -0
  222. package/sparkdream/service/v1/params.d.ts +346 -0
  223. package/sparkdream/service/v1/params.js +358 -0
  224. package/sparkdream/service/v1/query.d.ts +964 -0
  225. package/sparkdream/service/v1/query.js +1585 -0
  226. package/sparkdream/service/v1/query.lcd.d.ts +18 -0
  227. package/sparkdream/service/v1/query.lcd.js +111 -0
  228. package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
  229. package/sparkdream/service/v1/query.rpc.Query.js +114 -0
  230. package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
  231. package/sparkdream/service/v1/refile_cooldown.js +124 -0
  232. package/sparkdream/service/v1/report.d.ts +174 -0
  233. package/sparkdream/service/v1/report.js +215 -0
  234. package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
  235. package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
  236. package/sparkdream/service/v1/service_type_config.d.ts +222 -0
  237. package/sparkdream/service/v1/service_type_config.js +269 -0
  238. package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
  239. package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
  240. package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
  241. package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
  242. package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
  243. package/sparkdream/service/v1/tier1_last_slash.js +124 -0
  244. package/sparkdream/service/v1/tx.amino.d.ts +68 -0
  245. package/sparkdream/service/v1/tx.amino.js +72 -0
  246. package/sparkdream/service/v1/tx.d.ts +1264 -0
  247. package/sparkdream/service/v1/tx.js +2127 -0
  248. package/sparkdream/service/v1/tx.registry.d.ts +169 -0
  249. package/sparkdream/service/v1/tx.registry.js +253 -0
  250. package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
  251. package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
  252. package/sparkdream/service/v1/types.d.ts +94 -0
  253. package/sparkdream/service/v1/types.js +370 -0
  254. package/sparkdream/session/v1/genesis.d.ts +93 -9
  255. package/sparkdream/session/v1/genesis.js +137 -11
  256. package/sparkdream/session/v1/grant.d.ts +517 -0
  257. package/sparkdream/session/v1/grant.js +1027 -0
  258. package/sparkdream/session/v1/params.d.ts +338 -7
  259. package/sparkdream/session/v1/params.js +543 -19
  260. package/sparkdream/session/v1/query.d.ts +265 -0
  261. package/sparkdream/session/v1/query.js +488 -1
  262. package/sparkdream/session/v1/query.lcd.d.ts +4 -1
  263. package/sparkdream/session/v1/query.lcd.js +41 -3
  264. package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
  265. package/sparkdream/session/v1/query.rpc.Query.js +35 -3
  266. package/sparkdream/session/v1/session.d.ts +18 -0
  267. package/sparkdream/session/v1/session.js +6 -0
  268. package/sparkdream/session/v1/tx.d.ts +660 -0
  269. package/sparkdream/session/v1/tx.js +1067 -1
  270. package/sparkdream/session/v1/tx.registry.d.ts +73 -1
  271. package/sparkdream/session/v1/tx.registry.js +109 -1
  272. package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
  273. package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
  274. package/tendermint/bundle.d.ts +844 -844
  275. package/tendermint/bundle.js +20 -20
@@ -1,5 +1,5 @@
1
- import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgUpdatePost, MsgDeletePost, MsgHidePost, MsgUnhidePost, MsgCreateReply, MsgUpdateReply, MsgDeleteReply, MsgHideReply, MsgUnhideReply, MsgReact, MsgRemoveReaction, MsgPinPost, MsgPinReply } from "./tx";
2
- export const registry = [["/sparkdream.blog.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.blog.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.blog.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.blog.v1.MsgUpdatePost", MsgUpdatePost], ["/sparkdream.blog.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.blog.v1.MsgHidePost", MsgHidePost], ["/sparkdream.blog.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.blog.v1.MsgCreateReply", MsgCreateReply], ["/sparkdream.blog.v1.MsgUpdateReply", MsgUpdateReply], ["/sparkdream.blog.v1.MsgDeleteReply", MsgDeleteReply], ["/sparkdream.blog.v1.MsgHideReply", MsgHideReply], ["/sparkdream.blog.v1.MsgUnhideReply", MsgUnhideReply], ["/sparkdream.blog.v1.MsgReact", MsgReact], ["/sparkdream.blog.v1.MsgRemoveReaction", MsgRemoveReaction], ["/sparkdream.blog.v1.MsgPinPost", MsgPinPost], ["/sparkdream.blog.v1.MsgPinReply", MsgPinReply]];
1
+ import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgUpdatePost, MsgDeletePost, MsgHidePost, MsgUnhidePost, MsgCreateReply, MsgUpdateReply, MsgDeleteReply, MsgHideReply, MsgUnhideReply, MsgReact, MsgRemoveReaction, MsgMakePostPermanent, MsgMakeReplyPermanent, MsgPinPost, MsgUnpinPost, MsgPinReply, MsgUnpinReply } from "./tx";
2
+ export const registry = [["/sparkdream.blog.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.blog.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.blog.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.blog.v1.MsgUpdatePost", MsgUpdatePost], ["/sparkdream.blog.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.blog.v1.MsgHidePost", MsgHidePost], ["/sparkdream.blog.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.blog.v1.MsgCreateReply", MsgCreateReply], ["/sparkdream.blog.v1.MsgUpdateReply", MsgUpdateReply], ["/sparkdream.blog.v1.MsgDeleteReply", MsgDeleteReply], ["/sparkdream.blog.v1.MsgHideReply", MsgHideReply], ["/sparkdream.blog.v1.MsgUnhideReply", MsgUnhideReply], ["/sparkdream.blog.v1.MsgReact", MsgReact], ["/sparkdream.blog.v1.MsgRemoveReaction", MsgRemoveReaction], ["/sparkdream.blog.v1.MsgMakePostPermanent", MsgMakePostPermanent], ["/sparkdream.blog.v1.MsgMakeReplyPermanent", MsgMakeReplyPermanent], ["/sparkdream.blog.v1.MsgPinPost", MsgPinPost], ["/sparkdream.blog.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.blog.v1.MsgPinReply", MsgPinReply], ["/sparkdream.blog.v1.MsgUnpinReply", MsgUnpinReply]];
3
3
  export const load = (protoRegistry) => {
4
4
  registry.forEach(([typeUrl, mod]) => {
5
5
  protoRegistry.register(typeUrl, mod);
@@ -91,17 +91,41 @@ export const MessageComposer = {
91
91
  value: MsgRemoveReaction.encode(value).finish()
92
92
  };
93
93
  },
94
+ makePostPermanent(value) {
95
+ return {
96
+ typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanent",
97
+ value: MsgMakePostPermanent.encode(value).finish()
98
+ };
99
+ },
100
+ makeReplyPermanent(value) {
101
+ return {
102
+ typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanent",
103
+ value: MsgMakeReplyPermanent.encode(value).finish()
104
+ };
105
+ },
94
106
  pinPost(value) {
95
107
  return {
96
108
  typeUrl: "/sparkdream.blog.v1.MsgPinPost",
97
109
  value: MsgPinPost.encode(value).finish()
98
110
  };
99
111
  },
112
+ unpinPost(value) {
113
+ return {
114
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinPost",
115
+ value: MsgUnpinPost.encode(value).finish()
116
+ };
117
+ },
100
118
  pinReply(value) {
101
119
  return {
102
120
  typeUrl: "/sparkdream.blog.v1.MsgPinReply",
103
121
  value: MsgPinReply.encode(value).finish()
104
122
  };
123
+ },
124
+ unpinReply(value) {
125
+ return {
126
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinReply",
127
+ value: MsgUnpinReply.encode(value).finish()
128
+ };
105
129
  }
106
130
  },
107
131
  withTypeUrl: {
@@ -189,17 +213,41 @@ export const MessageComposer = {
189
213
  value
190
214
  };
191
215
  },
216
+ makePostPermanent(value) {
217
+ return {
218
+ typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanent",
219
+ value
220
+ };
221
+ },
222
+ makeReplyPermanent(value) {
223
+ return {
224
+ typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanent",
225
+ value
226
+ };
227
+ },
192
228
  pinPost(value) {
193
229
  return {
194
230
  typeUrl: "/sparkdream.blog.v1.MsgPinPost",
195
231
  value
196
232
  };
197
233
  },
234
+ unpinPost(value) {
235
+ return {
236
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinPost",
237
+ value
238
+ };
239
+ },
198
240
  pinReply(value) {
199
241
  return {
200
242
  typeUrl: "/sparkdream.blog.v1.MsgPinReply",
201
243
  value
202
244
  };
245
+ },
246
+ unpinReply(value) {
247
+ return {
248
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinReply",
249
+ value
250
+ };
203
251
  }
204
252
  },
205
253
  fromPartial: {
@@ -287,17 +335,41 @@ export const MessageComposer = {
287
335
  value: MsgRemoveReaction.fromPartial(value)
288
336
  };
289
337
  },
338
+ makePostPermanent(value) {
339
+ return {
340
+ typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanent",
341
+ value: MsgMakePostPermanent.fromPartial(value)
342
+ };
343
+ },
344
+ makeReplyPermanent(value) {
345
+ return {
346
+ typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanent",
347
+ value: MsgMakeReplyPermanent.fromPartial(value)
348
+ };
349
+ },
290
350
  pinPost(value) {
291
351
  return {
292
352
  typeUrl: "/sparkdream.blog.v1.MsgPinPost",
293
353
  value: MsgPinPost.fromPartial(value)
294
354
  };
295
355
  },
356
+ unpinPost(value) {
357
+ return {
358
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinPost",
359
+ value: MsgUnpinPost.fromPartial(value)
360
+ };
361
+ },
296
362
  pinReply(value) {
297
363
  return {
298
364
  typeUrl: "/sparkdream.blog.v1.MsgPinReply",
299
365
  value: MsgPinReply.fromPartial(value)
300
366
  };
367
+ },
368
+ unpinReply(value) {
369
+ return {
370
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinReply",
371
+ value: MsgUnpinReply.fromPartial(value)
372
+ };
301
373
  }
302
374
  }
303
375
  };
@@ -1,5 +1,5 @@
1
1
  import { BinaryReader } from "../../../binary";
2
- import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgUpdatePost, MsgUpdatePostResponse, MsgDeletePost, MsgDeletePostResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgCreateReply, MsgCreateReplyResponse, MsgUpdateReply, MsgUpdateReplyResponse, MsgDeleteReply, MsgDeleteReplyResponse, MsgHideReply, MsgHideReplyResponse, MsgUnhideReply, MsgUnhideReplyResponse, MsgReact, MsgReactResponse, MsgRemoveReaction, MsgRemoveReactionResponse, MsgPinPost, MsgPinPostResponse, MsgPinReply, MsgPinReplyResponse } from "./tx";
2
+ import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgUpdatePost, MsgUpdatePostResponse, MsgDeletePost, MsgDeletePostResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgCreateReply, MsgCreateReplyResponse, MsgUpdateReply, MsgUpdateReplyResponse, MsgDeleteReply, MsgDeleteReplyResponse, MsgHideReply, MsgHideReplyResponse, MsgUnhideReply, MsgUnhideReplyResponse, MsgReact, MsgReactResponse, MsgRemoveReaction, MsgRemoveReactionResponse, MsgMakePostPermanent, MsgMakePostPermanentResponse, MsgMakeReplyPermanent, MsgMakeReplyPermanentResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse } from "./tx";
3
3
  export class MsgClientImpl {
4
4
  rpc;
5
5
  constructor(rpc) {
@@ -91,18 +91,48 @@ export class MsgClientImpl {
91
91
  const promise = this.rpc.request("sparkdream.blog.v1.Msg", "RemoveReaction", data);
92
92
  return promise.then(data => MsgRemoveReactionResponse.decode(new BinaryReader(data)));
93
93
  };
94
- /* PinPost pins an ephemeral post, making it permanent. */
94
+ /* MakePostPermanent promotes an ephemeral post to permanent by clearing
95
+ expires_at and removing the expiry-index entry. Idempotent on already-
96
+ permanent posts. Display markers (pinned_by) are untouched. Gated on
97
+ params.pin_min_trust_level and shares the per-day pin rate-limit counter. */
98
+ makePostPermanent = async (request) => {
99
+ const data = MsgMakePostPermanent.encode(request).finish();
100
+ const promise = this.rpc.request("sparkdream.blog.v1.Msg", "MakePostPermanent", data);
101
+ return promise.then(data => MsgMakePostPermanentResponse.decode(new BinaryReader(data)));
102
+ };
103
+ /* MakeReplyPermanent mirrors MakePostPermanent for replies. */
104
+ makeReplyPermanent = async (request) => {
105
+ const data = MsgMakeReplyPermanent.encode(request).finish();
106
+ const promise = this.rpc.request("sparkdream.blog.v1.Msg", "MakeReplyPermanent", data);
107
+ return promise.then(data => MsgMakeReplyPermanentResponse.decode(new BinaryReader(data)));
108
+ };
109
+ /* PinPost sets the pinned marker on a post (curator "feature this"). The
110
+ post must already be permanent — call MakePostPermanent first to promote
111
+ ephemeral content. Gated on params.pin_min_trust_level. */
95
112
  pinPost = async (request) => {
96
113
  const data = MsgPinPost.encode(request).finish();
97
114
  const promise = this.rpc.request("sparkdream.blog.v1.Msg", "PinPost", data);
98
115
  return promise.then(data => MsgPinPostResponse.decode(new BinaryReader(data)));
99
116
  };
100
- /* PinReply pins an ephemeral reply, making it permanent. */
117
+ /* UnpinPost clears the pinned marker on a post. The post stays permanent.
118
+ Gated on the same trust level as Pin. */
119
+ unpinPost = async (request) => {
120
+ const data = MsgUnpinPost.encode(request).finish();
121
+ const promise = this.rpc.request("sparkdream.blog.v1.Msg", "UnpinPost", data);
122
+ return promise.then(data => MsgUnpinPostResponse.decode(new BinaryReader(data)));
123
+ };
124
+ /* PinReply mirrors PinPost. Requires the reply to already be permanent. */
101
125
  pinReply = async (request) => {
102
126
  const data = MsgPinReply.encode(request).finish();
103
127
  const promise = this.rpc.request("sparkdream.blog.v1.Msg", "PinReply", data);
104
128
  return promise.then(data => MsgPinReplyResponse.decode(new BinaryReader(data)));
105
129
  };
130
+ /* UnpinReply clears the pinned marker on a reply. The reply stays permanent. */
131
+ unpinReply = async (request) => {
132
+ const data = MsgUnpinReply.encode(request).finish();
133
+ const promise = this.rpc.request("sparkdream.blog.v1.Msg", "UnpinReply", data);
134
+ return promise.then(data => MsgUnpinReplyResponse.decode(new BinaryReader(data)));
135
+ };
106
136
  }
107
137
  export const createClientImpl = (rpc) => {
108
138
  return new MsgClientImpl(rpc);