@sparkdreamnft/sparkdreamjs 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +181 -181
  3. package/esm/cosmos/bundle.js +181 -181
  4. package/esm/ibc/bundle.js +105 -105
  5. package/esm/sparkdream/bundle.js +275 -273
  6. package/esm/sparkdream/collect/v1/params.js +24 -0
  7. package/esm/sparkdream/collect/v1/tx.js +216 -1
  8. package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
  9. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +11 -1
  10. package/esm/sparkdream/collect/v1/types.js +92 -2
  11. package/esm/sparkdream/forum/v1/sentinel_activity.js +58 -1
  12. package/esm/sparkdream/forum/v1/tx.js +1 -1
  13. package/esm/sparkdream/rep/v1/bonded_role.js +17 -5
  14. package/esm/sparkdream/rep/v1/genesis.js +17 -1
  15. package/esm/sparkdream/rep/v1/role_activity.js +670 -0
  16. package/esm/tendermint/bundle.js +17 -17
  17. package/ibc/bundle.d.ts +90 -90
  18. package/ibc/bundle.js +105 -105
  19. package/package.json +1 -1
  20. package/sparkdream/bundle.d.ts +7168 -7061
  21. package/sparkdream/bundle.js +275 -273
  22. package/sparkdream/collect/v1/params.d.ts +28 -0
  23. package/sparkdream/collect/v1/params.js +24 -0
  24. package/sparkdream/collect/v1/tx.d.ts +130 -6
  25. package/sparkdream/collect/v1/tx.js +220 -3
  26. package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
  27. package/sparkdream/collect/v1/tx.registry.js +19 -1
  28. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +10 -1
  29. package/sparkdream/collect/v1/tx.rpc.msg.js +10 -0
  30. package/sparkdream/collect/v1/types.d.ts +72 -0
  31. package/sparkdream/collect/v1/types.js +92 -2
  32. package/sparkdream/forum/v1/sentinel_activity.d.ts +53 -0
  33. package/sparkdream/forum/v1/sentinel_activity.js +58 -1
  34. package/sparkdream/forum/v1/tx.d.ts +1 -1
  35. package/sparkdream/forum/v1/tx.js +1 -1
  36. package/sparkdream/rep/v1/bonded_role.d.ts +13 -1
  37. package/sparkdream/rep/v1/bonded_role.js +17 -5
  38. package/sparkdream/rep/v1/genesis.d.ts +3 -0
  39. package/sparkdream/rep/v1/genesis.js +17 -1
  40. package/sparkdream/rep/v1/role_activity.d.ts +395 -0
  41. package/sparkdream/rep/v1/role_activity.js +673 -0
  42. package/tendermint/bundle.d.ts +844 -844
  43. package/tendermint/bundle.js +17 -17
