@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
@@ -2304,6 +2304,151 @@ export const MsgRemoveReactionResponse = {
2304
2304
  };
2305
2305
  }
2306
2306
  };
2307
+ function createBaseMsgMakePostPermanent() {
2308
+ return {
2309
+ creator: "",
2310
+ id: BigInt(0)
2311
+ };
2312
+ }
2313
+ /**
2314
+ * MsgMakePostPermanent promotes an ephemeral post to permanent. No-op if
2315
+ * the post is already permanent.
2316
+ * @name MsgMakePostPermanent
2317
+ * @package sparkdream.blog.v1
2318
+ * @see proto type: sparkdream.blog.v1.MsgMakePostPermanent
2319
+ */
2320
+ export const MsgMakePostPermanent = {
2321
+ typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanent",
2322
+ aminoType: "sparkdream/x/blog/MsgMakePostPermanent",
2323
+ encode(message, writer = BinaryWriter.create()) {
2324
+ if (message.creator !== "") {
2325
+ writer.uint32(10).string(message.creator);
2326
+ }
2327
+ if (message.id !== BigInt(0)) {
2328
+ writer.uint32(16).uint64(message.id);
2329
+ }
2330
+ return writer;
2331
+ },
2332
+ decode(input, length) {
2333
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2334
+ let end = length === undefined ? reader.len : reader.pos + length;
2335
+ const message = createBaseMsgMakePostPermanent();
2336
+ while (reader.pos < end) {
2337
+ const tag = reader.uint32();
2338
+ switch (tag >>> 3) {
2339
+ case 1:
2340
+ message.creator = reader.string();
2341
+ break;
2342
+ case 2:
2343
+ message.id = reader.uint64();
2344
+ break;
2345
+ default:
2346
+ reader.skipType(tag & 7);
2347
+ break;
2348
+ }
2349
+ }
2350
+ return message;
2351
+ },
2352
+ fromPartial(object) {
2353
+ const message = createBaseMsgMakePostPermanent();
2354
+ message.creator = object.creator ?? "";
2355
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
2356
+ return message;
2357
+ },
2358
+ fromAmino(object) {
2359
+ const message = createBaseMsgMakePostPermanent();
2360
+ if (object.creator !== undefined && object.creator !== null) {
2361
+ message.creator = object.creator;
2362
+ }
2363
+ if (object.id !== undefined && object.id !== null) {
2364
+ message.id = BigInt(object.id);
2365
+ }
2366
+ return message;
2367
+ },
2368
+ toAmino(message) {
2369
+ const obj = {};
2370
+ obj.creator = message.creator === "" ? undefined : message.creator;
2371
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
2372
+ return obj;
2373
+ },
2374
+ fromAminoMsg(object) {
2375
+ return MsgMakePostPermanent.fromAmino(object.value);
2376
+ },
2377
+ toAminoMsg(message) {
2378
+ return {
2379
+ type: "sparkdream/x/blog/MsgMakePostPermanent",
2380
+ value: MsgMakePostPermanent.toAmino(message)
2381
+ };
2382
+ },
2383
+ fromProtoMsg(message) {
2384
+ return MsgMakePostPermanent.decode(message.value);
2385
+ },
2386
+ toProto(message) {
2387
+ return MsgMakePostPermanent.encode(message).finish();
2388
+ },
2389
+ toProtoMsg(message) {
2390
+ return {
2391
+ typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanent",
2392
+ value: MsgMakePostPermanent.encode(message).finish()
2393
+ };
2394
+ }
2395
+ };
2396
+ function createBaseMsgMakePostPermanentResponse() {
2397
+ return {};
2398
+ }
2399
+ /**
2400
+ * MsgMakePostPermanentResponse defines the response.
2401
+ * @name MsgMakePostPermanentResponse
2402
+ * @package sparkdream.blog.v1
2403
+ * @see proto type: sparkdream.blog.v1.MsgMakePostPermanentResponse
2404
+ */
2405
+ export const MsgMakePostPermanentResponse = {
2406
+ typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanentResponse",
2407
+ encode(_, writer = BinaryWriter.create()) {
2408
+ return writer;
2409
+ },
2410
+ decode(input, length) {
2411
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2412
+ let end = length === undefined ? reader.len : reader.pos + length;
2413
+ const message = createBaseMsgMakePostPermanentResponse();
2414
+ while (reader.pos < end) {
2415
+ const tag = reader.uint32();
2416
+ switch (tag >>> 3) {
2417
+ default:
2418
+ reader.skipType(tag & 7);
2419
+ break;
2420
+ }
2421
+ }
2422
+ return message;
2423
+ },
2424
+ fromPartial(_) {
2425
+ const message = createBaseMsgMakePostPermanentResponse();
2426
+ return message;
2427
+ },
2428
+ fromAmino(_) {
2429
+ const message = createBaseMsgMakePostPermanentResponse();
2430
+ return message;
2431
+ },
2432
+ toAmino(_) {
2433
+ const obj = {};
2434
+ return obj;
2435
+ },
2436
+ fromAminoMsg(object) {
2437
+ return MsgMakePostPermanentResponse.fromAmino(object.value);
2438
+ },
2439
+ fromProtoMsg(message) {
2440
+ return MsgMakePostPermanentResponse.decode(message.value);
2441
+ },
2442
+ toProto(message) {
2443
+ return MsgMakePostPermanentResponse.encode(message).finish();
2444
+ },
2445
+ toProtoMsg(message) {
2446
+ return {
2447
+ typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanentResponse",
2448
+ value: MsgMakePostPermanentResponse.encode(message).finish()
2449
+ };
2450
+ }
2451
+ };
2307
2452
  function createBaseMsgPinPost() {
2308
2453
  return {
2309
2454
  creator: "",
@@ -2311,7 +2456,9 @@ function createBaseMsgPinPost() {
2311
2456
  };
2312
2457
  }
2313
2458
  /**
2314
- * MsgPinPost defines the MsgPinPost message.
2459
+ * MsgPinPost sets the pinned marker on a permanent post (display-only). The
2460
+ * post must already be permanent; promote ephemeral content with
2461
+ * MsgMakePostPermanent first.
2315
2462
  * @name MsgPinPost
2316
2463
  * @package sparkdream.blog.v1
2317
2464
  * @see proto type: sparkdream.blog.v1.MsgPinPost
@@ -2448,6 +2595,150 @@ export const MsgPinPostResponse = {
2448
2595
  };
2449
2596
  }
2450
2597
  };
2598
+ function createBaseMsgMakeReplyPermanent() {
2599
+ return {
2600
+ creator: "",
2601
+ id: BigInt(0)
2602
+ };
2603
+ }
2604
+ /**
2605
+ * MsgMakeReplyPermanent promotes an ephemeral reply to permanent.
2606
+ * @name MsgMakeReplyPermanent
2607
+ * @package sparkdream.blog.v1
2608
+ * @see proto type: sparkdream.blog.v1.MsgMakeReplyPermanent
2609
+ */
2610
+ export const MsgMakeReplyPermanent = {
2611
+ typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanent",
2612
+ aminoType: "sparkdream/x/blog/MsgMakeReplyPermanent",
2613
+ encode(message, writer = BinaryWriter.create()) {
2614
+ if (message.creator !== "") {
2615
+ writer.uint32(10).string(message.creator);
2616
+ }
2617
+ if (message.id !== BigInt(0)) {
2618
+ writer.uint32(16).uint64(message.id);
2619
+ }
2620
+ return writer;
2621
+ },
2622
+ decode(input, length) {
2623
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2624
+ let end = length === undefined ? reader.len : reader.pos + length;
2625
+ const message = createBaseMsgMakeReplyPermanent();
2626
+ while (reader.pos < end) {
2627
+ const tag = reader.uint32();
2628
+ switch (tag >>> 3) {
2629
+ case 1:
2630
+ message.creator = reader.string();
2631
+ break;
2632
+ case 2:
2633
+ message.id = reader.uint64();
2634
+ break;
2635
+ default:
2636
+ reader.skipType(tag & 7);
2637
+ break;
2638
+ }
2639
+ }
2640
+ return message;
2641
+ },
2642
+ fromPartial(object) {
2643
+ const message = createBaseMsgMakeReplyPermanent();
2644
+ message.creator = object.creator ?? "";
2645
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
2646
+ return message;
2647
+ },
2648
+ fromAmino(object) {
2649
+ const message = createBaseMsgMakeReplyPermanent();
2650
+ if (object.creator !== undefined && object.creator !== null) {
2651
+ message.creator = object.creator;
2652
+ }
2653
+ if (object.id !== undefined && object.id !== null) {
2654
+ message.id = BigInt(object.id);
2655
+ }
2656
+ return message;
2657
+ },
2658
+ toAmino(message) {
2659
+ const obj = {};
2660
+ obj.creator = message.creator === "" ? undefined : message.creator;
2661
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
2662
+ return obj;
2663
+ },
2664
+ fromAminoMsg(object) {
2665
+ return MsgMakeReplyPermanent.fromAmino(object.value);
2666
+ },
2667
+ toAminoMsg(message) {
2668
+ return {
2669
+ type: "sparkdream/x/blog/MsgMakeReplyPermanent",
2670
+ value: MsgMakeReplyPermanent.toAmino(message)
2671
+ };
2672
+ },
2673
+ fromProtoMsg(message) {
2674
+ return MsgMakeReplyPermanent.decode(message.value);
2675
+ },
2676
+ toProto(message) {
2677
+ return MsgMakeReplyPermanent.encode(message).finish();
2678
+ },
2679
+ toProtoMsg(message) {
2680
+ return {
2681
+ typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanent",
2682
+ value: MsgMakeReplyPermanent.encode(message).finish()
2683
+ };
2684
+ }
2685
+ };
2686
+ function createBaseMsgMakeReplyPermanentResponse() {
2687
+ return {};
2688
+ }
2689
+ /**
2690
+ * MsgMakeReplyPermanentResponse defines the response.
2691
+ * @name MsgMakeReplyPermanentResponse
2692
+ * @package sparkdream.blog.v1
2693
+ * @see proto type: sparkdream.blog.v1.MsgMakeReplyPermanentResponse
2694
+ */
2695
+ export const MsgMakeReplyPermanentResponse = {
2696
+ typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanentResponse",
2697
+ encode(_, writer = BinaryWriter.create()) {
2698
+ return writer;
2699
+ },
2700
+ decode(input, length) {
2701
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2702
+ let end = length === undefined ? reader.len : reader.pos + length;
2703
+ const message = createBaseMsgMakeReplyPermanentResponse();
2704
+ while (reader.pos < end) {
2705
+ const tag = reader.uint32();
2706
+ switch (tag >>> 3) {
2707
+ default:
2708
+ reader.skipType(tag & 7);
2709
+ break;
2710
+ }
2711
+ }
2712
+ return message;
2713
+ },
2714
+ fromPartial(_) {
2715
+ const message = createBaseMsgMakeReplyPermanentResponse();
2716
+ return message;
2717
+ },
2718
+ fromAmino(_) {
2719
+ const message = createBaseMsgMakeReplyPermanentResponse();
2720
+ return message;
2721
+ },
2722
+ toAmino(_) {
2723
+ const obj = {};
2724
+ return obj;
2725
+ },
2726
+ fromAminoMsg(object) {
2727
+ return MsgMakeReplyPermanentResponse.fromAmino(object.value);
2728
+ },
2729
+ fromProtoMsg(message) {
2730
+ return MsgMakeReplyPermanentResponse.decode(message.value);
2731
+ },
2732
+ toProto(message) {
2733
+ return MsgMakeReplyPermanentResponse.encode(message).finish();
2734
+ },
2735
+ toProtoMsg(message) {
2736
+ return {
2737
+ typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanentResponse",
2738
+ value: MsgMakeReplyPermanentResponse.encode(message).finish()
2739
+ };
2740
+ }
2741
+ };
2451
2742
  function createBaseMsgPinReply() {
2452
2743
  return {
2453
2744
  creator: "",
@@ -2455,7 +2746,9 @@ function createBaseMsgPinReply() {
2455
2746
  };
2456
2747
  }
2457
2748
  /**
2458
- * MsgPinReply defines the MsgPinReply message.
2749
+ * MsgPinReply sets the pinned marker on a permanent reply. The reply must
2750
+ * already be permanent; promote ephemeral content with MsgMakeReplyPermanent
2751
+ * first.
2459
2752
  * @name MsgPinReply
2460
2753
  * @package sparkdream.blog.v1
2461
2754
  * @see proto type: sparkdream.blog.v1.MsgPinReply
@@ -2592,3 +2885,291 @@ export const MsgPinReplyResponse = {
2592
2885
  };
2593
2886
  }
2594
2887
  };
2888
+ function createBaseMsgUnpinPost() {
2889
+ return {
2890
+ creator: "",
2891
+ id: BigInt(0)
2892
+ };
2893
+ }
2894
+ /**
2895
+ * MsgUnpinPost defines the MsgUnpinPost message.
2896
+ * @name MsgUnpinPost
2897
+ * @package sparkdream.blog.v1
2898
+ * @see proto type: sparkdream.blog.v1.MsgUnpinPost
2899
+ */
2900
+ export const MsgUnpinPost = {
2901
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinPost",
2902
+ aminoType: "sparkdream/x/blog/MsgUnpinPost",
2903
+ encode(message, writer = BinaryWriter.create()) {
2904
+ if (message.creator !== "") {
2905
+ writer.uint32(10).string(message.creator);
2906
+ }
2907
+ if (message.id !== BigInt(0)) {
2908
+ writer.uint32(16).uint64(message.id);
2909
+ }
2910
+ return writer;
2911
+ },
2912
+ decode(input, length) {
2913
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2914
+ let end = length === undefined ? reader.len : reader.pos + length;
2915
+ const message = createBaseMsgUnpinPost();
2916
+ while (reader.pos < end) {
2917
+ const tag = reader.uint32();
2918
+ switch (tag >>> 3) {
2919
+ case 1:
2920
+ message.creator = reader.string();
2921
+ break;
2922
+ case 2:
2923
+ message.id = reader.uint64();
2924
+ break;
2925
+ default:
2926
+ reader.skipType(tag & 7);
2927
+ break;
2928
+ }
2929
+ }
2930
+ return message;
2931
+ },
2932
+ fromPartial(object) {
2933
+ const message = createBaseMsgUnpinPost();
2934
+ message.creator = object.creator ?? "";
2935
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
2936
+ return message;
2937
+ },
2938
+ fromAmino(object) {
2939
+ const message = createBaseMsgUnpinPost();
2940
+ if (object.creator !== undefined && object.creator !== null) {
2941
+ message.creator = object.creator;
2942
+ }
2943
+ if (object.id !== undefined && object.id !== null) {
2944
+ message.id = BigInt(object.id);
2945
+ }
2946
+ return message;
2947
+ },
2948
+ toAmino(message) {
2949
+ const obj = {};
2950
+ obj.creator = message.creator === "" ? undefined : message.creator;
2951
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
2952
+ return obj;
2953
+ },
2954
+ fromAminoMsg(object) {
2955
+ return MsgUnpinPost.fromAmino(object.value);
2956
+ },
2957
+ toAminoMsg(message) {
2958
+ return {
2959
+ type: "sparkdream/x/blog/MsgUnpinPost",
2960
+ value: MsgUnpinPost.toAmino(message)
2961
+ };
2962
+ },
2963
+ fromProtoMsg(message) {
2964
+ return MsgUnpinPost.decode(message.value);
2965
+ },
2966
+ toProto(message) {
2967
+ return MsgUnpinPost.encode(message).finish();
2968
+ },
2969
+ toProtoMsg(message) {
2970
+ return {
2971
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinPost",
2972
+ value: MsgUnpinPost.encode(message).finish()
2973
+ };
2974
+ }
2975
+ };
2976
+ function createBaseMsgUnpinPostResponse() {
2977
+ return {};
2978
+ }
2979
+ /**
2980
+ * MsgUnpinPostResponse defines the MsgUnpinPostResponse message.
2981
+ * @name MsgUnpinPostResponse
2982
+ * @package sparkdream.blog.v1
2983
+ * @see proto type: sparkdream.blog.v1.MsgUnpinPostResponse
2984
+ */
2985
+ export const MsgUnpinPostResponse = {
2986
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinPostResponse",
2987
+ encode(_, writer = BinaryWriter.create()) {
2988
+ return writer;
2989
+ },
2990
+ decode(input, length) {
2991
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2992
+ let end = length === undefined ? reader.len : reader.pos + length;
2993
+ const message = createBaseMsgUnpinPostResponse();
2994
+ while (reader.pos < end) {
2995
+ const tag = reader.uint32();
2996
+ switch (tag >>> 3) {
2997
+ default:
2998
+ reader.skipType(tag & 7);
2999
+ break;
3000
+ }
3001
+ }
3002
+ return message;
3003
+ },
3004
+ fromPartial(_) {
3005
+ const message = createBaseMsgUnpinPostResponse();
3006
+ return message;
3007
+ },
3008
+ fromAmino(_) {
3009
+ const message = createBaseMsgUnpinPostResponse();
3010
+ return message;
3011
+ },
3012
+ toAmino(_) {
3013
+ const obj = {};
3014
+ return obj;
3015
+ },
3016
+ fromAminoMsg(object) {
3017
+ return MsgUnpinPostResponse.fromAmino(object.value);
3018
+ },
3019
+ fromProtoMsg(message) {
3020
+ return MsgUnpinPostResponse.decode(message.value);
3021
+ },
3022
+ toProto(message) {
3023
+ return MsgUnpinPostResponse.encode(message).finish();
3024
+ },
3025
+ toProtoMsg(message) {
3026
+ return {
3027
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinPostResponse",
3028
+ value: MsgUnpinPostResponse.encode(message).finish()
3029
+ };
3030
+ }
3031
+ };
3032
+ function createBaseMsgUnpinReply() {
3033
+ return {
3034
+ creator: "",
3035
+ id: BigInt(0)
3036
+ };
3037
+ }
3038
+ /**
3039
+ * MsgUnpinReply defines the MsgUnpinReply message.
3040
+ * @name MsgUnpinReply
3041
+ * @package sparkdream.blog.v1
3042
+ * @see proto type: sparkdream.blog.v1.MsgUnpinReply
3043
+ */
3044
+ export const MsgUnpinReply = {
3045
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinReply",
3046
+ aminoType: "sparkdream/x/blog/MsgUnpinReply",
3047
+ encode(message, writer = BinaryWriter.create()) {
3048
+ if (message.creator !== "") {
3049
+ writer.uint32(10).string(message.creator);
3050
+ }
3051
+ if (message.id !== BigInt(0)) {
3052
+ writer.uint32(16).uint64(message.id);
3053
+ }
3054
+ return writer;
3055
+ },
3056
+ decode(input, length) {
3057
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3058
+ let end = length === undefined ? reader.len : reader.pos + length;
3059
+ const message = createBaseMsgUnpinReply();
3060
+ while (reader.pos < end) {
3061
+ const tag = reader.uint32();
3062
+ switch (tag >>> 3) {
3063
+ case 1:
3064
+ message.creator = reader.string();
3065
+ break;
3066
+ case 2:
3067
+ message.id = reader.uint64();
3068
+ break;
3069
+ default:
3070
+ reader.skipType(tag & 7);
3071
+ break;
3072
+ }
3073
+ }
3074
+ return message;
3075
+ },
3076
+ fromPartial(object) {
3077
+ const message = createBaseMsgUnpinReply();
3078
+ message.creator = object.creator ?? "";
3079
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
3080
+ return message;
3081
+ },
3082
+ fromAmino(object) {
3083
+ const message = createBaseMsgUnpinReply();
3084
+ if (object.creator !== undefined && object.creator !== null) {
3085
+ message.creator = object.creator;
3086
+ }
3087
+ if (object.id !== undefined && object.id !== null) {
3088
+ message.id = BigInt(object.id);
3089
+ }
3090
+ return message;
3091
+ },
3092
+ toAmino(message) {
3093
+ const obj = {};
3094
+ obj.creator = message.creator === "" ? undefined : message.creator;
3095
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
3096
+ return obj;
3097
+ },
3098
+ fromAminoMsg(object) {
3099
+ return MsgUnpinReply.fromAmino(object.value);
3100
+ },
3101
+ toAminoMsg(message) {
3102
+ return {
3103
+ type: "sparkdream/x/blog/MsgUnpinReply",
3104
+ value: MsgUnpinReply.toAmino(message)
3105
+ };
3106
+ },
3107
+ fromProtoMsg(message) {
3108
+ return MsgUnpinReply.decode(message.value);
3109
+ },
3110
+ toProto(message) {
3111
+ return MsgUnpinReply.encode(message).finish();
3112
+ },
3113
+ toProtoMsg(message) {
3114
+ return {
3115
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinReply",
3116
+ value: MsgUnpinReply.encode(message).finish()
3117
+ };
3118
+ }
3119
+ };
3120
+ function createBaseMsgUnpinReplyResponse() {
3121
+ return {};
3122
+ }
3123
+ /**
3124
+ * MsgUnpinReplyResponse defines the MsgUnpinReplyResponse message.
3125
+ * @name MsgUnpinReplyResponse
3126
+ * @package sparkdream.blog.v1
3127
+ * @see proto type: sparkdream.blog.v1.MsgUnpinReplyResponse
3128
+ */
3129
+ export const MsgUnpinReplyResponse = {
3130
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinReplyResponse",
3131
+ encode(_, writer = BinaryWriter.create()) {
3132
+ return writer;
3133
+ },
3134
+ decode(input, length) {
3135
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3136
+ let end = length === undefined ? reader.len : reader.pos + length;
3137
+ const message = createBaseMsgUnpinReplyResponse();
3138
+ while (reader.pos < end) {
3139
+ const tag = reader.uint32();
3140
+ switch (tag >>> 3) {
3141
+ default:
3142
+ reader.skipType(tag & 7);
3143
+ break;
3144
+ }
3145
+ }
3146
+ return message;
3147
+ },
3148
+ fromPartial(_) {
3149
+ const message = createBaseMsgUnpinReplyResponse();
3150
+ return message;
3151
+ },
3152
+ fromAmino(_) {
3153
+ const message = createBaseMsgUnpinReplyResponse();
3154
+ return message;
3155
+ },
3156
+ toAmino(_) {
3157
+ const obj = {};
3158
+ return obj;
3159
+ },
3160
+ fromAminoMsg(object) {
3161
+ return MsgUnpinReplyResponse.fromAmino(object.value);
3162
+ },
3163
+ fromProtoMsg(message) {
3164
+ return MsgUnpinReplyResponse.decode(message.value);
3165
+ },
3166
+ toProto(message) {
3167
+ return MsgUnpinReplyResponse.encode(message).finish();
3168
+ },
3169
+ toProtoMsg(message) {
3170
+ return {
3171
+ typeUrl: "/sparkdream.blog.v1.MsgUnpinReplyResponse",
3172
+ value: MsgUnpinReplyResponse.encode(message).finish()
3173
+ };
3174
+ }
3175
+ };