@sparkdreamnft/sparkdreamjs 0.0.23 → 0.0.24

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.
@@ -9,7 +9,8 @@ function createBaseHideRecord() {
9
9
  committedAmount: "",
10
10
  reasonCode: 0,
11
11
  reasonText: "",
12
- authorBondAmount: ""
12
+ authorBondAmount: "",
13
+ appealed: false
13
14
  };
14
15
  }
15
16
  /**
@@ -54,6 +55,9 @@ export const HideRecord = {
54
55
  if (message.authorBondAmount !== "") {
55
56
  writer.uint32(74).string(message.authorBondAmount);
56
57
  }
58
+ if (message.appealed === true) {
59
+ writer.uint32(80).bool(message.appealed);
60
+ }
57
61
  return writer;
58
62
  },
59
63
  decode(input, length) {
@@ -90,6 +94,9 @@ export const HideRecord = {
90
94
  case 9:
91
95
  message.authorBondAmount = reader.string();
92
96
  break;
97
+ case 10:
98
+ message.appealed = reader.bool();
99
+ break;
93
100
  default:
94
101
  reader.skipType(tag & 7);
95
102
  break;
@@ -108,6 +115,7 @@ export const HideRecord = {
108
115
  message.reasonCode = object.reasonCode ?? 0;
109
116
  message.reasonText = object.reasonText ?? "";
110
117
  message.authorBondAmount = object.authorBondAmount ?? "";
118
+ message.appealed = object.appealed ?? false;
111
119
  return message;
112
120
  },
113
121
  fromAmino(object) {
@@ -139,6 +147,9 @@ export const HideRecord = {
139
147
  if (object.author_bond_amount !== undefined && object.author_bond_amount !== null) {
140
148
  message.authorBondAmount = object.author_bond_amount;
141
149
  }
150
+ if (object.appealed !== undefined && object.appealed !== null) {
151
+ message.appealed = object.appealed;
152
+ }
142
153
  return message;
143
154
  },
144
155
  toAmino(message) {
@@ -152,6 +163,7 @@ export const HideRecord = {
152
163
  obj.reason_code = message.reasonCode === 0 ? undefined : message.reasonCode;
153
164
  obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
154
165
  obj.author_bond_amount = message.authorBondAmount === "" ? undefined : message.authorBondAmount;
166
+ obj.appealed = message.appealed === false ? undefined : message.appealed;
155
167
  return obj;
156
168
  },
157
169
  fromAminoMsg(object) {
@@ -25,11 +25,7 @@ function createBaseSentinelActivity() {
25
25
  totalPins: BigInt(0),
26
26
  upheldPins: BigInt(0),
27
27
  overturnedPins: BigInt(0),
28
- epochPins: BigInt(0),
29
- totalProposals: BigInt(0),
30
- confirmedProposals: BigInt(0),
31
- rejectedProposals: BigInt(0),
32
- epochCurations: BigInt(0)
28
+ epochPins: BigInt(0)
33
29
  };
34
30
  }
35
31
  /**
@@ -115,18 +111,6 @@ export const SentinelActivity = {
115
111
  if (message.epochPins !== BigInt(0)) {
116
112
  writer.uint32(192).uint64(message.epochPins);
117
113
  }
118
- if (message.totalProposals !== BigInt(0)) {
119
- writer.uint32(200).uint64(message.totalProposals);
120
- }
121
- if (message.confirmedProposals !== BigInt(0)) {
122
- writer.uint32(208).uint64(message.confirmedProposals);
123
- }
124
- if (message.rejectedProposals !== BigInt(0)) {
125
- writer.uint32(216).uint64(message.rejectedProposals);
126
- }
127
- if (message.epochCurations !== BigInt(0)) {
128
- writer.uint32(224).uint64(message.epochCurations);
129
- }
130
114
  return writer;
131
115
  },
132
116
  decode(input, length) {
@@ -208,18 +192,6 @@ export const SentinelActivity = {
208
192
  case 24:
209
193
  message.epochPins = reader.uint64();
210
194
  break;
211
- case 25:
212
- message.totalProposals = reader.uint64();
213
- break;
214
- case 26:
215
- message.confirmedProposals = reader.uint64();
216
- break;
217
- case 27:
218
- message.rejectedProposals = reader.uint64();
219
- break;
220
- case 28:
221
- message.epochCurations = reader.uint64();
222
- break;
223
195
  default:
224
196
  reader.skipType(tag & 7);
225
197
  break;
@@ -253,10 +225,6 @@ export const SentinelActivity = {
253
225
  message.upheldPins = object.upheldPins !== undefined && object.upheldPins !== null ? BigInt(object.upheldPins.toString()) : BigInt(0);
254
226
  message.overturnedPins = object.overturnedPins !== undefined && object.overturnedPins !== null ? BigInt(object.overturnedPins.toString()) : BigInt(0);
255
227
  message.epochPins = object.epochPins !== undefined && object.epochPins !== null ? BigInt(object.epochPins.toString()) : BigInt(0);
256
- message.totalProposals = object.totalProposals !== undefined && object.totalProposals !== null ? BigInt(object.totalProposals.toString()) : BigInt(0);
257
- message.confirmedProposals = object.confirmedProposals !== undefined && object.confirmedProposals !== null ? BigInt(object.confirmedProposals.toString()) : BigInt(0);
258
- message.rejectedProposals = object.rejectedProposals !== undefined && object.rejectedProposals !== null ? BigInt(object.rejectedProposals.toString()) : BigInt(0);
259
- message.epochCurations = object.epochCurations !== undefined && object.epochCurations !== null ? BigInt(object.epochCurations.toString()) : BigInt(0);
260
228
  return message;
261
229
  },
262
230
  fromAmino(object) {
@@ -333,18 +301,6 @@ export const SentinelActivity = {
333
301
  if (object.epoch_pins !== undefined && object.epoch_pins !== null) {
334
302
  message.epochPins = BigInt(object.epoch_pins);
335
303
  }
336
- if (object.total_proposals !== undefined && object.total_proposals !== null) {
337
- message.totalProposals = BigInt(object.total_proposals);
338
- }
339
- if (object.confirmed_proposals !== undefined && object.confirmed_proposals !== null) {
340
- message.confirmedProposals = BigInt(object.confirmed_proposals);
341
- }
342
- if (object.rejected_proposals !== undefined && object.rejected_proposals !== null) {
343
- message.rejectedProposals = BigInt(object.rejected_proposals);
344
- }
345
- if (object.epoch_curations !== undefined && object.epoch_curations !== null) {
346
- message.epochCurations = BigInt(object.epoch_curations);
347
- }
348
304
  return message;
349
305
  },
350
306
  toAmino(message) {
@@ -373,10 +329,6 @@ export const SentinelActivity = {
373
329
  obj.upheld_pins = message.upheldPins !== BigInt(0) ? message.upheldPins?.toString() : undefined;
374
330
  obj.overturned_pins = message.overturnedPins !== BigInt(0) ? message.overturnedPins?.toString() : undefined;
375
331
  obj.epoch_pins = message.epochPins !== BigInt(0) ? message.epochPins?.toString() : undefined;
376
- obj.total_proposals = message.totalProposals !== BigInt(0) ? message.totalProposals?.toString() : undefined;
377
- obj.confirmed_proposals = message.confirmedProposals !== BigInt(0) ? message.confirmedProposals?.toString() : undefined;
378
- obj.rejected_proposals = message.rejectedProposals !== BigInt(0) ? message.rejectedProposals?.toString() : undefined;
379
- obj.epoch_curations = message.epochCurations !== BigInt(0) ? message.epochCurations?.toString() : undefined;
380
332
  return obj;
381
333
  },
382
334
  fromAminoMsg(object) {
@@ -9,7 +9,8 @@ function createBaseThreadLockRecord() {
9
9
  sentinelBackingSnapshot: "",
10
10
  lockReason: "",
11
11
  appealPending: false,
12
- initiativeId: BigInt(0)
12
+ initiativeId: BigInt(0),
13
+ committedAmount: ""
13
14
  };
14
15
  }
15
16
  /**
@@ -45,6 +46,9 @@ export const ThreadLockRecord = {
45
46
  if (message.initiativeId !== BigInt(0)) {
46
47
  writer.uint32(64).uint64(message.initiativeId);
47
48
  }
49
+ if (message.committedAmount !== "") {
50
+ writer.uint32(74).string(message.committedAmount);
51
+ }
48
52
  return writer;
49
53
  },
50
54
  decode(input, length) {
@@ -78,6 +82,9 @@ export const ThreadLockRecord = {
78
82
  case 8:
79
83
  message.initiativeId = reader.uint64();
80
84
  break;
85
+ case 9:
86
+ message.committedAmount = reader.string();
87
+ break;
81
88
  default:
82
89
  reader.skipType(tag & 7);
83
90
  break;
@@ -95,6 +102,7 @@ export const ThreadLockRecord = {
95
102
  message.lockReason = object.lockReason ?? "";
96
103
  message.appealPending = object.appealPending ?? false;
97
104
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
105
+ message.committedAmount = object.committedAmount ?? "";
98
106
  return message;
99
107
  },
100
108
  fromAmino(object) {
@@ -123,6 +131,9 @@ export const ThreadLockRecord = {
123
131
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
124
132
  message.initiativeId = BigInt(object.initiative_id);
125
133
  }
134
+ if (object.committed_amount !== undefined && object.committed_amount !== null) {
135
+ message.committedAmount = object.committed_amount;
136
+ }
126
137
  return message;
127
138
  },
128
139
  toAmino(message) {
@@ -135,6 +146,7 @@ export const ThreadLockRecord = {
135
146
  obj.lock_reason = message.lockReason === "" ? undefined : message.lockReason;
136
147
  obj.appeal_pending = message.appealPending === false ? undefined : message.appealPending;
137
148
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
149
+ obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
138
150
  return obj;
139
151
  },
140
152
  fromAminoMsg(object) {
@@ -11,7 +11,8 @@ function createBaseThreadMoveRecord() {
11
11
  sentinelBackingSnapshot: "",
12
12
  moveReason: "",
13
13
  appealPending: false,
14
- initiativeId: BigInt(0)
14
+ initiativeId: BigInt(0),
15
+ committedAmount: ""
15
16
  };
16
17
  }
17
18
  /**
@@ -53,6 +54,9 @@ export const ThreadMoveRecord = {
53
54
  if (message.initiativeId !== BigInt(0)) {
54
55
  writer.uint32(80).uint64(message.initiativeId);
55
56
  }
57
+ if (message.committedAmount !== "") {
58
+ writer.uint32(90).string(message.committedAmount);
59
+ }
56
60
  return writer;
57
61
  },
58
62
  decode(input, length) {
@@ -92,6 +96,9 @@ export const ThreadMoveRecord = {
92
96
  case 10:
93
97
  message.initiativeId = reader.uint64();
94
98
  break;
99
+ case 11:
100
+ message.committedAmount = reader.string();
101
+ break;
95
102
  default:
96
103
  reader.skipType(tag & 7);
97
104
  break;
@@ -111,6 +118,7 @@ export const ThreadMoveRecord = {
111
118
  message.moveReason = object.moveReason ?? "";
112
119
  message.appealPending = object.appealPending ?? false;
113
120
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
121
+ message.committedAmount = object.committedAmount ?? "";
114
122
  return message;
115
123
  },
116
124
  fromAmino(object) {
@@ -145,6 +153,9 @@ export const ThreadMoveRecord = {
145
153
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
146
154
  message.initiativeId = BigInt(object.initiative_id);
147
155
  }
156
+ if (object.committed_amount !== undefined && object.committed_amount !== null) {
157
+ message.committedAmount = object.committed_amount;
158
+ }
148
159
  return message;
149
160
  },
150
161
  toAmino(message) {
@@ -159,6 +170,7 @@ export const ThreadMoveRecord = {
159
170
  obj.move_reason = message.moveReason === "" ? undefined : message.moveReason;
160
171
  obj.appeal_pending = message.appealPending === false ? undefined : message.appealPending;
161
172
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
173
+ obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
162
174
  return obj;
163
175
  },
164
176
  fromAminoMsg(object) {
@@ -419,7 +419,8 @@ function createBasePinnedReplyRecord() {
419
419
  pinnedAt: BigInt(0),
420
420
  isSentinelPin: false,
421
421
  disputed: false,
422
- initiativeId: BigInt(0)
422
+ initiativeId: BigInt(0),
423
+ committedAmount: ""
423
424
  };
424
425
  }
425
426
  /**
@@ -449,6 +450,9 @@ export const PinnedReplyRecord = {
449
450
  if (message.initiativeId !== BigInt(0)) {
450
451
  writer.uint32(48).uint64(message.initiativeId);
451
452
  }
453
+ if (message.committedAmount !== "") {
454
+ writer.uint32(58).string(message.committedAmount);
455
+ }
452
456
  return writer;
453
457
  },
454
458
  decode(input, length) {
@@ -476,6 +480,9 @@ export const PinnedReplyRecord = {
476
480
  case 6:
477
481
  message.initiativeId = reader.uint64();
478
482
  break;
483
+ case 7:
484
+ message.committedAmount = reader.string();
485
+ break;
479
486
  default:
480
487
  reader.skipType(tag & 7);
481
488
  break;
@@ -491,6 +498,7 @@ export const PinnedReplyRecord = {
491
498
  message.isSentinelPin = object.isSentinelPin ?? false;
492
499
  message.disputed = object.disputed ?? false;
493
500
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
501
+ message.committedAmount = object.committedAmount ?? "";
494
502
  return message;
495
503
  },
496
504
  fromAmino(object) {
@@ -513,6 +521,9 @@ export const PinnedReplyRecord = {
513
521
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
514
522
  message.initiativeId = BigInt(object.initiative_id);
515
523
  }
524
+ if (object.committed_amount !== undefined && object.committed_amount !== null) {
525
+ message.committedAmount = object.committed_amount;
526
+ }
516
527
  return message;
517
528
  },
518
529
  toAmino(message) {
@@ -523,6 +534,7 @@ export const PinnedReplyRecord = {
523
534
  obj.is_sentinel_pin = message.isSentinelPin === false ? undefined : message.isSentinelPin;
524
535
  obj.disputed = message.disputed === false ? undefined : message.disputed;
525
536
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
537
+ obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
526
538
  return obj;
527
539
  },
528
540
  fromAminoMsg(object) {
@@ -10,6 +10,8 @@ export var GovActionType;
10
10
  GovActionType[GovActionType["GOV_ACTION_TYPE_FORUM_PAUSE"] = 5] = "GOV_ACTION_TYPE_FORUM_PAUSE";
11
11
  GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_LOCK"] = 6] = "GOV_ACTION_TYPE_THREAD_LOCK";
12
12
  GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_MOVE"] = 7] = "GOV_ACTION_TYPE_THREAD_MOVE";
13
+ GovActionType[GovActionType["GOV_ACTION_TYPE_REPLY_PIN"] = 8] = "GOV_ACTION_TYPE_REPLY_PIN";
14
+ GovActionType[GovActionType["GOV_ACTION_TYPE_POST_HIDE"] = 9] = "GOV_ACTION_TYPE_POST_HIDE";
13
15
  GovActionType[GovActionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
14
16
  })(GovActionType || (GovActionType = {}));
15
17
  export const GovActionTypeAmino = GovActionType;
@@ -39,6 +41,12 @@ export function govActionTypeFromJSON(object) {
39
41
  case 7:
40
42
  case "GOV_ACTION_TYPE_THREAD_MOVE":
41
43
  return GovActionType.GOV_ACTION_TYPE_THREAD_MOVE;
44
+ case 8:
45
+ case "GOV_ACTION_TYPE_REPLY_PIN":
46
+ return GovActionType.GOV_ACTION_TYPE_REPLY_PIN;
47
+ case 9:
48
+ case "GOV_ACTION_TYPE_POST_HIDE":
49
+ return GovActionType.GOV_ACTION_TYPE_POST_HIDE;
42
50
  case -1:
43
51
  case "UNRECOGNIZED":
44
52
  default:
@@ -63,6 +71,10 @@ export function govActionTypeToJSON(object) {
63
71
  return "GOV_ACTION_TYPE_THREAD_LOCK";
64
72
  case GovActionType.GOV_ACTION_TYPE_THREAD_MOVE:
65
73
  return "GOV_ACTION_TYPE_THREAD_MOVE";
74
+ case GovActionType.GOV_ACTION_TYPE_REPLY_PIN:
75
+ return "GOV_ACTION_TYPE_REPLY_PIN";
76
+ case GovActionType.GOV_ACTION_TYPE_POST_HIDE:
77
+ return "GOV_ACTION_TYPE_POST_HIDE";
66
78
  case GovActionType.UNRECOGNIZED:
67
79
  default:
68
80
  return "UNRECOGNIZED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkdreamnft/sparkdreamjs",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "author": "kob <kob@sparkdream.io>",
5
5
  "description": "Spark Dream blockchain TypeScript library",
6
6
  "main": "index.js",
@@ -38,6 +38,13 @@ export interface HideRecord {
38
38
  * hide flavors are distinguished.
39
39
  */
