@sparkdreamnft/sparkdreamjs 0.0.25 → 0.0.27
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +181 -181
- package/esm/cosmos/bundle.js +181 -181
- package/esm/ibc/bundle.js +105 -105
- package/esm/sparkdream/bundle.js +275 -273
- package/esm/sparkdream/collect/v1/params.js +24 -0
- package/esm/sparkdream/collect/v1/tx.js +216 -1
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +11 -1
- package/esm/sparkdream/collect/v1/types.js +92 -2
- package/esm/sparkdream/forum/v1/genesis.js +110 -1
- package/esm/sparkdream/forum/v1/params.js +26 -2
- package/esm/sparkdream/forum/v1/sentinel_activity.js +58 -1
- package/esm/sparkdream/forum/v1/thread_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/tx.js +157 -1
- package/esm/sparkdream/forum/v1/tx.registry.js +20 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +7 -1
- package/esm/sparkdream/rep/v1/bonded_role.js +17 -5
- package/esm/sparkdream/rep/v1/genesis.js +17 -1
- package/esm/sparkdream/rep/v1/role_activity.js +670 -0
- package/esm/sparkdream/rep/v1/tx.js +159 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +20 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +8 -1
- package/esm/tendermint/bundle.js +17 -17
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +105 -105
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +7232 -7037
- package/sparkdream/bundle.js +275 -273
- package/sparkdream/collect/v1/params.d.ts +28 -0
- package/sparkdream/collect/v1/params.js +24 -0
- package/sparkdream/collect/v1/tx.d.ts +130 -6
- package/sparkdream/collect/v1/tx.js +220 -3
- package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
- package/sparkdream/collect/v1/tx.registry.js +19 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +10 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +10 -0
- package/sparkdream/collect/v1/types.d.ts +72 -0
- package/sparkdream/collect/v1/types.js +92 -2
- package/sparkdream/forum/v1/genesis.d.ts +65 -0
- package/sparkdream/forum/v1/genesis.js +111 -2
- package/sparkdream/forum/v1/params.d.ts +30 -0
- package/sparkdream/forum/v1/params.js +26 -2
- package/sparkdream/forum/v1/sentinel_activity.d.ts +53 -0
- package/sparkdream/forum/v1/sentinel_activity.js +58 -1
- package/sparkdream/forum/v1/thread_metadata.d.ts +16 -0
- package/sparkdream/forum/v1/thread_metadata.js +13 -1
- package/sparkdream/forum/v1/tx.d.ts +93 -7
- package/sparkdream/forum/v1/tx.js +158 -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 +4 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +6 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +13 -1
- package/sparkdream/rep/v1/bonded_role.js +17 -5
- package/sparkdream/rep/v1/genesis.d.ts +3 -0
- package/sparkdream/rep/v1/genesis.js +17 -1
- package/sparkdream/rep/v1/role_activity.d.ts +395 -0
- package/sparkdream/rep/v1/role_activity.js +673 -0
- package/sparkdream/rep/v1/tx.d.ts +101 -0
- package/sparkdream/rep/v1/tx.js +160 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +13 -1
- package/sparkdream/rep/v1/tx.registry.js +19 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +7 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +17 -17
|
@@ -31,7 +31,8 @@ function createBaseGenesisState() {
|
|
|
31
31
|
threadFollowMap: [],
|
|
32
32
|
threadFollowCountMap: [],
|
|
33
33
|
archiveMetadataMap: [],
|
|
34
|
-
postCount: BigInt(0)
|
|
34
|
+
postCount: BigInt(0),
|
|
35
|
+
proposalCountMap: []
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
@@ -91,6 +92,9 @@ export const GenesisState = {
|
|
|
91
92
|
if (message.postCount !== BigInt(0)) {
|
|
92
93
|
writer.uint32(128).uint64(message.postCount);
|
|
93
94
|
}
|
|
95
|
+
for (const v of message.proposalCountMap) {
|
|
96
|
+
ProposalCountEntry.encode(v, writer.uint32(138).fork()).ldelim();
|
|
97
|
+
}
|
|
94
98
|
return writer;
|
|
95
99
|
},
|
|
96
100
|
decode(input, length) {
|
|
@@ -148,6 +152,9 @@ export const GenesisState = {
|
|
|
148
152
|
case 16:
|
|
149
153
|
message.postCount = reader.uint64();
|
|
150
154
|
break;
|
|
155
|
+
case 17:
|
|
156
|
+
message.proposalCountMap.push(ProposalCountEntry.decode(reader, reader.uint32()));
|
|
157
|
+
break;
|
|
151
158
|
default:
|
|
152
159
|
reader.skipType(tag & 7);
|
|
153
160
|
break;
|
|
@@ -173,6 +180,7 @@ export const GenesisState = {
|
|
|
173
180
|
message.threadFollowCountMap = object.threadFollowCountMap?.map(e => ThreadFollowCount.fromPartial(e)) || [];
|
|
174
181
|
message.archiveMetadataMap = object.archiveMetadataMap?.map(e => ArchiveMetadata.fromPartial(e)) || [];
|
|
175
182
|
message.postCount = object.postCount !== undefined && object.postCount !== null ? BigInt(object.postCount.toString()) : BigInt(0);
|
|
183
|
+
message.proposalCountMap = object.proposalCountMap?.map(e => ProposalCountEntry.fromPartial(e)) || [];
|
|
176
184
|
return message;
|
|
177
185
|
},
|
|
178
186
|
fromAmino(object) {
|
|
@@ -199,6 +207,7 @@ export const GenesisState = {
|
|
|
199
207
|
if (object.post_count !== undefined && object.post_count !== null) {
|
|
200
208
|
message.postCount = BigInt(object.post_count);
|
|
201
209
|
}
|
|
210
|
+
message.proposalCountMap = object.proposal_count_map?.map(e => ProposalCountEntry.fromAmino(e)) || [];
|
|
202
211
|
return message;
|
|
203
212
|
},
|
|
204
213
|
toAmino(message) {
|
|
@@ -284,6 +293,12 @@ export const GenesisState = {
|
|
|
284
293
|
obj.archive_metadata_map = message.archiveMetadataMap;
|
|
285
294
|
}
|
|
286
295
|
obj.post_count = message.postCount !== BigInt(0) ? message.postCount?.toString() : undefined;
|
|
296
|
+
if (message.proposalCountMap) {
|
|
297
|
+
obj.proposal_count_map = message.proposalCountMap.map(e => e ? ProposalCountEntry.toAmino(e) : undefined);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
obj.proposal_count_map = message.proposalCountMap;
|
|
301
|
+
}
|
|
287
302
|
return obj;
|
|
288
303
|
},
|
|
289
304
|
fromAminoMsg(object) {
|
|
@@ -302,3 +317,97 @@ export const GenesisState = {
|
|
|
302
317
|
};
|
|
303
318
|
}
|
|
304
319
|
};
|
|
320
|
+
function createBaseProposalCountEntry() {
|
|
321
|
+
return {
|
|
322
|
+
threadId: BigInt(0),
|
|
323
|
+
sentinel: "",
|
|
324
|
+
count: BigInt(0)
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* ProposalCountEntry is one (thread_id, sentinel) -> count tuple of the
|
|
329
|
+
* accepted-reply proposal cap counter, flattened for genesis import/export.
|
|
330
|
+
* @name ProposalCountEntry
|
|
331
|
+
* @package sparkdream.forum.v1
|
|
332
|
+
* @see proto type: sparkdream.forum.v1.ProposalCountEntry
|
|
333
|
+
*/
|
|
334
|
+
export const ProposalCountEntry = {
|
|
335
|
+
typeUrl: "/sparkdream.forum.v1.ProposalCountEntry",
|
|
336
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
337
|
+
if (message.threadId !== BigInt(0)) {
|
|
338
|
+
writer.uint32(8).uint64(message.threadId);
|
|
339
|
+
}
|
|
340
|
+
if (message.sentinel !== "") {
|
|
341
|
+
writer.uint32(18).string(message.sentinel);
|
|
342
|
+
}
|
|
343
|
+
if (message.count !== BigInt(0)) {
|
|
344
|
+
writer.uint32(24).uint64(message.count);
|
|
345
|
+
}
|
|
346
|
+
return writer;
|
|
347
|
+
},
|
|
348
|
+
decode(input, length) {
|
|
349
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
350
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
351
|
+
const message = createBaseProposalCountEntry();
|
|
352
|
+
while (reader.pos < end) {
|
|
353
|
+
const tag = reader.uint32();
|
|
354
|
+
switch (tag >>> 3) {
|
|
355
|
+
case 1:
|
|
356
|
+
message.threadId = reader.uint64();
|
|
357
|
+
break;
|
|
358
|
+
case 2:
|
|
359
|
+
message.sentinel = reader.string();
|
|
360
|
+
break;
|
|
361
|
+
case 3:
|
|
362
|
+
message.count = reader.uint64();
|
|
363
|
+
break;
|
|
364
|
+
default:
|
|
365
|
+
reader.skipType(tag & 7);
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
return message;
|
|
370
|
+
},
|
|
371
|
+
fromPartial(object) {
|
|
372
|
+
const message = createBaseProposalCountEntry();
|
|
373
|
+
message.threadId = object.threadId !== undefined && object.threadId !== null ? BigInt(object.threadId.toString()) : BigInt(0);
|
|
374
|
+
message.sentinel = object.sentinel ?? "";
|
|
375
|
+
message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0);
|
|
376
|
+
return message;
|
|
377
|
+
},
|
|
378
|
+
fromAmino(object) {
|
|
379
|
+
const message = createBaseProposalCountEntry();
|
|
380
|
+
if (object.thread_id !== undefined && object.thread_id !== null) {
|
|
381
|
+
message.threadId = BigInt(object.thread_id);
|
|
382
|
+
}
|
|
383
|
+
if (object.sentinel !== undefined && object.sentinel !== null) {
|
|
384
|
+
message.sentinel = object.sentinel;
|
|
385
|
+
}
|
|
386
|
+
if (object.count !== undefined && object.count !== null) {
|
|
387
|
+
message.count = BigInt(object.count);
|
|
388
|
+
}
|
|
389
|
+
return message;
|
|
390
|
+
},
|
|
391
|
+
toAmino(message) {
|
|
392
|
+
const obj = {};
|
|
393
|
+
obj.thread_id = message.threadId !== BigInt(0) ? message.threadId?.toString() : undefined;
|
|
394
|
+
obj.sentinel = message.sentinel === "" ? undefined : message.sentinel;
|
|
395
|
+
obj.count = message.count !== BigInt(0) ? message.count?.toString() : undefined;
|
|
396
|
+
return obj;
|
|
397
|
+
},
|
|
398
|
+
fromAminoMsg(object) {
|
|
399
|
+
return ProposalCountEntry.fromAmino(object.value);
|
|
400
|
+
},
|
|
401
|
+
fromProtoMsg(message) {
|
|
402
|
+
return ProposalCountEntry.decode(message.value);
|
|
403
|
+
},
|
|
404
|
+
toProto(message) {
|
|
405
|
+
return ProposalCountEntry.encode(message).finish();
|
|
406
|
+
},
|
|
407
|
+
toProtoMsg(message) {
|
|
408
|
+
return {
|
|
409
|
+
typeUrl: "/sparkdream.forum.v1.ProposalCountEntry",
|
|
410
|
+
value: ProposalCountEntry.encode(message).finish()
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
};
|
|
@@ -60,7 +60,8 @@ function createBaseParams() {
|
|
|
60
60
|
maxForumRepPerTagPerEpoch: "",
|
|
61
61
|
postConvictionStakerSlashBps: BigInt(0),
|
|
62
62
|
curationDreamReward: "",
|
|
63
|
-
acceptProposalTimeout: BigInt(0)
|
|
63
|
+
acceptProposalTimeout: BigInt(0),
|
|
64
|
+
maxAcceptProposalsPerSentinelPerThread: 0
|
|
64
65
|
};
|
|
65
66
|
}
|
|
66
67
|
/**
|
|
@@ -249,6 +250,9 @@ export const Params = {
|
|
|
249
250
|
if (message.acceptProposalTimeout !== BigInt(0)) {
|
|
250
251
|
writer.uint32(528).int64(message.acceptProposalTimeout);
|
|
251
252
|
}
|
|
253
|
+
if (message.maxAcceptProposalsPerSentinelPerThread !== 0) {
|
|
254
|
+
writer.uint32(536).uint32(message.maxAcceptProposalsPerSentinelPerThread);
|
|
255
|
+
}
|
|
252
256
|
return writer;
|
|
253
257
|
},
|
|
254
258
|
decode(input, length) {
|
|
@@ -432,6 +436,9 @@ export const Params = {
|
|
|
432
436
|
case 66:
|
|
433
437
|
message.acceptProposalTimeout = reader.int64();
|
|
434
438
|
break;
|
|
439
|
+
case 67:
|
|
440
|
+
message.maxAcceptProposalsPerSentinelPerThread = reader.uint32();
|
|
441
|
+
break;
|
|
435
442
|
default:
|
|
436
443
|
reader.skipType(tag & 7);
|
|
437
444
|
break;
|
|
@@ -499,6 +506,7 @@ export const Params = {
|
|
|
499
506
|
message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
|
|
500
507
|
message.curationDreamReward = object.curationDreamReward ?? "";
|
|
501
508
|
message.acceptProposalTimeout = object.acceptProposalTimeout !== undefined && object.acceptProposalTimeout !== null ? BigInt(object.acceptProposalTimeout.toString()) : BigInt(0);
|
|
509
|
+
message.maxAcceptProposalsPerSentinelPerThread = object.maxAcceptProposalsPerSentinelPerThread ?? 0;
|
|
502
510
|
return message;
|
|
503
511
|
},
|
|
504
512
|
fromAmino(object) {
|
|
@@ -677,6 +685,9 @@ export const Params = {
|
|
|
677
685
|
if (object.accept_proposal_timeout !== undefined && object.accept_proposal_timeout !== null) {
|
|
678
686
|
message.acceptProposalTimeout = BigInt(object.accept_proposal_timeout);
|
|
679
687
|
}
|
|
688
|
+
if (object.max_accept_proposals_per_sentinel_per_thread !== undefined && object.max_accept_proposals_per_sentinel_per_thread !== null) {
|
|
689
|
+
message.maxAcceptProposalsPerSentinelPerThread = object.max_accept_proposals_per_sentinel_per_thread;
|
|
690
|
+
}
|
|
680
691
|
return message;
|
|
681
692
|
},
|
|
682
693
|
toAmino(message) {
|
|
@@ -739,6 +750,7 @@ export const Params = {
|
|
|
739
750
|
obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
|
|
740
751
|
obj.curation_dream_reward = message.curationDreamReward === "" ? undefined : message.curationDreamReward;
|
|
741
752
|
obj.accept_proposal_timeout = message.acceptProposalTimeout !== BigInt(0) ? message.acceptProposalTimeout?.toString() : undefined;
|
|
753
|
+
obj.max_accept_proposals_per_sentinel_per_thread = message.maxAcceptProposalsPerSentinelPerThread === 0 ? undefined : message.maxAcceptProposalsPerSentinelPerThread;
|
|
742
754
|
return obj;
|
|
743
755
|
},
|
|
744
756
|
fromAminoMsg(object) {
|
|
@@ -816,7 +828,8 @@ function createBaseForumOperationalParams() {
|
|
|
816
828
|
maxForumRepPerTagPerEpoch: "",
|
|
817
829
|
postConvictionStakerSlashBps: BigInt(0),
|
|
818
830
|
curationDreamReward: "",
|
|
819
|
-
acceptProposalTimeout: BigInt(0)
|
|
831
|
+
acceptProposalTimeout: BigInt(0),
|
|
832
|
+
maxAcceptProposalsPerSentinelPerThread: 0
|
|
820
833
|
};
|
|
821
834
|
}
|
|
822
835
|
/**
|
|
@@ -988,6 +1001,9 @@ export const ForumOperationalParams = {
|
|
|
988
1001
|
if (message.acceptProposalTimeout !== BigInt(0)) {
|
|
989
1002
|
writer.uint32(528).int64(message.acceptProposalTimeout);
|
|
990
1003
|
}
|
|
1004
|
+
if (message.maxAcceptProposalsPerSentinelPerThread !== 0) {
|
|
1005
|
+
writer.uint32(536).uint32(message.maxAcceptProposalsPerSentinelPerThread);
|
|
1006
|
+
}
|
|
991
1007
|
return writer;
|
|
992
1008
|
},
|
|
993
1009
|
decode(input, length) {
|
|
@@ -1153,6 +1169,9 @@ export const ForumOperationalParams = {
|
|
|
1153
1169
|
case 66:
|
|
1154
1170
|
message.acceptProposalTimeout = reader.int64();
|
|
1155
1171
|
break;
|
|
1172
|
+
case 67:
|
|
1173
|
+
message.maxAcceptProposalsPerSentinelPerThread = reader.uint32();
|
|
1174
|
+
break;
|
|
1156
1175
|
default:
|
|
1157
1176
|
reader.skipType(tag & 7);
|
|
1158
1177
|
break;
|
|
@@ -1214,6 +1233,7 @@ export const ForumOperationalParams = {
|
|
|
1214
1233
|
message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
|
|
1215
1234
|
message.curationDreamReward = object.curationDreamReward ?? "";
|
|
1216
1235
|
message.acceptProposalTimeout = object.acceptProposalTimeout !== undefined && object.acceptProposalTimeout !== null ? BigInt(object.acceptProposalTimeout.toString()) : BigInt(0);
|
|
1236
|
+
message.maxAcceptProposalsPerSentinelPerThread = object.maxAcceptProposalsPerSentinelPerThread ?? 0;
|
|
1217
1237
|
return message;
|
|
1218
1238
|
},
|
|
1219
1239
|
fromAmino(object) {
|
|
@@ -1374,6 +1394,9 @@ export const ForumOperationalParams = {
|
|
|
1374
1394
|
if (object.accept_proposal_timeout !== undefined && object.accept_proposal_timeout !== null) {
|
|
1375
1395
|
message.acceptProposalTimeout = BigInt(object.accept_proposal_timeout);
|
|
1376
1396
|
}
|
|
1397
|
+
if (object.max_accept_proposals_per_sentinel_per_thread !== undefined && object.max_accept_proposals_per_sentinel_per_thread !== null) {
|
|
1398
|
+
message.maxAcceptProposalsPerSentinelPerThread = object.max_accept_proposals_per_sentinel_per_thread;
|
|
1399
|
+
}
|
|
1377
1400
|
return message;
|
|
1378
1401
|
},
|
|
1379
1402
|
toAmino(message) {
|
|
@@ -1430,6 +1453,7 @@ export const ForumOperationalParams = {
|
|
|
1430
1453
|
obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
|
|
1431
1454
|
obj.curation_dream_reward = message.curationDreamReward === "" ? undefined : message.curationDreamReward;
|
|
1432
1455
|
obj.accept_proposal_timeout = message.acceptProposalTimeout !== BigInt(0) ? message.acceptProposalTimeout?.toString() : undefined;
|
|
1456
|
+
obj.max_accept_proposals_per_sentinel_per_thread = message.maxAcceptProposalsPerSentinelPerThread === 0 ? undefined : message.maxAcceptProposalsPerSentinelPerThread;
|
|
1433
1457
|
return obj;
|
|
1434
1458
|
},
|
|
1435
1459
|
fromAminoMsg(object) {
|
|
@@ -126,13 +126,26 @@ function createBaseSentinelActivity() {
|
|
|
126
126
|
confirmedProposals: BigInt(0),
|
|
127
127
|
rejectedProposals: BigInt(0),
|
|
128
128
|
epochCurations: BigInt(0),
|
|
129
|
-
accuracyWindow: []
|
|
129
|
+
accuracyWindow: [],
|
|
130
|
+
totalCollectHides: BigInt(0),
|
|
131
|
+
upheldCollectHides: BigInt(0),
|
|
132
|
+
overturnedCollectHides: BigInt(0),
|
|
133
|
+
epochCollectHides: BigInt(0)
|
|
130
134
|
};
|
|
131
135
|
}
|
|
132
136
|
/**
|
|
133
137
|
* SentinelActivity holds forum-specific action counters and local cooldowns
|
|
134
138
|
* for a sentinel. The accountability record (bond, bond status, activity
|
|
135
139
|
* stamps) lives in sparkdream.rep.v1.SentinelActivity.
|
|
140
|
+
* STORAGE vs PROJECTION: the shared accountability record lives on
|
|
141
|
+
* x/rep's RoleActivity (see docs/x-rep-spec.md); forum PERSISTS only the
|
|
142
|
+
* forum-local fields — pending_hide_count, unchallenged_hides, and the
|
|
143
|
+
* curation-proposal lifecycle counters (total/confirmed/rejected_proposals).
|
|
144
|
+
* Every other field (per-action totals/upheld/overturned/epoch counters,
|
|
145
|
+
* streaks, overturn_cooldown_until, accuracy_window, collect counters) is
|
|
146
|
+
* PROJECTION-ONLY: sourced from x/rep's shared RoleActivity record at query
|
|
147
|
+
* time by get-sentinel-activity so client field paths stay stable. Those
|
|
148
|
+
* fields are zero in stored records and must not be written.
|
|
136
149
|
* @name SentinelActivity
|
|
137
150
|
* @package sparkdream.forum.v1
|
|
138
151
|
* @see proto type: sparkdream.forum.v1.SentinelActivity
|
|
@@ -227,6 +240,18 @@ export const SentinelActivity = {
|
|
|
227
240
|
for (const v of message.accuracyWindow) {
|
|
228
241
|
AccuracyEpochBucket.encode(v, writer.uint32(234).fork()).ldelim();
|
|
229
242
|
}
|
|
243
|
+
if (message.totalCollectHides !== BigInt(0)) {
|
|
244
|
+
writer.uint32(240).uint64(message.totalCollectHides);
|
|
245
|
+
}
|
|
246
|
+
if (message.upheldCollectHides !== BigInt(0)) {
|
|
247
|
+
writer.uint32(248).uint64(message.upheldCollectHides);
|
|
248
|
+
}
|
|
249
|
+
if (message.overturnedCollectHides !== BigInt(0)) {
|
|
250
|
+
writer.uint32(256).uint64(message.overturnedCollectHides);
|
|
251
|
+
}
|
|
252
|
+
if (message.epochCollectHides !== BigInt(0)) {
|
|
253
|
+
writer.uint32(264).uint64(message.epochCollectHides);
|
|
254
|
+
}
|
|
230
255
|
return writer;
|
|
231
256
|
},
|
|
232
257
|
decode(input, length) {
|
|
@@ -323,6 +348,18 @@ export const SentinelActivity = {
|
|
|
323
348
|
case 29:
|
|
324
349
|
message.accuracyWindow.push(AccuracyEpochBucket.decode(reader, reader.uint32()));
|
|
325
350
|
break;
|
|
351
|
+
case 30:
|
|
352
|
+
message.totalCollectHides = reader.uint64();
|
|
353
|
+
break;
|
|
354
|
+
case 31:
|
|
355
|
+
message.upheldCollectHides = reader.uint64();
|
|
356
|
+
break;
|
|
357
|
+
case 32:
|
|
358
|
+
message.overturnedCollectHides = reader.uint64();
|
|
359
|
+
break;
|
|
360
|
+
case 33:
|
|
361
|
+
message.epochCollectHides = reader.uint64();
|
|
362
|
+
break;
|
|
326
363
|
default:
|
|
327
364
|
reader.skipType(tag & 7);
|
|
328
365
|
break;
|
|
@@ -361,6 +398,10 @@ export const SentinelActivity = {
|
|
|
361
398
|
message.rejectedProposals = object.rejectedProposals !== undefined && object.rejectedProposals !== null ? BigInt(object.rejectedProposals.toString()) : BigInt(0);
|
|
362
399
|
message.epochCurations = object.epochCurations !== undefined && object.epochCurations !== null ? BigInt(object.epochCurations.toString()) : BigInt(0);
|
|
363
400
|
message.accuracyWindow = object.accuracyWindow?.map(e => AccuracyEpochBucket.fromPartial(e)) || [];
|
|
401
|
+
message.totalCollectHides = object.totalCollectHides !== undefined && object.totalCollectHides !== null ? BigInt(object.totalCollectHides.toString()) : BigInt(0);
|
|
402
|
+
message.upheldCollectHides = object.upheldCollectHides !== undefined && object.upheldCollectHides !== null ? BigInt(object.upheldCollectHides.toString()) : BigInt(0);
|
|
403
|
+
message.overturnedCollectHides = object.overturnedCollectHides !== undefined && object.overturnedCollectHides !== null ? BigInt(object.overturnedCollectHides.toString()) : BigInt(0);
|
|
404
|
+
message.epochCollectHides = object.epochCollectHides !== undefined && object.epochCollectHides !== null ? BigInt(object.epochCollectHides.toString()) : BigInt(0);
|
|
364
405
|
return message;
|
|
365
406
|
},
|
|
366
407
|
fromAmino(object) {
|
|
@@ -450,6 +491,18 @@ export const SentinelActivity = {
|
|
|
450
491
|
message.epochCurations = BigInt(object.epoch_curations);
|
|
451
492
|
}
|
|
452
493
|
message.accuracyWindow = object.accuracy_window?.map(e => AccuracyEpochBucket.fromAmino(e)) || [];
|
|
494
|
+
if (object.total_collect_hides !== undefined && object.total_collect_hides !== null) {
|
|
495
|
+
message.totalCollectHides = BigInt(object.total_collect_hides);
|
|
496
|
+
}
|
|
497
|
+
if (object.upheld_collect_hides !== undefined && object.upheld_collect_hides !== null) {
|
|
498
|
+
message.upheldCollectHides = BigInt(object.upheld_collect_hides);
|
|
499
|
+
}
|
|
500
|
+
if (object.overturned_collect_hides !== undefined && object.overturned_collect_hides !== null) {
|
|
501
|
+
message.overturnedCollectHides = BigInt(object.overturned_collect_hides);
|
|
502
|
+
}
|
|
503
|
+
if (object.epoch_collect_hides !== undefined && object.epoch_collect_hides !== null) {
|
|
504
|
+
message.epochCollectHides = BigInt(object.epoch_collect_hides);
|
|
505
|
+
}
|
|
453
506
|
return message;
|
|
454
507
|
},
|
|
455
508
|
toAmino(message) {
|
|
@@ -488,6 +541,10 @@ export const SentinelActivity = {
|
|
|
488
541
|
else {
|
|
489
542
|
obj.accuracy_window = message.accuracyWindow;
|
|
490
543
|
}
|
|
544
|
+
obj.total_collect_hides = message.totalCollectHides !== BigInt(0) ? message.totalCollectHides?.toString() : undefined;
|
|
545
|
+
obj.upheld_collect_hides = message.upheldCollectHides !== BigInt(0) ? message.upheldCollectHides?.toString() : undefined;
|
|
546
|
+
obj.overturned_collect_hides = message.overturnedCollectHides !== BigInt(0) ? message.overturnedCollectHides?.toString() : undefined;
|
|
547
|
+
obj.epoch_collect_hides = message.epochCollectHides !== BigInt(0) ? message.epochCollectHides?.toString() : undefined;
|
|
491
548
|
return obj;
|
|
492
549
|
},
|
|
493
550
|
fromAminoMsg(object) {
|
|
@@ -13,7 +13,8 @@ function createBaseThreadMetadata() {
|
|
|
13
13
|
proposalExtended: false,
|
|
14
14
|
proposalFireAt: BigInt(0),
|
|
15
15
|
pinnedReplyIds: [],
|
|
16
|
-
pinnedRecords: []
|
|
16
|
+
pinnedRecords: [],
|
|
17
|
+
proposalsLocked: false
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
@@ -60,6 +61,9 @@ export const ThreadMetadata = {
|
|
|
60
61
|
for (const v of message.pinnedRecords) {
|
|
61
62
|
PinnedReplyRecord.encode(v, writer.uint32(90).fork()).ldelim();
|
|
62
63
|
}
|
|
64
|
+
if (message.proposalsLocked === true) {
|
|
65
|
+
writer.uint32(96).bool(message.proposalsLocked);
|
|
66
|
+
}
|
|
63
67
|
return writer;
|
|
64
68
|
},
|
|
65
69
|
decode(input, length) {
|
|
@@ -110,6 +114,9 @@ export const ThreadMetadata = {
|
|
|
110
114
|
case 11:
|
|
111
115
|
message.pinnedRecords.push(PinnedReplyRecord.decode(reader, reader.uint32()));
|
|
112
116
|
break;
|
|
117
|
+
case 12:
|
|
118
|
+
message.proposalsLocked = reader.bool();
|
|
119
|
+
break;
|
|
113
120
|
default:
|
|
114
121
|
reader.skipType(tag & 7);
|
|
115
122
|
break;
|
|
@@ -130,6 +137,7 @@ export const ThreadMetadata = {
|
|
|
130
137
|
message.proposalFireAt = object.proposalFireAt !== undefined && object.proposalFireAt !== null ? BigInt(object.proposalFireAt.toString()) : BigInt(0);
|
|
131
138
|
message.pinnedReplyIds = object.pinnedReplyIds?.map(e => BigInt(e.toString())) || [];
|
|
132
139
|
message.pinnedRecords = object.pinnedRecords?.map(e => PinnedReplyRecord.fromPartial(e)) || [];
|
|
140
|
+
message.proposalsLocked = object.proposalsLocked ?? false;
|
|
133
141
|
return message;
|
|
134
142
|
},
|
|
135
143
|
fromAmino(object) {
|
|
@@ -163,6 +171,9 @@ export const ThreadMetadata = {
|
|
|
163
171
|
}
|
|
164
172
|
message.pinnedReplyIds = object.pinned_reply_ids?.map(e => BigInt(e)) || [];
|
|
165
173
|
message.pinnedRecords = object.pinned_records?.map(e => PinnedReplyRecord.fromAmino(e)) || [];
|
|
174
|
+
if (object.proposals_locked !== undefined && object.proposals_locked !== null) {
|
|
175
|
+
message.proposalsLocked = object.proposals_locked;
|
|
176
|
+
}
|
|
166
177
|
return message;
|
|
167
178
|
},
|
|
168
179
|
toAmino(message) {
|
|
@@ -188,6 +199,7 @@ export const ThreadMetadata = {
|
|
|
188
199
|
else {
|
|
189
200
|
obj.pinned_records = message.pinnedRecords;
|
|
190
201
|
}
|
|
202
|
+
obj.proposals_locked = message.proposalsLocked === false ? undefined : message.proposalsLocked;
|
|
191
203
|
return obj;
|
|
192
204
|
},
|
|
193
205
|
fromAminoMsg(object) {
|
|
@@ -7,7 +7,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
|
7
7
|
* where an account is BOTH a bonded forum sentinel and a Commons Operations
|
|
8
8
|
* Committee member: without it the handler would silently pick the council
|
|
9
9
|
* (gov) path — a strictly more powerful, less accountable action chosen by
|
|
10
|
-
* accident. See docs/
|
|
10
|
+
* accident. See docs/x-forum-spec.md (Shared ModerationAuthority).
|
|
11
11
|
*/
|
|
12
12
|
export var ModerationAuthority;
|
|
13
13
|
(function (ModerationAuthority) {
|
|
@@ -6099,3 +6099,159 @@ export const MsgSetModerationPausedResponse = {
|
|
|
6099
6099
|
};
|
|
6100
6100
|
}
|
|
6101
6101
|
};
|
|
6102
|
+
function createBaseMsgSetThreadProposalsLock() {
|
|
6103
|
+
return {
|
|
6104
|
+
creator: "",
|
|
6105
|
+
threadId: BigInt(0),
|
|
6106
|
+
locked: false
|
|
6107
|
+
};
|
|
6108
|
+
}
|
|
6109
|
+
/**
|
|
6110
|
+
* MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
|
|
6111
|
+
* @name MsgSetThreadProposalsLock
|
|
6112
|
+
* @package sparkdream.forum.v1
|
|
6113
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
|
|
6114
|
+
*/
|
|
6115
|
+
export const MsgSetThreadProposalsLock = {
|
|
6116
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
6117
|
+
aminoType: "sparkdream/x/forum/MsgSetThreadProposalsLock",
|
|
6118
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6119
|
+
if (message.creator !== "") {
|
|
6120
|
+
writer.uint32(10).string(message.creator);
|
|
6121
|
+
}
|
|
6122
|
+
if (message.threadId !== BigInt(0)) {
|
|
6123
|
+
writer.uint32(16).uint64(message.threadId);
|
|
6124
|
+
}
|
|
6125
|
+
if (message.locked === true) {
|
|
6126
|
+
writer.uint32(24).bool(message.locked);
|
|
6127
|
+
}
|
|
6128
|
+
return writer;
|
|
6129
|
+
},
|
|
6130
|
+
decode(input, length) {
|
|
6131
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6132
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6133
|
+
const message = createBaseMsgSetThreadProposalsLock();
|
|
6134
|
+
while (reader.pos < end) {
|
|
6135
|
+
const tag = reader.uint32();
|
|
6136
|
+
switch (tag >>> 3) {
|
|
6137
|
+
case 1:
|
|
6138
|
+
message.creator = reader.string();
|
|
6139
|
+
break;
|
|
6140
|
+
case 2:
|
|
6141
|
+
message.threadId = reader.uint64();
|
|
6142
|
+
break;
|
|
6143
|
+
case 3:
|
|
6144
|
+
message.locked = reader.bool();
|
|
6145
|
+
break;
|
|
6146
|
+
default:
|
|
6147
|
+
reader.skipType(tag & 7);
|
|
6148
|
+
break;
|
|
6149
|
+
}
|
|
6150
|
+
}
|
|
6151
|
+
return message;
|
|
6152
|
+
},
|
|
6153
|
+
fromPartial(object) {
|
|
6154
|
+
const message = createBaseMsgSetThreadProposalsLock();
|
|
6155
|
+
message.creator = object.creator ?? "";
|
|
6156
|
+
message.threadId = object.threadId !== undefined && object.threadId !== null ? BigInt(object.threadId.toString()) : BigInt(0);
|
|
6157
|
+
message.locked = object.locked ?? false;
|
|
6158
|
+
return message;
|
|
6159
|
+
},
|
|
6160
|
+
fromAmino(object) {
|
|
6161
|
+
const message = createBaseMsgSetThreadProposalsLock();
|
|
6162
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
6163
|
+
message.creator = object.creator;
|
|
6164
|
+
}
|
|
6165
|
+
if (object.thread_id !== undefined && object.thread_id !== null) {
|
|
6166
|
+
message.threadId = BigInt(object.thread_id);
|
|
6167
|
+
}
|
|
6168
|
+
if (object.locked !== undefined && object.locked !== null) {
|
|
6169
|
+
message.locked = object.locked;
|
|
6170
|
+
}
|
|
6171
|
+
return message;
|
|
6172
|
+
},
|
|
6173
|
+
toAmino(message) {
|
|
6174
|
+
const obj = {};
|
|
6175
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
6176
|
+
obj.thread_id = message.threadId !== BigInt(0) ? message.threadId?.toString() : undefined;
|
|
6177
|
+
obj.locked = message.locked === false ? undefined : message.locked;
|
|
6178
|
+
return obj;
|
|
6179
|
+
},
|
|
6180
|
+
fromAminoMsg(object) {
|
|
6181
|
+
return MsgSetThreadProposalsLock.fromAmino(object.value);
|
|
6182
|
+
},
|
|
6183
|
+
toAminoMsg(message) {
|
|
6184
|
+
return {
|
|
6185
|
+
type: "sparkdream/x/forum/MsgSetThreadProposalsLock",
|
|
6186
|
+
value: MsgSetThreadProposalsLock.toAmino(message)
|
|
6187
|
+
};
|
|
6188
|
+
},
|
|
6189
|
+
fromProtoMsg(message) {
|
|
6190
|
+
return MsgSetThreadProposalsLock.decode(message.value);
|
|
6191
|
+
},
|
|
6192
|
+
toProto(message) {
|
|
6193
|
+
return MsgSetThreadProposalsLock.encode(message).finish();
|
|
6194
|
+
},
|
|
6195
|
+
toProtoMsg(message) {
|
|
6196
|
+
return {
|
|
6197
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
6198
|
+
value: MsgSetThreadProposalsLock.encode(message).finish()
|
|
6199
|
+
};
|
|
6200
|
+
}
|
|
6201
|
+
};
|
|
6202
|
+
function createBaseMsgSetThreadProposalsLockResponse() {
|
|
6203
|
+
return {};
|
|
6204
|
+
}
|
|
6205
|
+
/**
|
|
6206
|
+
* MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
|
|
6207
|
+
* @name MsgSetThreadProposalsLockResponse
|
|
6208
|
+
* @package sparkdream.forum.v1
|
|
6209
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
|
|
6210
|
+
*/
|
|
6211
|
+
export const MsgSetThreadProposalsLockResponse = {
|
|
6212
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse",
|
|
6213
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
6214
|
+
return writer;
|
|
6215
|
+
},
|
|
6216
|
+
decode(input, length) {
|
|
6217
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6218
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6219
|
+
const message = createBaseMsgSetThreadProposalsLockResponse();
|
|
6220
|
+
while (reader.pos < end) {
|
|
6221
|
+
const tag = reader.uint32();
|
|
6222
|
+
switch (tag >>> 3) {
|
|
6223
|
+
default:
|
|
6224
|
+
reader.skipType(tag & 7);
|
|
6225
|
+
break;
|
|
6226
|
+
}
|
|
6227
|
+
}
|
|
6228
|
+
return message;
|
|
6229
|
+
},
|
|
6230
|
+
fromPartial(_) {
|
|
6231
|
+
const message = createBaseMsgSetThreadProposalsLockResponse();
|
|
6232
|
+
return message;
|
|
6233
|
+
},
|
|
6234
|
+
fromAmino(_) {
|
|
6235
|
+
const message = createBaseMsgSetThreadProposalsLockResponse();
|
|
6236
|
+
return message;
|
|
6237
|
+
},
|
|
6238
|
+
toAmino(_) {
|
|
6239
|
+
const obj = {};
|
|
6240
|
+
return obj;
|
|
6241
|
+
},
|
|
6242
|
+
fromAminoMsg(object) {
|
|
6243
|
+
return MsgSetThreadProposalsLockResponse.fromAmino(object.value);
|
|
6244
|
+
},
|
|
6245
|
+
fromProtoMsg(message) {
|
|
6246
|
+
return MsgSetThreadProposalsLockResponse.decode(message.value);
|
|
6247
|
+
},
|
|
6248
|
+
toProto(message) {
|
|
6249
|
+
return MsgSetThreadProposalsLockResponse.encode(message).finish();
|
|
6250
|
+
},
|
|
6251
|
+
toProtoMsg(message) {
|
|
6252
|
+
return {
|
|
6253
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse",
|
|
6254
|
+
value: MsgSetThreadProposalsLockResponse.encode(message).finish()
|
|
6255
|
+
};
|
|
6256
|
+
}
|
|
6257
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
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";
|
|
2
|
-
export const registry = [["/sparkdream.forum.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.forum.v1.MsgMakePostPermanent", MsgMakePostPermanent], ["/sparkdream.forum.v1.MsgLockThread", MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", MsgDownvotePost], ["/sparkdream.forum.v1.MsgStakePostConviction", MsgStakePostConviction], ["/sparkdream.forum.v1.MsgReleasePostConviction", MsgReleasePostConviction], ["/sparkdream.forum.v1.MsgFlagPost", MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", MsgSetModerationPaused]];
|
|
1
|
+
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";
|
|
2
|
+
export const registry = [["/sparkdream.forum.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.forum.v1.MsgMakePostPermanent", MsgMakePostPermanent], ["/sparkdream.forum.v1.MsgLockThread", MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", MsgDownvotePost], ["/sparkdream.forum.v1.MsgStakePostConviction", MsgStakePostConviction], ["/sparkdream.forum.v1.MsgReleasePostConviction", MsgReleasePostConviction], ["/sparkdream.forum.v1.MsgFlagPost", MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", MsgSetModerationPaused], ["/sparkdream.forum.v1.MsgSetThreadProposalsLock", MsgSetThreadProposalsLock]];
|
|
3
3
|
export const load = (protoRegistry) => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -240,6 +240,12 @@ export const MessageComposer = {
|
|
|
240
240
|
typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
|
|
241
241
|
value: MsgSetModerationPaused.encode(value).finish()
|
|
242
242
|
};
|
|
243
|
+
},
|
|
244
|
+
setThreadProposalsLock(value) {
|
|
245
|
+
return {
|
|
246
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
247
|
+
value: MsgSetThreadProposalsLock.encode(value).finish()
|
|
248
|
+
};
|
|
243
249
|
}
|
|
244
250
|
},
|
|
245
251
|
withTypeUrl: {
|
|
@@ -476,6 +482,12 @@ export const MessageComposer = {
|
|
|
476
482
|
typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
|
|
477
483
|
value
|
|
478
484
|
};
|
|
485
|
+
},
|
|
486
|
+
setThreadProposalsLock(value) {
|
|
487
|
+
return {
|
|
488
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
489
|
+
value
|
|
490
|
+
};
|
|
479
491
|
}
|
|
480
492
|
},
|
|
481
493
|
fromPartial: {
|
|
@@ -712,6 +724,12 @@ export const MessageComposer = {
|
|
|
712
724
|
typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
|
|
713
725
|
value: MsgSetModerationPaused.fromPartial(value)
|
|
714
726
|
};
|
|
727
|
+
},
|
|
728
|
+
setThreadProposalsLock(value) {
|
|
729
|
+
return {
|
|
730
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
731
|
+
value: MsgSetThreadProposalsLock.fromPartial(value)
|
|
732
|
+
};
|
|
715
733
|
}
|
|
716
734
|
}
|
|
717
735
|
};
|