@sparkdreamnft/sparkdreamjs 0.0.18 → 0.0.20

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 (66) hide show
  1. package/esm/sparkdream/blog/v1/params.js +62 -2
  2. package/esm/sparkdream/blog/v1/tx.js +583 -2
  3. package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
  4. package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
  5. package/esm/sparkdream/collect/v1/params.js +109 -1
  6. package/esm/sparkdream/collect/v1/tx.js +293 -1
  7. package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
  8. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
  9. package/esm/sparkdream/collect/v1/types.js +135 -3
  10. package/esm/sparkdream/forum/v1/params.js +218 -2
  11. package/esm/sparkdream/forum/v1/post.js +25 -1
  12. package/esm/sparkdream/forum/v1/query.js +469 -0
  13. package/esm/sparkdream/forum/v1/query.lcd.js +30 -0
  14. package/esm/sparkdream/forum/v1/query.rpc.Query.js +31 -1
  15. package/esm/sparkdream/forum/v1/tx.js +460 -0
  16. package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
  17. package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
  18. package/esm/sparkdream/forum/v1/types.js +355 -0
  19. package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
  20. package/esm/sparkdream/rep/v1/member.js +209 -1
  21. package/esm/sparkdream/rep/v1/query.js +13 -22
  22. package/package.json +1 -1
  23. package/sparkdream/blog/v1/params.d.ts +52 -0
  24. package/sparkdream/blog/v1/params.js +62 -2
  25. package/sparkdream/blog/v1/tx.d.ts +381 -6
  26. package/sparkdream/blog/v1/tx.js +584 -3
  27. package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
  28. package/sparkdream/blog/v1/tx.registry.js +73 -1
  29. package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
  30. package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
  31. package/sparkdream/bundle.d.ts +474 -0
  32. package/sparkdream/collect/v1/params.d.ts +124 -0
  33. package/sparkdream/collect/v1/params.js +109 -1
  34. package/sparkdream/collect/v1/tx.d.ts +195 -3
  35. package/sparkdream/collect/v1/tx.js +294 -2
  36. package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
  37. package/sparkdream/collect/v1/tx.registry.js +37 -1
  38. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
  39. package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
  40. package/sparkdream/collect/v1/types.d.ts +112 -0
  41. package/sparkdream/collect/v1/types.js +135 -3
  42. package/sparkdream/forum/v1/params.d.ts +210 -0
  43. package/sparkdream/forum/v1/params.js +218 -2
  44. package/sparkdream/forum/v1/post.d.ts +28 -0
  45. package/sparkdream/forum/v1/post.js +25 -1
  46. package/sparkdream/forum/v1/query.d.ts +273 -0
  47. package/sparkdream/forum/v1/query.js +470 -1
  48. package/sparkdream/forum/v1/query.lcd.d.ts +4 -1
  49. package/sparkdream/forum/v1/query.lcd.js +30 -0
  50. package/sparkdream/forum/v1/query.rpc.Query.d.ts +18 -1
  51. package/sparkdream/forum/v1/query.rpc.Query.js +30 -0
  52. package/sparkdream/forum/v1/tx.d.ts +291 -0
  53. package/sparkdream/forum/v1/tx.js +462 -2
  54. package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
  55. package/sparkdream/forum/v1/tx.registry.js +55 -1
  56. package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
  57. package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
  58. package/sparkdream/forum/v1/types.d.ts +247 -0
  59. package/sparkdream/forum/v1/types.js +356 -1
  60. package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
  61. package/sparkdream/forum/v1/user_rate_limit.js +41 -2
  62. package/sparkdream/rep/v1/member.d.ts +134 -0
  63. package/sparkdream/rep/v1/member.js +210 -2
  64. package/sparkdream/rep/v1/query.d.ts +2 -4
  65. package/sparkdream/rep/v1/query.js +13 -22
  66. package/sparkdream/rpc.query.d.ts +3 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MsgEndorseCollectionResponse = exports.MsgEndorseCollection = exports.MsgAppealHideResponse = exports.MsgAppealHide = exports.MsgHideContentResponse = exports.MsgHideContent = exports.MsgFlagContentResponse = exports.MsgFlagContent = exports.MsgDownvoteContentResponse = exports.MsgDownvoteContent = exports.MsgUpvoteContentResponse = exports.MsgUpvoteContent = exports.MsgUpdateOperationalParamsResponse = exports.MsgUpdateOperationalParams = exports.MsgSponsorCollectionResponse = exports.MsgSponsorCollection = exports.MsgCancelSponsorshipRequestResponse = exports.MsgCancelSponsorshipRequest = exports.MsgRequestSponsorshipResponse = exports.MsgRequestSponsorship = exports.MsgChallengeReviewResponse = exports.MsgChallengeReview = exports.MsgRateCollectionResponse = exports.MsgRateCollection = exports.MsgUpdateCollaboratorRoleResponse = exports.MsgUpdateCollaboratorRole = exports.MsgRemoveCollaboratorResponse = exports.MsgRemoveCollaborator = exports.MsgAddCollaboratorResponse = exports.MsgAddCollaborator = exports.MsgReorderItemResponse = exports.MsgReorderItem = exports.MsgRemoveItemsResponse = exports.MsgRemoveItems = exports.MsgRemoveItemResponse = exports.MsgRemoveItem = exports.MsgUpdateItemResponse = exports.MsgUpdateItem = exports.MsgAddItemsResponse = exports.MsgAddItems = exports.MsgAddItemResponse = exports.MsgAddItem = exports.MsgDeleteCollectionResponse = exports.MsgDeleteCollection = exports.MsgUpdateCollectionResponse = exports.MsgUpdateCollection = exports.MsgCreateCollectionResponse = exports.MsgCreateCollection = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
