@sparkdreamnft/sparkdreamjs 0.0.22 → 0.0.24

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.
@@ -50,6 +50,13 @@ function createBaseParams() {
50
50
  maxPromotionsPerBlock: 0,
51
51
  authorRepSlash: "",
52
52
  maxMakePermanentPerDay: BigInt(0),
53
+ maxHidesPerEpoch: BigInt(0),
54
+ maxSentinelLocksPerEpoch: BigInt(0),
55
+ maxSentinelMovesPerEpoch: BigInt(0),
56
+ sentinelSlashAmount: "",
57
+ lockBondMultiplier: BigInt(0),
58
+ lockBackingAmount: "",
59
+ lockMinRepTier: BigInt(0),
53
60
  minPostConvictionStake: "",
54
61
  postConvictionLockSeconds: BigInt(0),
55
62
  postConvictionStreamRatePerBlock: "",
@@ -201,6 +208,27 @@ exports.Params = {
201
208
  if (message.maxMakePermanentPerDay !== BigInt(0)) {
202
209
  writer.uint32(408).uint64(message.maxMakePermanentPerDay);
203
210
  }
211
+ if (message.maxHidesPerEpoch !== BigInt(0)) {
212
+ writer.uint32(416).uint64(message.maxHidesPerEpoch);
213
+ }
214
+ if (message.maxSentinelLocksPerEpoch !== BigInt(0)) {
215
+ writer.uint32(424).uint64(message.maxSentinelLocksPerEpoch);
216
+ }
217
+ if (message.maxSentinelMovesPerEpoch !== BigInt(0)) {
218
+ writer.uint32(432).uint64(message.maxSentinelMovesPerEpoch);
219
+ }
220
+ if (message.sentinelSlashAmount !== "") {
221
+ writer.uint32(442).string(message.sentinelSlashAmount);
222
+ }
223
+ if (message.lockBondMultiplier !== BigInt(0)) {
224
+ writer.uint32(448).uint64(message.lockBondMultiplier);
225
+ }
226
+ if (message.lockBackingAmount !== "") {
227
+ writer.uint32(458).string(message.lockBackingAmount);
228
+ }
229
+ if (message.lockMinRepTier !== BigInt(0)) {
230
+ writer.uint32(464).uint64(message.lockMinRepTier);
231
+ }
204
232
  if (message.minPostConvictionStake !== "") {
205
233
  writer.uint32(482).string(message.minPostConvictionStake);
206
234
  }
@@ -357,6 +385,27 @@ exports.Params = {
357
385
  case 51:
358
386
  message.maxMakePermanentPerDay = reader.uint64();
359
387
  break;
388
+ case 52:
389
+ message.maxHidesPerEpoch = reader.uint64();
390
+ break;
391
+ case 53:
392
+ message.maxSentinelLocksPerEpoch = reader.uint64();
393
+ break;
394
+ case 54:
395
+ message.maxSentinelMovesPerEpoch = reader.uint64();
396
+ break;
397
+ case 55:
398
+ message.sentinelSlashAmount = reader.string();
399
+ break;
400
+ case 56:
401
+ message.lockBondMultiplier = reader.uint64();
402
+ break;
403
+ case 57:
404
+ message.lockBackingAmount = reader.string();
405
+ break;
406
+ case 58:
407
+ message.lockMinRepTier = reader.uint64();
408
+ break;
360
409
  case 60:
361
410
  message.minPostConvictionStake = reader.string();
362
411
  break;
@@ -425,6 +474,13 @@ exports.Params = {
425
474
  message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
426
475
  message.authorRepSlash = object.authorRepSlash ?? "";
427
476
  message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
477
+ message.maxHidesPerEpoch = object.maxHidesPerEpoch !== undefined && object.maxHidesPerEpoch !== null ? BigInt(object.maxHidesPerEpoch.toString()) : BigInt(0);
478
+ message.maxSentinelLocksPerEpoch = object.maxSentinelLocksPerEpoch !== undefined && object.maxSentinelLocksPerEpoch !== null ? BigInt(object.maxSentinelLocksPerEpoch.toString()) : BigInt(0);
479
+ message.maxSentinelMovesPerEpoch = object.maxSentinelMovesPerEpoch !== undefined && object.maxSentinelMovesPerEpoch !== null ? BigInt(object.maxSentinelMovesPerEpoch.toString()) : BigInt(0);
480
+ message.sentinelSlashAmount = object.sentinelSlashAmount ?? "";
481
+ message.lockBondMultiplier = object.lockBondMultiplier !== undefined && object.lockBondMultiplier !== null ? BigInt(object.lockBondMultiplier.toString()) : BigInt(0);
482
+ message.lockBackingAmount = object.lockBackingAmount ?? "";
483
+ message.lockMinRepTier = object.lockMinRepTier !== undefined && object.lockMinRepTier !== null ? BigInt(object.lockMinRepTier.toString()) : BigInt(0);
428
484
  message.minPostConvictionStake = object.minPostConvictionStake ?? "";
429
485
  message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
430
486
  message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
@@ -566,6 +622,27 @@ exports.Params = {
566
622
  if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
567
623
  message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
568
624
  }
625
+ if (object.max_hides_per_epoch !== undefined && object.max_hides_per_epoch !== null) {
626
+ message.maxHidesPerEpoch = BigInt(object.max_hides_per_epoch);
627
+ }
628
+ if (object.max_sentinel_locks_per_epoch !== undefined && object.max_sentinel_locks_per_epoch !== null) {
629
+ message.maxSentinelLocksPerEpoch = BigInt(object.max_sentinel_locks_per_epoch);
630
+ }
631
+ if (object.max_sentinel_moves_per_epoch !== undefined && object.max_sentinel_moves_per_epoch !== null) {
632
+ message.maxSentinelMovesPerEpoch = BigInt(object.max_sentinel_moves_per_epoch);
633
+ }
634
+ if (object.sentinel_slash_amount !== undefined && object.sentinel_slash_amount !== null) {
635
+ message.sentinelSlashAmount = object.sentinel_slash_amount;
636
+ }
637
+ if (object.lock_bond_multiplier !== undefined && object.lock_bond_multiplier !== null) {
638
+ message.lockBondMultiplier = BigInt(object.lock_bond_multiplier);
639
+ }
640
+ if (object.lock_backing_amount !== undefined && object.lock_backing_amount !== null) {
641
+ message.lockBackingAmount = object.lock_backing_amount;
642
+ }
643
+ if (object.lock_min_rep_tier !== undefined && object.lock_min_rep_tier !== null) {
644
+ message.lockMinRepTier = BigInt(object.lock_min_rep_tier);
645
+ }
569
646
  if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
570
647
  message.minPostConvictionStake = object.min_post_conviction_stake;
571
648
  }
@@ -629,6 +706,13 @@ exports.Params = {
629
706
  obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
630
707
  obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
631
708
  obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
709
+ obj.max_hides_per_epoch = message.maxHidesPerEpoch !== BigInt(0) ? message.maxHidesPerEpoch?.toString() : undefined;
710
+ obj.max_sentinel_locks_per_epoch = message.maxSentinelLocksPerEpoch !== BigInt(0) ? message.maxSentinelLocksPerEpoch?.toString() : undefined;
711
+ obj.max_sentinel_moves_per_epoch = message.maxSentinelMovesPerEpoch !== BigInt(0) ? message.maxSentinelMovesPerEpoch?.toString() : undefined;
712
+ obj.sentinel_slash_amount = message.sentinelSlashAmount === "" ? undefined : message.sentinelSlashAmount;
713
+ obj.lock_bond_multiplier = message.lockBondMultiplier !== BigInt(0) ? message.lockBondMultiplier?.toString() : undefined;
714
+ obj.lock_backing_amount = message.lockBackingAmount === "" ? undefined : message.lockBackingAmount;
715
+ obj.lock_min_rep_tier = message.lockMinRepTier !== BigInt(0) ? message.lockMinRepTier?.toString() : undefined;
632
716
  obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
633
717
  obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
634
718
  obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
@@ -701,6 +785,10 @@ function createBaseForumOperationalParams() {
701
785
  maxPromotionsPerBlock: 0,
702
786
  authorRepSlash: "",
703
787
  maxMakePermanentPerDay: BigInt(0),
788
+ maxHidesPerEpoch: BigInt(0),
789
+ maxSentinelLocksPerEpoch: BigInt(0),
790
+ maxSentinelMovesPerEpoch: BigInt(0),
791
+ sentinelSlashAmount: "",
704
792
  minPostConvictionStake: "",
705
793
  postConvictionLockSeconds: BigInt(0),
706
794
  postConvictionStreamRatePerBlock: "",
@@ -844,6 +932,18 @@ exports.ForumOperationalParams = {
844
932
  if (message.maxMakePermanentPerDay !== BigInt(0)) {
845
933
  writer.uint32(408).uint64(message.maxMakePermanentPerDay);
846
934
  }
935
+ if (message.maxHidesPerEpoch !== BigInt(0)) {
936
+ writer.uint32(416).uint64(message.maxHidesPerEpoch);
937
+ }
938
+ if (message.maxSentinelLocksPerEpoch !== BigInt(0)) {
939
+ writer.uint32(424).uint64(message.maxSentinelLocksPerEpoch);
940
+ }
941
+ if (message.maxSentinelMovesPerEpoch !== BigInt(0)) {
942
+ writer.uint32(432).uint64(message.maxSentinelMovesPerEpoch);
943
+ }
944
+ if (message.sentinelSlashAmount !== "") {
945
+ writer.uint32(442).string(message.sentinelSlashAmount);
946
+ }
847
947
  if (message.minPostConvictionStake !== "") {
848
948
  writer.uint32(482).string(message.minPostConvictionStake);
849
949
  }
@@ -991,6 +1091,18 @@ exports.ForumOperationalParams = {
991
1091
  case 51:
992
1092
  message.maxMakePermanentPerDay = reader.uint64();
993
1093
  break;
1094
+ case 52:
1095
+ message.maxHidesPerEpoch = reader.uint64();
1096
+ break;
1097
+ case 53:
1098
+ message.maxSentinelLocksPerEpoch = reader.uint64();
1099
+ break;
1100
+ case 54:
1101
+ message.maxSentinelMovesPerEpoch = reader.uint64();
1102
+ break;
1103
+ case 55:
1104
+ message.sentinelSlashAmount = reader.string();
1105
+ break;
994
1106
  case 60:
995
1107
  message.minPostConvictionStake = reader.string();
996
1108
  break;
@@ -1056,6 +1168,10 @@ exports.ForumOperationalParams = {
1056
1168
  message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
1057
1169
  message.authorRepSlash = object.authorRepSlash ?? "";
1058
1170
  message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
1171
+ message.maxHidesPerEpoch = object.maxHidesPerEpoch !== undefined && object.maxHidesPerEpoch !== null ? BigInt(object.maxHidesPerEpoch.toString()) : BigInt(0);
1172
+ message.maxSentinelLocksPerEpoch = object.maxSentinelLocksPerEpoch !== undefined && object.maxSentinelLocksPerEpoch !== null ? BigInt(object.maxSentinelLocksPerEpoch.toString()) : BigInt(0);
1173
+ message.maxSentinelMovesPerEpoch = object.maxSentinelMovesPerEpoch !== undefined && object.maxSentinelMovesPerEpoch !== null ? BigInt(object.maxSentinelMovesPerEpoch.toString()) : BigInt(0);
1174
+ message.sentinelSlashAmount = object.sentinelSlashAmount ?? "";
1059
1175
  message.minPostConvictionStake = object.minPostConvictionStake ?? "";
1060
1176
  message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
1061
1177
  message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
@@ -1188,6 +1304,18 @@ exports.ForumOperationalParams = {
1188
1304
  if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
1189
1305
  message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
1190
1306
  }
1307
+ if (object.max_hides_per_epoch !== undefined && object.max_hides_per_epoch !== null) {
1308
+ message.maxHidesPerEpoch = BigInt(object.max_hides_per_epoch);
1309
+ }
1310
+ if (object.max_sentinel_locks_per_epoch !== undefined && object.max_sentinel_locks_per_epoch !== null) {
1311
+ message.maxSentinelLocksPerEpoch = BigInt(object.max_sentinel_locks_per_epoch);
1312
+ }
1313
+ if (object.max_sentinel_moves_per_epoch !== undefined && object.max_sentinel_moves_per_epoch !== null) {
1314
+ message.maxSentinelMovesPerEpoch = BigInt(object.max_sentinel_moves_per_epoch);
1315
+ }
1316
+ if (object.sentinel_slash_amount !== undefined && object.sentinel_slash_amount !== null) {
1317
+ message.sentinelSlashAmount = object.sentinel_slash_amount;
1318
+ }
1191
1319
  if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
1192
1320
  message.minPostConvictionStake = object.min_post_conviction_stake;
1193
1321
  }
@@ -1248,6 +1376,10 @@ exports.ForumOperationalParams = {
1248
1376
  obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
1249
1377
  obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
1250
1378
  obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
1379
+ obj.max_hides_per_epoch = message.maxHidesPerEpoch !== BigInt(0) ? message.maxHidesPerEpoch?.toString() : undefined;
1380
+ obj.max_sentinel_locks_per_epoch = message.maxSentinelLocksPerEpoch !== BigInt(0) ? message.maxSentinelLocksPerEpoch?.toString() : undefined;
1381
+ obj.max_sentinel_moves_per_epoch = message.maxSentinelMovesPerEpoch !== BigInt(0) ? message.maxSentinelMovesPerEpoch?.toString() : undefined;
1382
+ obj.sentinel_slash_amount = message.sentinelSlashAmount === "" ? undefined : message.sentinelSlashAmount;
1251
1383
  obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
1252
1384
  obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
1253
1385
  obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
@@ -13,6 +13,12 @@ export interface SentinelActivity {
13
13
  totalHides: bigint;
14
14
  upheldHides: bigint;
15
15
  overturnedHides: bigint;
16
+ /**
17
+ * unchallenged_hides counts hides that expired without ever being appealed
18
+ * (the hide stood by default). Written by the hide-expiry EndBlocker. Excluded
19
+ * from accuracy/reward math by design — it is a display/audit metric only, so
20
+ * a sentinel cannot game rewards by spam-hiding low-visibility content.
21
+ */
16
22
  unchallengedHides: bigint;
17
23
  epochHides: bigint;
18
24
  epochAppealsResolved: bigint;
@@ -33,10 +39,6 @@ export interface SentinelActivity {
33
39
  upheldPins: bigint;
34
40
  overturnedPins: bigint;
35
41
  epochPins: bigint;
36
- totalProposals: bigint;
37
- confirmedProposals: bigint;
38
- rejectedProposals: bigint;
39
- epochCurations: bigint;
40
42
  }
41
43
  export interface SentinelActivityProtoMsg {
42
44
  typeUrl: "/sparkdream.forum.v1.SentinelActivity";
@@ -55,6 +57,12 @@ export interface SentinelActivityAmino {
55
57
  total_hides?: string;
56
58
  upheld_hides?: string;
57
59
  overturned_hides?: string;
60
+ /**
61
+ * unchallenged_hides counts hides that expired without ever being appealed
62
+ * (the hide stood by default). Written by the hide-expiry EndBlocker. Excluded
63
+ * from accuracy/reward math by design — it is a display/audit metric only, so
64
+ * a sentinel cannot game rewards by spam-hiding low-visibility content.
65
+ */
58
66
  unchallenged_hides?: string;
59
67
  epoch_hides?: string;
60
68
  epoch_appeals_resolved?: string;
@@ -75,10 +83,6 @@ export interface SentinelActivityAmino {
75
83
  upheld_pins?: string;
76
84
  overturned_pins?: string;
77
85
  epoch_pins?: string;
78
- total_proposals?: string;
79
- confirmed_proposals?: string;
80
- rejected_proposals?: string;
81
- epoch_curations?: string;
82
86
  }
83
87
  export interface SentinelActivityAminoMsg {
84
88
  type: "/sparkdream.forum.v1.SentinelActivity";
@@ -28,11 +28,7 @@ function createBaseSentinelActivity() {
28
28
  totalPins: BigInt(0),
29
29
  upheldPins: BigInt(0),
30
30
  overturnedPins: BigInt(0),
31
- epochPins: BigInt(0),
32
- totalProposals: BigInt(0),
33
- confirmedProposals: BigInt(0),
34
- rejectedProposals: BigInt(0),
35
- epochCurations: BigInt(0)
31
+ epochPins: BigInt(0)
36
32
  };
37
33
  }
38
34
  /**
@@ -118,18 +114,6 @@ exports.SentinelActivity = {
118
114
  if (message.epochPins !== BigInt(0)) {
119
115
  writer.uint32(192).uint64(message.epochPins);
120
116
  }
121
- if (message.totalProposals !== BigInt(0)) {
122
- writer.uint32(200).uint64(message.totalProposals);
123
- }
124
- if (message.confirmedProposals !== BigInt(0)) {
125
- writer.uint32(208).uint64(message.confirmedProposals);
126
- }
127
- if (message.rejectedProposals !== BigInt(0)) {
128
- writer.uint32(216).uint64(message.rejectedProposals);
129
- }
130
- if (message.epochCurations !== BigInt(0)) {
131
- writer.uint32(224).uint64(message.epochCurations);
132
- }
133
117
  return writer;
134
118
  },
135
119
  decode(input, length) {
@@ -211,18 +195,6 @@ exports.SentinelActivity = {
211
195
  case 24:
212
196
  message.epochPins = reader.uint64();
213
197
  break;
214
- case 25:
215
- message.totalProposals = reader.uint64();
216
- break;
217
- case 26:
218
- message.confirmedProposals = reader.uint64();
219
- break;
220
- case 27:
221
- message.rejectedProposals = reader.uint64();
222
- break;
223
- case 28:
224
- message.epochCurations = reader.uint64();
225
- break;
226
198
  default:
227
199
  reader.skipType(tag & 7);
228
200
  break;
@@ -256,10 +228,6 @@ exports.SentinelActivity = {
256
228
  message.upheldPins = object.upheldPins !== undefined && object.upheldPins !== null ? BigInt(object.upheldPins.toString()) : BigInt(0);
257
229
  message.overturnedPins = object.overturnedPins !== undefined && object.overturnedPins !== null ? BigInt(object.overturnedPins.toString()) : BigInt(0);
258
230
  message.epochPins = object.epochPins !== undefined && object.epochPins !== null ? BigInt(object.epochPins.toString()) : BigInt(0);
259
- message.totalProposals = object.totalProposals !== undefined && object.totalProposals !== null ? BigInt(object.totalProposals.toString()) : BigInt(0);
260
- message.confirmedProposals = object.confirmedProposals !== undefined && object.confirmedProposals !== null ? BigInt(object.confirmedProposals.toString()) : BigInt(0);
261
- message.rejectedProposals = object.rejectedProposals !== undefined && object.rejectedProposals !== null ? BigInt(object.rejectedProposals.toString()) : BigInt(0);
262
- message.epochCurations = object.epochCurations !== undefined && object.epochCurations !== null ? BigInt(object.epochCurations.toString()) : BigInt(0);
263
231
  return message;
264
232
  },
265
233
  fromAmino(object) {
@@ -336,18 +304,6 @@ exports.SentinelActivity = {
336
304
  if (object.epoch_pins !== undefined && object.epoch_pins !== null) {
337
305
  message.epochPins = BigInt(object.epoch_pins);
338
306
  }
339
- if (object.total_proposals !== undefined && object.total_proposals !== null) {
340
- message.totalProposals = BigInt(object.total_proposals);
341
- }
342
- if (object.confirmed_proposals !== undefined && object.confirmed_proposals !== null) {
343
- message.confirmedProposals = BigInt(object.confirmed_proposals);
344
- }
345
- if (object.rejected_proposals !== undefined && object.rejected_proposals !== null) {
346
- message.rejectedProposals = BigInt(object.rejected_proposals);
347
- }
348
- if (object.epoch_curations !== undefined && object.epoch_curations !== null) {
349
- message.epochCurations = BigInt(object.epoch_curations);
350
- }
351
307
  return message;
352
308
  },
353
309
  toAmino(message) {
@@ -376,10 +332,6 @@ exports.SentinelActivity = {
376
332
  obj.upheld_pins = message.upheldPins !== BigInt(0) ? message.upheldPins?.toString() : undefined;
377
333
  obj.overturned_pins = message.overturnedPins !== BigInt(0) ? message.overturnedPins?.toString() : undefined;
378
334
  obj.epoch_pins = message.epochPins !== BigInt(0) ? message.epochPins?.toString() : undefined;
379
- obj.total_proposals = message.totalProposals !== BigInt(0) ? message.totalProposals?.toString() : undefined;
380
- obj.confirmed_proposals = message.confirmedProposals !== BigInt(0) ? message.confirmedProposals?.toString() : undefined;
381
- obj.rejected_proposals = message.rejectedProposals !== BigInt(0) ? message.rejectedProposals?.toString() : undefined;
382
- obj.epoch_curations = message.epochCurations !== BigInt(0) ? message.epochCurations?.toString() : undefined;
383
335
  return obj;
384
336
  },
385
337
  fromAminoMsg(object) {
@@ -15,6 +15,12 @@ export interface ThreadLockRecord {
15
15
  lockReason: string;
16
16
  appealPending: boolean;
17
17
  initiativeId: bigint;
18
+ /**
19
+ * committed_amount is the sentinel bond (udream, as a string) reserved at lock
20
+ * time. Released on self-unlock or an upheld appeal, and the amount slashed
21
+ * basis on an overturn. Empty for governance-authority locks (no bond).
22
+ */
23
+ committedAmount: string;
18
24
  }
19
25
  export interface ThreadLockRecordProtoMsg {
20
26
  typeUrl: "/sparkdream.forum.v1.ThreadLockRecord";
@@ -35,6 +41,12 @@ export interface ThreadLockRecordAmino {
35
41
  lock_reason?: string;
36
42
  appeal_pending?: boolean;
37
43
  initiative_id?: string;
44
+ /**
45
+ * committed_amount is the sentinel bond (udream, as a string) reserved at lock
46
+ * time. Released on self-unlock or an upheld appeal, and the amount slashed
47
+ * basis on an overturn. Empty for governance-authority locks (no bond).
48
+ */
49
+ committed_amount?: string;
38
50
  }
39
51
  export interface ThreadLockRecordAminoMsg {
40
52
  type: "/sparkdream.forum.v1.ThreadLockRecord";
@@ -12,7 +12,8 @@ function createBaseThreadLockRecord() {
12
12
  sentinelBackingSnapshot: "",
13
13
  lockReason: "",
14
14
  appealPending: false,
15
- initiativeId: BigInt(0)
15
+ initiativeId: BigInt(0),
16
+ committedAmount: ""
16
17
  };
17
18
  }
18
19
  /**
@@ -48,6 +49,9 @@ exports.ThreadLockRecord = {
48
49
  if (message.initiativeId !== BigInt(0)) {
49
50
  writer.uint32(64).uint64(message.initiativeId);
50
51
  }
52
+ if (message.committedAmount !== "") {
53
+ writer.uint32(74).string(message.committedAmount);
54
+ }
51
55
  return writer;
52
56
  },
53
57
  decode(input, length) {
@@ -81,6 +85,9 @@ exports.ThreadLockRecord = {
81
85
  case 8:
82
86
  message.initiativeId = reader.uint64();
83
87
  break;
88
+ case 9:
89
+ message.committedAmount = reader.string();
90
+ break;
84
91
  default:
85
92
  reader.skipType(tag & 7);
86
93
  break;
@@ -98,6 +105,7 @@ exports.ThreadLockRecord = {
98
105
  message.lockReason = object.lockReason ?? "";
99
106
  message.appealPending = object.appealPending ?? false;
100
107
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
108
+ message.committedAmount = object.committedAmount ?? "";
101
109
  return message;
102
110
  },
103
111
  fromAmino(object) {
@@ -126,6 +134,9 @@ exports.ThreadLockRecord = {
126
134
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
127
135
  message.initiativeId = BigInt(object.initiative_id);
128
136
  }
137
+ if (object.committed_amount !== undefined && object.committed_amount !== null) {
138
+ message.committedAmount = object.committed_amount;
139
+ }
129
140
  return message;
130
141
  },
131
142
  toAmino(message) {
@@ -138,6 +149,7 @@ exports.ThreadLockRecord = {
138
149
  obj.lock_reason = message.lockReason === "" ? undefined : message.lockReason;
139
150
  obj.appeal_pending = message.appealPending === false ? undefined : message.appealPending;
140
151
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
152
+ obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
141
153
  return obj;
142
154
  },
143
155
  fromAminoMsg(object) {
@@ -17,6 +17,12 @@ export interface ThreadMoveRecord {
17
17
  moveReason: string;
18
18
  appealPending: boolean;
19
19
  initiativeId: bigint;
20
+ /**
21
+ * committed_amount is the sentinel bond (udream, as a string) reserved at move
22
+ * time. Released on an upheld appeal; the slash basis on an overturn. Empty
23
+ * for governance-authority moves (no bond).
24
+ */
25
+ committedAmount: string;
20
26
  }
21
27
  export interface ThreadMoveRecordProtoMsg {
22
28
  typeUrl: "/sparkdream.forum.v1.ThreadMoveRecord";
@@ -39,6 +45,12 @@ export interface ThreadMoveRecordAmino {
39
45
  move_reason?: string;
40
46
  appeal_pending?: boolean;
41
47
  initiative_id?: string;
48
+ /**
49
+ * committed_amount is the sentinel bond (udream, as a string) reserved at move
50
+ * time. Released on an upheld appeal; the slash basis on an overturn. Empty
51
+ * for governance-authority moves (no bond).
52
+ */
53
+ committed_amount?: string;
42
54
  }
43
55
  export interface ThreadMoveRecordAminoMsg {
44
56
  type: "/sparkdream.forum.v1.ThreadMoveRecord";
@@ -14,7 +14,8 @@ function createBaseThreadMoveRecord() {
14
14
  sentinelBackingSnapshot: "",
15
15
  moveReason: "",
16
16
  appealPending: false,
17
- initiativeId: BigInt(0)
17
+ initiativeId: BigInt(0),
18
+ committedAmount: ""
18
19
  };
19
20
  }
20
21
  /**
@@ -56,6 +57,9 @@ exports.ThreadMoveRecord = {
56
57
  if (message.initiativeId !== BigInt(0)) {
57
58
  writer.uint32(80).uint64(message.initiativeId);
58
59
  }
60
+ if (message.committedAmount !== "") {
61
+ writer.uint32(90).string(message.committedAmount);
62
+ }
59
63
  return writer;
60
64
  },
61
65
  decode(input, length) {
@@ -95,6 +99,9 @@ exports.ThreadMoveRecord = {
95
99
  case 10:
96
100
  message.initiativeId = reader.uint64();
97
101
  break;
102
+ case 11:
103
+ message.committedAmount = reader.string();
104
+ break;
98
105
  default:
99
106
  reader.skipType(tag & 7);
100
107
  break;
@@ -114,6 +121,7 @@ exports.ThreadMoveRecord = {
114
121
  message.moveReason = object.moveReason ?? "";
115
122
  message.appealPending = object.appealPending ?? false;
116
123
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
124
+ message.committedAmount = object.committedAmount ?? "";
117
125
  return message;
118
126
  },
119
127
  fromAmino(object) {
@@ -148,6 +156,9 @@ exports.ThreadMoveRecord = {
148
156
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
149
157
  message.initiativeId = BigInt(object.initiative_id);
150
158
  }
159
+ if (object.committed_amount !== undefined && object.committed_amount !== null) {
160
+ message.committedAmount = object.committed_amount;
161
+ }
151
162
  return message;
152
163
  },
153
164
  toAmino(message) {
@@ -162,6 +173,7 @@ exports.ThreadMoveRecord = {
162
173
  obj.move_reason = message.moveReason === "" ? undefined : message.moveReason;
163
174
  obj.appeal_pending = message.appealPending === false ? undefined : message.appealPending;
164
175
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
176
+ obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
165
177
  return obj;
166
178
  },
167
179
  fromAminoMsg(object) {
@@ -3,36 +3,37 @@ import { ContentType } from "../../common/v1/content_type";
3
3
  import { BinaryReader, BinaryWriter } from "../../../binary";
4
4
  import { DeepPartial } from "../../../helpers";
5
5
  /**
6
- * HideAuthority selects which authority the caller of MsgHidePost is invoking.
7
- * It disambiguates the case where an account is BOTH a bonded forum sentinel
8
- * and a Commons Operations Committee member: without it the handler would
9
- * silently pick the council (gov) path a strictly more powerful, less
10
- * accountable action chosen by accident. See
11
- * docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
12
- */
13
- export declare enum HideAuthority {
6
+ * ModerationAuthority selects which authority the caller of a sentinel/council
7
+ * moderation message (hide, lock, move) is invoking. It disambiguates the case
8
+ * where an account is BOTH a bonded forum sentinel and a Commons Operations
9
+ * Committee member: without it the handler would silently pick the council
10
+ * (gov) path — a strictly more powerful, less accountable action chosen by
11
+ * accident. See docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
12
+ */
13
+ export declare enum ModerationAuthority {
14
14
  /**
15
- * HIDE_AUTHORITY_AUTO - AUTO (default, back-compat): resolve to the sentinel path whenever the
16
- * account holds an eligible sentinel bond (NORMAL/RECOVERY), else fall
17
- * through to the council path if council-authorized, else error. AUTO
18
- * prefers the accountable (bonded + author-appealable) sentinel path.
15
+ * MODERATION_AUTHORITY_AUTO - AUTO (default, back-compat): resolve to the sentinel path whenever the
16
+ * account is eligible for that specific action (bonded sentinel in
17
+ * NORMAL/RECOVERY plus the action's own requirements), else fall through to
18
+ * the council path if council-authorized, else error. AUTO prefers the
19
+ * accountable (bonded + author-appealable) sentinel path.
19
20
  */
20
- HIDE_AUTHORITY_AUTO = 0,
21
+ MODERATION_AUTHORITY_AUTO = 0,
21
22
  /**
22
- * HIDE_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if the account is not an
23
- * eligible sentinel (no silent fallback to council).
23
+ * MODERATION_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if the account is not eligible
24
+ * for the action (no silent fallback to council).
24
25
  */
25
- HIDE_AUTHORITY_SENTINEL = 1,
26
+ MODERATION_AUTHORITY_SENTINEL = 1,
26
27
  /**
27
- * HIDE_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
28
+ * MODERATION_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
28
29
  * not council-authorized. The deliberate "act as committee" choice.
29
30
  */
30
- HIDE_AUTHORITY_COUNCIL = 2,
31
+ MODERATION_AUTHORITY_COUNCIL = 2,
31
32
  UNRECOGNIZED = -1
32
33
  }
33
- export declare const HideAuthorityAmino: typeof HideAuthority;
34
- export declare function hideAuthorityFromJSON(object: any): HideAuthority;
35
- export declare function hideAuthorityToJSON(object: HideAuthority): string;
34
+ export declare const ModerationAuthorityAmino: typeof ModerationAuthority;
35
+ export declare function moderationAuthorityFromJSON(object: any): ModerationAuthority;
36
+ export declare function moderationAuthorityToJSON(object: ModerationAuthority): string;
36
37
  /**
37
38
  * MsgUpdateParams is the Msg/UpdateParams request type.
38
39
  * @name MsgUpdateParams
@@ -627,6 +628,11 @@ export interface MsgLockThread {
627
628
  creator: string;
628
629
  rootId: bigint;
629
630
  reason: string;
631
+ /**
632
+ * authority selects which moderation authority the caller is invoking.
633
+ * Defaults to AUTO for backward compatibility.
634
+ */
635
+ authority: ModerationAuthority;
630
636
  }
631
637
  export interface MsgLockThreadProtoMsg {
632
638
  typeUrl: "/sparkdream.forum.v1.MsgLockThread";
@@ -642,6 +648,11 @@ export interface MsgLockThreadAmino {
642
648
  creator?: string;
643
649
  root_id?: string;
644
650
  reason?: string;
651
+ /**
652
+ * authority selects which moderation authority the caller is invoking.
653
+ * Defaults to AUTO for backward compatibility.
654
+ */
655
+ authority?: ModerationAuthority;
645
656
  }
646
657
  export interface MsgLockThreadAminoMsg {
647
658
  type: "sparkdream/x/forum/MsgLockThread";
@@ -734,6 +745,11 @@ export interface MsgMoveThread {
734
745
  rootId: bigint;
735
746
  newCategoryId: bigint;
736
747
  reason: string;
748
+ /**
749
+ * authority selects which moderation authority the caller is invoking.
750
+ * Defaults to AUTO for backward compatibility.
751
+ */
752
+ authority: ModerationAuthority;
737
753
  }
738
754
  export interface MsgMoveThreadProtoMsg {
739
755
  typeUrl: "/sparkdream.forum.v1.MsgMoveThread";
@@ -750,6 +766,11 @@ export interface MsgMoveThreadAmino {
750
766
  root_id?: string;
751
767
  new_category_id?: string;
752
768
  reason?: string;
769
+ /**
770
+ * authority selects which moderation authority the caller is invoking.
771
+ * Defaults to AUTO for backward compatibility.
772
+ */
773
+ authority?: ModerationAuthority;
753
774
  }
754
775
  export interface MsgMoveThreadAminoMsg {
755
776
  type: "sparkdream/x/forum/MsgMoveThread";
@@ -1232,7 +1253,7 @@ export interface MsgHidePost {
1232
1253
  * authority selects which moderation authority the caller is invoking.
1233
1254
  * Defaults to AUTO for backward compatibility.
1234
1255
  */
1235
- authority: HideAuthority;
1256
+ authority: ModerationAuthority;
1236
1257
  }
1237
1258
  export interface MsgHidePostProtoMsg {
1238
1259
  typeUrl: "/sparkdream.forum.v1.MsgHidePost";
@@ -1253,7 +1274,7 @@ export interface MsgHidePostAmino {
1253
1274
  * authority selects which moderation authority the caller is invoking.
1254
1275
  * Defaults to AUTO for backward compatibility.
1255
1276
  */
1256
- authority?: HideAuthority;
1277
+ authority?: ModerationAuthority;
1257
1278
  }
1258
1279
  export interface MsgHidePostAminoMsg {
1259
1280
  type: "sparkdream/x/forum/MsgHidePost";