@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.
@@ -3564,3 +3564,150 @@ export const MsgCreateCategoryResponse = {
3564
3564
  };
3565
3565
  }
3566
3566
  };
3567
+ function createBaseMsgDeleteCategory() {
3568
+ return {
3569
+ creator: "",
3570
+ categoryId: BigInt(0)
3571
+ };
3572
+ }
3573
+ /**
3574
+ * MsgDeleteCategory removes a shared content category. Restricted to
3575
+ * governance or the Commons Council Operations Committee. Refuses to
3576
+ * delete a category that still has forum posts attached — admins must
3577
+ * move/archive those first.
3578
+ * @name MsgDeleteCategory
3579
+ * @package sparkdream.commons.v1
3580
+ * @see proto type: sparkdream.commons.v1.MsgDeleteCategory
3581
+ */
3582
+ export const MsgDeleteCategory = {
3583
+ typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
3584
+ aminoType: "sparkdream/x/commons/MsgDeleteCategory",
3585
+ encode(message, writer = BinaryWriter.create()) {
3586
+ if (message.creator !== "") {
3587
+ writer.uint32(10).string(message.creator);
3588
+ }
3589
+ if (message.categoryId !== BigInt(0)) {
3590
+ writer.uint32(16).uint64(message.categoryId);
3591
+ }
3592
+ return writer;
3593
+ },
3594
+ decode(input, length) {
3595
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3596
+ let end = length === undefined ? reader.len : reader.pos + length;
3597
+ const message = createBaseMsgDeleteCategory();
3598
+ while (reader.pos < end) {
3599
+ const tag = reader.uint32();
3600
+ switch (tag >>> 3) {
3601
+ case 1:
3602
+ message.creator = reader.string();
3603
+ break;
3604
+ case 2:
3605
+ message.categoryId = reader.uint64();
3606
+ break;
3607
+ default:
3608
+ reader.skipType(tag & 7);
3609
+ break;
3610
+ }
3611
+ }
3612
+ return message;
3613
+ },
3614
+ fromPartial(object) {
3615
+ const message = createBaseMsgDeleteCategory();
3616
+ message.creator = object.creator ?? "";
3617
+ message.categoryId = object.categoryId !== undefined && object.categoryId !== null ? BigInt(object.categoryId.toString()) : BigInt(0);
3618
+ return message;
3619
+ },
3620
+ fromAmino(object) {
3621
+ const message = createBaseMsgDeleteCategory();
3622
+ if (object.creator !== undefined && object.creator !== null) {
3623
+ message.creator = object.creator;
3624
+ }
3625
+ if (object.category_id !== undefined && object.category_id !== null) {
3626
+ message.categoryId = BigInt(object.category_id);
3627
+ }
3628
+ return message;
3629
+ },
3630
+ toAmino(message) {
3631
+ const obj = {};
3632
+ obj.creator = message.creator === "" ? undefined : message.creator;
3633
+ obj.category_id = message.categoryId !== BigInt(0) ? message.categoryId?.toString() : undefined;
3634
+ return obj;
3635
+ },
3636
+ fromAminoMsg(object) {
3637
+ return MsgDeleteCategory.fromAmino(object.value);
3638
+ },
3639
+ toAminoMsg(message) {
3640
+ return {
3641
+ type: "sparkdream/x/commons/MsgDeleteCategory",
3642
+ value: MsgDeleteCategory.toAmino(message)
3643
+ };
3644
+ },
3645
+ fromProtoMsg(message) {
3646
+ return MsgDeleteCategory.decode(message.value);
3647
+ },
3648
+ toProto(message) {
3649
+ return MsgDeleteCategory.encode(message).finish();
3650
+ },
3651
+ toProtoMsg(message) {
3652
+ return {
3653
+ typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
3654
+ value: MsgDeleteCategory.encode(message).finish()
3655
+ };
3656
+ }
3657
+ };
3658
+ function createBaseMsgDeleteCategoryResponse() {
3659
+ return {};
3660
+ }
3661
+ /**
3662
+ * MsgDeleteCategoryResponse defines the MsgDeleteCategoryResponse message.
3663
+ * @name MsgDeleteCategoryResponse
3664
+ * @package sparkdream.commons.v1
3665
+ * @see proto type: sparkdream.commons.v1.MsgDeleteCategoryResponse
3666
+ */
3667
+ export const MsgDeleteCategoryResponse = {
3668
+ typeUrl: "/sparkdream.commons.v1.MsgDeleteCategoryResponse",
3669
+ encode(_, writer = BinaryWriter.create()) {
3670
+ return writer;
3671
+ },
3672
+ decode(input, length) {
3673
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3674
+ let end = length === undefined ? reader.len : reader.pos + length;
3675
+ const message = createBaseMsgDeleteCategoryResponse();
3676
+ while (reader.pos < end) {
3677
+ const tag = reader.uint32();
3678
+ switch (tag >>> 3) {
3679
+ default:
3680
+ reader.skipType(tag & 7);
3681
+ break;
3682
+ }
3683
+ }
3684
+ return message;
3685
+ },
3686
+ fromPartial(_) {
3687
+ const message = createBaseMsgDeleteCategoryResponse();
3688
+ return message;
3689
+ },
3690
+ fromAmino(_) {
3691
+ const message = createBaseMsgDeleteCategoryResponse();
3692
+ return message;
3693
+ },
3694
+ toAmino(_) {
3695
+ const obj = {};
3696
+ return obj;
3697
+ },
3698
+ fromAminoMsg(object) {
3699
+ return MsgDeleteCategoryResponse.fromAmino(object.value);
3700
+ },
3701
+ fromProtoMsg(message) {
3702
+ return MsgDeleteCategoryResponse.decode(message.value);
3703
+ },
3704
+ toProto(message) {
3705
+ return MsgDeleteCategoryResponse.encode(message).finish();
3706
+ },
3707
+ toProtoMsg(message) {
3708
+ return {
3709
+ typeUrl: "/sparkdream.commons.v1.MsgDeleteCategoryResponse",
3710
+ value: MsgDeleteCategoryResponse.encode(message).finish()
3711
+ };
3712
+ }
3713
+ };
@@ -1,5 +1,5 @@
1
- import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgSubmitProposal, MsgVoteProposal, MsgExecuteProposal, MsgSubmitAnonymousProposal, MsgAnonymousVoteProposal, MsgCreateCategory } from "./tx";
2
- export const registry = [["/sparkdream.commons.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.commons.v1.MsgSpendFromCommons", MsgSpendFromCommons], ["/sparkdream.commons.v1.MsgEmergencyCancelGovProposal", MsgEmergencyCancelGovProposal], ["/sparkdream.commons.v1.MsgCreatePolicyPermissions", MsgCreatePolicyPermissions], ["/sparkdream.commons.v1.MsgUpdatePolicyPermissions", MsgUpdatePolicyPermissions], ["/sparkdream.commons.v1.MsgDeletePolicyPermissions", MsgDeletePolicyPermissions], ["/sparkdream.commons.v1.MsgRegisterGroup", MsgRegisterGroup], ["/sparkdream.commons.v1.MsgRenewGroup", MsgRenewGroup], ["/sparkdream.commons.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/sparkdream.commons.v1.MsgUpdateGroupConfig", MsgUpdateGroupConfig], ["/sparkdream.commons.v1.MsgForceUpgrade", MsgForceUpgrade], ["/sparkdream.commons.v1.MsgDeleteGroup", MsgDeleteGroup], ["/sparkdream.commons.v1.MsgVetoGroupProposals", MsgVetoGroupProposals], ["/sparkdream.commons.v1.MsgSubmitProposal", MsgSubmitProposal], ["/sparkdream.commons.v1.MsgVoteProposal", MsgVoteProposal], ["/sparkdream.commons.v1.MsgExecuteProposal", MsgExecuteProposal], ["/sparkdream.commons.v1.MsgSubmitAnonymousProposal", MsgSubmitAnonymousProposal], ["/sparkdream.commons.v1.MsgAnonymousVoteProposal", MsgAnonymousVoteProposal], ["/sparkdream.commons.v1.MsgCreateCategory", MsgCreateCategory]];
1
+ import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgSubmitProposal, MsgVoteProposal, MsgExecuteProposal, MsgSubmitAnonymousProposal, MsgAnonymousVoteProposal, MsgCreateCategory, MsgDeleteCategory } from "./tx";
2
+ export const registry = [["/sparkdream.commons.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.commons.v1.MsgSpendFromCommons", MsgSpendFromCommons], ["/sparkdream.commons.v1.MsgEmergencyCancelGovProposal", MsgEmergencyCancelGovProposal], ["/sparkdream.commons.v1.MsgCreatePolicyPermissions", MsgCreatePolicyPermissions], ["/sparkdream.commons.v1.MsgUpdatePolicyPermissions", MsgUpdatePolicyPermissions], ["/sparkdream.commons.v1.MsgDeletePolicyPermissions", MsgDeletePolicyPermissions], ["/sparkdream.commons.v1.MsgRegisterGroup", MsgRegisterGroup], ["/sparkdream.commons.v1.MsgRenewGroup", MsgRenewGroup], ["/sparkdream.commons.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/sparkdream.commons.v1.MsgUpdateGroupConfig", MsgUpdateGroupConfig], ["/sparkdream.commons.v1.MsgForceUpgrade", MsgForceUpgrade], ["/sparkdream.commons.v1.MsgDeleteGroup", MsgDeleteGroup], ["/sparkdream.commons.v1.MsgVetoGroupProposals", MsgVetoGroupProposals], ["/sparkdream.commons.v1.MsgSubmitProposal", MsgSubmitProposal], ["/sparkdream.commons.v1.MsgVoteProposal", MsgVoteProposal], ["/sparkdream.commons.v1.MsgExecuteProposal", MsgExecuteProposal], ["/sparkdream.commons.v1.MsgSubmitAnonymousProposal", MsgSubmitAnonymousProposal], ["/sparkdream.commons.v1.MsgAnonymousVoteProposal", MsgAnonymousVoteProposal], ["/sparkdream.commons.v1.MsgCreateCategory", MsgCreateCategory], ["/sparkdream.commons.v1.MsgDeleteCategory", MsgDeleteCategory]];
3
3
  export const load = (protoRegistry) => {
4
4
  registry.forEach(([typeUrl, mod]) => {
5
5
  protoRegistry.register(typeUrl, mod);
@@ -120,6 +120,12 @@ export const MessageComposer = {
120
120
  typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
121
121
  value: MsgCreateCategory.encode(value).finish()
122
122
  };
123
+ },
124
+ deleteCategory(value) {
125
+ return {
126
+ typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
127
+ value: MsgDeleteCategory.encode(value).finish()
128
+ };
123
129
  }
124
130
  },
125
131
  withTypeUrl: {
@@ -236,6 +242,12 @@ export const MessageComposer = {
236
242
  typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
237
243
  value
238
244
  };
245
+ },
246
+ deleteCategory(value) {
247
+ return {
248
+ typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
249
+ value
250
+ };
239
251
  }
240
252
  },
