@sparkdreamnft/sparkdreamjs 0.0.35 → 0.0.37

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 (98) hide show
  1. package/akash/bundle.d.ts +134 -134
  2. package/akash/bundle.js +150 -150
  3. package/cosmos/bundle.d.ts +160 -160
  4. package/cosmos/bundle.js +182 -182
  5. package/esm/akash/bundle.js +150 -150
  6. package/esm/cosmos/bundle.js +182 -182
  7. package/esm/ibc/bundle.js +116 -116
  8. package/esm/sparkdream/bundle.js +305 -301
  9. package/esm/sparkdream/federation/v1/genesis.js +101 -3
  10. package/esm/sparkdream/federation/v1/params.js +129 -117
  11. package/esm/sparkdream/federation/v1/query.js +204 -7
  12. package/esm/sparkdream/federation/v1/query.lcd.js +11 -2
  13. package/esm/sparkdream/federation/v1/query.rpc.Query.js +16 -3
  14. package/esm/sparkdream/federation/v1/types.js +73 -1
  15. package/esm/sparkdream/federation/v1/verifier_activity.js +143 -45
  16. package/esm/sparkdream/rep/v1/{interim_template.js → acceptance_criteria.js} +13 -123
  17. package/esm/sparkdream/rep/v1/accountability.js +11 -0
  18. package/esm/sparkdream/rep/v1/bonded_role.js +50 -1
  19. package/esm/sparkdream/rep/v1/challenge.js +21 -9
  20. package/esm/sparkdream/rep/v1/genesis.js +198 -59
  21. package/esm/sparkdream/rep/v1/initiative.js +160 -49
  22. package/esm/sparkdream/rep/v1/initiative_review.js +179 -0
  23. package/esm/sparkdream/rep/v1/jury_participation.js +39 -9
  24. package/esm/sparkdream/rep/v1/jury_review.js +40 -1
  25. package/esm/sparkdream/rep/v1/member_report.js +8 -8
  26. package/esm/sparkdream/rep/v1/member_warning.js +2 -2
  27. package/esm/sparkdream/rep/v1/params.js +806 -2
  28. package/esm/sparkdream/rep/v1/query.js +1446 -325
  29. package/esm/sparkdream/rep/v1/query.lcd.js +49 -16
  30. package/esm/sparkdream/rep/v1/query.rpc.Query.js +67 -21
  31. package/esm/sparkdream/rep/v1/review_bounty.js +215 -0
  32. package/esm/sparkdream/rep/v1/role_activity.js +13 -1
  33. package/esm/sparkdream/rep/v1/tag_report.js +2 -2
  34. package/esm/sparkdream/rep/v1/tx.js +2610 -1442
  35. package/esm/sparkdream/rep/v1/tx.registry.js +128 -2
  36. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +43 -1
  37. package/esm/tendermint/bundle.js +18 -18
  38. package/ibc/bundle.d.ts +99 -99
  39. package/ibc/bundle.js +116 -116
  40. package/package.json +1 -1
  41. package/sparkdream/bundle.d.ts +9709 -9199
  42. package/sparkdream/bundle.js +305 -301
  43. package/sparkdream/federation/v1/genesis.d.ts +66 -0
  44. package/sparkdream/federation/v1/genesis.js +102 -4
  45. package/sparkdream/federation/v1/params.d.ts +72 -10
  46. package/sparkdream/federation/v1/params.js +129 -117
  47. package/sparkdream/federation/v1/query.d.ts +120 -3
  48. package/sparkdream/federation/v1/query.js +204 -7
  49. package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
  50. package/sparkdream/federation/v1/query.lcd.js +11 -2
  51. package/sparkdream/federation/v1/query.rpc.Query.d.ts +13 -3
  52. package/sparkdream/federation/v1/query.rpc.Query.js +15 -2
  53. package/sparkdream/federation/v1/types.d.ts +44 -0
  54. package/sparkdream/federation/v1/types.js +73 -1
  55. package/sparkdream/federation/v1/verifier_activity.d.ts +151 -68
  56. package/sparkdream/federation/v1/verifier_activity.js +144 -46
  57. package/sparkdream/rep/v1/{interim_template.d.ts → acceptance_criteria.d.ts} +39 -52
  58. package/sparkdream/rep/v1/{interim_template.js → acceptance_criteria.js} +14 -124
  59. package/sparkdream/rep/v1/accountability.d.ts +6 -0
  60. package/sparkdream/rep/v1/accountability.js +11 -0
  61. package/sparkdream/rep/v1/bonded_role.d.ts +50 -0
  62. package/sparkdream/rep/v1/bonded_role.js +50 -1
  63. package/sparkdream/rep/v1/challenge.d.ts +14 -0
  64. package/sparkdream/rep/v1/challenge.js +21 -9
  65. package/sparkdream/rep/v1/genesis.d.ts +100 -3
  66. package/sparkdream/rep/v1/genesis.js +199 -60
  67. package/sparkdream/rep/v1/initiative.d.ts +106 -2
  68. package/sparkdream/rep/v1/initiative.js +163 -50
  69. package/sparkdream/rep/v1/initiative_review.d.ts +121 -0
  70. package/sparkdream/rep/v1/initiative_review.js +182 -0
  71. package/sparkdream/rep/v1/jury_participation.d.ts +89 -5
  72. package/sparkdream/rep/v1/jury_participation.js +39 -9
  73. package/sparkdream/rep/v1/jury_review.d.ts +38 -0
  74. package/sparkdream/rep/v1/jury_review.js +40 -1
  75. package/sparkdream/rep/v1/member_report.js +8 -8
  76. package/sparkdream/rep/v1/member_warning.js +2 -2
  77. package/sparkdream/rep/v1/params.d.ts +764 -16
  78. package/sparkdream/rep/v1/params.js +806 -2
  79. package/sparkdream/rep/v1/query.d.ts +929 -179
  80. package/sparkdream/rep/v1/query.js +1450 -329
  81. package/sparkdream/rep/v1/query.lcd.d.ts +7 -3
  82. package/sparkdream/rep/v1/query.lcd.js +49 -16
  83. package/sparkdream/rep/v1/query.rpc.Query.d.ts +47 -9
  84. package/sparkdream/rep/v1/query.rpc.Query.js +66 -20
  85. package/sparkdream/rep/v1/review_bounty.d.ts +168 -0
  86. package/sparkdream/rep/v1/review_bounty.js +218 -0
  87. package/sparkdream/rep/v1/role_activity.d.ts +26 -0
  88. package/sparkdream/rep/v1/role_activity.js +13 -1
  89. package/sparkdream/rep/v1/tag_report.js +2 -2
  90. package/sparkdream/rep/v1/tx.d.ts +816 -9
  91. package/sparkdream/rep/v1/tx.js +2612 -1443
  92. package/sparkdream/rep/v1/tx.registry.d.ts +85 -1
  93. package/sparkdream/rep/v1/tx.registry.js +127 -1
  94. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +20 -1
  95. package/sparkdream/rep/v1/tx.rpc.msg.js +42 -0
  96. package/sparkdream/rpc.query.d.ts +7 -2
  97. package/tendermint/bundle.d.ts +844 -844
  98. package/tendermint/bundle.js +18 -18
