@sparkdreamnft/sparkdreamjs 0.0.24 → 0.0.25

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.
@@ -58,7 +58,9 @@ function createBaseParams() {
58
58
  postConvictionLockSeconds: BigInt(0),
59
59
  postConvictionStreamRatePerBlock: "",
60
60
  maxForumRepPerTagPerEpoch: "",
61
- postConvictionStakerSlashBps: BigInt(0)
61
+ postConvictionStakerSlashBps: BigInt(0),
62
+ curationDreamReward: "",
63
+ acceptProposalTimeout: BigInt(0)
62
64
  };
63
65
  }
64
66
  /**
@@ -241,6 +243,12 @@ export const Params = {
241
243
  if (message.postConvictionStakerSlashBps !== BigInt(0)) {
242
244
  writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
243
245
  }
246
+ if (message.curationDreamReward !== "") {
247
+ writer.uint32(522).string(message.curationDreamReward);
248
+ }
249
+ if (message.acceptProposalTimeout !== BigInt(0)) {
250
+ writer.uint32(528).int64(message.acceptProposalTimeout);
251
+ }
244
252
  return writer;
245
253
  },
246
254
  decode(input, length) {
@@ -418,6 +426,12 @@ export const Params = {
418
426
  case 64:
419
427
  message.postConvictionStakerSlashBps = reader.uint64();
420
428
  break;
429
+ case 65:
430
+ message.curationDreamReward = reader.string();
431
+ break;
432
+ case 66:
433
+ message.acceptProposalTimeout = reader.int64();
434
+ break;
421
435
  default:
422
436
  reader.skipType(tag & 7);
423
437
  break;
@@ -483,6 +497,8 @@ export const Params = {
483
497
  message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
484
498
  message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
485
499
  message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
500
+ message.curationDreamReward = object.curationDreamReward ?? "";
501
+ message.acceptProposalTimeout = object.acceptProposalTimeout !== undefined && object.acceptProposalTimeout !== null ? BigInt(object.acceptProposalTimeout.toString()) : BigInt(0);
486
502
  return message;
487
503
  },
488
504
  fromAmino(object) {
@@ -655,6 +671,12 @@ export const Params = {
655
671
  if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
656
672
  message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
657
673
  }
674
+ if (object.curation_dream_reward !== undefined && object.curation_dream_reward !== null) {
675
+ message.curationDreamReward = object.curation_dream_reward;
676
+ }
677
+ if (object.accept_proposal_timeout !== undefined && object.accept_proposal_timeout !== null) {
678
+ message.acceptProposalTimeout = BigInt(object.accept_proposal_timeout);
679
+ }
658
680
  return message;
659
681
  },
660
682
  toAmino(message) {
@@ -715,6 +737,8 @@ export const Params = {
715
737
  obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
716
738
  obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
717
739
  obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
740
+ obj.curation_dream_reward = message.curationDreamReward === "" ? undefined : message.curationDreamReward;
741
+ obj.accept_proposal_timeout = message.acceptProposalTimeout !== BigInt(0) ? message.acceptProposalTimeout?.toString() : undefined;
718
742
  return obj;
719
743
  },
720
744
  fromAminoMsg(object) {
@@ -790,7 +814,9 @@ function createBaseForumOperationalParams() {
790
814
  postConvictionLockSeconds: BigInt(0),
791
815
  postConvictionStreamRatePerBlock: "",
792
816
  maxForumRepPerTagPerEpoch: "",
793
- postConvictionStakerSlashBps: BigInt(0)
817
+ postConvictionStakerSlashBps: BigInt(0),
818
+ curationDreamReward: "",
819
+ acceptProposalTimeout: BigInt(0)
794
820
  };
795
821
  }
796
822
  /**
@@ -956,6 +982,12 @@ export const ForumOperationalParams = {
956
982
  if (message.postConvictionStakerSlashBps !== BigInt(0)) {
957
983
  writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
958
984
  }
985
+ if (message.curationDreamReward !== "") {
986
+ writer.uint32(522).string(message.curationDreamReward);
987
+ }
988
+ if (message.acceptProposalTimeout !== BigInt(0)) {
989
+ writer.uint32(528).int64(message.acceptProposalTimeout);
990
+ }
959
991
  return writer;
960
992
  },
961
993
  decode(input, length) {
@@ -1115,6 +1147,12 @@ export const ForumOperationalParams = {
1115
1147
  case 64:
1116
1148
  message.postConvictionStakerSlashBps = reader.uint64();
1117
1149
  break;
1150
+ case 65:
1151
+ message.curationDreamReward = reader.string();
1152
+ break;
1153
+ case 66:
1154
+ message.acceptProposalTimeout = reader.int64();
1155
+ break;
1118
1156
  default:
1119
1157
  reader.skipType(tag & 7);
1120
1158
  break;
@@ -1174,6 +1212,8 @@ export const ForumOperationalParams = {
1174
1212
  message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
1175
1213
  message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
1176
1214
  message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
1215
+ message.curationDreamReward = object.curationDreamReward ?? "";
1216
+ message.acceptProposalTimeout = object.acceptProposalTimeout !== undefined && object.acceptProposalTimeout !== null ? BigInt(object.acceptProposalTimeout.toString()) : BigInt(0);
1177
1217
  return message;
1178
1218
  },
1179
1219
  fromAmino(object) {
@@ -1328,6 +1368,12 @@ export const ForumOperationalParams = {
1328
1368
  if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
1329
1369
  message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
1330
1370
  }
1371
+ if (object.curation_dream_reward !== undefined && object.curation_dream_reward !== null) {
1372
+ message.curationDreamReward = object.curation_dream_reward;
1373
+ }
1374
+ if (object.accept_proposal_timeout !== undefined && object.accept_proposal_timeout !== null) {
1375
+ message.acceptProposalTimeout = BigInt(object.accept_proposal_timeout);
1376
+ }
1331
1377
  return message;
1332
1378
  },
1333
1379
  toAmino(message) {
@@ -1382,6 +1428,8 @@ export const ForumOperationalParams = {
1382
1428
  obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
1383
1429
  obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
1384
1430
  obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
1431
+ obj.curation_dream_reward = message.curationDreamReward === "" ? undefined : message.curationDreamReward;
1432
+ obj.accept_proposal_timeout = message.acceptProposalTimeout !== BigInt(0) ? message.acceptProposalTimeout?.toString() : undefined;
1385
1433
  return obj;
1386
1434
  },
1387
1435
  fromAminoMsg(object) {
@@ -1,5 +1,101 @@
1
1
  //@ts-nocheck
2
2
  import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ function createBaseAccuracyEpochBucket() {
4
+ return {
5
+ epoch: BigInt(0),
6
+ upheld: BigInt(0),
7
+ overturned: BigInt(0)
8
+ };
9
+ }
10
+ /**
11
+ * AccuracyEpochBucket holds one reward-epoch's resolved-appeal tally for a
12
+ * sentinel. Stored in a fixed-size ring on SentinelActivity (slot index =
13
+ * epoch % SentinelAccuracyRingSize); the `epoch` stamp disambiguates a live
14
+ * slot from a stale one left behind by an inactive epoch.
15
+ * @name AccuracyEpochBucket
16
+ * @package sparkdream.forum.v1
17
+ * @see proto type: sparkdream.forum.v1.AccuracyEpochBucket
18
+ */
19
+ export const AccuracyEpochBucket = {
20
+ typeUrl: "/sparkdream.forum.v1.AccuracyEpochBucket",
21
+ encode(message, writer = BinaryWriter.create()) {
22
+ if (message.epoch !== BigInt(0)) {
23
+ writer.uint32(8).uint64(message.epoch);
24
+ }
25
+ if (message.upheld !== BigInt(0)) {
26
+ writer.uint32(16).uint64(message.upheld);
27
+ }
28
+ if (message.overturned !== BigInt(0)) {
29
+ writer.uint32(24).uint64(message.overturned);
30
+ }
31
+ return writer;
32
+ },
33
+ decode(input, length) {
34
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35
+ let end = length === undefined ? reader.len : reader.pos + length;
36
+ const message = createBaseAccuracyEpochBucket();
37
+ while (reader.pos < end) {
38
+ const tag = reader.uint32();
39
+ switch (tag >>> 3) {
40
+ case 1:
41
+ message.epoch = reader.uint64();
42
+ break;
43
+ case 2:
44
+ message.upheld = reader.uint64();
45
+ break;
46
+ case 3:
47
+ message.overturned = reader.uint64();
48
+ break;
49
+ default:
50
+ reader.skipType(tag & 7);
51
+ break;
52
+ }
53
+ }
54
+ return message;
55
+ },
56
+ fromPartial(object) {
57
+ const message = createBaseAccuracyEpochBucket();
58
+ message.epoch = object.epoch !== undefined && object.epoch !== null ? BigInt(object.epoch.toString()) : BigInt(0);
59
+ message.upheld = object.upheld !== undefined && object.upheld !== null ? BigInt(object.upheld.toString()) : BigInt(0);
60
+ message.overturned = object.overturned !== undefined && object.overturned !== null ? BigInt(object.overturned.toString()) : BigInt(0);
61
+ return message;
62
+ },
63
+ fromAmino(object) {
64
+ const message = createBaseAccuracyEpochBucket();
65
+ if (object.epoch !== undefined && object.epoch !== null) {
66
+ message.epoch = BigInt(object.epoch);
67
+ }
68
+ if (object.upheld !== undefined && object.upheld !== null) {
69
+ message.upheld = BigInt(object.upheld);
70
+ }
71
+ if (object.overturned !== undefined && object.overturned !== null) {
72
+ message.overturned = BigInt(object.overturned);
73
+ }
74
+ return message;
75
+ },
76
+ toAmino(message) {
77
+ const obj = {};
78
+ obj.epoch = message.epoch !== BigInt(0) ? message.epoch?.toString() : undefined;
79
+ obj.upheld = message.upheld !== BigInt(0) ? message.upheld?.toString() : undefined;
80
+ obj.overturned = message.overturned !== BigInt(0) ? message.overturned?.toString() : undefined;
81
+ return obj;
82
+ },
83
+ fromAminoMsg(object) {
84
+ return AccuracyEpochBucket.fromAmino(object.value);
85
+ },
86
+ fromProtoMsg(message) {
87
+ return AccuracyEpochBucket.decode(message.value);
88
+ },
89
+ toProto(message) {
90
+ return AccuracyEpochBucket.encode(message).finish();
91
+ },
92
+ toProtoMsg(message) {
93
+ return {
94
+ typeUrl: "/sparkdream.forum.v1.AccuracyEpochBucket",
95
+ value: AccuracyEpochBucket.encode(message).finish()
96
+ };
97
+ }
98
+ };
3
99
  function createBaseSentinelActivity() {
4
100
  return {
5
101
  address: "",
@@ -25,7 +121,12 @@ function createBaseSentinelActivity() {
25
121
  totalPins: BigInt(0),
26
122
  upheldPins: BigInt(0),
27
123
  overturnedPins: BigInt(0),
28
- epochPins: BigInt(0)
124
+ epochPins: BigInt(0),
125
+ totalProposals: BigInt(0),
126
+ confirmedProposals: BigInt(0),
127
+ rejectedProposals: BigInt(0),
128
+ epochCurations: BigInt(0),
129
+ accuracyWindow: []
29
130
  };
30
131
  }
31
132
  /**
@@ -111,6 +212,21 @@ export const SentinelActivity = {
111
212
  if (message.epochPins !== BigInt(0)) {
112
213
  writer.uint32(192).uint64(message.epochPins);
113
214
  }
215
+ if (message.totalProposals !== BigInt(0)) {
216
+ writer.uint32(200).uint64(message.totalProposals);
217
+ }
218
+ if (message.confirmedProposals !== BigInt(0)) {
219
+ writer.uint32(208).uint64(message.confirmedProposals);
220
+ }
221
+ if (message.rejectedProposals !== BigInt(0)) {
222
+ writer.uint32(216).uint64(message.rejectedProposals);
223
+ }
224
+ if (message.epochCurations !== BigInt(0)) {
225
+ writer.uint32(224).uint64(message.epochCurations);
226
+ }
227
+ for (const v of message.accuracyWindow) {
228
+ AccuracyEpochBucket.encode(v, writer.uint32(234).fork()).ldelim();
229
+ }
114
230
  return writer;
115
231
  },
116
232
  decode(input, length) {
@@ -192,6 +308,21 @@ export const SentinelActivity = {
192
308
  case 24:
193
309
  message.epochPins = reader.uint64();
194
310
  break;
311
+ case 25:
312
+ message.totalProposals = reader.uint64();
313
+ break;
314
+ case 26:
315
+ message.confirmedProposals = reader.uint64();
316
+ break;
317
+ case 27:
318
+ message.rejectedProposals = reader.uint64();
319
+ break;
320
+ case 28:
321
+ message.epochCurations = reader.uint64();
322
+ break;
323
+ case 29:
324
+ message.accuracyWindow.push(AccuracyEpochBucket.decode(reader, reader.uint32()));
325
+ break;
195
326
  default:
196
327
  reader.skipType(tag & 7);
197
328
  break;
@@ -225,6 +356,11 @@ export const SentinelActivity = {
225
356
  message.upheldPins = object.upheldPins !== undefined && object.upheldPins !== null ? BigInt(object.upheldPins.toString()) : BigInt(0);
226
357
  message.overturnedPins = object.overturnedPins !== undefined && object.overturnedPins !== null ? BigInt(object.overturnedPins.toString()) : BigInt(0);
227
358
  message.epochPins = object.epochPins !== undefined && object.epochPins !== null ? BigInt(object.epochPins.toString()) : BigInt(0);
359
+ message.totalProposals = object.totalProposals !== undefined && object.totalProposals !== null ? BigInt(object.totalProposals.toString()) : BigInt(0);
360
+ message.confirmedProposals = object.confirmedProposals !== undefined && object.confirmedProposals !== null ? BigInt(object.confirmedProposals.toString()) : BigInt(0);
361
+ message.rejectedProposals = object.rejectedProposals !== undefined && object.rejectedProposals !== null ? BigInt(object.rejectedProposals.toString()) : BigInt(0);
362
+ message.epochCurations = object.epochCurations !== undefined && object.epochCurations !== null ? BigInt(object.epochCurations.toString()) : BigInt(0);
363
+ message.accuracyWindow = object.accuracyWindow?.map(e => AccuracyEpochBucket.fromPartial(e)) || [];
228
364
  return message;
229
365
  },
230
366
  fromAmino(object) {
@@ -301,6 +437,19 @@ export const SentinelActivity = {
301
437
  if (object.epoch_pins !== undefined && object.epoch_pins !== null) {
302
438
  message.epochPins = BigInt(object.epoch_pins);
303
439
  }
440
+ if (object.total_proposals !== undefined && object.total_proposals !== null) {
441
+ message.totalProposals = BigInt(object.total_proposals);
442
+ }
443
+ if (object.confirmed_proposals !== undefined && object.confirmed_proposals !== null) {
444
+ message.confirmedProposals = BigInt(object.confirmed_proposals);
445
+ }
446
+ if (object.rejected_proposals !== undefined && object.rejected_proposals !== null) {
447
+ message.rejectedProposals = BigInt(object.rejected_proposals);
448
+ }
449
+ if (object.epoch_curations !== undefined && object.epoch_curations !== null) {
450
+ message.epochCurations = BigInt(object.epoch_curations);
451
+ }
452
+ message.accuracyWindow = object.accuracy_window?.map(e => AccuracyEpochBucket.fromAmino(e)) || [];
304
453
  return message;
305
454
  },
306
455
  toAmino(message) {
@@ -329,6 +478,16 @@ export const SentinelActivity = {
329
478
  obj.upheld_pins = message.upheldPins !== BigInt(0) ? message.upheldPins?.toString() : undefined;
330
479
  obj.overturned_pins = message.overturnedPins !== BigInt(0) ? message.overturnedPins?.toString() : undefined;
331
480
  obj.epoch_pins = message.epochPins !== BigInt(0) ? message.epochPins?.toString() : undefined;
481
+ obj.total_proposals = message.totalProposals !== BigInt(0) ? message.totalProposals?.toString() : undefined;
482
+ obj.confirmed_proposals = message.confirmedProposals !== BigInt(0) ? message.confirmedProposals?.toString() : undefined;
483
+ obj.rejected_proposals = message.rejectedProposals !== BigInt(0) ? message.rejectedProposals?.toString() : undefined;
484
+ obj.epoch_curations = message.epochCurations !== BigInt(0) ? message.epochCurations?.toString() : undefined;
485
+ if (message.accuracyWindow) {
486
+ obj.accuracy_window = message.accuracyWindow.map(e => e ? AccuracyEpochBucket.toAmino(e) : undefined);
487
+ }
488
+ else {
489
+ obj.accuracy_window = message.accuracyWindow;
490
+ }
332
491
  return obj;
333
492
  },
334
493
  fromAminoMsg(object) {
@@ -10,6 +10,8 @@ function createBaseThreadMetadata() {
10
10
  proposedReplyId: BigInt(0),
11
11
  proposedBy: "",
12
12
  proposedAt: BigInt(0),
13
+ proposalExtended: false,
14
+ proposalFireAt: BigInt(0),
13
15
  pinnedReplyIds: [],
14
16
  pinnedRecords: []
15
17
  };
@@ -44,6 +46,12 @@ export const ThreadMetadata = {
44
46
  if (message.proposedAt !== BigInt(0)) {
45
47
  writer.uint32(56).int64(message.proposedAt);
46
48
  }
49
+ if (message.proposalExtended === true) {
50
+ writer.uint32(64).bool(message.proposalExtended);
51
+ }
52
+ if (message.proposalFireAt !== BigInt(0)) {
53
+ writer.uint32(72).int64(message.proposalFireAt);
54
+ }
47
55
  writer.uint32(82).fork();
48
56
  for (const v of message.pinnedReplyIds) {
49
57
  writer.uint64(v);
@@ -82,6 +90,12 @@ export const ThreadMetadata = {
82
90
  case 7:
83
91
  message.proposedAt = reader.int64();
84
92
  break;
93
+ case 8:
94
+ message.proposalExtended = reader.bool();
95
+ break;
96
+ case 9:
97
+ message.proposalFireAt = reader.int64();
98
+ break;
85
99
  case 10:
86
100
  if ((tag & 7) === 2) {
87
101
  const end2 = reader.uint32() + reader.pos;
@@ -112,6 +126,8 @@ export const ThreadMetadata = {
112
126
  message.proposedReplyId = object.proposedReplyId !== undefined && object.proposedReplyId !== null ? BigInt(object.proposedReplyId.toString()) : BigInt(0);
113
127
  message.proposedBy = object.proposedBy ?? "";
114
128
  message.proposedAt = object.proposedAt !== undefined && object.proposedAt !== null ? BigInt(object.proposedAt.toString()) : BigInt(0);
129
+ message.proposalExtended = object.proposalExtended ?? false;
130
+ message.proposalFireAt = object.proposalFireAt !== undefined && object.proposalFireAt !== null ? BigInt(object.proposalFireAt.toString()) : BigInt(0);
115
131
  message.pinnedReplyIds = object.pinnedReplyIds?.map(e => BigInt(e.toString())) || [];
116
132
  message.pinnedRecords = object.pinnedRecords?.map(e => PinnedReplyRecord.fromPartial(e)) || [];
117
133
  return message;
@@ -139,6 +155,12 @@ export const ThreadMetadata = {
139
155
  if (object.proposed_at !== undefined && object.proposed_at !== null) {
140
156
  message.proposedAt = BigInt(object.proposed_at);
141
157
  }
158
+ if (object.proposal_extended !== undefined && object.proposal_extended !== null) {
159
+ message.proposalExtended = object.proposal_extended;
160
+ }
161
+ if (object.proposal_fire_at !== undefined && object.proposal_fire_at !== null) {
162
+ message.proposalFireAt = BigInt(object.proposal_fire_at);
163
+ }
142
164
  message.pinnedReplyIds = object.pinned_reply_ids?.map(e => BigInt(e)) || [];
143
165
  message.pinnedRecords = object.pinned_records?.map(e => PinnedReplyRecord.fromAmino(e)) || [];
144
166
  return message;
@@ -152,6 +174,8 @@ export const ThreadMetadata = {
152
174
  obj.proposed_reply_id = message.proposedReplyId !== BigInt(0) ? message.proposedReplyId?.toString() : undefined;
153
175
  obj.proposed_by = message.proposedBy === "" ? undefined : message.proposedBy;
154
176
  obj.proposed_at = message.proposedAt !== BigInt(0) ? message.proposedAt?.toString() : undefined;
177
+ obj.proposal_extended = message.proposalExtended === false ? undefined : message.proposalExtended;
178
+ obj.proposal_fire_at = message.proposalFireAt !== BigInt(0) ? message.proposalFireAt?.toString() : undefined;
155
179
  if (message.pinnedReplyIds) {
156
180
  obj.pinned_reply_ids = message.pinnedReplyIds.map(e => e.toString());
157
181
  }
@@ -405,6 +405,7 @@ function createBaseParams() {
405
405
  minAppealsForAccuracy: BigInt(0),
406
406
  minEpochActivityForReward: BigInt(0),
407
407
  minAppealRate: "",
408
+ sentinelAccuracyWindowEpochs: BigInt(0),
408
409
  maxActiveInitiativesPerMember: 0,
409
410
  maxActiveInterimsPerMember: 0,
410
411
  maxDreamMintPerEpoch: "",
@@ -675,6 +676,9 @@ export const Params = {
675
676
  if (message.minAppealRate !== "") {
676
677
  writer.uint32(674).string(Decimal.fromUserInput(message.minAppealRate, 18).atomics);
677
678
  }
679
+ if (message.sentinelAccuracyWindowEpochs !== BigInt(0)) {
680
+ writer.uint32(728).uint64(message.sentinelAccuracyWindowEpochs);
681
+ }
678
682
  if (message.maxActiveInitiativesPerMember !== 0) {
679
683
  writer.uint32(680).uint32(message.maxActiveInitiativesPerMember);
680
684
  }
@@ -954,6 +958,9 @@ export const Params = {
954
958
  case 84:
955
959
  message.minAppealRate = Decimal.fromAtomics(reader.string(), 18).toString();
956
960
  break;
961
+ case 91:
962
+ message.sentinelAccuracyWindowEpochs = reader.uint64();
963
+ break;
957
964
  case 85:
958
965
  message.maxActiveInitiativesPerMember = reader.uint32();
959
966
  break;
@@ -1065,6 +1072,7 @@ export const Params = {
1065
1072
  message.minAppealsForAccuracy = object.minAppealsForAccuracy !== undefined && object.minAppealsForAccuracy !== null ? BigInt(object.minAppealsForAccuracy.toString()) : BigInt(0);
1066
1073
  message.minEpochActivityForReward = object.minEpochActivityForReward !== undefined && object.minEpochActivityForReward !== null ? BigInt(object.minEpochActivityForReward.toString()) : BigInt(0);
1067
1074
  message.minAppealRate = object.minAppealRate ?? "";
1075
+ message.sentinelAccuracyWindowEpochs = object.sentinelAccuracyWindowEpochs !== undefined && object.sentinelAccuracyWindowEpochs !== null ? BigInt(object.sentinelAccuracyWindowEpochs.toString()) : BigInt(0);
1068
1076
  message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
1069
1077
  message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
1070
1078
  message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
@@ -1327,6 +1335,9 @@ export const Params = {
1327
1335
  if (object.min_appeal_rate !== undefined && object.min_appeal_rate !== null) {
1328
1336
  message.minAppealRate = object.min_appeal_rate;
1329
1337
  }
1338
+ if (object.sentinel_accuracy_window_epochs !== undefined && object.sentinel_accuracy_window_epochs !== null) {
1339
+ message.sentinelAccuracyWindowEpochs = BigInt(object.sentinel_accuracy_window_epochs);
1340
+ }
1330
1341
  if (object.max_active_initiatives_per_member !== undefined && object.max_active_initiatives_per_member !== null) {
1331
1342
  message.maxActiveInitiativesPerMember = object.max_active_initiatives_per_member;
1332
1343
  }
@@ -1433,6 +1444,7 @@ export const Params = {
1433
1444
  obj.min_appeals_for_accuracy = message.minAppealsForAccuracy !== BigInt(0) ? message.minAppealsForAccuracy?.toString() : undefined;
1434
1445
  obj.min_epoch_activity_for_reward = message.minEpochActivityForReward !== BigInt(0) ? message.minEpochActivityForReward?.toString() : undefined;
1435
1446
  obj.min_appeal_rate = message.minAppealRate === "" ? undefined : message.minAppealRate;
1447
+ obj.sentinel_accuracy_window_epochs = message.sentinelAccuracyWindowEpochs !== BigInt(0) ? message.sentinelAccuracyWindowEpochs?.toString() : undefined;
1436
1448
  obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
1437
1449
  obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
1438
1450
  obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
@@ -1533,6 +1545,7 @@ function createBaseRepOperationalParams() {
1533
1545
  minAppealsForAccuracy: BigInt(0),
1534
1546
  minEpochActivityForReward: BigInt(0),
1535
1547
  minAppealRate: "",
1548
+ sentinelAccuracyWindowEpochs: BigInt(0),
1536
1549
  maxActiveInitiativesPerMember: 0,
1537
1550
  maxActiveInterimsPerMember: 0,
1538
1551
  maxDreamMintPerEpoch: "",
@@ -1757,6 +1770,9 @@ export const RepOperationalParams = {
1757
1770
  if (message.minAppealRate !== "") {
1758
1771
  writer.uint32(546).string(Decimal.fromUserInput(message.minAppealRate, 18).atomics);
1759
1772
  }
1773
+ if (message.sentinelAccuracyWindowEpochs !== BigInt(0)) {
1774
+ writer.uint32(600).uint64(message.sentinelAccuracyWindowEpochs);
1775
+ }
1760
1776
  if (message.maxActiveInitiativesPerMember !== 0) {
1761
1777
  writer.uint32(552).uint32(message.maxActiveInitiativesPerMember);
1762
1778
  }
@@ -1988,6 +2004,9 @@ export const RepOperationalParams = {
1988
2004
  case 68:
1989
2005
  message.minAppealRate = Decimal.fromAtomics(reader.string(), 18).toString();
1990
2006
  break;
2007
+ case 75:
2008
+ message.sentinelAccuracyWindowEpochs = reader.uint64();
2009
+ break;
1991
2010
  case 69:
1992
2011
  message.maxActiveInitiativesPerMember = reader.uint32();
1993
2012
  break;
@@ -2083,6 +2102,7 @@ export const RepOperationalParams = {
2083
2102
  message.minAppealsForAccuracy = object.minAppealsForAccuracy !== undefined && object.minAppealsForAccuracy !== null ? BigInt(object.minAppealsForAccuracy.toString()) : BigInt(0);
2084
2103
  message.minEpochActivityForReward = object.minEpochActivityForReward !== undefined && object.minEpochActivityForReward !== null ? BigInt(object.minEpochActivityForReward.toString()) : BigInt(0);
2085
2104
  message.minAppealRate = object.minAppealRate ?? "";
2105
+ message.sentinelAccuracyWindowEpochs = object.sentinelAccuracyWindowEpochs !== undefined && object.sentinelAccuracyWindowEpochs !== null ? BigInt(object.sentinelAccuracyWindowEpochs.toString()) : BigInt(0);
2086
2106
  message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
2087
2107
  message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
2088
2108
  message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
@@ -2297,6 +2317,9 @@ export const RepOperationalParams = {
2297
2317
  if (object.min_appeal_rate !== undefined && object.min_appeal_rate !== null) {
2298
2318
  message.minAppealRate = object.min_appeal_rate;
2299
2319
  }
2320
+ if (object.sentinel_accuracy_window_epochs !== undefined && object.sentinel_accuracy_window_epochs !== null) {
2321
+ message.sentinelAccuracyWindowEpochs = BigInt(object.sentinel_accuracy_window_epochs);
2322
+ }
2300
2323
  if (object.max_active_initiatives_per_member !== undefined && object.max_active_initiatives_per_member !== null) {
2301
2324
  message.maxActiveInitiativesPerMember = object.max_active_initiatives_per_member;
2302
2325
  }
@@ -2387,6 +2410,7 @@ export const RepOperationalParams = {
2387
2410
  obj.min_appeals_for_accuracy = message.minAppealsForAccuracy !== BigInt(0) ? message.minAppealsForAccuracy?.toString() : undefined;
2388
2411
  obj.min_epoch_activity_for_reward = message.minEpochActivityForReward !== BigInt(0) ? message.minEpochActivityForReward?.toString() : undefined;
2389
2412
  obj.min_appeal_rate = message.minAppealRate === "" ? undefined : message.minAppealRate;
2413
+ obj.sentinel_accuracy_window_epochs = message.sentinelAccuracyWindowEpochs !== BigInt(0) ? message.sentinelAccuracyWindowEpochs?.toString() : undefined;
2390
2414
  obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
2391
2415
  obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
2392
2416
  obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkdreamnft/sparkdreamjs",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "author": "kob <kob@sparkdream.io>",
5
5
  "description": "Spark Dream blockchain TypeScript library",
6
6
  "main": "index.js",
@@ -9383,6 +9383,18 @@ export declare namespace sparkdream {
9383
9383
  toProto(message: _224.ThreadFollowCount): Uint8Array;
9384
9384
  toProtoMsg(message: _224.ThreadFollowCount): _224.ThreadFollowCountProtoMsg;
9385
9385
  };
9386
+ AccuracyEpochBucket: {
9387
+ typeUrl: string;
9388
+ encode(message: _223.AccuracyEpochBucket, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
9389
+ decode(input: import("..").BinaryReader | Uint8Array, length?: number): _223.AccuracyEpochBucket;
9390
+ fromPartial(object: import("../helpers").DeepPartial<_223.AccuracyEpochBucket>): _223.AccuracyEpochBucket;
9391
+ fromAmino(object: _223.AccuracyEpochBucketAmino): _223.AccuracyEpochBucket;
9392
+ toAmino(message: _223.AccuracyEpochBucket): _223.AccuracyEpochBucketAmino;
9393
+ fromAminoMsg(object: _223.AccuracyEpochBucketAminoMsg): _223.AccuracyEpochBucket;
9394
+ fromProtoMsg(message: _223.AccuracyEpochBucketProtoMsg): _223.AccuracyEpochBucket;
9395
+ toProto(message: _223.AccuracyEpochBucket): Uint8Array;
9396
+ toProtoMsg(message: _223.AccuracyEpochBucket): _223.AccuracyEpochBucketProtoMsg;
9397
+ };
9386
9398
  SentinelActivity: {
9387
9399
  typeUrl: string;
9388
9400
  encode(message: _223.SentinelActivity, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
@@ -284,6 +284,22 @@ export interface Params {
284
284
  * and the stake is closed.
285
285
  */
286
286
  postConvictionStakerSlashBps: bigint;
287
+ /**
288
+ * curation_dream_reward is the DREAM minted to a sentinel when their accepted-
289
+ * reply proposal is confirmed (by the author or via auto-confirm), in
290
+ * micro-DREAM (math.Int string). Read directly (no unset/default fallback):
291
+ * a non-positive value disables the reward, matching the IsPositive fee guards
292
+ * in x/rep / x/blog. Seeded by the genesis defaults.
293
+ */
294
+ curationDreamReward: string;
295
+ /**
296
+ * accept_proposal_timeout is the number of seconds after which a pending
297
+ * sentinel accepted-reply proposal auto-confirms if the author has not acted.
298
+ * Must be positive (Validate rejects 0/negative — a 0 timeout would
299
+ * auto-confirm on the next block, never an intended config). Seeded by the
300
+ * genesis defaults (48h).
301
+ */
302
+ acceptProposalTimeout: bigint;
287
303
  }
