@sparkdreamnft/sparkdreamjs 0.0.34 → 0.0.36

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 (74) 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/rep/v1/{interim_template.js → acceptance_criteria.js} +13 -123
  10. package/esm/sparkdream/rep/v1/accountability.js +11 -0
  11. package/esm/sparkdream/rep/v1/bonded_role.js +13 -0
  12. package/esm/sparkdream/rep/v1/challenge.js +21 -9
  13. package/esm/sparkdream/rep/v1/genesis.js +198 -59
  14. package/esm/sparkdream/rep/v1/initiative.js +170 -47
  15. package/esm/sparkdream/rep/v1/initiative_review.js +179 -0
  16. package/esm/sparkdream/rep/v1/jury_participation.js +39 -9
  17. package/esm/sparkdream/rep/v1/jury_review.js +40 -1
  18. package/esm/sparkdream/rep/v1/member_report.js +8 -8
  19. package/esm/sparkdream/rep/v1/member_warning.js +2 -2
  20. package/esm/sparkdream/rep/v1/params.js +614 -2
  21. package/esm/sparkdream/rep/v1/query.js +4900 -3425
  22. package/esm/sparkdream/rep/v1/query.lcd.js +77 -16
  23. package/esm/sparkdream/rep/v1/query.rpc.Query.js +85 -21
  24. package/esm/sparkdream/rep/v1/review_bounty.js +215 -0
  25. package/esm/sparkdream/rep/v1/tag_report.js +2 -2
  26. package/esm/sparkdream/rep/v1/tx.js +2610 -1442
  27. package/esm/sparkdream/rep/v1/tx.registry.js +128 -2
  28. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +43 -1
  29. package/esm/tendermint/bundle.js +18 -18
  30. package/ibc/bundle.d.ts +99 -99
  31. package/ibc/bundle.js +116 -116
  32. package/package.json +1 -1
  33. package/sparkdream/bundle.d.ts +9671 -9159
  34. package/sparkdream/bundle.js +305 -301
  35. package/sparkdream/rep/v1/{interim_template.d.ts → acceptance_criteria.d.ts} +39 -52
  36. package/sparkdream/rep/v1/{interim_template.js → acceptance_criteria.js} +14 -124
  37. package/sparkdream/rep/v1/accountability.d.ts +6 -0
  38. package/sparkdream/rep/v1/accountability.js +11 -0
  39. package/sparkdream/rep/v1/bonded_role.d.ts +8 -0
  40. package/sparkdream/rep/v1/bonded_role.js +13 -0
  41. package/sparkdream/rep/v1/challenge.d.ts +14 -0
  42. package/sparkdream/rep/v1/challenge.js +21 -9
  43. package/sparkdream/rep/v1/genesis.d.ts +100 -3
  44. package/sparkdream/rep/v1/genesis.js +199 -60
  45. package/sparkdream/rep/v1/initiative.d.ts +120 -2
  46. package/sparkdream/rep/v1/initiative.js +173 -48
  47. package/sparkdream/rep/v1/initiative_review.d.ts +121 -0
  48. package/sparkdream/rep/v1/initiative_review.js +182 -0
  49. package/sparkdream/rep/v1/jury_participation.d.ts +89 -5
  50. package/sparkdream/rep/v1/jury_participation.js +39 -9
  51. package/sparkdream/rep/v1/jury_review.d.ts +38 -0
  52. package/sparkdream/rep/v1/jury_review.js +40 -1
  53. package/sparkdream/rep/v1/member_report.js +8 -8
  54. package/sparkdream/rep/v1/member_warning.js +2 -2
  55. package/sparkdream/rep/v1/params.d.ts +668 -16
  56. package/sparkdream/rep/v1/params.js +614 -2
  57. package/sparkdream/rep/v1/query.d.ts +1214 -264
  58. package/sparkdream/rep/v1/query.js +4904 -3429
  59. package/sparkdream/rep/v1/query.lcd.d.ts +9 -3
  60. package/sparkdream/rep/v1/query.lcd.js +77 -16
  61. package/sparkdream/rep/v1/query.rpc.Query.d.ts +55 -9
  62. package/sparkdream/rep/v1/query.rpc.Query.js +84 -20
  63. package/sparkdream/rep/v1/review_bounty.d.ts +168 -0
  64. package/sparkdream/rep/v1/review_bounty.js +218 -0
  65. package/sparkdream/rep/v1/tag_report.js +2 -2
  66. package/sparkdream/rep/v1/tx.d.ts +816 -9
  67. package/sparkdream/rep/v1/tx.js +2612 -1443
  68. package/sparkdream/rep/v1/tx.registry.d.ts +85 -1
  69. package/sparkdream/rep/v1/tx.registry.js +127 -1
  70. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +20 -1
  71. package/sparkdream/rep/v1/tx.rpc.msg.js +42 -0
  72. package/sparkdream/rpc.query.d.ts +8 -2
  73. package/tendermint/bundle.d.ts +844 -844
  74. 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;
