@sparkdreamnft/sparkdreamjs 0.0.12 → 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.
Files changed (39) hide show
  1. package/esm/nested-amino.js +52 -0
  2. package/esm/sparkdream/commons/v1/tx.amino.js +68 -29
  3. package/esm/sparkdream/commons/v1/tx.js +147 -0
  4. package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
  5. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +7 -1
  6. package/esm/sparkdream/forum/v1/hide_record.js +19 -1
  7. package/esm/sparkdream/forum/v1/params.js +26 -2
  8. package/esm/sparkdream/forum/v1/tx.amino.js +6 -1
  9. package/esm/sparkdream/forum/v1/tx.js +144 -0
  10. package/esm/sparkdream/forum/v1/tx.registry.js +20 -2
  11. package/esm/sparkdream/forum/v1/tx.rpc.msg.js +12 -1
  12. package/esm/sparkdream/session/v1/tx.amino.js +30 -8
  13. package/nested-amino.d.ts +76 -0
  14. package/nested-amino.js +57 -0
  15. package/package.json +1 -1
  16. package/sparkdream/bundle.d.ts +89 -6
  17. package/sparkdream/client.d.ts +11 -6
  18. package/sparkdream/commons/v1/tx.amino.d.ts +6 -5
  19. package/sparkdream/commons/v1/tx.amino.js +70 -30
  20. package/sparkdream/commons/v1/tx.d.ts +99 -0
  21. package/sparkdream/commons/v1/tx.js +148 -1
  22. package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
  23. package/sparkdream/commons/v1/tx.registry.js +19 -1
  24. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +3 -1
  25. package/sparkdream/commons/v1/tx.rpc.msg.js +6 -0
  26. package/sparkdream/forum/v1/hide_record.d.ts +50 -0
  27. package/sparkdream/forum/v1/hide_record.js +19 -1
  28. package/sparkdream/forum/v1/params.d.ts +28 -0
  29. package/sparkdream/forum/v1/params.js +26 -2
  30. package/sparkdream/forum/v1/tx.amino.d.ts +6 -1
  31. package/sparkdream/forum/v1/tx.amino.js +5 -0
  32. package/sparkdream/forum/v1/tx.d.ts +90 -0
  33. package/sparkdream/forum/v1/tx.js +146 -2
  34. package/sparkdream/forum/v1/tx.registry.d.ts +13 -1
  35. package/sparkdream/forum/v1/tx.registry.js +19 -1
  36. package/sparkdream/forum/v1/tx.rpc.msg.d.ts +11 -1
  37. package/sparkdream/forum/v1/tx.rpc.msg.js +11 -0
  38. package/sparkdream/session/v1/tx.amino.d.ts +3 -3
  39. package/sparkdream/session/v1/tx.amino.js +30 -8
@@ -3,12 +3,24 @@ import { BinaryReader, BinaryWriter } from "../../../binary";
3
3
  import { DeepPartial } from "../../../helpers";
4
4
  /**
5
5
  * HideRecord defines the HideRecord message.
6
+ *
7
+ * Created by MsgHidePost for both sentinel hides and gov-authority hides.
8
+ * The `sentinel` field distinguishes the two: a non-empty address means a
9
+ * sentinel performed the hide and the record drives the appeal flow; an
10
+ * empty string is the gov-hide marker and the record exists only to enable
11
+ * council-driven reversal (author-bond restore + HideRecord cleanup).
6
12
  * @name HideRecord
7
13
  * @package sparkdream.forum.v1
8
14
  * @see proto type: sparkdream.forum.v1.HideRecord
9
15
  */