40
40
  authorBondAmount: string;
41
+ /**
42
+ * appealed is set true when an appeal is filed against this hide (via
43
+ * MsgAppealPost). The hide-expiry EndBlocker reads it to avoid double-counting:
44
+ * an appealed hide was already tallied as upheld/overturned, so only an
45
+ * un-appealed hide that expires increments unchallenged_hides.
46
+ */
47
+ appealed: boolean;
41
48
  }
42
49
  export interface HideRecordProtoMsg {
43
50
  typeUrl: "/sparkdream.forum.v1.HideRecord";
@@ -80,6 +87,13 @@ export interface HideRecordAmino {
80
87
  * hide flavors are distinguished.
81
88
  */
82
89
  author_bond_amount?: string;
90
+ /**
91
+ * appealed is set true when an appeal is filed against this hide (via
92
+ * MsgAppealPost). The hide-expiry EndBlocker reads it to avoid double-counting:
93
+ * an appealed hide was already tallied as upheld/overturned, so only an
94
+ * un-appealed hide that expires increments unchallenged_hides.
95
+ */
96
+ appealed?: boolean;
83
97
  }
84
98
  export interface HideRecordAminoMsg {
85
99
  type: "/sparkdream.forum.v1.HideRecord";
@@ -12,7 +12,8 @@ function createBaseHideRecord() {
12
12
  committedAmount: "",
13
13
  reasonCode: 0,
14
14
  reasonText: "",
15
- authorBondAmount: ""
15
+ authorBondAmount: "",
16
+ appealed: false
16
17
  };
17
18
  }
18
19
  /**
@@ -57,6 +58,9 @@ exports.HideRecord = {
57
58
  if (message.authorBondAmount !== "") {
58
59
  writer.uint32(74).string(message.authorBondAmount);
59
60
  }
61
+ if (message.appealed === true) {
62
+ writer.uint32(80).bool(message.appealed);
63
+ }
60
64
  return writer;
61
65
  },
62
66
  decode(input, length) {
@@ -93,6 +97,9 @@ exports.HideRecord = {
93
97
  case 9:
94
98
  message.authorBondAmount = reader.string();
95
99
  break;
100
+ case 10:
101
+ message.appealed = reader.bool();
102
+ break;
96
103
  default:
97
104
  reader.skipType(tag & 7);
98
105
  break;
@@ -111,6 +118,7 @@ exports.HideRecord = {
111
118
  message.reasonCode = object.reasonCode ?? 0;
112
119
  message.reasonText = object.reasonText ?? "";
113
120
  message.authorBondAmount = object.authorBondAmount ?? "";
121
+ message.appealed = object.appealed ?? false;
114
122
  return message;
115
123
  },
116
124
  fromAmino(object) {
@@ -142,6 +150,9 @@ exports.HideRecord = {
142
150
  if (object.author_bond_amount !== undefined && object.author_bond_amount !== null) {
143
151
  message.authorBondAmount = object.author_bond_amount;
144
152
  }
153
+ if (object.appealed !== undefined && object.appealed !== null) {
154
+ message.appealed = object.appealed;
155
+ }
145
156
  return message;
146
157
  },
147
158
  toAmino(message) {
@@ -155,6 +166,7 @@ exports.HideRecord = {
155
166
  obj.reason_code = message.reasonCode === 0 ? undefined : message.reasonCode;
156
167
  obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
157
168
  obj.author_bond_amount = message.authorBondAmount === "" ? undefined : message.authorBondAmount;
169
+ obj.appealed = message.appealed === false ? undefined : message.appealed;
158
170
  return obj;
159
171
  },
160
172
  fromAminoMsg(object) {
@@ -13,6 +13,12 @@ export interface SentinelActivity {
13
13
  totalHides: bigint;
14
14
  upheldHides: bigint;
15
15
  overturnedHides: bigint;
16
+ /**
17
+ * unchallenged_hides counts hides that expired without ever being appealed
18
+ * (the hide stood by default). Written by the hide-expiry EndBlocker. Excluded
19
+ * from accuracy/reward math by design — it is a display/audit metric only, so
20
+ * a sentinel cannot game rewards by spam-hiding low-visibility content.
21
+ */
16
22
  unchallengedHides: bigint;
17
23
  epochHides: bigint;
18
24
  epochAppealsResolved: bigint;
@@ -33,10 +39,6 @@ export interface SentinelActivity {
33
39
  upheldPins: bigint;
34
40
  overturnedPins: bigint;
35
41
  epochPins: bigint;
36
- totalProposals: bigint;
37
- confirmedProposals: bigint;
38
- rejectedProposals: bigint;
39
- epochCurations: bigint;
40
42
  }
41
43
  export interface SentinelActivityProtoMsg {
42
44
  typeUrl: "/sparkdream.forum.v1.SentinelActivity";
@@ -55,6 +57,12 @@ export interface SentinelActivityAmino {
55
57
  total_hides?: string;
56
58
  upheld_hides?: string;
57
59
  overturned_hides?: string;
60
+ /**
61
+ * unchallenged_hides counts hides that expired without ever being appealed
62
+ * (the hide stood by default). Written by the hide-expiry EndBlocker. Excluded
63
+ * from accuracy/reward math by design — it is a display/audit metric only, so
64
+ * a sentinel cannot game rewards by spam-hiding low-visibility content.
65
+ */
58
66
  unchallenged_hides?: string;
59
67
  epoch_hides?: string;
60
68
  epoch_appeals_resolved?: string;
@@ -75,10 +83,6 @@ export interface SentinelActivityAmino {
75
83
  upheld_pins?: string;
76
84
  overturned_pins?: string;
77
85
  epoch_pins?: string;
78
- total_proposals?: string;
79
- confirmed_proposals?: string;
80
- rejected_proposals?: string;
81
- epoch_curations?: string;
82
86
  }
83
87
  export interface SentinelActivityAminoMsg {
84
88
  type: "/sparkdream.forum.v1.SentinelActivity";
@@ -28,11 +28,7 @@ function createBaseSentinelActivity() {
28
28
  totalPins: BigInt(0),
29
29
  upheldPins: BigInt(0),
30
30
  overturnedPins: BigInt(0),
31
- epochPins: BigInt(0),
32
- totalProposals: BigInt(0),
33
- confirmedProposals: BigInt(0),
34
- rejectedProposals: BigInt(0),
35
- epochCurations: BigInt(0)
31
+ epochPins: BigInt(0)
36
32
  };
37
33
  }
38
34
  /**
@@ -118,18 +114,6 @@ exports.SentinelActivity = {
118
114
  if (message.epochPins !== BigInt(0)) {
119
115
  writer.uint32(192).uint64(message.epochPins);
120
116
  }
121
- if (message.totalProposals !== BigInt(0)) {
122
- writer.uint32(200).uint64(message.totalProposals);
123
- }
124
- if (message.confirmedProposals !== BigInt(0)) {
125
- writer.uint32(208).uint64(message.confirmedProposals);
126
- }
127
- if (message.rejectedProposals !== BigInt(0)) {
128
- writer.uint32(216).uint64(message.rejectedProposals);
129
- }
130
- if (message.epochCurations !== BigInt(0)) {
131
- writer.uint32(224).uint64(message.epochCurations);
132
- }
133
117
  return writer;
134
118
  },
135
119
  decode(input, length) {
@@ -211,18 +195,6 @@ exports.SentinelActivity = {
211
195
  case 24:
212
196
  message.epochPins = reader.uint64();
213
197
  break;
214
- case 25:
215
- message.totalProposals = reader.uint64();
216
- break;
217
- case 26:
218
- message.confirmedProposals = reader.uint64();
219
- break;
220
- case 27:
221
- message.rejectedProposals = reader.uint64();
222
- break;
223
- case 28:
224
- message.epochCurations = reader.uint64();
225
- break;
226
198
  default:
227
199
  reader.skipType(tag & 7);
228
200
  break;
@@ -256,10 +228,6 @@ exports.SentinelActivity = {
256
228
  message.upheldPins = object.upheldPins !== undefined && object.upheldPins !== null ? BigInt(object.upheldPins.toString()) : BigInt(0);
257
229
  message.overturnedPins = object.overturnedPins !== undefined && object.overturnedPins !== null ? BigInt(object.overturnedPins.toString()) : BigInt(0);
258
230
  message.epochPins = object.epochPins !== undefined && object.epochPins !== null ? BigInt(object.epochPins.toString()) : BigInt(0);
259
- message.totalProposals = object.totalProposals !== undefined && object.totalProposals !== null ? BigInt(object.totalProposals.toString()) : BigInt(0);
260
- message.confirmedProposals = object.confirmedProposals !== undefined && object.confirmedProposals !== null ? BigInt(object.confirmedProposals.toString()) : BigInt(0);
261
- message.rejectedProposals = object.rejectedProposals !== undefined && object.rejectedProposals !== null ? BigInt(object.rejectedProposals.toString()) : BigInt(0);
262
- message.epochCurations = object.epochCurations !== undefined && object.epochCurations !== null ? BigInt(object.epochCurations.toString()) : BigInt(0);
263
231
  return message;
264
232
  },
265
233
  fromAmino(object) {
@@ -336,18 +304,6 @@ exports.SentinelActivity = {
336
304
  if (object.epoch_pins !== undefined && object.epoch_pins !== null) {
337
305
  message.epochPins = BigInt(object.epoch_pins);
338
306
  }
339
- if (object.total_proposals !== undefined && object.total_proposals !== null) {
340
- message.totalProposals = BigInt(object.total_proposals);
341
- }
342
- if (object.confirmed_proposals !== undefined && object.confirmed_proposals !== null) {
343
- message.confirmedProposals = BigInt(object.confirmed_proposals);
344
- }
345
- if (object.rejected_proposals !== undefined && object.rejected_proposals !== null) {
346
- message.rejectedProposals = BigInt(object.rejected_proposals);
347
- }
348
- if (object.epoch_curations !== undefined && object.epoch_curations !== null) {
349
- message.epochCurations = BigInt(object.epoch_curations);
350
- }
351
307
  return message;
352
308
  },
353
309
  toAmino(message) {
@@ -376,10 +332,6 @@ exports.SentinelActivity = {
376
332
  obj.upheld_pins = message.upheldPins !== BigInt(0) ? message.upheldPins?.toString() : undefined;
377
333
  obj.overturned_pins = message.overturnedPins !== BigInt(0) ? message.overturnedPins?.toString() : undefined;
378
334
  obj.epoch_pins = message.epochPins !== BigInt(0) ? message.epochPins?.toString() : undefined;
379
- obj.total_proposals = message.totalProposals !== BigInt(0) ? message.totalProposals?.toString() : undefined;
380
- obj.confirmed_proposals = message.confirmedProposals !== BigInt(0) ? message.confirmedProposals?.toString() : undefined;
381
- obj.rejected_proposals = message.rejectedProposals !== BigInt(0) ? message.rejectedProposals?.toString() : undefined;
382
- obj.epoch_curations = message.epochCurations !== BigInt(0) ? message.epochCurations?.toString() : undefined;
383
335
  return obj;
384
336
  },
385
337
  fromAminoMsg(object) {
@@ -15,6 +15,12 @@ export interface ThreadLockRecord {
15
15
  lockReason: string;
16
16
  appealPending: boolean;
17
17
  initiativeId: bigint;
18
+ /**
19
+ * committed_amount is the sentinel bond (udream, as a string) reserved at lock
20
+ * time. Released on self-unlock or an upheld appeal, and the amount slashed
21
+ * basis on an overturn. Empty for governance-authority locks (no bond).
22
+ */
23
+ committedAmount: string;
18
24
  }
19
25
  export interface ThreadLockRecordProtoMsg {
20
26
  typeUrl: "/sparkdream.forum.v1.ThreadLockRecord";
@@ -35,6 +41,12 @@ export interface ThreadLockRecordAmino {
35
41
  lock_reason?: string;
36
42
  appeal_pending?: boolean;
37
43
  initiative_id?: string;
44
+ /**
45
+ * committed_amount is the sentinel bond (udream, as a string) reserved at lock
46
+ * time. Released on self-unlock or an upheld appeal, and the amount slashed
47
+ * basis on an overturn. Empty for governance-authority locks (no bond).
48
+ */
49
+ committed_amount?: string;
38
50
  }
39
51
  export interface ThreadLockRecordAminoMsg {
40
52
  type: "/sparkdream.forum.v1.ThreadLockRecord";
@@ -12,7 +12,8 @@ function createBaseThreadLockRecord() {
12
12
  sentinelBackingSnapshot: "",
13
13
  lockReason: "",
14
14
  appealPending: false,
15
- initiativeId: BigInt(0)
15
+ initiativeId: BigInt(0),
16
+ committedAmount: ""
16
17
  };
17
18
  }
18
19
  /**
@@ -48,6 +49,9 @@ exports.ThreadLockRecord = {
48
49
  if (message.initiativeId !== BigInt(0)) {
49
50
  writer.uint32(64).uint64(message.initiativeId);
50
51
  }
52
+ if (message.committedAmount !== "") {
53
+ writer.uint32(74).string(message.committedAmount);
54
+ }
51
55
  return writer;
52
56
  },
53
57
  decode(input, length) {
@@ -81,6 +85,9 @@ exports.ThreadLockRecord = {
81
85
  case 8:
82
86
  message.initiativeId = reader.uint64();
83
87
  break;
88
+ case 9:
89
+ message.committedAmount = reader.string();
90
+ break;
84
91
  default:
85
92
  reader.skipType(tag & 7);
86
93
  break;
@@ -98,6 +105,7 @@ exports.ThreadLockRecord = {
98
105
  message.lockReason = object.lockReason ?? "";
99
106
  message.appealPending = object.appealPending ?? false;
100
107
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
108
+ message.committedAmount = object.committedAmount ?? "";
101
109
  return message;
102
110
  },
103
111
  fromAmino(object) {
@@ -126,6 +134,9 @@ exports.ThreadLockRecord = {
126
134
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
127
135
  message.initiativeId = BigInt(object.initiative_id);
128
136
  }
137
+ if (object.committed_amount !== undefined && object.committed_amount !== null) {
138
+ message.committedAmount = object.committed_amount;
139
+ }
129
140
  return message;
130
141
  },
131
142
  toAmino(message) {
@@ -138,6 +149,7 @@ exports.ThreadLockRecord = {
138
149
  obj.lock_reason = message.lockReason === "" ? undefined : message.lockReason;
139
150
  obj.appeal_pending = message.appealPending === false ? undefined : message.appealPending;
140
151
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
152
+ obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
141
153
  return obj;
142
154
  },
143
155
  fromAminoMsg(object) {
@@ -17,6 +17,12 @@ export interface ThreadMoveRecord {
17
17
  moveReason: string;
18
18
  appealPending: boolean;
19
19
  initiativeId: bigint;
20
+ /**
21
+ * committed_amount is the sentinel bond (udream, as a string) reserved at move
22
+ * time. Released on an upheld appeal; the slash basis on an overturn. Empty
23
+ * for governance-authority moves (no bond).
24
+ */
25
+ committedAmount: string;
20
26
  }
21
27
  export interface ThreadMoveRecordProtoMsg {
22
28
  typeUrl: "/sparkdream.forum.v1.ThreadMoveRecord";
@@ -39,6 +45,12 @@ export interface ThreadMoveRecordAmino {
39
45
  move_reason?: string;
40
46
  appeal_pending?: boolean;
41
47
  initiative_id?: string;
48
+ /**
49
+ * committed_amount is the sentinel bond (udream, as a string) reserved at move
50
+ * time. Released on an upheld appeal; the slash basis on an overturn. Empty
51
+ * for governance-authority moves (no bond).
52
+ */
53
+ committed_amount?: string;
42
54
  }
43
55
  export interface ThreadMoveRecordAminoMsg {
44
56
  type: "/sparkdream.forum.v1.ThreadMoveRecord";
@@ -14,7 +14,8 @@ function createBaseThreadMoveRecord() {
14
14
  sentinelBackingSnapshot: "",
15
15
  moveReason: "",
16
16
  appealPending: false,
17
- initiativeId: BigInt(0)
17
+ initiativeId: BigInt(0),
18
+ committedAmount: ""
18
19
  };
19
20
  }
20
21
  /**
@@ -56,6 +57,9 @@ exports.ThreadMoveRecord = {
56
57
  if (message.initiativeId !== BigInt(0)) {
57
58
  writer.uint32(80).uint64(message.initiativeId);
58
59
  }
60
+ if (message.committedAmount !== "") {
61
+ writer.uint32(90).string(message.committedAmount);
62
+ }
59
63
  return writer;
60
64
  },
61
65
  decode(input, length) {
@@ -95,6 +99,9 @@ exports.ThreadMoveRecord = {
95
99
  case 10:
96
100
  message.initiativeId = reader.uint64();
97
101
  break;
102
+ case 11:
103
+ message.committedAmount = reader.string();
104
+ break;
98
105
  default:
99
106
  reader.skipType(tag & 7);
100
107
  break;
@@ -114,6 +121,7 @@ exports.ThreadMoveRecord = {
114
121
  message.moveReason = object.moveReason ?? "";
115
122
  message.appealPending = object.appealPending ?? false;
116
123
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
124
+ message.committedAmount = object.committedAmount ?? "";
117
125
  return message;
118
126
  },
119
127
  fromAmino(object) {
@@ -148,6 +156,9 @@ exports.ThreadMoveRecord = {
148
156
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
149
157
  message.initiativeId = BigInt(object.initiative_id);
150
158
  }
159
+ if (object.committed_amount !== undefined && object.committed_amount !== null) {
160
+ message.committedAmount = object.committed_amount;
161
+ }
151
162
  return message;
152
163
  },
153
164
  toAmino(message) {
@@ -162,6 +173,7 @@ exports.ThreadMoveRecord = {
162
173
  obj.move_reason = message.moveReason === "" ? undefined : message.moveReason;
163
174
  obj.appeal_pending = message.appealPending === false ? undefined : message.appealPending;
164
175
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
176
+ obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
165
177
  return obj;
166
178
  },
167
179
  fromAminoMsg(object) {
@@ -110,6 +110,12 @@ export interface PinnedReplyRecord {
110
110
  isSentinelPin: boolean;
111
111
  disputed: boolean;
112
112
  initiativeId: bigint;
113
+ /**
114
+ * committed_amount is the sentinel bond (in udream, as a string) reserved at
115
+ * pin time, released on an upheld dispute and available to slash on an
116
+ * overturn. Empty for governance-authority pins (no bond reserved).
117
+ */
118
+ committedAmount: string;
113
119
  }
114
120
  export interface PinnedReplyRecordProtoMsg {
115
121
  typeUrl: "/sparkdream.forum.v1.PinnedReplyRecord";
@@ -128,6 +134,12 @@ export interface PinnedReplyRecordAmino {
128
134
  is_sentinel_pin?: boolean;
129
135
  disputed?: boolean;
130
136
  initiative_id?: string;
137
+ /**
138
+ * committed_amount is the sentinel bond (in udream, as a string) reserved at
139
+ * pin time, released on an upheld dispute and available to slash on an
140
+ * overturn. Empty for governance-authority pins (no bond reserved).
141
+ */
142
+ committed_amount?: string;
131
143
  }
132
144
  export interface PinnedReplyRecordAminoMsg {
133
145
  type: "/sparkdream.forum.v1.PinnedReplyRecord";
@@ -430,7 +430,8 @@ function createBasePinnedReplyRecord() {
430
430
  pinnedAt: BigInt(0),
431
431
  isSentinelPin: false,
432
432
  disputed: false,
433
- initiativeId: BigInt(0)
433
+ initiativeId: BigInt(0),
434
+ committedAmount: ""
434
435
  };
435
436
  }
436
437
  /**
@@ -460,6 +461,9 @@ exports.PinnedReplyRecord = {
460
461
  if (message.initiativeId !== BigInt(0)) {
461
462
  writer.uint32(48).uint64(message.initiativeId);
462
463
  }
464
+ if (message.committedAmount !== "") {
465
+ writer.uint32(58).string(message.committedAmount);
466
+ }
463
467
  return writer;
464
468
  },
465
469
  decode(input, length) {
@@ -487,6 +491,9 @@ exports.PinnedReplyRecord = {
487
491
  case 6:
488
492
  message.initiativeId = reader.uint64();
489
493
  break;
494
+ case 7:
495
+ message.committedAmount = reader.string();
496
+ break;
490
497
  default:
491
498
  reader.skipType(tag & 7);
492
499
  break;
@@ -502,6 +509,7 @@ exports.PinnedReplyRecord = {
502
509
  message.isSentinelPin = object.isSentinelPin ?? false;
503
510
  message.disputed = object.disputed ?? false;
504
511
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
512
+ message.committedAmount = object.committedAmount ?? "";
505
513
  return message;
506
514
  },
507
515
  fromAmino(object) {
@@ -524,6 +532,9 @@ exports.PinnedReplyRecord = {
524
532
  if (object.initiative_id !== undefined && object.initiative_id !== null) {
525
533
  message.initiativeId = BigInt(object.initiative_id);
526
534
  }
535
+ if (object.committed_amount !== undefined && object.committed_amount !== null) {
536
+ message.committedAmount = object.committed_amount;
537
+ }
527
538
  return message;
528
539
  },
529
540
  toAmino(message) {
@@ -534,6 +545,7 @@ exports.PinnedReplyRecord = {
534
545
  obj.is_sentinel_pin = message.isSentinelPin === false ? undefined : message.isSentinelPin;
535
546
  obj.disputed = message.disputed === false ? undefined : message.disputed;
536
547
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
548
+ obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
537
549
  return obj;
538
550
  },
539
551
  fromAminoMsg(object) {
@@ -8,6 +8,8 @@ export declare enum GovActionType {
8
8
  GOV_ACTION_TYPE_FORUM_PAUSE = 5,
9
9
  GOV_ACTION_TYPE_THREAD_LOCK = 6,
10
10
  GOV_ACTION_TYPE_THREAD_MOVE = 7,
11
+ GOV_ACTION_TYPE_REPLY_PIN = 8,
12
+ GOV_ACTION_TYPE_POST_HIDE = 9,
11
13
  UNRECOGNIZED = -1
12
14
  }
13
15
  export declare const GovActionTypeAmino: typeof GovActionType;
@@ -19,6 +19,8 @@ var GovActionType;
19
19
  GovActionType[GovActionType["GOV_ACTION_TYPE_FORUM_PAUSE"] = 5] = "GOV_ACTION_TYPE_FORUM_PAUSE";
20
20
  GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_LOCK"] = 6] = "GOV_ACTION_TYPE_THREAD_LOCK";
21
21
  GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_MOVE"] = 7] = "GOV_ACTION_TYPE_THREAD_MOVE";
22
+ GovActionType[GovActionType["GOV_ACTION_TYPE_REPLY_PIN"] = 8] = "GOV_ACTION_TYPE_REPLY_PIN";
23
+ GovActionType[GovActionType["GOV_ACTION_TYPE_POST_HIDE"] = 9] = "GOV_ACTION_TYPE_POST_HIDE";
22
24
  GovActionType[GovActionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
23
25
  })(GovActionType || (exports.GovActionType = GovActionType = {}));
24
26
  exports.GovActionTypeAmino = GovActionType;
@@ -48,6 +50,12 @@ function govActionTypeFromJSON(object) {
48
50
  case 7:
49
51
  case "GOV_ACTION_TYPE_THREAD_MOVE":
50
52
  return GovActionType.GOV_ACTION_TYPE_THREAD_MOVE;
53
+ case 8:
54
+ case "GOV_ACTION_TYPE_REPLY_PIN":
55
+ return GovActionType.GOV_ACTION_TYPE_REPLY_PIN;
56
+ case 9:
57
+ case "GOV_ACTION_TYPE_POST_HIDE":
58
+ return GovActionType.GOV_ACTION_TYPE_POST_HIDE;
51
59
  case -1:
52
60
  case "UNRECOGNIZED":
53
61
  default:
@@ -72,6 +80,10 @@ function govActionTypeToJSON(object) {
72
80
  return "GOV_ACTION_TYPE_THREAD_LOCK";
73
81
  case GovActionType.GOV_ACTION_TYPE_THREAD_MOVE:
74
82
  return "GOV_ACTION_TYPE_THREAD_MOVE";
83
+ case GovActionType.GOV_ACTION_TYPE_REPLY_PIN:
84
+ return "GOV_ACTION_TYPE_REPLY_PIN";
85
+ case GovActionType.GOV_ACTION_TYPE_POST_HIDE:
86
+ return "GOV_ACTION_TYPE_POST_HIDE";
75
87
  case GovActionType.UNRECOGNIZED:
76
88
  default:
77
89
  return "UNRECOGNIZED";