@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
@@ -1426,6 +1426,151 @@ export const MsgUnpinPostResponse = {
1426
1426
  };
1427
1427
  }
1428
1428
  };
1429
+ function createBaseMsgMakePostPermanent() {
1430
+ return {
1431
+ creator: "",
1432
+ postId: BigInt(0)
1433
+ };
1434
+ }
1435
+ /**
1436
+ * MsgMakePostPermanent promotes an ephemeral post (root post or reply) to
1437
+ * permanent.
1438
+ * @name MsgMakePostPermanent
1439
+ * @package sparkdream.forum.v1
1440
+ * @see proto type: sparkdream.forum.v1.MsgMakePostPermanent
1441
+ */
1442
+ export const MsgMakePostPermanent = {
1443
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
1444
+ aminoType: "sparkdream/x/forum/MsgMakePostPermanent",
1445
+ encode(message, writer = BinaryWriter.create()) {
1446
+ if (message.creator !== "") {
1447
+ writer.uint32(10).string(message.creator);
1448
+ }
1449
+ if (message.postId !== BigInt(0)) {
1450
+ writer.uint32(16).uint64(message.postId);
1451
+ }
1452
+ return writer;
1453
+ },
1454
+ decode(input, length) {
1455
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1456
+ let end = length === undefined ? reader.len : reader.pos + length;
1457
+ const message = createBaseMsgMakePostPermanent();
1458
+ while (reader.pos < end) {
1459
+ const tag = reader.uint32();
1460
+ switch (tag >>> 3) {
1461
+ case 1:
1462
+ message.creator = reader.string();
1463
+ break;
1464
+ case 2:
1465
+ message.postId = reader.uint64();
1466
+ break;
1467
+ default:
1468
+ reader.skipType(tag & 7);
1469
+ break;
1470
+ }
1471
+ }
1472
+ return message;
1473
+ },
1474
+ fromPartial(object) {
1475
+ const message = createBaseMsgMakePostPermanent();
1476
+ message.creator = object.creator ?? "";
1477
+ message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
1478
+ return message;
1479
+ },
1480
+ fromAmino(object) {
1481
+ const message = createBaseMsgMakePostPermanent();
1482
+ if (object.creator !== undefined && object.creator !== null) {
1483
+ message.creator = object.creator;
1484
+ }
1485
+ if (object.post_id !== undefined && object.post_id !== null) {
1486
+ message.postId = BigInt(object.post_id);
1487
+ }
1488
+ return message;
1489
+ },
1490
+ toAmino(message) {
1491
+ const obj = {};
1492
+ obj.creator = message.creator === "" ? undefined : message.creator;
1493
+ obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
1494
+ return obj;
1495
+ },
1496
+ fromAminoMsg(object) {
1497
+ return MsgMakePostPermanent.fromAmino(object.value);
1498
+ },
1499
+ toAminoMsg(message) {
1500
+ return {
1501
+ type: "sparkdream/x/forum/MsgMakePostPermanent",
1502
+ value: MsgMakePostPermanent.toAmino(message)
1503
+ };
1504
+ },
1505
+ fromProtoMsg(message) {
1506
+ return MsgMakePostPermanent.decode(message.value);
1507
+ },
1508
+ toProto(message) {
1509
+ return MsgMakePostPermanent.encode(message).finish();
1510
+ },
1511
+ toProtoMsg(message) {
1512
+ return {
1513
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
1514
+ value: MsgMakePostPermanent.encode(message).finish()
1515
+ };
1516
+ }
1517
+ };
1518
+ function createBaseMsgMakePostPermanentResponse() {
1519
+ return {};
1520
+ }
1521
+ /**
1522
+ * MsgMakePostPermanentResponse defines the MsgMakePostPermanent response.
1523
+ * @name MsgMakePostPermanentResponse
1524
+ * @package sparkdream.forum.v1
1525
+ * @see proto type: sparkdream.forum.v1.MsgMakePostPermanentResponse
1526
+ */
1527
+ export const MsgMakePostPermanentResponse = {
1528
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanentResponse",
1529
+ encode(_, writer = BinaryWriter.create()) {
1530
+ return writer;
1531
+ },
1532
+ decode(input, length) {
1533
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1534
+ let end = length === undefined ? reader.len : reader.pos + length;
1535
+ const message = createBaseMsgMakePostPermanentResponse();
1536
+ while (reader.pos < end) {
1537
+ const tag = reader.uint32();
1538
+ switch (tag >>> 3) {
1539
+ default:
1540
+ reader.skipType(tag & 7);
1541
+ break;
1542
+ }
1543
+ }
1544
+ return message;
1545
+ },
1546
+ fromPartial(_) {
1547
+ const message = createBaseMsgMakePostPermanentResponse();
1548
+ return message;
1549
+ },
1550
+ fromAmino(_) {
1551
+ const message = createBaseMsgMakePostPermanentResponse();
1552
+ return message;
1553
+ },
1554
+ toAmino(_) {
1555
+ const obj = {};
1556
+ return obj;
1557
+ },
1558
+ fromAminoMsg(object) {
1559
+ return MsgMakePostPermanentResponse.fromAmino(object.value);
1560
+ },
1561
+ fromProtoMsg(message) {
1562
+ return MsgMakePostPermanentResponse.decode(message.value);
1563
+ },
1564
+ toProto(message) {
1565
+ return MsgMakePostPermanentResponse.encode(message).finish();
1566
+ },
1567
+ toProtoMsg(message) {
1568
+ return {
1569
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanentResponse",
1570
+ value: MsgMakePostPermanentResponse.encode(message).finish()
1571
+ };
1572
+ }
1573
+ };
1429
1574
  function createBaseMsgLockThread() {
1430
1575
  return {
1431
1576
  creator: "",
@@ -2470,6 +2615,321 @@ export const MsgDownvotePostResponse = {
2470
2615
  };
2471
2616
  }
2472
2617
  };
