@sparkdreamnft/sparkdreamjs 0.0.26 → 0.0.28

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 (56) 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/query.js +165 -0
  8. package/esm/sparkdream/collect/v1/query.lcd.js +11 -0
  9. package/esm/sparkdream/collect/v1/query.rpc.Query.js +10 -1
  10. package/esm/sparkdream/collect/v1/tx.js +216 -1
  11. package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
  12. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +11 -1
  13. package/esm/sparkdream/collect/v1/types.js +92 -2
  14. package/esm/sparkdream/forum/v1/sentinel_activity.js +58 -1
  15. package/esm/sparkdream/forum/v1/tx.js +1 -1
  16. package/esm/sparkdream/rep/v1/bonded_role.js +17 -5
  17. package/esm/sparkdream/rep/v1/genesis.js +17 -1
  18. package/esm/sparkdream/rep/v1/query.js +13 -34
  19. package/esm/sparkdream/rep/v1/role_activity.js +670 -0
  20. package/esm/tendermint/bundle.js +17 -17
  21. package/ibc/bundle.d.ts +90 -90
  22. package/ibc/bundle.js +105 -105
  23. package/package.json +1 -1
  24. package/sparkdream/bundle.d.ts +7194 -7061
  25. package/sparkdream/bundle.js +275 -273
  26. package/sparkdream/collect/v1/params.d.ts +28 -0
  27. package/sparkdream/collect/v1/params.js +24 -0
  28. package/sparkdream/collect/v1/query.d.ts +92 -0
  29. package/sparkdream/collect/v1/query.js +167 -1
  30. package/sparkdream/collect/v1/query.lcd.d.ts +2 -1
  31. package/sparkdream/collect/v1/query.lcd.js +11 -0
  32. package/sparkdream/collect/v1/query.rpc.Query.d.ts +5 -1
  33. package/sparkdream/collect/v1/query.rpc.Query.js +9 -0
  34. package/sparkdream/collect/v1/tx.d.ts +130 -6
  35. package/sparkdream/collect/v1/tx.js +220 -3
  36. package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
  37. package/sparkdream/collect/v1/tx.registry.js +19 -1
  38. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +10 -1
  39. package/sparkdream/collect/v1/tx.rpc.msg.js +10 -0
  40. package/sparkdream/collect/v1/types.d.ts +72 -0
  41. package/sparkdream/collect/v1/types.js +92 -2
  42. package/sparkdream/forum/v1/sentinel_activity.d.ts +53 -0
  43. package/sparkdream/forum/v1/sentinel_activity.js +58 -1
  44. package/sparkdream/forum/v1/tx.d.ts +1 -1
  45. package/sparkdream/forum/v1/tx.js +1 -1
  46. package/sparkdream/rep/v1/bonded_role.d.ts +13 -1
  47. package/sparkdream/rep/v1/bonded_role.js +17 -5
  48. package/sparkdream/rep/v1/genesis.d.ts +3 -0
  49. package/sparkdream/rep/v1/genesis.js +17 -1
  50. package/sparkdream/rep/v1/query.d.ts +2 -6
  51. package/sparkdream/rep/v1/query.js +13 -34
  52. package/sparkdream/rep/v1/role_activity.d.ts +395 -0
  53. package/sparkdream/rep/v1/role_activity.js +673 -0
  54. package/sparkdream/rpc.query.d.ts +1 -0
  55. package/tendermint/bundle.d.ts +844 -844
  56. package/tendermint/bundle.js +17 -17