@@ -10,40 +10,19 @@ export declare const CriteriaTypeAmino: typeof CriteriaType;
10
10
  export declare function criteriaTypeFromJSON(object: any): CriteriaType;
11
11
  export declare function criteriaTypeToJSON(object: CriteriaType): string;
12
12
  /**
13
- * InterimTemplate defines the InterimTemplate message.
14
- * @name InterimTemplate
15
- * @package sparkdream.rep.v1
16
- * @see proto type: sparkdream.rep.v1.InterimTemplate
17
- */
18
- export interface InterimTemplate {
19
- id: string;
20
- name: string;
21
- tags: string[];
22
- criteria: VerificationCriteria[];
23
- verificationGuide: string;
24
- }
25
- export interface InterimTemplateProtoMsg {
26
- typeUrl: "/sparkdream.rep.v1.InterimTemplate";
27
- value: Uint8Array;
28
- }
29
- /**
30
- * InterimTemplate defines the InterimTemplate message.
31
- * @name InterimTemplateAmino
32
- * @package sparkdream.rep.v1
33
- * @see proto type: sparkdream.rep.v1.InterimTemplate
34
- */
35
- export interface InterimTemplateAmino {
36
- id?: string;
37
- name?: string;
38
- tags?: string[];
39
- criteria?: VerificationCriteriaAmino[];
40
- verification_guide?: string;
41
- }
42
- export interface InterimTemplateAminoMsg {
43
- type: "/sparkdream.rep.v1.InterimTemplate";
44
- value: InterimTemplateAmino;
45
- }
46
- /**
13
+ * A single item in an initiative's definition of done.
14
+ *
15
+ * Declared on the initiative at creation and immutable afterwards, so the
16
+ * standard is fixed before any work starts. Consumed by MsgCreateChallenge
17
+ * (the challenger names the criterion the work fails) and by MsgSubmitJurorVote
18
+ * (a juror's per-item verdicts must answer criteria the initiative actually
19
+ * declared).
20
+ *
21
+ * These types previously sat alongside an InterimTemplate registry, since
22
+ * removed: no message ever created a template, all three networks shipped zero
23
+ * of them, and Initiative.template_id resolved against nothing. Criteria are
24
+ * declared per-initiative precisely because a template reference would have
25
+ * been a pointer into an empty store.
47
26
  * @name VerificationCriteria
48
27
  * @package sparkdream.rep.v1
49
28
  * @see proto type: sparkdream.rep.v1.VerificationCriteria
@@ -61,6 +40,19 @@ export interface VerificationCriteriaProtoMsg {
61
40
  value: Uint8Array;
62
41
  }
63
42
  /**
43
+ * A single item in an initiative's definition of done.
44
+ *
45
+ * Declared on the initiative at creation and immutable afterwards, so the
46
+ * standard is fixed before any work starts. Consumed by MsgCreateChallenge
47
+ * (the challenger names the criterion the work fails) and by MsgSubmitJurorVote
48
+ * (a juror's per-item verdicts must answer criteria the initiative actually
49
+ * declared).
50
+ *
51
+ * These types previously sat alongside an InterimTemplate registry, since
52
+ * removed: no message ever created a template, all three networks shipped zero
53
+ * of them, and Initiative.template_id resolved against nothing. Criteria are
54
+ * declared per-initiative precisely because a template reference would have
55
+ * been a pointer into an empty store.
64
56
  * @name VerificationCriteriaAmino
65
57
  * @package sparkdream.rep.v1
66
58
  * @see proto type: sparkdream.rep.v1.VerificationCriteria
@@ -78,24 +70,19 @@ export interface VerificationCriteriaAminoMsg {
78
70
  value: VerificationCriteriaAmino;
79
71
  }
80
72
  /**
81
- * InterimTemplate defines the InterimTemplate message.
82
- * @name InterimTemplate
83
- * @package sparkdream.rep.v1
84
- * @see proto type: sparkdream.rep.v1.InterimTemplate
85
- */
86
- export declare const InterimTemplate: {
87
- typeUrl: string;
88
- encode(message: InterimTemplate, writer?: BinaryWriter): BinaryWriter;
89
- decode(input: BinaryReader | Uint8Array, length?: number): InterimTemplate;
90
- fromPartial(object: DeepPartial<InterimTemplate>): InterimTemplate;
91
- fromAmino(object: InterimTemplateAmino): InterimTemplate;
92
- toAmino(message: InterimTemplate): InterimTemplateAmino;
93
- fromAminoMsg(object: InterimTemplateAminoMsg): InterimTemplate;
94
- fromProtoMsg(message: InterimTemplateProtoMsg): InterimTemplate;
95
- toProto(message: InterimTemplate): Uint8Array;
96
- toProtoMsg(message: InterimTemplate): InterimTemplateProtoMsg;
97
- };
98
- /**
73
+ * A single item in an initiative's definition of done.
74
+ *
75
+ * Declared on the initiative at creation and immutable afterwards, so the
76
+ * standard is fixed before any work starts. Consumed by MsgCreateChallenge
77
+ * (the challenger names the criterion the work fails) and by MsgSubmitJurorVote
78
+ * (a juror's per-item verdicts must answer criteria the initiative actually
79
+ * declared).
80
+ *
81
+ * These types previously sat alongside an InterimTemplate registry, since
82
+ * removed: no message ever created a template, all three networks shipped zero
83
+ * of them, and Initiative.template_id resolved against nothing. Criteria are
84
+ * declared per-initiative precisely because a template reference would have
85
+ * been a pointer into an empty store.
99
86
  * @name VerificationCriteria
100
87
  * @package sparkdream.rep.v1
101
88
  * @see proto type: sparkdream.rep.v1.VerificationCriteria
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VerificationCriteria = exports.InterimTemplate = exports.CriteriaTypeAmino = exports.CriteriaType = void 0;
3
+ exports.VerificationCriteria = exports.CriteriaTypeAmino = exports.CriteriaType = void 0;
4
4
  exports.criteriaTypeFromJSON = criteriaTypeFromJSON;
5
5
  exports.criteriaTypeToJSON = criteriaTypeToJSON;
6
6
  //@ts-nocheck
@@ -43,129 +43,6 @@ function criteriaTypeToJSON(object) {
43
43
  return "UNRECOGNIZED";
44
44
  }
45
45
  }
46
- function createBaseInterimTemplate() {
47
- return {
48
- id: "",
49
- name: "",
50
- tags: [],
51
- criteria: [],
52
- verificationGuide: ""
53
- };
54
- }
55
- /**
56
- * InterimTemplate defines the InterimTemplate message.
57
- * @name InterimTemplate
58
- * @package sparkdream.rep.v1
59
- * @see proto type: sparkdream.rep.v1.InterimTemplate
60
- */
61
- exports.InterimTemplate = {
62
- typeUrl: "/sparkdream.rep.v1.InterimTemplate",
63
- encode(message, writer = binary_1.BinaryWriter.create()) {
64
- if (message.id !== "") {
65
- writer.uint32(10).string(message.id);
66
- }
67
- if (message.name !== "") {
68
- writer.uint32(18).string(message.name);
69
- }
70
- for (const v of message.tags) {
71
- writer.uint32(26).string(v);
72
- }
73
- for (const v of message.criteria) {
74
- exports.VerificationCriteria.encode(v, writer.uint32(34).fork()).ldelim();
75
- }
76
- if (message.verificationGuide !== "") {
77
- writer.uint32(42).string(message.verificationGuide);
78
- }
79
- return writer;
80
- },
81
- decode(input, length) {
82
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
83
- let end = length === undefined ? reader.len : reader.pos + length;
84
- const message = createBaseInterimTemplate();
85
- while (reader.pos < end) {
86
- const tag = reader.uint32();
87
- switch (tag >>> 3) {
88
- case 1:
89
- message.id = reader.string();
90
- break;
91
- case 2:
92
- message.name = reader.string();
93
- break;
94
- case 3:
95
- message.tags.push(reader.string());
96
- break;
97
- case 4:
98
- message.criteria.push(exports.VerificationCriteria.decode(reader, reader.uint32()));
99
- break;
100
- case 5:
101
- message.verificationGuide = reader.string();
102
- break;
103
- default:
104
- reader.skipType(tag & 7);
105
- break;
106
- }
107
- }
108
- return message;
109
- },
110
- fromPartial(object) {
111
- const message = createBaseInterimTemplate();
112
- message.id = object.id ?? "";
113
- message.name = object.name ?? "";
114
- message.tags = object.tags?.map(e => e) || [];
115
- message.criteria = object.criteria?.map(e => exports.VerificationCriteria.fromPartial(e)) || [];
116
- message.verificationGuide = object.verificationGuide ?? "";
117
- return message;
118
- },
119
- fromAmino(object) {
120
- const message = createBaseInterimTemplate();
121
- if (object.id !== undefined && object.id !== null) {
122
- message.id = object.id;
123
- }
124
- if (object.name !== undefined && object.name !== null) {
125
- message.name = object.name;
126
- }
127
- message.tags = object.tags?.map(e => e) || [];
128
- message.criteria = object.criteria?.map(e => exports.VerificationCriteria.fromAmino(e)) || [];
129
- if (object.verification_guide !== undefined && object.verification_guide !== null) {
130
- message.verificationGuide = object.verification_guide;
131
- }
132
- return message;
133
- },
134
- toAmino(message) {
135
- const obj = {};
136
- obj.id = message.id === "" ? undefined : message.id;
137
- obj.name = message.name === "" ? undefined : message.name;
138
- if (message.tags) {
139
- obj.tags = message.tags.map(e => e);
140
- }
141
- else {
142
- obj.tags = message.tags;
143
- }
144
- if (message.criteria) {
145
- obj.criteria = message.criteria.map(e => e ? exports.VerificationCriteria.toAmino(e) : undefined);
146
- }
147
- else {
148
- obj.criteria = message.criteria;
149
- }
150
- obj.verification_guide = message.verificationGuide === "" ? undefined : message.verificationGuide;
151
- return obj;
152
- },
153
- fromAminoMsg(object) {
154
- return exports.InterimTemplate.fromAmino(object.value);
155
- },
156
- fromProtoMsg(message) {
157
- return exports.InterimTemplate.decode(message.value);
158
- },
159
- toProto(message) {
160
- return exports.InterimTemplate.encode(message).finish();
161
- },
162
- toProtoMsg(message) {
163
- return {
164
- typeUrl: "/sparkdream.rep.v1.InterimTemplate",
165
- value: exports.InterimTemplate.encode(message).finish()
166
- };
167
- }
168
- };
169
46
  function createBaseVerificationCriteria() {
170
47
  return {
171
48
  id: "",
@@ -177,6 +54,19 @@ function createBaseVerificationCriteria() {
177
54
  };
178
55
  }
179
56
  /**
57
+ * A single item in an initiative's definition of done.
58
+ *
59
+ * Declared on the initiative at creation and immutable afterwards, so the
60
+ * standard is fixed before any work starts. Consumed by MsgCreateChallenge
61
+ * (the challenger names the criterion the work fails) and by MsgSubmitJurorVote
62
+ * (a juror's per-item verdicts must answer criteria the initiative actually
63
+ * declared).
64
+ *
65
+ * These types previously sat alongside an InterimTemplate registry, since
66
+ * removed: no message ever created a template, all three networks shipped zero
67
+ * of them, and Initiative.template_id resolved against nothing. Criteria are
68
+ * declared per-initiative precisely because a template reference would have
69
+ * been a pointer into an empty store.
180
70
  * @name VerificationCriteria
181
71
  * @package sparkdream.rep.v1
182
72
  * @see proto type: sparkdream.rep.v1.VerificationCriteria
@@ -10,6 +10,12 @@ export declare enum GovActionType {
10
10
  GOV_ACTION_TYPE_THREAD_MOVE = 7,
11
11
  GOV_ACTION_TYPE_REPLY_PIN = 8,
12
12
  GOV_ACTION_TYPE_POST_HIDE = 9,
13
+ /**
14
+ * GOV_ACTION_TYPE_REVIEW_REJECTION - A reviewer rejection of submitted initiative work. Appealed by the
15
+ * assignee; a successful appeal voids the rejection and records the
16
+ * rejecting reviewers as overturned.
17
+ */
18
+ GOV_ACTION_TYPE_REVIEW_REJECTION = 10,
13
19
  UNRECOGNIZED = -1
14
20
  }