@@ -51,6 +51,8 @@ function createBaseParams() {
51
51
  appealFee: "",
52
52
  appealCooldownBlocks: BigInt(0),
53
53
  appealDeadlineBlocks: BigInt(0),
54
+ sentinelUnhideWindowBlocks: BigInt(0),
55
+ maxHidesPerSentinelPerDay: 0,
54
56
  endorsementCreationFee: "",
55
57
  endorsementDreamStake: "",
56
58
  endorsementStakeDuration: BigInt(0),
@@ -230,6 +232,12 @@ export const Params = {
230
232
  if (message.appealDeadlineBlocks !== BigInt(0)) {
231
233
  writer.uint32(392).int64(message.appealDeadlineBlocks);
232
234
  }
235
+ if (message.sentinelUnhideWindowBlocks !== BigInt(0)) {
236
+ writer.uint32(608).int64(message.sentinelUnhideWindowBlocks);
237
+ }
238
+ if (message.maxHidesPerSentinelPerDay !== 0) {
239
+ writer.uint32(616).uint32(message.maxHidesPerSentinelPerDay);
240
+ }
233
241
  if (message.endorsementCreationFee !== "") {
234
242
  writer.uint32(402).string(message.endorsementCreationFee);
235
243
  }
@@ -452,6 +460,12 @@ export const Params = {
452
460
  case 49:
453
461
  message.appealDeadlineBlocks = reader.int64();
454
462
  break;
463
+ case 76:
464
+ message.sentinelUnhideWindowBlocks = reader.int64();
465
+ break;
466
+ case 77:
467
+ message.maxHidesPerSentinelPerDay = reader.uint32();
468
+ break;
455
469
  case 50:
456
470
  message.endorsementCreationFee = reader.string();
457
471
  break;
@@ -578,6 +592,8 @@ export const Params = {
578
592
  message.appealFee = object.appealFee ?? "";
579
593
  message.appealCooldownBlocks = object.appealCooldownBlocks !== undefined && object.appealCooldownBlocks !== null ? BigInt(object.appealCooldownBlocks.toString()) : BigInt(0);
580
594
  message.appealDeadlineBlocks = object.appealDeadlineBlocks !== undefined && object.appealDeadlineBlocks !== null ? BigInt(object.appealDeadlineBlocks.toString()) : BigInt(0);
595
+ message.sentinelUnhideWindowBlocks = object.sentinelUnhideWindowBlocks !== undefined && object.sentinelUnhideWindowBlocks !== null ? BigInt(object.sentinelUnhideWindowBlocks.toString()) : BigInt(0);
596
+ message.maxHidesPerSentinelPerDay = object.maxHidesPerSentinelPerDay ?? 0;
581
597
  message.endorsementCreationFee = object.endorsementCreationFee ?? "";
582
598
  message.endorsementDreamStake = object.endorsementDreamStake ?? "";
583
599
  message.endorsementStakeDuration = object.endorsementStakeDuration !== undefined && object.endorsementStakeDuration !== null ? BigInt(object.endorsementStakeDuration.toString()) : BigInt(0);
@@ -749,6 +765,12 @@ export const Params = {
749
765
  if (object.appeal_deadline_blocks !== undefined && object.appeal_deadline_blocks !== null) {
750
766
  message.appealDeadlineBlocks = BigInt(object.appeal_deadline_blocks);
751
767
  }
768
+ if (object.sentinel_unhide_window_blocks !== undefined && object.sentinel_unhide_window_blocks !== null) {
769
+ message.sentinelUnhideWindowBlocks = BigInt(object.sentinel_unhide_window_blocks);
770
+ }
771
+ if (object.max_hides_per_sentinel_per_day !== undefined && object.max_hides_per_sentinel_per_day !== null) {
772
+ message.maxHidesPerSentinelPerDay = object.max_hides_per_sentinel_per_day;
773
+ }
752
774
  if (object.endorsement_creation_fee !== undefined && object.endorsement_creation_fee !== null) {
753
775
  message.endorsementCreationFee = object.endorsement_creation_fee;
754
776
  }
@@ -870,6 +892,8 @@ export const Params = {
870
892
  obj.appeal_fee = message.appealFee === "" ? undefined : message.appealFee;
871
893
  obj.appeal_cooldown_blocks = message.appealCooldownBlocks !== BigInt(0) ? message.appealCooldownBlocks?.toString() : undefined;
872
894
  obj.appeal_deadline_blocks = message.appealDeadlineBlocks !== BigInt(0) ? message.appealDeadlineBlocks?.toString() : undefined;
895
+ obj.sentinel_unhide_window_blocks = message.sentinelUnhideWindowBlocks !== BigInt(0) ? message.sentinelUnhideWindowBlocks?.toString() : undefined;
896
+ obj.max_hides_per_sentinel_per_day = message.maxHidesPerSentinelPerDay === 0 ? undefined : message.maxHidesPerSentinelPerDay;
873
897
  obj.endorsement_creation_fee = message.endorsementCreationFee === "" ? undefined : message.endorsementCreationFee;
874
898
  obj.endorsement_dream_stake = message.endorsementDreamStake === "" ? undefined : message.endorsementDreamStake;
875
899
  obj.endorsement_stake_duration = message.endorsementStakeDuration !== BigInt(0) ? message.endorsementStakeDuration?.toString() : undefined;
@@ -3,6 +3,65 @@ import { Params } from "./params";
3
3
  import { NftReference, LinkReference, OnChainReference, CustomReference, KeyValuePair, AddItemEntry, CollectOperationalParams } from "./types";
4
4
  import { BinaryReader, BinaryWriter } from "../../../binary";
5
5
  import { bytesFromBase64, base64FromBytes } from "../../../helpers";
6
+ /**
7
+ * ModerationAuthority selects which authority the caller of MsgHideContent
8
+ * is invoking. Mirrors x/forum's enum: it disambiguates the case where an
9
+ * account is BOTH a bonded content sentinel and a Commons Operations
10
+ * Committee member — without it the handler would have to silently pick one
11
+ * path. See the authority-selection notes in docs/x-collect-spec.md
12
+ * (MsgHideContent).
13
+ */
14
+ export var ModerationAuthority;
15
+ (function (ModerationAuthority) {
16
+ /**
17
+ * MODERATION_AUTHORITY_AUTO - AUTO (default, back-compat): sentinel path whenever the account is an
18
+ * eligible bonded sentinel, else the council path if council-authorized,
19
+ * else error. Prefers the accountable (bonded) 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 not an eligible sentinel
24
+ * (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 not
29
+ * 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
+ }
6
65
  function createBaseMsgUpdateParams() {
7
66
  return {
8
67
  authority: "",
@@ -3908,7 +3967,8 @@ function createBaseMsgHideContent() {
3908
3967
  targetId: BigInt(0),
3909
3968
  targetType: 0,
3910
3969
  reasonCode: 0,
3911
- reasonText: ""
3970
+ reasonText: "",
3971
+ authority: 0
3912
3972
  };
3913
3973
  }
3914
3974
  /**
@@ -3936,6 +3996,9 @@ export const MsgHideContent = {
3936
3996
  if (message.reasonText !== "") {
3937
3997
  writer.uint32(42).string(message.reasonText);
3938
3998
  }
3999
+ if (message.authority !== 0) {
4000
+ writer.uint32(48).int32(message.authority);
4001
+ }
3939
4002
  return writer;
3940
4003
  },
3941
4004
  decode(input, length) {
@@ -3960,6 +4023,9 @@ export const MsgHideContent = {
3960
4023
  case 5:
3961
4024
  message.reasonText = reader.string();
3962
4025
  break;
4026
+ case 6:
4027
+ message.authority = reader.int32();
4028
+ break;
3963
4029
  default:
3964
4030
  reader.skipType(tag & 7);
3965
4031
  break;
@@ -3974,6 +4040,7 @@ export const MsgHideContent = {
3974
4040
  message.targetType = object.targetType ?? 0;
3975
4041
  message.reasonCode = object.reasonCode ?? 0;
3976
4042
  message.reasonText = object.reasonText ?? "";
4043
+ message.authority = object.authority ?? 0;
3977
4044
  return message;
3978
4045
  },
3979
4046
  fromAmino(object) {
@@ -3993,6 +4060,9 @@ export const MsgHideContent = {
3993
4060
  if (object.reason_text !== undefined && object.reason_text !== null) {
3994
4061
  message.reasonText = object.reason_text;
3995
4062
  }
4063
+ if (object.authority !== undefined && object.authority !== null) {
4064
+ message.authority = object.authority;
4065
+ }
3996
4066
  return message;
3997
4067
  },
3998
4068
  toAmino(message) {
@@ -4002,6 +4072,7 @@ export const MsgHideContent = {
4002
4072
  obj.target_type = message.targetType === 0 ? undefined : message.targetType;
4003
4073
  obj.reason_code = message.reasonCode === 0 ? undefined : message.reasonCode;
4004
4074
  obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
4075
+ obj.authority = message.authority === 0 ? undefined : message.authority;
4005
4076
  return obj;
4006
4077
  },
4007
4078
  fromAminoMsg(object) {
@@ -4974,3 +5045,147 @@ export const MsgMakeCollectionPermanentResponse = {
4974
5045
  };
4975
5046
  }
4976
5047
  };
5048
+ function createBaseMsgUnhideContent() {
5049
+ return {
5050
+ creator: "",
5051
+ hideRecordId: BigInt(0)
5052
+ };
5053
+ }
5054
+ /**
5055
+ * MsgUnhideContent defines the MsgUnhideContent message.
5056
+ * @name MsgUnhideContent
5057
+ * @package sparkdream.collect.v1
5058
+ * @see proto type: sparkdream.collect.v1.MsgUnhideContent
5059
+ */
5060
+ export const MsgUnhideContent = {
5061
+ typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
5062
+ aminoType: "sparkdream/x/collect/MsgUnhideContent",
5063
+ encode(message, writer = BinaryWriter.create()) {
5064
+ if (message.creator !== "") {
5065
+ writer.uint32(10).string(message.creator);
5066
+ }
5067
+ if (message.hideRecordId !== BigInt(0)) {
5068
+ writer.uint32(16).uint64(message.hideRecordId);
5069
+ }
5070
+ return writer;
5071
+ },
5072
+ decode(input, length) {
5073
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5074
+ let end = length === undefined ? reader.len : reader.pos + length;
5075
+ const message = createBaseMsgUnhideContent();
5076
+ while (reader.pos < end) {
5077
+ const tag = reader.uint32();
5078
+ switch (tag >>> 3) {
5079
+ case 1:
5080
+ message.creator = reader.string();
5081
+ break;
5082
+ case 2:
5083
+ message.hideRecordId = reader.uint64();
5084
+ break;
5085
+ default:
5086
+ reader.skipType(tag & 7);
5087
+ break;
5088
+ }
5089
+ }
5090
+ return message;
5091
+ },
5092
+ fromPartial(object) {
5093
+ const message = createBaseMsgUnhideContent();
5094
+ message.creator = object.creator ?? "";
5095
+ message.hideRecordId = object.hideRecordId !== undefined && object.hideRecordId !== null ? BigInt(object.hideRecordId.toString()) : BigInt(0);
5096
+ return message;
5097
+ },
5098
+ fromAmino(object) {
5099
+ const message = createBaseMsgUnhideContent();
5100
+ if (object.creator !== undefined && object.creator !== null) {
5101
+ message.creator = object.creator;
5102
+ }
5103
+ if (object.hide_record_id !== undefined && object.hide_record_id !== null) {
5104
+ message.hideRecordId = BigInt(object.hide_record_id);
5105
+ }
5106
+ return message;
5107
+ },
5108
+ toAmino(message) {
5109
+ const obj = {};
5110
+ obj.creator = message.creator === "" ? undefined : message.creator;
5111
+ obj.hide_record_id = message.hideRecordId !== BigInt(0) ? message.hideRecordId?.toString() : undefined;
5112
+ return obj;
5113
+ },
5114
+ fromAminoMsg(object) {
5115
+ return MsgUnhideContent.fromAmino(object.value);
5116
+ },
5117
+ toAminoMsg(message) {
5118
+ return {
5119
+ type: "sparkdream/x/collect/MsgUnhideContent",
5120
+ value: MsgUnhideContent.toAmino(message)
5121
+ };
5122
+ },
5123
+ fromProtoMsg(message) {
5124
+ return MsgUnhideContent.decode(message.value);
5125
+ },
5126
+ toProto(message) {
5127
+ return MsgUnhideContent.encode(message).finish();
5128
+ },
5129
+ toProtoMsg(message) {
5130
+ return {
5131
+ typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
5132
+ value: MsgUnhideContent.encode(message).finish()
5133
+ };
5134
+ }
5135
+ };
5136
+ function createBaseMsgUnhideContentResponse() {
5137
+ return {};
5138
+ }
5139
+ /**
5140
+ * MsgUnhideContentResponse defines the MsgUnhideContentResponse message.
5141
+ * @name MsgUnhideContentResponse
5142
+ * @package sparkdream.collect.v1
5143
+ * @see proto type: sparkdream.collect.v1.MsgUnhideContentResponse
5144
+ */
5145
+ export const MsgUnhideContentResponse = {
5146
+ typeUrl: "/sparkdream.collect.v1.MsgUnhideContentResponse",
5147
+ encode(_, writer = BinaryWriter.create()) {
5148
+ return writer;
5149
+ },
5150
+ decode(input, length) {
5151
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5152
+ let end = length === undefined ? reader.len : reader.pos + length;
5153
+ const message = createBaseMsgUnhideContentResponse();
5154
+ while (reader.pos < end) {
5155
+ const tag = reader.uint32();
5156
+ switch (tag >>> 3) {
5157
+ default:
5158
+ reader.skipType(tag & 7);
5159
+ break;
5160
+ }
5161
+ }
5162
+ return message;
5163
+ },
5164
+ fromPartial(_) {
5165
+ const message = createBaseMsgUnhideContentResponse();
5166
+ return message;
5167
+ },
5168
+ fromAmino(_) {
5169
+ const message = createBaseMsgUnhideContentResponse();
5170
+ return message;
5171
+ },
5172
+ toAmino(_) {
5173
+ const obj = {};
5174
+ return obj;
5175
+ },
5176
+ fromAminoMsg(object) {
5177
+ return MsgUnhideContentResponse.fromAmino(object.value);
5178
+ },
5179
+ fromProtoMsg(message) {
5180
+ return MsgUnhideContentResponse.decode(message.value);
5181
+ },
5182
+ toProto(message) {
5183
+ return MsgUnhideContentResponse.encode(message).finish();
5184
+ },
5185
+ toProtoMsg(message) {
5186
+ return {
5187
+ typeUrl: "/sparkdream.collect.v1.MsgUnhideContentResponse",
5188
+ value: MsgUnhideContentResponse.encode(message).finish()
5189
+ };
5190
+ }
5191
+ };
@@ -1,5 +1,5 @@
1
- import { MsgUpdateParams, MsgCreateCollection, MsgUpdateCollection, MsgDeleteCollection, MsgAddItem, MsgAddItems, MsgUpdateItem, MsgRemoveItem, MsgRemoveItems, MsgReorderItem, MsgAddCollaborator, MsgRemoveCollaborator, MsgUpdateCollaboratorRole, MsgRateCollection, MsgChallengeReview, MsgRequestSponsorship, MsgCancelSponsorshipRequest, MsgSponsorCollection, MsgUpdateOperationalParams, MsgUpvoteContent, MsgDownvoteContent, MsgFlagContent, MsgHideContent, MsgAppealHide, MsgEndorseCollection, MsgSetSeekingEndorsement, MsgPinCollection, MsgUnpinCollection, MsgMakeCollectionPermanent } from "./tx";
2
- export const registry = [["/sparkdream.collect.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.collect.v1.MsgCreateCollection", MsgCreateCollection], ["/sparkdream.collect.v1.MsgUpdateCollection", MsgUpdateCollection], ["/sparkdream.collect.v1.MsgDeleteCollection", MsgDeleteCollection], ["/sparkdream.collect.v1.MsgAddItem", MsgAddItem], ["/sparkdream.collect.v1.MsgAddItems", MsgAddItems], ["/sparkdream.collect.v1.MsgUpdateItem", MsgUpdateItem], ["/sparkdream.collect.v1.MsgRemoveItem", MsgRemoveItem], ["/sparkdream.collect.v1.MsgRemoveItems", MsgRemoveItems], ["/sparkdream.collect.v1.MsgReorderItem", MsgReorderItem], ["/sparkdream.collect.v1.MsgAddCollaborator", MsgAddCollaborator], ["/sparkdream.collect.v1.MsgRemoveCollaborator", MsgRemoveCollaborator], ["/sparkdream.collect.v1.MsgUpdateCollaboratorRole", MsgUpdateCollaboratorRole], ["/sparkdream.collect.v1.MsgRateCollection", MsgRateCollection], ["/sparkdream.collect.v1.MsgChallengeReview", MsgChallengeReview], ["/sparkdream.collect.v1.MsgRequestSponsorship", MsgRequestSponsorship], ["/sparkdream.collect.v1.MsgCancelSponsorshipRequest", MsgCancelSponsorshipRequest], ["/sparkdream.collect.v1.MsgSponsorCollection", MsgSponsorCollection], ["/sparkdream.collect.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.collect.v1.MsgUpvoteContent", MsgUpvoteContent], ["/sparkdream.collect.v1.MsgDownvoteContent", MsgDownvoteContent], ["/sparkdream.collect.v1.MsgFlagContent", MsgFlagContent], ["/sparkdream.collect.v1.MsgHideContent", MsgHideContent], ["/sparkdream.collect.v1.MsgAppealHide", MsgAppealHide], ["/sparkdream.collect.v1.MsgEndorseCollection", MsgEndorseCollection], ["/sparkdream.collect.v1.MsgSetSeekingEndorsement", MsgSetSeekingEndorsement], ["/sparkdream.collect.v1.MsgPinCollection", MsgPinCollection], ["/sparkdream.collect.v1.MsgUnpinCollection", MsgUnpinCollection], ["/sparkdream.collect.v1.MsgMakeCollectionPermanent", MsgMakeCollectionPermanent]];
1
+ import { MsgUpdateParams, MsgCreateCollection, MsgUpdateCollection, MsgDeleteCollection, MsgAddItem, MsgAddItems, MsgUpdateItem, MsgRemoveItem, MsgRemoveItems, MsgReorderItem, MsgAddCollaborator, MsgRemoveCollaborator, MsgUpdateCollaboratorRole, MsgRateCollection, MsgChallengeReview, MsgRequestSponsorship, MsgCancelSponsorshipRequest, MsgSponsorCollection, MsgUpdateOperationalParams, MsgUpvoteContent, MsgDownvoteContent, MsgFlagContent, MsgHideContent, MsgAppealHide, MsgEndorseCollection, MsgSetSeekingEndorsement, MsgPinCollection, MsgUnpinCollection, MsgMakeCollectionPermanent, MsgUnhideContent } from "./tx";
2
+ export const registry = [["/sparkdream.collect.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.collect.v1.MsgCreateCollection", MsgCreateCollection], ["/sparkdream.collect.v1.MsgUpdateCollection", MsgUpdateCollection], ["/sparkdream.collect.v1.MsgDeleteCollection", MsgDeleteCollection], ["/sparkdream.collect.v1.MsgAddItem", MsgAddItem], ["/sparkdream.collect.v1.MsgAddItems", MsgAddItems], ["/sparkdream.collect.v1.MsgUpdateItem", MsgUpdateItem], ["/sparkdream.collect.v1.MsgRemoveItem", MsgRemoveItem], ["/sparkdream.collect.v1.MsgRemoveItems", MsgRemoveItems], ["/sparkdream.collect.v1.MsgReorderItem", MsgReorderItem], ["/sparkdream.collect.v1.MsgAddCollaborator", MsgAddCollaborator], ["/sparkdream.collect.v1.MsgRemoveCollaborator", MsgRemoveCollaborator], ["/sparkdream.collect.v1.MsgUpdateCollaboratorRole", MsgUpdateCollaboratorRole], ["/sparkdream.collect.v1.MsgRateCollection", MsgRateCollection], ["/sparkdream.collect.v1.MsgChallengeReview", MsgChallengeReview], ["/sparkdream.collect.v1.MsgRequestSponsorship", MsgRequestSponsorship], ["/sparkdream.collect.v1.MsgCancelSponsorshipRequest", MsgCancelSponsorshipRequest], ["/sparkdream.collect.v1.MsgSponsorCollection", MsgSponsorCollection], ["/sparkdream.collect.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.collect.v1.MsgUpvoteContent", MsgUpvoteContent], ["/sparkdream.collect.v1.MsgDownvoteContent", MsgDownvoteContent], ["/sparkdream.collect.v1.MsgFlagContent", MsgFlagContent], ["/sparkdream.collect.v1.MsgHideContent", MsgHideContent], ["/sparkdream.collect.v1.MsgAppealHide", MsgAppealHide], ["/sparkdream.collect.v1.MsgEndorseCollection", MsgEndorseCollection], ["/sparkdream.collect.v1.MsgSetSeekingEndorsement", MsgSetSeekingEndorsement], ["/sparkdream.collect.v1.MsgPinCollection", MsgPinCollection], ["/sparkdream.collect.v1.MsgUnpinCollection", MsgUnpinCollection], ["/sparkdream.collect.v1.MsgMakeCollectionPermanent", MsgMakeCollectionPermanent], ["/sparkdream.collect.v1.MsgUnhideContent", MsgUnhideContent]];
3
3
  export const load = (protoRegistry) => {
4
4
  registry.forEach(([typeUrl, mod]) => {
5
5
  protoRegistry.register(typeUrl, mod);
@@ -180,6 +180,12 @@ export const MessageComposer = {
180
180
  typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
181
181
  value: MsgMakeCollectionPermanent.encode(value).finish()
182
182
  };
183
+ },
184
+ unhideContent(value) {
185
+ return {
186
+ typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
187
+ value: MsgUnhideContent.encode(value).finish()
188
+ };
183
189
  }
184
190
  },
185
191
  withTypeUrl: {
@@ -356,6 +362,12 @@ export const MessageComposer = {
356
362
  typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
357
363
  value
358
364
  };
365
+ },
366
+ unhideContent(value) {
367
+ return {
368
+ typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
369
+ value
370
+ };
359
371
  }
360
372
  },
361
373
  fromPartial: {
@@ -532,6 +544,12 @@ export const MessageComposer = {
532
544
  typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
533
545
  value: MsgMakeCollectionPermanent.fromPartial(value)
534
546
  };
547
+ },
548
+ unhideContent(value) {
549
+ return {
550
+ typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
551
+ value: MsgUnhideContent.fromPartial(value)
552
+ };
535
553
  }
536
554
  }
537
555
  };
@@ -1,5 +1,5 @@
1
1
  import { BinaryReader } from "../../../binary";
2
- import { MsgUpdateParams, MsgUpdateParamsResponse, MsgCreateCollection, MsgCreateCollectionResponse, MsgUpdateCollection, MsgUpdateCollectionResponse, MsgDeleteCollection, MsgDeleteCollectionResponse, MsgAddItem, MsgAddItemResponse, MsgAddItems, MsgAddItemsResponse, MsgUpdateItem, MsgUpdateItemResponse, MsgRemoveItem, MsgRemoveItemResponse, MsgRemoveItems, MsgRemoveItemsResponse, MsgReorderItem, MsgReorderItemResponse, MsgAddCollaborator, MsgAddCollaboratorResponse, MsgRemoveCollaborator, MsgRemoveCollaboratorResponse, MsgUpdateCollaboratorRole, MsgUpdateCollaboratorRoleResponse, MsgRateCollection, MsgRateCollectionResponse, MsgChallengeReview, MsgChallengeReviewResponse, MsgRequestSponsorship, MsgRequestSponsorshipResponse, MsgCancelSponsorshipRequest, MsgCancelSponsorshipRequestResponse, MsgSponsorCollection, MsgSponsorCollectionResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgUpvoteContent, MsgUpvoteContentResponse, MsgDownvoteContent, MsgDownvoteContentResponse, MsgFlagContent, MsgFlagContentResponse, MsgHideContent, MsgHideContentResponse, MsgAppealHide, MsgAppealHideResponse, MsgEndorseCollection, MsgEndorseCollectionResponse, MsgSetSeekingEndorsement, MsgSetSeekingEndorsementResponse, MsgPinCollection, MsgPinCollectionResponse, MsgUnpinCollection, MsgUnpinCollectionResponse, MsgMakeCollectionPermanent, MsgMakeCollectionPermanentResponse } from "./tx";
2
+ import { MsgUpdateParams, MsgUpdateParamsResponse, MsgCreateCollection, MsgCreateCollectionResponse, MsgUpdateCollection, MsgUpdateCollectionResponse, MsgDeleteCollection, MsgDeleteCollectionResponse, MsgAddItem, MsgAddItemResponse, MsgAddItems, MsgAddItemsResponse, MsgUpdateItem, MsgUpdateItemResponse, MsgRemoveItem, MsgRemoveItemResponse, MsgRemoveItems, MsgRemoveItemsResponse, MsgReorderItem, MsgReorderItemResponse, MsgAddCollaborator, MsgAddCollaboratorResponse, MsgRemoveCollaborator, MsgRemoveCollaboratorResponse, MsgUpdateCollaboratorRole, MsgUpdateCollaboratorRoleResponse, MsgRateCollection, MsgRateCollectionResponse, MsgChallengeReview, MsgChallengeReviewResponse, MsgRequestSponsorship, MsgRequestSponsorshipResponse, MsgCancelSponsorshipRequest, MsgCancelSponsorshipRequestResponse, MsgSponsorCollection, MsgSponsorCollectionResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgUpvoteContent, MsgUpvoteContentResponse, MsgDownvoteContent, MsgDownvoteContentResponse, MsgFlagContent, MsgFlagContentResponse, MsgHideContent, MsgHideContentResponse, MsgAppealHide, MsgAppealHideResponse, MsgEndorseCollection, MsgEndorseCollectionResponse, MsgSetSeekingEndorsement, MsgSetSeekingEndorsementResponse, MsgPinCollection, MsgPinCollectionResponse, MsgUnpinCollection, MsgUnpinCollectionResponse, MsgMakeCollectionPermanent, MsgMakeCollectionPermanentResponse, MsgUnhideContent, MsgUnhideContentResponse } from "./tx";
3
3
  export class MsgClientImpl {
4
4
  rpc;
5
5
  constructor(rpc) {
@@ -183,6 +183,16 @@ export class MsgClientImpl {
183
183
  const promise = this.rpc.request("sparkdream.collect.v1.Msg", "MakeCollectionPermanent", data);
184
184
  return promise.then(data => MsgMakeCollectionPermanentResponse.decode(new BinaryReader(data)));
185
185
  };
186
+ /* UnhideContent reverses MsgHideContent. Original sentinel only, within
187
+ params.sentinel_unhide_window_blocks, and only before an appeal is
188
+ filed. Restores the author bond and rep penalty slashed at hide time.
189
+ The sentinel's committed bond stays reserved until the original
190
+ appeal_deadline (anti hide/unhide cycling). */
191
+ unhideContent = async (request) => {
192
+ const data = MsgUnhideContent.encode(request).finish();
193
+ const promise = this.rpc.request("sparkdream.collect.v1.Msg", "UnhideContent", data);
194
+ return promise.then(data => MsgUnhideContentResponse.decode(new BinaryReader(data)));
195
+ };
186
196
  }
187
197
  export const createClientImpl = (rpc) => {
188
198
  return new MsgClientImpl(rpc);
@@ -2404,7 +2404,9 @@ function createBaseCollectOperationalParams() {
2404
2404
  nonMemberCollabBurnFraction: "",
2405
2405
  endorserRepPenalty: "",
2406
2406
  collabInviterRepPenalty: "",
2407
- authorRepPenalty: ""
2407
+ authorRepPenalty: "",
2408
+ sentinelUnhideWindowBlocks: BigInt(0),
2409
+ maxHidesPerSentinelPerDay: 0
2408
2410
  };
2409
2411
  }
2410
2412
  /**
@@ -2569,6 +2571,12 @@ export const CollectOperationalParams = {
2569
2571
  if (message.authorRepPenalty !== "") {
2570
2572
  writer.uint32(434).string(Decimal.fromUserInput(message.authorRepPenalty, 18).atomics);
2571
2573
  }
2574
+ if (message.sentinelUnhideWindowBlocks !== BigInt(0)) {
2575
+ writer.uint32(448).int64(message.sentinelUnhideWindowBlocks);
2576
+ }
2577
+ if (message.maxHidesPerSentinelPerDay !== 0) {
2578
+ writer.uint32(456).uint32(message.maxHidesPerSentinelPerDay);
2579
+ }
2572
2580
  return writer;
2573
2581
  },
2574
2582
  decode(input, length) {
@@ -2731,6 +2739,12 @@ export const CollectOperationalParams = {
2731
2739
  case 54:
2732
2740
  message.authorRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
2733
2741
  break;
2742
+ case 56:
2743
+ message.sentinelUnhideWindowBlocks = reader.int64();
2744
+ break;
2745
+ case 57:
2746
+ message.maxHidesPerSentinelPerDay = reader.uint32();
2747
+ break;
2734
2748
  default:
2735
2749
  reader.skipType(tag & 7);
2736
2750
  break;
@@ -2791,6 +2805,8 @@ export const CollectOperationalParams = {
2791
2805
  message.endorserRepPenalty = object.endorserRepPenalty ?? "";
2792
2806
  message.collabInviterRepPenalty = object.collabInviterRepPenalty ?? "";
2793
2807
  message.authorRepPenalty = object.authorRepPenalty ?? "";
2808
+ message.sentinelUnhideWindowBlocks = object.sentinelUnhideWindowBlocks !== undefined && object.sentinelUnhideWindowBlocks !== null ? BigInt(object.sentinelUnhideWindowBlocks.toString()) : BigInt(0);
2809
+ message.maxHidesPerSentinelPerDay = object.maxHidesPerSentinelPerDay ?? 0;
2794
2810
  return message;
2795
2811
  },
2796
2812
  fromAmino(object) {
@@ -2948,6 +2964,12 @@ export const CollectOperationalParams = {
2948
2964
  if (object.author_rep_penalty !== undefined && object.author_rep_penalty !== null) {
2949
2965
  message.authorRepPenalty = object.author_rep_penalty;
2950
2966
  }
2967
+ if (object.sentinel_unhide_window_blocks !== undefined && object.sentinel_unhide_window_blocks !== null) {
2968
+ message.sentinelUnhideWindowBlocks = BigInt(object.sentinel_unhide_window_blocks);
2969
+ }
2970
+ if (object.max_hides_per_sentinel_per_day !== undefined && object.max_hides_per_sentinel_per_day !== null) {
2971
+ message.maxHidesPerSentinelPerDay = object.max_hides_per_sentinel_per_day;
2972
+ }
2951
2973
  return message;
2952
2974
  },
2953
2975
  toAmino(message) {
@@ -3003,6 +3025,8 @@ export const CollectOperationalParams = {
3003
3025
  obj.endorser_rep_penalty = message.endorserRepPenalty === "" ? undefined : message.endorserRepPenalty;
3004
3026
  obj.collab_inviter_rep_penalty = message.collabInviterRepPenalty === "" ? undefined : message.collabInviterRepPenalty;
3005
3027
  obj.author_rep_penalty = message.authorRepPenalty === "" ? undefined : message.authorRepPenalty;
3028
+ obj.sentinel_unhide_window_blocks = message.sentinelUnhideWindowBlocks !== BigInt(0) ? message.sentinelUnhideWindowBlocks?.toString() : undefined;
3029
+ obj.max_hides_per_sentinel_per_day = message.maxHidesPerSentinelPerDay === 0 ? undefined : message.maxHidesPerSentinelPerDay;
3006
3030
  return obj;
3007
3031
  },
3008
3032
  fromAminoMsg(object) {
@@ -3177,7 +3201,12 @@ function createBaseHideRecord() {
3177
3201
  reasonText: "",
3178
3202
  appealDeadline: BigInt(0),
3179
3203
  appealed: false,
3180
- resolved: false
3204
+ resolved: false,
3205
+ selfCorrected: false,
3206
+ authorBondAmount: "",
3207
+ authorRepPenalty: "",
3208
+ repPenaltyTags: [],
3209
+ repPenaltyAmounts: []
3181
3210
  };
3182
3211
  }
3183
3212
  /**
@@ -3222,6 +3251,21 @@ export const HideRecord = {
3222
3251
  if (message.resolved === true) {
3223
3252
  writer.uint32(88).bool(message.resolved);
3224
3253
  }
3254
+ if (message.selfCorrected === true) {
3255
+ writer.uint32(96).bool(message.selfCorrected);
3256
+ }
3257
+ if (message.authorBondAmount !== "") {
3258
+ writer.uint32(106).string(message.authorBondAmount);
3259
+ }
3260
+ if (message.authorRepPenalty !== "") {
3261
+ writer.uint32(114).string(Decimal.fromUserInput(message.authorRepPenalty, 18).atomics);
3262
+ }
3263
+ for (const v of message.repPenaltyTags) {
3264
+ writer.uint32(122).string(v);
3265
+ }
3266
+ for (const v of message.repPenaltyAmounts) {
3267
+ writer.uint32(130).string(v);
3268
+ }
3225
3269
  return writer;
3226
3270
  },
3227
3271
  decode(input, length) {
@@ -3264,6 +3308,21 @@ export const HideRecord = {
3264
3308
  case 11:
3265
3309
  message.resolved = reader.bool();
3266
3310
  break;
3311
+ case 12:
3312
+ message.selfCorrected = reader.bool();
3313
+ break;
3314
+ case 13:
3315
+ message.authorBondAmount = reader.string();
3316
+ break;
3317
+ case 14:
3318
+ message.authorRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
3319
+ break;
3320
+ case 15:
3321
+ message.repPenaltyTags.push(reader.string());
3322
+ break;
3323
+ case 16:
3324
+ message.repPenaltyAmounts.push(reader.string());
3325
+ break;
3267
3326
  default:
3268
3327
  reader.skipType(tag & 7);
3269
3328
  break;
@@ -3284,6 +3343,11 @@ export const HideRecord = {
3284
3343
  message.appealDeadline = object.appealDeadline !== undefined && object.appealDeadline !== null ? BigInt(object.appealDeadline.toString()) : BigInt(0);
3285
3344
  message.appealed = object.appealed ?? false;
3286
3345
  message.resolved = object.resolved ?? false;
3346
+ message.selfCorrected = object.selfCorrected ?? false;
3347
+ message.authorBondAmount = object.authorBondAmount ?? "";
3348
+ message.authorRepPenalty = object.authorRepPenalty ?? "";
3349
+ message.repPenaltyTags = object.repPenaltyTags?.map(e => e) || [];
3350
+ message.repPenaltyAmounts = object.repPenaltyAmounts?.map(e => e) || [];
3287
3351
  return message;
3288
3352
  },
3289
3353
  fromAmino(object) {
@@ -3321,6 +3385,17 @@ export const HideRecord = {
3321
3385
  if (object.resolved !== undefined && object.resolved !== null) {
3322
3386
  message.resolved = object.resolved;
3323
3387
  }
3388
+ if (object.self_corrected !== undefined && object.self_corrected !== null) {
3389
+ message.selfCorrected = object.self_corrected;
3390
+ }
3391
+ if (object.author_bond_amount !== undefined && object.author_bond_amount !== null) {
3392
+ message.authorBondAmount = object.author_bond_amount;
3393
+ }
3394
+ if (object.author_rep_penalty !== undefined && object.author_rep_penalty !== null) {
3395
+ message.authorRepPenalty = object.author_rep_penalty;
3396
+ }
3397
+ message.repPenaltyTags = object.rep_penalty_tags?.map(e => e) || [];
3398
+ message.repPenaltyAmounts = object.rep_penalty_amounts?.map(e => e) || [];
3324
3399
  return message;
3325
3400
  },
3326
3401
  toAmino(message) {
@@ -3336,6 +3411,21 @@ export const HideRecord = {
3336
3411
  obj.appeal_deadline = message.appealDeadline !== BigInt(0) ? message.appealDeadline?.toString() : undefined;
3337
3412
  obj.appealed = message.appealed === false ? undefined : message.appealed;
3338
3413
  obj.resolved = message.resolved === false ? undefined : message.resolved;
3414
+ obj.self_corrected = message.selfCorrected === false ? undefined : message.selfCorrected;
3415
+ obj.author_bond_amount = message.authorBondAmount === "" ? undefined : message.authorBondAmount;
3416
+ obj.author_rep_penalty = message.authorRepPenalty === "" ? undefined : message.authorRepPenalty;
3417
+ if (message.repPenaltyTags) {
3418
+ obj.rep_penalty_tags = message.repPenaltyTags.map(e => e);
3419
+ }
3420
+ else {
3421
+ obj.rep_penalty_tags = message.repPenaltyTags;
3422
+ }
3423
+ if (message.repPenaltyAmounts) {
3424
+ obj.rep_penalty_amounts = message.repPenaltyAmounts.map(e => e);
3425
+ }
3426
+ else {
3427
+ obj.rep_penalty_amounts = message.repPenaltyAmounts;
3428
+ }
3339
3429
  return obj;
3340
3430
  },
3341
3431
  fromAminoMsg(object) {