@sparkdreamnft/sparkdreamjs 0.0.25 → 0.0.26

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.
@@ -300,6 +300,16 @@ export interface Params {
300
300
  * genesis defaults (48h).
301
301
  */
302
302
  acceptProposalTimeout: bigint;
303
+ /**
304
+ * max_accept_proposals_per_sentinel_per_thread caps how many accepted-reply
305
+ * proposals a single sentinel may make on a given thread (counting all
306
+ * proposals, confirmed or rejected). Once a sentinel hits the cap on a thread,
307
+ * proposeAcceptedReply rejects with ErrMaxProposalsReached — that sentinel is
308
+ * done proposing there, permanently. Per-sentinel (not a thread-global cap) so
309
+ * one bad actor cannot exhaust a thread's quota and lock out honest curators.
310
+ * 0 disables the cap. Seeded by the genesis defaults (2).
311
+ */
312
+ maxAcceptProposalsPerSentinelPerThread: number;
303
313
  }
304
314
  export interface ParamsProtoMsg {
305
315
  typeUrl: "/sparkdream.forum.v1.Params";
@@ -605,6 +615,16 @@ export interface ParamsAmino {
605
615
  * genesis defaults (48h).
606
616
  */
607
617
  accept_proposal_timeout?: string;
618
+ /**
619
+ * max_accept_proposals_per_sentinel_per_thread caps how many accepted-reply
620
+ * proposals a single sentinel may make on a given thread (counting all
621
+ * proposals, confirmed or rejected). Once a sentinel hits the cap on a thread,
622
+ * proposeAcceptedReply rejects with ErrMaxProposalsReached — that sentinel is
623
+ * done proposing there, permanently. Per-sentinel (not a thread-global cap) so
624
+ * one bad actor cannot exhaust a thread's quota and lock out honest curators.
625
+ * 0 disables the cap. Seeded by the genesis defaults (2).
626
+ */
627
+ max_accept_proposals_per_sentinel_per_thread?: number;
608
628
  }
609
629
  export interface ParamsAminoMsg {
610
630
  type: "sparkdream/x/forum/Params";
@@ -773,6 +793,11 @@ export interface ForumOperationalParams {
773
793
  * accept_proposal_timeout — see Params.accept_proposal_timeout.
774
794
  */
775
795
  acceptProposalTimeout: bigint;
796
+ /**
797
+ * max_accept_proposals_per_sentinel_per_thread —
798
+ * see Params.max_accept_proposals_per_sentinel_per_thread.
799
+ */
800
+ maxAcceptProposalsPerSentinelPerThread: number;
776
801
  }
777
802
  export interface ForumOperationalParamsProtoMsg {
778
803
  typeUrl: "/sparkdream.forum.v1.ForumOperationalParams";
@@ -941,6 +966,11 @@ export interface ForumOperationalParamsAmino {
941
966
  * accept_proposal_timeout — see Params.accept_proposal_timeout.
942
967
  */
943
968
  accept_proposal_timeout?: string;
969
+ /**
970
+ * max_accept_proposals_per_sentinel_per_thread —
971
+ * see Params.max_accept_proposals_per_sentinel_per_thread.
972
+ */
973
+ max_accept_proposals_per_sentinel_per_thread?: number;
944
974
  }
945
975
  export interface ForumOperationalParamsAminoMsg {
946
976
  type: "sparkdream/x/forum/ForumOperationalParams";
@@ -63,7 +63,8 @@ function createBaseParams() {
63
63
  maxForumRepPerTagPerEpoch: "",
64
64
  postConvictionStakerSlashBps: BigInt(0),
65
65
  curationDreamReward: "",
66
- acceptProposalTimeout: BigInt(0)
66
+ acceptProposalTimeout: BigInt(0),
67
+ maxAcceptProposalsPerSentinelPerThread: 0
67
68
  };
68
69
  }
69
70
  /**
@@ -252,6 +253,9 @@ exports.Params = {
252
253
  if (message.acceptProposalTimeout !== BigInt(0)) {
253
254
  writer.uint32(528).int64(message.acceptProposalTimeout);
254
255
  }
256
+ if (message.maxAcceptProposalsPerSentinelPerThread !== 0) {
257
+ writer.uint32(536).uint32(message.maxAcceptProposalsPerSentinelPerThread);
258
+ }
255
259
  return writer;
256
260
  },
257
261
  decode(input, length) {
@@ -435,6 +439,9 @@ exports.Params = {
435
439
  case 66:
436
440
  message.acceptProposalTimeout = reader.int64();
437
441
  break;
442
+ case 67:
443
+ message.maxAcceptProposalsPerSentinelPerThread = reader.uint32();
444
+ break;
438
445
  default:
439
446
  reader.skipType(tag & 7);
440
447
  break;
@@ -502,6 +509,7 @@ exports.Params = {
502
509
  message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
503
510
  message.curationDreamReward = object.curationDreamReward ?? "";
504
511
  message.acceptProposalTimeout = object.acceptProposalTimeout !== undefined && object.acceptProposalTimeout !== null ? BigInt(object.acceptProposalTimeout.toString()) : BigInt(0);
512
+ message.maxAcceptProposalsPerSentinelPerThread = object.maxAcceptProposalsPerSentinelPerThread ?? 0;
505
513
  return message;
506
514
  },
507
515
  fromAmino(object) {
@@ -680,6 +688,9 @@ exports.Params = {
680
688
  if (object.accept_proposal_timeout !== undefined && object.accept_proposal_timeout !== null) {
681
689
  message.acceptProposalTimeout = BigInt(object.accept_proposal_timeout);
682
690
  }
691
+ if (object.max_accept_proposals_per_sentinel_per_thread !== undefined && object.max_accept_proposals_per_sentinel_per_thread !== null) {
692
+ message.maxAcceptProposalsPerSentinelPerThread = object.max_accept_proposals_per_sentinel_per_thread;
693
+ }
683
694
  return message;
684
695
  },
685
696
  toAmino(message) {
@@ -742,6 +753,7 @@ exports.Params = {
742
753
  obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
743
754
  obj.curation_dream_reward = message.curationDreamReward === "" ? undefined : message.curationDreamReward;
744
755
  obj.accept_proposal_timeout = message.acceptProposalTimeout !== BigInt(0) ? message.acceptProposalTimeout?.toString() : undefined;
756
+ obj.max_accept_proposals_per_sentinel_per_thread = message.maxAcceptProposalsPerSentinelPerThread === 0 ? undefined : message.maxAcceptProposalsPerSentinelPerThread;
745
757
  return obj;
746
758
  },
747
759
  fromAminoMsg(object) {
@@ -819,7 +831,8 @@ function createBaseForumOperationalParams() {
819
831
  maxForumRepPerTagPerEpoch: "",
820
832
  postConvictionStakerSlashBps: BigInt(0),
821
833
  curationDreamReward: "",
822
- acceptProposalTimeout: BigInt(0)
834
+ acceptProposalTimeout: BigInt(0),
835
+ maxAcceptProposalsPerSentinelPerThread: 0
823
836
  };
824
837
  }
825
838
  /**
@@ -991,6 +1004,9 @@ exports.ForumOperationalParams = {
991
1004
  if (message.acceptProposalTimeout !== BigInt(0)) {
992
1005
  writer.uint32(528).int64(message.acceptProposalTimeout);
993
1006
  }
1007
+ if (message.maxAcceptProposalsPerSentinelPerThread !== 0) {
1008
+ writer.uint32(536).uint32(message.maxAcceptProposalsPerSentinelPerThread);
1009
+ }
994
1010
  return writer;
995
1011
  },
996
1012
  decode(input, length) {
@@ -1156,6 +1172,9 @@ exports.ForumOperationalParams = {
1156
1172
  case 66:
1157
1173
  message.acceptProposalTimeout = reader.int64();
1158
1174
  break;
1175
+ case 67:
1176
+ message.maxAcceptProposalsPerSentinelPerThread = reader.uint32();
1177
+ break;
1159
1178
  default:
1160
1179
  reader.skipType(tag & 7);
1161
1180
  break;
@@ -1217,6 +1236,7 @@ exports.ForumOperationalParams = {
1217
1236
  message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
1218
1237
  message.curationDreamReward = object.curationDreamReward ?? "";
1219
1238
  message.acceptProposalTimeout = object.acceptProposalTimeout !== undefined && object.acceptProposalTimeout !== null ? BigInt(object.acceptProposalTimeout.toString()) : BigInt(0);
1239
+ message.maxAcceptProposalsPerSentinelPerThread = object.maxAcceptProposalsPerSentinelPerThread ?? 0;
1220
1240
  return message;
1221
1241
  },
1222
1242
  fromAmino(object) {
@@ -1377,6 +1397,9 @@ exports.ForumOperationalParams = {
1377
1397
  if (object.accept_proposal_timeout !== undefined && object.accept_proposal_timeout !== null) {
1378
1398
  message.acceptProposalTimeout = BigInt(object.accept_proposal_timeout);
1379
1399
  }
1400
+ if (object.max_accept_proposals_per_sentinel_per_thread !== undefined && object.max_accept_proposals_per_sentinel_per_thread !== null) {
1401
+ message.maxAcceptProposalsPerSentinelPerThread = object.max_accept_proposals_per_sentinel_per_thread;
1402
+ }
1380
1403
  return message;
1381
1404
  },
1382
1405
  toAmino(message) {
@@ -1433,6 +1456,7 @@ exports.ForumOperationalParams = {
1433
1456
  obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
1434
1457
  obj.curation_dream_reward = message.curationDreamReward === "" ? undefined : message.curationDreamReward;
1435
1458
  obj.accept_proposal_timeout = message.acceptProposalTimeout !== BigInt(0) ? message.acceptProposalTimeout?.toString() : undefined;
1459
+ obj.max_accept_proposals_per_sentinel_per_thread = message.maxAcceptProposalsPerSentinelPerThread === 0 ? undefined : message.maxAcceptProposalsPerSentinelPerThread;
1436
1460
  return obj;
1437
1461
  },
1438
1462
  fromAminoMsg(object) {
@@ -33,6 +33,14 @@ export interface ThreadMetadata {
33
33
  proposalFireAt: bigint;
34
34
  pinnedReplyIds: bigint[];
35
35
  pinnedRecords: PinnedReplyRecord[];
36
+ /**
37
+ * proposals_locked, when true, closes the thread to sentinel accepted-reply
38
+ * proposals: proposeAcceptedReply rejects with ErrThreadProposalsLocked. Set
39
+ * by the thread author via MsgSetThreadProposalsLock so a discussion thread (or
40
+ * a thread with no good answer) can be definitively closed to curation without
41
+ * being forced into an irreversible acceptance. Author-only to set/clear.
42
+ */
43
+ proposalsLocked: boolean;
36
44
  }
37
45
  export interface ThreadMetadataProtoMsg {
38
46
  typeUrl: "/sparkdream.forum.v1.ThreadMetadata";
@@ -70,6 +78,14 @@ export interface ThreadMetadataAmino {
70
78
  proposal_fire_at?: string;
71
79
  pinned_reply_ids?: string[];
72
80
  pinned_records?: PinnedReplyRecordAmino[];
81
+ /**
82
+ * proposals_locked, when true, closes the thread to sentinel accepted-reply
83
+ * proposals: proposeAcceptedReply rejects with ErrThreadProposalsLocked. Set
84
+ * by the thread author via MsgSetThreadProposalsLock so a discussion thread (or
85
+ * a thread with no good answer) can be definitively closed to curation without
86
+ * being forced into an irreversible acceptance. Author-only to set/clear.
87
+ */
88
+ proposals_locked?: boolean;
73
89
  }
74
90
  export interface ThreadMetadataAminoMsg {
75
91
  type: "/sparkdream.forum.v1.ThreadMetadata";
@@ -16,7 +16,8 @@ function createBaseThreadMetadata() {
16
16
  proposalExtended: false,
17
17
  proposalFireAt: BigInt(0),
18
18
  pinnedReplyIds: [],
19
- pinnedRecords: []
19
+ pinnedRecords: [],
20
+ proposalsLocked: false
20
21
  };
21
22
  }
22
23
  /**
@@ -63,6 +64,9 @@ exports.ThreadMetadata = {
63
64
  for (const v of message.pinnedRecords) {
64
65
  types_1.PinnedReplyRecord.encode(v, writer.uint32(90).fork()).ldelim();
65
66
  }
67
+ if (message.proposalsLocked === true) {
68
+ writer.uint32(96).bool(message.proposalsLocked);
69
+ }
66
70
  return writer;
67
71
  },
68
72
  decode(input, length) {
@@ -113,6 +117,9 @@ exports.ThreadMetadata = {
113
117
  case 11:
114
118
  message.pinnedRecords.push(types_1.PinnedReplyRecord.decode(reader, reader.uint32()));
115
119
  break;
120
+ case 12:
121
+ message.proposalsLocked = reader.bool();
122
+ break;
116
123
  default:
117
124
  reader.skipType(tag & 7);
118
125
  break;
@@ -133,6 +140,7 @@ exports.ThreadMetadata = {
133
140
  message.proposalFireAt = object.proposalFireAt !== undefined && object.proposalFireAt !== null ? BigInt(object.proposalFireAt.toString()) : BigInt(0);
134
141
  message.pinnedReplyIds = object.pinnedReplyIds?.map(e => BigInt(e.toString())) || [];
135
142
  message.pinnedRecords = object.pinnedRecords?.map(e => types_1.PinnedReplyRecord.fromPartial(e)) || [];
143
+ message.proposalsLocked = object.proposalsLocked ?? false;
136
144
  return message;
137
145
  },
138
146
  fromAmino(object) {
@@ -166,6 +174,9 @@ exports.ThreadMetadata = {
166
174
  }
167
175
  message.pinnedReplyIds = object.pinned_reply_ids?.map(e => BigInt(e)) || [];
168
176
  message.pinnedRecords = object.pinned_records?.map(e => types_1.PinnedReplyRecord.fromAmino(e)) || [];
177
+ if (object.proposals_locked !== undefined && object.proposals_locked !== null) {
178
+ message.proposalsLocked = object.proposals_locked;
179
+ }
169
180
  return message;
170
181
  },
171
182
  toAmino(message) {
@@ -191,6 +202,7 @@ exports.ThreadMetadata = {
191
202
  else {
192
203
  obj.pinned_records = message.pinnedRecords;
193
204
  }
205
+ obj.proposals_locked = message.proposalsLocked === false ? undefined : message.proposalsLocked;
194
206
  return obj;
195
207
  },
196
208
  fromAminoMsg(object) {
@@ -187,9 +187,6 @@ export interface MsgCreatePost {
187
187
  content: string;
188
188
  tags: string[];
189
189
  contentType: ContentType;
190
- /**
191
- * Optional DREAM amount to lock as author bond
192
- */
193
190
  authorBond?: string;
194
191
  initiativeId: bigint;
195
192
  }
@@ -210,9 +207,6 @@ export interface MsgCreatePostAmino {
210
207
  content?: string;
211
208
  tags?: string[];
212
209
  content_type?: ContentType;
213
- /**
214
- * Optional DREAM amount to lock as author bond
215
- */
216
210
  author_bond?: string;
217
211
  initiative_id?: string;
218
212
  }
@@ -2210,6 +2204,60 @@ export interface MsgSetModerationPausedResponseAminoMsg {
2210
2204
  type: "/sparkdream.forum.v1.MsgSetModerationPausedResponse";
2211
2205
  value: MsgSetModerationPausedResponseAmino;
2212
2206
  }
2207
+ /**
2208
+ * MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
2209
+ * @name MsgSetThreadProposalsLock
2210
+ * @package sparkdream.forum.v1
2211
+ * @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
2212
+ */
2213
+ export interface MsgSetThreadProposalsLock {
2214
+ creator: string;
2215
+ threadId: bigint;
2216
+ locked: boolean;
2217
+ }
2218
+ export interface MsgSetThreadProposalsLockProtoMsg {
2219
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock";
2220
+ value: Uint8Array;
2221
+ }
2222
+ /**
2223
+ * MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
2224
+ * @name MsgSetThreadProposalsLockAmino
2225
+ * @package sparkdream.forum.v1
2226
+ * @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
2227
+ */
2228
+ export interface MsgSetThreadProposalsLockAmino {
2229
+ creator?: string;
2230
+ thread_id?: string;
2231
+ locked?: boolean;
2232
+ }
2233
+ export interface MsgSetThreadProposalsLockAminoMsg {
2234
+ type: "sparkdream/x/forum/MsgSetThreadProposalsLock";
2235
+ value: MsgSetThreadProposalsLockAmino;
2236
+ }
2237
+ /**
2238
+ * MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
2239
+ * @name MsgSetThreadProposalsLockResponse
2240
+ * @package sparkdream.forum.v1
2241
+ * @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
2242
+ */
2243
+ export interface MsgSetThreadProposalsLockResponse {
2244
+ }
2245
+ export interface MsgSetThreadProposalsLockResponseProtoMsg {
2246
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse";
2247
+ value: Uint8Array;
2248
+ }
2249
+ /**
2250
+ * MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
2251
+ * @name MsgSetThreadProposalsLockResponseAmino
2252
+ * @package sparkdream.forum.v1
2253
+ * @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
2254
+ */
2255
+ export interface MsgSetThreadProposalsLockResponseAmino {
2256
+ }
2257
+ export interface MsgSetThreadProposalsLockResponseAminoMsg {
2258
+ type: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse";
2259
+ value: MsgSetThreadProposalsLockResponseAmino;
2260
+ }
2213
2261
  /**
2214
2262
  * MsgUpdateParams is the Msg/UpdateParams request type.
2215
2263
  * @name MsgUpdateParams
@@ -3698,3 +3746,41 @@ export declare const MsgSetModerationPausedResponse: {
3698
3746
  toProto(message: MsgSetModerationPausedResponse): Uint8Array;
3699
3747
  toProtoMsg(message: MsgSetModerationPausedResponse): MsgSetModerationPausedResponseProtoMsg;
3700
3748
  };
3749
+ /**
3750
+ * MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
3751
+ * @name MsgSetThreadProposalsLock
3752
+ * @package sparkdream.forum.v1
3753
+ * @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
3754
+ */
3755
+ export declare const MsgSetThreadProposalsLock: {
3756
+ typeUrl: string;
3757
+ aminoType: string;
3758
+ encode(message: MsgSetThreadProposalsLock, writer?: BinaryWriter): BinaryWriter;
3759
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSetThreadProposalsLock;
3760
+ fromPartial(object: DeepPartial<MsgSetThreadProposalsLock>): MsgSetThreadProposalsLock;
3761
+ fromAmino(object: MsgSetThreadProposalsLockAmino): MsgSetThreadProposalsLock;
3762
+ toAmino(message: MsgSetThreadProposalsLock): MsgSetThreadProposalsLockAmino;
3763
+ fromAminoMsg(object: MsgSetThreadProposalsLockAminoMsg): MsgSetThreadProposalsLock;
3764
+ toAminoMsg(message: MsgSetThreadProposalsLock): MsgSetThreadProposalsLockAminoMsg;
3765
+ fromProtoMsg(message: MsgSetThreadProposalsLockProtoMsg): MsgSetThreadProposalsLock;
3766
+ toProto(message: MsgSetThreadProposalsLock): Uint8Array;
3767
+ toProtoMsg(message: MsgSetThreadProposalsLock): MsgSetThreadProposalsLockProtoMsg;
3768
+ };
3769
+ /**
3770
+ * MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
3771
+ * @name MsgSetThreadProposalsLockResponse
3772
+ * @package sparkdream.forum.v1
3773
+ * @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
3774
+ */
3775
+ export declare const MsgSetThreadProposalsLockResponse: {
3776
+ typeUrl: string;
3777
+ encode(_: MsgSetThreadProposalsLockResponse, writer?: BinaryWriter): BinaryWriter;
3778
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSetThreadProposalsLockResponse;
3779
+ fromPartial(_: DeepPartial<MsgSetThreadProposalsLockResponse>): MsgSetThreadProposalsLockResponse;
3780
+ fromAmino(_: MsgSetThreadProposalsLockResponseAmino): MsgSetThreadProposalsLockResponse;
3781
+ toAmino(_: MsgSetThreadProposalsLockResponse): MsgSetThreadProposalsLockResponseAmino;
3782
+ fromAminoMsg(object: MsgSetThreadProposalsLockResponseAminoMsg): MsgSetThreadProposalsLockResponse;
3783
+ fromProtoMsg(message: MsgSetThreadProposalsLockResponseProtoMsg): MsgSetThreadProposalsLockResponse;
3784
+ toProto(message: MsgSetThreadProposalsLockResponse): Uint8Array;
3785
+ toProtoMsg(message: MsgSetThreadProposalsLockResponse): MsgSetThreadProposalsLockResponseProtoMsg;
3786
+ };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MsgAppealPostResponse = exports.MsgAppealPost = exports.MsgUnhidePostResponse = exports.MsgUnhidePost = exports.MsgHidePostResponse = exports.MsgHidePost = exports.MsgDismissFlagsResponse = exports.MsgDismissFlags = exports.MsgFlagPostResponse = exports.MsgFlagPost = exports.MsgReleasePostConvictionResponse = exports.MsgReleasePostConviction = exports.MsgStakePostConvictionResponse = exports.MsgStakePostConviction = 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.MsgMakePostPermanentResponse = exports.MsgMakePostPermanent = 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 = exports.ModerationAuthorityAmino = exports.ModerationAuthority = 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 = exports.MsgAwardBountyResponse = exports.MsgAwardBounty = exports.MsgCreateBountyResponse = exports.MsgCreateBounty = exports.MsgAppealThreadMoveResponse = exports.MsgAppealThreadMove = exports.MsgAppealThreadLockResponse = exports.MsgAppealThreadLock = void 0;
4
+ exports.MsgSetThreadProposalsLockResponse = exports.MsgSetThreadProposalsLock = 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 = exports.MsgAwardBountyResponse = exports.MsgAwardBounty = exports.MsgCreateBountyResponse = exports.MsgCreateBounty = exports.MsgAppealThreadMoveResponse = exports.MsgAppealThreadMove = exports.MsgAppealThreadLockResponse = exports.MsgAppealThreadLock = void 0;
5
5
  exports.moderationAuthorityFromJSON = moderationAuthorityFromJSON;
6
6
  exports.moderationAuthorityToJSON = moderationAuthorityToJSON;
7
7
  //@ts-nocheck
@@ -6105,3 +6105,159 @@ exports.MsgSetModerationPausedResponse = {
6105
6105
  };
6106
6106
  }
6107
6107
  };