@@ -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";
@@ -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) {
@@ -7,7 +7,6 @@ import { Stake, StakeAmino, MemberStakePool, MemberStakePoolAmino, TagStakePool,
7
7
  import { Challenge, ChallengeAmino } from "./challenge";
8
8
  import { JuryReview, JuryReviewAmino } from "./jury_review";
9
9
  import { Interim, InterimAmino } from "./interim";
10
- import { InterimTemplate, InterimTemplateAmino } from "./interim_template";
11
10
  import { ContentChallenge, ContentChallengeAmino } from "./content_challenge";
12
11
  import { Tag, TagAmino } from "./tag";
13
12
  import { ReservedTag, ReservedTagAmino } from "./reserved_tag";
@@ -20,6 +19,8 @@ import { MemberWarning, MemberWarningAmino } from "./member_warning";
20
19
  import { GovActionAppeal, GovActionAppealAmino } from "./gov_action_appeal";
21
20
  import { BondedRole, BondedRoleAmino, BondedRoleConfig, BondedRoleConfigAmino } from "./bonded_role";
22
21
  import { RoleActivity, RoleActivityAmino } from "./role_activity";
22
+ import { InitiativeReview, InitiativeReviewAmino } from "./initiative_review";
23
+ import { ReviewBounty, ReviewBountyAmino } from "./review_bounty";
23
24
  import { BinaryReader, BinaryWriter } from "../../../binary";
24
25
  import { DeepPartial } from "../../../helpers";
25
26
  /**
@@ -48,7 +49,6 @@ export interface GenesisState {
48
49
  juryReviewCount: bigint;
49
50
  interimList: Interim[];
50
51
  interimCount: bigint;
51
- interimTemplateMap: InterimTemplate[];
52
52
  /**
53
53
  * Stake pools (for extended staking)
54
54
  */
@@ -95,6 +95,29 @@ export interface GenesisState {
95
95
  bondedRoleList: BondedRole[];
96
96
  bondedRoleConfigList: BondedRoleConfig[];
97
97
  roleActivityList: RoleActivity[];
98
+ /**
99
+ * Reviewer verdicts. Their bond_reserved is live liability, so losing them on
100
+ * import would strand committed bond with nothing to release it.
101
+ */
102
+ initiativeReviewList: InitiativeReview[];
103
+ /**
104
+ * Review rounds sitting with the Operations Committee. This set is the ONLY
105
+ * marker for "already escalated" — ReviewEscalation is reset to NONE on
106
+ * escalation — so losing it on import re-escalates every open round and
107
+ * extends its deadline again, and leaves silent escalations with nothing to
108
+ * resolve them.
109
+ */
110
+ escalatedReviewList: bigint[];
111
+ /**
112
+ * Per-UTC-day community-pool draw ledger for the bonded-role reward pools.
113
+ * Dropping it on import hands the chain a fresh daily allowance.
114
+ */
115
+ roleRewardDayFundingList: RoleRewardDayFunding[];
116
+ /**
117
+ * Escrowed review bounties. Real DREAM is held against these, so losing them
118
+ * on import would strand the escrow with nothing able to pay or refund it.
119
+ */
120
+ reviewBountyList: ReviewBounty[];
98
121
  }
99
122
  export interface GenesisStateProtoMsg {
100
123
  typeUrl: "/sparkdream.rep.v1.GenesisState";
@@ -126,7 +149,6 @@ export interface GenesisStateAmino {
126
149
  jury_review_count?: string;
127
150
  interim_list?: InterimAmino[];
128
151
  interim_count?: string;
129
- interim_template_map?: InterimTemplateAmino[];
130
152
  /**
131
153
  * Stake pools (for extended staking)
132
154
  */
@@ -173,11 +195,66 @@ export interface GenesisStateAmino {
173
195
  bonded_role_list?: BondedRoleAmino[];
174
196
  bonded_role_config_list?: BondedRoleConfigAmino[];
175
197
  role_activity_list?: RoleActivityAmino[];
198
+ /**
199
+ * Reviewer verdicts. Their bond_reserved is live liability, so losing them on
200
+ * import would strand committed bond with nothing to release it.
201
+ */
202
+ initiative_review_list?: InitiativeReviewAmino[];
203
+ /**
204
+ * Review rounds sitting with the Operations Committee. This set is the ONLY
205
+ * marker for "already escalated" — ReviewEscalation is reset to NONE on
206
+ * escalation — so losing it on import re-escalates every open round and
207
+ * extends its deadline again, and leaves silent escalations with nothing to
208
+ * resolve them.
209
+ */
210
+ escalated_review_list?: string[];
211
+ /**
212
+ * Per-UTC-day community-pool draw ledger for the bonded-role reward pools.
213
+ * Dropping it on import hands the chain a fresh daily allowance.
214
+ */
215
+ role_reward_day_funding_list?: RoleRewardDayFundingAmino[];
216
+ /**
217
+ * Escrowed review bounties. Real DREAM is held against these, so losing them
218
+ * on import would strand the escrow with nothing able to pay or refund it.
219
+ */
220
+ review_bounty_list?: ReviewBountyAmino[];
176
221
  }
177
222
  export interface GenesisStateAminoMsg {
178
223
  type: "/sparkdream.rep.v1.GenesisState";
179
224
  value: GenesisStateAmino;
180
225
  }
226
+ /**
227
+ * RoleRewardDayFunding is one UTC day's community-pool draw for the
228
+ * bonded-role reward pools, ledgered so role_reward_daily_funding bounds a day
229
+ * rather than a block.
230
+ * @name RoleRewardDayFunding
231
+ * @package sparkdream.rep.v1
232
+ * @see proto type: sparkdream.rep.v1.RoleRewardDayFunding
233
+ */
234
+ export interface RoleRewardDayFunding {
235
+ day: bigint;
236
+ amountFunded: string;
237
+ }
238
+ export interface RoleRewardDayFundingProtoMsg {
239
+ typeUrl: "/sparkdream.rep.v1.RoleRewardDayFunding";
240
+ value: Uint8Array;
241
+ }
242
+ /**
243
+ * RoleRewardDayFunding is one UTC day's community-pool draw for the
244
+ * bonded-role reward pools, ledgered so role_reward_daily_funding bounds a day
245
+ * rather than a block.
246
+ * @name RoleRewardDayFundingAmino
247
+ * @package sparkdream.rep.v1
248
+ * @see proto type: sparkdream.rep.v1.RoleRewardDayFunding
249
+ */
250
+ export interface RoleRewardDayFundingAmino {
251
+ day?: string;
252
+ amount_funded?: string;
253
+ }
254
+ export interface RoleRewardDayFundingAminoMsg {
255
+ type: "/sparkdream.rep.v1.RoleRewardDayFunding";
256
+ value: RoleRewardDayFundingAmino;
257
+ }
181
258
  /**
182
259
  * ContentInitiativeLink defines a link between content and an initiative for conviction propagation.
183
260
  * @name ContentInitiativeLink
@@ -238,6 +315,26 @@ export declare const GenesisState: {
238
315
  toProto(message: GenesisState): Uint8Array;
239
316
  toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
240
317
  };
318
+ /**
319
+ * RoleRewardDayFunding is one UTC day's community-pool draw for the
320
+ * bonded-role reward pools, ledgered so role_reward_daily_funding bounds a day
321
+ * rather than a block.
322
+ * @name RoleRewardDayFunding
323
+ * @package sparkdream.rep.v1
324
+ * @see proto type: sparkdream.rep.v1.RoleRewardDayFunding
325
+ */
326
+ export declare const RoleRewardDayFunding: {
327
+ typeUrl: string;
328
+ encode(message: RoleRewardDayFunding, writer?: BinaryWriter): BinaryWriter;
329
+ decode(input: BinaryReader | Uint8Array, length?: number): RoleRewardDayFunding;
330
+ fromPartial(object: DeepPartial<RoleRewardDayFunding>): RoleRewardDayFunding;
331
+ fromAmino(object: RoleRewardDayFundingAmino): RoleRewardDayFunding;
332
+ toAmino(message: RoleRewardDayFunding): RoleRewardDayFundingAmino;
333
+ fromAminoMsg(object: RoleRewardDayFundingAminoMsg): RoleRewardDayFunding;
334
+ fromProtoMsg(message: RoleRewardDayFundingProtoMsg): RoleRewardDayFunding;
335
+ toProto(message: RoleRewardDayFunding): Uint8Array;
336
+ toProtoMsg(message: RoleRewardDayFunding): RoleRewardDayFundingProtoMsg;
337
+ };
241
338
  /**
242
339
  * ContentInitiativeLink defines a link between content and an initiative for conviction propagation.
243
340
  * @name ContentInitiativeLink