@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
1
  import { BinaryReader } from "../../../binary";
2
- import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgEditPost, MsgEditPostResponse, MsgDeletePost, MsgDeletePostResponse, MsgFreezeThread, MsgFreezeThreadResponse, MsgUnarchiveThread, MsgUnarchiveThreadResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgLockThread, MsgLockThreadResponse, MsgUnlockThread, MsgUnlockThreadResponse, MsgMoveThread, MsgMoveThreadResponse, MsgFollowThread, MsgFollowThreadResponse, MsgUnfollowThread, MsgUnfollowThreadResponse, MsgUpvotePost, MsgUpvotePostResponse, MsgDownvotePost, MsgDownvotePostResponse, MsgFlagPost, MsgFlagPostResponse, MsgDismissFlags, MsgDismissFlagsResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgAppealPost, MsgAppealPostResponse, MsgAppealThreadLock, MsgAppealThreadLockResponse, MsgAppealThreadMove, MsgAppealThreadMoveResponse, MsgCreateBounty, MsgCreateBountyResponse, MsgAwardBounty, MsgAwardBountyResponse, MsgIncreaseBounty, MsgIncreaseBountyResponse, MsgCancelBounty, MsgCancelBountyResponse, MsgAssignBountyToReply, MsgAssignBountyToReplyResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse, MsgDisputePin, MsgDisputePinResponse, MsgMarkAcceptedReply, MsgMarkAcceptedReplyResponse, MsgConfirmProposedReply, MsgConfirmProposedReplyResponse, MsgRejectProposedReply, MsgRejectProposedReplyResponse, MsgSetForumPaused, MsgSetForumPausedResponse, MsgSetModerationPaused, MsgSetModerationPausedResponse } from "./tx";
2
+ import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgEditPost, MsgEditPostResponse, MsgDeletePost, MsgDeletePostResponse, MsgFreezeThread, MsgFreezeThreadResponse, MsgUnarchiveThread, MsgUnarchiveThreadResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgMakePostPermanent, MsgMakePostPermanentResponse, MsgLockThread, MsgLockThreadResponse, MsgUnlockThread, MsgUnlockThreadResponse, MsgMoveThread, MsgMoveThreadResponse, MsgFollowThread, MsgFollowThreadResponse, MsgUnfollowThread, MsgUnfollowThreadResponse, MsgUpvotePost, MsgUpvotePostResponse, MsgDownvotePost, MsgDownvotePostResponse, MsgStakePostConviction, MsgStakePostConvictionResponse, MsgReleasePostConviction, MsgReleasePostConvictionResponse, MsgFlagPost, MsgFlagPostResponse, MsgDismissFlags, MsgDismissFlagsResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgAppealPost, MsgAppealPostResponse, MsgAppealThreadLock, MsgAppealThreadLockResponse, MsgAppealThreadMove, MsgAppealThreadMoveResponse, MsgCreateBounty, MsgCreateBountyResponse, MsgAwardBounty, MsgAwardBountyResponse, MsgIncreaseBounty, MsgIncreaseBountyResponse, MsgCancelBounty, MsgCancelBountyResponse, MsgAssignBountyToReply, MsgAssignBountyToReplyResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse, MsgDisputePin, MsgDisputePinResponse, MsgMarkAcceptedReply, MsgMarkAcceptedReplyResponse, MsgConfirmProposedReply, MsgConfirmProposedReplyResponse, MsgRejectProposedReply, MsgRejectProposedReplyResponse, MsgSetForumPaused, MsgSetForumPausedResponse, MsgSetModerationPaused, MsgSetModerationPausedResponse } from "./tx";
3
3
  export class MsgClientImpl {
4
4
  rpc;
5
5
  constructor(rpc) {
@@ -61,6 +61,17 @@ export class MsgClientImpl {
61
61
  const promise = this.rpc.request("sparkdream.forum.v1.Msg", "UnpinPost", data);
62
62
  return promise.then(data => MsgUnpinPostResponse.decode(new BinaryReader(data)));
63
63
  };
64
+ /* MakePostPermanent promotes an ephemeral post (root post or reply) to
65
+ permanent by clearing its expiration_time and dropping the matching
66
+ ExpirationQueue / EphemeralByAuthor entries. Strict separation from pin:
67
+ pin is display-only and now refuses ephemeral targets, MakePermanent is
68
+ the lifecycle change. Gated on make_permanent_min_trust_level (default
69
+ PROVISIONAL) and consumes one slot from the daily post-rate limit. */
70
+ makePostPermanent = async (request) => {
71
+ const data = MsgMakePostPermanent.encode(request).finish();
72
+ const promise = this.rpc.request("sparkdream.forum.v1.Msg", "MakePostPermanent", data);
73
+ return promise.then(data => MsgMakePostPermanentResponse.decode(new BinaryReader(data)));
74
+ };
64
75
  /* LockThread defines the LockThread RPC. */
65
76
  lockThread = async (request) => {
66
77
  const data = MsgLockThread.encode(request).finish();
@@ -103,6 +114,24 @@ export class MsgClientImpl {
103
114
  const promise = this.rpc.request("sparkdream.forum.v1.Msg", "DownvotePost", data);
104
115
  return promise.then(data => MsgDownvotePostResponse.decode(new BinaryReader(data)));
105
116
  };
117
+ /* StakePostConviction opens a PostConvictionStake: locks the staker's DREAM
118
+ and starts EndBlocker-driven per-tag rep accrual for the post's author.
119
+ Caller must be ESTABLISHED+, must not be the post's author, and must
120
+ commit at least Params.min_post_conviction_stake DREAM. */
121
+ stakePostConviction = async (request) => {
122
+ const data = MsgStakePostConviction.encode(request).finish();
123
+ const promise = this.rpc.request("sparkdream.forum.v1.Msg", "StakePostConviction", data);
124
+ return promise.then(data => MsgStakePostConvictionResponse.decode(new BinaryReader(data)));
125
+ };
126
+ /* ReleasePostConviction closes a previously-opened PostConvictionStake
127
+ after post_conviction_lock_seconds has elapsed. The non-slashed portion
128
+ of the staker's DREAM is unlocked; any rep credited to the author stays
129
+ (subject to the slash path on confirmed hide). */
130
+ releasePostConviction = async (request) => {
131
+ const data = MsgReleasePostConviction.encode(request).finish();
132
+ const promise = this.rpc.request("sparkdream.forum.v1.Msg", "ReleasePostConviction", data);
133
+ return promise.then(data => MsgReleasePostConvictionResponse.decode(new BinaryReader(data)));
134
+ };
106
135
  /* FlagPost defines the FlagPost RPC. */
107
136
  flagPost = async (request) => {
108
137
  const data = MsgFlagPost.encode(request).finish();
@@ -1,5 +1,6 @@
1
1
  //@ts-nocheck
2
2
  import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ import { Decimal } from "@interchainjs/math";
3
4
  /** PostStatus represents the status of a post. */
4
5
  export var PostStatus;
5
6
  (function (PostStatus) {
@@ -540,3 +541,357 @@ export const PinnedReplyRecord = {
540
541
  };
541
542
  }
542
543
  };
544
+ function createBaseForumRepEpochCounter() {
545
+ return {
546
+ epochId: BigInt(0),
547
+ accumulated: ""
548
+ };
549
+ }
550
+ /**
551
+ * ForumRepEpochCounter tracks how much forum reputation a single author has
552
+ * earned in a single tag during the current UTC-day epoch. Reset implicitly
553
+ * by comparing epoch_id to floor(block_time / 86400) on read — when the
554
+ * stored epoch_id is stale, the accumulated counter is treated as zero and
555
+ * overwritten on the next credit. Used by the post-conviction accrual loop
556
+ * to enforce Params.max_forum_rep_per_tag_per_epoch.
557
+ * @name ForumRepEpochCounter
558
+ * @package sparkdream.forum.v1
559
+ * @see proto type: sparkdream.forum.v1.ForumRepEpochCounter
560
+ */
561
+ export const ForumRepEpochCounter = {
562
+ typeUrl: "/sparkdream.forum.v1.ForumRepEpochCounter",
563
+ encode(message, writer = BinaryWriter.create()) {
564
+ if (message.epochId !== BigInt(0)) {
565
+ writer.uint32(8).int64(message.epochId);
566
+ }
567
+ if (message.accumulated !== "") {
568
+ writer.uint32(18).string(Decimal.fromUserInput(message.accumulated, 18).atomics);
569
+ }
570
+ return writer;
571
+ },
572
+ decode(input, length) {
573
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
574
+ let end = length === undefined ? reader.len : reader.pos + length;
575
+ const message = createBaseForumRepEpochCounter();
576
+ while (reader.pos < end) {
577
+ const tag = reader.uint32();
578
+ switch (tag >>> 3) {
579
+ case 1:
580
+ message.epochId = reader.int64();
581
+ break;
582
+ case 2:
583
+ message.accumulated = Decimal.fromAtomics(reader.string(), 18).toString();
584
+ break;
585
+ default:
586
+ reader.skipType(tag & 7);
587
+ break;
588
+ }
589
+ }
590
+ return message;
591
+ },
592
+ fromPartial(object) {
593
+ const message = createBaseForumRepEpochCounter();
594
+ message.epochId = object.epochId !== undefined && object.epochId !== null ? BigInt(object.epochId.toString()) : BigInt(0);
595
+ message.accumulated = object.accumulated ?? "";
596
+ return message;
597
+ },
598
+ fromAmino(object) {
599
+ const message = createBaseForumRepEpochCounter();
600
+ if (object.epoch_id !== undefined && object.epoch_id !== null) {
601
+ message.epochId = BigInt(object.epoch_id);
602
+ }
603
+ if (object.accumulated !== undefined && object.accumulated !== null) {
604
+ message.accumulated = object.accumulated;
605
+ }
606
+ return message;
607
+ },
608
+ toAmino(message) {
609
+ const obj = {};
610
+ obj.epoch_id = message.epochId !== BigInt(0) ? message.epochId?.toString() : undefined;
611
+ obj.accumulated = message.accumulated === "" ? undefined : message.accumulated;
612
+ return obj;
613
+ },
614
+ fromAminoMsg(object) {
615
+ return ForumRepEpochCounter.fromAmino(object.value);
616
+ },
617
+ fromProtoMsg(message) {
618
+ return ForumRepEpochCounter.decode(message.value);
619
+ },
620
+ toProto(message) {
621
+ return ForumRepEpochCounter.encode(message).finish();
622
+ },
623
+ toProtoMsg(message) {
624
+ return {
625
+ typeUrl: "/sparkdream.forum.v1.ForumRepEpochCounter",
626
+ value: ForumRepEpochCounter.encode(message).finish()
627
+ };
628
+ }
629
+ };
630
+ function createBasePostConvictionStake_AccruedRepPerTagEntry() {
631
+ return {
632
+ key: "",
633
+ value: ""
634
+ };
635
+ }
636
+ /**
637
+ * @name PostConvictionStake_AccruedRepPerTagEntry
638
+ * @package sparkdream.forum.v1
639
+ * @see proto type: sparkdream.forum.v1.undefined
640
+ */
641
+ export const PostConvictionStake_AccruedRepPerTagEntry = {
642
+ encode(message, writer = BinaryWriter.create()) {
643
+ if (message.key !== "") {
644
+ writer.uint32(10).string(message.key);
645
+ }
646
+ if (message.value !== "") {
647
+ writer.uint32(18).string(message.value);
648
+ }
649
+ return writer;
650
+ },
651
+ decode(input, length) {
652
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
653
+ let end = length === undefined ? reader.len : reader.pos + length;
654
+ const message = createBasePostConvictionStake_AccruedRepPerTagEntry();
655
+ while (reader.pos < end) {
656
+ const tag = reader.uint32();
657
+ switch (tag >>> 3) {
658
+ case 1:
659
+ message.key = reader.string();
660
+ break;
661
+ case 2:
662
+ message.value = reader.string();
663
+ break;
664
+ default:
665
+ reader.skipType(tag & 7);
666
+ break;
667
+ }
668
+ }
669
+ return message;
670
+ },
671
+ fromPartial(object) {
672
+ const message = createBasePostConvictionStake_AccruedRepPerTagEntry();
673
+ message.key = object.key ?? "";
674
+ message.value = object.value ?? "";
675
+ return message;
676
+ },
677
+ fromAmino(object) {
678
+ const message = createBasePostConvictionStake_AccruedRepPerTagEntry();
679
+ if (object.key !== undefined && object.key !== null) {
680
+ message.key = object.key;
681
+ }
682
+ if (object.value !== undefined && object.value !== null) {
683
+ message.value = object.value;
684
+ }
685
+ return message;
686
+ },
687
+ toAmino(message) {
688
+ const obj = {};
689
+ obj.key = message.key === "" ? undefined : message.key;
690
+ obj.value = message.value === "" ? undefined : message.value;
691
+ return obj;
692
+ },
693
+ fromAminoMsg(object) {
694
+ return PostConvictionStake_AccruedRepPerTagEntry.fromAmino(object.value);
695
+ },
696
+ fromProtoMsg(message) {
697
+ return PostConvictionStake_AccruedRepPerTagEntry.decode(message.value);
698
+ },
699
+ toProto(message) {
700
+ return PostConvictionStake_AccruedRepPerTagEntry.encode(message).finish();
701
+ }
702
+ };
703
+ function createBasePostConvictionStake() {
704
+ return {
705
+ id: BigInt(0),
706
+ staker: "",
707
+ postId: BigInt(0),
708
+ amount: "",
709
+ stakedAt: BigInt(0),
710
+ unlocksAt: BigInt(0),
711
+ accruedRepPerTag: {},
712
+ lastAccrualAt: BigInt(0),
713
+ released: false
714
+ };
715
+ }
716
+ /**
717
+ * PostConvictionStake records an ESTABLISHED+ member's DREAM lock backing a
718
+ * post's author. While the stake is active, the EndBlocker streams per-tag
719
+ * reputation to the author proportional to the stake's share of total active
720
+ * stakes on the post (split evenly across the post's tags). On confirmed
721
+ * sentinel hide (ExpireHiddenPosts), the accrued rep is clawed back from the
722
+ * author per tag and a fraction of the staker's locked DREAM is slashed
723
+ * (staker_slash_bps) — both staker and author endorsed harm.
724
+ *
725
+ * Stakers cannot stake on their own posts. Stakes are released after
726
+ * unlocks_at via MsgReleasePostConviction; LockDREAM/UnlockDREAM bypass the
727
+ * 3% transfer tax because it is internal member-balance rebalancing, not a
728
+ * transfer.
729
+ * @name PostConvictionStake
730
+ * @package sparkdream.forum.v1
731
+ * @see proto type: sparkdream.forum.v1.PostConvictionStake
732
+ */
733
+ export const PostConvictionStake = {
734
+ typeUrl: "/sparkdream.forum.v1.PostConvictionStake",
735
+ encode(message, writer = BinaryWriter.create()) {
736
+ if (message.id !== BigInt(0)) {
737
+ writer.uint32(8).uint64(message.id);
738
+ }
739
+ if (message.staker !== "") {
740
+ writer.uint32(18).string(message.staker);
741
+ }
742
+ if (message.postId !== BigInt(0)) {
743
+ writer.uint32(24).uint64(message.postId);
744
+ }
745
+ if (message.amount !== "") {
746
+ writer.uint32(34).string(message.amount);
747
+ }
748
+ if (message.stakedAt !== BigInt(0)) {
749
+ writer.uint32(40).int64(message.stakedAt);
750
+ }
751
+ if (message.unlocksAt !== BigInt(0)) {
752
+ writer.uint32(48).int64(message.unlocksAt);
753
+ }
754
+ Object.entries(message.accruedRepPerTag).forEach(([key, value]) => {
755
+ PostConvictionStake_AccruedRepPerTagEntry.encode({
756
+ key: key,
757
+ value
758
+ }, writer.uint32(58).fork()).ldelim();
759
+ });
760
+ if (message.lastAccrualAt !== BigInt(0)) {
761
+ writer.uint32(64).int64(message.lastAccrualAt);
762
+ }
763
+ if (message.released === true) {
764
+ writer.uint32(72).bool(message.released);
765
+ }
766
+ return writer;
767
+ },
768
+ decode(input, length) {
769
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
770
+ let end = length === undefined ? reader.len : reader.pos + length;
771
+ const message = createBasePostConvictionStake();
772
+ while (reader.pos < end) {
773
+ const tag = reader.uint32();
774
+ switch (tag >>> 3) {
775
+ case 1:
776
+ message.id = reader.uint64();
777
+ break;
778
+ case 2:
779
+ message.staker = reader.string();
780
+ break;
781
+ case 3:
782
+ message.postId = reader.uint64();
783
+ break;
784
+ case 4:
785
+ message.amount = reader.string();
786
+ break;
787
+ case 5:
788
+ message.stakedAt = reader.int64();
789
+ break;
790
+ case 6:
791
+ message.unlocksAt = reader.int64();
792
+ break;
793
+ case 7:
794
+ const entry7 = PostConvictionStake_AccruedRepPerTagEntry.decode(reader, reader.uint32());
795
+ if (entry7.value !== undefined) {
796
+ message.accruedRepPerTag[entry7.key] = entry7.value;
797
+ }
798
+ break;
799
+ case 8:
800
+ message.lastAccrualAt = reader.int64();
801
+ break;
802
+ case 9:
803
+ message.released = reader.bool();
804
+ break;
805
+ default:
806
+ reader.skipType(tag & 7);
807
+ break;
808
+ }
809
+ }
810
+ return message;
811
+ },
812
+ fromPartial(object) {
813
+ const message = createBasePostConvictionStake();
814
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
815
+ message.staker = object.staker ?? "";
816
+ message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
817
+ message.amount = object.amount ?? "";
818
+ message.stakedAt = object.stakedAt !== undefined && object.stakedAt !== null ? BigInt(object.stakedAt.toString()) : BigInt(0);
819
+ message.unlocksAt = object.unlocksAt !== undefined && object.unlocksAt !== null ? BigInt(object.unlocksAt.toString()) : BigInt(0);
820
+ message.accruedRepPerTag = Object.entries(object.accruedRepPerTag ?? {}).reduce((acc, [key, value]) => {
821
+ if (value !== undefined) {
822
+ acc[key] = String(value);
823
+ }
824
+ return acc;
825
+ }, {});
826
+ message.lastAccrualAt = object.lastAccrualAt !== undefined && object.lastAccrualAt !== null ? BigInt(object.lastAccrualAt.toString()) : BigInt(0);
827
+ message.released = object.released ?? false;
828
+ return message;
829
+ },
830
+ fromAmino(object) {
831
+ const message = createBasePostConvictionStake();
832
+ if (object.id !== undefined && object.id !== null) {
833
+ message.id = BigInt(object.id);
834
+ }
835
+ if (object.staker !== undefined && object.staker !== null) {
836
+ message.staker = object.staker;
837
+ }
838
+ if (object.post_id !== undefined && object.post_id !== null) {
839
+ message.postId = BigInt(object.post_id);
840
+ }
841
+ if (object.amount !== undefined && object.amount !== null) {
842
+ message.amount = object.amount;
843
+ }
844
+ if (object.staked_at !== undefined && object.staked_at !== null) {
845
+ message.stakedAt = BigInt(object.staked_at);
846
+ }
847
+ if (object.unlocks_at !== undefined && object.unlocks_at !== null) {
848
+ message.unlocksAt = BigInt(object.unlocks_at);
849
+ }
850
+ message.accruedRepPerTag = Object.entries(object.accrued_rep_per_tag ?? {}).reduce((acc, [key, value]) => {
851
+ if (value !== undefined) {
852
+ acc[key] = String(value);
853
+ }
854
+ return acc;
855
+ }, {});
856
+ if (object.last_accrual_at !== undefined && object.last_accrual_at !== null) {
857
+ message.lastAccrualAt = BigInt(object.last_accrual_at);
858
+ }
859
+ if (object.released !== undefined && object.released !== null) {
860
+ message.released = object.released;
861
+ }
862
+ return message;
863
+ },
864
+ toAmino(message) {
865
+ const obj = {};
866
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
867
+ obj.staker = message.staker === "" ? undefined : message.staker;
868
+ obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
869
+ obj.amount = message.amount === "" ? undefined : message.amount;
870
+ obj.staked_at = message.stakedAt !== BigInt(0) ? message.stakedAt?.toString() : undefined;
871
+ obj.unlocks_at = message.unlocksAt !== BigInt(0) ? message.unlocksAt?.toString() : undefined;
872
+ obj.accrued_rep_per_tag = {};
873
+ if (message.accruedRepPerTag) {
874
+ Object.entries(message.accruedRepPerTag).forEach(([k, v]) => {
875
+ obj.accrued_rep_per_tag[k] = v;
876
+ });
877
+ }
878
+ obj.last_accrual_at = message.lastAccrualAt !== BigInt(0) ? message.lastAccrualAt?.toString() : undefined;
879
+ obj.released = message.released === false ? undefined : message.released;
880
+ return obj;
881
+ },
882
+ fromAminoMsg(object) {
883
+ return PostConvictionStake.fromAmino(object.value);
884
+ },
885
+ fromProtoMsg(message) {
886
+ return PostConvictionStake.decode(message.value);
887
+ },
888
+ toProto(message) {
889
+ return PostConvictionStake.encode(message).finish();
890
+ },
891
+ toProtoMsg(message) {
892
+ return {
893
+ typeUrl: "/sparkdream.forum.v1.PostConvictionStake",
894
+ value: PostConvictionStake.encode(message).finish()
895
+ };
896
+ }
897
+ };
@@ -6,11 +6,17 @@ function createBaseUserRateLimit() {
6
6
  currentEpochCount: BigInt(0),
7
7
  previousEpochCount: BigInt(0),
8
8
  currentEpochStart: BigInt(0),
9
- lastPostTime: BigInt(0)
9
+ lastPostTime: BigInt(0),
10
+ makePermanentCurrentEpochCount: BigInt(0),
11
+ makePermanentPreviousEpochCount: BigInt(0),
12
+ makePermanentCurrentEpochStart: BigInt(0)
10
13
  };
11
14
  }
12
15
  /**
13
- * UserRateLimit defines the UserRateLimit message.
16
+ * UserRateLimit defines the UserRateLimit message. Counters are split by
17
+ * action class — the post counter (fields 2-5) bounds CreatePost, the
18
+ * make-permanent counter (fields 6-8) bounds MakePostPermanent. They are
19
+ * kept on the same record to avoid an extra collection lookup per call.
14
20
  * @name UserRateLimit
15
21
  * @package sparkdream.forum.v1
16
22
  * @see proto type: sparkdream.forum.v1.UserRateLimit
@@ -33,6 +39,15 @@ export const UserRateLimit = {
33
39
  if (message.lastPostTime !== BigInt(0)) {
34
40
  writer.uint32(40).int64(message.lastPostTime);
35
41
  }
42
+ if (message.makePermanentCurrentEpochCount !== BigInt(0)) {
43
+ writer.uint32(48).uint64(message.makePermanentCurrentEpochCount);
44
+ }
45
+ if (message.makePermanentPreviousEpochCount !== BigInt(0)) {
46
+ writer.uint32(56).uint64(message.makePermanentPreviousEpochCount);
47
+ }
48
+ if (message.makePermanentCurrentEpochStart !== BigInt(0)) {
49
+ writer.uint32(64).int64(message.makePermanentCurrentEpochStart);
50
+ }
36
51
  return writer;
37
52
  },
38
53
  decode(input, length) {
@@ -57,6 +72,15 @@ export const UserRateLimit = {
57
72
  case 5:
58
73
  message.lastPostTime = reader.int64();
59
74
  break;
75
+ case 6:
76
+ message.makePermanentCurrentEpochCount = reader.uint64();
77
+ break;
78
+ case 7:
79
+ message.makePermanentPreviousEpochCount = reader.uint64();
80
+ break;
81
+ case 8:
82
+ message.makePermanentCurrentEpochStart = reader.int64();
83
+ break;
60
84
  default:
61
85
  reader.skipType(tag & 7);
62
86
  break;
@@ -71,6 +95,9 @@ export const UserRateLimit = {
71
95
  message.previousEpochCount = object.previousEpochCount !== undefined && object.previousEpochCount !== null ? BigInt(object.previousEpochCount.toString()) : BigInt(0);
72
96
  message.currentEpochStart = object.currentEpochStart !== undefined && object.currentEpochStart !== null ? BigInt(object.currentEpochStart.toString()) : BigInt(0);
73
97
  message.lastPostTime = object.lastPostTime !== undefined && object.lastPostTime !== null ? BigInt(object.lastPostTime.toString()) : BigInt(0);
98
+ message.makePermanentCurrentEpochCount = object.makePermanentCurrentEpochCount !== undefined && object.makePermanentCurrentEpochCount !== null ? BigInt(object.makePermanentCurrentEpochCount.toString()) : BigInt(0);
99
+ message.makePermanentPreviousEpochCount = object.makePermanentPreviousEpochCount !== undefined && object.makePermanentPreviousEpochCount !== null ? BigInt(object.makePermanentPreviousEpochCount.toString()) : BigInt(0);
100
+ message.makePermanentCurrentEpochStart = object.makePermanentCurrentEpochStart !== undefined && object.makePermanentCurrentEpochStart !== null ? BigInt(object.makePermanentCurrentEpochStart.toString()) : BigInt(0);
74
101
  return message;
75
102
  },
76
103
  fromAmino(object) {
@@ -90,6 +117,15 @@ export const UserRateLimit = {
90
117
  if (object.last_post_time !== undefined && object.last_post_time !== null) {
91
118
  message.lastPostTime = BigInt(object.last_post_time);
92
119
  }
120
+ if (object.make_permanent_current_epoch_count !== undefined && object.make_permanent_current_epoch_count !== null) {
121
+ message.makePermanentCurrentEpochCount = BigInt(object.make_permanent_current_epoch_count);
122
+ }
123
+ if (object.make_permanent_previous_epoch_count !== undefined && object.make_permanent_previous_epoch_count !== null) {
124
+ message.makePermanentPreviousEpochCount = BigInt(object.make_permanent_previous_epoch_count);
125
+ }
126
+ if (object.make_permanent_current_epoch_start !== undefined && object.make_permanent_current_epoch_start !== null) {
127
+ message.makePermanentCurrentEpochStart = BigInt(object.make_permanent_current_epoch_start);
128
+ }
93
129
  return message;
94
130
  },
95
131
  toAmino(message) {
@@ -99,6 +135,9 @@ export const UserRateLimit = {
99
135
  obj.previous_epoch_count = message.previousEpochCount !== BigInt(0) ? message.previousEpochCount?.toString() : undefined;
100
136
  obj.current_epoch_start = message.currentEpochStart !== BigInt(0) ? message.currentEpochStart?.toString() : undefined;
101
137
  obj.last_post_time = message.lastPostTime !== BigInt(0) ? message.lastPostTime?.toString() : undefined;
138
+ obj.make_permanent_current_epoch_count = message.makePermanentCurrentEpochCount !== BigInt(0) ? message.makePermanentCurrentEpochCount?.toString() : undefined;
139
+ obj.make_permanent_previous_epoch_count = message.makePermanentPreviousEpochCount !== BigInt(0) ? message.makePermanentPreviousEpochCount?.toString() : undefined;
140
+ obj.make_permanent_current_epoch_start = message.makePermanentCurrentEpochStart !== BigInt(0) ? message.makePermanentCurrentEpochStart?.toString() : undefined;
102
141
  return obj;
103
142
  },
104
143
  fromAminoMsg(object) {
@@ -0,0 +1,68 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from "../../../../binary";
3
+ function createBaseModule() {
4
+ return {};
5
+ }
6
+ /**
7
+ * Module is the config object for the guardian module.
8
+ *
9
+ * guardian is a generic authority-gating module. It owns the authority
10
+ * addresses for one or more downstream modules (bank, mint, staking by
11
+ * default) and exposes a single MsgExec wrapper that gov can call to
12
+ * invoke msg-type-specific proxies. Per-msg-type filters reject changes
13
+ * to fields the chain has decided are immutable (e.g., mint inflation
14
+ * parameters, bank native-denom Symbol/Display).
15
+ *
16
+ * See docs/x-identity-spec.md §14.6 for the identity-protection use
17
+ * case, and the implementation-decisions doc for the broader rationale.
18
+ * @name Module
19
+ * @package sparkdream.guardian.module.v1
20
+ * @see proto type: sparkdream.guardian.module.v1.Module
21
+ */
22
+ export const Module = {
23
+ typeUrl: "/sparkdream.guardian.module.v1.Module",
24
+ encode(_, writer = BinaryWriter.create()) {
25
+ return writer;
26
+ },
27
+ decode(input, length) {
28
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
29
+ let end = length === undefined ? reader.len : reader.pos + length;
30
+ const message = createBaseModule();
31
+ while (reader.pos < end) {
32
+ const tag = reader.uint32();
33
+ switch (tag >>> 3) {
34
+ default:
35
+ reader.skipType(tag & 7);
36
+ break;
37
+ }
38
+ }
39
+ return message;
40
+ },
41
+ fromPartial(_) {
42
+ const message = createBaseModule();
43
+ return message;
44
+ },
45
+ fromAmino(_) {
46
+ const message = createBaseModule();
47
+ return message;
48
+ },
49
+ toAmino(_) {
50
+ const obj = {};
51
+ return obj;
52
+ },
53
+ fromAminoMsg(object) {
54
+ return Module.fromAmino(object.value);
55
+ },
56
+ fromProtoMsg(message) {
57
+ return Module.decode(message.value);
58
+ },
59
+ toProto(message) {
60
+ return Module.encode(message).finish();
61
+ },
62
+ toProtoMsg(message) {
63
+ return {
64
+ typeUrl: "/sparkdream.guardian.module.v1.Module",
65
+ value: Module.encode(message).finish()
66
+ };
67
+ }
68
+ };