@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
@@ -42,7 +42,16 @@ function createBaseParams() {
42
42
  sentinelDemotionCooldown: BigInt(0),
43
43
  sentinelDemotionThreshold: "",
44
44
  sentinelUnhideWindow: BigInt(0),
45
- sentinelUnbondCooldown: BigInt(0)
45
+ sentinelUnbondCooldown: BigInt(0),
46
+ makePermanentMinTrustLevel: 0,
47
+ maxPromotionsPerBlock: 0,
48
+ authorRepSlash: "",
49
+ maxMakePermanentPerDay: BigInt(0),
50
+ minPostConvictionStake: "",
51
+ postConvictionLockSeconds: BigInt(0),
52
+ postConvictionStreamRatePerBlock: "",
53
+ maxForumRepPerTagPerEpoch: "",
54
+ postConvictionStakerSlashBps: BigInt(0)
46
55
  };
47
56
  }
48
57
  /**
@@ -177,6 +186,33 @@ export const Params = {
177
186
  if (message.sentinelUnbondCooldown !== BigInt(0)) {
178
187
  writer.uint32(376).int64(message.sentinelUnbondCooldown);
179
188
  }
189
+ if (message.makePermanentMinTrustLevel !== 0) {
190
+ writer.uint32(384).uint32(message.makePermanentMinTrustLevel);
191
+ }
192
+ if (message.maxPromotionsPerBlock !== 0) {
193
+ writer.uint32(392).uint32(message.maxPromotionsPerBlock);
194
+ }
195
+ if (message.authorRepSlash !== "") {
196
+ writer.uint32(402).string(Decimal.fromUserInput(message.authorRepSlash, 18).atomics);
197
+ }
198
+ if (message.maxMakePermanentPerDay !== BigInt(0)) {
199
+ writer.uint32(408).uint64(message.maxMakePermanentPerDay);
200
+ }
201
+ if (message.minPostConvictionStake !== "") {
202
+ writer.uint32(482).string(message.minPostConvictionStake);
203
+ }
204
+ if (message.postConvictionLockSeconds !== BigInt(0)) {
205
+ writer.uint32(488).int64(message.postConvictionLockSeconds);
206
+ }
207
+ if (message.postConvictionStreamRatePerBlock !== "") {
208
+ writer.uint32(498).string(Decimal.fromUserInput(message.postConvictionStreamRatePerBlock, 18).atomics);
209
+ }
210
+ if (message.maxForumRepPerTagPerEpoch !== "") {
211
+ writer.uint32(506).string(Decimal.fromUserInput(message.maxForumRepPerTagPerEpoch, 18).atomics);
212
+ }
213
+ if (message.postConvictionStakerSlashBps !== BigInt(0)) {
214
+ writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
215
+ }
180
216
  return writer;
181
217
  },
182
218
  decode(input, length) {
@@ -306,6 +342,33 @@ export const Params = {
306
342
  case 47:
307
343
  message.sentinelUnbondCooldown = reader.int64();
308
344
  break;
345
+ case 48:
346
+ message.makePermanentMinTrustLevel = reader.uint32();
347
+ break;
348
+ case 49:
349
+ message.maxPromotionsPerBlock = reader.uint32();
350
+ break;
351
+ case 50:
352
+ message.authorRepSlash = Decimal.fromAtomics(reader.string(), 18).toString();
353
+ break;
354
+ case 51:
355
+ message.maxMakePermanentPerDay = reader.uint64();
356
+ break;
357
+ case 60:
358
+ message.minPostConvictionStake = reader.string();
359
+ break;
360
+ case 61:
361
+ message.postConvictionLockSeconds = reader.int64();
362
+ break;
363
+ case 62:
364
+ message.postConvictionStreamRatePerBlock = Decimal.fromAtomics(reader.string(), 18).toString();
365
+ break;
366
+ case 63:
367
+ message.maxForumRepPerTagPerEpoch = Decimal.fromAtomics(reader.string(), 18).toString();
368
+ break;
369
+ case 64:
370
+ message.postConvictionStakerSlashBps = reader.uint64();
371
+ break;
309
372
  default:
310
373
  reader.skipType(tag & 7);
311
374
  break;
@@ -355,6 +418,15 @@ export const Params = {
355
418
  message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
356
419
  message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
357
420
  message.sentinelUnbondCooldown = object.sentinelUnbondCooldown !== undefined && object.sentinelUnbondCooldown !== null ? BigInt(object.sentinelUnbondCooldown.toString()) : BigInt(0);
421
+ message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
422
+ message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
423
+ message.authorRepSlash = object.authorRepSlash ?? "";
424
+ message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
425
+ message.minPostConvictionStake = object.minPostConvictionStake ?? "";
426
+ message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
427
+ message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
428
+ message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
429
+ message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
358
430
  return message;
359
431
  },
360
432
  fromAmino(object) {
@@ -479,6 +551,33 @@ export const Params = {
479
551
  if (object.sentinel_unbond_cooldown !== undefined && object.sentinel_unbond_cooldown !== null) {
480
552
  message.sentinelUnbondCooldown = BigInt(object.sentinel_unbond_cooldown);
481
553
  }
554
+ if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
555
+ message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
556
+ }
557
+ if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
558
+ message.maxPromotionsPerBlock = object.max_promotions_per_block;
559
+ }
560
+ if (object.author_rep_slash !== undefined && object.author_rep_slash !== null) {
561
+ message.authorRepSlash = object.author_rep_slash;
562
+ }
563
+ if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
564
+ message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
565
+ }
566
+ if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
567
+ message.minPostConvictionStake = object.min_post_conviction_stake;
568
+ }
569
+ if (object.post_conviction_lock_seconds !== undefined && object.post_conviction_lock_seconds !== null) {
570
+ message.postConvictionLockSeconds = BigInt(object.post_conviction_lock_seconds);
571
+ }
572
+ if (object.post_conviction_stream_rate_per_block !== undefined && object.post_conviction_stream_rate_per_block !== null) {
573
+ message.postConvictionStreamRatePerBlock = object.post_conviction_stream_rate_per_block;
574
+ }
575
+ if (object.max_forum_rep_per_tag_per_epoch !== undefined && object.max_forum_rep_per_tag_per_epoch !== null) {
576
+ message.maxForumRepPerTagPerEpoch = object.max_forum_rep_per_tag_per_epoch;
577
+ }
578
+ if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
579
+ message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
580
+ }
482
581
  return message;
483
582
  },
484
583
  toAmino(message) {
@@ -523,6 +622,15 @@ export const Params = {
523
622
  obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
524
623
  obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
525
624
  obj.sentinel_unbond_cooldown = message.sentinelUnbondCooldown !== BigInt(0) ? message.sentinelUnbondCooldown?.toString() : undefined;
625
+ obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
626
+ obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
627
+ obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
628
+ obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
629
+ obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
630
+ obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
631
+ obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
632
+ obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
633
+ obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
526
634
  return obj;
527
635
  },
528
636
  fromAminoMsg(object) {
@@ -585,7 +693,16 @@ function createBaseForumOperationalParams() {
585
693
  sentinelDemotionCooldown: BigInt(0),
586
694
  sentinelDemotionThreshold: "",
587
695
  sentinelUnhideWindow: BigInt(0),
588
- sentinelUnbondCooldown: BigInt(0)
696
+ sentinelUnbondCooldown: BigInt(0),
697
+ makePermanentMinTrustLevel: 0,
698
+ maxPromotionsPerBlock: 0,
699
+ authorRepSlash: "",
700
+ maxMakePermanentPerDay: BigInt(0),
701
+ minPostConvictionStake: "",
702
+ postConvictionLockSeconds: BigInt(0),
703
+ postConvictionStreamRatePerBlock: "",
704
+ maxForumRepPerTagPerEpoch: "",
705
+ postConvictionStakerSlashBps: BigInt(0)
589
706
  };
590
707
  }
591
708
  /**
@@ -712,6 +829,33 @@ export const ForumOperationalParams = {
712
829
  if (message.sentinelUnbondCooldown !== BigInt(0)) {
713
830
  writer.uint32(376).int64(message.sentinelUnbondCooldown);
714
831
  }
832
+ if (message.makePermanentMinTrustLevel !== 0) {
833
+ writer.uint32(384).uint32(message.makePermanentMinTrustLevel);
834
+ }
835
+ if (message.maxPromotionsPerBlock !== 0) {
836
+ writer.uint32(392).uint32(message.maxPromotionsPerBlock);
837
+ }
838
+ if (message.authorRepSlash !== "") {
839
+ writer.uint32(402).string(Decimal.fromUserInput(message.authorRepSlash, 18).atomics);
840
+ }
841
+ if (message.maxMakePermanentPerDay !== BigInt(0)) {
842
+ writer.uint32(408).uint64(message.maxMakePermanentPerDay);
843
+ }
844
+ if (message.minPostConvictionStake !== "") {
845
+ writer.uint32(482).string(message.minPostConvictionStake);
846
+ }
847
+ if (message.postConvictionLockSeconds !== BigInt(0)) {
848
+ writer.uint32(488).int64(message.postConvictionLockSeconds);
849
+ }
850
+ if (message.postConvictionStreamRatePerBlock !== "") {
851
+ writer.uint32(498).string(Decimal.fromUserInput(message.postConvictionStreamRatePerBlock, 18).atomics);
852
+ }
853
+ if (message.maxForumRepPerTagPerEpoch !== "") {
854
+ writer.uint32(506).string(Decimal.fromUserInput(message.maxForumRepPerTagPerEpoch, 18).atomics);
855
+ }
856
+ if (message.postConvictionStakerSlashBps !== BigInt(0)) {
857
+ writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
858
+ }
715
859
  return writer;
716
860
  },
717
861
  decode(input, length) {
@@ -832,6 +976,33 @@ export const ForumOperationalParams = {
832
976
  case 47:
833
977
  message.sentinelUnbondCooldown = reader.int64();
834
978
  break;
979
+ case 48:
980
+ message.makePermanentMinTrustLevel = reader.uint32();
981
+ break;
982
+ case 49:
983
+ message.maxPromotionsPerBlock = reader.uint32();
984
+ break;
985
+ case 50:
986
+ message.authorRepSlash = Decimal.fromAtomics(reader.string(), 18).toString();
987
+ break;
988
+ case 51:
989
+ message.maxMakePermanentPerDay = reader.uint64();
990
+ break;
991
+ case 60:
992
+ message.minPostConvictionStake = reader.string();
993
+ break;
994
+ case 61:
995
+ message.postConvictionLockSeconds = reader.int64();
996
+ break;
997
+ case 62:
998
+ message.postConvictionStreamRatePerBlock = Decimal.fromAtomics(reader.string(), 18).toString();
999
+ break;
1000
+ case 63:
1001
+ message.maxForumRepPerTagPerEpoch = Decimal.fromAtomics(reader.string(), 18).toString();
1002
+ break;
1003
+ case 64:
1004
+ message.postConvictionStakerSlashBps = reader.uint64();
1005
+ break;
835
1006
  default:
836
1007
  reader.skipType(tag & 7);
837
1008
  break;
@@ -878,6 +1049,15 @@ export const ForumOperationalParams = {
878
1049
  message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
879
1050
  message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
880
1051
  message.sentinelUnbondCooldown = object.sentinelUnbondCooldown !== undefined && object.sentinelUnbondCooldown !== null ? BigInt(object.sentinelUnbondCooldown.toString()) : BigInt(0);
1052
+ message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
1053
+ message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
1054
+ message.authorRepSlash = object.authorRepSlash ?? "";
1055
+ message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
1056
+ message.minPostConvictionStake = object.minPostConvictionStake ?? "";
1057
+ message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
1058
+ message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
1059
+ message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
1060
+ message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
881
1061
  return message;
882
1062
  },
883
1063
  fromAmino(object) {
@@ -993,6 +1173,33 @@ export const ForumOperationalParams = {
993
1173
  if (object.sentinel_unbond_cooldown !== undefined && object.sentinel_unbond_cooldown !== null) {
994
1174
  message.sentinelUnbondCooldown = BigInt(object.sentinel_unbond_cooldown);
995
1175
  }
1176
+ if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
1177
+ message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
1178
+ }
1179
+ if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
1180
+ message.maxPromotionsPerBlock = object.max_promotions_per_block;
1181
+ }
1182
+ if (object.author_rep_slash !== undefined && object.author_rep_slash !== null) {
1183
+ message.authorRepSlash = object.author_rep_slash;
1184
+ }
1185
+ if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
1186
+ message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
1187
+ }
1188
+ if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
1189
+ message.minPostConvictionStake = object.min_post_conviction_stake;
1190
+ }
1191
+ if (object.post_conviction_lock_seconds !== undefined && object.post_conviction_lock_seconds !== null) {
1192
+ message.postConvictionLockSeconds = BigInt(object.post_conviction_lock_seconds);
1193
+ }
1194
+ if (object.post_conviction_stream_rate_per_block !== undefined && object.post_conviction_stream_rate_per_block !== null) {
1195
+ message.postConvictionStreamRatePerBlock = object.post_conviction_stream_rate_per_block;
1196
+ }
1197
+ if (object.max_forum_rep_per_tag_per_epoch !== undefined && object.max_forum_rep_per_tag_per_epoch !== null) {
1198
+ message.maxForumRepPerTagPerEpoch = object.max_forum_rep_per_tag_per_epoch;
1199
+ }
1200
+ if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
1201
+ message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
1202
+ }
996
1203
  return message;
997
1204
  },
998
1205
  toAmino(message) {
@@ -1034,6 +1241,15 @@ export const ForumOperationalParams = {
1034
1241
  obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
1035
1242
  obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
1036
1243
  obj.sentinel_unbond_cooldown = message.sentinelUnbondCooldown !== BigInt(0) ? message.sentinelUnbondCooldown?.toString() : undefined;
1244
+ obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
1245
+ obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
1246
+ obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
1247
+ obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
1248
+ obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
1249
+ obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
1250
+ obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
1251
+ obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
1252
+ obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
1037
1253
  return obj;
1038
1254
  },
1039
1255
  fromAminoMsg(object) {
@@ -28,7 +28,9 @@ function createBasePost() {
28
28
  tags: [],
29
29
  contentType: 0,
30
30
  initiativeId: BigInt(0),
31
- convictionSustained: false
31
+ convictionSustained: false,
32
+ promotedBy: "",
33
+ promotedAt: BigInt(0)
32
34
  };
33
35
  }
34
36
  /**
@@ -124,6 +126,12 @@ export const Post = {
124
126
  if (message.convictionSustained === true) {
125
127
  writer.uint32(264).bool(message.convictionSustained);
126
128
  }
129
+ if (message.promotedBy !== "") {
130
+ writer.uint32(274).string(message.promotedBy);
131
+ }
132
+ if (message.promotedAt !== BigInt(0)) {
133
+ writer.uint32(280).int64(message.promotedAt);
134
+ }
127
135
  return writer;
128
136
  },
129
137
  decode(input, length) {
@@ -217,6 +225,12 @@ export const Post = {
217
225
  case 33:
218
226
  message.convictionSustained = reader.bool();
219
227
  break;
228
+ case 34:
229
+ message.promotedBy = reader.string();
230
+ break;
231
+ case 35:
232
+ message.promotedAt = reader.int64();
233
+ break;
220
234
  default:
221
235
  reader.skipType(tag & 7);
222
236
  break;
@@ -254,6 +268,8 @@ export const Post = {
254
268
  message.contentType = object.contentType ?? 0;
255
269
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
256
270
  message.convictionSustained = object.convictionSustained ?? false;
271
+ message.promotedBy = object.promotedBy ?? "";
272
+ message.promotedAt = object.promotedAt !== undefined && object.promotedAt !== null ? BigInt(object.promotedAt.toString()) : BigInt(0);
257
273
  return message;
258
274
  },
259
275
  fromAmino(object) {
@@ -340,6 +356,12 @@ export const Post = {
340
356
  if (object.conviction_sustained !== undefined && object.conviction_sustained !== null) {
341
357
  message.convictionSustained = object.conviction_sustained;
342
358
  }
359
+ if (object.promoted_by !== undefined && object.promoted_by !== null) {
360
+ message.promotedBy = object.promoted_by;
361
+ }
362
+ if (object.promoted_at !== undefined && object.promoted_at !== null) {
363
+ message.promotedAt = BigInt(object.promoted_at);
364
+ }
343
365
  return message;
344
366
  },
345
367
  toAmino(message) {
@@ -377,6 +399,8 @@ export const Post = {
377
399
  obj.content_type = message.contentType === 0 ? undefined : message.contentType;
378
400
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
379
401
  obj.conviction_sustained = message.convictionSustained === false ? undefined : message.convictionSustained;
402
+ obj.promoted_by = message.promotedBy === "" ? undefined : message.promotedBy;
403
+ obj.promoted_at = message.promotedAt !== BigInt(0) ? message.promotedAt?.toString() : undefined;
380
404
  return obj;
381
405
  },
382
406
  fromAminoMsg(object) {