@sparkdreamnft/sparkdreamjs 0.0.22 → 0.0.23

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.
@@ -47,6 +47,13 @@ function createBaseParams() {
47
47
  maxPromotionsPerBlock: 0,
48
48
  authorRepSlash: "",
49
49
  maxMakePermanentPerDay: BigInt(0),
50
+ maxHidesPerEpoch: BigInt(0),
51
+ maxSentinelLocksPerEpoch: BigInt(0),
52
+ maxSentinelMovesPerEpoch: BigInt(0),
53
+ sentinelSlashAmount: "",
54
+ lockBondMultiplier: BigInt(0),
55
+ lockBackingAmount: "",
56
+ lockMinRepTier: BigInt(0),
50
57
  minPostConvictionStake: "",
51
58
  postConvictionLockSeconds: BigInt(0),
52
59
  postConvictionStreamRatePerBlock: "",
@@ -198,6 +205,27 @@ export const Params = {
198
205
  if (message.maxMakePermanentPerDay !== BigInt(0)) {
199
206
  writer.uint32(408).uint64(message.maxMakePermanentPerDay);
200
207
  }
208
+ if (message.maxHidesPerEpoch !== BigInt(0)) {
209
+ writer.uint32(416).uint64(message.maxHidesPerEpoch);
210
+ }
211
+ if (message.maxSentinelLocksPerEpoch !== BigInt(0)) {
212
+ writer.uint32(424).uint64(message.maxSentinelLocksPerEpoch);
213
+ }
214
+ if (message.maxSentinelMovesPerEpoch !== BigInt(0)) {
215
+ writer.uint32(432).uint64(message.maxSentinelMovesPerEpoch);
216
+ }
217
+ if (message.sentinelSlashAmount !== "") {
218
+ writer.uint32(442).string(message.sentinelSlashAmount);
219
+ }
220
+ if (message.lockBondMultiplier !== BigInt(0)) {
221
+ writer.uint32(448).uint64(message.lockBondMultiplier);
222
+ }
223
+ if (message.lockBackingAmount !== "") {
224
+ writer.uint32(458).string(message.lockBackingAmount);
225
+ }
226
+ if (message.lockMinRepTier !== BigInt(0)) {
227
+ writer.uint32(464).uint64(message.lockMinRepTier);
228
+ }
201
229
  if (message.minPostConvictionStake !== "") {
202
230
  writer.uint32(482).string(message.minPostConvictionStake);
203
231
  }
@@ -354,6 +382,27 @@ export const Params = {
354
382
  case 51:
355
383
  message.maxMakePermanentPerDay = reader.uint64();
356
384
  break;
385
+ case 52:
386
+ message.maxHidesPerEpoch = reader.uint64();
387
+ break;
388
+ case 53:
389
+ message.maxSentinelLocksPerEpoch = reader.uint64();
390
+ break;
391
+ case 54:
392
+ message.maxSentinelMovesPerEpoch = reader.uint64();
393
+ break;
394
+ case 55:
395
+ message.sentinelSlashAmount = reader.string();
396
+ break;
397
+ case 56:
398
+ message.lockBondMultiplier = reader.uint64();
399
+ break;
400
+ case 57:
401
+ message.lockBackingAmount = reader.string();
402
+ break;
403
+ case 58:
404
+ message.lockMinRepTier = reader.uint64();
405
+ break;
357
406
  case 60:
358
407
  message.minPostConvictionStake = reader.string();
359
408
  break;
@@ -422,6 +471,13 @@ export const Params = {
422
471
  message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
423
472
  message.authorRepSlash = object.authorRepSlash ?? "";
424
473
  message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
474
+ message.maxHidesPerEpoch = object.maxHidesPerEpoch !== undefined && object.maxHidesPerEpoch !== null ? BigInt(object.maxHidesPerEpoch.toString()) : BigInt(0);
475
+ message.maxSentinelLocksPerEpoch = object.maxSentinelLocksPerEpoch !== undefined && object.maxSentinelLocksPerEpoch !== null ? BigInt(object.maxSentinelLocksPerEpoch.toString()) : BigInt(0);
476
+ message.maxSentinelMovesPerEpoch = object.maxSentinelMovesPerEpoch !== undefined && object.maxSentinelMovesPerEpoch !== null ? BigInt(object.maxSentinelMovesPerEpoch.toString()) : BigInt(0);
477
+ message.sentinelSlashAmount = object.sentinelSlashAmount ?? "";
478
+ message.lockBondMultiplier = object.lockBondMultiplier !== undefined && object.lockBondMultiplier !== null ? BigInt(object.lockBondMultiplier.toString()) : BigInt(0);
479
+ message.lockBackingAmount = object.lockBackingAmount ?? "";
480
+ message.lockMinRepTier = object.lockMinRepTier !== undefined && object.lockMinRepTier !== null ? BigInt(object.lockMinRepTier.toString()) : BigInt(0);
425
481
  message.minPostConvictionStake = object.minPostConvictionStake ?? "";
426
482
  message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
427
483
  message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
@@ -563,6 +619,27 @@ export const Params = {
563
619
  if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
564
620
  message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
565
621
  }
622
+ if (object.max_hides_per_epoch !== undefined && object.max_hides_per_epoch !== null) {
623
+ message.maxHidesPerEpoch = BigInt(object.max_hides_per_epoch);
624
+ }
625
+ if (object.max_sentinel_locks_per_epoch !== undefined && object.max_sentinel_locks_per_epoch !== null) {
626
+ message.maxSentinelLocksPerEpoch = BigInt(object.max_sentinel_locks_per_epoch);
627
+ }
628
+ if (object.max_sentinel_moves_per_epoch !== undefined && object.max_sentinel_moves_per_epoch !== null) {
629
+ message.maxSentinelMovesPerEpoch = BigInt(object.max_sentinel_moves_per_epoch);
630
+ }
631
+ if (object.sentinel_slash_amount !== undefined && object.sentinel_slash_amount !== null) {
632
+ message.sentinelSlashAmount = object.sentinel_slash_amount;
633
+ }
634
+ if (object.lock_bond_multiplier !== undefined && object.lock_bond_multiplier !== null) {
635
+ message.lockBondMultiplier = BigInt(object.lock_bond_multiplier);
636
+ }
637
+ if (object.lock_backing_amount !== undefined && object.lock_backing_amount !== null) {
638
+ message.lockBackingAmount = object.lock_backing_amount;
639
+ }
640
+ if (object.lock_min_rep_tier !== undefined && object.lock_min_rep_tier !== null) {
641
+ message.lockMinRepTier = BigInt(object.lock_min_rep_tier);
642
+ }
566
643
  if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
567
644
  message.minPostConvictionStake = object.min_post_conviction_stake;
568
645
  }
@@ -626,6 +703,13 @@ export const Params = {
626
703
  obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
627
704
  obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
628
705
  obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
706
+ obj.max_hides_per_epoch = message.maxHidesPerEpoch !== BigInt(0) ? message.maxHidesPerEpoch?.toString() : undefined;
707
+ obj.max_sentinel_locks_per_epoch = message.maxSentinelLocksPerEpoch !== BigInt(0) ? message.maxSentinelLocksPerEpoch?.toString() : undefined;
708
+ obj.max_sentinel_moves_per_epoch = message.maxSentinelMovesPerEpoch !== BigInt(0) ? message.maxSentinelMovesPerEpoch?.toString() : undefined;
709
+ obj.sentinel_slash_amount = message.sentinelSlashAmount === "" ? undefined : message.sentinelSlashAmount;
710
+ obj.lock_bond_multiplier = message.lockBondMultiplier !== BigInt(0) ? message.lockBondMultiplier?.toString() : undefined;
711
+ obj.lock_backing_amount = message.lockBackingAmount === "" ? undefined : message.lockBackingAmount;
712
+ obj.lock_min_rep_tier = message.lockMinRepTier !== BigInt(0) ? message.lockMinRepTier?.toString() : undefined;
629
713
  obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
630
714
  obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
631
715
  obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
@@ -698,6 +782,10 @@ function createBaseForumOperationalParams() {
698
782
  maxPromotionsPerBlock: 0,
699
783
  authorRepSlash: "",
700
784
  maxMakePermanentPerDay: BigInt(0),
785
+ maxHidesPerEpoch: BigInt(0),
786
+ maxSentinelLocksPerEpoch: BigInt(0),
787
+ maxSentinelMovesPerEpoch: BigInt(0),
788
+ sentinelSlashAmount: "",
701
789
  minPostConvictionStake: "",
702
790
  postConvictionLockSeconds: BigInt(0),
703
791
  postConvictionStreamRatePerBlock: "",
@@ -841,6 +929,18 @@ export const ForumOperationalParams = {
841
929
  if (message.maxMakePermanentPerDay !== BigInt(0)) {
842
930
  writer.uint32(408).uint64(message.maxMakePermanentPerDay);
843
931
  }
932
+ if (message.maxHidesPerEpoch !== BigInt(0)) {
933
+ writer.uint32(416).uint64(message.maxHidesPerEpoch);
934
+ }
935
+ if (message.maxSentinelLocksPerEpoch !== BigInt(0)) {
936
+ writer.uint32(424).uint64(message.maxSentinelLocksPerEpoch);
937
+ }
938
+ if (message.maxSentinelMovesPerEpoch !== BigInt(0)) {
939
+ writer.uint32(432).uint64(message.maxSentinelMovesPerEpoch);
940
+ }
941
+ if (message.sentinelSlashAmount !== "") {
942
+ writer.uint32(442).string(message.sentinelSlashAmount);
943
+ }
844
944
  if (message.minPostConvictionStake !== "") {
845
945
  writer.uint32(482).string(message.minPostConvictionStake);
846
946
  }
@@ -988,6 +1088,18 @@ export const ForumOperationalParams = {
988
1088
  case 51:
989
1089
  message.maxMakePermanentPerDay = reader.uint64();
990
1090
  break;
1091
+ case 52:
1092
+ message.maxHidesPerEpoch = reader.uint64();
1093
+ break;
1094
+ case 53:
1095
+ message.maxSentinelLocksPerEpoch = reader.uint64();
1096
+ break;
1097
+ case 54:
1098
+ message.maxSentinelMovesPerEpoch = reader.uint64();
1099
+ break;
1100
+ case 55:
1101
+ message.sentinelSlashAmount = reader.string();
1102
+ break;
991
1103
  case 60:
992
1104
  message.minPostConvictionStake = reader.string();
993
1105
  break;
@@ -1053,6 +1165,10 @@ export const ForumOperationalParams = {
1053
1165
  message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
1054
1166
  message.authorRepSlash = object.authorRepSlash ?? "";
1055
1167
  message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
1168
+ message.maxHidesPerEpoch = object.maxHidesPerEpoch !== undefined && object.maxHidesPerEpoch !== null ? BigInt(object.maxHidesPerEpoch.toString()) : BigInt(0);
1169
+ message.maxSentinelLocksPerEpoch = object.maxSentinelLocksPerEpoch !== undefined && object.maxSentinelLocksPerEpoch !== null ? BigInt(object.maxSentinelLocksPerEpoch.toString()) : BigInt(0);
1170
+ message.maxSentinelMovesPerEpoch = object.maxSentinelMovesPerEpoch !== undefined && object.maxSentinelMovesPerEpoch !== null ? BigInt(object.maxSentinelMovesPerEpoch.toString()) : BigInt(0);
1171
+ message.sentinelSlashAmount = object.sentinelSlashAmount ?? "";
1056
1172
  message.minPostConvictionStake = object.minPostConvictionStake ?? "";
1057
1173
  message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
1058
1174
  message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
@@ -1185,6 +1301,18 @@ export const ForumOperationalParams = {
1185
1301
  if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
1186
1302
  message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
1187
1303
  }
1304
+ if (object.max_hides_per_epoch !== undefined && object.max_hides_per_epoch !== null) {
1305
+ message.maxHidesPerEpoch = BigInt(object.max_hides_per_epoch);
1306
+ }
1307
+ if (object.max_sentinel_locks_per_epoch !== undefined && object.max_sentinel_locks_per_epoch !== null) {
1308
+ message.maxSentinelLocksPerEpoch = BigInt(object.max_sentinel_locks_per_epoch);
1309
+ }
1310
+ if (object.max_sentinel_moves_per_epoch !== undefined && object.max_sentinel_moves_per_epoch !== null) {
1311
+ message.maxSentinelMovesPerEpoch = BigInt(object.max_sentinel_moves_per_epoch);
1312
+ }
1313
+ if (object.sentinel_slash_amount !== undefined && object.sentinel_slash_amount !== null) {
1314
+ message.sentinelSlashAmount = object.sentinel_slash_amount;
1315
+ }
1188
1316
  if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
1189
1317
  message.minPostConvictionStake = object.min_post_conviction_stake;
1190
1318
  }
@@ -1245,6 +1373,10 @@ export const ForumOperationalParams = {
1245
1373
  obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
1246
1374
  obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
1247
1375
  obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
1376
+ obj.max_hides_per_epoch = message.maxHidesPerEpoch !== BigInt(0) ? message.maxHidesPerEpoch?.toString() : undefined;
1377
+ obj.max_sentinel_locks_per_epoch = message.maxSentinelLocksPerEpoch !== BigInt(0) ? message.maxSentinelLocksPerEpoch?.toString() : undefined;
1378
+ obj.max_sentinel_moves_per_epoch = message.maxSentinelMovesPerEpoch !== BigInt(0) ? message.maxSentinelMovesPerEpoch?.toString() : undefined;
1379
+ obj.sentinel_slash_amount = message.sentinelSlashAmount === "" ? undefined : message.sentinelSlashAmount;
1248
1380
  obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
1249
1381
  obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
1250
1382
  obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
@@ -2,61 +2,62 @@
2
2
  import { Params, ForumOperationalParams } from "./params";
3
3
  import { BinaryReader, BinaryWriter } from "../../../binary";
4
4
  /**
5
- * HideAuthority selects which authority the caller of MsgHidePost is invoking.
6
- * It disambiguates the case where an account is BOTH a bonded forum sentinel
7
- * and a Commons Operations Committee member: without it the handler would
8
- * silently pick the council (gov) path a strictly more powerful, less
9
- * accountable action chosen by accident. See
10
- * docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
5
+ * ModerationAuthority selects which authority the caller of a sentinel/council
6
+ * moderation message (hide, lock, move) is invoking. It disambiguates the case
7
+ * where an account is BOTH a bonded forum sentinel and a Commons Operations
8
+ * Committee member: without it the handler would silently pick the council
9
+ * (gov) path — a strictly more powerful, less accountable action chosen by
10
+ * accident. See docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
11
11
  */
12
- export var HideAuthority;
13
- (function (HideAuthority) {
12
+ export var ModerationAuthority;
13
+ (function (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
- HideAuthority[HideAuthority["HIDE_AUTHORITY_AUTO"] = 0] = "HIDE_AUTHORITY_AUTO";
21
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_AUTO"] = 0] = "MODERATION_AUTHORITY_AUTO";
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
- HideAuthority[HideAuthority["HIDE_AUTHORITY_SENTINEL"] = 1] = "HIDE_AUTHORITY_SENTINEL";
26
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_SENTINEL"] = 1] = "MODERATION_AUTHORITY_SENTINEL";
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
- HideAuthority[HideAuthority["HIDE_AUTHORITY_COUNCIL"] = 2] = "HIDE_AUTHORITY_COUNCIL";
31
- HideAuthority[HideAuthority["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
32
- })(HideAuthority || (HideAuthority = {}));
33
- export const HideAuthorityAmino = HideAuthority;
34
- export function hideAuthorityFromJSON(object) {
31
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_COUNCIL"] = 2] = "MODERATION_AUTHORITY_COUNCIL";
32
+ ModerationAuthority[ModerationAuthority["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
33
+ })(ModerationAuthority || (ModerationAuthority = {}));
34
+ export const ModerationAuthorityAmino = ModerationAuthority;
35
+ export function moderationAuthorityFromJSON(object) {
35
36
  switch (object) {
36
37
  case 0:
37
- case "HIDE_AUTHORITY_AUTO":
38
- return HideAuthority.HIDE_AUTHORITY_AUTO;
38
+ case "MODERATION_AUTHORITY_AUTO":
39
+ return ModerationAuthority.MODERATION_AUTHORITY_AUTO;
39
40
  case 1:
40
- case "HIDE_AUTHORITY_SENTINEL":
41
- return HideAuthority.HIDE_AUTHORITY_SENTINEL;
41
+ case "MODERATION_AUTHORITY_SENTINEL":
42
+ return ModerationAuthority.MODERATION_AUTHORITY_SENTINEL;
42
43
  case 2:
43
- case "HIDE_AUTHORITY_COUNCIL":
44
- return HideAuthority.HIDE_AUTHORITY_COUNCIL;
44
+ case "MODERATION_AUTHORITY_COUNCIL":
45
+ return ModerationAuthority.MODERATION_AUTHORITY_COUNCIL;
45
46
  case -1:
46
47
  case "UNRECOGNIZED":
47
48
  default:
48
- return HideAuthority.UNRECOGNIZED;
49
+ return ModerationAuthority.UNRECOGNIZED;
49
50
  }
50
51
  }
51
- export function hideAuthorityToJSON(object) {
52
+ export function moderationAuthorityToJSON(object) {
52
53
  switch (object) {
53
- case HideAuthority.HIDE_AUTHORITY_AUTO:
54
- return "HIDE_AUTHORITY_AUTO";
55
- case HideAuthority.HIDE_AUTHORITY_SENTINEL:
56
- return "HIDE_AUTHORITY_SENTINEL";
57
- case HideAuthority.HIDE_AUTHORITY_COUNCIL:
58
- return "HIDE_AUTHORITY_COUNCIL";
59
- case HideAuthority.UNRECOGNIZED:
54
+ case ModerationAuthority.MODERATION_AUTHORITY_AUTO:
55
+ return "MODERATION_AUTHORITY_AUTO";
56
+ case ModerationAuthority.MODERATION_AUTHORITY_SENTINEL:
57
+ return "MODERATION_AUTHORITY_SENTINEL";
58
+ case ModerationAuthority.MODERATION_AUTHORITY_COUNCIL:
59
+ return "MODERATION_AUTHORITY_COUNCIL";
60
+ case ModerationAuthority.UNRECOGNIZED:
60
61
  default:
61
62
  return "UNRECOGNIZED";
62
63
  }
@@ -1635,7 +1636,8 @@ function createBaseMsgLockThread() {
1635
1636
  return {
1636
1637
  creator: "",
1637
1638
  rootId: BigInt(0),
1638
- reason: ""
1639
+ reason: "",
1640
+ authority: 0
1639
1641
  };
1640
1642
  }
1641
1643
  /**
@@ -1657,6 +1659,9 @@ export const MsgLockThread = {
1657
1659
  if (message.reason !== "") {
1658
1660
  writer.uint32(26).string(message.reason);
1659
1661
  }
1662
+ if (message.authority !== 0) {
1663
+ writer.uint32(32).int32(message.authority);
1664
+ }
1660
1665
  return writer;
1661
1666
  },
1662
1667
  decode(input, length) {
@@ -1675,6 +1680,9 @@ export const MsgLockThread = {
1675
1680
  case 3:
1676
1681
  message.reason = reader.string();
1677
1682
  break;
1683
+ case 4:
1684
+ message.authority = reader.int32();
1685
+ break;
1678
1686
  default:
1679
1687
  reader.skipType(tag & 7);
1680
1688
  break;
@@ -1687,6 +1695,7 @@ export const MsgLockThread = {
1687
1695
  message.creator = object.creator ?? "";
1688
1696
  message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
1689
1697
  message.reason = object.reason ?? "";
1698
+ message.authority = object.authority ?? 0;
1690
1699
  return message;
1691
1700
  },
1692
1701
  fromAmino(object) {
@@ -1700,6 +1709,9 @@ export const MsgLockThread = {
1700
1709
  if (object.reason !== undefined && object.reason !== null) {
1701
1710
  message.reason = object.reason;
1702
1711
  }
1712
+ if (object.authority !== undefined && object.authority !== null) {
1713
+ message.authority = object.authority;
1714
+ }
1703
1715
  return message;
1704
1716
  },
1705
1717
  toAmino(message) {
@@ -1707,6 +1719,7 @@ export const MsgLockThread = {
1707
1719
  obj.creator = message.creator === "" ? undefined : message.creator;
1708
1720
  obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
1709
1721
  obj.reason = message.reason === "" ? undefined : message.reason;
1722
+ obj.authority = message.authority === 0 ? undefined : message.authority;
1710
1723
  return obj;
1711
1724
  },
1712
1725
  fromAminoMsg(object) {
@@ -1936,7 +1949,8 @@ function createBaseMsgMoveThread() {
1936
1949
  creator: "",
1937
1950
  rootId: BigInt(0),
1938
1951
  newCategoryId: BigInt(0),
1939
- reason: ""
1952
+ reason: "",
1953
+ authority: 0
1940
1954
  };
1941
1955
  }
1942
1956
  /**
@@ -1961,6 +1975,9 @@ export const MsgMoveThread = {
1961
1975
  if (message.reason !== "") {
1962
1976
  writer.uint32(34).string(message.reason);
1963
1977
  }
1978
+ if (message.authority !== 0) {
1979
+ writer.uint32(40).int32(message.authority);
1980
+ }
1964
1981
  return writer;
1965
1982
  },
1966
1983
  decode(input, length) {
@@ -1982,6 +1999,9 @@ export const MsgMoveThread = {
1982
1999
  case 4:
1983
2000
  message.reason = reader.string();
1984
2001
  break;
2002
+ case 5:
2003
+ message.authority = reader.int32();
2004
+ break;
1985
2005
  default:
1986
2006
  reader.skipType(tag & 7);
1987
2007
  break;
@@ -1995,6 +2015,7 @@ export const MsgMoveThread = {
1995
2015
  message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
1996
2016
  message.newCategoryId = object.newCategoryId !== undefined && object.newCategoryId !== null ? BigInt(object.newCategoryId.toString()) : BigInt(0);
1997
2017
  message.reason = object.reason ?? "";
2018
+ message.authority = object.authority ?? 0;
1998
2019
  return message;
1999
2020
  },
2000
2021
  fromAmino(object) {
@@ -2011,6 +2032,9 @@ export const MsgMoveThread = {
2011
2032
  if (object.reason !== undefined && object.reason !== null) {
2012
2033
  message.reason = object.reason;
2013
2034
  }
2035
+ if (object.authority !== undefined && object.authority !== null) {
2036
+ message.authority = object.authority;
2037
+ }
2014
2038
  return message;
2015
2039
  },
2016
2040
  toAmino(message) {
@@ -2019,6 +2043,7 @@ export const MsgMoveThread = {
2019
2043
  obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
2020
2044
  obj.new_category_id = message.newCategoryId !== BigInt(0) ? message.newCategoryId?.toString() : undefined;
2021
2045
  obj.reason = message.reason === "" ? undefined : message.reason;
2046
+ obj.authority = message.authority === 0 ? undefined : message.authority;
2022
2047
  return obj;
2023
2048
  },
2024
2049
  fromAminoMsg(object) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkdreamnft/sparkdreamjs",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "author": "kob <kob@sparkdream.io>",
5
5
  "description": "Spark Dream blockchain TypeScript library",
6
6
  "main": "index.js",
@@ -8305,10 +8305,10 @@ export declare namespace sparkdream {
8305
8305
  toProto(message: _230.PostConvictionStake): Uint8Array;
8306
8306
  toProtoMsg(message: _230.PostConvictionStake): _230.PostConvictionStakeProtoMsg;
8307
8307
  };
8308
- hideAuthorityFromJSON(object: any): _229.HideAuthority;
8309
- hideAuthorityToJSON(object: _229.HideAuthority): string;
8310
- HideAuthority: typeof _229.HideAuthority;
8311
- HideAuthorityAmino: typeof _229.HideAuthority;
8308
+ moderationAuthorityFromJSON(object: any): _229.ModerationAuthority;
8309
+ moderationAuthorityToJSON(object: _229.ModerationAuthority): string;
8310
+ ModerationAuthority: typeof _229.ModerationAuthority;
8311
+ ModerationAuthorityAmino: typeof _229.ModerationAuthority;
8312
8312
  MsgUpdateParams: {
8313
8313
  typeUrl: string;
8314
8314
  aminoType: string;
@@ -204,6 +204,44 @@ export interface Params {
204
204
  * permanent is a distinct curator action with its own quota.
205
205
  */
206
206
  maxMakePermanentPerDay: bigint;
207
+ /**
208
+ * max_hides_per_epoch caps sentinel MsgHidePost actions per address per UTC
209
+ * day. 0 = use the default (50).
210
+ */
211
+ maxHidesPerEpoch: bigint;
212
+ /**
213
+ * max_sentinel_locks_per_epoch caps sentinel MsgLockThread actions per
214
+ * address per UTC day. 0 = use the default (5).
215
+ */
216
+ maxSentinelLocksPerEpoch: bigint;
217
+ /**
218
+ * max_sentinel_moves_per_epoch caps sentinel MsgMoveThread actions per
219
+ * address per UTC day. 0 = use the default (10).
220
+ */
221
+ maxSentinelMovesPerEpoch: bigint;
222
+ /**
223
+ * sentinel_slash_amount is the DREAM reserved-then-slashed per moderation
224
+ * action that is later overturned on appeal (math.Int string, udream).
225
+ * Bounded to (0, min_sentinel_bond]. Empty/"0" = use the default (100 DREAM).
226
+ */
227
+ sentinelSlashAmount: string;
228
+ /**
229
+ * lock_bond_multiplier: a sentinel must have bonded at least
230
+ * lock_bond_multiplier × min_sentinel_bond to lock a thread. Bounded >= 1
231
+ * (lock can never be weaker than the base bond). 0 = use the default (4).
232
+ */
233
+ lockBondMultiplier: bigint;
234
+ /**
235
+ * lock_backing_amount is the minimum DREAM backing (total balance) a sentinel
236
+ * must hold to lock a thread (math.Int string, udream). Bounded >= the
237
+ * derived lock bond. Empty/"0" = use the default (20000 DREAM).
238
+ */
239
+ lockBackingAmount: string;
240
+ /**
241
+ * lock_min_rep_tier is the minimum reputation tier required to lock a thread.
242
+ * Bounded to [min_sentinel_rep_tier, 5]. 0 = use the default (4).
243
+ */
244
+ lockMinRepTier: bigint;
207
245
  /**
208
246
  * min_post_conviction_stake is the minimum DREAM amount required to open a
209
247
  * PostConvictionStake (math.Int string, e.g. "10000000" = 10 DREAM). Floors
@@ -455,6 +493,44 @@ export interface ParamsAmino {
455
493
  * permanent is a distinct curator action with its own quota.
456
494
  */
457
495
  max_make_permanent_per_day?: string;
496
+ /**
497
+ * max_hides_per_epoch caps sentinel MsgHidePost actions per address per UTC
498
+ * day. 0 = use the default (50).
499
+ */
500
+ max_hides_per_epoch?: string;
501
+ /**
502
+ * max_sentinel_locks_per_epoch caps sentinel MsgLockThread actions per
503
+ * address per UTC day. 0 = use the default (5).
504
+ */
505
+ max_sentinel_locks_per_epoch?: string;
506
+ /**
507
+ * max_sentinel_moves_per_epoch caps sentinel MsgMoveThread actions per
508
+ * address per UTC day. 0 = use the default (10).
509
+ */
510
+ max_sentinel_moves_per_epoch?: string;
511
+ /**
512
+ * sentinel_slash_amount is the DREAM reserved-then-slashed per moderation
513
+ * action that is later overturned on appeal (math.Int string, udream).
514
+ * Bounded to (0, min_sentinel_bond]. Empty/"0" = use the default (100 DREAM).
515
+ */
516
+ sentinel_slash_amount?: string;
517
+ /**
518
+ * lock_bond_multiplier: a sentinel must have bonded at least
519
+ * lock_bond_multiplier × min_sentinel_bond to lock a thread. Bounded >= 1
520
+ * (lock can never be weaker than the base bond). 0 = use the default (4).
521
+ */
522
+ lock_bond_multiplier?: string;
523
+ /**
524
+ * lock_backing_amount is the minimum DREAM backing (total balance) a sentinel
525
+ * must hold to lock a thread (math.Int string, udream). Bounded >= the
526
+ * derived lock bond. Empty/"0" = use the default (20000 DREAM).
527
+ */
528
+ lock_backing_amount?: string;
529
+ /**
530
+ * lock_min_rep_tier is the minimum reputation tier required to lock a thread.
531
+ * Bounded to [min_sentinel_rep_tier, 5]. 0 = use the default (4).
532
+ */
533
+ lock_min_rep_tier?: string;
458
534
  /**
459
535
  * min_post_conviction_stake is the minimum DREAM amount required to open a
460
536
  * PostConvictionStake (math.Int string, e.g. "10000000" = 10 DREAM). Floors
@@ -621,6 +697,22 @@ export interface ForumOperationalParams {
621
697
  * max_make_permanent_per_day — see Params.max_make_permanent_per_day.
622
698
  */
623
699
  maxMakePermanentPerDay: bigint;
700
+ /**
701
+ * max_hides_per_epoch — see Params.max_hides_per_epoch.
702
+ */
703
+ maxHidesPerEpoch: bigint;
704
+ /**
705
+ * max_sentinel_locks_per_epoch — see Params.max_sentinel_locks_per_epoch.
706
+ */
707
+ maxSentinelLocksPerEpoch: bigint;
708
+ /**
709
+ * max_sentinel_moves_per_epoch — see Params.max_sentinel_moves_per_epoch.
710
+ */
711
+ maxSentinelMovesPerEpoch: bigint;
712
+ /**
713
+ * sentinel_slash_amount — see Params.sentinel_slash_amount.
714
+ */
715
+ sentinelSlashAmount: string;
624
716
  /**
625
717
  * min_post_conviction_stake — see Params.min_post_conviction_stake.
626
718
  */
@@ -765,6 +857,22 @@ export interface ForumOperationalParamsAmino {
765
857
  * max_make_permanent_per_day — see Params.max_make_permanent_per_day.
766
858
  */
767
859
  max_make_permanent_per_day?: string;
860
+ /**
861
+ * max_hides_per_epoch — see Params.max_hides_per_epoch.
862
+ */
863
+ max_hides_per_epoch?: string;
864
+ /**
865
+ * max_sentinel_locks_per_epoch — see Params.max_sentinel_locks_per_epoch.
866
+ */
867
+ max_sentinel_locks_per_epoch?: string;
868
+ /**
869
+ * max_sentinel_moves_per_epoch — see Params.max_sentinel_moves_per_epoch.
870
+ */
871
+ max_sentinel_moves_per_epoch?: string;
872
+ /**
873
+ * sentinel_slash_amount — see Params.sentinel_slash_amount.
874
+ */
875
+ sentinel_slash_amount?: string;
768
876
  /**
769
877
  * min_post_conviction_stake — see Params.min_post_conviction_stake.
770
878
  */
@@ -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;
@@ -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";
@@ -1,68 +1,69 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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.HideAuthorityAmino = exports.HideAuthority = void 0;
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
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;
5
- exports.hideAuthorityFromJSON = hideAuthorityFromJSON;
6
- exports.hideAuthorityToJSON = hideAuthorityToJSON;
5
+ exports.moderationAuthorityFromJSON = moderationAuthorityFromJSON;
6
+ exports.moderationAuthorityToJSON = moderationAuthorityToJSON;
7
7
  //@ts-nocheck
8
8
  const params_1 = require("./params");
9
9
  const binary_1 = require("../../../binary");
10
10
  /**
11
- * HideAuthority selects which authority the caller of MsgHidePost is invoking.
12
- * It disambiguates the case where an account is BOTH a bonded forum sentinel
13
- * and a Commons Operations Committee member: without it the handler would
14
- * silently pick the council (gov) path a strictly more powerful, less
15
- * accountable action chosen by accident. See
16
- * docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
11
+ * ModerationAuthority selects which authority the caller of a sentinel/council
12
+ * moderation message (hide, lock, move) is invoking. It disambiguates the case
13
+ * where an account is BOTH a bonded forum sentinel and a Commons Operations
14
+ * Committee member: without it the handler would silently pick the council
15
+ * (gov) path — a strictly more powerful, less accountable action chosen by
16
+ * accident. See docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
17
17
  */
18
- var HideAuthority;
19
- (function (HideAuthority) {
18
+ var ModerationAuthority;
19
+ (function (ModerationAuthority) {
20
20
  /**
21
- * HIDE_AUTHORITY_AUTO - AUTO (default, back-compat): resolve to the sentinel path whenever the
22
- * account holds an eligible sentinel bond (NORMAL/RECOVERY), else fall
23
- * through to the council path if council-authorized, else error. AUTO
24
- * prefers the accountable (bonded + author-appealable) sentinel path.
21
+ * MODERATION_AUTHORITY_AUTO - AUTO (default, back-compat): resolve to the sentinel path whenever the
22
+ * account is eligible for that specific action (bonded sentinel in
23
+ * NORMAL/RECOVERY plus the action's own requirements), else fall through to
24
+ * the council path if council-authorized, else error. AUTO prefers the
25
+ * accountable (bonded + author-appealable) sentinel path.
25
26
  */
26
- HideAuthority[HideAuthority["HIDE_AUTHORITY_AUTO"] = 0] = "HIDE_AUTHORITY_AUTO";
27
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_AUTO"] = 0] = "MODERATION_AUTHORITY_AUTO";
27
28
  /**
28
- * HIDE_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if the account is not an
29
- * eligible sentinel (no silent fallback to council).
29
+ * MODERATION_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if the account is not eligible
30
+ * for the action (no silent fallback to council).
30
31
  */
31
- HideAuthority[HideAuthority["HIDE_AUTHORITY_SENTINEL"] = 1] = "HIDE_AUTHORITY_SENTINEL";
32
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_SENTINEL"] = 1] = "MODERATION_AUTHORITY_SENTINEL";
32
33
  /**
33
- * HIDE_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
34
+ * MODERATION_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
34
35
  * not council-authorized. The deliberate "act as committee" choice.
35
36
  */
36
- HideAuthority[HideAuthority["HIDE_AUTHORITY_COUNCIL"] = 2] = "HIDE_AUTHORITY_COUNCIL";
37
- HideAuthority[HideAuthority["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
38
- })(HideAuthority || (exports.HideAuthority = HideAuthority = {}));
39
- exports.HideAuthorityAmino = HideAuthority;
40
- function hideAuthorityFromJSON(object) {
37
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_COUNCIL"] = 2] = "MODERATION_AUTHORITY_COUNCIL";
38
+ ModerationAuthority[ModerationAuthority["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
39
+ })(ModerationAuthority || (exports.ModerationAuthority = ModerationAuthority = {}));
40
+ exports.ModerationAuthorityAmino = ModerationAuthority;
41
+ function moderationAuthorityFromJSON(object) {
41
42
  switch (object) {
42
43
  case 0:
43
- case "HIDE_AUTHORITY_AUTO":
44
- return HideAuthority.HIDE_AUTHORITY_AUTO;
44
+ case "MODERATION_AUTHORITY_AUTO":
45
+ return ModerationAuthority.MODERATION_AUTHORITY_AUTO;
45
46
  case 1:
46
- case "HIDE_AUTHORITY_SENTINEL":
47
- return HideAuthority.HIDE_AUTHORITY_SENTINEL;
47
+ case "MODERATION_AUTHORITY_SENTINEL":
48
+ return ModerationAuthority.MODERATION_AUTHORITY_SENTINEL;
48
49
  case 2:
49
- case "HIDE_AUTHORITY_COUNCIL":
50
- return HideAuthority.HIDE_AUTHORITY_COUNCIL;
50
+ case "MODERATION_AUTHORITY_COUNCIL":
51
+ return ModerationAuthority.MODERATION_AUTHORITY_COUNCIL;
51
52
  case -1:
52
53
  case "UNRECOGNIZED":
53
54
  default:
54
- return HideAuthority.UNRECOGNIZED;
55
+ return ModerationAuthority.UNRECOGNIZED;
55
56
  }
56
57
  }
57
- function hideAuthorityToJSON(object) {
58
+ function moderationAuthorityToJSON(object) {
58
59
  switch (object) {
59
- case HideAuthority.HIDE_AUTHORITY_AUTO:
60
- return "HIDE_AUTHORITY_AUTO";
61
- case HideAuthority.HIDE_AUTHORITY_SENTINEL:
62
- return "HIDE_AUTHORITY_SENTINEL";
63
- case HideAuthority.HIDE_AUTHORITY_COUNCIL:
64
- return "HIDE_AUTHORITY_COUNCIL";
65
- case HideAuthority.UNRECOGNIZED:
60
+ case ModerationAuthority.MODERATION_AUTHORITY_AUTO:
61
+ return "MODERATION_AUTHORITY_AUTO";
62
+ case ModerationAuthority.MODERATION_AUTHORITY_SENTINEL:
63
+ return "MODERATION_AUTHORITY_SENTINEL";
64
+ case ModerationAuthority.MODERATION_AUTHORITY_COUNCIL:
65
+ return "MODERATION_AUTHORITY_COUNCIL";
66
+ case ModerationAuthority.UNRECOGNIZED:
66
67
  default:
67
68
  return "UNRECOGNIZED";
68
69
  }
@@ -1641,7 +1642,8 @@ function createBaseMsgLockThread() {
1641
1642
  return {
1642
1643
  creator: "",
1643
1644
  rootId: BigInt(0),
1644
- reason: ""
1645
+ reason: "",
1646
+ authority: 0
1645
1647
  };
1646
1648
  }
1647
1649
  /**
@@ -1663,6 +1665,9 @@ exports.MsgLockThread = {
1663
1665
  if (message.reason !== "") {
1664
1666
  writer.uint32(26).string(message.reason);
1665
1667
  }
1668
+ if (message.authority !== 0) {
1669
+ writer.uint32(32).int32(message.authority);
1670
+ }
1666
1671
  return writer;
1667
1672
  },
1668
1673
  decode(input, length) {
@@ -1681,6 +1686,9 @@ exports.MsgLockThread = {
1681
1686
  case 3:
1682
1687
  message.reason = reader.string();
1683
1688
  break;
1689
+ case 4:
1690
+ message.authority = reader.int32();
1691
+ break;
1684
1692
  default:
1685
1693
  reader.skipType(tag & 7);
1686
1694
  break;
@@ -1693,6 +1701,7 @@ exports.MsgLockThread = {
1693
1701
  message.creator = object.creator ?? "";
1694
1702
  message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
1695
1703
  message.reason = object.reason ?? "";
1704
+ message.authority = object.authority ?? 0;
1696
1705
  return message;
1697
1706
  },
1698
1707
  fromAmino(object) {
@@ -1706,6 +1715,9 @@ exports.MsgLockThread = {
1706
1715
  if (object.reason !== undefined && object.reason !== null) {
1707
1716
  message.reason = object.reason;
1708
1717
  }
1718
+ if (object.authority !== undefined && object.authority !== null) {
1719
+ message.authority = object.authority;
1720
+ }
1709
1721
  return message;
1710
1722
  },
1711
1723
  toAmino(message) {
@@ -1713,6 +1725,7 @@ exports.MsgLockThread = {
1713
1725
  obj.creator = message.creator === "" ? undefined : message.creator;
1714
1726
  obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
1715
1727
  obj.reason = message.reason === "" ? undefined : message.reason;
1728
+ obj.authority = message.authority === 0 ? undefined : message.authority;
1716
1729
  return obj;
1717
1730
  },
1718
1731
  fromAminoMsg(object) {
@@ -1942,7 +1955,8 @@ function createBaseMsgMoveThread() {
1942
1955
  creator: "",
1943
1956
  rootId: BigInt(0),
1944
1957
  newCategoryId: BigInt(0),
1945
- reason: ""
1958
+ reason: "",
1959
+ authority: 0
1946
1960
  };
1947
1961
  }
1948
1962
  /**
@@ -1967,6 +1981,9 @@ exports.MsgMoveThread = {
1967
1981
  if (message.reason !== "") {
1968
1982
  writer.uint32(34).string(message.reason);
1969
1983
  }
1984
+ if (message.authority !== 0) {
1985
+ writer.uint32(40).int32(message.authority);
1986
+ }
1970
1987
  return writer;
1971
1988
  },
1972
1989
  decode(input, length) {
@@ -1988,6 +2005,9 @@ exports.MsgMoveThread = {
1988
2005
  case 4:
1989
2006
  message.reason = reader.string();
1990
2007
  break;
2008
+ case 5:
2009
+ message.authority = reader.int32();
2010
+ break;
1991
2011
  default:
1992
2012
  reader.skipType(tag & 7);
1993
2013
  break;
@@ -2001,6 +2021,7 @@ exports.MsgMoveThread = {
2001
2021
  message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
2002
2022
  message.newCategoryId = object.newCategoryId !== undefined && object.newCategoryId !== null ? BigInt(object.newCategoryId.toString()) : BigInt(0);
2003
2023
  message.reason = object.reason ?? "";
2024
+ message.authority = object.authority ?? 0;
2004
2025
  return message;
2005
2026
  },
2006
2027
  fromAmino(object) {
@@ -2017,6 +2038,9 @@ exports.MsgMoveThread = {
2017
2038
  if (object.reason !== undefined && object.reason !== null) {
2018
2039
  message.reason = object.reason;
2019
2040
  }
2041
+ if (object.authority !== undefined && object.authority !== null) {
2042
+ message.authority = object.authority;
2043
+ }
2020
2044
  return message;
2021
2045
  },
2022
2046
  toAmino(message) {
@@ -2025,6 +2049,7 @@ exports.MsgMoveThread = {
2025
2049
  obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
2026
2050
  obj.new_category_id = message.newCategoryId !== BigInt(0) ? message.newCategoryId?.toString() : undefined;
2027
2051
  obj.reason = message.reason === "" ? undefined : message.reason;
2052
+ obj.authority = message.authority === 0 ? undefined : message.authority;
2028
2053
  return obj;
2029
2054
  },
2030
2055
  fromAminoMsg(object) {