@sparkdreamnft/sparkdreamjs 0.0.18 → 0.0.19

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 (53) 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/tx.js +460 -0
  13. package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
  14. package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
  15. package/esm/sparkdream/forum/v1/types.js +355 -0
  16. package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
  17. package/esm/sparkdream/rep/v1/member.js +209 -1
  18. package/package.json +1 -1
  19. package/sparkdream/blog/v1/params.d.ts +52 -0
  20. package/sparkdream/blog/v1/params.js +62 -2
  21. package/sparkdream/blog/v1/tx.d.ts +381 -6
  22. package/sparkdream/blog/v1/tx.js +584 -3
  23. package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
  24. package/sparkdream/blog/v1/tx.registry.js +73 -1
  25. package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
  26. package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
  27. package/sparkdream/bundle.d.ts +396 -0
  28. package/sparkdream/collect/v1/params.d.ts +124 -0
  29. package/sparkdream/collect/v1/params.js +109 -1
  30. package/sparkdream/collect/v1/tx.d.ts +195 -3
  31. package/sparkdream/collect/v1/tx.js +294 -2
  32. package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
  33. package/sparkdream/collect/v1/tx.registry.js +37 -1
  34. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
  35. package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
  36. package/sparkdream/collect/v1/types.d.ts +112 -0
  37. package/sparkdream/collect/v1/types.js +135 -3
  38. package/sparkdream/forum/v1/params.d.ts +210 -0
  39. package/sparkdream/forum/v1/params.js +218 -2
  40. package/sparkdream/forum/v1/post.d.ts +28 -0
  41. package/sparkdream/forum/v1/post.js +25 -1
  42. package/sparkdream/forum/v1/tx.d.ts +291 -0
  43. package/sparkdream/forum/v1/tx.js +462 -2
  44. package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
  45. package/sparkdream/forum/v1/tx.registry.js +55 -1
  46. package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
  47. package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
  48. package/sparkdream/forum/v1/types.d.ts +247 -0
  49. package/sparkdream/forum/v1/types.js +356 -1
  50. package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
  51. package/sparkdream/forum/v1/user_rate_limit.js +41 -2
  52. package/sparkdream/rep/v1/member.d.ts +134 -0
  53. package/sparkdream/rep/v1/member.js +210 -2
@@ -532,6 +532,60 @@ export interface MsgUnpinPostResponseAminoMsg {
532
532
  type: "/sparkdream.forum.v1.MsgUnpinPostResponse";
533
533
  value: MsgUnpinPostResponseAmino;
534
534
  }
