@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,6 @@
1
1
  //@ts-nocheck
2
2
  import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ import { Decimal } from "@interchainjs/math";
3
4
  /** PostStatus represents the status of a post. */
4
5
  export var PostStatus;
5
6
  (function (PostStatus) {
@@ -540,3 +541,357 @@ export const PinnedReplyRecord = {
540
541
  };
541
542
  }
542
543
  };
544
+ function createBaseForumRepEpochCounter() {
545
+ return {
546
+ epochId: BigInt(0),
547
+ accumulated: ""
548
+ };
549
+ }
550
+ /**
551
+ * ForumRepEpochCounter tracks how much forum reputation a single author has
552
+ * earned in a single tag during the current UTC-day epoch. Reset implicitly
553
+ * by comparing epoch_id to floor(block_time / 86400) on read — when the
554
+ * stored epoch_id is stale, the accumulated counter is treated as zero and
555
+ * overwritten on the next credit. Used by the post-conviction accrual loop
556
+ * to enforce Params.max_forum_rep_per_tag_per_epoch.
557
+ * @name ForumRepEpochCounter
558
+ * @package sparkdream.forum.v1
559
+ * @see proto type: sparkdream.forum.v1.ForumRepEpochCounter
560
+ */
561
+ export const ForumRepEpochCounter = {
562
+ typeUrl: "/sparkdream.forum.v1.ForumRepEpochCounter",
563
+ encode(message, writer = BinaryWriter.create()) {
564
+ if (message.epochId !== BigInt(0)) {
565
+ writer.uint32(8).int64(message.epochId);
566
+ }
567
+ if (message.accumulated !== "") {
568
+ writer.uint32(18).string(Decimal.fromUserInput(message.accumulated, 18).atomics);
569
+ }
570
+ return writer;
571
+ },
572
+ decode(input, length) {
573
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
574
+ let end = length === undefined ? reader.len : reader.pos + length;
575
+ const message = createBaseForumRepEpochCounter();
576
+ while (reader.pos < end) {
577
+ const tag = reader.uint32();
578
+ switch (tag >>> 3) {
579
+ case 1:
580
+ message.epochId = reader.int64();
581
+ break;
582
+ case 2:
583
+ message.accumulated = Decimal.fromAtomics(reader.string(), 18).toString();
584
+ break;
585
+ default:
586
+ reader.skipType(tag & 7);
587
+ break;
588
+ }
589
+ }
590
+ return message;
591
+ },
592
+ fromPartial(object) {
593
+ const message = createBaseForumRepEpochCounter();
594
+ message.epochId = object.epochId !== undefined && object.epochId !== null ? BigInt(object.epochId.toString()) : BigInt(0);
595
+ message.accumulated = object.accumulated ?? "";
596
+ return message;
597
+ },
598
+ fromAmino(object) {
599
+ const message = createBaseForumRepEpochCounter();
600
+ if (object.epoch_id !== undefined && object.epoch_id !== null) {
601
+ message.epochId = BigInt(object.epoch_id);
602
+ }
603
+ if (object.accumulated !== undefined && object.accumulated !== null) {
604
+ message.accumulated = object.accumulated;
605
+ }
606
+ return message;
607
+ },
608
+ toAmino(message) {
609
+ const obj = {};
610
+ obj.epoch_id = message.epochId !== BigInt(0) ? message.epochId?.toString() : undefined;
611
+ obj.accumulated = message.accumulated === "" ? undefined : message.accumulated;
612
+ return obj;
613
+ },
614
+ fromAminoMsg(object) {
615
+ return ForumRepEpochCounter.fromAmino(object.value);
616
+ },
617
+ fromProtoMsg(message) {
618
+ return ForumRepEpochCounter.decode(message.value);
619
+ },
620
+ toProto(message) {
621
+ return ForumRepEpochCounter.encode(message).finish();
622
+ },
623
+ toProtoMsg(message) {
624
+ return {
625
+ typeUrl: "/sparkdream.forum.v1.ForumRepEpochCounter",
626
+ value: ForumRepEpochCounter.encode(message).finish()
627
+ };
628
+ }
629
+ };
630
+ function createBasePostConvictionStake_AccruedRepPerTagEntry() {
631
+ return {
632
+ key: "",
633
+ value: ""
634
+ };
635
+ }
636
+ /**
637
+ * @name PostConvictionStake_AccruedRepPerTagEntry
638
+ * @package sparkdream.forum.v1
639
+ * @see proto type: sparkdream.forum.v1.undefined
640
+ */
641
+ export const PostConvictionStake_AccruedRepPerTagEntry = {
642
+ encode(message, writer = BinaryWriter.create()) {
643
+ if (message.key !== "") {
644
+ writer.uint32(10).string(message.key);
645
+ }
646
+ if (message.value !== "") {
647
+ writer.uint32(18).string(message.value);
648
+ }
649
+ return writer;
650
+ },
651
+ decode(input, length) {
652
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
653
+ let end = length === undefined ? reader.len : reader.pos + length;
654
+ const message = createBasePostConvictionStake_AccruedRepPerTagEntry();
655
+ while (reader.pos < end) {
656
+ const tag = reader.uint32();
657
+ switch (tag >>> 3) {
658
+ case 1:
659
+ message.key = reader.string();
660
+ break;
661
+ case 2:
662
+ message.value = reader.string();
663
+ break;
664
+ default:
665
+ reader.skipType(tag & 7);
666
+ break;
667
+ }
668
+ }
669
+ return message;
670
+ },
671
+ fromPartial(object) {
672
+ const message = createBasePostConvictionStake_AccruedRepPerTagEntry();
673
+ message.key = object.key ?? "";
674
+ message.value = object.value ?? "";
675
+ return message;
676
+ },
677
+ fromAmino(object) {
678
+ const message = createBasePostConvictionStake_AccruedRepPerTagEntry();
679
+ if (object.key !== undefined && object.key !== null) {
680
+ message.key = object.key;
681
+ }
682
+ if (object.value !== undefined && object.value !== null) {
683
+ message.value = object.value;
684
+ }
685
+ return message;
686
+ },
687
+ toAmino(message) {
688
+ const obj = {};
689
+ obj.key = message.key === "" ? undefined : message.key;
690
+ obj.value = message.value === "" ? undefined : message.value;
691
+ return obj;
692
+ },
693
+ fromAminoMsg(object) {
694
+ return PostConvictionStake_AccruedRepPerTagEntry.fromAmino(object.value);
695
+ },
696
+ fromProtoMsg(message) {
697
+ return PostConvictionStake_AccruedRepPerTagEntry.decode(message.value);
698
+ },
699
+ toProto(message) {
700
+ return PostConvictionStake_AccruedRepPerTagEntry.encode(message).finish();
701
+ }
702
+ };
703
+ function createBasePostConvictionStake() {
704
+ return {
705
+ id: BigInt(0),
706
+ staker: "",
707
+ postId: BigInt(0),
708
+ amount: "",
709
+ stakedAt: BigInt(0),
710
+ unlocksAt: BigInt(0),
711
+ accruedRepPerTag: {},
712
+ lastAccrualAt: BigInt(0),
713
+ released: false
714
+ };
715
+ }
716
+ /**
717
+ * PostConvictionStake records an ESTABLISHED+ member's DREAM lock backing a
718
+ * post's author. While the stake is active, the EndBlocker streams per-tag
719
+ * reputation to the author proportional to the stake's share of total active
720
+ * stakes on the post (split evenly across the post's tags). On confirmed
721
+ * sentinel hide (ExpireHiddenPosts), the accrued rep is clawed back from the
722
+ * author per tag and a fraction of the staker's locked DREAM is slashed
723
+ * (staker_slash_bps) — both staker and author endorsed harm.
724
+ *
725
+ * Stakers cannot stake on their own posts. Stakes are released after
726
+ * unlocks_at via MsgReleasePostConviction; LockDREAM/UnlockDREAM bypass the
727
+ * 3% transfer tax because it is internal member-balance rebalancing, not a
728
+ * transfer.
729
+ * @name PostConvictionStake
730
+ * @package sparkdream.forum.v1
731
+ * @see proto type: sparkdream.forum.v1.PostConvictionStake
732
+ */
733
+ export const PostConvictionStake = {
734
+ typeUrl: "/sparkdream.forum.v1.PostConvictionStake",
735
+ encode(message, writer = BinaryWriter.create()) {
736
+ if (message.id !== BigInt(0)) {
737
+ writer.uint32(8).uint64(message.id);
738
+ }
739
+ if (message.staker !== "") {
740
+ writer.uint32(18).string(message.staker);
741
+ }
742
+ if (message.postId !== BigInt(0)) {
743
+ writer.uint32(24).uint64(message.postId);
744
+ }
745
+ if (message.amount !== "") {
746
+ writer.uint32(34).string(message.amount);
747
+ }
748
+ if (message.stakedAt !== BigInt(0)) {
749
+ writer.uint32(40).int64(message.stakedAt);
750
+ }
751
+ if (message.unlocksAt !== BigInt(0)) {
752
+ writer.uint32(48).int64(message.unlocksAt);
753
+ }
754
+ Object.entries(message.accruedRepPerTag).forEach(([key, value]) => {
755
+ PostConvictionStake_AccruedRepPerTagEntry.encode({
756
+ key: key,
757
+ value
758
+ }, writer.uint32(58).fork()).ldelim();
759
+ });
760
+ if (message.lastAccrualAt !== BigInt(0)) {
761
+ writer.uint32(64).int64(message.lastAccrualAt);
762
+ }
763
+ if (message.released === true) {
764
+ writer.uint32(72).bool(message.released);
765
+ }
766
+ return writer;
767
+ },
768
+ decode(input, length) {
769
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
770
+ let end = length === undefined ? reader.len : reader.pos + length;
771
+ const message = createBasePostConvictionStake();
772
+ while (reader.pos < end) {
773
+ const tag = reader.uint32();
774
+ switch (tag >>> 3) {
775
+ case 1:
776
+ message.id = reader.uint64();
777
+ break;
778
+ case 2:
779
+ message.staker = reader.string();
780
+ break;
781
+ case 3:
782
+ message.postId = reader.uint64();
783
+ break;
784
+ case 4:
785
+ message.amount = reader.string();
786
+ break;
787
+ case 5:
788
+ message.stakedAt = reader.int64();
789
+ break;
790
+ case 6:
791
+ message.unlocksAt = reader.int64();
792
+ break;
793
+ case 7:
794
+ const entry7 = PostConvictionStake_AccruedRepPerTagEntry.decode(reader, reader.uint32());
795
+ if (entry7.value !== undefined) {
796
+ message.accruedRepPerTag[entry7.key] = entry7.value;
797
+ }
798
+ break;
799
+ case 8:
800
+ message.lastAccrualAt = reader.int64();
801
+ break;
802
+ case 9:
803
+ message.released = reader.bool();
804
+ break;
805
+ default:
806
+ reader.skipType(tag & 7);
807
+ break;
808
+ }
809
+ }
810
+ return message;
811
+ },
812
+ fromPartial(object) {
813
+ const message = createBasePostConvictionStake();
814
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
815
+ message.staker = object.staker ?? "";
816
+ message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
817
+ message.amount = object.amount ?? "";
818
+ message.stakedAt = object.stakedAt !== undefined && object.stakedAt !== null ? BigInt(object.stakedAt.toString()) : BigInt(0);
819
+ message.unlocksAt = object.unlocksAt !== undefined && object.unlocksAt !== null ? BigInt(object.unlocksAt.toString()) : BigInt(0);
820
+ message.accruedRepPerTag = Object.entries(object.accruedRepPerTag ?? {}).reduce((acc, [key, value]) => {
821
+ if (value !== undefined) {
822
+ acc[key] = String(value);
823
+ }
824
+ return acc;
825
+ }, {});
826
+ message.lastAccrualAt = object.lastAccrualAt !== undefined && object.lastAccrualAt !== null ? BigInt(object.lastAccrualAt.toString()) : BigInt(0);
827
+ message.released = object.released ?? false;
828
+ return message;
829
+ },
830
+ fromAmino(object) {
831
+ const message = createBasePostConvictionStake();
832
+ if (object.id !== undefined && object.id !== null) {
833
+ message.id = BigInt(object.id);
834
+ }
835
+ if (object.staker !== undefined && object.staker !== null) {
836
+ message.staker = object.staker;
837
+ }
838
+ if (object.post_id !== undefined && object.post_id !== null) {
839
+ message.postId = BigInt(object.post_id);
840
+ }
841
+ if (object.amount !== undefined && object.amount !== null) {
842
+ message.amount = object.amount;
843
+ }
844
+ if (object.staked_at !== undefined && object.staked_at !== null) {
845
+ message.stakedAt = BigInt(object.staked_at);
846
+ }
847
+ if (object.unlocks_at !== undefined && object.unlocks_at !== null) {
848
+ message.unlocksAt = BigInt(object.unlocks_at);
849
+ }
850
+ message.accruedRepPerTag = Object.entries(object.accrued_rep_per_tag ?? {}).reduce((acc, [key, value]) => {
851
+ if (value !== undefined) {
852
+ acc[key] = String(value);
853
+ }
854
+ return acc;
855
+ }, {});
856
+ if (object.last_accrual_at !== undefined && object.last_accrual_at !== null) {
857
+ message.lastAccrualAt = BigInt(object.last_accrual_at);
858
+ }
859
+ if (object.released !== undefined && object.released !== null) {
860
+ message.released = object.released;
861
+ }
862
+ return message;
863
+ },
864
+ toAmino(message) {
865
+ const obj = {};
866
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
867
+ obj.staker = message.staker === "" ? undefined : message.staker;
868
+ obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
869
+ obj.amount = message.amount === "" ? undefined : message.amount;
870
+ obj.staked_at = message.stakedAt !== BigInt(0) ? message.stakedAt?.toString() : undefined;
871
+ obj.unlocks_at = message.unlocksAt !== BigInt(0) ? message.unlocksAt?.toString() : undefined;
872
+ obj.accrued_rep_per_tag = {};
873
+ if (message.accruedRepPerTag) {
874
+ Object.entries(message.accruedRepPerTag).forEach(([k, v]) => {
875
+ obj.accrued_rep_per_tag[k] = v;
876
+ });
877
+ }
878
+ obj.last_accrual_at = message.lastAccrualAt !== BigInt(0) ? message.lastAccrualAt?.toString() : undefined;
879
+ obj.released = message.released === false ? undefined : message.released;
880
+ return obj;
881
+ },
882
+ fromAminoMsg(object) {
883
+ return PostConvictionStake.fromAmino(object.value);
884
+ },
885
+ fromProtoMsg(message) {
886
+ return PostConvictionStake.decode(message.value);
887
+ },
888
+ toProto(message) {
889
+ return PostConvictionStake.encode(message).finish();
890
+ },
891
+ toProtoMsg(message) {
892
+ return {
893
+ typeUrl: "/sparkdream.forum.v1.PostConvictionStake",
894
+ value: PostConvictionStake.encode(message).finish()
895
+ };
896
+ }
897
+ };
@@ -6,11 +6,17 @@ function createBaseUserRateLimit() {
6
6
  currentEpochCount: BigInt(0),
7
7
  previousEpochCount: BigInt(0),
8
8
  currentEpochStart: BigInt(0),
9
- lastPostTime: BigInt(0)
9
+ lastPostTime: BigInt(0),
10
+ makePermanentCurrentEpochCount: BigInt(0),
11
+ makePermanentPreviousEpochCount: BigInt(0),
12
+ makePermanentCurrentEpochStart: BigInt(0)
10
13
  };
