@sparkdreamnft/sparkdreamjs 0.0.13 → 0.0.14

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.
@@ -124,6 +124,17 @@ class MsgClientImpl {
124
124
  const promise = this.rpc.request("sparkdream.forum.v1.Msg", "HidePost", data);
125
125
  return promise.then(data => tx_1.MsgHidePostResponse.decode(new binary_1.BinaryReader(data)));
126
126
  };
127
+ /* UnhidePost reverses a prior MsgHidePost. Authorized for (a) the sentinel
128
+ who originally hid the post, but only within sentinel_unhide_window
129
+ seconds of the hide (self-correction grace window analogous to the
130
+ edit_max_window for authors); and (b) the Commons Operations Committee
131
+ / governance at any time (council override). Refuses if the post's
132
+ parent category has since been deleted (dangling reference guard). */
133
+ unhidePost = async (request) => {
134
+ const data = tx_1.MsgUnhidePost.encode(request).finish();
135
+ const promise = this.rpc.request("sparkdream.forum.v1.Msg", "UnhidePost", data);
136
+ return promise.then(data => tx_1.MsgUnhidePostResponse.decode(new binary_1.BinaryReader(data)));
137
+ };
127
138
  /* AppealPost defines the AppealPost RPC. */
128
139
  appealPost = async (request) => {
129
140
  const data = tx_1.MsgAppealPost.encode(request).finish();