4
- exports.MsgPinCollectionResponse = exports.MsgPinCollection = exports.MsgSetSeekingEndorsementResponse = exports.MsgSetSeekingEndorsement = void 0;
4
+ exports.MsgMakeCollectionPermanentResponse = exports.MsgMakeCollectionPermanent = exports.MsgUnpinCollectionResponse = exports.MsgUnpinCollection = exports.MsgPinCollectionResponse = exports.MsgPinCollection = exports.MsgSetSeekingEndorsementResponse = exports.MsgSetSeekingEndorsement = void 0;
5
5
  //@ts-nocheck
6
6
  const params_1 = require("./params");
7
7
  const types_1 = require("./types");
@@ -4550,7 +4550,9 @@ function createBaseMsgPinCollection() {
4550
4550
  };
4551
4551
  }
4552
4552
  /**
4553
- * MsgPinCollection makes an ephemeral collection permanent by burning its deposits.
4553
+ * MsgPinCollection sets the display-only pinned marker on a permanent
4554
+ * collection. Rejects ephemeral targets with ErrCannotPinEphemeral —
4555
+ * callers must promote via MsgMakeCollectionPermanent first.
4554
4556
  * @name MsgPinCollection
4555
4557
  * @package sparkdream.collect.v1
4556
4558
  * @see proto type: sparkdream.collect.v1.MsgPinCollection
@@ -4686,3 +4688,293 @@ exports.MsgPinCollectionResponse = {
4686
4688
  };
4687
4689
  }
4688
4690
  };
4691
+ function createBaseMsgUnpinCollection() {
4692
+ return {
4693
+ creator: "",
4694
+ collectionId: BigInt(0)
4695
+ };
4696
+ }
4697
+ /**
4698
+ * MsgUnpinCollection clears the display-only pinned marker. Idempotent on
4699
+ * already-unpinned collections.
4700
+ * @name MsgUnpinCollection
4701
+ * @package sparkdream.collect.v1
4702
+ * @see proto type: sparkdream.collect.v1.MsgUnpinCollection
4703
+ */
4704
+ exports.MsgUnpinCollection = {
4705
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollection",
4706
+ aminoType: "sparkdream/x/collect/MsgUnpinCollection",
4707
+ encode(message, writer = binary_1.BinaryWriter.create()) {
4708
+ if (message.creator !== "") {
4709
+ writer.uint32(10).string(message.creator);
4710
+ }
4711
+ if (message.collectionId !== BigInt(0)) {
4712
+ writer.uint32(16).uint64(message.collectionId);
4713
+ }
4714
+ return writer;
4715
+ },
4716
+ decode(input, length) {
4717
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
4718
+ let end = length === undefined ? reader.len : reader.pos + length;
4719
+ const message = createBaseMsgUnpinCollection();
4720
+ while (reader.pos < end) {
4721
+ const tag = reader.uint32();
4722
+ switch (tag >>> 3) {
4723
+ case 1:
4724
+ message.creator = reader.string();
4725
+ break;
4726
+ case 2:
4727
+ message.collectionId = reader.uint64();
4728
+ break;
4729
+ default:
4730
+ reader.skipType(tag & 7);
4731
+ break;
4732
+ }
4733
+ }
4734
+ return message;
4735
+ },
4736
+ fromPartial(object) {
4737
+ const message = createBaseMsgUnpinCollection();
4738
+ message.creator = object.creator ?? "";
4739
+ message.collectionId = object.collectionId !== undefined && object.collectionId !== null ? BigInt(object.collectionId.toString()) : BigInt(0);
4740
+ return message;
4741
+ },
4742
+ fromAmino(object) {
4743
+ const message = createBaseMsgUnpinCollection();
4744
+ if (object.creator !== undefined && object.creator !== null) {
4745
+ message.creator = object.creator;
4746
+ }
4747
+ if (object.collection_id !== undefined && object.collection_id !== null) {
4748
+ message.collectionId = BigInt(object.collection_id);
4749
+ }
4750
+ return message;
4751
+ },
4752
+ toAmino(message) {
4753
+ const obj = {};
4754
+ obj.creator = message.creator === "" ? undefined : message.creator;
4755
+ obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
4756
+ return obj;
4757
+ },
4758
+ fromAminoMsg(object) {
4759
+ return exports.MsgUnpinCollection.fromAmino(object.value);
4760
+ },
4761
+ toAminoMsg(message) {
4762
+ return {
4763
+ type: "sparkdream/x/collect/MsgUnpinCollection",
4764
+ value: exports.MsgUnpinCollection.toAmino(message)
4765
+ };
4766
+ },
4767
+ fromProtoMsg(message) {
4768
+ return exports.MsgUnpinCollection.decode(message.value);
4769
+ },
4770
+ toProto(message) {
4771
+ return exports.MsgUnpinCollection.encode(message).finish();
4772
+ },
4773
+ toProtoMsg(message) {
4774
+ return {
4775
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollection",
4776
+ value: exports.MsgUnpinCollection.encode(message).finish()
4777
+ };
4778
+ }
4779
+ };
4780
+ function createBaseMsgUnpinCollectionResponse() {
4781
+ return {};
4782
+ }
4783
+ /**
4784
+ * @name MsgUnpinCollectionResponse
4785
+ * @package sparkdream.collect.v1
4786
+ * @see proto type: sparkdream.collect.v1.MsgUnpinCollectionResponse
4787
+ */
4788
+ exports.MsgUnpinCollectionResponse = {
4789
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollectionResponse",
4790
+ encode(_, writer = binary_1.BinaryWriter.create()) {
4791
+ return writer;
4792
+ },
4793
+ decode(input, length) {
4794
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
4795
+ let end = length === undefined ? reader.len : reader.pos + length;
4796
+ const message = createBaseMsgUnpinCollectionResponse();
4797
+ while (reader.pos < end) {
4798
+ const tag = reader.uint32();
4799
+ switch (tag >>> 3) {
4800
+ default:
4801
+ reader.skipType(tag & 7);
4802
+ break;
4803
+ }
4804
+ }
4805
+ return message;
4806
+ },
4807
+ fromPartial(_) {
4808
+ const message = createBaseMsgUnpinCollectionResponse();
4809
+ return message;
4810
+ },
4811
+ fromAmino(_) {
4812
+ const message = createBaseMsgUnpinCollectionResponse();
4813
+ return message;
4814
+ },
4815
+ toAmino(_) {
4816
+ const obj = {};
4817
+ return obj;
4818
+ },
4819
+ fromAminoMsg(object) {
4820
+ return exports.MsgUnpinCollectionResponse.fromAmino(object.value);
4821
+ },
4822
+ fromProtoMsg(message) {
4823
+ return exports.MsgUnpinCollectionResponse.decode(message.value);
4824
+ },
4825
+ toProto(message) {
4826
+ return exports.MsgUnpinCollectionResponse.encode(message).finish();
4827
+ },
4828
+ toProtoMsg(message) {
4829
+ return {
4830
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollectionResponse",
4831
+ value: exports.MsgUnpinCollectionResponse.encode(message).finish()
4832
+ };
4833
+ }
4834
+ };
4835
+ function createBaseMsgMakeCollectionPermanent() {
4836
+ return {
4837
+ creator: "",
4838
+ collectionId: BigInt(0)
4839
+ };
4840
+ }
4841
+ /**
4842
+ * MsgMakeCollectionPermanent promotes an ephemeral collection to permanent
4843
+ * by burning the escrowed collection + item deposits. Gated on
4844
+ * params.make_permanent_min_trust_level. Idempotent on already-permanent
4845
+ * collections.
4846
+ * @name MsgMakeCollectionPermanent
4847
+ * @package sparkdream.collect.v1
4848
+ * @see proto type: sparkdream.collect.v1.MsgMakeCollectionPermanent
4849
+ */
4850
+ exports.MsgMakeCollectionPermanent = {
4851
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
4852
+ aminoType: "sparkdream/x/collect/MsgMakeCollectionPermanent",
4853
+ encode(message, writer = binary_1.BinaryWriter.create()) {
4854
+ if (message.creator !== "") {
4855
+ writer.uint32(10).string(message.creator);
4856
+ }
4857
+ if (message.collectionId !== BigInt(0)) {
4858
+ writer.uint32(16).uint64(message.collectionId);
4859
+ }
4860
+ return writer;
4861
+ },
4862
+ decode(input, length) {
4863
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
4864
+ let end = length === undefined ? reader.len : reader.pos + length;
4865
+ const message = createBaseMsgMakeCollectionPermanent();
4866
+ while (reader.pos < end) {
4867
+ const tag = reader.uint32();
4868
+ switch (tag >>> 3) {
4869
+ case 1:
4870
+ message.creator = reader.string();
4871
+ break;
4872
+ case 2:
4873
+ message.collectionId = reader.uint64();
4874
+ break;
4875
+ default:
4876
+ reader.skipType(tag & 7);
4877
+ break;
4878
+ }
4879
+ }
4880
+ return message;
4881
+ },
4882
+ fromPartial(object) {
4883
+ const message = createBaseMsgMakeCollectionPermanent();
4884
+ message.creator = object.creator ?? "";
4885
+ message.collectionId = object.collectionId !== undefined && object.collectionId !== null ? BigInt(object.collectionId.toString()) : BigInt(0);
4886
+ return message;
4887
+ },
4888
+ fromAmino(object) {
4889
+ const message = createBaseMsgMakeCollectionPermanent();
4890
+ if (object.creator !== undefined && object.creator !== null) {
4891
+ message.creator = object.creator;
4892
+ }
4893
+ if (object.collection_id !== undefined && object.collection_id !== null) {
4894
+ message.collectionId = BigInt(object.collection_id);
4895
+ }
4896
+ return message;
4897
+ },
4898
+ toAmino(message) {
4899
+ const obj = {};
4900
+ obj.creator = message.creator === "" ? undefined : message.creator;
4901
+ obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
4902
+ return obj;
4903
+ },
4904
+ fromAminoMsg(object) {
4905
+ return exports.MsgMakeCollectionPermanent.fromAmino(object.value);
4906
+ },
4907
+ toAminoMsg(message) {
4908
+ return {
4909
+ type: "sparkdream/x/collect/MsgMakeCollectionPermanent",
4910
+ value: exports.MsgMakeCollectionPermanent.toAmino(message)
4911
+ };
4912
+ },
4913
+ fromProtoMsg(message) {
4914
+ return exports.MsgMakeCollectionPermanent.decode(message.value);
4915
+ },
4916
+ toProto(message) {
4917
+ return exports.MsgMakeCollectionPermanent.encode(message).finish();
4918
+ },
4919
+ toProtoMsg(message) {
4920
+ return {
4921
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
4922
+ value: exports.MsgMakeCollectionPermanent.encode(message).finish()
4923
+ };
4924
+ }
4925
+ };
4926
+ function createBaseMsgMakeCollectionPermanentResponse() {
4927
+ return {};
4928
+ }
4929
+ /**
4930
+ * @name MsgMakeCollectionPermanentResponse
4931
+ * @package sparkdream.collect.v1
4932
+ * @see proto type: sparkdream.collect.v1.MsgMakeCollectionPermanentResponse
4933
+ */
4934
+ exports.MsgMakeCollectionPermanentResponse = {
4935
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanentResponse",
4936
+ encode(_, writer = binary_1.BinaryWriter.create()) {
4937
+ return writer;
4938
+ },
4939
+ decode(input, length) {
4940
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
4941
+ let end = length === undefined ? reader.len : reader.pos + length;
4942
+ const message = createBaseMsgMakeCollectionPermanentResponse();
4943
+ while (reader.pos < end) {
4944
+ const tag = reader.uint32();
4945
+ switch (tag >>> 3) {
4946
+ default:
4947
+ reader.skipType(tag & 7);
4948
+ break;
4949
+ }
4950
+ }
4951
+ return message;
4952
+ },
4953
+ fromPartial(_) {
4954
+ const message = createBaseMsgMakeCollectionPermanentResponse();
4955
+ return message;
4956
+ },
4957
+ fromAmino(_) {
4958
+ const message = createBaseMsgMakeCollectionPermanentResponse();
4959
+ return message;
4960
+ },
4961
+ toAmino(_) {
4962
+ const obj = {};
4963
+ return obj;
4964
+ },
4965
+ fromAminoMsg(object) {
4966
+ return exports.MsgMakeCollectionPermanentResponse.fromAmino(object.value);
4967
+ },
4968
+ fromProtoMsg(message) {
4969
+ return exports.MsgMakeCollectionPermanentResponse.decode(message.value);
4970
+ },
4971
+ toProto(message) {
4972
+ return exports.MsgMakeCollectionPermanentResponse.encode(message).finish();
4973
+ },
4974
+ toProtoMsg(message) {
4975
+ return {
4976
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanentResponse",
4977
+ value: exports.MsgMakeCollectionPermanentResponse.encode(message).finish()
4978
+ };
4979
+ }
4980
+ };
@@ -1,6 +1,6 @@
1
1
  import { TelescopeGeneratedType } from "../../../types";