11
14
  }
12
15
  /**
13
- * UserRateLimit defines the UserRateLimit message.
16
+ * UserRateLimit defines the UserRateLimit message. Counters are split by
17
+ * action class — the post counter (fields 2-5) bounds CreatePost, the
18
+ * make-permanent counter (fields 6-8) bounds MakePostPermanent. They are
19
+ * kept on the same record to avoid an extra collection lookup per call.
14
20
  * @name UserRateLimit
15
21
  * @package sparkdream.forum.v1
16
22
  * @see proto type: sparkdream.forum.v1.UserRateLimit
@@ -33,6 +39,15 @@ export const UserRateLimit = {
33
39
  if (message.lastPostTime !== BigInt(0)) {
34
40
  writer.uint32(40).int64(message.lastPostTime);
35
41
  }
42
+ if (message.makePermanentCurrentEpochCount !== BigInt(0)) {
43
+ writer.uint32(48).uint64(message.makePermanentCurrentEpochCount);
44
+ }
45
+ if (message.makePermanentPreviousEpochCount !== BigInt(0)) {
46
+ writer.uint32(56).uint64(message.makePermanentPreviousEpochCount);
47
+ }
48
+ if (message.makePermanentCurrentEpochStart !== BigInt(0)) {
49
+ writer.uint32(64).int64(message.makePermanentCurrentEpochStart);
50
+ }
36
51
  return writer;
37
52
  },
38
53
  decode(input, length) {
@@ -57,6 +72,15 @@ export const UserRateLimit = {
57
72
  case 5:
58
73
  message.lastPostTime = reader.int64();
59
74
  break;
75
+ case 6:
76
+ message.makePermanentCurrentEpochCount = reader.uint64();
77
+ break;
78
+ case 7:
79
+ message.makePermanentPreviousEpochCount = reader.uint64();
80
+ break;
81
+ case 8:
82
+ message.makePermanentCurrentEpochStart = reader.int64();
83
+ break;
60
84
  default:
61
85
  reader.skipType(tag & 7);
62
86
  break;
@@ -71,6 +95,9 @@ export const UserRateLimit = {
71
95
  message.previousEpochCount = object.previousEpochCount !== undefined && object.previousEpochCount !== null ? BigInt(object.previousEpochCount.toString()) : BigInt(0);
72
96
  message.currentEpochStart = object.currentEpochStart !== undefined && object.currentEpochStart !== null ? BigInt(object.currentEpochStart.toString()) : BigInt(0);
73
97
  message.lastPostTime = object.lastPostTime !== undefined && object.lastPostTime !== null ? BigInt(object.lastPostTime.toString()) : BigInt(0);
98
+ message.makePermanentCurrentEpochCount = object.makePermanentCurrentEpochCount !== undefined && object.makePermanentCurrentEpochCount !== null ? BigInt(object.makePermanentCurrentEpochCount.toString()) : BigInt(0);
99
+ message.makePermanentPreviousEpochCount = object.makePermanentPreviousEpochCount !== undefined && object.makePermanentPreviousEpochCount !== null ? BigInt(object.makePermanentPreviousEpochCount.toString()) : BigInt(0);
100
+ message.makePermanentCurrentEpochStart = object.makePermanentCurrentEpochStart !== undefined && object.makePermanentCurrentEpochStart !== null ? BigInt(object.makePermanentCurrentEpochStart.toString()) : BigInt(0);
74
101
  return message;
75
102
  },
76
103
  fromAmino(object) {
@@ -90,6 +117,15 @@ export const UserRateLimit = {
90
117
  if (object.last_post_time !== undefined && object.last_post_time !== null) {
91
118
  message.lastPostTime = BigInt(object.last_post_time);
92
119
  }
120
+ if (object.make_permanent_current_epoch_count !== undefined && object.make_permanent_current_epoch_count !== null) {
121
+ message.makePermanentCurrentEpochCount = BigInt(object.make_permanent_current_epoch_count);
122
+ }
123
+ if (object.make_permanent_previous_epoch_count !== undefined && object.make_permanent_previous_epoch_count !== null) {
124
+ message.makePermanentPreviousEpochCount = BigInt(object.make_permanent_previous_epoch_count);
125
+ }
126
+ if (object.make_permanent_current_epoch_start !== undefined && object.make_permanent_current_epoch_start !== null) {
127
+ message.makePermanentCurrentEpochStart = BigInt(object.make_permanent_current_epoch_start);
128
+ }
93
129
  return message;
94
130
  },
95
131
  toAmino(message) {
@@ -99,6 +135,9 @@ export const UserRateLimit = {
99
135
  obj.previous_epoch_count = message.previousEpochCount !== BigInt(0) ? message.previousEpochCount?.toString() : undefined;
100
136
  obj.current_epoch_start = message.currentEpochStart !== BigInt(0) ? message.currentEpochStart?.toString() : undefined;
101
137
  obj.last_post_time = message.lastPostTime !== BigInt(0) ? message.lastPostTime?.toString() : undefined;
138
+ obj.make_permanent_current_epoch_count = message.makePermanentCurrentEpochCount !== BigInt(0) ? message.makePermanentCurrentEpochCount?.toString() : undefined;
139
+ obj.make_permanent_previous_epoch_count = message.makePermanentPreviousEpochCount !== BigInt(0) ? message.makePermanentPreviousEpochCount?.toString() : undefined;
140
+ obj.make_permanent_current_epoch_start = message.makePermanentCurrentEpochStart !== BigInt(0) ? message.makePermanentCurrentEpochStart?.toString() : undefined;
102
141
  return obj;
103
142
  },
104
143
  fromAminoMsg(object) {