241
253
  fromPartial: {
@@ -352,6 +364,12 @@ export const MessageComposer = {
352
364
  typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
353
365
  value: MsgCreateCategory.fromPartial(value)
354
366
  };
367
+ },
368
+ deleteCategory(value) {
369
+ return {
370
+ typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
371
+ value: MsgDeleteCategory.fromPartial(value)
372
+ };
355
373
  }
356
374
  }
357
375
  };
@@ -1,5 +1,5 @@
1
1
  import { BinaryReader } from "../../../binary";
2
- import { MsgUpdateParams, MsgUpdateParamsResponse, MsgSpendFromCommons, MsgSpendFromCommonsResponse, MsgEmergencyCancelGovProposal, MsgEmergencyCancelGovProposalResponse, MsgCreatePolicyPermissions, MsgCreatePolicyPermissionsResponse, MsgUpdatePolicyPermissions, MsgUpdatePolicyPermissionsResponse, MsgDeletePolicyPermissions, MsgDeletePolicyPermissionsResponse, MsgRegisterGroup, MsgRegisterGroupResponse, MsgRenewGroup, MsgRenewGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupConfig, MsgUpdateGroupConfigResponse, MsgForceUpgrade, MsgForceUpgradeResponse, MsgDeleteGroup, MsgDeleteGroupResponse, MsgVetoGroupProposals, MsgVetoGroupProposalsResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgVoteProposal, MsgVoteProposalResponse, MsgExecuteProposal, MsgExecuteProposalResponse, MsgSubmitAnonymousProposal, MsgSubmitAnonymousProposalResponse, MsgAnonymousVoteProposal, MsgAnonymousVoteProposalResponse, MsgCreateCategory, MsgCreateCategoryResponse } from "./tx";
2
+ import { MsgUpdateParams, MsgUpdateParamsResponse, MsgSpendFromCommons, MsgSpendFromCommonsResponse, MsgEmergencyCancelGovProposal, MsgEmergencyCancelGovProposalResponse, MsgCreatePolicyPermissions, MsgCreatePolicyPermissionsResponse, MsgUpdatePolicyPermissions, MsgUpdatePolicyPermissionsResponse, MsgDeletePolicyPermissions, MsgDeletePolicyPermissionsResponse, MsgRegisterGroup, MsgRegisterGroupResponse, MsgRenewGroup, MsgRenewGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupConfig, MsgUpdateGroupConfigResponse, MsgForceUpgrade, MsgForceUpgradeResponse, MsgDeleteGroup, MsgDeleteGroupResponse, MsgVetoGroupProposals, MsgVetoGroupProposalsResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgVoteProposal, MsgVoteProposalResponse, MsgExecuteProposal, MsgExecuteProposalResponse, MsgSubmitAnonymousProposal, MsgSubmitAnonymousProposalResponse, MsgAnonymousVoteProposal, MsgAnonymousVoteProposalResponse, MsgCreateCategory, MsgCreateCategoryResponse, MsgDeleteCategory, MsgDeleteCategoryResponse } from "./tx";
3
3
  export class MsgClientImpl {
4
4
  rpc;
5
5
  constructor(rpc) {
@@ -123,6 +123,12 @@ export class MsgClientImpl {
123
123
  const promise = this.rpc.request("sparkdream.commons.v1.Msg", "CreateCategory", data);
124
124
  return promise.then(data => MsgCreateCategoryResponse.decode(new BinaryReader(data)));
125
125
  };
126
+ /* DeleteCategory */
127
+ deleteCategory = async (request) => {
128
+ const data = MsgDeleteCategory.encode(request).finish();
129
+ const promise = this.rpc.request("sparkdream.commons.v1.Msg", "DeleteCategory", data);
130
+ return promise.then(data => MsgDeleteCategoryResponse.decode(new BinaryReader(data)));
131
+ };
126
132
  }
127
133
  export const createClientImpl = (rpc) => {
128
134
  return new MsgClientImpl(rpc);
@@ -8,11 +8,18 @@ function createBaseHideRecord() {
8
8
  sentinelBackingSnapshot: "",
9
9
  committedAmount: "",
10
10
  reasonCode: 0,
11
- reasonText: ""
11
+ reasonText: "",
12
+ authorBondAmount: ""
12
13
  };
13
14
  }
14
15
  /**
15
16
  * HideRecord defines the HideRecord message.
17
+ *
18
+ * Created by MsgHidePost for both sentinel hides and gov-authority hides.
19
+ * The `sentinel` field distinguishes the two: a non-empty address means a
20
+ * sentinel performed the hide and the record drives the appeal flow; an
21
+ * empty string is the gov-hide marker and the record exists only to enable
22
+ * council-driven reversal (author-bond restore + HideRecord cleanup).
16
23
  * @name HideRecord
17
24
  * @package sparkdream.forum.v1
18
25
  * @see proto type: sparkdream.forum.v1.HideRecord
@@ -44,6 +51,9 @@ export const HideRecord = {
44
51
  if (message.reasonText !== "") {
45
52
  writer.uint32(66).string(message.reasonText);
46
53
  }
54
+ if (message.authorBondAmount !== "") {
55
+ writer.uint32(74).string(message.authorBondAmount);
56
+ }
47
57
  return writer;
48
58
  },
49
59
  decode(input, length) {
@@ -77,6 +87,9 @@ export const HideRecord = {
77
87
  case 8:
78
88
  message.reasonText = reader.string();
79
89
  break;
90
+ case 9:
91
+ message.authorBondAmount = reader.string();
92
+ break;
80
93
  default:
81
94
  reader.skipType(tag & 7);
82
95
  break;
@@ -94,6 +107,7 @@ export const HideRecord = {
94
107
  message.committedAmount = object.committedAmount ?? "";
95
108
  message.reasonCode = object.reasonCode ?? 0;
96
109
  message.reasonText = object.reasonText ?? "";
110
+ message.authorBondAmount = object.authorBondAmount ?? "";
97
111
  return message;
98
112
  },
99
113
  fromAmino(object) {
@@ -122,6 +136,9 @@ export const HideRecord = {
122
136
  if (object.reason_text !== undefined && object.reason_text !== null) {
123
137
  message.reasonText = object.reason_text;
124
138
  }
139
+ if (object.author_bond_amount !== undefined && object.author_bond_amount !== null) {
140
+ message.authorBondAmount = object.author_bond_amount;
141
+ }
125
142
  return message;
126
143
  },
127
144
  toAmino(message) {
@@ -134,6 +151,7 @@ export const HideRecord = {
134
151
  obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
135
152
  obj.reason_code = message.reasonCode === 0 ? undefined : message.reasonCode;
136
153
  obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
154
+ obj.author_bond_amount = message.authorBondAmount === "" ? undefined : message.authorBondAmount;
137
155
  return obj;
138
156
  },
139
157
  fromAminoMsg(object) {
@@ -41,7 +41,8 @@ function createBaseParams() {
41
41
  minSentinelTrustLevel: "",
42
42
  minSentinelAgeBlocks: BigInt(0),
43
43
  sentinelDemotionCooldown: BigInt(0),
44
- sentinelDemotionThreshold: ""
44
+ sentinelDemotionThreshold: "",
45
+ sentinelUnhideWindow: BigInt(0)
45
46
  };
46
47
  }
47
48
  /**
@@ -168,6 +169,9 @@ export const Params = {
168
169
  if (message.sentinelDemotionThreshold !== "") {
169
170
  writer.uint32(362).string(message.sentinelDemotionThreshold);
170
171
  }
172
+ if (message.sentinelUnhideWindow !== BigInt(0)) {
173
+ writer.uint32(368).int64(message.sentinelUnhideWindow);
174
+ }
171
175
  return writer;
172
176
  },
173
177
  decode(input, length) {
@@ -291,6 +295,9 @@ export const Params = {
291
295
  case 45:
292
296
  message.sentinelDemotionThreshold = reader.string();
293
297
  break;
298
+ case 46:
299
+ message.sentinelUnhideWindow = reader.int64();
300
+ break;
294
301
  default:
295
302
  reader.skipType(tag & 7);
296
303
  break;
@@ -338,6 +345,7 @@ export const Params = {
338
345
  message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
339
346
  message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
340
347
  message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
348
+ message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
341
349
  return message;
342
350
  },
343
351
  fromAmino(object) {
@@ -456,6 +464,9 @@ export const Params = {
456
464
  if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
457
465
  message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
458
466
  }
467
+ if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
468
+ message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
469
+ }
459
470
  return message;
460
471
  },
461
472
  toAmino(message) {
@@ -498,6 +509,7 @@ export const Params = {
498
509
  obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
499
510
  obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
500
511
  obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
512
+ obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
501
513
  return obj;
502
514
  },
503
515
  fromAminoMsg(object) {
@@ -558,7 +570,8 @@ function createBaseForumOperationalParams() {
558
570
  minSentinelTrustLevel: "",
559
571
  minSentinelAgeBlocks: BigInt(0),
560
572
  sentinelDemotionCooldown: BigInt(0),
561
- sentinelDemotionThreshold: ""
573
+ sentinelDemotionThreshold: "",
574
+ sentinelUnhideWindow: BigInt(0)
562
575
  };
563
576
  }
564
577
  /**
@@ -679,6 +692,9 @@ export const ForumOperationalParams = {
679
692
  if (message.sentinelDemotionThreshold !== "") {
680
693
  writer.uint32(362).string(message.sentinelDemotionThreshold);
681
694
  }
695
+ if (message.sentinelUnhideWindow !== BigInt(0)) {
696
+ writer.uint32(368).int64(message.sentinelUnhideWindow);
697
+ }
682
698
  return writer;
683
699
  },
684
700
  decode(input, length) {
@@ -793,6 +809,9 @@ export const ForumOperationalParams = {
793
809
  case 45:
794
810
  message.sentinelDemotionThreshold = reader.string();
795
811
  break;
812
+ case 46:
813
+ message.sentinelUnhideWindow = reader.int64();
814
+ break;
796
815
  default:
797
816
  reader.skipType(tag & 7);
798
817
  break;
@@ -837,6 +856,7 @@ export const ForumOperationalParams = {
837
856
  message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
838
857
  message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
839
858
  message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
859
+ message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
840
860
  return message;
841
861
  },
842
862
  fromAmino(object) {
@@ -946,6 +966,9 @@ export const ForumOperationalParams = {
946
966
  if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
947
967
  message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
948
968
  }
969
+ if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
970
+ message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
971
+ }
949
972
  return message;
950
973
  },
951
974
  toAmino(message) {
@@ -985,6 +1008,7 @@ export const ForumOperationalParams = {
985
1008
  obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
986
1009
  obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
987
1010
  obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
1011
+ obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
988
1012
  return obj;
989
1013
  },
990
1014
  fromAminoMsg(object) {
@@ -1,5 +1,5 @@
1
1
  //@ts-nocheck
2
- import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
2
+ import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
3
3
  export const AminoConverter = {
4
4
  "/sparkdream.forum.v1.MsgUpdateParams": {
5
5
  aminoType: "sparkdream/x/forum/MsgUpdateParams",
@@ -96,6 +96,11 @@ export const AminoConverter = {
96
96
  toAmino: MsgHidePost.toAmino,
97
97
  fromAmino: MsgHidePost.fromAmino
98
98
  },
99
+ "/sparkdream.forum.v1.MsgUnhidePost": {
100
+ aminoType: "sparkdream/x/forum/MsgUnhidePost",
101
+ toAmino: MsgUnhidePost.toAmino,
102
+ fromAmino: MsgUnhidePost.fromAmino
103
+ },
99
104
  "/sparkdream.forum.v1.MsgAppealPost": {
100
105
  aminoType: "sparkdream/x/forum/MsgAppealPost",
101
106
  toAmino: MsgAppealPost.toAmino,
@@ -2962,6 +2962,150 @@ export const MsgHidePostResponse = {
2962
2962
  };
2963
2963
  }
2964
2964
  };
2965
+ function createBaseMsgUnhidePost() {
2966
+ return {
2967
+ creator: "",
2968
+ postId: BigInt(0)
2969
+ };
2970
+ }
2971
+ /**
2972
+ * MsgUnhidePost reverses MsgHidePost.
2973
+ * @name MsgUnhidePost
2974
+ * @package sparkdream.forum.v1
2975
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePost
2976
+ */
2977
+ export const MsgUnhidePost = {
2978
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
2979
+ aminoType: "sparkdream/x/forum/MsgUnhidePost",
2980
+ encode(message, writer = BinaryWriter.create()) {
2981
+ if (message.creator !== "") {
2982
+ writer.uint32(10).string(message.creator);
2983
+ }
2984
+ if (message.postId !== BigInt(0)) {
2985
+ writer.uint32(16).uint64(message.postId);
2986
+ }
2987
+ return writer;
2988
+ },
2989
+ decode(input, length) {
2990
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2991
+ let end = length === undefined ? reader.len : reader.pos + length;
2992
+ const message = createBaseMsgUnhidePost();
2993
+ while (reader.pos < end) {
2994
+ const tag = reader.uint32();
2995
+ switch (tag >>> 3) {
2996
+ case 1:
2997
+ message.creator = reader.string();
2998
+ break;
2999
+ case 2:
3000
+ message.postId = reader.uint64();
3001
+ break;
3002
+ default:
3003
+ reader.skipType(tag & 7);
3004
+ break;
3005
+ }
3006
+ }
3007
+ return message;
3008
+ },
3009
+ fromPartial(object) {
3010
+ const message = createBaseMsgUnhidePost();
3011
+ message.creator = object.creator ?? "";
3012
+ message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
3013
+ return message;
3014
+ },
3015
+ fromAmino(object) {
3016
+ const message = createBaseMsgUnhidePost();
3017
+ if (object.creator !== undefined && object.creator !== null) {
3018
+ message.creator = object.creator;
3019
+ }
3020
+ if (object.post_id !== undefined && object.post_id !== null) {
3021
+ message.postId = BigInt(object.post_id);
3022
+ }
3023
+ return message;
3024
+ },
3025
+ toAmino(message) {
3026
+ const obj = {};
3027
+ obj.creator = message.creator === "" ? undefined : message.creator;
3028
+ obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
3029
+ return obj;
3030
+ },
3031
+ fromAminoMsg(object) {
3032
+ return MsgUnhidePost.fromAmino(object.value);
3033
+ },
3034
+ toAminoMsg(message) {
3035
+ return {
3036
+ type: "sparkdream/x/forum/MsgUnhidePost",
3037
+ value: MsgUnhidePost.toAmino(message)
3038
+ };
3039
+ },
3040
+ fromProtoMsg(message) {
3041
+ return MsgUnhidePost.decode(message.value);
3042
+ },
3043
+ toProto(message) {
3044
+ return MsgUnhidePost.encode(message).finish();
3045
+ },
3046
+ toProtoMsg(message) {
3047
+ return {
3048
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
3049
+ value: MsgUnhidePost.encode(message).finish()
3050
+ };
3051
+ }
3052
+ };
3053
+ function createBaseMsgUnhidePostResponse() {
3054
+ return {};
3055
+ }
3056
+ /**
3057
+ * MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
3058
+ * @name MsgUnhidePostResponse
3059
+ * @package sparkdream.forum.v1
3060
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
3061
+ */
3062
+ export const MsgUnhidePostResponse = {
3063
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePostResponse",
3064
+ encode(_, writer = BinaryWriter.create()) {
3065
+ return writer;
3066
+ },
3067
+ decode(input, length) {
3068
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3069
+ let end = length === undefined ? reader.len : reader.pos + length;
3070
+ const message = createBaseMsgUnhidePostResponse();
3071
+ while (reader.pos < end) {
3072
+ const tag = reader.uint32();
3073
+ switch (tag >>> 3) {
3074
+ default:
3075
+ reader.skipType(tag & 7);
3076
+ break;
3077
+ }
3078
+ }
3079
+ return message;
3080
+ },
3081
+ fromPartial(_) {
3082
+ const message = createBaseMsgUnhidePostResponse();
3083
+ return message;
3084
+ },
3085
+ fromAmino(_) {
3086
+ const message = createBaseMsgUnhidePostResponse();
3087
+ return message;
3088
+ },
3089
+ toAmino(_) {
3090
+ const obj = {};
3091
+ return obj;
3092
+ },
3093
+ fromAminoMsg(object) {
3094
+ return MsgUnhidePostResponse.fromAmino(object.value);
3095
+ },
3096
+ fromProtoMsg(message) {
3097
+ return MsgUnhidePostResponse.decode(message.value);
3098
+ },
3099
+ toProto(message) {
3100
+ return MsgUnhidePostResponse.encode(message).finish();
3101
+ },
3102
+ toProtoMsg(message) {
3103
+ return {
3104
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePostResponse",
3105
+ value: MsgUnhidePostResponse.encode(message).finish()
3106
+ };
3107
+ }
3108
+ };
2965
3109
  function createBaseMsgAppealPost() {
2966
3110
  return {
2967
3111
  creator: "",
@@ -1,5 +1,5 @@
1
- import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
2
- export const registry = [["/sparkdream.forum.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.forum.v1.MsgLockThread", MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", MsgDownvotePost], ["/sparkdream.forum.v1.MsgFlagPost", MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", MsgHidePost], ["/sparkdream.forum.v1.MsgAppealPost", MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", MsgSetModerationPaused]];
1
+ import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
2
+ export const registry = [["/sparkdream.forum.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.forum.v1.MsgLockThread", MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", MsgDownvotePost], ["/sparkdream.forum.v1.MsgFlagPost", MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", MsgSetModerationPaused]];
3
3
  export const load = (protoRegistry) => {
4
4
  registry.forEach(([typeUrl, mod]) => {
5
5
  protoRegistry.register(typeUrl, mod);
@@ -121,6 +121,12 @@ export const MessageComposer = {
121
121
  value: MsgHidePost.encode(value).finish()
122
122
  };
123
123
  },
124
+ unhidePost(value) {
125
+ return {
126
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
127
+ value: MsgUnhidePost.encode(value).finish()
128
+ };
129
+ },
124
130
  appealPost(value) {
125
131
  return {
126
132
  typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
@@ -333,6 +339,12 @@ export const MessageComposer = {
333
339
  value
334
340
  };
335
341
  },
342
+ unhidePost(value) {
343
+ return {
344
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
345
+ value
346
+ };
347
+ },
336
348
  appealPost(value) {
337
349
  return {
338
350
  typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
@@ -545,6 +557,12 @@ export const MessageComposer = {
545
557
  value: MsgHidePost.fromPartial(value)
546
558
  };
547
559
  },
560
+ unhidePost(value) {
561
+ return {
562
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
563
+ value: MsgUnhidePost.fromPartial(value)
564
+ };
565
+ },
548
566
  appealPost(value) {
549
567
  return {
550
568
  typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
@@ -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, 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, 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";
3
3
  export class MsgClientImpl {
4
4
  rpc;
5
5
  constructor(rpc) {
@@ -121,6 +121,17 @@ export class MsgClientImpl {
121
121
  const promise = this.rpc.request("sparkdream.forum.v1.Msg", "HidePost", data);
122
122
  return promise.then(data => MsgHidePostResponse.decode(new BinaryReader(data)));
123
123
  };
124
+ /* UnhidePost reverses a prior MsgHidePost. Authorized for (a) the sentinel
125
+ who originally hid the post, but only within sentinel_unhide_window
126
+ seconds of the hide (self-correction grace window analogous to the
127
+ edit_max_window for authors); and (b) the Commons Operations Committee
128
+ / governance at any time (council override). Refuses if the post's
129
+ parent category has since been deleted (dangling reference guard). */
130
+ unhidePost = async (request) => {
131
+ const data = MsgUnhidePost.encode(request).finish();
132
+ const promise = this.rpc.request("sparkdream.forum.v1.Msg", "UnhidePost", data);
133
+ return promise.then(data => MsgUnhidePostResponse.decode(new BinaryReader(data)));
134
+ };
124
135
  /* AppealPost defines the AppealPost RPC. */
125
136
  appealPost = async (request) => {
126
137
  const data = MsgAppealPost.encode(request).finish();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkdreamnft/sparkdreamjs",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "author": "kob <kob@sparkdream.io>",
5
5
  "description": "Spark Dream blockchain TypeScript library",
6
6
  "main": "index.js",