@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,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 } 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]];
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]];
3
3
  export const load = (protoRegistry) => {
4
4
  registry.forEach(([typeUrl, mod]) => {
5
5
  protoRegistry.register(typeUrl, mod);
@@ -168,6 +168,18 @@ export const MessageComposer = {
168
168
  typeUrl: "/sparkdream.collect.v1.MsgPinCollection",
169
169
  value: MsgPinCollection.encode(value).finish()
170
170
  };
171
+ },
172
+ unpinCollection(value) {
173
+ return {
174
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollection",
175
+ value: MsgUnpinCollection.encode(value).finish()
176
+ };
177
+ },
178
+ makeCollectionPermanent(value) {
179
+ return {
180
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
181
+ value: MsgMakeCollectionPermanent.encode(value).finish()
182
+ };
171
183
  }
172
184
  },
173
185
  withTypeUrl: {
@@ -332,6 +344,18 @@ export const MessageComposer = {
332
344
  typeUrl: "/sparkdream.collect.v1.MsgPinCollection",
333
345
  value
334
346
  };
347
+ },
348
+ unpinCollection(value) {
349
+ return {
350
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollection",
351
+ value
352
+ };
353
+ },
354
+ makeCollectionPermanent(value) {
355
+ return {
356
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
357
+ value
358
+ };
335
359
  }
336
360
  },
337
361
  fromPartial: {
@@ -496,6 +520,18 @@ export const MessageComposer = {
496
520
  typeUrl: "/sparkdream.collect.v1.MsgPinCollection",
497
521
  value: MsgPinCollection.fromPartial(value)
498
522
  };
523
+ },
524
+ unpinCollection(value) {
525
+ return {
526
+ typeUrl: "/sparkdream.collect.v1.MsgUnpinCollection",
527
+ value: MsgUnpinCollection.fromPartial(value)
528
+ };
529
+ },
530
+ makeCollectionPermanent(value) {
531
+ return {
532
+ typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
533
+ value: MsgMakeCollectionPermanent.fromPartial(value)
534
+ };
499
535
  }
500
536
  }
501
537
  };