2
2
  import { Registry } from "@cosmjs/proto-signing";
3
- 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 } from "./tx";
3
+ 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";
4
4
  export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
5
5
  export declare const load: (protoRegistry: Registry) => void;
6
6
  export declare const MessageComposer: {
@@ -113,6 +113,14 @@ export declare const MessageComposer: {
113
113
  typeUrl: string;
114
114
  value: Uint8Array<ArrayBufferLike>;
115
115
  };
116
+ unpinCollection(value: MsgUnpinCollection): {
117
+ typeUrl: string;
118
+ value: Uint8Array<ArrayBufferLike>;
119
+ };
120
+ makeCollectionPermanent(value: MsgMakeCollectionPermanent): {
121
+ typeUrl: string;
122
+ value: Uint8Array<ArrayBufferLike>;
123
+ };
116
124
  };
117
125
  withTypeUrl: {
118
126
  updateParams(value: MsgUpdateParams): {
@@ -223,6 +231,14 @@ export declare const MessageComposer: {
223
231
  typeUrl: string;
224
232
  value: MsgPinCollection;
225
233
  };
234
+ unpinCollection(value: MsgUnpinCollection): {
235
+ typeUrl: string;
236
+ value: MsgUnpinCollection;
237
+ };
238
+ makeCollectionPermanent(value: MsgMakeCollectionPermanent): {
239
+ typeUrl: string;
240
+ value: MsgMakeCollectionPermanent;
241
+ };
226
242
  };
227
243
  fromPartial: {
228
244
  updateParams(value: MsgUpdateParams): {
@@ -333,5 +349,13 @@ export declare const MessageComposer: {
333
349
  typeUrl: string;
334
350
  value: MsgPinCollection;
335
351
  };
352
+ unpinCollection(value: MsgUnpinCollection): {
353
+ typeUrl: string;
354
+ value: MsgUnpinCollection;
355
+ };
356
+ makeCollectionPermanent(value: MsgMakeCollectionPermanent): {
357
+ typeUrl: string;
358
+ value: MsgMakeCollectionPermanent;
359
+ };
336
360
  };
337
361
  };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MessageComposer = exports.load = exports.registry = void 0;
4
4
  const tx_1 = require("./tx");
5
- exports.registry = [["/sparkdream.collect.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.collect.v1.MsgCreateCollection", tx_1.MsgCreateCollection], ["/sparkdream.collect.v1.MsgUpdateCollection", tx_1.MsgUpdateCollection], ["/sparkdream.collect.v1.MsgDeleteCollection", tx_1.MsgDeleteCollection], ["/sparkdream.collect.v1.MsgAddItem", tx_1.MsgAddItem], ["/sparkdream.collect.v1.MsgAddItems", tx_1.MsgAddItems], ["/sparkdream.collect.v1.MsgUpdateItem", tx_1.MsgUpdateItem], ["/sparkdream.collect.v1.MsgRemoveItem", tx_1.MsgRemoveItem], ["/sparkdream.collect.v1.MsgRemoveItems", tx_1.MsgRemoveItems], ["/sparkdream.collect.v1.MsgReorderItem", tx_1.MsgReorderItem], ["/sparkdream.collect.v1.MsgAddCollaborator", tx_1.MsgAddCollaborator], ["/sparkdream.collect.v1.MsgRemoveCollaborator", tx_1.MsgRemoveCollaborator], ["/sparkdream.collect.v1.MsgUpdateCollaboratorRole", tx_1.MsgUpdateCollaboratorRole], ["/sparkdream.collect.v1.MsgRateCollection", tx_1.MsgRateCollection], ["/sparkdream.collect.v1.MsgChallengeReview", tx_1.MsgChallengeReview], ["/sparkdream.collect.v1.MsgRequestSponsorship", tx_1.MsgRequestSponsorship], ["/sparkdream.collect.v1.MsgCancelSponsorshipRequest", tx_1.MsgCancelSponsorshipRequest], ["/sparkdream.collect.v1.MsgSponsorCollection", tx_1.MsgSponsorCollection], ["/sparkdream.collect.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.collect.v1.MsgUpvoteContent", tx_1.MsgUpvoteContent], ["/sparkdream.collect.v1.MsgDownvoteContent", tx_1.MsgDownvoteContent], ["/sparkdream.collect.v1.MsgFlagContent", tx_1.MsgFlagContent], ["/sparkdream.collect.v1.MsgHideContent", tx_1.MsgHideContent], ["/sparkdream.collect.v1.MsgAppealHide", tx_1.MsgAppealHide], ["/sparkdream.collect.v1.MsgEndorseCollection", tx_1.MsgEndorseCollection], ["/sparkdream.collect.v1.MsgSetSeekingEndorsement", tx_1.MsgSetSeekingEndorsement], ["/sparkdream.collect.v1.MsgPinCollection", tx_1.MsgPinCollection]];
5
+ exports.registry = [["/sparkdream.collect.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.collect.v1.MsgCreateCollection", tx_1.MsgCreateCollection], ["/sparkdream.collect.v1.MsgUpdateCollection", tx_1.MsgUpdateCollection], ["/sparkdream.collect.v1.MsgDeleteCollection", tx_1.MsgDeleteCollection], ["/sparkdream.collect.v1.MsgAddItem", tx_1.MsgAddItem], ["/sparkdream.collect.v1.MsgAddItems", tx_1.MsgAddItems], ["/sparkdream.collect.v1.MsgUpdateItem", tx_1.MsgUpdateItem], ["/sparkdream.collect.v1.MsgRemoveItem", tx_1.MsgRemoveItem], ["/sparkdream.collect.v1.MsgRemoveItems", tx_1.MsgRemoveItems], ["/sparkdream.collect.v1.MsgReorderItem", tx_1.MsgReorderItem], ["/sparkdream.collect.v1.MsgAddCollaborator", tx_1.MsgAddCollaborator], ["/sparkdream.collect.v1.MsgRemoveCollaborator", tx_1.MsgRemoveCollaborator], ["/sparkdream.collect.v1.MsgUpdateCollaboratorRole", tx_1.MsgUpdateCollaboratorRole], ["/sparkdream.collect.v1.MsgRateCollection", tx_1.MsgRateCollection], ["/sparkdream.collect.v1.MsgChallengeReview", tx_1.MsgChallengeReview], ["/sparkdream.collect.v1.MsgRequestSponsorship", tx_1.MsgRequestSponsorship], ["/sparkdream.collect.v1.MsgCancelSponsorshipRequest", tx_1.MsgCancelSponsorshipRequest], ["/sparkdream.collect.v1.MsgSponsorCollection", tx_1.MsgSponsorCollection], ["/sparkdream.collect.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.collect.v1.MsgUpvoteContent", tx_1.MsgUpvoteContent], ["/sparkdream.collect.v1.MsgDownvoteContent", tx_1.MsgDownvoteContent], ["/sparkdream.collect.v1.MsgFlagContent", tx_1.MsgFlagContent], ["/sparkdream.collect.v1.MsgHideContent", tx_1.MsgHideContent], ["/sparkdream.collect.v1.MsgAppealHide", tx_1.MsgAppealHide], ["/sparkdream.collect.v1.MsgEndorseCollection", tx_1.MsgEndorseCollection], ["/sparkdream.collect.v1.MsgSetSeekingEndorsement", tx_1.MsgSetSeekingEndorsement], ["/sparkdream.collect.v1.MsgPinCollection", tx_1.MsgPinCollection], ["/sparkdream.collect.v1.MsgUnpinCollection", tx_1.MsgUnpinCollection], ["/sparkdream.collect.v1.MsgMakeCollectionPermanent", tx_1.MsgMakeCollectionPermanent]];
6
6
  const load = (protoRegistry) => {
7
7
  exports.registry.forEach(([typeUrl, mod]) => {
8
8
  protoRegistry.register(typeUrl, mod);
@@ -172,6 +172,18 @@ exports.MessageComposer = {
172
172
  typeUrl: "/sparkdream.collect.v1.MsgPinCollection",
173
173
  value: tx_1.MsgPinCollection.encode(value).finish()
174
174
  };
175
+ },
176
+ unpinCollection(value) {
177
+ return {
178
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollection",
179
+ value: tx_1.MsgUnpinCollection.encode(value).finish()
180
+ };
181
+ },
182
+ makeCollectionPermanent(value) {
183
+ return {
184
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
185
+ value: tx_1.MsgMakeCollectionPermanent.encode(value).finish()
186
+ };
175
187
  }
176
188
  },
177
189
  withTypeUrl: {
@@ -336,6 +348,18 @@ exports.MessageComposer = {
336
348
  typeUrl: "/sparkdream.collect.v1.MsgPinCollection",
337
349
  value
338
350
  };
351
+ },
352
+ unpinCollection(value) {
353
+ return {
354
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollection",
355
+ value
356
+ };
357
+ },
358
+ makeCollectionPermanent(value) {
359
+ return {
360
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
361
+ value
362
+ };
339
363
  }
340
364
  },
341
365
  fromPartial: {
@@ -500,6 +524,18 @@ exports.MessageComposer = {
500
524
  typeUrl: "/sparkdream.collect.v1.MsgPinCollection",
501
525
  value: tx_1.MsgPinCollection.fromPartial(value)
502
526
  };
527
+ },
528
+ unpinCollection(value) {
529
+ return {
530
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollection",
531
+ value: tx_1.MsgUnpinCollection.fromPartial(value)
532
+ };
533
+ },
534
+ makeCollectionPermanent(value) {
535
+ return {
536
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
537
+ value: tx_1.MsgMakeCollectionPermanent.fromPartial(value)
538
+ };
503
539
  }
504
540
  }
