@sparkdreamnft/sparkdreamjs 0.0.21 → 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;
@@ -1,6 +1,67 @@
1
1
  //@ts-nocheck
2
2
  import { Params, ForumOperationalParams } from "./params";
3
3
  import { BinaryReader, BinaryWriter } from "../../../binary";
4
+ /**
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
+ */
12
+ export var ModerationAuthority;
13
+ (function (ModerationAuthority) {
14
+ /**
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.
20
+ */
21
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_AUTO"] = 0] = "MODERATION_AUTHORITY_AUTO";
22
+ /**
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).
25
+ */
26
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_SENTINEL"] = 1] = "MODERATION_AUTHORITY_SENTINEL";
27
+ /**
28
+ * MODERATION_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
29
+ * not council-authorized. The deliberate "act as committee" choice.
30
+ */
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) {
36
+ switch (object) {
37
+ case 0:
38
+ case "MODERATION_AUTHORITY_AUTO":
39
+ return ModerationAuthority.MODERATION_AUTHORITY_AUTO;
40
+ case 1:
41
+ case "MODERATION_AUTHORITY_SENTINEL":
42
+ return ModerationAuthority.MODERATION_AUTHORITY_SENTINEL;
43
+ case 2:
44
+ case "MODERATION_AUTHORITY_COUNCIL":
45
+ return ModerationAuthority.MODERATION_AUTHORITY_COUNCIL;
46
+ case -1:
47
+ case "UNRECOGNIZED":
48
+ default:
49
+ return ModerationAuthority.UNRECOGNIZED;
50
+ }
51
+ }
52
+ export function moderationAuthorityToJSON(object) {
53
+ switch (object) {
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:
61
+ default:
62
+ return "UNRECOGNIZED";
63
+ }
64
+ }
4
65
  function createBaseMsgUpdateParams() {
5
66
  return {
6
67
  authority: "",
@@ -1575,7 +1636,8 @@ function createBaseMsgLockThread() {
1575
1636
  return {
1576
1637
  creator: "",
1577
1638
  rootId: BigInt(0),
1578
- reason: ""
1639
+ reason: "",
1640
+ authority: 0
1579
1641
  };
1580
1642
  }
1581
1643
  /**
@@ -1597,6 +1659,9 @@ export const MsgLockThread = {
1597
1659
  if (message.reason !== "") {
1598
1660
  writer.uint32(26).string(message.reason);
1599
1661
  }
1662
+ if (message.authority !== 0) {
1663
+ writer.uint32(32).int32(message.authority);
1664
+ }
1600
1665
  return writer;
1601
1666
  },
1602
1667
  decode(input, length) {
@@ -1615,6 +1680,9 @@ export const MsgLockThread = {
1615
1680
  case 3:
1616
1681
  message.reason = reader.string();
1617
1682
  break;
1683
+ case 4:
1684
+ message.authority = reader.int32();
1685
+ break;
1618
1686
  default:
1619
1687
  reader.skipType(tag & 7);
1620
1688
  break;
@@ -1627,6 +1695,7 @@ export const MsgLockThread = {
1627
1695
  message.creator = object.creator ?? "";
1628
1696
  message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
1629
1697
  message.reason = object.reason ?? "";
1698
+ message.authority = object.authority ?? 0;
1630
1699
  return message;
1631
1700
  },
1632
1701
  fromAmino(object) {
@@ -1640,6 +1709,9 @@ export const MsgLockThread = {
1640
1709
  if (object.reason !== undefined && object.reason !== null) {
1641
1710
  message.reason = object.reason;
1642
1711
  }
1712
+ if (object.authority !== undefined && object.authority !== null) {
1713
+ message.authority = object.authority;
1714
+ }
1643
1715
  return message;
1644
1716
  },
1645
1717
  toAmino(message) {
@@ -1647,6 +1719,7 @@ export const MsgLockThread = {
1647
1719
  obj.creator = message.creator === "" ? undefined : message.creator;
1648
1720
  obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
1649
1721
  obj.reason = message.reason === "" ? undefined : message.reason;
1722
+ obj.authority = message.authority === 0 ? undefined : message.authority;
1650
1723
  return obj;
1651
1724
  },
1652
1725
  fromAminoMsg(object) {
@@ -1876,7 +1949,8 @@ function createBaseMsgMoveThread() {
1876
1949
  creator: "",
1877
1950
  rootId: BigInt(0),
1878
1951
  newCategoryId: BigInt(0),
1879
- reason: ""
1952
+ reason: "",
1953
+ authority: 0
1880
1954
  };
1881
1955
  }
1882
1956
  /**
@@ -1901,6 +1975,9 @@ export const MsgMoveThread = {
1901
1975
  if (message.reason !== "") {
1902
1976
  writer.uint32(34).string(message.reason);
1903
1977
  }
1978
+ if (message.authority !== 0) {
1979
+ writer.uint32(40).int32(message.authority);
1980
+ }
1904
1981
  return writer;
1905
1982
  },
1906
1983
  decode(input, length) {
@@ -1922,6 +1999,9 @@ export const MsgMoveThread = {
1922
1999
  case 4:
1923
2000
  message.reason = reader.string();
1924
2001
  break;
2002
+ case 5:
2003
+ message.authority = reader.int32();
2004
+ break;
1925
2005
  default:
1926
2006
  reader.skipType(tag & 7);
1927
2007
  break;
@@ -1935,6 +2015,7 @@ export const MsgMoveThread = {
1935
2015
  message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
1936
2016
  message.newCategoryId = object.newCategoryId !== undefined && object.newCategoryId !== null ? BigInt(object.newCategoryId.toString()) : BigInt(0);
1937
2017
  message.reason = object.reason ?? "";
2018
+ message.authority = object.authority ?? 0;
1938
2019
  return message;
1939
2020
  },
1940
2021
  fromAmino(object) {
@@ -1951,6 +2032,9 @@ export const MsgMoveThread = {
1951
2032
  if (object.reason !== undefined && object.reason !== null) {
1952
2033
  message.reason = object.reason;
1953
2034
  }
2035
+ if (object.authority !== undefined && object.authority !== null) {
2036
+ message.authority = object.authority;
2037
+ }
1954
2038
  return message;
1955
2039
  },
1956
2040
  toAmino(message) {
@@ -1959,6 +2043,7 @@ export const MsgMoveThread = {
1959
2043
  obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
1960
2044
  obj.new_category_id = message.newCategoryId !== BigInt(0) ? message.newCategoryId?.toString() : undefined;
1961
2045
  obj.reason = message.reason === "" ? undefined : message.reason;
2046
+ obj.authority = message.authority === 0 ? undefined : message.authority;
1962
2047
  return obj;
1963
2048
  },
1964
2049
  fromAminoMsg(object) {
@@ -3259,7 +3344,8 @@ function createBaseMsgHidePost() {
3259
3344
  creator: "",
3260
3345
  postId: BigInt(0),
3261
3346
  reasonCode: BigInt(0),
3262
- reasonText: ""
3347
+ reasonText: "",
3348
+ authority: 0
3263
3349
  };
3264
3350
  }
3265
3351
  /**
@@ -3284,6 +3370,9 @@ export const MsgHidePost = {
3284
3370
  if (message.reasonText !== "") {
3285
3371
  writer.uint32(34).string(message.reasonText);
3286
3372
  }
3373
+ if (message.authority !== 0) {
3374
+ writer.uint32(40).int32(message.authority);
3375
+ }
3287
3376
  return writer;
3288
3377
  },
3289
3378
  decode(input, length) {
@@ -3305,6 +3394,9 @@ export const MsgHidePost = {
3305
3394
  case 4:
3306
3395
  message.reasonText = reader.string();
3307
3396
  break;
3397
+ case 5:
3398
+ message.authority = reader.int32();
3399
+ break;
3308
3400
  default:
3309
3401
  reader.skipType(tag & 7);
3310
3402
  break;
@@ -3318,6 +3410,7 @@ export const MsgHidePost = {
3318
3410
  message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
3319
3411
  message.reasonCode = object.reasonCode !== undefined && object.reasonCode !== null ? BigInt(object.reasonCode.toString()) : BigInt(0);
3320
3412
  message.reasonText = object.reasonText ?? "";
3413
+ message.authority = object.authority ?? 0;
3321
3414
  return message;
3322
3415
  },
3323
3416
  fromAmino(object) {
@@ -3334,6 +3427,9 @@ export const MsgHidePost = {
3334
3427
  if (object.reason_text !== undefined && object.reason_text !== null) {
3335
3428
  message.reasonText = object.reason_text;
3336
3429
  }
3430
+ if (object.authority !== undefined && object.authority !== null) {
3431
+ message.authority = object.authority;
3432
+ }
3337
3433
  return message;
3338
3434
  },
3339
3435
  toAmino(message) {
@@ -3342,6 +3438,7 @@ export const MsgHidePost = {
3342
3438
  obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
3343
3439
  obj.reason_code = message.reasonCode !== BigInt(0) ? message.reasonCode?.toString() : undefined;
3344
3440
  obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
3441
+ obj.authority = message.authority === 0 ? undefined : message.authority;
3345
3442
  return obj;
3346
3443
  },
3347
3444
  fromAminoMsg(object) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkdreamnft/sparkdreamjs",
3
- "version": "0.0.21",
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,6 +8305,10 @@ export declare namespace sparkdream {
8305
8305
  toProto(message: _230.PostConvictionStake): Uint8Array;
8306
8306
  toProtoMsg(message: _230.PostConvictionStake): _230.PostConvictionStakeProtoMsg;
8307
8307
  };
8308
+ moderationAuthorityFromJSON(object: any): _229.ModerationAuthority;
8309
+ moderationAuthorityToJSON(object: _229.ModerationAuthority): string;
8310
+ ModerationAuthority: typeof _229.ModerationAuthority;
8311
+ ModerationAuthorityAmino: typeof _229.ModerationAuthority;
8308
8312
  MsgUpdateParams: {
8309
8313
  typeUrl: string;
8310
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;
@@ -2,6 +2,38 @@ import { Params, ParamsAmino, ForumOperationalParams, ForumOperationalParamsAmin
2
2
  import { ContentType } from "../../common/v1/content_type";
3
3
  import { BinaryReader, BinaryWriter } from "../../../binary";
4
4
  import { DeepPartial } from "../../../helpers";
5
+ /**
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
+ /**
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.
20
+ */
21
+ MODERATION_AUTHORITY_AUTO = 0,
22
+ /**
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).
25
+ */
26
+ MODERATION_AUTHORITY_SENTINEL = 1,
27
+ /**
28
+ * MODERATION_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
29
+ * not council-authorized. The deliberate "act as committee" choice.
30
+ */
31
+ MODERATION_AUTHORITY_COUNCIL = 2,
32
+ UNRECOGNIZED = -1
33
+ }
34
+ export declare const ModerationAuthorityAmino: typeof ModerationAuthority;
35
+ export declare function moderationAuthorityFromJSON(object: any): ModerationAuthority;
36
+ export declare function moderationAuthorityToJSON(object: ModerationAuthority): string;
5
37
  /**
6
38
  * MsgUpdateParams is the Msg/UpdateParams request type.
7
39
  * @name MsgUpdateParams
@@ -596,6 +628,11 @@ export interface MsgLockThread {
596
628
  creator: string;
597
629
  rootId: bigint;
598
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;
599
636
  }
600
637
  export interface MsgLockThreadProtoMsg {
601
638
  typeUrl: "/sparkdream.forum.v1.MsgLockThread";
@@ -611,6 +648,11 @@ export interface MsgLockThreadAmino {
611
648
  creator?: string;
612
649
  root_id?: string;
613
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;
614
656
  }
615
657
  export interface MsgLockThreadAminoMsg {
616
658
  type: "sparkdream/x/forum/MsgLockThread";
@@ -703,6 +745,11 @@ export interface MsgMoveThread {
703
745
  rootId: bigint;
704
746
  newCategoryId: bigint;
705
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;
706
753
  }
707
754
  export interface MsgMoveThreadProtoMsg {
708
755
  typeUrl: "/sparkdream.forum.v1.MsgMoveThread";
@@ -719,6 +766,11 @@ export interface MsgMoveThreadAmino {
719
766
  root_id?: string;
720
767
  new_category_id?: string;
721
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;
722
774
  }
723
775
  export interface MsgMoveThreadAminoMsg {
724
776
  type: "sparkdream/x/forum/MsgMoveThread";
@@ -1197,6 +1249,11 @@ export interface MsgHidePost {
1197
1249
  postId: bigint;
1198
1250
  reasonCode: bigint;
1199
1251
  reasonText: string;
1252
+ /**
1253
+ * authority selects which moderation authority the caller is invoking.
1254
+ * Defaults to AUTO for backward compatibility.
1255
+ */
1256
+ authority: ModerationAuthority;
1200
1257
  }
1201
1258
  export interface MsgHidePostProtoMsg {
1202
1259
  typeUrl: "/sparkdream.forum.v1.MsgHidePost";
@@ -1213,6 +1270,11 @@ export interface MsgHidePostAmino {
1213
1270
  post_id?: string;
1214
1271
  reason_code?: string;
1215
1272
  reason_text?: string;
1273
+ /**
1274
+ * authority selects which moderation authority the caller is invoking.
1275
+ * Defaults to AUTO for backward compatibility.
1276
+ */
1277
+ authority?: ModerationAuthority;
1216
1278
  }
1217
1279
  export interface MsgHidePostAminoMsg {
1218
1280
  type: "sparkdream/x/forum/MsgHidePost";
@@ -1,10 +1,73 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MsgAppealThreadLockResponse = exports.MsgAppealThreadLock = exports.MsgAppealPostResponse = exports.MsgAppealPost = exports.MsgUnhidePostResponse = exports.MsgUnhidePost = exports.MsgHidePostResponse = exports.MsgHidePost = exports.MsgDismissFlagsResponse = exports.MsgDismissFlags = exports.MsgFlagPostResponse = exports.MsgFlagPost = exports.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 = void 0;
4
- exports.MsgSetModerationPausedResponse = exports.MsgSetModerationPaused = exports.MsgSetForumPausedResponse = exports.MsgSetForumPaused = exports.MsgRejectProposedReplyResponse = exports.MsgRejectProposedReply = exports.MsgConfirmProposedReplyResponse = exports.MsgConfirmProposedReply = exports.MsgMarkAcceptedReplyResponse = exports.MsgMarkAcceptedReply = exports.MsgDisputePinResponse = exports.MsgDisputePin = exports.MsgUnpinReplyResponse = exports.MsgUnpinReply = exports.MsgPinReplyResponse = exports.MsgPinReply = exports.MsgAssignBountyToReplyResponse = exports.MsgAssignBountyToReply = exports.MsgCancelBountyResponse = exports.MsgCancelBounty = exports.MsgIncreaseBountyResponse = exports.MsgIncreaseBounty = exports.MsgAwardBountyResponse = exports.MsgAwardBounty = exports.MsgCreateBountyResponse = exports.MsgCreateBounty = exports.MsgAppealThreadMoveResponse = exports.MsgAppealThreadMove = 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
+ 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.moderationAuthorityFromJSON = moderationAuthorityFromJSON;
6
+ exports.moderationAuthorityToJSON = moderationAuthorityToJSON;
5
7
  //@ts-nocheck
6
8
  const params_1 = require("./params");
7
9
  const binary_1 = require("../../../binary");
10
+ /**
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
+ */
18
+ var ModerationAuthority;
19
+ (function (ModerationAuthority) {
20
+ /**
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.
26
+ */
27
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_AUTO"] = 0] = "MODERATION_AUTHORITY_AUTO";
28
+ /**
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).
31
+ */
32
+ ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_SENTINEL"] = 1] = "MODERATION_AUTHORITY_SENTINEL";
33
+ /**
34
+ * MODERATION_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
35
+ * not council-authorized. The deliberate "act as committee" choice.
36
+ */
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) {
42
+ switch (object) {
43
+ case 0:
44
+ case "MODERATION_AUTHORITY_AUTO":
45
+ return ModerationAuthority.MODERATION_AUTHORITY_AUTO;
46
+ case 1:
47
+ case "MODERATION_AUTHORITY_SENTINEL":
48
+ return ModerationAuthority.MODERATION_AUTHORITY_SENTINEL;
49
+ case 2:
50
+ case "MODERATION_AUTHORITY_COUNCIL":
51
+ return ModerationAuthority.MODERATION_AUTHORITY_COUNCIL;
52
+ case -1:
53
+ case "UNRECOGNIZED":
54
+ default:
55
+ return ModerationAuthority.UNRECOGNIZED;
56
+ }
57
+ }
58
+ function moderationAuthorityToJSON(object) {
59
+ switch (object) {
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:
67
+ default:
68
+ return "UNRECOGNIZED";
69
+ }
70
+ }
8
71
  function createBaseMsgUpdateParams() {
9
72
  return {
10
73
  authority: "",
@@ -1579,7 +1642,8 @@ function createBaseMsgLockThread() {
1579
1642
  return {
1580
1643
  creator: "",
1581
1644
  rootId: BigInt(0),
1582
- reason: ""
1645
+ reason: "",
1646
+ authority: 0
1583
1647
  };
1584
1648
  }
1585
1649
  /**
@@ -1601,6 +1665,9 @@ exports.MsgLockThread = {
1601
1665
  if (message.reason !== "") {
1602
1666
  writer.uint32(26).string(message.reason);
1603
1667
  }
1668
+ if (message.authority !== 0) {
1669
+ writer.uint32(32).int32(message.authority);
1670
+ }
1604
1671
  return writer;
1605
1672
  },
1606
1673
  decode(input, length) {
@@ -1619,6 +1686,9 @@ exports.MsgLockThread = {
1619
1686
  case 3:
1620
1687
  message.reason = reader.string();
1621
1688
  break;
1689
+ case 4:
1690
+ message.authority = reader.int32();
1691
+ break;
1622
1692
  default:
1623
1693
  reader.skipType(tag & 7);
1624
1694
  break;
@@ -1631,6 +1701,7 @@ exports.MsgLockThread = {
1631
1701
  message.creator = object.creator ?? "";
1632
1702
  message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
1633
1703
  message.reason = object.reason ?? "";
1704
+ message.authority = object.authority ?? 0;
1634
1705
  return message;
1635
1706
  },
1636
1707
  fromAmino(object) {
@@ -1644,6 +1715,9 @@ exports.MsgLockThread = {
1644
1715
  if (object.reason !== undefined && object.reason !== null) {
1645
1716
  message.reason = object.reason;
1646
1717
  }
1718
+ if (object.authority !== undefined && object.authority !== null) {
1719
+ message.authority = object.authority;
1720
+ }
1647
1721
  return message;
1648
1722
  },
1649
1723
  toAmino(message) {
@@ -1651,6 +1725,7 @@ exports.MsgLockThread = {
1651
1725
  obj.creator = message.creator === "" ? undefined : message.creator;
1652
1726
  obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
1653
1727
  obj.reason = message.reason === "" ? undefined : message.reason;
1728
+ obj.authority = message.authority === 0 ? undefined : message.authority;
1654
1729
  return obj;
1655
1730
  },
1656
1731
  fromAminoMsg(object) {
@@ -1880,7 +1955,8 @@ function createBaseMsgMoveThread() {
1880
1955
  creator: "",
1881
1956
  rootId: BigInt(0),
1882
1957
  newCategoryId: BigInt(0),
1883
- reason: ""
1958
+ reason: "",
1959
+ authority: 0
1884
1960
  };
1885
1961
  }
1886
1962
  /**
@@ -1905,6 +1981,9 @@ exports.MsgMoveThread = {
1905
1981
  if (message.reason !== "") {
1906
1982
  writer.uint32(34).string(message.reason);
1907
1983
  }
1984
+ if (message.authority !== 0) {
1985
+ writer.uint32(40).int32(message.authority);
1986
+ }
1908
1987
  return writer;
1909
1988
  },
1910
1989
  decode(input, length) {
@@ -1926,6 +2005,9 @@ exports.MsgMoveThread = {
1926
2005
  case 4:
1927
2006
  message.reason = reader.string();
1928
2007
  break;
2008
+ case 5:
2009
+ message.authority = reader.int32();
2010
+ break;
1929
2011
  default:
1930
2012
  reader.skipType(tag & 7);
1931
2013
  break;
@@ -1939,6 +2021,7 @@ exports.MsgMoveThread = {
1939
2021
  message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
1940
2022
  message.newCategoryId = object.newCategoryId !== undefined && object.newCategoryId !== null ? BigInt(object.newCategoryId.toString()) : BigInt(0);
1941
2023
  message.reason = object.reason ?? "";
2024
+ message.authority = object.authority ?? 0;
1942
2025
  return message;
1943
2026
  },
1944
2027
  fromAmino(object) {
@@ -1955,6 +2038,9 @@ exports.MsgMoveThread = {
1955
2038
  if (object.reason !== undefined && object.reason !== null) {
1956
2039
  message.reason = object.reason;
1957
2040
  }
2041
+ if (object.authority !== undefined && object.authority !== null) {
2042
+ message.authority = object.authority;
2043
+ }
1958
2044
  return message;
1959
2045
  },
1960
2046
  toAmino(message) {
@@ -1963,6 +2049,7 @@ exports.MsgMoveThread = {
1963
2049
  obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
1964
2050
  obj.new_category_id = message.newCategoryId !== BigInt(0) ? message.newCategoryId?.toString() : undefined;
1965
2051
  obj.reason = message.reason === "" ? undefined : message.reason;
2052
+ obj.authority = message.authority === 0 ? undefined : message.authority;
1966
2053
  return obj;
1967
2054
  },
1968
2055
  fromAminoMsg(object) {
@@ -3263,7 +3350,8 @@ function createBaseMsgHidePost() {
3263
3350
  creator: "",
3264
3351
  postId: BigInt(0),
3265
3352
  reasonCode: BigInt(0),
3266
- reasonText: ""
3353
+ reasonText: "",
3354
+ authority: 0
3267
3355
  };
3268
3356
  }
3269
3357
  /**
@@ -3288,6 +3376,9 @@ exports.MsgHidePost = {
3288
3376
  if (message.reasonText !== "") {
3289
3377
  writer.uint32(34).string(message.reasonText);
3290
3378
  }
3379
+ if (message.authority !== 0) {
3380
+ writer.uint32(40).int32(message.authority);
3381
+ }
3291
3382
  return writer;
3292
3383
  },
3293
3384
  decode(input, length) {
@@ -3309,6 +3400,9 @@ exports.MsgHidePost = {
3309
3400
  case 4:
3310
3401
  message.reasonText = reader.string();
3311
3402
  break;
3403
+ case 5:
3404
+ message.authority = reader.int32();
3405
+ break;
3312
3406
  default:
3313
3407
  reader.skipType(tag & 7);
3314
3408
  break;
@@ -3322,6 +3416,7 @@ exports.MsgHidePost = {
3322
3416
  message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
3323
3417
  message.reasonCode = object.reasonCode !== undefined && object.reasonCode !== null ? BigInt(object.reasonCode.toString()) : BigInt(0);
3324
3418
  message.reasonText = object.reasonText ?? "";
3419
+ message.authority = object.authority ?? 0;
3325
3420
  return message;
3326
3421
  },
3327
3422
  fromAmino(object) {
@@ -3338,6 +3433,9 @@ exports.MsgHidePost = {
3338
3433
  if (object.reason_text !== undefined && object.reason_text !== null) {
3339
3434
  message.reasonText = object.reason_text;
3340
3435
  }
3436
+ if (object.authority !== undefined && object.authority !== null) {
3437
+ message.authority = object.authority;
3438
+ }
3341
3439
  return message;
3342
3440
  },
3343
3441
  toAmino(message) {
@@ -3346,6 +3444,7 @@ exports.MsgHidePost = {
3346
3444
  obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
3347
3445
  obj.reason_code = message.reasonCode !== BigInt(0) ? message.reasonCode?.toString() : undefined;
3348
3446
  obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
3447
+ obj.authority = message.authority === 0 ? undefined : message.authority;
3349
3448
  return obj;
3350
3449
  },
3351
3450
  fromAminoMsg(object) {