535
+ /**
536
+ * MsgMakePostPermanent promotes an ephemeral post (root post or reply) to
537
+ * permanent.
538
+ * @name MsgMakePostPermanent
539
+ * @package sparkdream.forum.v1
540
+ * @see proto type: sparkdream.forum.v1.MsgMakePostPermanent
541
+ */
542
+ export interface MsgMakePostPermanent {
543
+ creator: string;
544
+ postId: bigint;
545
+ }
546
+ export interface MsgMakePostPermanentProtoMsg {
547
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent";
548
+ value: Uint8Array;
549
+ }
550
+ /**
551
+ * MsgMakePostPermanent promotes an ephemeral post (root post or reply) to
552
+ * permanent.
553
+ * @name MsgMakePostPermanentAmino
554
+ * @package sparkdream.forum.v1
555
+ * @see proto type: sparkdream.forum.v1.MsgMakePostPermanent
556
+ */
557
+ export interface MsgMakePostPermanentAmino {
558
+ creator?: string;
559
+ post_id?: string;
560
+ }
561
+ export interface MsgMakePostPermanentAminoMsg {
562
+ type: "sparkdream/x/forum/MsgMakePostPermanent";
563
+ value: MsgMakePostPermanentAmino;
564
+ }
565
+ /**
566
+ * MsgMakePostPermanentResponse defines the MsgMakePostPermanent response.
567
+ * @name MsgMakePostPermanentResponse
568
+ * @package sparkdream.forum.v1
569
+ * @see proto type: sparkdream.forum.v1.MsgMakePostPermanentResponse
570
+ */
571
+ export interface MsgMakePostPermanentResponse {
572
+ }
573
+ export interface MsgMakePostPermanentResponseProtoMsg {
574
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanentResponse";
575
+ value: Uint8Array;
576
+ }
577
+ /**
578
+ * MsgMakePostPermanentResponse defines the MsgMakePostPermanent response.
579
+ * @name MsgMakePostPermanentResponseAmino
580
+ * @package sparkdream.forum.v1
581
+ * @see proto type: sparkdream.forum.v1.MsgMakePostPermanentResponse
582
+ */
583
+ export interface MsgMakePostPermanentResponseAmino {
584
+ }
585
+ export interface MsgMakePostPermanentResponseAminoMsg {
586
+ type: "/sparkdream.forum.v1.MsgMakePostPermanentResponse";
587
+ value: MsgMakePostPermanentResponseAmino;
588
+ }
535
589
  /**
536
590
  * MsgLockThread defines the MsgLockThread message.
537
591
  * @name MsgLockThread
@@ -902,6 +956,126 @@ export interface MsgDownvotePostResponseAminoMsg {
902
956
  type: "/sparkdream.forum.v1.MsgDownvotePostResponse";
903
957
  value: MsgDownvotePostResponseAmino;
904
958
  }
959
+ /**
960
+ * MsgStakePostConviction opens a PostConvictionStake. The signer is the
961
+ * staker; the post's author cannot stake on their own post.
962
+ * @name MsgStakePostConviction
963
+ * @package sparkdream.forum.v1
964
+ * @see proto type: sparkdream.forum.v1.MsgStakePostConviction
965
+ */
966
+ export interface MsgStakePostConviction {
967
+ creator: string;
968
+ postId: bigint;
969
+ /**
970
+ * amount is the DREAM (uDREAM) to lock for this stake. Must be at least
971
+ * Params.min_post_conviction_stake.
972
+ */
973
+ amount: string;
974
+ }
975
+ export interface MsgStakePostConvictionProtoMsg {
976
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction";
977
+ value: Uint8Array;
978
+ }
979
+ /**
980
+ * MsgStakePostConviction opens a PostConvictionStake. The signer is the
981
+ * staker; the post's author cannot stake on their own post.
982
+ * @name MsgStakePostConvictionAmino
983
+ * @package sparkdream.forum.v1
984
+ * @see proto type: sparkdream.forum.v1.MsgStakePostConviction
985
+ */
986
+ export interface MsgStakePostConvictionAmino {
987
+ creator?: string;
988
+ post_id?: string;
989
+ /**
990
+ * amount is the DREAM (uDREAM) to lock for this stake. Must be at least
991
+ * Params.min_post_conviction_stake.
992
+ */
993
+ amount?: string;
994
+ }
995
+ export interface MsgStakePostConvictionAminoMsg {
996
+ type: "sparkdream/x/forum/MsgStakePostConviction";
997
+ value: MsgStakePostConvictionAmino;
998
+ }
999
+ /**
1000
+ * MsgStakePostConvictionResponse returns the new stake's id.
1001
+ * @name MsgStakePostConvictionResponse
1002
+ * @package sparkdream.forum.v1
1003
+ * @see proto type: sparkdream.forum.v1.MsgStakePostConvictionResponse
1004
+ */
1005
+ export interface MsgStakePostConvictionResponse {
1006
+ stakeId: bigint;
1007
+ }
1008
+ export interface MsgStakePostConvictionResponseProtoMsg {
1009
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConvictionResponse";
1010
+ value: Uint8Array;
1011
+ }
1012
+ /**
1013
+ * MsgStakePostConvictionResponse returns the new stake's id.
1014
+ * @name MsgStakePostConvictionResponseAmino
1015
+ * @package sparkdream.forum.v1
1016
+ * @see proto type: sparkdream.forum.v1.MsgStakePostConvictionResponse
1017
+ */
1018
+ export interface MsgStakePostConvictionResponseAmino {
1019
+ stake_id?: string;
1020
+ }
1021
+ export interface MsgStakePostConvictionResponseAminoMsg {
1022
+ type: "/sparkdream.forum.v1.MsgStakePostConvictionResponse";
1023
+ value: MsgStakePostConvictionResponseAmino;
1024
+ }
1025
+ /**
1026
+ * MsgReleasePostConviction closes a PostConvictionStake. Only the original
1027
+ * staker may release; release before unlocks_at is rejected.
1028
+ * @name MsgReleasePostConviction
1029
+ * @package sparkdream.forum.v1
1030
+ * @see proto type: sparkdream.forum.v1.MsgReleasePostConviction
1031
+ */
1032
+ export interface MsgReleasePostConviction {
1033
+ creator: string;
1034
+ stakeId: bigint;
1035
+ }
1036
+ export interface MsgReleasePostConvictionProtoMsg {
1037
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction";
1038
+ value: Uint8Array;
1039
+ }
1040
+ /**
1041
+ * MsgReleasePostConviction closes a PostConvictionStake. Only the original
1042
+ * staker may release; release before unlocks_at is rejected.
1043
+ * @name MsgReleasePostConvictionAmino
1044
+ * @package sparkdream.forum.v1
1045
+ * @see proto type: sparkdream.forum.v1.MsgReleasePostConviction
1046
+ */
1047
+ export interface MsgReleasePostConvictionAmino {
1048
+ creator?: string;
1049
+ stake_id?: string;
1050
+ }
1051
+ export interface MsgReleasePostConvictionAminoMsg {
1052
+ type: "sparkdream/x/forum/MsgReleasePostConviction";
1053
+ value: MsgReleasePostConvictionAmino;
1054
+ }
1055
+ /**
1056
+ * MsgReleasePostConvictionResponse defines the MsgReleasePostConviction response.
1057
+ * @name MsgReleasePostConvictionResponse
1058
+ * @package sparkdream.forum.v1
1059
+ * @see proto type: sparkdream.forum.v1.MsgReleasePostConvictionResponse
1060
+ */
1061
+ export interface MsgReleasePostConvictionResponse {
1062
+ }
1063
+ export interface MsgReleasePostConvictionResponseProtoMsg {
1064
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConvictionResponse";
1065
+ value: Uint8Array;
1066
+ }
1067
+ /**
1068
+ * MsgReleasePostConvictionResponse defines the MsgReleasePostConviction response.
1069
+ * @name MsgReleasePostConvictionResponseAmino
1070
+ * @package sparkdream.forum.v1
1071
+ * @see proto type: sparkdream.forum.v1.MsgReleasePostConvictionResponse
1072
+ */
1073
+ export interface MsgReleasePostConvictionResponseAmino {
1074
+ }
1075
+ export interface MsgReleasePostConvictionResponseAminoMsg {
1076
+ type: "/sparkdream.forum.v1.MsgReleasePostConvictionResponse";
1077
+ value: MsgReleasePostConvictionResponseAmino;
1078
+ }
905
1079
  /**
906
1080
  * MsgFlagPost defines the MsgFlagPost message.
907
1081
  * @name MsgFlagPost
@@ -2319,6 +2493,45 @@ export declare const MsgUnpinPostResponse: {
2319
2493
  toProto(message: MsgUnpinPostResponse): Uint8Array;
2320
2494
  toProtoMsg(message: MsgUnpinPostResponse): MsgUnpinPostResponseProtoMsg;
2321
2495
  };
2496
+ /**
2497
+ * MsgMakePostPermanent promotes an ephemeral post (root post or reply) to
2498
+ * permanent.
2499
+ * @name MsgMakePostPermanent
2500
+ * @package sparkdream.forum.v1
2501
+ * @see proto type: sparkdream.forum.v1.MsgMakePostPermanent
2502
+ */
2503
+ export declare const MsgMakePostPermanent: {
2504
+ typeUrl: string;
2505
+ aminoType: string;
2506
+ encode(message: MsgMakePostPermanent, writer?: BinaryWriter): BinaryWriter;
2507
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgMakePostPermanent;
2508
+ fromPartial(object: DeepPartial<MsgMakePostPermanent>): MsgMakePostPermanent;
2509
+ fromAmino(object: MsgMakePostPermanentAmino): MsgMakePostPermanent;
2510
+ toAmino(message: MsgMakePostPermanent): MsgMakePostPermanentAmino;
2511
+ fromAminoMsg(object: MsgMakePostPermanentAminoMsg): MsgMakePostPermanent;
2512
+ toAminoMsg(message: MsgMakePostPermanent): MsgMakePostPermanentAminoMsg;
2513
+ fromProtoMsg(message: MsgMakePostPermanentProtoMsg): MsgMakePostPermanent;
2514
+ toProto(message: MsgMakePostPermanent): Uint8Array;
2515
+ toProtoMsg(message: MsgMakePostPermanent): MsgMakePostPermanentProtoMsg;
2516
+ };
2517
+ /**
2518
+ * MsgMakePostPermanentResponse defines the MsgMakePostPermanent response.
2519
+ * @name MsgMakePostPermanentResponse
2520
+ * @package sparkdream.forum.v1
2521
+ * @see proto type: sparkdream.forum.v1.MsgMakePostPermanentResponse
2522
+ */
2523
+ export declare const MsgMakePostPermanentResponse: {
2524
+ typeUrl: string;
2525
+ encode(_: MsgMakePostPermanentResponse, writer?: BinaryWriter): BinaryWriter;
2526
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgMakePostPermanentResponse;
2527
+ fromPartial(_: DeepPartial<MsgMakePostPermanentResponse>): MsgMakePostPermanentResponse;
2528
+ fromAmino(_: MsgMakePostPermanentResponseAmino): MsgMakePostPermanentResponse;
2529
+ toAmino(_: MsgMakePostPermanentResponse): MsgMakePostPermanentResponseAmino;
2530
+ fromAminoMsg(object: MsgMakePostPermanentResponseAminoMsg): MsgMakePostPermanentResponse;
2531
+ fromProtoMsg(message: MsgMakePostPermanentResponseProtoMsg): MsgMakePostPermanentResponse;
2532
+ toProto(message: MsgMakePostPermanentResponse): Uint8Array;
2533
+ toProtoMsg(message: MsgMakePostPermanentResponse): MsgMakePostPermanentResponseProtoMsg;
2534
+ };
2322
2535
  /**
2323
2536
  * MsgLockThread defines the MsgLockThread message.
2324
2537
  * @name MsgLockThread
@@ -2585,6 +2798,84 @@ export declare const MsgDownvotePostResponse: {
2585
2798
  toProto(message: MsgDownvotePostResponse): Uint8Array;
2586
2799
  toProtoMsg(message: MsgDownvotePostResponse): MsgDownvotePostResponseProtoMsg;
2587
2800
  };
2801
+ /**
2802
+ * MsgStakePostConviction opens a PostConvictionStake. The signer is the
2803
+ * staker; the post's author cannot stake on their own post.
2804
+ * @name MsgStakePostConviction
2805
+ * @package sparkdream.forum.v1
2806
+ * @see proto type: sparkdream.forum.v1.MsgStakePostConviction
2807
+ */
2808
+ export declare const MsgStakePostConviction: {
2809
+ typeUrl: string;
2810
+ aminoType: string;
2811
+ encode(message: MsgStakePostConviction, writer?: BinaryWriter): BinaryWriter;
2812
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgStakePostConviction;
2813
+ fromPartial(object: DeepPartial<MsgStakePostConviction>): MsgStakePostConviction;
2814
+ fromAmino(object: MsgStakePostConvictionAmino): MsgStakePostConviction;
2815
+ toAmino(message: MsgStakePostConviction): MsgStakePostConvictionAmino;
2816
+ fromAminoMsg(object: MsgStakePostConvictionAminoMsg): MsgStakePostConviction;
2817
+ toAminoMsg(message: MsgStakePostConviction): MsgStakePostConvictionAminoMsg;
2818
+ fromProtoMsg(message: MsgStakePostConvictionProtoMsg): MsgStakePostConviction;
2819
+ toProto(message: MsgStakePostConviction): Uint8Array;
2820
+ toProtoMsg(message: MsgStakePostConviction): MsgStakePostConvictionProtoMsg;
2821
+ };
2822
+ /**
2823
+ * MsgStakePostConvictionResponse returns the new stake's id.
2824
+ * @name MsgStakePostConvictionResponse
2825
+ * @package sparkdream.forum.v1
2826
+ * @see proto type: sparkdream.forum.v1.MsgStakePostConvictionResponse
2827
+ */
2828
+ export declare const MsgStakePostConvictionResponse: {
2829
+ typeUrl: string;
2830
+ encode(message: MsgStakePostConvictionResponse, writer?: BinaryWriter): BinaryWriter;
2831
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgStakePostConvictionResponse;
2832
+ fromPartial(object: DeepPartial<MsgStakePostConvictionResponse>): MsgStakePostConvictionResponse;
2833
+ fromAmino(object: MsgStakePostConvictionResponseAmino): MsgStakePostConvictionResponse;
2834
+ toAmino(message: MsgStakePostConvictionResponse): MsgStakePostConvictionResponseAmino;
2835
+ fromAminoMsg(object: MsgStakePostConvictionResponseAminoMsg): MsgStakePostConvictionResponse;
2836
+ fromProtoMsg(message: MsgStakePostConvictionResponseProtoMsg): MsgStakePostConvictionResponse;
2837
+ toProto(message: MsgStakePostConvictionResponse): Uint8Array;
2838
+ toProtoMsg(message: MsgStakePostConvictionResponse): MsgStakePostConvictionResponseProtoMsg;
2839
+ };
2840
+ /**
2841
+ * MsgReleasePostConviction closes a PostConvictionStake. Only the original
2842
+ * staker may release; release before unlocks_at is rejected.
2843
+ * @name MsgReleasePostConviction
2844
+ * @package sparkdream.forum.v1
2845
+ * @see proto type: sparkdream.forum.v1.MsgReleasePostConviction
2846
+ */
2847
+ export declare const MsgReleasePostConviction: {
2848
+ typeUrl: string;
2849
+ aminoType: string;
2850
+ encode(message: MsgReleasePostConviction, writer?: BinaryWriter): BinaryWriter;
2851
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgReleasePostConviction;
2852
+ fromPartial(object: DeepPartial<MsgReleasePostConviction>): MsgReleasePostConviction;
2853
+ fromAmino(object: MsgReleasePostConvictionAmino): MsgReleasePostConviction;
2854
+ toAmino(message: MsgReleasePostConviction): MsgReleasePostConvictionAmino;
2855
+ fromAminoMsg(object: MsgReleasePostConvictionAminoMsg): MsgReleasePostConviction;
2856
+ toAminoMsg(message: MsgReleasePostConviction): MsgReleasePostConvictionAminoMsg;
2857
+ fromProtoMsg(message: MsgReleasePostConvictionProtoMsg): MsgReleasePostConviction;
2858
+ toProto(message: MsgReleasePostConviction): Uint8Array;
2859
+ toProtoMsg(message: MsgReleasePostConviction): MsgReleasePostConvictionProtoMsg;
2860
+ };
2861
+ /**
2862
+ * MsgReleasePostConvictionResponse defines the MsgReleasePostConviction response.
2863
+ * @name MsgReleasePostConvictionResponse
2864
+ * @package sparkdream.forum.v1
2865
+ * @see proto type: sparkdream.forum.v1.MsgReleasePostConvictionResponse
2866
+ */
2867
+ export declare const MsgReleasePostConvictionResponse: {
2868
+ typeUrl: string;
2869
+ encode(_: MsgReleasePostConvictionResponse, writer?: BinaryWriter): BinaryWriter;
2870
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgReleasePostConvictionResponse;
2871
+ fromPartial(_: DeepPartial<MsgReleasePostConvictionResponse>): MsgReleasePostConvictionResponse;
2872
+ fromAmino(_: MsgReleasePostConvictionResponseAmino): MsgReleasePostConvictionResponse;
2873
+ toAmino(_: MsgReleasePostConvictionResponse): MsgReleasePostConvictionResponseAmino;
2874
+ fromAminoMsg(object: MsgReleasePostConvictionResponseAminoMsg): MsgReleasePostConvictionResponse;
2875
+ fromProtoMsg(message: MsgReleasePostConvictionResponseProtoMsg): MsgReleasePostConvictionResponse;
2876
+ toProto(message: MsgReleasePostConvictionResponse): Uint8Array;
2877
+ toProtoMsg(message: MsgReleasePostConvictionResponse): MsgReleasePostConvictionResponseProtoMsg;
2878
+ };
2588
2879
  /**
2589
2880
  * MsgFlagPost defines the MsgFlagPost message.
2590
2881
  * @name MsgFlagPost