6108
+ function createBaseMsgSetThreadProposalsLock() {
6109
+ return {
6110
+ creator: "",
6111
+ threadId: BigInt(0),
6112
+ locked: false
6113
+ };
6114
+ }
6115
+ /**
6116
+ * MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
6117
+ * @name MsgSetThreadProposalsLock
6118
+ * @package sparkdream.forum.v1
6119
+ * @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
6120
+ */
6121
+ exports.MsgSetThreadProposalsLock = {
6122
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
6123
+ aminoType: "sparkdream/x/forum/MsgSetThreadProposalsLock",
6124
+ encode(message, writer = binary_1.BinaryWriter.create()) {
6125
+ if (message.creator !== "") {
6126
+ writer.uint32(10).string(message.creator);
6127
+ }
6128
+ if (message.threadId !== BigInt(0)) {
6129
+ writer.uint32(16).uint64(message.threadId);
6130
+ }
6131
+ if (message.locked === true) {
6132
+ writer.uint32(24).bool(message.locked);
6133
+ }
6134
+ return writer;
6135
+ },
6136
+ decode(input, length) {
6137
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
6138
+ let end = length === undefined ? reader.len : reader.pos + length;
6139
+ const message = createBaseMsgSetThreadProposalsLock();
6140
+ while (reader.pos < end) {
6141
+ const tag = reader.uint32();
6142
+ switch (tag >>> 3) {
6143
+ case 1:
6144
+ message.creator = reader.string();
6145
+ break;
6146
+ case 2:
6147
+ message.threadId = reader.uint64();
6148
+ break;
6149
+ case 3:
6150
+ message.locked = reader.bool();
6151
+ break;
6152
+ default:
6153
+ reader.skipType(tag & 7);
6154
+ break;
6155
+ }
6156
+ }
6157
+ return message;
6158
+ },
6159
+ fromPartial(object) {
6160
+ const message = createBaseMsgSetThreadProposalsLock();
6161
+ message.creator = object.creator ?? "";
6162
+ message.threadId = object.threadId !== undefined && object.threadId !== null ? BigInt(object.threadId.toString()) : BigInt(0);
6163
+ message.locked = object.locked ?? false;
6164
+ return message;
6165
+ },
6166
+ fromAmino(object) {
6167
+ const message = createBaseMsgSetThreadProposalsLock();
6168
+ if (object.creator !== undefined && object.creator !== null) {
6169
+ message.creator = object.creator;
6170
+ }
6171
+ if (object.thread_id !== undefined && object.thread_id !== null) {
6172
+ message.threadId = BigInt(object.thread_id);
6173
+ }
6174
+ if (object.locked !== undefined && object.locked !== null) {
6175
+ message.locked = object.locked;
6176
+ }
6177
+ return message;
6178
+ },
6179
+ toAmino(message) {
6180
+ const obj = {};
6181
+ obj.creator = message.creator === "" ? undefined : message.creator;
6182
+ obj.thread_id = message.threadId !== BigInt(0) ? message.threadId?.toString() : undefined;
6183
+ obj.locked = message.locked === false ? undefined : message.locked;
6184
+ return obj;
6185
+ },
6186
+ fromAminoMsg(object) {
6187
+ return exports.MsgSetThreadProposalsLock.fromAmino(object.value);
6188
+ },
6189
+ toAminoMsg(message) {
6190
+ return {
6191
+ type: "sparkdream/x/forum/MsgSetThreadProposalsLock",
6192
+ value: exports.MsgSetThreadProposalsLock.toAmino(message)
6193
+ };
6194
+ },
6195
+ fromProtoMsg(message) {
6196
+ return exports.MsgSetThreadProposalsLock.decode(message.value);
6197
+ },
6198
+ toProto(message) {
6199
+ return exports.MsgSetThreadProposalsLock.encode(message).finish();
6200
+ },
6201
+ toProtoMsg(message) {
6202
+ return {
6203
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
6204
+ value: exports.MsgSetThreadProposalsLock.encode(message).finish()
6205
+ };
6206
+ }
6207
+ };
6208
+ function createBaseMsgSetThreadProposalsLockResponse() {
6209
+ return {};
6210
+ }
6211
+ /**
6212
+ * MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
6213
+ * @name MsgSetThreadProposalsLockResponse
6214
+ * @package sparkdream.forum.v1
6215
+ * @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
6216
+ */
6217
+ exports.MsgSetThreadProposalsLockResponse = {
6218
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse",
6219
+ encode(_, writer = binary_1.BinaryWriter.create()) {
6220
+ return writer;
6221
+ },
6222
+ decode(input, length) {
6223
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
6224
+ let end = length === undefined ? reader.len : reader.pos + length;
6225
+ const message = createBaseMsgSetThreadProposalsLockResponse();
6226
+ while (reader.pos < end) {
6227
+ const tag = reader.uint32();
6228
+ switch (tag >>> 3) {
6229
+ default:
6230
+ reader.skipType(tag & 7);
6231
+ break;
6232
+ }
6233
+ }
6234
+ return message;
6235
+ },
6236
+ fromPartial(_) {
6237
+ const message = createBaseMsgSetThreadProposalsLockResponse();
6238
+ return message;
6239
+ },
6240
+ fromAmino(_) {
6241
+ const message = createBaseMsgSetThreadProposalsLockResponse();
6242
+ return message;
6243
+ },
6244
+ toAmino(_) {
6245
+ const obj = {};
6246
+ return obj;
6247
+ },
6248
+ fromAminoMsg(object) {
6249
+ return exports.MsgSetThreadProposalsLockResponse.fromAmino(object.value);
6250
+ },
6251
+ fromProtoMsg(message) {
6252
+ return exports.MsgSetThreadProposalsLockResponse.decode(message.value);
6253
+ },
6254
+ toProto(message) {
6255
+ return exports.MsgSetThreadProposalsLockResponse.encode(message).finish();
6256
+ },
6257
+ toProtoMsg(message) {
6258
+ return {
6259
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse",
6260
+ value: exports.MsgSetThreadProposalsLockResponse.encode(message).finish()
6261
+ };
6262
+ }
6263
+ };
@@ -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, MsgMakePostPermanent, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgStakePostConviction, MsgReleasePostConviction, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, 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, MsgMakePostPermanent, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgStakePostConviction, MsgReleasePostConviction, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused, MsgSetThreadProposalsLock } 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: {
@@ -161,6 +161,10 @@ export declare const MessageComposer: {
161
161
  typeUrl: string;
162
162
  value: Uint8Array<ArrayBufferLike>;
163
163
  };
164
+ setThreadProposalsLock(value: MsgSetThreadProposalsLock): {
165
+ typeUrl: string;
166
+ value: Uint8Array<ArrayBufferLike>;
167
+ };
164
168
  };
