@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.
- package/esm/sparkdream/commons/v1/tx.js +147 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +7 -1
- package/esm/sparkdream/forum/v1/hide_record.js +19 -1
- package/esm/sparkdream/forum/v1/params.js +26 -2
- package/esm/sparkdream/forum/v1/tx.amino.js +6 -1
- package/esm/sparkdream/forum/v1/tx.js +144 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +20 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +12 -1
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +81 -0
- package/sparkdream/client.d.ts +5 -0
- package/sparkdream/commons/v1/tx.d.ts +99 -0
- package/sparkdream/commons/v1/tx.js +148 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +3 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +6 -0
- package/sparkdream/forum/v1/hide_record.d.ts +50 -0
- package/sparkdream/forum/v1/hide_record.js +19 -1
- package/sparkdream/forum/v1/params.d.ts +28 -0
- package/sparkdream/forum/v1/params.js +26 -2
- package/sparkdream/forum/v1/tx.amino.d.ts +6 -1
- package/sparkdream/forum/v1/tx.amino.js +5 -0
- package/sparkdream/forum/v1/tx.d.ts +90 -0
- package/sparkdream/forum/v1/tx.js +146 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +13 -1
- package/sparkdream/forum/v1/tx.registry.js +19 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +11 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +11 -0
|
@@ -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.
|
|
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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
4
4
|
const tx_1 = require("./tx");
|
|
5
|
-
exports.registry = [["/sparkdream.forum.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", tx_1.MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", tx_1.MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", tx_1.MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", tx_1.MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", tx_1.MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", tx_1.MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", tx_1.MsgUnpinPost], ["/sparkdream.forum.v1.MsgLockThread", tx_1.MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", tx_1.MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", tx_1.MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", tx_1.MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", tx_1.MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", tx_1.MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", tx_1.MsgDownvotePost], ["/sparkdream.forum.v1.MsgFlagPost", tx_1.MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", tx_1.MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", tx_1.MsgHidePost], ["/sparkdream.forum.v1.MsgAppealPost", tx_1.MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", tx_1.MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", tx_1.MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", tx_1.MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", tx_1.MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", tx_1.MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", tx_1.MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", tx_1.MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", tx_1.MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", tx_1.MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", tx_1.MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", tx_1.MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", tx_1.MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", tx_1.MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", tx_1.MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", tx_1.MsgSetModerationPaused]];
|
|
5
|
+
exports.registry = [["/sparkdream.forum.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", tx_1.MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", tx_1.MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", tx_1.MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", tx_1.MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", tx_1.MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", tx_1.MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", tx_1.MsgUnpinPost], ["/sparkdream.forum.v1.MsgLockThread", tx_1.MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", tx_1.MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", tx_1.MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", tx_1.MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", tx_1.MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", tx_1.MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", tx_1.MsgDownvotePost], ["/sparkdream.forum.v1.MsgFlagPost", tx_1.MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", tx_1.MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", tx_1.MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", tx_1.MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", tx_1.MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", tx_1.MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", tx_1.MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", tx_1.MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", tx_1.MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", tx_1.MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", tx_1.MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", tx_1.MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", tx_1.MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", tx_1.MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", tx_1.MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", tx_1.MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", tx_1.MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", tx_1.MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", tx_1.MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", tx_1.MsgSetModerationPaused]];
|
|
6
6
|
const load = (protoRegistry) => {
|
|
7
7
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
8
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -125,6 +125,12 @@ exports.MessageComposer = {
|
|
|
125
125
|
value: tx_1.MsgHidePost.encode(value).finish()
|
|
126
126
|
};
|
|
127
127
|
},
|
|
128
|
+
unhidePost(value) {
|
|
129
|
+
return {
|
|
130
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
|
|
131
|
+
value: tx_1.MsgUnhidePost.encode(value).finish()
|
|
132
|
+
};
|
|
133
|
+
},
|
|
128
134
|
appealPost(value) {
|
|
129
135
|
return {
|
|
130
136
|
typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
|
|
@@ -337,6 +343,12 @@ exports.MessageComposer = {
|
|
|
337
343
|
value
|
|
338
344
|
};
|
|
339
345
|
},
|
|
346
|
+
unhidePost(value) {
|
|
347
|
+
return {
|
|
348
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
|
|
349
|
+
value
|
|
350
|
+
};
|
|
351
|
+
},
|
|
340
352
|
appealPost(value) {
|
|
341
353
|
return {
|
|
342
354
|
typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
|
|
@@ -549,6 +561,12 @@ exports.MessageComposer = {
|
|
|
549
561
|
value: tx_1.MsgHidePost.fromPartial(value)
|
|
550
562
|
};
|
|
551
563
|
},
|
|
564
|
+
unhidePost(value) {
|
|
565
|
+
return {
|
|
566
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
|
|
567
|
+
value: tx_1.MsgUnhidePost.fromPartial(value)
|
|
568
|
+
};
|
|
569
|
+
},
|
|
552
570
|
appealPost(value) {
|
|
553
571
|
return {
|
|
554
572
|
typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
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
|
/** Msg defines the Msg service. */
|
|
4
4
|
export interface Msg {
|
|
5
5
|
/**
|
|
@@ -46,6 +46,15 @@ export interface Msg {
|
|
|
46
46
|
dismissFlags(request: MsgDismissFlags): Promise<MsgDismissFlagsResponse>;
|
|
47
47
|
/** HidePost defines the HidePost RPC. */
|
|
48
48
|
hidePost(request: MsgHidePost): Promise<MsgHidePostResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* UnhidePost reverses a prior MsgHidePost. Authorized for (a) the sentinel
|
|
51
|
+
* who originally hid the post, but only within sentinel_unhide_window
|
|
52
|
+
* seconds of the hide (self-correction grace window analogous to the
|
|
53
|
+
* edit_max_window for authors); and (b) the Commons Operations Committee
|
|
54
|
+
* / governance at any time (council override). Refuses if the post's
|
|
55
|
+
* parent category has since been deleted (dangling reference guard).
|
|
56
|
+
*/
|
|
57
|
+
unhidePost(request: MsgUnhidePost): Promise<MsgUnhidePostResponse>;
|
|
49
58
|
/** AppealPost defines the AppealPost RPC. */
|
|
50
59
|
appealPost(request: MsgAppealPost): Promise<MsgAppealPostResponse>;
|
|
51
60
|
/** AppealThreadLock defines the AppealThreadLock RPC. */
|
|
@@ -101,6 +110,7 @@ export declare class MsgClientImpl implements Msg {
|
|
|
101
110
|
flagPost: (request: MsgFlagPost) => Promise<MsgFlagPostResponse>;
|
|
102
111
|
dismissFlags: (request: MsgDismissFlags) => Promise<MsgDismissFlagsResponse>;
|
|
103
112
|
hidePost: (request: MsgHidePost) => Promise<MsgHidePostResponse>;
|
|
113
|
+
unhidePost: (request: MsgUnhidePost) => Promise<MsgUnhidePostResponse>;
|
|
104
114
|
appealPost: (request: MsgAppealPost) => Promise<MsgAppealPostResponse>;
|
|
105
115
|
appealThreadLock: (request: MsgAppealThreadLock) => Promise<MsgAppealThreadLockResponse>;
|
|
106
116
|
appealThreadMove: (request: MsgAppealThreadMove) => Promise<MsgAppealThreadMoveResponse>;
|