288
304
  export interface ParamsProtoMsg {
289
305
  typeUrl: "/sparkdream.forum.v1.Params";
@@ -573,6 +589,22 @@ export interface ParamsAmino {
573
589
  * and the stake is closed.
574
590
  */
575
591
  post_conviction_staker_slash_bps?: string;
592
+ /**
593
+ * curation_dream_reward is the DREAM minted to a sentinel when their accepted-
594
+ * reply proposal is confirmed (by the author or via auto-confirm), in
595
+ * micro-DREAM (math.Int string). Read directly (no unset/default fallback):
596
+ * a non-positive value disables the reward, matching the IsPositive fee guards
597
+ * in x/rep / x/blog. Seeded by the genesis defaults.
598
+ */
599
+ curation_dream_reward?: string;
600
+ /**
601
+ * accept_proposal_timeout is the number of seconds after which a pending
602
+ * sentinel accepted-reply proposal auto-confirms if the author has not acted.
603
+ * Must be positive (Validate rejects 0/negative — a 0 timeout would
604
+ * auto-confirm on the next block, never an intended config). Seeded by the
605
+ * genesis defaults (48h).
606
+ */
607
+ accept_proposal_timeout?: string;
576
608
  }
577
609
  export interface ParamsAminoMsg {
578
610
  type: "sparkdream/x/forum/Params";
@@ -733,6 +765,14 @@ export interface ForumOperationalParams {
733
765
  * post_conviction_staker_slash_bps — see Params.post_conviction_staker_slash_bps.
734
766
  */
735
767
  postConvictionStakerSlashBps: bigint;
768
+ /**
769
+ * curation_dream_reward — see Params.curation_dream_reward.
770
+ */
771
+ curationDreamReward: string;
772
+ /**
773
+ * accept_proposal_timeout — see Params.accept_proposal_timeout.
774
+ */
775
+ acceptProposalTimeout: bigint;
736
776
  }
737
777
  export interface ForumOperationalParamsProtoMsg {
738
778
  typeUrl: "/sparkdream.forum.v1.ForumOperationalParams";
@@ -893,6 +933,14 @@ export interface ForumOperationalParamsAmino {
893
933
  * post_conviction_staker_slash_bps — see Params.post_conviction_staker_slash_bps.
894
934
  */
895
935
  post_conviction_staker_slash_bps?: string;
936
+ /**
937
+ * curation_dream_reward — see Params.curation_dream_reward.
938
+ */
939
+ curation_dream_reward?: string;
940
+ /**
941
+ * accept_proposal_timeout — see Params.accept_proposal_timeout.
942
+ */
943
+ accept_proposal_timeout?: string;
896
944
  }
897
945
  export interface ForumOperationalParamsAminoMsg {
898
946
  type: "sparkdream/x/forum/ForumOperationalParams";