@sparkdreamnft/sparkdreamjs 0.0.23 → 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.
Files changed (29) hide show
  1. package/esm/sparkdream/forum/v1/hide_record.js +13 -1
  2. package/esm/sparkdream/forum/v1/params.js +50 -2
  3. package/esm/sparkdream/forum/v1/sentinel_activity.js +112 -1
  4. package/esm/sparkdream/forum/v1/thread_lock_record.js +13 -1
  5. package/esm/sparkdream/forum/v1/thread_metadata.js +24 -0
  6. package/esm/sparkdream/forum/v1/thread_move_record.js +13 -1
  7. package/esm/sparkdream/forum/v1/types.js +13 -1
  8. package/esm/sparkdream/rep/v1/accountability.js +12 -0
  9. package/esm/sparkdream/rep/v1/params.js +24 -0
  10. package/package.json +1 -1
  11. package/sparkdream/bundle.d.ts +12 -0
  12. package/sparkdream/forum/v1/hide_record.d.ts +14 -0
  13. package/sparkdream/forum/v1/hide_record.js +13 -1
  14. package/sparkdream/forum/v1/params.d.ts +48 -0
  15. package/sparkdream/forum/v1/params.js +50 -2
  16. package/sparkdream/forum/v1/sentinel_activity.d.ts +129 -0
  17. package/sparkdream/forum/v1/sentinel_activity.js +113 -2
  18. package/sparkdream/forum/v1/thread_lock_record.d.ts +12 -0
  19. package/sparkdream/forum/v1/thread_lock_record.js +13 -1
  20. package/sparkdream/forum/v1/thread_metadata.d.ts +32 -0
  21. package/sparkdream/forum/v1/thread_metadata.js +24 -0
  22. package/sparkdream/forum/v1/thread_move_record.d.ts +12 -0
  23. package/sparkdream/forum/v1/thread_move_record.js +13 -1
  24. package/sparkdream/forum/v1/types.d.ts +12 -0
  25. package/sparkdream/forum/v1/types.js +13 -1
  26. package/sparkdream/rep/v1/accountability.d.ts +2 -0
  27. package/sparkdream/rep/v1/accountability.js +12 -0
  28. package/sparkdream/rep/v1/params.d.ts +24 -0
  29. package/sparkdream/rep/v1/params.js +24 -0
@@ -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) {
@@ -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: "",
@@ -29,7 +125,8 @@ function createBaseSentinelActivity() {
29
125
  totalProposals: BigInt(0),
30
126
  confirmedProposals: BigInt(0),
31
127
  rejectedProposals: BigInt(0),
32
- epochCurations: BigInt(0)
128
+ epochCurations: BigInt(0),
129
+ accuracyWindow: []
33
130
  };
34
131
  }
35
132
  /**
@@ -127,6 +224,9 @@ export const SentinelActivity = {
127
224
  if (message.epochCurations !== BigInt(0)) {
128
225
  writer.uint32(224).uint64(message.epochCurations);
129
226
  }
227
+ for (const v of message.accuracyWindow) {
228
+ AccuracyEpochBucket.encode(v, writer.uint32(234).fork()).ldelim();
229
+ }
130
230
  return writer;
131
231
  },
132
232
  decode(input, length) {
@@ -220,6 +320,9 @@ export const SentinelActivity = {
220
320
  case 28:
221
321
  message.epochCurations = reader.uint64();
222
322
  break;
323
+ case 29:
324
+ message.accuracyWindow.push(AccuracyEpochBucket.decode(reader, reader.uint32()));
325
+ break;
223
326
  default:
224
327
  reader.skipType(tag & 7);
225
328
  break;
@@ -257,6 +360,7 @@ export const SentinelActivity = {
257
360
  message.confirmedProposals = object.confirmedProposals !== undefined && object.confirmedProposals !== null ? BigInt(object.confirmedProposals.toString()) : BigInt(0);
258
361
  message.rejectedProposals = object.rejectedProposals !== undefined && object.rejectedProposals !== null ? BigInt(object.rejectedProposals.toString()) : BigInt(0);
259
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)) || [];
260
364
  return message;
261
365
  },
262
366
  fromAmino(object) {
@@ -345,6 +449,7 @@ export const SentinelActivity = {
345
449
  if (object.epoch_curations !== undefined && object.epoch_curations !== null) {
346
450
  message.epochCurations = BigInt(object.epoch_curations);
347
451
  }
452
+ message.accuracyWindow = object.accuracy_window?.map(e => AccuracyEpochBucket.fromAmino(e)) || [];
348
453
  return message;
349
454
  },
350
455
  toAmino(message) {
@@ -377,6 +482,12 @@ export const SentinelActivity = {
377
482
  obj.confirmed_proposals = message.confirmedProposals !== BigInt(0) ? message.confirmedProposals?.toString() : undefined;
378
483
  obj.rejected_proposals = message.rejectedProposals !== BigInt(0) ? message.rejectedProposals?.toString() : undefined;
379
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
+ }
380
491
  return obj;
381
492
  },
382
493
  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) {
@@ -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
  }
@@ -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";