@@ -82,6 +82,20 @@ export interface Params {
82
82
  appealFee: string;
83
83
  appealCooldownBlocks: bigint;
84
84
  appealDeadlineBlocks: bigint;
85
+ /**
86
+ * Blocks after HiddenAt during which the hiding sentinel may
87
+ * self-correct via MsgUnhideContent. Must be < hide_expiry_blocks.
88
+ * Default 14400 (~24h at 6s blocks).
89
+ */
90
+ sentinelUnhideWindowBlocks: bigint;
91
+ /**
92
+ * Max MsgHideContent actions per sentinel per day (block-height day,
93
+ * BlocksPerDay = 14400). Collect's other hide throttle is the per-hide
94
+ * bond reservation; this caps outright hide spam by a well-funded
95
+ * sentinel. Default 50 (parity with forum's max_hides_per_epoch).
96
+ * A self-correct unhide does NOT refund the day's slot.
97
+ */
98
+ maxHidesPerSentinelPerDay: number;
85
99
  /**
86
100
  * --- Endorsement parameters — OPERATIONAL ---
87
101
  */
@@ -277,6 +291,20 @@ export interface ParamsAmino {
277
291
  appeal_fee?: string;
278
292
  appeal_cooldown_blocks?: string;
279
293
  appeal_deadline_blocks?: string;
294
+ /**
295
+ * Blocks after HiddenAt during which the hiding sentinel may
296
+ * self-correct via MsgUnhideContent. Must be < hide_expiry_blocks.
297
+ * Default 14400 (~24h at 6s blocks).
298
+ */
299
+ sentinel_unhide_window_blocks?: string;
300
+ /**
301
+ * Max MsgHideContent actions per sentinel per day (block-height day,
302
+ * BlocksPerDay = 14400). Collect's other hide throttle is the per-hide
303
+ * bond reservation; this caps outright hide spam by a well-funded
304
+ * sentinel. Default 50 (parity with forum's max_hides_per_epoch).
305
+ * A self-correct unhide does NOT refund the day's slot.
306
+ */
307
+ max_hides_per_sentinel_per_day?: number;
280
308
  /**
281
309
  * --- Endorsement parameters — OPERATIONAL ---
282
310
  */
@@ -54,6 +54,8 @@ function createBaseParams() {
54
54
  appealFee: "",
55
55
  appealCooldownBlocks: BigInt(0),
56
56
  appealDeadlineBlocks: BigInt(0),
57
+ sentinelUnhideWindowBlocks: BigInt(0),
58
+ maxHidesPerSentinelPerDay: 0,
57
59
  endorsementCreationFee: "",
58
60
  endorsementDreamStake: "",
59
61
  endorsementStakeDuration: BigInt(0),
@@ -233,6 +235,12 @@ exports.Params = {
233
235
  if (message.appealDeadlineBlocks !== BigInt(0)) {
234
236
  writer.uint32(392).int64(message.appealDeadlineBlocks);
235
237
  }
238
+ if (message.sentinelUnhideWindowBlocks !== BigInt(0)) {
239
+ writer.uint32(608).int64(message.sentinelUnhideWindowBlocks);
240
+ }
241
+ if (message.maxHidesPerSentinelPerDay !== 0) {
242
+ writer.uint32(616).uint32(message.maxHidesPerSentinelPerDay);
243
+ }
236
244
  if (message.endorsementCreationFee !== "") {
237
245
  writer.uint32(402).string(message.endorsementCreationFee);
238
246
  }
@@ -455,6 +463,12 @@ exports.Params = {
455
463
  case 49:
456
464
  message.appealDeadlineBlocks = reader.int64();
457
465
  break;
466
+ case 76:
467
+ message.sentinelUnhideWindowBlocks = reader.int64();
468
+ break;
469
+ case 77:
470
+ message.maxHidesPerSentinelPerDay = reader.uint32();
471
+ break;
458
472
  case 50:
459
473
  message.endorsementCreationFee = reader.string();
460
474
  break;
@@ -581,6 +595,8 @@ exports.Params = {
581
595
  message.appealFee = object.appealFee ?? "";
582
596
  message.appealCooldownBlocks = object.appealCooldownBlocks !== undefined && object.appealCooldownBlocks !== null ? BigInt(object.appealCooldownBlocks.toString()) : BigInt(0);
583
597
  message.appealDeadlineBlocks = object.appealDeadlineBlocks !== undefined && object.appealDeadlineBlocks !== null ? BigInt(object.appealDeadlineBlocks.toString()) : BigInt(0);
598
+ message.sentinelUnhideWindowBlocks = object.sentinelUnhideWindowBlocks !== undefined && object.sentinelUnhideWindowBlocks !== null ? BigInt(object.sentinelUnhideWindowBlocks.toString()) : BigInt(0);
599
+ message.maxHidesPerSentinelPerDay = object.maxHidesPerSentinelPerDay ?? 0;
584
600
  message.endorsementCreationFee = object.endorsementCreationFee ?? "";
585
601
  message.endorsementDreamStake = object.endorsementDreamStake ?? "";
586
602
  message.endorsementStakeDuration = object.endorsementStakeDuration !== undefined && object.endorsementStakeDuration !== null ? BigInt(object.endorsementStakeDuration.toString()) : BigInt(0);
@@ -752,6 +768,12 @@ exports.Params = {
752
768
  if (object.appeal_deadline_blocks !== undefined && object.appeal_deadline_blocks !== null) {
753
769
  message.appealDeadlineBlocks = BigInt(object.appeal_deadline_blocks);
754
770
  }
771
+ if (object.sentinel_unhide_window_blocks !== undefined && object.sentinel_unhide_window_blocks !== null) {
772
+ message.sentinelUnhideWindowBlocks = BigInt(object.sentinel_unhide_window_blocks);
773
+ }
774
+ if (object.max_hides_per_sentinel_per_day !== undefined && object.max_hides_per_sentinel_per_day !== null) {
775
+ message.maxHidesPerSentinelPerDay = object.max_hides_per_sentinel_per_day;
776
+ }
755
777
  if (object.endorsement_creation_fee !== undefined && object.endorsement_creation_fee !== null) {
756
778
  message.endorsementCreationFee = object.endorsement_creation_fee;
757
779
  }
@@ -873,6 +895,8 @@ exports.Params = {
873
895
  obj.appeal_fee = message.appealFee === "" ? undefined : message.appealFee;
874
896
  obj.appeal_cooldown_blocks = message.appealCooldownBlocks !== BigInt(0) ? message.appealCooldownBlocks?.toString() : undefined;
875
897
  obj.appeal_deadline_blocks = message.appealDeadlineBlocks !== BigInt(0) ? message.appealDeadlineBlocks?.toString() : undefined;
898
+ obj.sentinel_unhide_window_blocks = message.sentinelUnhideWindowBlocks !== BigInt(0) ? message.sentinelUnhideWindowBlocks?.toString() : undefined;
899
+ obj.max_hides_per_sentinel_per_day = message.maxHidesPerSentinelPerDay === 0 ? undefined : message.maxHidesPerSentinelPerDay;
876
900
  obj.endorsement_creation_fee = message.endorsementCreationFee === "" ? undefined : message.endorsementCreationFee;
877
901
  obj.endorsement_dream_stake = message.endorsementDreamStake === "" ? undefined : message.endorsementDreamStake;
878
902
  obj.endorsement_stake_duration = message.endorsementStakeDuration !== BigInt(0) ? message.endorsementStakeDuration?.toString() : undefined;
@@ -1016,6 +1016,62 @@ export interface QueryHideRecordsByTargetResponseAminoMsg {
1016
1016
  type: "/sparkdream.collect.v1.QueryHideRecordsByTargetResponse";
1017
1017
  value: QueryHideRecordsByTargetResponseAmino;
1018
1018
  }
1019
+ /**
1020
+ * QueryHideRecordsBySentinelRequest defines the QueryHideRecordsBySentinelRequest message.
1021
+ * @name QueryHideRecordsBySentinelRequest
1022
+ * @package sparkdream.collect.v1
1023
+ * @see proto type: sparkdream.collect.v1.QueryHideRecordsBySentinelRequest
1024
+ */
1025
+ export interface QueryHideRecordsBySentinelRequest {
1026
+ sentinel: string;
1027
+ pagination?: PageRequest;
1028
+ }
1029
+ export interface QueryHideRecordsBySentinelRequestProtoMsg {
1030
+ typeUrl: "/sparkdream.collect.v1.QueryHideRecordsBySentinelRequest";
1031
+ value: Uint8Array;
1032
+ }
1033
+ /**
1034
+ * QueryHideRecordsBySentinelRequest defines the QueryHideRecordsBySentinelRequest message.
1035
+ * @name QueryHideRecordsBySentinelRequestAmino
1036
+ * @package sparkdream.collect.v1
1037
+ * @see proto type: sparkdream.collect.v1.QueryHideRecordsBySentinelRequest
1038
+ */
1039
+ export interface QueryHideRecordsBySentinelRequestAmino {
1040
+ sentinel?: string;
1041
+ pagination?: PageRequestAmino;
1042
+ }
1043
+ export interface QueryHideRecordsBySentinelRequestAminoMsg {
1044
+ type: "/sparkdream.collect.v1.QueryHideRecordsBySentinelRequest";
1045
+ value: QueryHideRecordsBySentinelRequestAmino;
1046
+ }
1047
+ /**
1048
+ * QueryHideRecordsBySentinelResponse defines the QueryHideRecordsBySentinelResponse message.
1049
+ * @name QueryHideRecordsBySentinelResponse
1050
+ * @package sparkdream.collect.v1
1051
+ * @see proto type: sparkdream.collect.v1.QueryHideRecordsBySentinelResponse
1052
+ */
1053
+ export interface QueryHideRecordsBySentinelResponse {
1054
+ hideRecords: HideRecord[];
1055
+ pagination?: PageResponse;
1056
+ }
1057
+ export interface QueryHideRecordsBySentinelResponseProtoMsg {
1058
+ typeUrl: "/sparkdream.collect.v1.QueryHideRecordsBySentinelResponse";
1059
+ value: Uint8Array;
1060
+ }
1061
+ /**
1062
+ * QueryHideRecordsBySentinelResponse defines the QueryHideRecordsBySentinelResponse message.
1063
+ * @name QueryHideRecordsBySentinelResponseAmino
1064
+ * @package sparkdream.collect.v1
1065
+ * @see proto type: sparkdream.collect.v1.QueryHideRecordsBySentinelResponse
1066
+ */
1067
+ export interface QueryHideRecordsBySentinelResponseAmino {
1068
+ hide_records?: HideRecordAmino[];
1069
+ pagination?: PageResponseAmino;
1070
+ }
1071
+ export interface QueryHideRecordsBySentinelResponseAminoMsg {
1072
+ type: "/sparkdream.collect.v1.QueryHideRecordsBySentinelResponse";
1073
+ value: QueryHideRecordsBySentinelResponseAmino;
1074
+ }
1019
1075
  /**
1020
1076
  * QueryPendingCollectionsRequest defines the QueryPendingCollectionsRequest message.
1021
1077
  * @name QueryPendingCollectionsRequest
@@ -1984,6 +2040,42 @@ export declare const QueryHideRecordsByTargetResponse: {
1984
2040
  toProto(message: QueryHideRecordsByTargetResponse): Uint8Array;
1985
2041
  toProtoMsg(message: QueryHideRecordsByTargetResponse): QueryHideRecordsByTargetResponseProtoMsg;
1986
2042
  };
2043
+ /**
2044
+ * QueryHideRecordsBySentinelRequest defines the QueryHideRecordsBySentinelRequest message.
2045
+ * @name QueryHideRecordsBySentinelRequest
2046
+ * @package sparkdream.collect.v1
2047
+ * @see proto type: sparkdream.collect.v1.QueryHideRecordsBySentinelRequest
2048
+ */
2049
+ export declare const QueryHideRecordsBySentinelRequest: {
2050
+ typeUrl: string;
2051
+ encode(message: QueryHideRecordsBySentinelRequest, writer?: BinaryWriter): BinaryWriter;
2052
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryHideRecordsBySentinelRequest;
2053
+ fromPartial(object: DeepPartial<QueryHideRecordsBySentinelRequest>): QueryHideRecordsBySentinelRequest;
2054
+ fromAmino(object: QueryHideRecordsBySentinelRequestAmino): QueryHideRecordsBySentinelRequest;
2055
+ toAmino(message: QueryHideRecordsBySentinelRequest): QueryHideRecordsBySentinelRequestAmino;
2056
+ fromAminoMsg(object: QueryHideRecordsBySentinelRequestAminoMsg): QueryHideRecordsBySentinelRequest;
2057
+ fromProtoMsg(message: QueryHideRecordsBySentinelRequestProtoMsg): QueryHideRecordsBySentinelRequest;
2058
+ toProto(message: QueryHideRecordsBySentinelRequest): Uint8Array;
2059
+ toProtoMsg(message: QueryHideRecordsBySentinelRequest): QueryHideRecordsBySentinelRequestProtoMsg;
2060
+ };
2061
+ /**
2062
+ * QueryHideRecordsBySentinelResponse defines the QueryHideRecordsBySentinelResponse message.
2063
+ * @name QueryHideRecordsBySentinelResponse
2064
+ * @package sparkdream.collect.v1
2065
+ * @see proto type: sparkdream.collect.v1.QueryHideRecordsBySentinelResponse
2066
+ */
2067
+ export declare const QueryHideRecordsBySentinelResponse: {
2068
+ typeUrl: string;
2069
+ encode(message: QueryHideRecordsBySentinelResponse, writer?: BinaryWriter): BinaryWriter;
2070
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryHideRecordsBySentinelResponse;
2071
+ fromPartial(object: DeepPartial<QueryHideRecordsBySentinelResponse>): QueryHideRecordsBySentinelResponse;
2072
+ fromAmino(object: QueryHideRecordsBySentinelResponseAmino): QueryHideRecordsBySentinelResponse;
2073
+ toAmino(message: QueryHideRecordsBySentinelResponse): QueryHideRecordsBySentinelResponseAmino;
2074
+ fromAminoMsg(object: QueryHideRecordsBySentinelResponseAminoMsg): QueryHideRecordsBySentinelResponse;
2075
+ fromProtoMsg(message: QueryHideRecordsBySentinelResponseProtoMsg): QueryHideRecordsBySentinelResponse;
2076
+ toProto(message: QueryHideRecordsBySentinelResponse): Uint8Array;
2077
+ toProtoMsg(message: QueryHideRecordsBySentinelResponse): QueryHideRecordsBySentinelResponseProtoMsg;
2078
+ };
1987
2079
  /**
1988
2080
  * QueryPendingCollectionsRequest defines the QueryPendingCollectionsRequest message.
1989
2081
  * @name QueryPendingCollectionsRequest
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueryListCollectionsByTagResponse = exports.QueryListCollectionsByTagRequest = exports.QueryCollectionConvictionResponse = exports.QueryCollectionConvictionRequest = exports.QueryCollectionsByContentResponse = exports.QueryCollectionsByContentRequest = exports.QueryEndorsementResponse = exports.QueryEndorsementRequest = exports.QueryPendingCollectionsResponse = exports.QueryPendingCollectionsRequest = exports.QueryHideRecordsByTargetResponse = exports.QueryHideRecordsByTargetRequest = exports.QueryHideRecordResponse = exports.QueryHideRecordRequest = exports.QueryFlaggedContentResponse = exports.QueryFlaggedContentRequest = exports.QueryContentFlagResponse = exports.QueryContentFlagRequest = exports.QuerySponsorshipRequestsResponse = exports.QuerySponsorshipRequestsRequest = exports.QuerySponsorshipRequestResponse = exports.QuerySponsorshipRequestRequest = exports.QueryCurationReviewsByCuratorResponse = exports.QueryCurationReviewsByCuratorRequest = exports.QueryCurationReviewsResponse = exports.QueryCurationReviewsRequest = exports.QueryCurationSummaryResponse = exports.QueryCurationSummaryRequest = exports.QueryCuratorActivityResponse = exports.QueryCuratorActivityRequest = exports.QueryCollaboratorsResponse = exports.QueryCollaboratorsRequest = exports.QueryItemsByOwnerResponse = exports.QueryItemsByOwnerRequest = exports.QueryItemsResponse = exports.QueryItemsRequest = exports.QueryItemResponse = exports.QueryItemRequest = exports.QueryCollectionsByCollaboratorResponse = exports.QueryCollectionsByCollaboratorRequest = exports.QueryPublicCollectionsByTypeResponse = exports.QueryPublicCollectionsByTypeRequest = exports.QueryPublicCollectionsResponse = exports.QueryPublicCollectionsRequest = exports.QueryCollectionsByOwnerResponse = exports.QueryCollectionsByOwnerRequest = exports.QueryCollectionResponse = exports.QueryCollectionRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
3
+ exports.QueryCollectionConvictionResponse = exports.QueryCollectionConvictionRequest = exports.QueryCollectionsByContentResponse = exports.QueryCollectionsByContentRequest = exports.QueryEndorsementResponse = exports.QueryEndorsementRequest = exports.QueryPendingCollectionsResponse = exports.QueryPendingCollectionsRequest = exports.QueryHideRecordsBySentinelResponse = exports.QueryHideRecordsBySentinelRequest = exports.QueryHideRecordsByTargetResponse = exports.QueryHideRecordsByTargetRequest = exports.QueryHideRecordResponse = exports.QueryHideRecordRequest = exports.QueryFlaggedContentResponse = exports.QueryFlaggedContentRequest = exports.QueryContentFlagResponse = exports.QueryContentFlagRequest = exports.QuerySponsorshipRequestsResponse = exports.QuerySponsorshipRequestsRequest = exports.QuerySponsorshipRequestResponse = exports.QuerySponsorshipRequestRequest = exports.QueryCurationReviewsByCuratorResponse = exports.QueryCurationReviewsByCuratorRequest = exports.QueryCurationReviewsResponse = exports.QueryCurationReviewsRequest = exports.QueryCurationSummaryResponse = exports.QueryCurationSummaryRequest = exports.QueryCuratorActivityResponse = exports.QueryCuratorActivityRequest = exports.QueryCollaboratorsResponse = exports.QueryCollaboratorsRequest = exports.QueryItemsByOwnerResponse = exports.QueryItemsByOwnerRequest = exports.QueryItemsResponse = exports.QueryItemsRequest = exports.QueryItemResponse = exports.QueryItemRequest = exports.QueryCollectionsByCollaboratorResponse = exports.QueryCollectionsByCollaboratorRequest = exports.QueryPublicCollectionsByTypeResponse = exports.QueryPublicCollectionsByTypeRequest = exports.QueryPublicCollectionsResponse = exports.QueryPublicCollectionsRequest = exports.QueryCollectionsByOwnerResponse = exports.QueryCollectionsByOwnerRequest = exports.QueryCollectionResponse = exports.QueryCollectionRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
4
+ exports.QueryListCollectionsByTagResponse = exports.QueryListCollectionsByTagRequest = void 0;
4
5
  //@ts-nocheck
5
6
  const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
6
7
  const types_1 = require("./types");
@@ -2987,6 +2988,171 @@ exports.QueryHideRecordsByTargetResponse = {
2987
2988
  };
2988
2989
  }
2989
2990
  };
2991
+ function createBaseQueryHideRecordsBySentinelRequest() {
2992
+ return {
2993
+ sentinel: "",
2994
+ pagination: undefined
2995
+ };
2996
+ }
2997
+ /**
2998
+ * QueryHideRecordsBySentinelRequest defines the QueryHideRecordsBySentinelRequest message.
2999
+ * @name QueryHideRecordsBySentinelRequest
3000
+ * @package sparkdream.collect.v1
3001
+ * @see proto type: sparkdream.collect.v1.QueryHideRecordsBySentinelRequest
3002
+ */
3003
+ exports.QueryHideRecordsBySentinelRequest = {
3004
+ typeUrl: "/sparkdream.collect.v1.QueryHideRecordsBySentinelRequest",
3005
+ encode(message, writer = binary_1.BinaryWriter.create()) {
3006
+ if (message.sentinel !== "") {
3007
+ writer.uint32(10).string(message.sentinel);
3008
+ }
3009
+ if (message.pagination !== undefined) {
3010
+ pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
3011
+ }
3012
+ return writer;
3013
+ },
3014
+ decode(input, length) {
3015
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
3016
+ let end = length === undefined ? reader.len : reader.pos + length;
3017
+ const message = createBaseQueryHideRecordsBySentinelRequest();
3018
+ while (reader.pos < end) {
3019
+ const tag = reader.uint32();
3020
+ switch (tag >>> 3) {
3021
+ case 1:
3022
+ message.sentinel = reader.string();
3023
+ break;
3024
+ case 2:
3025
+ message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
3026
+ break;
3027
+ default:
3028
+ reader.skipType(tag & 7);
3029
+ break;
3030
+ }
3031
+ }
3032
+ return message;
3033
+ },
3034
+ fromPartial(object) {
3035
+ const message = createBaseQueryHideRecordsBySentinelRequest();
3036
+ message.sentinel = object.sentinel ?? "";
3037
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
3038
+ return message;
3039
+ },
3040
+ fromAmino(object) {
3041
+ const message = createBaseQueryHideRecordsBySentinelRequest();
3042
+ if (object.sentinel !== undefined && object.sentinel !== null) {
3043
+ message.sentinel = object.sentinel;
3044
+ }
3045
+ if (object.pagination !== undefined && object.pagination !== null) {
3046
+ message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
3047
+ }
3048
+ return message;
3049
+ },
3050
+ toAmino(message) {
3051
+ const obj = {};
3052
+ obj.sentinel = message.sentinel === "" ? undefined : message.sentinel;
3053
+ obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
3054
+ return obj;
3055
+ },
3056
+ fromAminoMsg(object) {
3057
+ return exports.QueryHideRecordsBySentinelRequest.fromAmino(object.value);
3058
+ },
3059
+ fromProtoMsg(message) {
3060
+ return exports.QueryHideRecordsBySentinelRequest.decode(message.value);
3061
+ },
3062
+ toProto(message) {
3063
+ return exports.QueryHideRecordsBySentinelRequest.encode(message).finish();
3064
+ },
3065
+ toProtoMsg(message) {
3066
+ return {
3067
+ typeUrl: "/sparkdream.collect.v1.QueryHideRecordsBySentinelRequest",
3068
+ value: exports.QueryHideRecordsBySentinelRequest.encode(message).finish()
3069
+ };
3070
+ }
3071
+ };
3072
+ function createBaseQueryHideRecordsBySentinelResponse() {
3073
+ return {
3074
+ hideRecords: [],
3075
+ pagination: undefined
3076
+ };
3077
+ }
3078
+ /**
3079
+ * QueryHideRecordsBySentinelResponse defines the QueryHideRecordsBySentinelResponse message.
3080
+ * @name QueryHideRecordsBySentinelResponse
3081
+ * @package sparkdream.collect.v1
3082
+ * @see proto type: sparkdream.collect.v1.QueryHideRecordsBySentinelResponse
3083
+ */
3084
+ exports.QueryHideRecordsBySentinelResponse = {
3085
+ typeUrl: "/sparkdream.collect.v1.QueryHideRecordsBySentinelResponse",
3086
+ encode(message, writer = binary_1.BinaryWriter.create()) {
3087
+ for (const v of message.hideRecords) {
3088
+ types_1.HideRecord.encode(v, writer.uint32(10).fork()).ldelim();
3089
+ }
3090
+ if (message.pagination !== undefined) {
3091
+ pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
3092
+ }
3093
+ return writer;
3094
+ },
3095
+ decode(input, length) {
3096
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
3097
+ let end = length === undefined ? reader.len : reader.pos + length;
3098
+ const message = createBaseQueryHideRecordsBySentinelResponse();
3099
+ while (reader.pos < end) {
3100
+ const tag = reader.uint32();
3101
+ switch (tag >>> 3) {
3102
+ case 1:
3103
+ message.hideRecords.push(types_1.HideRecord.decode(reader, reader.uint32()));
3104
+ break;
3105
+ case 2:
3106
+ message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
3107
+ break;
3108
+ default:
3109
+ reader.skipType(tag & 7);
3110
+ break;
3111
+ }
3112
+ }
3113
+ return message;
3114
+ },
3115
+ fromPartial(object) {
3116
+ const message = createBaseQueryHideRecordsBySentinelResponse();
3117
+ message.hideRecords = object.hideRecords?.map(e => types_1.HideRecord.fromPartial(e)) || [];
3118
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
3119
+ return message;
3120
+ },
3121
+ fromAmino(object) {
3122
+ const message = createBaseQueryHideRecordsBySentinelResponse();
3123
+ message.hideRecords = object.hide_records?.map(e => types_1.HideRecord.fromAmino(e)) || [];
3124
+ if (object.pagination !== undefined && object.pagination !== null) {
3125
+ message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
3126
+ }
3127
+ return message;
3128
+ },
3129
+ toAmino(message) {
3130
+ const obj = {};
3131
+ if (message.hideRecords) {
3132
+ obj.hide_records = message.hideRecords.map(e => e ? types_1.HideRecord.toAmino(e) : undefined);
3133
+ }
3134
+ else {
3135
+ obj.hide_records = message.hideRecords;
3136
+ }
3137
+ obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
3138
+ return obj;
3139
+ },
3140
+ fromAminoMsg(object) {
3141
+ return exports.QueryHideRecordsBySentinelResponse.fromAmino(object.value);
3142
+ },
3143
+ fromProtoMsg(message) {
3144
+ return exports.QueryHideRecordsBySentinelResponse.decode(message.value);
3145
+ },
3146
+ toProto(message) {
3147
+ return exports.QueryHideRecordsBySentinelResponse.encode(message).finish();
3148
+ },
3149
+ toProtoMsg(message) {
3150
+ return {
3151
+ typeUrl: "/sparkdream.collect.v1.QueryHideRecordsBySentinelResponse",
3152
+ value: exports.QueryHideRecordsBySentinelResponse.encode(message).finish()
3153
+ };
3154
+ }
3155
+ };
2990
3156
  function createBaseQueryPendingCollectionsRequest() {
2991
3157
  return {
2992
3158
  pagination: undefined
@@ -1,5 +1,5 @@
1
1
  import { LCDClient } from "@cosmology/lcd";
2
- import { QueryParamsRequest, QueryParamsResponse, QueryCollectionRequest, QueryCollectionResponse, QueryCollectionsByOwnerRequest, QueryCollectionsByOwnerResponse, QueryPublicCollectionsRequest, QueryPublicCollectionsResponse, QueryPublicCollectionsByTypeRequest, QueryPublicCollectionsByTypeResponse, QueryCollectionsByCollaboratorRequest, QueryCollectionsByCollaboratorResponse, QueryItemRequest, QueryItemResponse, QueryItemsRequest, QueryItemsResponse, QueryItemsByOwnerRequest, QueryItemsByOwnerResponse, QueryCollaboratorsRequest, QueryCollaboratorsResponse, QueryCuratorActivityRequest, QueryCuratorActivityResponse, QueryCurationSummaryRequest, QueryCurationSummaryResponse, QueryCurationReviewsRequest, QueryCurationReviewsResponse, QueryCurationReviewsByCuratorRequest, QueryCurationReviewsByCuratorResponse, QuerySponsorshipRequestRequest, QuerySponsorshipRequestResponse, QuerySponsorshipRequestsRequest, QuerySponsorshipRequestsResponse, QueryContentFlagRequest, QueryContentFlagResponse, QueryFlaggedContentRequest, QueryFlaggedContentResponse, QueryHideRecordRequest, QueryHideRecordResponse, QueryHideRecordsByTargetRequest, QueryHideRecordsByTargetResponse, QueryPendingCollectionsRequest, QueryPendingCollectionsResponse, QueryEndorsementRequest, QueryEndorsementResponse, QueryCollectionsByContentRequest, QueryCollectionsByContentResponse, QueryCollectionConvictionRequest, QueryCollectionConvictionResponse, QueryListCollectionsByTagRequest, QueryListCollectionsByTagResponse } from "./query";
2
+ import { QueryParamsRequest, QueryParamsResponse, QueryCollectionRequest, QueryCollectionResponse, QueryCollectionsByOwnerRequest, QueryCollectionsByOwnerResponse, QueryPublicCollectionsRequest, QueryPublicCollectionsResponse, QueryPublicCollectionsByTypeRequest, QueryPublicCollectionsByTypeResponse, QueryCollectionsByCollaboratorRequest, QueryCollectionsByCollaboratorResponse, QueryItemRequest, QueryItemResponse, QueryItemsRequest, QueryItemsResponse, QueryItemsByOwnerRequest, QueryItemsByOwnerResponse, QueryCollaboratorsRequest, QueryCollaboratorsResponse, QueryCuratorActivityRequest, QueryCuratorActivityResponse, QueryCurationSummaryRequest, QueryCurationSummaryResponse, QueryCurationReviewsRequest, QueryCurationReviewsResponse, QueryCurationReviewsByCuratorRequest, QueryCurationReviewsByCuratorResponse, QuerySponsorshipRequestRequest, QuerySponsorshipRequestResponse, QuerySponsorshipRequestsRequest, QuerySponsorshipRequestsResponse, QueryContentFlagRequest, QueryContentFlagResponse, QueryFlaggedContentRequest, QueryFlaggedContentResponse, QueryHideRecordRequest, QueryHideRecordResponse, QueryHideRecordsByTargetRequest, QueryHideRecordsByTargetResponse, QueryHideRecordsBySentinelRequest, QueryHideRecordsBySentinelResponse, QueryPendingCollectionsRequest, QueryPendingCollectionsResponse, QueryEndorsementRequest, QueryEndorsementResponse, QueryCollectionsByContentRequest, QueryCollectionsByContentResponse, QueryCollectionConvictionRequest, QueryCollectionConvictionResponse, QueryListCollectionsByTagRequest, QueryListCollectionsByTagResponse } from "./query";
3
3
  export declare class LCDQueryClient {
4
4
  req: LCDClient;
5
5
  constructor({ requestClient }: {
@@ -25,6 +25,7 @@ export declare class LCDQueryClient {
25
25
  flaggedContent: (params?: QueryFlaggedContentRequest) => Promise<QueryFlaggedContentResponse>;
26
26
  hideRecord: (params: QueryHideRecordRequest) => Promise<QueryHideRecordResponse>;
27
27
  hideRecordsByTarget: (params: QueryHideRecordsByTargetRequest) => Promise<QueryHideRecordsByTargetResponse>;
28
+ hideRecordsBySentinel: (params: QueryHideRecordsBySentinelRequest) => Promise<QueryHideRecordsBySentinelResponse>;
28
29
  pendingCollections: (params?: QueryPendingCollectionsRequest) => Promise<QueryPendingCollectionsResponse>;
29
30
  endorsement: (params: QueryEndorsementRequest) => Promise<QueryEndorsementResponse>;
30
31
  collectionsByContent: (params: QueryCollectionsByContentRequest) => Promise<QueryCollectionsByContentResponse>;
@@ -176,6 +176,17 @@ class LCDQueryClient {
176
176
  const endpoint = `sparkdream/collect/v1/hide_records_by_target/${params.targetId}/${params.targetType}`;
177
177
  return await this.req.get(endpoint);
178
178
  };
179
+ /* HideRecordsBySentinel Queries hide records created by a given sentinel. */
180
+ hideRecordsBySentinel = async (params) => {
181
+ const options = {
182
+ params: {}
183
+ };
184
+ if (typeof params?.pagination !== "undefined") {
185
+ (0, helpers_1.setPaginationParams)(options, params.pagination);
186
+ }
187
+ const endpoint = `sparkdream/collect/v1/hide_records_by_sentinel/${params.sentinel}`;
188
+ return await this.req.get(endpoint, options);
189
+ };
179
190
  /* PendingCollections Queries a list of PendingCollections items. */
180
191
  pendingCollections = async (params = {
181
192
  pagination: undefined
@@ -1,6 +1,6 @@
1
1
  import { TxRpc } from "../../../types";
2
2
  import { QueryClient } from "@cosmjs/stargate";
3
- import { QueryParamsRequest, QueryParamsResponse, QueryCollectionRequest, QueryCollectionResponse, QueryCollectionsByOwnerRequest, QueryCollectionsByOwnerResponse, QueryPublicCollectionsRequest, QueryPublicCollectionsResponse, QueryPublicCollectionsByTypeRequest, QueryPublicCollectionsByTypeResponse, QueryCollectionsByCollaboratorRequest, QueryCollectionsByCollaboratorResponse, QueryItemRequest, QueryItemResponse, QueryItemsRequest, QueryItemsResponse, QueryItemsByOwnerRequest, QueryItemsByOwnerResponse, QueryCollaboratorsRequest, QueryCollaboratorsResponse, QueryCuratorActivityRequest, QueryCuratorActivityResponse, QueryCurationSummaryRequest, QueryCurationSummaryResponse, QueryCurationReviewsRequest, QueryCurationReviewsResponse, QueryCurationReviewsByCuratorRequest, QueryCurationReviewsByCuratorResponse, QuerySponsorshipRequestRequest, QuerySponsorshipRequestResponse, QuerySponsorshipRequestsRequest, QuerySponsorshipRequestsResponse, QueryContentFlagRequest, QueryContentFlagResponse, QueryFlaggedContentRequest, QueryFlaggedContentResponse, QueryHideRecordRequest, QueryHideRecordResponse, QueryHideRecordsByTargetRequest, QueryHideRecordsByTargetResponse, QueryPendingCollectionsRequest, QueryPendingCollectionsResponse, QueryEndorsementRequest, QueryEndorsementResponse, QueryCollectionsByContentRequest, QueryCollectionsByContentResponse, QueryCollectionConvictionRequest, QueryCollectionConvictionResponse, QueryListCollectionsByTagRequest, QueryListCollectionsByTagResponse } from "./query";
3
+ import { QueryParamsRequest, QueryParamsResponse, QueryCollectionRequest, QueryCollectionResponse, QueryCollectionsByOwnerRequest, QueryCollectionsByOwnerResponse, QueryPublicCollectionsRequest, QueryPublicCollectionsResponse, QueryPublicCollectionsByTypeRequest, QueryPublicCollectionsByTypeResponse, QueryCollectionsByCollaboratorRequest, QueryCollectionsByCollaboratorResponse, QueryItemRequest, QueryItemResponse, QueryItemsRequest, QueryItemsResponse, QueryItemsByOwnerRequest, QueryItemsByOwnerResponse, QueryCollaboratorsRequest, QueryCollaboratorsResponse, QueryCuratorActivityRequest, QueryCuratorActivityResponse, QueryCurationSummaryRequest, QueryCurationSummaryResponse, QueryCurationReviewsRequest, QueryCurationReviewsResponse, QueryCurationReviewsByCuratorRequest, QueryCurationReviewsByCuratorResponse, QuerySponsorshipRequestRequest, QuerySponsorshipRequestResponse, QuerySponsorshipRequestsRequest, QuerySponsorshipRequestsResponse, QueryContentFlagRequest, QueryContentFlagResponse, QueryFlaggedContentRequest, QueryFlaggedContentResponse, QueryHideRecordRequest, QueryHideRecordResponse, QueryHideRecordsByTargetRequest, QueryHideRecordsByTargetResponse, QueryHideRecordsBySentinelRequest, QueryHideRecordsBySentinelResponse, QueryPendingCollectionsRequest, QueryPendingCollectionsResponse, QueryEndorsementRequest, QueryEndorsementResponse, QueryCollectionsByContentRequest, QueryCollectionsByContentResponse, QueryCollectionConvictionRequest, QueryCollectionConvictionResponse, QueryListCollectionsByTagRequest, QueryListCollectionsByTagResponse } from "./query";
4
4
  /** Query defines the gRPC querier service. */
5
5
  export interface Query {
6
6
  params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
@@ -32,6 +32,8 @@ export interface Query {
32
32
  hideRecord(request: QueryHideRecordRequest): Promise<QueryHideRecordResponse>;
33
33
  /** HideRecordsByTarget Queries a list of HideRecordsByTarget items. */
34
34
  hideRecordsByTarget(request: QueryHideRecordsByTargetRequest): Promise<QueryHideRecordsByTargetResponse>;
35
+ /** HideRecordsBySentinel Queries hide records created by a given sentinel. */
36
+ hideRecordsBySentinel(request: QueryHideRecordsBySentinelRequest): Promise<QueryHideRecordsBySentinelResponse>;
35
37
  /** PendingCollections Queries a list of PendingCollections items. */
36
38
  pendingCollections(request?: QueryPendingCollectionsRequest): Promise<QueryPendingCollectionsResponse>;
37
39
  /** Endorsement Queries a list of Endorsement items. */
@@ -72,6 +74,7 @@ export declare class QueryClientImpl implements Query {
72
74
  flaggedContent: (request?: QueryFlaggedContentRequest) => Promise<QueryFlaggedContentResponse>;
73
75
  hideRecord: (request: QueryHideRecordRequest) => Promise<QueryHideRecordResponse>;
74
76
  hideRecordsByTarget: (request: QueryHideRecordsByTargetRequest) => Promise<QueryHideRecordsByTargetResponse>;
77
+ hideRecordsBySentinel: (request: QueryHideRecordsBySentinelRequest) => Promise<QueryHideRecordsBySentinelResponse>;
75
78
  pendingCollections: (request?: QueryPendingCollectionsRequest) => Promise<QueryPendingCollectionsResponse>;
76
79
  endorsement: (request: QueryEndorsementRequest) => Promise<QueryEndorsementResponse>;
77
80
  collectionsByContent: (request: QueryCollectionsByContentRequest) => Promise<QueryCollectionsByContentResponse>;
@@ -99,6 +102,7 @@ export declare const createRpcQueryExtension: (base: QueryClient) => {
99
102
  flaggedContent(request?: QueryFlaggedContentRequest): Promise<QueryFlaggedContentResponse>;
100
103
  hideRecord(request: QueryHideRecordRequest): Promise<QueryHideRecordResponse>;
101
104
  hideRecordsByTarget(request: QueryHideRecordsByTargetRequest): Promise<QueryHideRecordsByTargetResponse>;
105
+ hideRecordsBySentinel(request: QueryHideRecordsBySentinelRequest): Promise<QueryHideRecordsBySentinelResponse>;
102
106
  pendingCollections(request?: QueryPendingCollectionsRequest): Promise<QueryPendingCollectionsResponse>;
103
107
  endorsement(request: QueryEndorsementRequest): Promise<QueryEndorsementResponse>;
104
108
  collectionsByContent(request: QueryCollectionsByContentRequest): Promise<QueryCollectionsByContentResponse>;
@@ -137,6 +137,12 @@ class QueryClientImpl {
137
137
  const promise = this.rpc.request("sparkdream.collect.v1.Query", "HideRecordsByTarget", data);
138
138
  return promise.then(data => query_1.QueryHideRecordsByTargetResponse.decode(new binary_1.BinaryReader(data)));
139
139
  };
140
+ /* HideRecordsBySentinel Queries hide records created by a given sentinel. */
141
+ hideRecordsBySentinel = async (request) => {
142
+ const data = query_1.QueryHideRecordsBySentinelRequest.encode(request).finish();
143
+ const promise = this.rpc.request("sparkdream.collect.v1.Query", "HideRecordsBySentinel", data);
144
+ return promise.then(data => query_1.QueryHideRecordsBySentinelResponse.decode(new binary_1.BinaryReader(data)));
145
+ };
140
146
  /* PendingCollections Queries a list of PendingCollections items. */
141
147
  pendingCollections = async (request = {
142
148
  pagination: undefined
@@ -237,6 +243,9 @@ const createRpcQueryExtension = (base) => {
237
243
  hideRecordsByTarget(request) {
238
244
  return queryService.hideRecordsByTarget(request);
239
245
  },
246
+ hideRecordsBySentinel(request) {
247
+ return queryService.hideRecordsBySentinel(request);
248
+ },
240
249
  pendingCollections(request) {
241
250
  return queryService.pendingCollections(request);
242
251
  },