10
16
  export interface HideRecord {
11
17
  postId: bigint;
18
+ /**
19
+ * Address of the sentinel who hid the post. Empty string is the gov-hide
20
+ * marker: AppealPost rejects these as ErrGovLockNotAppealable (must go
21
+ * through MsgAppealGovAction); GetActionSentinel / RecordSentinelAction*
22
+ * helpers soft-skip on empty.
23
+ */
12
24
  sentinel: string;
13
25
  hiddenAt: bigint;
14
26
  sentinelBondSnapshot: string;
@@ -16,6 +28,16 @@ export interface HideRecord {
16
28
  committedAmount: string;
17
29
  reasonCode: ModerationReason;
18
30
  reasonText: string;
31
+ /**
32
+ * author_bond_amount captures the author bond that was slashed by MsgHidePost
33
+ * (math.Int as string; empty / "0" means no bond was attached). On reversal
34
+ * (MsgUnhidePost or appeal-OVERTURNED via ReverseSentinelAction) this amount
35
+ * is minted back to the author and re-locked as a fresh author bond, so the
36
+ * round-trip net DREAM supply change is zero. Populated for BOTH sentinel
37
+ * hides and gov-authority hides — see the `sentinel` field for how the two
38
+ * hide flavors are distinguished.
39
+ */
40
+ authorBondAmount: string;
19
41
  }
20
42
  export interface HideRecordProtoMsg {
21
43
  typeUrl: "/sparkdream.forum.v1.HideRecord";
@@ -23,12 +45,24 @@ export interface HideRecordProtoMsg {
23
45
  }
24
46
  /**
25
47
  * HideRecord defines the HideRecord message.
48
+ *
49
+ * Created by MsgHidePost for both sentinel hides and gov-authority hides.
50
+ * The `sentinel` field distinguishes the two: a non-empty address means a
51
+ * sentinel performed the hide and the record drives the appeal flow; an
52
+ * empty string is the gov-hide marker and the record exists only to enable
53
+ * council-driven reversal (author-bond restore + HideRecord cleanup).
26
54
  * @name HideRecordAmino
27
55
  * @package sparkdream.forum.v1
28
56
  * @see proto type: sparkdream.forum.v1.HideRecord
29
57
  */
30
58
  export interface HideRecordAmino {
31
59
  post_id?: string;
60
+ /**
61
+ * Address of the sentinel who hid the post. Empty string is the gov-hide
62
+ * marker: AppealPost rejects these as ErrGovLockNotAppealable (must go
63
+ * through MsgAppealGovAction); GetActionSentinel / RecordSentinelAction*
64
+ * helpers soft-skip on empty.
65
+ */
32
66
  sentinel?: string;
33
67
  hidden_at?: string;
34
68
  sentinel_bond_snapshot?: string;
@@ -36,6 +70,16 @@ export interface HideRecordAmino {
36
70
  committed_amount?: string;
37
71
  reason_code?: ModerationReason;
38
72
  reason_text?: string;
73
+ /**
74
+ * author_bond_amount captures the author bond that was slashed by MsgHidePost
75
+ * (math.Int as string; empty / "0" means no bond was attached). On reversal
76
+ * (MsgUnhidePost or appeal-OVERTURNED via ReverseSentinelAction) this amount
77
+ * is minted back to the author and re-locked as a fresh author bond, so the
78
+ * round-trip net DREAM supply change is zero. Populated for BOTH sentinel
79
+ * hides and gov-authority hides — see the `sentinel` field for how the two
80
+ * hide flavors are distinguished.
81
+ */
82
+ author_bond_amount?: string;
39
83
  }
40
84
  export interface HideRecordAminoMsg {
41
85
  type: "/sparkdream.forum.v1.HideRecord";
@@ -43,6 +87,12 @@ export interface HideRecordAminoMsg {
43
87
  }
44
88
  /**
45
89
  * HideRecord defines the HideRecord message.
90
+ *
91
+ * Created by MsgHidePost for both sentinel hides and gov-authority hides.
92
+ * The `sentinel` field distinguishes the two: a non-empty address means a
93
+ * sentinel performed the hide and the record drives the appeal flow; an
94
+ * empty string is the gov-hide marker and the record exists only to enable
95
+ * council-driven reversal (author-bond restore + HideRecord cleanup).
46
96
  * @name HideRecord
47
97
  * @package sparkdream.forum.v1
48
98
  * @see proto type: sparkdream.forum.v1.HideRecord
@@ -11,11 +11,18 @@ function createBaseHideRecord() {
11
11
  sentinelBackingSnapshot: "",
12
12
  committedAmount: "",
13
13
  reasonCode: 0,
14
- reasonText: ""
14
+ reasonText: "",
15
+ authorBondAmount: ""
15
16
  };
16
17
  }
17
18
  /**
18
19
  * HideRecord defines the HideRecord message.
20
+ *
21
+ * Created by MsgHidePost for both sentinel hides and gov-authority hides.
22
+ * The `sentinel` field distinguishes the two: a non-empty address means a
23
+ * sentinel performed the hide and the record drives the appeal flow; an
24
+ * empty string is the gov-hide marker and the record exists only to enable
25
+ * council-driven reversal (author-bond restore + HideRecord cleanup).
19
26
  * @name HideRecord
20
27
  * @package sparkdream.forum.v1
21
28
  * @see proto type: sparkdream.forum.v1.HideRecord
@@ -47,6 +54,9 @@ exports.HideRecord = {
47
54
  if (message.reasonText !== "") {
48
55
  writer.uint32(66).string(message.reasonText);
49
56
  }
57
+ if (message.authorBondAmount !== "") {
58
+ writer.uint32(74).string(message.authorBondAmount);
59
+ }
50
60
  return writer;
51
61
  },
52
62
  decode(input, length) {
@@ -80,6 +90,9 @@ exports.HideRecord = {
80
90
  case 8:
81
91
  message.reasonText = reader.string();
82
92
  break;
93
+ case 9:
94
+ message.authorBondAmount = reader.string();
95
+ break;
83
96
  default:
84
97
  reader.skipType(tag & 7);
85
98
  break;
@@ -97,6 +110,7 @@ exports.HideRecord = {
97
110
  message.committedAmount = object.committedAmount ?? "";
98
111
  message.reasonCode = object.reasonCode ?? 0;
99
112
  message.reasonText = object.reasonText ?? "";
113
+ message.authorBondAmount = object.authorBondAmount ?? "";
100
114
  return message;
101
115
  },
102
116
  fromAmino(object) {
@@ -125,6 +139,9 @@ exports.HideRecord = {
125
139
  if (object.reason_text !== undefined && object.reason_text !== null) {
126
140
  message.reasonText = object.reason_text;
127
141
  }
142
+ if (object.author_bond_amount !== undefined && object.author_bond_amount !== null) {
143
+ message.authorBondAmount = object.author_bond_amount;
144
+ }
128
145
  return message;
129
146
  },
130
147
  toAmino(message) {
@@ -137,6 +154,7 @@ exports.HideRecord = {
137
154
  obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
138
155
  obj.reason_code = message.reasonCode === 0 ? undefined : message.reasonCode;
139
156
  obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
157
+ obj.author_bond_amount = message.authorBondAmount === "" ? undefined : message.authorBondAmount;
140
158
  return obj;
141
159
  },
142
160
  fromAminoMsg(object) {
@@ -160,6 +160,13 @@ export interface Params {
160
160
  * sentinel_demotion_threshold — see ForumOperationalParams.sentinel_demotion_threshold.
161
161
  */
162
162
  sentinelDemotionThreshold: string;
163
+ /**
164
+ * sentinel_unhide_window in seconds. A sentinel who hid a post may
165
+ * self-correct (call MsgUnhidePost) within this window of the original
166
+ * hide; after it expires, only the Commons Operations Committee or
167
+ * governance can unhide. Analogous to edit_max_window for authors.
168
+ */
169
+ sentinelUnhideWindow: bigint;
163
170
  }
164
171
  export interface ParamsProtoMsg {
165
172
  typeUrl: "/sparkdream.forum.v1.Params";
@@ -324,6 +331,13 @@ export interface ParamsAmino {
324
331
  * sentinel_demotion_threshold — see ForumOperationalParams.sentinel_demotion_threshold.
325
332
  */
326
333
  sentinel_demotion_threshold?: string;
334
+ /**
335
+ * sentinel_unhide_window in seconds. A sentinel who hid a post may
336
+ * self-correct (call MsgUnhidePost) within this window of the original
337
+ * hide; after it expires, only the Commons Operations Committee or
338
+ * governance can unhide. Analogous to edit_max_window for authors.
339
+ */
340
+ sentinel_unhide_window?: string;
327
341
  }
328
342
  export interface ParamsAminoMsg {
329
343
  type: "sparkdream/x/forum/Params";
@@ -418,6 +432,13 @@ export interface ForumOperationalParams {
418
432
  * transitions from RECOVERY to DEMOTED (math.Int string).
419
433
  */
420
434
  sentinelDemotionThreshold: string;
435
+ /**
436
+ * sentinel_unhide_window in seconds. A sentinel who hid a post may
437
+ * self-correct (call MsgUnhidePost) within this window of the original
438
+ * hide; after it expires, only the Commons Operations Committee or
439
+ * governance can unhide.
440
+ */
441
+ sentinelUnhideWindow: bigint;
421
442
  }
422
443
  export interface ForumOperationalParamsProtoMsg {
423
444
  typeUrl: "/sparkdream.forum.v1.ForumOperationalParams";
@@ -512,6 +533,13 @@ export interface ForumOperationalParamsAmino {
512
533
  * transitions from RECOVERY to DEMOTED (math.Int string).
513
534
  */
514
535
  sentinel_demotion_threshold?: string;
536
+ /**
537
+ * sentinel_unhide_window in seconds. A sentinel who hid a post may
538
+ * self-correct (call MsgUnhidePost) within this window of the original
539
+ * hide; after it expires, only the Commons Operations Committee or
540
+ * governance can unhide.
541
+ */
542
+ sentinel_unhide_window?: string;
515
543
  }
516
544
  export interface ForumOperationalParamsAminoMsg {
517
545
  type: "sparkdream/x/forum/ForumOperationalParams";
@@ -44,7 +44,8 @@ function createBaseParams() {
44
44
  minSentinelTrustLevel: "",
45
45
  minSentinelAgeBlocks: BigInt(0),
46
46
  sentinelDemotionCooldown: BigInt(0),
47
- sentinelDemotionThreshold: ""
47
+ sentinelDemotionThreshold: "",
48
+ sentinelUnhideWindow: BigInt(0)
48
49
  };
49
50
  }
50
51
  /**
@@ -171,6 +172,9 @@ exports.Params = {
171
172
  if (message.sentinelDemotionThreshold !== "") {
172
173
  writer.uint32(362).string(message.sentinelDemotionThreshold);
173
174
  }
175
+ if (message.sentinelUnhideWindow !== BigInt(0)) {
176
+ writer.uint32(368).int64(message.sentinelUnhideWindow);
177
+ }
174
178
  return writer;
175
179
  },
176
180
  decode(input, length) {
@@ -294,6 +298,9 @@ exports.Params = {
294
298
  case 45:
295
299
  message.sentinelDemotionThreshold = reader.string();
296
300
  break;
301
+ case 46:
302
+ message.sentinelUnhideWindow = reader.int64();
303
+ break;
297
304
  default:
298
305
  reader.skipType(tag & 7);
299
306
  break;
@@ -341,6 +348,7 @@ exports.Params = {
341
348
  message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
342
349
  message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
343
350
  message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
351
+ message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
344
352
  return message;
345
353
  },
346
354
  fromAmino(object) {
@@ -459,6 +467,9 @@ exports.Params = {
459
467
  if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
460
468
  message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
461
469
  }
470
+ if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
471
+ message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
472
+ }
462
473
  return message;
463
474
  },
464
475
  toAmino(message) {
@@ -501,6 +512,7 @@ exports.Params = {
501
512
  obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
502
513
  obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
503
514
  obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
515
+ obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
504
516
  return obj;
505
517
  },
506
518
  fromAminoMsg(object) {
@@ -561,7 +573,8 @@ function createBaseForumOperationalParams() {
561
573
  minSentinelTrustLevel: "",
562
574
  minSentinelAgeBlocks: BigInt(0),
563
575
  sentinelDemotionCooldown: BigInt(0),
564
- sentinelDemotionThreshold: ""
576
+ sentinelDemotionThreshold: "",
577
+ sentinelUnhideWindow: BigInt(0)
565
578
  };
566
579
  }
567
580
  /**
@@ -682,6 +695,9 @@ exports.ForumOperationalParams = {
682
695
  if (message.sentinelDemotionThreshold !== "") {
683
696
  writer.uint32(362).string(message.sentinelDemotionThreshold);
684
697
  }
698
+ if (message.sentinelUnhideWindow !== BigInt(0)) {
699
+ writer.uint32(368).int64(message.sentinelUnhideWindow);
700
+ }
685
701
  return writer;
686
702
  },
687
703
  decode(input, length) {
@@ -796,6 +812,9 @@ exports.ForumOperationalParams = {
796
812
  case 45:
797
813
  message.sentinelDemotionThreshold = reader.string();
798
814
  break;
815
+ case 46:
816
+ message.sentinelUnhideWindow = reader.int64();
817
+ break;
799
818
  default:
800
819
  reader.skipType(tag & 7);
801
820
  break;
@@ -840,6 +859,7 @@ exports.ForumOperationalParams = {
840
859
  message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
841
860
  message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
842
861
  message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
862
+ message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
843
863
  return message;
844
864
  },
845
865
  fromAmino(object) {
@@ -949,6 +969,9 @@ exports.ForumOperationalParams = {
949
969
  if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
950
970
  message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
951
971
  }
972
+ if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
973
+ message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
974
+ }
952
975
  return message;
953
976
  },
954
977
  toAmino(message) {
@@ -988,6 +1011,7 @@ exports.ForumOperationalParams = {
988
1011
  obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
989
1012
  obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
990
1013
  obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
1014
+ obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
991
1015
  return obj;
992
1016
  },
993
1017
  fromAminoMsg(object) {
@@ -1,4 +1,4 @@
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";
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
2
  export declare const AminoConverter: {
3
3
  "/sparkdream.forum.v1.MsgUpdateParams": {
4
4
  aminoType: string;
@@ -95,6 +95,11 @@ export declare const AminoConverter: {
95
95
  toAmino: (message: MsgHidePost) => import("./tx").MsgHidePostAmino;
96
96
  fromAmino: (object: import("./tx").MsgHidePostAmino) => MsgHidePost;
97
97
  };
98
+ "/sparkdream.forum.v1.MsgUnhidePost": {
99
+ aminoType: string;
100
+ toAmino: (message: MsgUnhidePost) => import("./tx").MsgUnhidePostAmino;
101
+ fromAmino: (object: import("./tx").MsgUnhidePostAmino) => MsgUnhidePost;
102
+ };
98
103
  "/sparkdream.forum.v1.MsgAppealPost": {
99
104
  aminoType: string;
100
105
  toAmino: (message: MsgAppealPost) => import("./tx").MsgAppealPostAmino;
@@ -99,6 +99,11 @@ exports.AminoConverter = {
99
99
  toAmino: tx_1.MsgHidePost.toAmino,
100
100
  fromAmino: tx_1.MsgHidePost.fromAmino
101
101
  },
102
+ "/sparkdream.forum.v1.MsgUnhidePost": {
103
+ aminoType: "sparkdream/x/forum/MsgUnhidePost",
104
+ toAmino: tx_1.MsgUnhidePost.toAmino,
105
+ fromAmino: tx_1.MsgUnhidePost.fromAmino
106
+ },
102
107
  "/sparkdream.forum.v1.MsgAppealPost": {
103
108
  aminoType: "sparkdream/x/forum/MsgAppealPost",
104
109
  toAmino: tx_1.MsgAppealPost.toAmino,
@@ -1068,6 +1068,58 @@ export interface MsgHidePostResponseAminoMsg {
1068
1068
  type: "/sparkdream.forum.v1.MsgHidePostResponse";
1069
1069
  value: MsgHidePostResponseAmino;
1070
1070
  }
1071
+ /**
1072
+ * MsgUnhidePost reverses MsgHidePost.
1073
+ * @name MsgUnhidePost
1074
+ * @package sparkdream.forum.v1
1075
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePost
1076
+ */
1077
+ export interface MsgUnhidePost {
1078
+ creator: string;
1079
+ postId: bigint;
1080
+ }
1081
+ export interface MsgUnhidePostProtoMsg {
1082
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePost";
1083
+ value: Uint8Array;
1084
+ }
1085
+ /**
1086
+ * MsgUnhidePost reverses MsgHidePost.
1087
+ * @name MsgUnhidePostAmino
1088
+ * @package sparkdream.forum.v1
1089
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePost
1090
+ */
1091
+ export interface MsgUnhidePostAmino {
1092
+ creator?: string;
1093
+ post_id?: string;
1094
+ }
1095
+ export interface MsgUnhidePostAminoMsg {
1096
+ type: "sparkdream/x/forum/MsgUnhidePost";
1097
+ value: MsgUnhidePostAmino;
1098
+ }
1099
+ /**
1100
+ * MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
1101
+ * @name MsgUnhidePostResponse
1102
+ * @package sparkdream.forum.v1
1103
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
1104
+ */
1105
+ export interface MsgUnhidePostResponse {
1106
+ }
1107
+ export interface MsgUnhidePostResponseProtoMsg {
1108
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePostResponse";
1109
+ value: Uint8Array;
1110
+ }
1111
+ /**
1112
+ * MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
1113
+ * @name MsgUnhidePostResponseAmino
1114
+ * @package sparkdream.forum.v1
1115
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
1116
+ */
1117
+ export interface MsgUnhidePostResponseAmino {
1118
+ }
1119
+ export interface MsgUnhidePostResponseAminoMsg {
1120
+ type: "/sparkdream.forum.v1.MsgUnhidePostResponse";
1121
+ value: MsgUnhidePostResponseAmino;
1122
+ }
1071
1123
  /**
1072
1124
  * MsgAppealPost defines the MsgAppealPost message.
1073
1125
  * @name MsgAppealPost
@@ -2647,6 +2699,44 @@ export declare const MsgHidePostResponse: {
2647
2699
  toProto(message: MsgHidePostResponse): Uint8Array;
2648
2700
  toProtoMsg(message: MsgHidePostResponse): MsgHidePostResponseProtoMsg;
2649
2701
  };
2702
+ /**
2703
+ * MsgUnhidePost reverses MsgHidePost.
2704
+ * @name MsgUnhidePost
2705
+ * @package sparkdream.forum.v1
2706
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePost
2707
+ */
2708
+ export declare const MsgUnhidePost: {
2709
+ typeUrl: string;
2710
+ aminoType: string;
2711
+ encode(message: MsgUnhidePost, writer?: BinaryWriter): BinaryWriter;
2712
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUnhidePost;
2713
+ fromPartial(object: DeepPartial<MsgUnhidePost>): MsgUnhidePost;
2714
+ fromAmino(object: MsgUnhidePostAmino): MsgUnhidePost;
2715
+ toAmino(message: MsgUnhidePost): MsgUnhidePostAmino;
2716
+ fromAminoMsg(object: MsgUnhidePostAminoMsg): MsgUnhidePost;
2717
+ toAminoMsg(message: MsgUnhidePost): MsgUnhidePostAminoMsg;
2718
+ fromProtoMsg(message: MsgUnhidePostProtoMsg): MsgUnhidePost;
2719
+ toProto(message: MsgUnhidePost): Uint8Array;
2720
+ toProtoMsg(message: MsgUnhidePost): MsgUnhidePostProtoMsg;
2721
+ };
2722
+ /**
2723
+ * MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
2724
+ * @name MsgUnhidePostResponse
2725
+ * @package sparkdream.forum.v1
2726
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
2727
+ */
2728
+ export declare const MsgUnhidePostResponse: {
2729
+ typeUrl: string;
2730
+ encode(_: MsgUnhidePostResponse, writer?: BinaryWriter): BinaryWriter;
2731
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUnhidePostResponse;
2732
+ fromPartial(_: DeepPartial<MsgUnhidePostResponse>): MsgUnhidePostResponse;
2733
+ fromAmino(_: MsgUnhidePostResponseAmino): MsgUnhidePostResponse;
2734
+ toAmino(_: MsgUnhidePostResponse): MsgUnhidePostResponseAmino;
2735
+ fromAminoMsg(object: MsgUnhidePostResponseAminoMsg): MsgUnhidePostResponse;
2736
+ fromProtoMsg(message: MsgUnhidePostResponseProtoMsg): MsgUnhidePostResponse;
2737
+ toProto(message: MsgUnhidePostResponse): Uint8Array;
2738
+ toProtoMsg(message: MsgUnhidePostResponse): MsgUnhidePostResponseProtoMsg;
2739
+ };
2650
2740
  /**
2651
2741
  * MsgAppealPost defines the MsgAppealPost message.
2652
2742
  * @name MsgAppealPost
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MsgIncreaseBountyResponse = exports.MsgIncreaseBounty = exports.MsgAwardBountyResponse = exports.MsgAwardBounty = exports.MsgCreateBountyResponse = exports.MsgCreateBounty = exports.MsgAppealThreadMoveResponse = exports.MsgAppealThreadMove = exports.MsgAppealThreadLockResponse = exports.MsgAppealThreadLock = exports.MsgAppealPostResponse = exports.MsgAppealPost = exports.MsgHidePostResponse = exports.MsgHidePost = exports.MsgDismissFlagsResponse = exports.MsgDismissFlags = exports.MsgFlagPostResponse = exports.MsgFlagPost = exports.MsgDownvotePostResponse = exports.MsgDownvotePost = exports.MsgUpvotePostResponse = exports.MsgUpvotePost = exports.MsgUnfollowThreadResponse = exports.MsgUnfollowThread = exports.MsgFollowThreadResponse = exports.MsgFollowThread = exports.MsgMoveThreadResponse = exports.MsgMoveThread = exports.MsgUnlockThreadResponse = exports.MsgUnlockThread = exports.MsgLockThreadResponse = exports.MsgLockThread = exports.MsgUnpinPostResponse = exports.MsgUnpinPost = exports.MsgPinPostResponse = exports.MsgPinPost = exports.MsgUnarchiveThreadResponse = exports.MsgUnarchiveThread = exports.MsgFreezeThreadResponse = exports.MsgFreezeThread = exports.MsgDeletePostResponse = exports.MsgDeletePost = exports.MsgEditPostResponse = exports.MsgEditPost = exports.MsgCreatePostResponse = exports.MsgCreatePost = exports.MsgUpdateOperationalParamsResponse = exports.MsgUpdateOperationalParams = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
4
- exports.MsgSetModerationPausedResponse = exports.MsgSetModerationPaused = exports.MsgSetForumPausedResponse = exports.MsgSetForumPaused = exports.MsgRejectProposedReplyResponse = exports.MsgRejectProposedReply = exports.MsgConfirmProposedReplyResponse = exports.MsgConfirmProposedReply = exports.MsgMarkAcceptedReplyResponse = exports.MsgMarkAcceptedReply = exports.MsgDisputePinResponse = exports.MsgDisputePin = exports.MsgUnpinReplyResponse = exports.MsgUnpinReply = exports.MsgPinReplyResponse = exports.MsgPinReply = exports.MsgAssignBountyToReplyResponse = exports.MsgAssignBountyToReply = exports.MsgCancelBountyResponse = exports.MsgCancelBounty = void 0;
3
+ exports.MsgAwardBountyResponse = exports.MsgAwardBounty = exports.MsgCreateBountyResponse = exports.MsgCreateBounty = exports.MsgAppealThreadMoveResponse = exports.MsgAppealThreadMove = exports.MsgAppealThreadLockResponse = exports.MsgAppealThreadLock = exports.MsgAppealPostResponse = exports.MsgAppealPost = exports.MsgUnhidePostResponse = exports.MsgUnhidePost = exports.MsgHidePostResponse = exports.MsgHidePost = exports.MsgDismissFlagsResponse = exports.MsgDismissFlags = exports.MsgFlagPostResponse = exports.MsgFlagPost = exports.MsgDownvotePostResponse = exports.MsgDownvotePost = exports.MsgUpvotePostResponse = exports.MsgUpvotePost = exports.MsgUnfollowThreadResponse = exports.MsgUnfollowThread = exports.MsgFollowThreadResponse = exports.MsgFollowThread = exports.MsgMoveThreadResponse = exports.MsgMoveThread = exports.MsgUnlockThreadResponse = exports.MsgUnlockThread = exports.MsgLockThreadResponse = exports.MsgLockThread = exports.MsgUnpinPostResponse = exports.MsgUnpinPost = exports.MsgPinPostResponse = exports.MsgPinPost = exports.MsgUnarchiveThreadResponse = exports.MsgUnarchiveThread = exports.MsgFreezeThreadResponse = exports.MsgFreezeThread = exports.MsgDeletePostResponse = exports.MsgDeletePost = exports.MsgEditPostResponse = exports.MsgEditPost = exports.MsgCreatePostResponse = exports.MsgCreatePost = exports.MsgUpdateOperationalParamsResponse = exports.MsgUpdateOperationalParams = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
4
+ exports.MsgSetModerationPausedResponse = exports.MsgSetModerationPaused = exports.MsgSetForumPausedResponse = exports.MsgSetForumPaused = exports.MsgRejectProposedReplyResponse = exports.MsgRejectProposedReply = exports.MsgConfirmProposedReplyResponse = exports.MsgConfirmProposedReply = exports.MsgMarkAcceptedReplyResponse = exports.MsgMarkAcceptedReply = exports.MsgDisputePinResponse = exports.MsgDisputePin = exports.MsgUnpinReplyResponse = exports.MsgUnpinReply = exports.MsgPinReplyResponse = exports.MsgPinReply = exports.MsgAssignBountyToReplyResponse = exports.MsgAssignBountyToReply = exports.MsgCancelBountyResponse = exports.MsgCancelBounty = exports.MsgIncreaseBountyResponse = exports.MsgIncreaseBounty = void 0;
5
5
  //@ts-nocheck
6
6
  const params_1 = require("./params");
7
7
  const binary_1 = require("../../../binary");
@@ -2966,6 +2966,150 @@ exports.MsgHidePostResponse = {
2966
2966
  };
2967
2967
  }
2968
2968
  };
2969
+ function createBaseMsgUnhidePost() {
2970
+ return {
2971
+ creator: "",
2972
+ postId: BigInt(0)
2973
+ };
2974
+ }
2975
+ /**
2976
+ * MsgUnhidePost reverses MsgHidePost.
2977
+ * @name MsgUnhidePost
2978
+ * @package sparkdream.forum.v1
2979
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePost
2980
+ */
2981
+ exports.MsgUnhidePost = {
2982
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
2983
+ aminoType: "sparkdream/x/forum/MsgUnhidePost",
2984
+ encode(message, writer = binary_1.BinaryWriter.create()) {
2985
+ if (message.creator !== "") {
2986
+ writer.uint32(10).string(message.creator);
2987
+ }
2988
+ if (message.postId !== BigInt(0)) {
2989
+ writer.uint32(16).uint64(message.postId);
2990
+ }
2991
+ return writer;
2992
+ },
2993
+ decode(input, length) {
2994
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
2995
+ let end = length === undefined ? reader.len : reader.pos + length;
2996
+ const message = createBaseMsgUnhidePost();
2997
+ while (reader.pos < end) {
2998
+ const tag = reader.uint32();
2999
+ switch (tag >>> 3) {
3000
+ case 1:
3001
+ message.creator = reader.string();
3002
+ break;
3003
+ case 2:
3004
+ message.postId = reader.uint64();
3005
+ break;
3006
+ default:
3007
+ reader.skipType(tag & 7);
3008
+ break;
3009
+ }
3010
+ }
3011
+ return message;
3012
+ },
3013
+ fromPartial(object) {
3014
+ const message = createBaseMsgUnhidePost();
3015
+ message.creator = object.creator ?? "";
3016
+ message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
3017
+ return message;
3018
+ },
3019
+ fromAmino(object) {
3020
+ const message = createBaseMsgUnhidePost();
3021
+ if (object.creator !== undefined && object.creator !== null) {
3022
+ message.creator = object.creator;
3023
+ }
3024
+ if (object.post_id !== undefined && object.post_id !== null) {
3025
+ message.postId = BigInt(object.post_id);
3026
+ }
3027
+ return message;
3028
+ },
3029
+ toAmino(message) {
3030
+ const obj = {};
3031
+ obj.creator = message.creator === "" ? undefined : message.creator;
3032
+ obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
3033
+ return obj;
3034
+ },
3035
+ fromAminoMsg(object) {
3036
+ return exports.MsgUnhidePost.fromAmino(object.value);
3037
+ },
3038
+ toAminoMsg(message) {
3039
+ return {
3040
+ type: "sparkdream/x/forum/MsgUnhidePost",
3041
+ value: exports.MsgUnhidePost.toAmino(message)
3042
+ };
3043
+ },
3044
+ fromProtoMsg(message) {
3045
+ return exports.MsgUnhidePost.decode(message.value);
3046
+ },
3047
+ toProto(message) {
3048
+ return exports.MsgUnhidePost.encode(message).finish();
3049
+ },
3050
+ toProtoMsg(message) {
3051
+ return {
3052
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
3053
+ value: exports.MsgUnhidePost.encode(message).finish()
3054
+ };
3055
+ }
3056
+ };
3057
+ function createBaseMsgUnhidePostResponse() {
3058
+ return {};
3059
+ }
3060
+ /**
3061
+ * MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
3062
+ * @name MsgUnhidePostResponse
3063
+ * @package sparkdream.forum.v1
3064
+ * @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
3065
+ */
3066
+ exports.MsgUnhidePostResponse = {
3067
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePostResponse",
3068
+ encode(_, writer = binary_1.BinaryWriter.create()) {
3069
+ return writer;
3070
+ },
3071
+ decode(input, length) {
3072
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
3073
+ let end = length === undefined ? reader.len : reader.pos + length;
3074
+ const message = createBaseMsgUnhidePostResponse();
3075
+ while (reader.pos < end) {
3076
+ const tag = reader.uint32();
3077
+ switch (tag >>> 3) {
3078
+ default:
3079
+ reader.skipType(tag & 7);
3080
+ break;
3081
+ }
3082
+ }
3083
+ return message;
3084
+ },
3085
+ fromPartial(_) {
3086
+ const message = createBaseMsgUnhidePostResponse();
3087
+ return message;
3088
+ },
3089
+ fromAmino(_) {
3090
+ const message = createBaseMsgUnhidePostResponse();
3091
+ return message;
3092
+ },
3093
+ toAmino(_) {
3094
+ const obj = {};
3095
+ return obj;
3096
+ },
3097
+ fromAminoMsg(object) {
3098
+ return exports.MsgUnhidePostResponse.fromAmino(object.value);
3099
+ },
3100
+ fromProtoMsg(message) {
3101
+ return exports.MsgUnhidePostResponse.decode(message.value);
3102
+ },
3103
+ toProto(message) {
3104
+ return exports.MsgUnhidePostResponse.encode(message).finish();
3105
+ },
3106
+ toProtoMsg(message) {
3107
+ return {
3108
+ typeUrl: "/sparkdream.forum.v1.MsgUnhidePostResponse",
3109
+ value: exports.MsgUnhidePostResponse.encode(message).finish()
3110
+ };
3111
+ }
3112
+ };
2969
3113
  function createBaseMsgAppealPost() {
2970
3114
  return {
2971
3115
  creator: "",
@@ -1,6 +1,6 @@
1
1
  import { TelescopeGeneratedType } from "../../../types";
2
2
  import { Registry } from "@cosmjs/proto-signing";
3
- 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";
3
+ 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";
4
4
  export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
5
5
  export declare const load: (protoRegistry: Registry) => void;
6
6
  export declare const MessageComposer: {
@@ -81,6 +81,10 @@ export declare const MessageComposer: {
81
81
  typeUrl: string;
82
82
  value: Uint8Array<ArrayBufferLike>;
83
83
  };
84
+ unhidePost(value: MsgUnhidePost): {
85
+ typeUrl: string;
86
+ value: Uint8Array<ArrayBufferLike>;
87
+ };
84
88
  appealPost(value: MsgAppealPost): {
85
89
  typeUrl: string;
86
90
  value: Uint8Array<ArrayBufferLike>;
@@ -223,6 +227,10 @@ export declare const MessageComposer: {
223
227
  typeUrl: string;
224
228
  value: MsgHidePost;
225
229
  };
230
+ unhidePost(value: MsgUnhidePost): {
231
+ typeUrl: string;
232
+ value: MsgUnhidePost;
233
+ };
226
234
  appealPost(value: MsgAppealPost): {
227
235
  typeUrl: string;
228
236
  value: MsgAppealPost;
@@ -365,6 +373,10 @@ export declare const MessageComposer: {
365
373
  typeUrl: string;
366
374
  value: MsgHidePost;
367
375
  };
376
+ unhidePost(value: MsgUnhidePost): {
377
+ typeUrl: string;
378
+ value: MsgUnhidePost;
379
+ };
368
380
  appealPost(value: MsgAppealPost): {
369
381
  typeUrl: string;
370
382
  value: MsgAppealPost;