505
541
  };
@@ -1,5 +1,5 @@
1
1
  import { TxRpc } from "../../../types";
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 } 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 } from "./tx";
3
3
  /** Msg defines the Msg service. */
4
4
  export interface Msg {
5
5
  updateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
@@ -39,8 +39,19 @@ export interface Msg {
39
39
  endorseCollection(request: MsgEndorseCollection): Promise<MsgEndorseCollectionResponse>;
40
40
  /** SetSeekingEndorsement defines the SetSeekingEndorsement RPC. */
41
41
  setSeekingEndorsement(request: MsgSetSeekingEndorsement): Promise<MsgSetSeekingEndorsementResponse>;
42
- /** PinCollection makes an ephemeral collection permanent by burning its deposits. */
42
+ /**
43
+ * PinCollection sets the display-only pinned marker on a permanent collection.
44
+ * Rejects ephemeral targets; lifecycle promotion is owned by MsgMakeCollectionPermanent.
45
+ */
43
46
  pinCollection(request: MsgPinCollection): Promise<MsgPinCollectionResponse>;
47
+ /** UnpinCollection clears the display-only pinned marker. */
48
+ unpinCollection(request: MsgUnpinCollection): Promise<MsgUnpinCollectionResponse>;
49
+ /**
50
+ * MakeCollectionPermanent flips an ephemeral collection to permanent,
51
+ * burning its escrowed collection + item deposits. Gated on
52
+ * params.make_permanent_min_trust_level. Idempotent on permanent collections.
53
+ */
54
+ makeCollectionPermanent(request: MsgMakeCollectionPermanent): Promise<MsgMakeCollectionPermanentResponse>;
44
55
  }
45
56
  export declare class MsgClientImpl implements Msg {
46
57
  private readonly rpc;
@@ -72,5 +83,7 @@ export declare class MsgClientImpl implements Msg {
72
83
  endorseCollection: (request: MsgEndorseCollection) => Promise<MsgEndorseCollectionResponse>;
73
84
  setSeekingEndorsement: (request: MsgSetSeekingEndorsement) => Promise<MsgSetSeekingEndorsementResponse>;
74
85
  pinCollection: (request: MsgPinCollection) => Promise<MsgPinCollectionResponse>;
86
+ unpinCollection: (request: MsgUnpinCollection) => Promise<MsgUnpinCollectionResponse>;
87
+ makeCollectionPermanent: (request: MsgMakeCollectionPermanent) => Promise<MsgMakeCollectionPermanentResponse>;
75
88
  }
76
89
  export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
@@ -165,12 +165,27 @@ class MsgClientImpl {
165
165
  const promise = this.rpc.request("sparkdream.collect.v1.Msg", "SetSeekingEndorsement", data);
166
166
  return promise.then(data => tx_1.MsgSetSeekingEndorsementResponse.decode(new binary_1.BinaryReader(data)));
167
167
  };
168
- /* PinCollection makes an ephemeral collection permanent by burning its deposits. */
168
+ /* PinCollection sets the display-only pinned marker on a permanent collection.
169
+ Rejects ephemeral targets; lifecycle promotion is owned by MsgMakeCollectionPermanent. */
169
170
  pinCollection = async (request) => {
170
171
  const data = tx_1.MsgPinCollection.encode(request).finish();
171
172
  const promise = this.rpc.request("sparkdream.collect.v1.Msg", "PinCollection", data);
172
173
  return promise.then(data => tx_1.MsgPinCollectionResponse.decode(new binary_1.BinaryReader(data)));
173
174
  };
175
+ /* UnpinCollection clears the display-only pinned marker. */
176
+ unpinCollection = async (request) => {
177
+ const data = tx_1.MsgUnpinCollection.encode(request).finish();
178
+ const promise = this.rpc.request("sparkdream.collect.v1.Msg", "UnpinCollection", data);
179
+ return promise.then(data => tx_1.MsgUnpinCollectionResponse.decode(new binary_1.BinaryReader(data)));
180
+ };
181
+ /* MakeCollectionPermanent flips an ephemeral collection to permanent,
182
+ burning its escrowed collection + item deposits. Gated on
183
+ params.make_permanent_min_trust_level. Idempotent on permanent collections. */
184
+ makeCollectionPermanent = async (request) => {
185
+ const data = tx_1.MsgMakeCollectionPermanent.encode(request).finish();
186
+ const promise = this.rpc.request("sparkdream.collect.v1.Msg", "MakeCollectionPermanent", data);
187
+ return promise.then(data => tx_1.MsgMakeCollectionPermanentResponse.decode(new binary_1.BinaryReader(data)));
188
+ };
174
189
  }
175
190
  exports.MsgClientImpl = MsgClientImpl;
176
191
  const createClientImpl = (rpc) => {
@@ -122,6 +122,20 @@ export interface Collection {
122
122
  immutable: boolean;
123
123
  convictionSustained: boolean;
124
124
  initiativeId: bigint;
125
+ /**
126
+ * pinned is a display-only marker set by MsgPinCollection and cleared by
127
+ * MsgUnpinCollection. Requires the collection to already be permanent
128
+ * (expires_at == 0); does not affect lifecycle. The lifecycle change
129
+ * (ephemeral → permanent + deposit burn) is owned by
130
+ * MsgMakeCollectionPermanent.
131
+ */
132
+ pinned: boolean;
133
+ /**
134
+ * non_member_collaborator_count counts how many of `collaborator_count` are
135
+ * non-members (stake-bearing collaborators). Maintained alongside the total
136
+ * count; bounded by Params.max_non_member_collaborators_per_collection.
137
+ */
138
+ nonMemberCollaboratorCount: number;
125
139
  }
126
140
  export interface CollectionProtoMsg {
127
141
  typeUrl: "/sparkdream.collect.v1.Collection";
@@ -162,6 +176,20 @@ export interface CollectionAmino {
162
176
  immutable?: boolean;
163
177
  conviction_sustained?: boolean;
164
178
  initiative_id?: string;
179
+ /**
180
+ * pinned is a display-only marker set by MsgPinCollection and cleared by
181
+ * MsgUnpinCollection. Requires the collection to already be permanent
182
+ * (expires_at == 0); does not affect lifecycle. The lifecycle change
183
+ * (ephemeral → permanent + deposit burn) is owned by
184
+ * MsgMakeCollectionPermanent.
185
+ */
186
+ pinned?: boolean;
187
+ /**
188
+ * non_member_collaborator_count counts how many of `collaborator_count` are
189
+ * non-members (stake-bearing collaborators). Maintained alongside the total
190
+ * count; bounded by Params.max_non_member_collaborators_per_collection.
191
+ */
192
+ non_member_collaborator_count?: number;
165
193
  }
166
194
  export interface CollectionAminoMsg {
167
195
  type: "/sparkdream.collect.v1.Collection";
@@ -398,6 +426,21 @@ export interface Collaborator {
398
426
  address: string;
399
427
  role: CollaboratorRole;
400
428
  addedAt: bigint;
429
+ /**
430
+ * inviter is the member who added this collaborator. Set only for non-member
431
+ * collaborators (members invite themselves implicitly via the trust-level
432
+ * gate). Used to identify the address whose DREAM stake is locked behind
433
+ * this collaboration.
434
+ */
435
+ inviter: string;
436
+ /**
437
+ * dream_stake is the DREAM amount the inviter locked when the collaborator
438
+ * was added. Zero for member collaborators. Released on RemoveCollaborator
439
+ * when the collection is ACTIVE; a fraction (non_member_collab_burn_fraction)
440
+ * is burned and the remainder refunded when the collection is HIDDEN at
441
+ * removal/deletion time.
442
+ */
443
+ dreamStake: string;
401
444
  }
402
445
  export interface CollaboratorProtoMsg {
403
446
  typeUrl: "/sparkdream.collect.v1.Collaborator";
@@ -414,6 +457,21 @@ export interface CollaboratorAmino {
414
457
  address?: string;
415
458
  role?: CollaboratorRole;
416
459
  added_at?: string;
460
+ /**
461
+ * inviter is the member who added this collaborator. Set only for non-member
462
+ * collaborators (members invite themselves implicitly via the trust-level
463
+ * gate). Used to identify the address whose DREAM stake is locked behind
464
+ * this collaboration.
465
+ */
466
+ inviter?: string;
467
+ /**
468
+ * dream_stake is the DREAM amount the inviter locked when the collaborator
469
+ * was added. Zero for member collaborators. Released on RemoveCollaborator
470
+ * when the collection is ACTIVE; a fraction (non_member_collab_burn_fraction)
471
+ * is burned and the remainder refunded when the collection is HIDDEN at
472
+ * removal/deletion time.
473
+ */
474
+ dream_stake?: string;
417
475
  }
418
476
  export interface CollaboratorAminoMsg {
419
477
  type: "/sparkdream.collect.v1.Collaborator";
@@ -679,6 +737,33 @@ export interface CollectOperationalParams {
679
737
  curatorDemotionThreshold: string;
680
738
  curatorOverturnDemotionStreak: bigint;
681
739
  curatorUnbondCooldown: bigint;
740
+ /**
741
+ * make_permanent_min_trust_level — see Params.make_permanent_min_trust_level.
742
+ */
743
+ makePermanentMinTrustLevel: number;
744
+ /**
745
+ * max_make_permanent_per_day — see Params.max_make_permanent_per_day.
746
+ */
747
+ maxMakePermanentPerDay: number;
748
+ /**
749
+ * non_member_collab_dream_stake is the DREAM amount the inviter locks when
750
+ * adding a non-member as an EDITOR collaborator. Mirrors the endorsement
751
+ * stake model but per-collaborator. See Params.non_member_collab_dream_stake.
752
+ */
753
+ nonMemberCollabDreamStake: string;
754
+ /**
755
+ * non_member_collab_burn_fraction is the fraction of the inviter's locked
756
+ * DREAM that is burned when the collaborator is removed (or the collection
757
+ * is deleted) while the collection's status is HIDDEN. See
758
+ * Params.non_member_collab_burn_fraction.
759
+ */
760
+ nonMemberCollabBurnFraction: string;
761
+ /**
762
+ * Slash rep-penalty parameters — see Params for rationale.
763
+ */
764
+ endorserRepPenalty: string;
765
+ collabInviterRepPenalty: string;
766
+ authorRepPenalty: string;
682
767
  }
683
768
  export interface CollectOperationalParamsProtoMsg {
684
769
  typeUrl: "/sparkdream.collect.v1.CollectOperationalParams";
@@ -744,6 +829,33 @@ export interface CollectOperationalParamsAmino {
744
829
  curator_demotion_threshold?: string;
745
830
  curator_overturn_demotion_streak?: string;
746
831
  curator_unbond_cooldown?: string;
832
+ /**
833
+ * make_permanent_min_trust_level — see Params.make_permanent_min_trust_level.
834
+ */
835
+ make_permanent_min_trust_level?: number;
836
+ /**
837
+ * max_make_permanent_per_day — see Params.max_make_permanent_per_day.
838
+ */
839
+ max_make_permanent_per_day?: number;
840
+ /**
841
+ * non_member_collab_dream_stake is the DREAM amount the inviter locks when
842
+ * adding a non-member as an EDITOR collaborator. Mirrors the endorsement
843
+ * stake model but per-collaborator. See Params.non_member_collab_dream_stake.
844
+ */
845
+ non_member_collab_dream_stake?: string;
846
+ /**
847
+ * non_member_collab_burn_fraction is the fraction of the inviter's locked
848
+ * DREAM that is burned when the collaborator is removed (or the collection
849
+ * is deleted) while the collection's status is HIDDEN. See
850
+ * Params.non_member_collab_burn_fraction.
851
+ */
852
+ non_member_collab_burn_fraction?: string;
853
+ /**
854
+ * Slash rep-penalty parameters — see Params for rationale.
855
+ */
856
+ endorser_rep_penalty?: string;
857
+ collab_inviter_rep_penalty?: string;
858
+ author_rep_penalty?: string;
747
859
  }
748
860
  export interface CollectOperationalParamsAminoMsg {
749
861
  type: "/sparkdream.collect.v1.CollectOperationalParams";