@@ -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 } 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
  export class MsgClientImpl {
4
4
  rpc;
5
5
  constructor(rpc) {
@@ -162,12 +162,27 @@ export class MsgClientImpl {
162
162
  const promise = this.rpc.request("sparkdream.collect.v1.Msg", "SetSeekingEndorsement", data);
163
163
  return promise.then(data => MsgSetSeekingEndorsementResponse.decode(new BinaryReader(data)));
164
164
  };
165
- /* PinCollection makes an ephemeral collection permanent by burning its deposits. */
165
+ /* PinCollection sets the display-only pinned marker on a permanent collection.
166
+ Rejects ephemeral targets; lifecycle promotion is owned by MsgMakeCollectionPermanent. */
166
167
  pinCollection = async (request) => {
167
168
  const data = MsgPinCollection.encode(request).finish();
168
169
  const promise = this.rpc.request("sparkdream.collect.v1.Msg", "PinCollection", data);
169
170
  return promise.then(data => MsgPinCollectionResponse.decode(new BinaryReader(data)));
170
171
  };
172
+ /* UnpinCollection clears the display-only pinned marker. */
173
+ unpinCollection = async (request) => {
174
+ const data = MsgUnpinCollection.encode(request).finish();
175
+ const promise = this.rpc.request("sparkdream.collect.v1.Msg", "UnpinCollection", data);
176
+ return promise.then(data => MsgUnpinCollectionResponse.decode(new BinaryReader(data)));
177
+ };
178
+ /* MakeCollectionPermanent flips an ephemeral collection to permanent,
179
+ burning its escrowed collection + item deposits. Gated on
180
+ params.make_permanent_min_trust_level. Idempotent on permanent collections. */
181
+ makeCollectionPermanent = async (request) => {
182
+ const data = MsgMakeCollectionPermanent.encode(request).finish();
183
+ const promise = this.rpc.request("sparkdream.collect.v1.Msg", "MakeCollectionPermanent", data);
184
+ return promise.then(data => MsgMakeCollectionPermanentResponse.decode(new BinaryReader(data)));
185
+ };
171
186
  }
172
187
  export const createClientImpl = (rpc) => {
173
188
  return new MsgClientImpl(rpc);
@@ -374,7 +374,9 @@ function createBaseCollection() {
374
374
  seekingEndorsement: false,
375
375
  immutable: false,
376
376
  convictionSustained: false,
377
- initiativeId: BigInt(0)
377
+ initiativeId: BigInt(0),
378
+ pinned: false,
379
+ nonMemberCollaboratorCount: 0
378
380
  };
379
381
  }
380
382
  /**
@@ -470,6 +472,12 @@ export const Collection = {
470
472
  if (message.initiativeId !== BigInt(0)) {
471
473
  writer.uint32(224).uint64(message.initiativeId);
472
474
  }
475
+ if (message.pinned === true) {
476
+ writer.uint32(232).bool(message.pinned);
477
+ }
478
+ if (message.nonMemberCollaboratorCount !== 0) {
479
+ writer.uint32(240).uint32(message.nonMemberCollaboratorCount);
480
+ }
473
481
  return writer;
474
482
  },
475
483
  decode(input, length) {
@@ -563,6 +571,12 @@ export const Collection = {
563
571
  case 28:
564
572
  message.initiativeId = reader.uint64();
565
573
  break;
574
+ case 29:
575
+ message.pinned = reader.bool();
576
+ break;
577
+ case 30:
578
+ message.nonMemberCollaboratorCount = reader.uint32();
579
+ break;
566
580
  default:
567
581
  reader.skipType(tag & 7);
568
582
  break;
@@ -600,6 +614,8 @@ export const Collection = {
600
614
  message.immutable = object.immutable ?? false;
601
615
  message.convictionSustained = object.convictionSustained ?? false;
602
616
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
617
+ message.pinned = object.pinned ?? false;
618
+ message.nonMemberCollaboratorCount = object.nonMemberCollaboratorCount ?? 0;
603
619
  return message;
604
620
  },
605
621
  fromAmino(object) {
@@ -686,6 +702,12 @@ export const Collection = {
686
702
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
687
703
  message.initiativeId = BigInt(object.initiative_id);
688
704
  }
705
+ if (object.pinned !== undefined && object.pinned !== null) {
706
+ message.pinned = object.pinned;
707
+ }
708
+ if (object.non_member_collaborator_count !== undefined && object.non_member_collaborator_count !== null) {
709
+ message.nonMemberCollaboratorCount = object.non_member_collaborator_count;
710
+ }
689
711
  return message;
690
712
  },
691
713
  toAmino(message) {
@@ -723,6 +745,8 @@ export const Collection = {
723
745
  obj.immutable = message.immutable === false ? undefined : message.immutable;
724
746
  obj.conviction_sustained = message.convictionSustained === false ? undefined : message.convictionSustained;
725
747
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
748
+ obj.pinned = message.pinned === false ? undefined : message.pinned;
749
+ obj.non_member_collaborator_count = message.nonMemberCollaboratorCount === 0 ? undefined : message.nonMemberCollaboratorCount;
726
750
  return obj;
727
751
  },
728
752
  fromAminoMsg(object) {
@@ -1502,7 +1526,9 @@ function createBaseCollaborator() {
1502
1526
  collectionId: BigInt(0),
1503
1527
  address: "",
1504
1528
  role: 0,
1505
- addedAt: BigInt(0)
1529
+ addedAt: BigInt(0),
1530
+ inviter: "",
1531
+ dreamStake: ""
1506
1532
  };
1507
1533
  }
1508
1534
  /**
@@ -1526,6 +1552,12 @@ export const Collaborator = {
1526
1552
  if (message.addedAt !== BigInt(0)) {
1527
1553
  writer.uint32(32).int64(message.addedAt);
1528
1554
  }
1555
+ if (message.inviter !== "") {
1556
+ writer.uint32(42).string(message.inviter);
1557
+ }
1558
+ if (message.dreamStake !== "") {
1559
+ writer.uint32(50).string(message.dreamStake);
1560
+ }
1529
1561
  return writer;
1530
1562
  },
1531
1563
  decode(input, length) {
@@ -1547,6 +1579,12 @@ export const Collaborator = {
1547
1579
  case 4:
1548
1580
  message.addedAt = reader.int64();
1549
1581
  break;
1582
+ case 5:
1583
+ message.inviter = reader.string();
1584
+ break;
1585
+ case 6:
1586
+ message.dreamStake = reader.string();
1587
+ break;
1550
1588
  default:
1551
1589
  reader.skipType(tag & 7);
1552
1590
  break;
@@ -1560,6 +1598,8 @@ export const Collaborator = {
1560
1598
  message.address = object.address ?? "";
1561
1599
  message.role = object.role ?? 0;
1562
1600
  message.addedAt = object.addedAt !== undefined && object.addedAt !== null ? BigInt(object.addedAt.toString()) : BigInt(0);
1601
+ message.inviter = object.inviter ?? "";
1602
+ message.dreamStake = object.dreamStake ?? "";
1563
1603
  return message;
1564
1604
  },
1565
1605
  fromAmino(object) {
@@ -1576,6 +1616,12 @@ export const Collaborator = {
1576
1616
  if (object.added_at !== undefined && object.added_at !== null) {
1577
1617
  message.addedAt = BigInt(object.added_at);
1578
1618
  }
1619
+ if (object.inviter !== undefined && object.inviter !== null) {
1620
+ message.inviter = object.inviter;
1621
+ }
1622
+ if (object.dream_stake !== undefined && object.dream_stake !== null) {
1623
+ message.dreamStake = object.dream_stake;
1624
+ }
1579
1625
  return message;
1580
1626
  },
1581
1627
  toAmino(message) {
@@ -1584,6 +1630,8 @@ export const Collaborator = {
1584
1630
  obj.address = message.address === "" ? undefined : message.address;
1585
1631
  obj.role = message.role === 0 ? undefined : message.role;
1586
1632
  obj.added_at = message.addedAt !== BigInt(0) ? message.addedAt?.toString() : undefined;
1633
+ obj.inviter = message.inviter === "" ? undefined : message.inviter;
1634
+ obj.dream_stake = message.dreamStake === "" ? undefined : message.dreamStake;
1587
1635
  return obj;
1588
1636
  },
1589
1637
  fromAminoMsg(object) {
@@ -2349,7 +2397,14 @@ function createBaseCollectOperationalParams() {
2349
2397
  curatorDemotionCooldown: BigInt(0),
2350
2398
  curatorDemotionThreshold: "",
2351
2399
  curatorOverturnDemotionStreak: BigInt(0),
2352
- curatorUnbondCooldown: BigInt(0)
2400
+ curatorUnbondCooldown: BigInt(0),
2401
+ makePermanentMinTrustLevel: 0,
2402
+ maxMakePermanentPerDay: 0,
2403
+ nonMemberCollabDreamStake: "",
2404
+ nonMemberCollabBurnFraction: "",
2405
+ endorserRepPenalty: "",
2406
+ collabInviterRepPenalty: "",
2407
+ authorRepPenalty: ""
2353
2408
  };
2354
2409
  }
2355
2410
  /**
@@ -2493,6 +2548,27 @@ export const CollectOperationalParams = {
2493
2548
  if (message.curatorUnbondCooldown !== BigInt(0)) {
2494
2549
  writer.uint32(384).int64(message.curatorUnbondCooldown);
2495
2550
  }
2551
+ if (message.makePermanentMinTrustLevel !== 0) {
2552
+ writer.uint32(392).uint32(message.makePermanentMinTrustLevel);
2553
+ }
2554
+ if (message.maxMakePermanentPerDay !== 0) {
2555
+ writer.uint32(440).uint32(message.maxMakePermanentPerDay);
2556
+ }
2557
+ if (message.nonMemberCollabDreamStake !== "") {
2558
+ writer.uint32(402).string(message.nonMemberCollabDreamStake);
2559
+ }
2560
+ if (message.nonMemberCollabBurnFraction !== "") {
2561
+ writer.uint32(410).string(Decimal.fromUserInput(message.nonMemberCollabBurnFraction, 18).atomics);
2562
+ }
2563
+ if (message.endorserRepPenalty !== "") {
2564
+ writer.uint32(418).string(Decimal.fromUserInput(message.endorserRepPenalty, 18).atomics);
2565
+ }
2566
+ if (message.collabInviterRepPenalty !== "") {
2567
+ writer.uint32(426).string(Decimal.fromUserInput(message.collabInviterRepPenalty, 18).atomics);
2568
+ }
2569
+ if (message.authorRepPenalty !== "") {
2570
+ writer.uint32(434).string(Decimal.fromUserInput(message.authorRepPenalty, 18).atomics);
2571
+ }
2496
2572
  return writer;
2497
2573
  },
2498
2574
  decode(input, length) {
@@ -2634,6 +2710,27 @@ export const CollectOperationalParams = {
2634
2710
  case 48:
2635
2711
  message.curatorUnbondCooldown = reader.int64();
2636
2712
  break;
2713
+ case 49:
2714
+ message.makePermanentMinTrustLevel = reader.uint32();
2715
+ break;
2716
+ case 55:
2717
+ message.maxMakePermanentPerDay = reader.uint32();
2718
+ break;
2719
+ case 50:
2720
+ message.nonMemberCollabDreamStake = reader.string();
2721
+ break;
2722
+ case 51:
2723
+ message.nonMemberCollabBurnFraction = Decimal.fromAtomics(reader.string(), 18).toString();
2724
+ break;
2725
+ case 52:
2726
+ message.endorserRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
2727
+ break;
2728
+ case 53:
2729
+ message.collabInviterRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
2730
+ break;
2731
+ case 54:
2732
+ message.authorRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
2733
+ break;
2637
2734
  default:
2638
2735
  reader.skipType(tag & 7);
2639
2736
  break;
@@ -2687,6 +2784,13 @@ export const CollectOperationalParams = {
2687
2784
  message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
2688
2785
  message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
2689
2786
  message.curatorUnbondCooldown = object.curatorUnbondCooldown !== undefined && object.curatorUnbondCooldown !== null ? BigInt(object.curatorUnbondCooldown.toString()) : BigInt(0);
2787
+ message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
2788
+ message.maxMakePermanentPerDay = object.maxMakePermanentPerDay ?? 0;
2789
+ message.nonMemberCollabDreamStake = object.nonMemberCollabDreamStake ?? "";
2790
+ message.nonMemberCollabBurnFraction = object.nonMemberCollabBurnFraction ?? "";
2791
+ message.endorserRepPenalty = object.endorserRepPenalty ?? "";
2792
+ message.collabInviterRepPenalty = object.collabInviterRepPenalty ?? "";
2793
+ message.authorRepPenalty = object.authorRepPenalty ?? "";
2690
2794
  return message;
2691
2795
  },
2692
2796
  fromAmino(object) {
@@ -2823,6 +2927,27 @@ export const CollectOperationalParams = {
2823
2927
  if (object.curator_unbond_cooldown !== undefined && object.curator_unbond_cooldown !== null) {
2824
2928
  message.curatorUnbondCooldown = BigInt(object.curator_unbond_cooldown);
2825
2929
  }
2930
+ if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
2931
+ message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
2932
+ }
2933
+ if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
2934
+ message.maxMakePermanentPerDay = object.max_make_permanent_per_day;
2935
+ }
2936
+ if (object.non_member_collab_dream_stake !== undefined && object.non_member_collab_dream_stake !== null) {
2937
+ message.nonMemberCollabDreamStake = object.non_member_collab_dream_stake;
2938
+ }
2939
+ if (object.non_member_collab_burn_fraction !== undefined && object.non_member_collab_burn_fraction !== null) {
2940
+ message.nonMemberCollabBurnFraction = object.non_member_collab_burn_fraction;
2941
+ }
2942
+ if (object.endorser_rep_penalty !== undefined && object.endorser_rep_penalty !== null) {
2943
+ message.endorserRepPenalty = object.endorser_rep_penalty;
2944
+ }
2945
+ if (object.collab_inviter_rep_penalty !== undefined && object.collab_inviter_rep_penalty !== null) {
2946
+ message.collabInviterRepPenalty = object.collab_inviter_rep_penalty;
2947
+ }
2948
+ if (object.author_rep_penalty !== undefined && object.author_rep_penalty !== null) {
2949
+ message.authorRepPenalty = object.author_rep_penalty;
2950
+ }
2826
2951
  return message;
2827
2952
  },
2828
2953
  toAmino(message) {
@@ -2871,6 +2996,13 @@ export const CollectOperationalParams = {
2871
2996
  obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
2872
2997
  obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
2873
2998
  obj.curator_unbond_cooldown = message.curatorUnbondCooldown !== BigInt(0) ? message.curatorUnbondCooldown?.toString() : undefined;
2999
+ obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
3000
+ obj.max_make_permanent_per_day = message.maxMakePermanentPerDay === 0 ? undefined : message.maxMakePermanentPerDay;
3001
+ obj.non_member_collab_dream_stake = message.nonMemberCollabDreamStake === "" ? undefined : message.nonMemberCollabDreamStake;
3002
+ obj.non_member_collab_burn_fraction = message.nonMemberCollabBurnFraction === "" ? undefined : message.nonMemberCollabBurnFraction;
3003
+ obj.endorser_rep_penalty = message.endorserRepPenalty === "" ? undefined : message.endorserRepPenalty;
3004
+ obj.collab_inviter_rep_penalty = message.collabInviterRepPenalty === "" ? undefined : message.collabInviterRepPenalty;
3005
+ obj.author_rep_penalty = message.authorRepPenalty === "" ? undefined : message.authorRepPenalty;
2874
3006
  return obj;
2875
3007
  },
2876
3008
  fromAminoMsg(object) {