165
169
  withTypeUrl: {
166
170
  updateParams(value: MsgUpdateParams): {
@@ -319,6 +323,10 @@ export declare const MessageComposer: {
319
323
  typeUrl: string;
320
324
  value: MsgSetModerationPaused;
321
325
  };
326
+ setThreadProposalsLock(value: MsgSetThreadProposalsLock): {
327
+ typeUrl: string;
328
+ value: MsgSetThreadProposalsLock;
329
+ };
322
330
  };
323
331
  fromPartial: {
324
332
  updateParams(value: MsgUpdateParams): {
@@ -477,5 +485,9 @@ export declare const MessageComposer: {
477
485
  typeUrl: string;
478
486
  value: MsgSetModerationPaused;
479
487
  };
488
+ setThreadProposalsLock(value: MsgSetThreadProposalsLock): {
489
+ typeUrl: string;
490
+ value: MsgSetThreadProposalsLock;
491
+ };
480
492
  };
481
493
  };
@@ -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.MsgMakePostPermanent", tx_1.MsgMakePostPermanent], ["/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.MsgStakePostConviction", tx_1.MsgStakePostConviction], ["/sparkdream.forum.v1.MsgReleasePostConviction", tx_1.MsgReleasePostConviction], ["/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]];
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.MsgMakePostPermanent", tx_1.MsgMakePostPermanent], ["/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.MsgStakePostConviction", tx_1.MsgStakePostConviction], ["/sparkdream.forum.v1.MsgReleasePostConviction", tx_1.MsgReleasePostConviction], ["/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], ["/sparkdream.forum.v1.MsgSetThreadProposalsLock", tx_1.MsgSetThreadProposalsLock]];
6
6
  const load = (protoRegistry) => {
7
7
  exports.registry.forEach(([typeUrl, mod]) => {
8
8
  protoRegistry.register(typeUrl, mod);
@@ -244,6 +244,12 @@ exports.MessageComposer = {
244
244
  typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
245
245
  value: tx_1.MsgSetModerationPaused.encode(value).finish()
246
246
  };
247
+ },
248
+ setThreadProposalsLock(value) {
249
+ return {
250
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
251
+ value: tx_1.MsgSetThreadProposalsLock.encode(value).finish()
252
+ };
247
253
  }
248
254
  },
249
255
  withTypeUrl: {
@@ -480,6 +486,12 @@ exports.MessageComposer = {
480
486
  typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
481
487
  value
482
488
  };
489
+ },
490
+ setThreadProposalsLock(value) {
491
+ return {
492
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
493
+ value
494
+ };
483
495
  }
484
496
  },
485
497
  fromPartial: {
@@ -716,6 +728,12 @@ exports.MessageComposer = {
716
728
  typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
717
729
  value: tx_1.MsgSetModerationPaused.fromPartial(value)
718
730
  };
731
+ },
732
+ setThreadProposalsLock(value) {
733
+ return {
734
+ typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
735
+ value: tx_1.MsgSetThreadProposalsLock.fromPartial(value)
736
+ };
719
737
  }
720
738
  }
721
739
  };