@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.
- package/esm/sparkdream/blog/v1/params.js +62 -2
- package/esm/sparkdream/blog/v1/tx.js +583 -2
- package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
- package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
- package/esm/sparkdream/collect/v1/params.js +109 -1
- package/esm/sparkdream/collect/v1/tx.js +293 -1
- package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
- package/esm/sparkdream/collect/v1/types.js +135 -3
- package/esm/sparkdream/forum/v1/params.js +218 -2
- package/esm/sparkdream/forum/v1/post.js +25 -1
- package/esm/sparkdream/forum/v1/query.js +469 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +30 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +31 -1
- package/esm/sparkdream/forum/v1/tx.js +460 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
- package/esm/sparkdream/forum/v1/types.js +355 -0
- package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
- package/esm/sparkdream/rep/v1/member.js +209 -1
- package/esm/sparkdream/rep/v1/query.js +13 -22
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +52 -0
- package/sparkdream/blog/v1/params.js +62 -2
- package/sparkdream/blog/v1/tx.d.ts +381 -6
- package/sparkdream/blog/v1/tx.js +584 -3
- package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
- package/sparkdream/blog/v1/tx.registry.js +73 -1
- package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
- package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
- package/sparkdream/bundle.d.ts +474 -0
- package/sparkdream/collect/v1/params.d.ts +124 -0
- package/sparkdream/collect/v1/params.js +109 -1
- package/sparkdream/collect/v1/tx.d.ts +195 -3
- package/sparkdream/collect/v1/tx.js +294 -2
- package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
- package/sparkdream/collect/v1/tx.registry.js +37 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
- package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
- package/sparkdream/collect/v1/types.d.ts +112 -0
- package/sparkdream/collect/v1/types.js +135 -3
- package/sparkdream/forum/v1/params.d.ts +210 -0
- package/sparkdream/forum/v1/params.js +218 -2
- package/sparkdream/forum/v1/post.d.ts +28 -0
- package/sparkdream/forum/v1/post.js +25 -1
- package/sparkdream/forum/v1/query.d.ts +273 -0
- package/sparkdream/forum/v1/query.js +470 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +4 -1
- package/sparkdream/forum/v1/query.lcd.js +30 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +30 -0
- package/sparkdream/forum/v1/tx.d.ts +291 -0
- package/sparkdream/forum/v1/tx.js +462 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
- package/sparkdream/forum/v1/tx.registry.js +55 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/forum/v1/types.d.ts +247 -0
- package/sparkdream/forum/v1/types.js +356 -1
- package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
- package/sparkdream/forum/v1/user_rate_limit.js +41 -2
- package/sparkdream/rep/v1/member.d.ts +134 -0
- package/sparkdream/rep/v1/member.js +210 -2
- package/sparkdream/rep/v1/query.d.ts +2 -4
- package/sparkdream/rep/v1/query.js +13 -22
- package/sparkdream/rpc.query.d.ts +3 -0
|
@@ -45,7 +45,16 @@ function createBaseParams() {
|
|
|
45
45
|
sentinelDemotionCooldown: BigInt(0),
|
|
46
46
|
sentinelDemotionThreshold: "",
|
|
47
47
|
sentinelUnhideWindow: BigInt(0),
|
|
48
|
-
sentinelUnbondCooldown: BigInt(0)
|
|
48
|
+
sentinelUnbondCooldown: BigInt(0),
|
|
49
|
+
makePermanentMinTrustLevel: 0,
|
|
50
|
+
maxPromotionsPerBlock: 0,
|
|
51
|
+
authorRepSlash: "",
|
|
52
|
+
maxMakePermanentPerDay: BigInt(0),
|
|
53
|
+
minPostConvictionStake: "",
|
|
54
|
+
postConvictionLockSeconds: BigInt(0),
|
|
55
|
+
postConvictionStreamRatePerBlock: "",
|
|
56
|
+
maxForumRepPerTagPerEpoch: "",
|
|
57
|
+
postConvictionStakerSlashBps: BigInt(0)
|
|
49
58
|
};
|
|
50
59
|
}
|
|
51
60
|
/**
|
|
@@ -180,6 +189,33 @@ exports.Params = {
|
|
|
180
189
|
if (message.sentinelUnbondCooldown !== BigInt(0)) {
|
|
181
190
|
writer.uint32(376).int64(message.sentinelUnbondCooldown);
|
|
182
191
|
}
|
|
192
|
+
if (message.makePermanentMinTrustLevel !== 0) {
|
|
193
|
+
writer.uint32(384).uint32(message.makePermanentMinTrustLevel);
|
|
194
|
+
}
|
|
195
|
+
if (message.maxPromotionsPerBlock !== 0) {
|
|
196
|
+
writer.uint32(392).uint32(message.maxPromotionsPerBlock);
|
|
197
|
+
}
|
|
198
|
+
if (message.authorRepSlash !== "") {
|
|
199
|
+
writer.uint32(402).string(math_1.Decimal.fromUserInput(message.authorRepSlash, 18).atomics);
|
|
200
|
+
}
|
|
201
|
+
if (message.maxMakePermanentPerDay !== BigInt(0)) {
|
|
202
|
+
writer.uint32(408).uint64(message.maxMakePermanentPerDay);
|
|
203
|
+
}
|
|
204
|
+
if (message.minPostConvictionStake !== "") {
|
|
205
|
+
writer.uint32(482).string(message.minPostConvictionStake);
|
|
206
|
+
}
|
|
207
|
+
if (message.postConvictionLockSeconds !== BigInt(0)) {
|
|
208
|
+
writer.uint32(488).int64(message.postConvictionLockSeconds);
|
|
209
|
+
}
|
|
210
|
+
if (message.postConvictionStreamRatePerBlock !== "") {
|
|
211
|
+
writer.uint32(498).string(math_1.Decimal.fromUserInput(message.postConvictionStreamRatePerBlock, 18).atomics);
|
|
212
|
+
}
|
|
213
|
+
if (message.maxForumRepPerTagPerEpoch !== "") {
|
|
214
|
+
writer.uint32(506).string(math_1.Decimal.fromUserInput(message.maxForumRepPerTagPerEpoch, 18).atomics);
|
|
215
|
+
}
|
|
216
|
+
if (message.postConvictionStakerSlashBps !== BigInt(0)) {
|
|
217
|
+
writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
|
|
218
|
+
}
|
|
183
219
|
return writer;
|
|
184
220
|
},
|
|
185
221
|
decode(input, length) {
|
|
@@ -309,6 +345,33 @@ exports.Params = {
|
|
|
309
345
|
case 47:
|
|
310
346
|
message.sentinelUnbondCooldown = reader.int64();
|
|
311
347
|
break;
|
|
348
|
+
case 48:
|
|
349
|
+
message.makePermanentMinTrustLevel = reader.uint32();
|
|
350
|
+
break;
|
|
351
|
+
case 49:
|
|
352
|
+
message.maxPromotionsPerBlock = reader.uint32();
|
|
353
|
+
break;
|
|
354
|
+
case 50:
|
|
355
|
+
message.authorRepSlash = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
356
|
+
break;
|
|
357
|
+
case 51:
|
|
358
|
+
message.maxMakePermanentPerDay = reader.uint64();
|
|
359
|
+
break;
|
|
360
|
+
case 60:
|
|
361
|
+
message.minPostConvictionStake = reader.string();
|
|
362
|
+
break;
|
|
363
|
+
case 61:
|
|
364
|
+
message.postConvictionLockSeconds = reader.int64();
|
|
365
|
+
break;
|
|
366
|
+
case 62:
|
|
367
|
+
message.postConvictionStreamRatePerBlock = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
368
|
+
break;
|
|
369
|
+
case 63:
|
|
370
|
+
message.maxForumRepPerTagPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
371
|
+
break;
|
|
372
|
+
case 64:
|
|
373
|
+
message.postConvictionStakerSlashBps = reader.uint64();
|
|
374
|
+
break;
|
|
312
375
|
default:
|
|
313
376
|
reader.skipType(tag & 7);
|
|
314
377
|
break;
|
|
@@ -358,6 +421,15 @@ exports.Params = {
|
|
|
358
421
|
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
359
422
|
message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
|
|
360
423
|
message.sentinelUnbondCooldown = object.sentinelUnbondCooldown !== undefined && object.sentinelUnbondCooldown !== null ? BigInt(object.sentinelUnbondCooldown.toString()) : BigInt(0);
|
|
424
|
+
message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
|
|
425
|
+
message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
|
|
426
|
+
message.authorRepSlash = object.authorRepSlash ?? "";
|
|
427
|
+
message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
|
|
428
|
+
message.minPostConvictionStake = object.minPostConvictionStake ?? "";
|
|
429
|
+
message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
|
|
430
|
+
message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
|
|
431
|
+
message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
|
|
432
|
+
message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
|
|
361
433
|
return message;
|
|
362
434
|
},
|
|
363
435
|
fromAmino(object) {
|
|
@@ -482,6 +554,33 @@ exports.Params = {
|
|
|
482
554
|
if (object.sentinel_unbond_cooldown !== undefined && object.sentinel_unbond_cooldown !== null) {
|
|
483
555
|
message.sentinelUnbondCooldown = BigInt(object.sentinel_unbond_cooldown);
|
|
484
556
|
}
|
|
557
|
+
if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
|
|
558
|
+
message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
|
|
559
|
+
}
|
|
560
|
+
if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
|
|
561
|
+
message.maxPromotionsPerBlock = object.max_promotions_per_block;
|
|
562
|
+
}
|
|
563
|
+
if (object.author_rep_slash !== undefined && object.author_rep_slash !== null) {
|
|
564
|
+
message.authorRepSlash = object.author_rep_slash;
|
|
565
|
+
}
|
|
566
|
+
if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
|
|
567
|
+
message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
|
|
568
|
+
}
|
|
569
|
+
if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
|
|
570
|
+
message.minPostConvictionStake = object.min_post_conviction_stake;
|
|
571
|
+
}
|
|
572
|
+
if (object.post_conviction_lock_seconds !== undefined && object.post_conviction_lock_seconds !== null) {
|
|
573
|
+
message.postConvictionLockSeconds = BigInt(object.post_conviction_lock_seconds);
|
|
574
|
+
}
|
|
575
|
+
if (object.post_conviction_stream_rate_per_block !== undefined && object.post_conviction_stream_rate_per_block !== null) {
|
|
576
|
+
message.postConvictionStreamRatePerBlock = object.post_conviction_stream_rate_per_block;
|
|
577
|
+
}
|
|
578
|
+
if (object.max_forum_rep_per_tag_per_epoch !== undefined && object.max_forum_rep_per_tag_per_epoch !== null) {
|
|
579
|
+
message.maxForumRepPerTagPerEpoch = object.max_forum_rep_per_tag_per_epoch;
|
|
580
|
+
}
|
|
581
|
+
if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
|
|
582
|
+
message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
|
|
583
|
+
}
|
|
485
584
|
return message;
|
|
486
585
|
},
|
|
487
586
|
toAmino(message) {
|
|
@@ -526,6 +625,15 @@ exports.Params = {
|
|
|
526
625
|
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
527
626
|
obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
|
|
528
627
|
obj.sentinel_unbond_cooldown = message.sentinelUnbondCooldown !== BigInt(0) ? message.sentinelUnbondCooldown?.toString() : undefined;
|
|
628
|
+
obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
|
|
629
|
+
obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
|
|
630
|
+
obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
|
|
631
|
+
obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
|
|
632
|
+
obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
|
|
633
|
+
obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
|
|
634
|
+
obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
|
|
635
|
+
obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
|
|
636
|
+
obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
|
|
529
637
|
return obj;
|
|
530
638
|
},
|
|
531
639
|
fromAminoMsg(object) {
|
|
@@ -588,7 +696,16 @@ function createBaseForumOperationalParams() {
|
|
|
588
696
|
sentinelDemotionCooldown: BigInt(0),
|
|
589
697
|
sentinelDemotionThreshold: "",
|
|
590
698
|
sentinelUnhideWindow: BigInt(0),
|
|
591
|
-
sentinelUnbondCooldown: BigInt(0)
|
|
699
|
+
sentinelUnbondCooldown: BigInt(0),
|
|
700
|
+
makePermanentMinTrustLevel: 0,
|
|
701
|
+
maxPromotionsPerBlock: 0,
|
|
702
|
+
authorRepSlash: "",
|
|
703
|
+
maxMakePermanentPerDay: BigInt(0),
|
|
704
|
+
minPostConvictionStake: "",
|
|
705
|
+
postConvictionLockSeconds: BigInt(0),
|
|
706
|
+
postConvictionStreamRatePerBlock: "",
|
|
707
|
+
maxForumRepPerTagPerEpoch: "",
|
|
708
|
+
postConvictionStakerSlashBps: BigInt(0)
|
|
592
709
|
};
|
|
593
710
|
}
|
|
594
711
|
/**
|
|
@@ -715,6 +832,33 @@ exports.ForumOperationalParams = {
|
|
|
715
832
|
if (message.sentinelUnbondCooldown !== BigInt(0)) {
|
|
716
833
|
writer.uint32(376).int64(message.sentinelUnbondCooldown);
|
|
717
834
|
}
|
|
835
|
+
if (message.makePermanentMinTrustLevel !== 0) {
|
|
836
|
+
writer.uint32(384).uint32(message.makePermanentMinTrustLevel);
|
|
837
|
+
}
|
|
838
|
+
if (message.maxPromotionsPerBlock !== 0) {
|
|
839
|
+
writer.uint32(392).uint32(message.maxPromotionsPerBlock);
|
|
840
|
+
}
|
|
841
|
+
if (message.authorRepSlash !== "") {
|
|
842
|
+
writer.uint32(402).string(math_1.Decimal.fromUserInput(message.authorRepSlash, 18).atomics);
|
|
843
|
+
}
|
|
844
|
+
if (message.maxMakePermanentPerDay !== BigInt(0)) {
|
|
845
|
+
writer.uint32(408).uint64(message.maxMakePermanentPerDay);
|
|
846
|
+
}
|
|
847
|
+
if (message.minPostConvictionStake !== "") {
|
|
848
|
+
writer.uint32(482).string(message.minPostConvictionStake);
|
|
849
|
+
}
|
|
850
|
+
if (message.postConvictionLockSeconds !== BigInt(0)) {
|
|
851
|
+
writer.uint32(488).int64(message.postConvictionLockSeconds);
|
|
852
|
+
}
|
|
853
|
+
if (message.postConvictionStreamRatePerBlock !== "") {
|
|
854
|
+
writer.uint32(498).string(math_1.Decimal.fromUserInput(message.postConvictionStreamRatePerBlock, 18).atomics);
|
|
855
|
+
}
|
|
856
|
+
if (message.maxForumRepPerTagPerEpoch !== "") {
|
|
857
|
+
writer.uint32(506).string(math_1.Decimal.fromUserInput(message.maxForumRepPerTagPerEpoch, 18).atomics);
|
|
858
|
+
}
|
|
859
|
+
if (message.postConvictionStakerSlashBps !== BigInt(0)) {
|
|
860
|
+
writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
|
|
861
|
+
}
|
|
718
862
|
return writer;
|
|
719
863
|
},
|
|
720
864
|
decode(input, length) {
|
|
@@ -835,6 +979,33 @@ exports.ForumOperationalParams = {
|
|
|
835
979
|
case 47:
|
|
836
980
|
message.sentinelUnbondCooldown = reader.int64();
|
|
837
981
|
break;
|
|
982
|
+
case 48:
|
|
983
|
+
message.makePermanentMinTrustLevel = reader.uint32();
|
|
984
|
+
break;
|
|
985
|
+
case 49:
|
|
986
|
+
message.maxPromotionsPerBlock = reader.uint32();
|
|
987
|
+
break;
|
|
988
|
+
case 50:
|
|
989
|
+
message.authorRepSlash = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
990
|
+
break;
|
|
991
|
+
case 51:
|
|
992
|
+
message.maxMakePermanentPerDay = reader.uint64();
|
|
993
|
+
break;
|
|
994
|
+
case 60:
|
|
995
|
+
message.minPostConvictionStake = reader.string();
|
|
996
|
+
break;
|
|
997
|
+
case 61:
|
|
998
|
+
message.postConvictionLockSeconds = reader.int64();
|
|
999
|
+
break;
|
|
1000
|
+
case 62:
|
|
1001
|
+
message.postConvictionStreamRatePerBlock = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1002
|
+
break;
|
|
1003
|
+
case 63:
|
|
1004
|
+
message.maxForumRepPerTagPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1005
|
+
break;
|
|
1006
|
+
case 64:
|
|
1007
|
+
message.postConvictionStakerSlashBps = reader.uint64();
|
|
1008
|
+
break;
|
|
838
1009
|
default:
|
|
839
1010
|
reader.skipType(tag & 7);
|
|
840
1011
|
break;
|
|
@@ -881,6 +1052,15 @@ exports.ForumOperationalParams = {
|
|
|
881
1052
|
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
882
1053
|
message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
|
|
883
1054
|
message.sentinelUnbondCooldown = object.sentinelUnbondCooldown !== undefined && object.sentinelUnbondCooldown !== null ? BigInt(object.sentinelUnbondCooldown.toString()) : BigInt(0);
|
|
1055
|
+
message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
|
|
1056
|
+
message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
|
|
1057
|
+
message.authorRepSlash = object.authorRepSlash ?? "";
|
|
1058
|
+
message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
|
|
1059
|
+
message.minPostConvictionStake = object.minPostConvictionStake ?? "";
|
|
1060
|
+
message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
|
|
1061
|
+
message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
|
|
1062
|
+
message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
|
|
1063
|
+
message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
|
|
884
1064
|
return message;
|
|
885
1065
|
},
|
|
886
1066
|
fromAmino(object) {
|
|
@@ -996,6 +1176,33 @@ exports.ForumOperationalParams = {
|
|
|
996
1176
|
if (object.sentinel_unbond_cooldown !== undefined && object.sentinel_unbond_cooldown !== null) {
|
|
997
1177
|
message.sentinelUnbondCooldown = BigInt(object.sentinel_unbond_cooldown);
|
|
998
1178
|
}
|
|
1179
|
+
if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
|
|
1180
|
+
message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
|
|
1181
|
+
}
|
|
1182
|
+
if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
|
|
1183
|
+
message.maxPromotionsPerBlock = object.max_promotions_per_block;
|
|
1184
|
+
}
|
|
1185
|
+
if (object.author_rep_slash !== undefined && object.author_rep_slash !== null) {
|
|
1186
|
+
message.authorRepSlash = object.author_rep_slash;
|
|
1187
|
+
}
|
|
1188
|
+
if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
|
|
1189
|
+
message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
|
|
1190
|
+
}
|
|
1191
|
+
if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
|
|
1192
|
+
message.minPostConvictionStake = object.min_post_conviction_stake;
|
|
1193
|
+
}
|
|
1194
|
+
if (object.post_conviction_lock_seconds !== undefined && object.post_conviction_lock_seconds !== null) {
|
|
1195
|
+
message.postConvictionLockSeconds = BigInt(object.post_conviction_lock_seconds);
|
|
1196
|
+
}
|
|
1197
|
+
if (object.post_conviction_stream_rate_per_block !== undefined && object.post_conviction_stream_rate_per_block !== null) {
|
|
1198
|
+
message.postConvictionStreamRatePerBlock = object.post_conviction_stream_rate_per_block;
|
|
1199
|
+
}
|
|
1200
|
+
if (object.max_forum_rep_per_tag_per_epoch !== undefined && object.max_forum_rep_per_tag_per_epoch !== null) {
|
|
1201
|
+
message.maxForumRepPerTagPerEpoch = object.max_forum_rep_per_tag_per_epoch;
|
|
1202
|
+
}
|
|
1203
|
+
if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
|
|
1204
|
+
message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
|
|
1205
|
+
}
|
|
999
1206
|
return message;
|
|
1000
1207
|
},
|
|
1001
1208
|
toAmino(message) {
|
|
@@ -1037,6 +1244,15 @@ exports.ForumOperationalParams = {
|
|
|
1037
1244
|
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
1038
1245
|
obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
|
|
1039
1246
|
obj.sentinel_unbond_cooldown = message.sentinelUnbondCooldown !== BigInt(0) ? message.sentinelUnbondCooldown?.toString() : undefined;
|
|
1247
|
+
obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
|
|
1248
|
+
obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
|
|
1249
|
+
obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
|
|
1250
|
+
obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
|
|
1251
|
+
obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
|
|
1252
|
+
obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
|
|
1253
|
+
obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
|
|
1254
|
+
obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
|
|
1255
|
+
obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
|
|
1040
1256
|
return obj;
|
|
1041
1257
|
},
|
|
1042
1258
|
fromAminoMsg(object) {
|
|
@@ -37,6 +37,20 @@ export interface Post {
|
|
|
37
37
|
contentType: ContentType;
|
|
38
38
|
initiativeId: bigint;
|
|
39
39
|
convictionSustained: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* promoted_by is the member who called MsgMakePostPermanent on this post
|
|
42
|
+
* (or reply). Empty if still ephemeral, or if it became permanent via
|
|
43
|
+
* author-admission auto-promotion / explicit author self-promotion. Used by
|
|
44
|
+
* ExpireHiddenPosts to issue a MemberWarning against the promoter on
|
|
45
|
+
* unappealed sentinel hide — they vouched for content the community
|
|
46
|
+
* rejected.
|
|
47
|
+
*/
|
|
48
|
+
promotedBy: string;
|
|
49
|
+
/**
|
|
50
|
+
* promoted_at is the block-time (unix seconds) at which promoted_by called
|
|
51
|
+
* MsgMakePostPermanent. Zero when promoted_by is empty.
|
|
52
|
+
*/
|
|
53
|
+
promotedAt: bigint;
|
|
40
54
|
}
|
|
41
55
|
export interface PostProtoMsg {
|
|
42
56
|
typeUrl: "/sparkdream.forum.v1.Post";
|
|
@@ -77,6 +91,20 @@ export interface PostAmino {
|
|
|
77
91
|
content_type?: ContentType;
|
|
78
92
|
initiative_id?: string;
|
|
79
93
|
conviction_sustained?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* promoted_by is the member who called MsgMakePostPermanent on this post
|
|
96
|
+
* (or reply). Empty if still ephemeral, or if it became permanent via
|
|
97
|
+
* author-admission auto-promotion / explicit author self-promotion. Used by
|
|
98
|
+
* ExpireHiddenPosts to issue a MemberWarning against the promoter on
|
|
99
|
+
* unappealed sentinel hide — they vouched for content the community
|
|
100
|
+
* rejected.
|
|
101
|
+
*/
|
|
102
|
+
promoted_by?: string;
|
|
103
|
+
/**
|
|
104
|
+
* promoted_at is the block-time (unix seconds) at which promoted_by called
|
|
105
|
+
* MsgMakePostPermanent. Zero when promoted_by is empty.
|
|
106
|
+
*/
|
|
107
|
+
promoted_at?: string;
|
|
80
108
|
}
|
|
81
109
|
export interface PostAminoMsg {
|
|
82
110
|
type: "/sparkdream.forum.v1.Post";
|
|
@@ -31,7 +31,9 @@ function createBasePost() {
|
|
|
31
31
|
tags: [],
|
|
32
32
|
contentType: 0,
|
|
33
33
|
initiativeId: BigInt(0),
|
|
34
|
-
convictionSustained: false
|
|
34
|
+
convictionSustained: false,
|
|
35
|
+
promotedBy: "",
|
|
36
|
+
promotedAt: BigInt(0)
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
@@ -127,6 +129,12 @@ exports.Post = {
|
|
|
127
129
|
if (message.convictionSustained === true) {
|
|
128
130
|
writer.uint32(264).bool(message.convictionSustained);
|
|
129
131
|
}
|
|
132
|
+
if (message.promotedBy !== "") {
|
|
133
|
+
writer.uint32(274).string(message.promotedBy);
|
|
134
|
+
}
|
|
135
|
+
if (message.promotedAt !== BigInt(0)) {
|
|
136
|
+
writer.uint32(280).int64(message.promotedAt);
|
|
137
|
+
}
|
|
130
138
|
return writer;
|
|
131
139
|
},
|
|
132
140
|
decode(input, length) {
|
|
@@ -220,6 +228,12 @@ exports.Post = {
|
|
|
220
228
|
case 33:
|
|
221
229
|
message.convictionSustained = reader.bool();
|
|
222
230
|
break;
|
|
231
|
+
case 34:
|
|
232
|
+
message.promotedBy = reader.string();
|
|
233
|
+
break;
|
|
234
|
+
case 35:
|
|
235
|
+
message.promotedAt = reader.int64();
|
|
236
|
+
break;
|
|
223
237
|
default:
|
|
224
238
|
reader.skipType(tag & 7);
|
|
225
239
|
break;
|
|
@@ -257,6 +271,8 @@ exports.Post = {
|
|
|
257
271
|
message.contentType = object.contentType ?? 0;
|
|
258
272
|
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
259
273
|
message.convictionSustained = object.convictionSustained ?? false;
|
|
274
|
+
message.promotedBy = object.promotedBy ?? "";
|
|
275
|
+
message.promotedAt = object.promotedAt !== undefined && object.promotedAt !== null ? BigInt(object.promotedAt.toString()) : BigInt(0);
|
|
260
276
|
return message;
|
|
261
277
|
},
|
|
262
278
|
fromAmino(object) {
|
|
@@ -343,6 +359,12 @@ exports.Post = {
|
|
|
343
359
|
if (object.conviction_sustained !== undefined && object.conviction_sustained !== null) {
|
|
344
360
|
message.convictionSustained = object.conviction_sustained;
|
|
345
361
|
}
|
|
362
|
+
if (object.promoted_by !== undefined && object.promoted_by !== null) {
|
|
363
|
+
message.promotedBy = object.promoted_by;
|
|
364
|
+
}
|
|
365
|
+
if (object.promoted_at !== undefined && object.promoted_at !== null) {
|
|
366
|
+
message.promotedAt = BigInt(object.promoted_at);
|
|
367
|
+
}
|
|
346
368
|
return message;
|
|
347
369
|
},
|
|
348
370
|
toAmino(message) {
|
|
@@ -380,6 +402,8 @@ exports.Post = {
|
|
|
380
402
|
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
381
403
|
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
382
404
|
obj.conviction_sustained = message.convictionSustained === false ? undefined : message.convictionSustained;
|
|
405
|
+
obj.promoted_by = message.promotedBy === "" ? undefined : message.promotedBy;
|
|
406
|
+
obj.promoted_at = message.promotedAt !== BigInt(0) ? message.promotedAt?.toString() : undefined;
|
|
383
407
|
return obj;
|
|
384
408
|
},
|
|
385
409
|
fromAminoMsg(object) {
|