2618
+ function createBaseMsgStakePostConviction() {
2619
+ return {
2620
+ creator: "",
2621
+ postId: BigInt(0),
2622
+ amount: ""
2623
+ };
2624
+ }
2625
+ /**
2626
+ * MsgStakePostConviction opens a PostConvictionStake. The signer is the
2627
+ * staker; the post's author cannot stake on their own post.
2628
+ * @name MsgStakePostConviction
2629
+ * @package sparkdream.forum.v1
2630
+ * @see proto type: sparkdream.forum.v1.MsgStakePostConviction
2631
+ */
2632
+ export const MsgStakePostConviction = {
2633
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
2634
+ aminoType: "sparkdream/x/forum/MsgStakePostConviction",
2635
+ encode(message, writer = BinaryWriter.create()) {
2636
+ if (message.creator !== "") {
2637
+ writer.uint32(10).string(message.creator);
2638
+ }
2639
+ if (message.postId !== BigInt(0)) {
2640
+ writer.uint32(16).uint64(message.postId);
2641
+ }
2642
+ if (message.amount !== "") {
2643
+ writer.uint32(26).string(message.amount);
2644
+ }
2645
+ return writer;
2646
+ },
2647
+ decode(input, length) {
2648
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2649
+ let end = length === undefined ? reader.len : reader.pos + length;
2650
+ const message = createBaseMsgStakePostConviction();
2651
+ while (reader.pos < end) {
2652
+ const tag = reader.uint32();
2653
+ switch (tag >>> 3) {
2654
+ case 1:
2655
+ message.creator = reader.string();
2656
+ break;
2657
+ case 2:
2658
+ message.postId = reader.uint64();
2659
+ break;
2660
+ case 3:
2661
+ message.amount = reader.string();
2662
+ break;
2663
+ default:
2664
+ reader.skipType(tag & 7);
2665
+ break;
2666
+ }
2667
+ }
2668
+ return message;
2669
+ },
2670
+ fromPartial(object) {
2671
+ const message = createBaseMsgStakePostConviction();
2672
+ message.creator = object.creator ?? "";
2673
+ message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
2674
+ message.amount = object.amount ?? "";
2675
+ return message;
2676
+ },
2677
+ fromAmino(object) {
2678
+ const message = createBaseMsgStakePostConviction();
2679
+ if (object.creator !== undefined && object.creator !== null) {
2680
+ message.creator = object.creator;
2681
+ }
2682
+ if (object.post_id !== undefined && object.post_id !== null) {
2683
+ message.postId = BigInt(object.post_id);
2684
+ }
2685
+ if (object.amount !== undefined && object.amount !== null) {
2686
+ message.amount = object.amount;
2687
+ }
2688
+ return message;
2689
+ },
2690
+ toAmino(message) {
2691
+ const obj = {};
2692
+ obj.creator = message.creator === "" ? undefined : message.creator;
2693
+ obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
2694
+ obj.amount = message.amount === "" ? undefined : message.amount;
2695
+ return obj;
2696
+ },
2697
+ fromAminoMsg(object) {
2698
+ return MsgStakePostConviction.fromAmino(object.value);
2699
+ },
2700
+ toAminoMsg(message) {
2701
+ return {
2702
+ type: "sparkdream/x/forum/MsgStakePostConviction",
2703
+ value: MsgStakePostConviction.toAmino(message)
2704
+ };
2705
+ },
2706
+ fromProtoMsg(message) {
2707
+ return MsgStakePostConviction.decode(message.value);
2708
+ },
2709
+ toProto(message) {
2710
+ return MsgStakePostConviction.encode(message).finish();
2711
+ },
2712
+ toProtoMsg(message) {
2713
+ return {
2714
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
2715
+ value: MsgStakePostConviction.encode(message).finish()
2716
+ };
2717
+ }
2718
+ };
2719
+ function createBaseMsgStakePostConvictionResponse() {
2720
+ return {
2721
+ stakeId: BigInt(0)
2722
+ };
2723
+ }
2724
+ /**
2725
+ * MsgStakePostConvictionResponse returns the new stake's id.
2726
+ * @name MsgStakePostConvictionResponse
2727
+ * @package sparkdream.forum.v1
2728
+ * @see proto type: sparkdream.forum.v1.MsgStakePostConvictionResponse
2729
+ */
2730
+ export const MsgStakePostConvictionResponse = {
2731
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConvictionResponse",
2732
+ encode(message, writer = BinaryWriter.create()) {
2733
+ if (message.stakeId !== BigInt(0)) {
2734
+ writer.uint32(8).uint64(message.stakeId);
2735
+ }
2736
+ return writer;
2737
+ },
2738
+ decode(input, length) {
2739
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2740
+ let end = length === undefined ? reader.len : reader.pos + length;
2741
+ const message = createBaseMsgStakePostConvictionResponse();
2742
+ while (reader.pos < end) {
2743
+ const tag = reader.uint32();
2744
+ switch (tag >>> 3) {
2745
+ case 1:
2746
+ message.stakeId = reader.uint64();
2747
+ break;
2748
+ default:
2749
+ reader.skipType(tag & 7);
2750
+ break;
2751
+ }
2752
+ }
2753
+ return message;
2754
+ },
2755
+ fromPartial(object) {
2756
+ const message = createBaseMsgStakePostConvictionResponse();
2757
+ message.stakeId = object.stakeId !== undefined && object.stakeId !== null ? BigInt(object.stakeId.toString()) : BigInt(0);
2758
+ return message;
2759
+ },
2760
+ fromAmino(object) {
2761
+ const message = createBaseMsgStakePostConvictionResponse();
2762
+ if (object.stake_id !== undefined && object.stake_id !== null) {
2763
+ message.stakeId = BigInt(object.stake_id);
2764
+ }
2765
+ return message;
2766
+ },
2767
+ toAmino(message) {
2768
+ const obj = {};
2769
+ obj.stake_id = message.stakeId !== BigInt(0) ? message.stakeId?.toString() : undefined;
2770
+ return obj;
2771
+ },
2772
+ fromAminoMsg(object) {
2773
+ return MsgStakePostConvictionResponse.fromAmino(object.value);
2774
+ },
2775
+ fromProtoMsg(message) {
2776
+ return MsgStakePostConvictionResponse.decode(message.value);
2777
+ },
2778
+ toProto(message) {
2779
+ return MsgStakePostConvictionResponse.encode(message).finish();
2780
+ },
2781
+ toProtoMsg(message) {
2782
+ return {
2783
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConvictionResponse",
2784
+ value: MsgStakePostConvictionResponse.encode(message).finish()
2785
+ };
2786
+ }
2787
+ };
2788
+ function createBaseMsgReleasePostConviction() {
2789
+ return {
2790
+ creator: "",
2791
+ stakeId: BigInt(0)
2792
+ };
2793
+ }
2794
+ /**
2795
+ * MsgReleasePostConviction closes a PostConvictionStake. Only the original
2796
+ * staker may release; release before unlocks_at is rejected.
2797
+ * @name MsgReleasePostConviction
2798
+ * @package sparkdream.forum.v1
2799
+ * @see proto type: sparkdream.forum.v1.MsgReleasePostConviction
2800
+ */
2801
+ export const MsgReleasePostConviction = {
2802
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
2803
+ aminoType: "sparkdream/x/forum/MsgReleasePostConviction",
2804
+ encode(message, writer = BinaryWriter.create()) {
2805
+ if (message.creator !== "") {
2806
+ writer.uint32(10).string(message.creator);
2807
+ }
2808
+ if (message.stakeId !== BigInt(0)) {
2809
+ writer.uint32(16).uint64(message.stakeId);
2810
+ }
2811
+ return writer;
2812
+ },
2813
+ decode(input, length) {
2814
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2815
+ let end = length === undefined ? reader.len : reader.pos + length;
2816
+ const message = createBaseMsgReleasePostConviction();
2817
+ while (reader.pos < end) {
2818
+ const tag = reader.uint32();
2819
+ switch (tag >>> 3) {
2820
+ case 1:
2821
+ message.creator = reader.string();
2822
+ break;
2823
+ case 2:
2824
+ message.stakeId = reader.uint64();
2825
+ break;
2826
+ default:
2827
+ reader.skipType(tag & 7);
2828
+ break;
2829
+ }
2830
+ }
2831
+ return message;
2832
+ },
2833
+ fromPartial(object) {
2834
+ const message = createBaseMsgReleasePostConviction();
2835
+ message.creator = object.creator ?? "";
2836
+ message.stakeId = object.stakeId !== undefined && object.stakeId !== null ? BigInt(object.stakeId.toString()) : BigInt(0);
2837
+ return message;
2838
+ },
2839
+ fromAmino(object) {
2840
+ const message = createBaseMsgReleasePostConviction();
2841
+ if (object.creator !== undefined && object.creator !== null) {
2842
+ message.creator = object.creator;
2843
+ }
2844
+ if (object.stake_id !== undefined && object.stake_id !== null) {
2845
+ message.stakeId = BigInt(object.stake_id);
2846
+ }
2847
+ return message;
2848
+ },
2849
+ toAmino(message) {
2850
+ const obj = {};
2851
+ obj.creator = message.creator === "" ? undefined : message.creator;
2852
+ obj.stake_id = message.stakeId !== BigInt(0) ? message.stakeId?.toString() : undefined;
2853
+ return obj;
2854
+ },
2855
+ fromAminoMsg(object) {
2856
+ return MsgReleasePostConviction.fromAmino(object.value);
2857
+ },
2858
+ toAminoMsg(message) {
2859
+ return {
2860
+ type: "sparkdream/x/forum/MsgReleasePostConviction",
2861
+ value: MsgReleasePostConviction.toAmino(message)
2862
+ };
2863
+ },
2864
+ fromProtoMsg(message) {
2865
+ return MsgReleasePostConviction.decode(message.value);
2866
+ },
2867
+ toProto(message) {
2868
+ return MsgReleasePostConviction.encode(message).finish();
2869
+ },
2870
+ toProtoMsg(message) {
2871
+ return {
2872
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
2873
+ value: MsgReleasePostConviction.encode(message).finish()
2874
+ };
2875
+ }
2876
+ };
2877
+ function createBaseMsgReleasePostConvictionResponse() {
2878
+ return {};
2879
+ }
2880
+ /**
2881
+ * MsgReleasePostConvictionResponse defines the MsgReleasePostConviction response.
2882
+ * @name MsgReleasePostConvictionResponse
2883
+ * @package sparkdream.forum.v1
2884
+ * @see proto type: sparkdream.forum.v1.MsgReleasePostConvictionResponse
2885
+ */
2886
+ export const MsgReleasePostConvictionResponse = {
2887
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConvictionResponse",
2888
+ encode(_, writer = BinaryWriter.create()) {
2889
+ return writer;
2890
+ },
2891
+ decode(input, length) {
2892
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2893
+ let end = length === undefined ? reader.len : reader.pos + length;
2894
+ const message = createBaseMsgReleasePostConvictionResponse();
2895
+ while (reader.pos < end) {
2896
+ const tag = reader.uint32();
2897
+ switch (tag >>> 3) {
2898
+ default:
2899
+ reader.skipType(tag & 7);
2900
+ break;
2901
+ }
2902
+ }
2903
+ return message;
2904
+ },
2905
+ fromPartial(_) {
2906
+ const message = createBaseMsgReleasePostConvictionResponse();
2907
+ return message;
2908
+ },
2909
+ fromAmino(_) {
2910
+ const message = createBaseMsgReleasePostConvictionResponse();
2911
+ return message;
2912
+ },
2913
+ toAmino(_) {
2914
+ const obj = {};
2915
+ return obj;
2916
+ },
2917
+ fromAminoMsg(object) {
2918
+ return MsgReleasePostConvictionResponse.fromAmino(object.value);
2919
+ },
2920
+ fromProtoMsg(message) {
2921
+ return MsgReleasePostConvictionResponse.decode(message.value);
2922
+ },
2923
+ toProto(message) {
2924
+ return MsgReleasePostConvictionResponse.encode(message).finish();
2925
+ },
2926
+ toProtoMsg(message) {
2927
+ return {
2928
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConvictionResponse",
2929
+ value: MsgReleasePostConvictionResponse.encode(message).finish()
2930
+ };
2931
+ }
2932
+ };
2473
2933
  function createBaseMsgFlagPost() {
2474
2934
  return {
2475
2935
  creator: "",
@@ -1,5 +1,5 @@
1
- import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
2
- export const registry = [["/sparkdream.forum.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.forum.v1.MsgLockThread", MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", MsgDownvotePost], ["/sparkdream.forum.v1.MsgFlagPost", MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", MsgSetModerationPaused]];
1
+ import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgMakePostPermanent, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgStakePostConviction, MsgReleasePostConviction, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
2
+ export const registry = [["/sparkdream.forum.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.forum.v1.MsgMakePostPermanent", MsgMakePostPermanent], ["/sparkdream.forum.v1.MsgLockThread", MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", MsgDownvotePost], ["/sparkdream.forum.v1.MsgStakePostConviction", MsgStakePostConviction], ["/sparkdream.forum.v1.MsgReleasePostConviction", MsgReleasePostConviction], ["/sparkdream.forum.v1.MsgFlagPost", MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", MsgSetModerationPaused]];
3
3
  export const load = (protoRegistry) => {
4
4
  registry.forEach(([typeUrl, mod]) => {
5
5
  protoRegistry.register(typeUrl, mod);
@@ -61,6 +61,12 @@ export const MessageComposer = {
61
61
  value: MsgUnpinPost.encode(value).finish()
62
62
  };
63
63
  },
64
+ makePostPermanent(value) {
65
+ return {
66
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
67
+ value: MsgMakePostPermanent.encode(value).finish()
68
+ };
69
+ },
64
70
  lockThread(value) {
65
71
  return {
66
72
  typeUrl: "/sparkdream.forum.v1.MsgLockThread",
@@ -103,6 +109,18 @@ export const MessageComposer = {
103
109
  value: MsgDownvotePost.encode(value).finish()
104
110
  };
105
111
  },
112
+ stakePostConviction(value) {
113
+ return {
114
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
115
+ value: MsgStakePostConviction.encode(value).finish()
116
+ };
117
+ },
118
+ releasePostConviction(value) {
119
+ return {
120
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
121
+ value: MsgReleasePostConviction.encode(value).finish()
122
+ };
123
+ },
106
124
  flagPost(value) {
107
125
  return {
108
126
  typeUrl: "/sparkdream.forum.v1.MsgFlagPost",
@@ -279,6 +297,12 @@ export const MessageComposer = {
279
297
  value
280
298
  };
281
299
  },
300
+ makePostPermanent(value) {
301
+ return {
302
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
303
+ value
304
+ };
305
+ },
282
306
  lockThread(value) {
283
307
  return {
284
308
  typeUrl: "/sparkdream.forum.v1.MsgLockThread",
@@ -321,6 +345,18 @@ export const MessageComposer = {
321
345
  value
322
346
  };
323
347
  },
348
+ stakePostConviction(value) {
349
+ return {
350
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
351
+ value
352
+ };
353
+ },
354
+ releasePostConviction(value) {
355
+ return {
356
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
357
+ value
358
+ };
359
+ },
324
360
  flagPost(value) {
325
361
  return {
326
362
  typeUrl: "/sparkdream.forum.v1.MsgFlagPost",
@@ -497,6 +533,12 @@ export const MessageComposer = {
497
533
  value: MsgUnpinPost.fromPartial(value)
498
534
  };
499
535
  },
536
+ makePostPermanent(value) {
537
+ return {
538
+ typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
539
+ value: MsgMakePostPermanent.fromPartial(value)
540
+ };
541
+ },
500
542
  lockThread(value) {
501
543
  return {
502
544
  typeUrl: "/sparkdream.forum.v1.MsgLockThread",
@@ -539,6 +581,18 @@ export const MessageComposer = {
539
581
  value: MsgDownvotePost.fromPartial(value)
540
582
  };
541
583
  },
584
+ stakePostConviction(value) {
585
+ return {
586
+ typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
587
+ value: MsgStakePostConviction.fromPartial(value)
588
+ };
589
+ },
590
+ releasePostConviction(value) {
591
+ return {
592
+ typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
593
+ value: MsgReleasePostConviction.fromPartial(value)
594
+ };
595
+ },
542
596
  flagPost(value) {
543
597
  return {
544
598
  typeUrl: "/sparkdream.forum.v1.MsgFlagPost",
@@ -1,5 +1,5 @@
1
1
  import { BinaryReader } from "../../../binary";
2
- import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgEditPost, MsgEditPostResponse, MsgDeletePost, MsgDeletePostResponse, MsgFreezeThread, MsgFreezeThreadResponse, MsgUnarchiveThread, MsgUnarchiveThreadResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgLockThread, MsgLockThreadResponse, MsgUnlockThread, MsgUnlockThreadResponse, MsgMoveThread, MsgMoveThreadResponse, MsgFollowThread, MsgFollowThreadResponse, MsgUnfollowThread, MsgUnfollowThreadResponse, MsgUpvotePost, MsgUpvotePostResponse, MsgDownvotePost, MsgDownvotePostResponse, MsgFlagPost, MsgFlagPostResponse, MsgDismissFlags, MsgDismissFlagsResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgAppealPost, MsgAppealPostResponse, MsgAppealThreadLock, MsgAppealThreadLockResponse, MsgAppealThreadMove, MsgAppealThreadMoveResponse, MsgCreateBounty, MsgCreateBountyResponse, MsgAwardBounty, MsgAwardBountyResponse, MsgIncreaseBounty, MsgIncreaseBountyResponse, MsgCancelBounty, MsgCancelBountyResponse, MsgAssignBountyToReply, MsgAssignBountyToReplyResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse, MsgDisputePin, MsgDisputePinResponse, MsgMarkAcceptedReply, MsgMarkAcceptedReplyResponse, MsgConfirmProposedReply, MsgConfirmProposedReplyResponse, MsgRejectProposedReply, MsgRejectProposedReplyResponse, MsgSetForumPaused, MsgSetForumPausedResponse, MsgSetModerationPaused, MsgSetModerationPausedResponse } from "./tx";
2
+ import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgEditPost, MsgEditPostResponse, MsgDeletePost, MsgDeletePostResponse, MsgFreezeThread, MsgFreezeThreadResponse, MsgUnarchiveThread, MsgUnarchiveThreadResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgMakePostPermanent, MsgMakePostPermanentResponse, MsgLockThread, MsgLockThreadResponse, MsgUnlockThread, MsgUnlockThreadResponse, MsgMoveThread, MsgMoveThreadResponse, MsgFollowThread, MsgFollowThreadResponse, MsgUnfollowThread, MsgUnfollowThreadResponse, MsgUpvotePost, MsgUpvotePostResponse, MsgDownvotePost, MsgDownvotePostResponse, MsgStakePostConviction, MsgStakePostConvictionResponse, MsgReleasePostConviction, MsgReleasePostConvictionResponse, MsgFlagPost, MsgFlagPostResponse, MsgDismissFlags, MsgDismissFlagsResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgAppealPost, MsgAppealPostResponse, MsgAppealThreadLock, MsgAppealThreadLockResponse, MsgAppealThreadMove, MsgAppealThreadMoveResponse, MsgCreateBounty, MsgCreateBountyResponse, MsgAwardBounty, MsgAwardBountyResponse, MsgIncreaseBounty, MsgIncreaseBountyResponse, MsgCancelBounty, MsgCancelBountyResponse, MsgAssignBountyToReply, MsgAssignBountyToReplyResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse, MsgDisputePin, MsgDisputePinResponse, MsgMarkAcceptedReply, MsgMarkAcceptedReplyResponse, MsgConfirmProposedReply, MsgConfirmProposedReplyResponse, MsgRejectProposedReply, MsgRejectProposedReplyResponse, MsgSetForumPaused, MsgSetForumPausedResponse, MsgSetModerationPaused, MsgSetModerationPausedResponse } from "./tx";
3
3
  export class MsgClientImpl {
4
4
  rpc;
5
5
  constructor(rpc) {
@@ -61,6 +61,17 @@ export class MsgClientImpl {
61
61
  const promise = this.rpc.request("sparkdream.forum.v1.Msg", "UnpinPost", data);
62
62
  return promise.then(data => MsgUnpinPostResponse.decode(new BinaryReader(data)));
63
63
  };
64
+ /* MakePostPermanent promotes an ephemeral post (root post or reply) to
65
+ permanent by clearing its expiration_time and dropping the matching
66
+ ExpirationQueue / EphemeralByAuthor entries. Strict separation from pin:
67
+ pin is display-only and now refuses ephemeral targets, MakePermanent is
68
+ the lifecycle change. Gated on make_permanent_min_trust_level (default
69
+ PROVISIONAL) and consumes one slot from the daily post-rate limit. */
70
+ makePostPermanent = async (request) => {
71
+ const data = MsgMakePostPermanent.encode(request).finish();
72
+ const promise = this.rpc.request("sparkdream.forum.v1.Msg", "MakePostPermanent", data);
73
+ return promise.then(data => MsgMakePostPermanentResponse.decode(new BinaryReader(data)));
74
+ };
64
75
  /* LockThread defines the LockThread RPC. */
65
76
  lockThread = async (request) => {
66
77
  const data = MsgLockThread.encode(request).finish();
@@ -103,6 +114,24 @@ export class MsgClientImpl {
103
114
  const promise = this.rpc.request("sparkdream.forum.v1.Msg", "DownvotePost", data);
104
115
  return promise.then(data => MsgDownvotePostResponse.decode(new BinaryReader(data)));
105
116
  };
117
+ /* StakePostConviction opens a PostConvictionStake: locks the staker's DREAM
118
+ and starts EndBlocker-driven per-tag rep accrual for the post's author.
119
+ Caller must be ESTABLISHED+, must not be the post's author, and must
120
+ commit at least Params.min_post_conviction_stake DREAM. */
121
+ stakePostConviction = async (request) => {
122
+ const data = MsgStakePostConviction.encode(request).finish();
123
+ const promise = this.rpc.request("sparkdream.forum.v1.Msg", "StakePostConviction", data);
124
+ return promise.then(data => MsgStakePostConvictionResponse.decode(new BinaryReader(data)));
125
+ };
126
+ /* ReleasePostConviction closes a previously-opened PostConvictionStake
127
+ after post_conviction_lock_seconds has elapsed. The non-slashed portion
128
+ of the staker's DREAM is unlocked; any rep credited to the author stays
129
+ (subject to the slash path on confirmed hide). */
130
+ releasePostConviction = async (request) => {
131
+ const data = MsgReleasePostConviction.encode(request).finish();
132
+ const promise = this.rpc.request("sparkdream.forum.v1.Msg", "ReleasePostConviction", data);
133
+ return promise.then(data => MsgReleasePostConvictionResponse.decode(new BinaryReader(data)));
134
+ };
106
135
  /* FlagPost defines the FlagPost RPC. */
107
136
  flagPost = async (request) => {
108
137
  const data = MsgFlagPost.encode(request).finish();