15
21
  export declare const GovActionTypeAmino: typeof GovActionType;
@@ -21,6 +21,12 @@ var GovActionType;
21
21
  GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_MOVE"] = 7] = "GOV_ACTION_TYPE_THREAD_MOVE";
22
22
  GovActionType[GovActionType["GOV_ACTION_TYPE_REPLY_PIN"] = 8] = "GOV_ACTION_TYPE_REPLY_PIN";
23
23
  GovActionType[GovActionType["GOV_ACTION_TYPE_POST_HIDE"] = 9] = "GOV_ACTION_TYPE_POST_HIDE";
24
+ /**
25
+ * GOV_ACTION_TYPE_REVIEW_REJECTION - A reviewer rejection of submitted initiative work. Appealed by the
26
+ * assignee; a successful appeal voids the rejection and records the
27
+ * rejecting reviewers as overturned.
28
+ */
29
+ GovActionType[GovActionType["GOV_ACTION_TYPE_REVIEW_REJECTION"] = 10] = "GOV_ACTION_TYPE_REVIEW_REJECTION";
24
30
  GovActionType[GovActionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
25
31
  })(GovActionType || (exports.GovActionType = GovActionType = {}));
26
32
  exports.GovActionTypeAmino = GovActionType;
@@ -56,6 +62,9 @@ function govActionTypeFromJSON(object) {
56
62
  case 9:
57
63
  case "GOV_ACTION_TYPE_POST_HIDE":
58
64
  return GovActionType.GOV_ACTION_TYPE_POST_HIDE;
65
+ case 10:
66
+ case "GOV_ACTION_TYPE_REVIEW_REJECTION":
67
+ return GovActionType.GOV_ACTION_TYPE_REVIEW_REJECTION;
59
68
  case -1:
60
69
  case "UNRECOGNIZED":
61
70
  default:
@@ -84,6 +93,8 @@ function govActionTypeToJSON(object) {
84
93
  return "GOV_ACTION_TYPE_REPLY_PIN";
85
94
  case GovActionType.GOV_ACTION_TYPE_POST_HIDE:
86
95
  return "GOV_ACTION_TYPE_POST_HIDE";
96
+ case GovActionType.GOV_ACTION_TYPE_REVIEW_REJECTION:
97
+ return "GOV_ACTION_TYPE_REVIEW_REJECTION";
87
98
  case GovActionType.UNRECOGNIZED:
88
99
  default:
89
100
  return "UNRECOGNIZED";
@@ -25,6 +25,14 @@ export declare enum RoleType {
25
25
  ROLE_TYPE_CONTENT_SENTINEL = 1,
26
26
  ROLE_TYPE_COLLECT_CURATOR = 2,
27
27
  ROLE_TYPE_FEDERATION_VERIFIER = 3,
28
+ /**
29
+ * ROLE_TYPE_INITIATIVE_REVIEWER - Reviews submitted initiative work against its acceptance criteria. Owned by
30
+ * x/rep. Distinct from CONTENT_SENTINEL because the competence, the liability
31
+ * (a wrong approval mints DREAM), the bond sizing and the accuracy
32
+ * denominators all differ — see the Initiative Review section of
33
+ * docs/x-rep-spec.md.
34
+ */
35
+ ROLE_TYPE_INITIATIVE_REVIEWER = 4,
28
36
  UNRECOGNIZED = -1
29
37
  }
30
38
  export declare const RoleTypeAmino: typeof RoleType;
@@ -276,6 +284,27 @@ export interface BondedRoleConfig {
276
284
  * the owning module's operational params.
277
285
  */
278
286
  unbondCooldown: bigint;
287
+ /**
288
+ * upheld_to_reset_overturns is how many CONSECUTIVE upheld verdicts clear
289
+ * an accumulated overturn streak. Zero or one = reset on the first upheld
290
+ * verdict (the moderation-role behavior). Higher values make the streak
291
+ * -- and therefore the demotion ratchet and the escalating cooldown --
292
+ * stickier, so a role cannot alternate wrong/right indefinitely and stay
293
+ * out of demotion range.
294
+ */
295
+ upheldToResetOverturns: bigint;
296
+ /**
297
+ * overturn_base_cooldown is the lockout in seconds applied on an
298
+ * overturned verdict for kinds in the CooldownOnOverturn policy table.
299
+ * Zero falls back to DefaultRoleOverturnCooldown (24h).
300
+ */
301
+ overturnBaseCooldown: bigint;
302
+ /**
303
+ * overturn_cooldown_escalates doubles the lockout per consecutive
304
+ * overturn -- base * 2^(streak-1), capped at 7 days. Off means every
305
+ * overturn draws the same flat base cooldown.
306
+ */
307
+ overturnCooldownEscalates: boolean;
279
308
  }
280
309
  export interface BondedRoleConfigProtoMsg {
281
310
  typeUrl: "/sparkdream.rep.v1.BondedRoleConfig";
@@ -340,6 +369,27 @@ export interface BondedRoleConfigAmino {
340
369
  * the owning module's operational params.
341
370
  */
342
371
  unbond_cooldown?: string;
372
+ /**
373
+ * upheld_to_reset_overturns is how many CONSECUTIVE upheld verdicts clear
374
+ * an accumulated overturn streak. Zero or one = reset on the first upheld
375
+ * verdict (the moderation-role behavior). Higher values make the streak
376
+ * -- and therefore the demotion ratchet and the escalating cooldown --
377
+ * stickier, so a role cannot alternate wrong/right indefinitely and stay
378
+ * out of demotion range.
379
+ */
380
+ upheld_to_reset_overturns?: string;
381
+ /**
382
+ * overturn_base_cooldown is the lockout in seconds applied on an
383
+ * overturned verdict for kinds in the CooldownOnOverturn policy table.
384
+ * Zero falls back to DefaultRoleOverturnCooldown (24h).
385
+ */
386
+ overturn_base_cooldown?: string;
387
+ /**
388
+ * overturn_cooldown_escalates doubles the lockout per consecutive
389
+ * overturn -- base * 2^(streak-1), capped at 7 days. Off means every
390
+ * overturn draws the same flat base cooldown.
391
+ */
392
+ overturn_cooldown_escalates?: boolean;
343
393
  }
344
394
  export interface BondedRoleConfigAminoMsg {
345
395
  type: "/sparkdream.rep.v1.BondedRoleConfig";
@@ -33,6 +33,14 @@ var RoleType;
33
33
  RoleType[RoleType["ROLE_TYPE_CONTENT_SENTINEL"] = 1] = "ROLE_TYPE_CONTENT_SENTINEL";
34
34
  RoleType[RoleType["ROLE_TYPE_COLLECT_CURATOR"] = 2] = "ROLE_TYPE_COLLECT_CURATOR";
35
35
  RoleType[RoleType["ROLE_TYPE_FEDERATION_VERIFIER"] = 3] = "ROLE_TYPE_FEDERATION_VERIFIER";
36
+ /**
37
+ * ROLE_TYPE_INITIATIVE_REVIEWER - Reviews submitted initiative work against its acceptance criteria. Owned by
38
+ * x/rep. Distinct from CONTENT_SENTINEL because the competence, the liability
39
+ * (a wrong approval mints DREAM), the bond sizing and the accuracy
40
+ * denominators all differ — see the Initiative Review section of
41
+ * docs/x-rep-spec.md.
42
+ */
43
+ RoleType[RoleType["ROLE_TYPE_INITIATIVE_REVIEWER"] = 4] = "ROLE_TYPE_INITIATIVE_REVIEWER";
36
44
  RoleType[RoleType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
37
45
  })(RoleType || (exports.RoleType = RoleType = {}));
38
46
  exports.RoleTypeAmino = RoleType;
@@ -50,6 +58,9 @@ function roleTypeFromJSON(object) {
50
58
  case 3:
51
59
  case "ROLE_TYPE_FEDERATION_VERIFIER":
52
60
  return RoleType.ROLE_TYPE_FEDERATION_VERIFIER;
61
+ case 4:
62
+ case "ROLE_TYPE_INITIATIVE_REVIEWER":
63
+ return RoleType.ROLE_TYPE_INITIATIVE_REVIEWER;
53
64
  case -1:
54
65
  case "UNRECOGNIZED":
55
66
  default:
@@ -66,6 +77,8 @@ function roleTypeToJSON(object) {
66
77
  return "ROLE_TYPE_COLLECT_CURATOR";
67
78
  case RoleType.ROLE_TYPE_FEDERATION_VERIFIER:
68
79
  return "ROLE_TYPE_FEDERATION_VERIFIER";
80
+ case RoleType.ROLE_TYPE_INITIATIVE_REVIEWER:
81
+ return "ROLE_TYPE_INITIATIVE_REVIEWER";
69
82
  case RoleType.UNRECOGNIZED:
70
83
  default:
71
84
  return "UNRECOGNIZED";
@@ -358,7 +371,10 @@ function createBaseBondedRoleConfig() {
358
371
  minAgeBlocks: BigInt(0),
359
372
  demotionCooldown: BigInt(0),
360
373
  demotionThreshold: "",
361
- unbondCooldown: BigInt(0)
374
+ unbondCooldown: BigInt(0),
375
+ upheldToResetOverturns: BigInt(0),
376
+ overturnBaseCooldown: BigInt(0),
377
+ overturnCooldownEscalates: false
362
378
  };
363
379
  }
364
380
  /**
@@ -401,6 +417,15 @@ exports.BondedRoleConfig = {
401
417
  if (message.unbondCooldown !== BigInt(0)) {
402
418
  writer.uint32(64).int64(message.unbondCooldown);
403
419
  }
420
+ if (message.upheldToResetOverturns !== BigInt(0)) {
421
+ writer.uint32(72).uint64(message.upheldToResetOverturns);
422
+ }
423
+ if (message.overturnBaseCooldown !== BigInt(0)) {
424
+ writer.uint32(80).int64(message.overturnBaseCooldown);
425
+ }
426
+ if (message.overturnCooldownEscalates === true) {
427
+ writer.uint32(88).bool(message.overturnCooldownEscalates);
428
+ }
404
429
  return writer;
405
430
  },
406
431
  decode(input, length) {
@@ -434,6 +459,15 @@ exports.BondedRoleConfig = {
434
459
  case 8:
435
460
  message.unbondCooldown = reader.int64();
436
461
  break;
462
+ case 9:
463
+ message.upheldToResetOverturns = reader.uint64();
464
+ break;
465
+ case 10:
466
+ message.overturnBaseCooldown = reader.int64();
467
+ break;
468
+ case 11:
469
+ message.overturnCooldownEscalates = reader.bool();
470
+ break;
437
471
  default:
438
472
  reader.skipType(tag & 7);
439
473
  break;
@@ -451,6 +485,9 @@ exports.BondedRoleConfig = {
451
485
  message.demotionCooldown = object.demotionCooldown !== undefined && object.demotionCooldown !== null ? BigInt(object.demotionCooldown.toString()) : BigInt(0);
452
486
  message.demotionThreshold = object.demotionThreshold ?? "";
453
487
  message.unbondCooldown = object.unbondCooldown !== undefined && object.unbondCooldown !== null ? BigInt(object.unbondCooldown.toString()) : BigInt(0);
488
+ message.upheldToResetOverturns = object.upheldToResetOverturns !== undefined && object.upheldToResetOverturns !== null ? BigInt(object.upheldToResetOverturns.toString()) : BigInt(0);
489
+ message.overturnBaseCooldown = object.overturnBaseCooldown !== undefined && object.overturnBaseCooldown !== null ? BigInt(object.overturnBaseCooldown.toString()) : BigInt(0);
490
+ message.overturnCooldownEscalates = object.overturnCooldownEscalates ?? false;
454
491
  return message;
455
492
  },
456
493
  fromAmino(object) {
@@ -479,6 +516,15 @@ exports.BondedRoleConfig = {
479
516
  if (object.unbond_cooldown !== undefined && object.unbond_cooldown !== null) {
480
517
  message.unbondCooldown = BigInt(object.unbond_cooldown);
481
518
  }
519
+ if (object.upheld_to_reset_overturns !== undefined && object.upheld_to_reset_overturns !== null) {
520
+ message.upheldToResetOverturns = BigInt(object.upheld_to_reset_overturns);
521
+ }
522
+ if (object.overturn_base_cooldown !== undefined && object.overturn_base_cooldown !== null) {
523
+ message.overturnBaseCooldown = BigInt(object.overturn_base_cooldown);
524
+ }
525
+ if (object.overturn_cooldown_escalates !== undefined && object.overturn_cooldown_escalates !== null) {
526
+ message.overturnCooldownEscalates = object.overturn_cooldown_escalates;
527
+ }
482
528
  return message;
483
529
  },
484
530
  toAmino(message) {
@@ -491,6 +537,9 @@ exports.BondedRoleConfig = {
491
537
  obj.demotion_cooldown = message.demotionCooldown !== BigInt(0) ? message.demotionCooldown?.toString() : undefined;
492
538
  obj.demotion_threshold = message.demotionThreshold === "" ? undefined : message.demotionThreshold;
493
539
  obj.unbond_cooldown = message.unbondCooldown !== BigInt(0) ? message.unbondCooldown?.toString() : undefined;
540
+ obj.upheld_to_reset_overturns = message.upheldToResetOverturns !== BigInt(0) ? message.upheldToResetOverturns?.toString() : undefined;
541
+ obj.overturn_base_cooldown = message.overturnBaseCooldown !== BigInt(0) ? message.overturnBaseCooldown?.toString() : undefined;
542
+ obj.overturn_cooldown_escalates = message.overturnCooldownEscalates === false ? undefined : message.overturnCooldownEscalates;
494
543
  return obj;
495
544
  },
496
545
  fromAminoMsg(object) {
@@ -35,6 +35,13 @@ export interface Challenge {
35
35
  createdAt: bigint;
36
36
  resolvedAt: bigint;
37
37
  responseDeadline: bigint;
38
+ /**
39
+ * The acceptance criterion this challenge says the work fails, when the
40
+ * initiative declared any. Optional — a challenge may still be a free-form
41
+ * claim — but naming one turns "the work is bad" into a question the jury can
42
+ * actually adjudicate against a standard the author agreed to up front.
43
+ */
44
+ criteriaId: string;
38
45
  }
39
46
  export interface ChallengeProtoMsg {
40
47
  typeUrl: "/sparkdream.rep.v1.Challenge";
@@ -57,6 +64,13 @@ export interface ChallengeAmino {
57
64
  created_at?: string;
58
65
  resolved_at?: string;
59
66
  response_deadline?: string;
67
+ /**
68
+ * The acceptance criterion this challenge says the work fails, when the
69
+ * initiative declared any. Optional — a challenge may still be a free-form
70
+ * claim — but naming one turns "the work is bad" into a question the jury can
71
+ * actually adjudicate against a standard the author agreed to up front.
72
+ */
73
+ criteria_id?: string;
60
74
  }
61
75
  export interface ChallengeAminoMsg {
62
76
  type: "/sparkdream.rep.v1.Challenge";
@@ -73,7 +73,8 @@ function createBaseChallenge() {
73
73
  status: 0,
74
74
  createdAt: BigInt(0),
75
75
  resolvedAt: BigInt(0),
76
- responseDeadline: BigInt(0)
76
+ responseDeadline: BigInt(0),
77
+ criteriaId: ""
77
78
  };
78
79
  }
79
80
  /**
@@ -104,16 +105,19 @@ exports.Challenge = {
104
105
  writer.uint32(50).string(message.stakedDream);
105
106
  }
106
107
  if (message.status !== 0) {
107
- writer.uint32(88).int32(message.status);
108
+ writer.uint32(56).int32(message.status);
108
109
  }
109
110
  if (message.createdAt !== BigInt(0)) {
110
- writer.uint32(96).int64(message.createdAt);
111
+ writer.uint32(64).int64(message.createdAt);
111
112
  }
112
113
  if (message.resolvedAt !== BigInt(0)) {
113
- writer.uint32(104).int64(message.resolvedAt);
114
+ writer.uint32(72).int64(message.resolvedAt);
114
115
  }
115
116
  if (message.responseDeadline !== BigInt(0)) {
116
- writer.uint32(112).int64(message.responseDeadline);
117
+ writer.uint32(80).int64(message.responseDeadline);
118
+ }
119
+ if (message.criteriaId !== "") {
120
+ writer.uint32(90).string(message.criteriaId);
117
121
  }
118
122
  return writer;
119
123
  },
@@ -142,18 +146,21 @@ exports.Challenge = {
142
146
  case 6:
143
147
  message.stakedDream = reader.string();
144
148
  break;
145
- case 11:
149
+ case 7:
146
150
  message.status = reader.int32();
147
151
  break;
148
- case 12:
152
+ case 8:
149
153
  message.createdAt = reader.int64();
150
154
  break;
151
- case 13:
155
+ case 9:
152
156
  message.resolvedAt = reader.int64();
153
157
  break;
154
- case 14:
158
+ case 10:
155
159
  message.responseDeadline = reader.int64();
156
160
  break;
161
+ case 11:
162
+ message.criteriaId = reader.string();
163
+ break;
157
164
  default:
158
165
  reader.skipType(tag & 7);
159
166
  break;
@@ -173,6 +180,7 @@ exports.Challenge = {
173
180
  message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
174
181
  message.resolvedAt = object.resolvedAt !== undefined && object.resolvedAt !== null ? BigInt(object.resolvedAt.toString()) : BigInt(0);
175
182
  message.responseDeadline = object.responseDeadline !== undefined && object.responseDeadline !== null ? BigInt(object.responseDeadline.toString()) : BigInt(0);
183
+ message.criteriaId = object.criteriaId ?? "";
176
184
  return message;
177
185
  },
178
186
  fromAmino(object) {
@@ -205,6 +213,9 @@ exports.Challenge = {
205
213
  if (object.response_deadline !== undefined && object.response_deadline !== null) {
206
214
  message.responseDeadline = BigInt(object.response_deadline);
207
215
  }
216
+ if (object.criteria_id !== undefined && object.criteria_id !== null) {
217
+ message.criteriaId = object.criteria_id;
218
+ }
208
219
  return message;
209
220
  },
210
221
  toAmino(message) {
@@ -224,6 +235,7 @@ exports.Challenge = {
224
235
  obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
225
236
  obj.resolved_at = message.resolvedAt !== BigInt(0) ? message.resolvedAt?.toString() : undefined;
226
237
  obj.response_deadline = message.responseDeadline !== BigInt(0) ? message.responseDeadline?.toString() : undefined;
238
+ obj.criteria_id = message.criteriaId === "" ? undefined : message.criteriaId;
227
239
  return obj;
228
240
  },
229
241
  fromAminoMsg(object) {