@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.
- package/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/bundle.js +305 -301
- package/esm/sparkdream/federation/v1/genesis.js +101 -3
- package/esm/sparkdream/federation/v1/params.js +129 -117
- package/esm/sparkdream/federation/v1/query.js +204 -7
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -2
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +16 -3
- package/esm/sparkdream/federation/v1/types.js +73 -1
- package/esm/sparkdream/federation/v1/verifier_activity.js +143 -45
- package/esm/sparkdream/rep/v1/{interim_template.js → acceptance_criteria.js} +13 -123
- package/esm/sparkdream/rep/v1/accountability.js +11 -0
- package/esm/sparkdream/rep/v1/bonded_role.js +50 -1
- package/esm/sparkdream/rep/v1/challenge.js +21 -9
- package/esm/sparkdream/rep/v1/genesis.js +198 -59
- package/esm/sparkdream/rep/v1/initiative.js +160 -49
- package/esm/sparkdream/rep/v1/initiative_review.js +179 -0
- package/esm/sparkdream/rep/v1/jury_participation.js +39 -9
- package/esm/sparkdream/rep/v1/jury_review.js +40 -1
- package/esm/sparkdream/rep/v1/member_report.js +8 -8
- package/esm/sparkdream/rep/v1/member_warning.js +2 -2
- package/esm/sparkdream/rep/v1/params.js +806 -2
- package/esm/sparkdream/rep/v1/query.js +1446 -325
- package/esm/sparkdream/rep/v1/query.lcd.js +49 -16
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +67 -21
- package/esm/sparkdream/rep/v1/review_bounty.js +215 -0
- package/esm/sparkdream/rep/v1/role_activity.js +13 -1
- package/esm/sparkdream/rep/v1/tag_report.js +2 -2
- package/esm/sparkdream/rep/v1/tx.js +2610 -1442
- package/esm/sparkdream/rep/v1/tx.registry.js +128 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +43 -1
- package/esm/tendermint/bundle.js +18 -18
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +9709 -9199
- package/sparkdream/bundle.js +305 -301
- package/sparkdream/federation/v1/genesis.d.ts +66 -0
- package/sparkdream/federation/v1/genesis.js +102 -4
- package/sparkdream/federation/v1/params.d.ts +72 -10
- package/sparkdream/federation/v1/params.js +129 -117
- package/sparkdream/federation/v1/query.d.ts +120 -3
- package/sparkdream/federation/v1/query.js +204 -7
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +11 -2
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +13 -3
- package/sparkdream/federation/v1/query.rpc.Query.js +15 -2
- package/sparkdream/federation/v1/types.d.ts +44 -0
- package/sparkdream/federation/v1/types.js +73 -1
- package/sparkdream/federation/v1/verifier_activity.d.ts +151 -68
- package/sparkdream/federation/v1/verifier_activity.js +144 -46
- package/sparkdream/rep/v1/{interim_template.d.ts → acceptance_criteria.d.ts} +39 -52
- package/sparkdream/rep/v1/{interim_template.js → acceptance_criteria.js} +14 -124
- package/sparkdream/rep/v1/accountability.d.ts +6 -0
- package/sparkdream/rep/v1/accountability.js +11 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +50 -0
- package/sparkdream/rep/v1/bonded_role.js +50 -1
- package/sparkdream/rep/v1/challenge.d.ts +14 -0
- package/sparkdream/rep/v1/challenge.js +21 -9
- package/sparkdream/rep/v1/genesis.d.ts +100 -3
- package/sparkdream/rep/v1/genesis.js +199 -60
- package/sparkdream/rep/v1/initiative.d.ts +106 -2
- package/sparkdream/rep/v1/initiative.js +163 -50
- package/sparkdream/rep/v1/initiative_review.d.ts +121 -0
- package/sparkdream/rep/v1/initiative_review.js +182 -0
- package/sparkdream/rep/v1/jury_participation.d.ts +89 -5
- package/sparkdream/rep/v1/jury_participation.js +39 -9
- package/sparkdream/rep/v1/jury_review.d.ts +38 -0
- package/sparkdream/rep/v1/jury_review.js +40 -1
- package/sparkdream/rep/v1/member_report.js +8 -8
- package/sparkdream/rep/v1/member_warning.js +2 -2
- package/sparkdream/rep/v1/params.d.ts +764 -16
- package/sparkdream/rep/v1/params.js +806 -2
- package/sparkdream/rep/v1/query.d.ts +929 -179
- package/sparkdream/rep/v1/query.js +1450 -329
- package/sparkdream/rep/v1/query.lcd.d.ts +7 -3
- package/sparkdream/rep/v1/query.lcd.js +49 -16
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +47 -9
- package/sparkdream/rep/v1/query.rpc.Query.js +66 -20
- package/sparkdream/rep/v1/review_bounty.d.ts +168 -0
- package/sparkdream/rep/v1/review_bounty.js +218 -0
- package/sparkdream/rep/v1/role_activity.d.ts +26 -0
- package/sparkdream/rep/v1/role_activity.js +13 -1
- package/sparkdream/rep/v1/tag_report.js +2 -2
- package/sparkdream/rep/v1/tx.d.ts +816 -9
- package/sparkdream/rep/v1/tx.js +2612 -1443
- package/sparkdream/rep/v1/tx.registry.d.ts +85 -1
- package/sparkdream/rep/v1/tx.registry.js +127 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +20 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +42 -0
- package/sparkdream/rpc.query.d.ts +7 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
|
@@ -3,45 +3,143 @@ import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
|
3
3
|
function createBaseVerifierActivity() {
|
|
4
4
|
return {
|
|
5
5
|
address: "",
|
|
6
|
+
unchallengedVerifications: BigInt(0)
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* VerifierActivity is federation's SLIM per-verifier record.
|
|
11
|
+
*
|
|
12
|
+
* Everything that is a property of the ROLE rather than of federation's
|
|
13
|
+
* surface -- verdict streaks, the overturn cooldown, the rolling accuracy
|
|
14
|
+
* ring, and the per-action counters -- lives on x/rep's shared RoleActivity
|
|
15
|
+
* under ROLE_TYPE_FEDERATION_VERIFIER, alongside the bond it governs.
|
|
16
|
+
* Federation reports actions (RecordRoleAction with
|
|
17
|
+
* ActionKindFederationVerify) and verdicts (RecordRoleOutcome); x/rep applies
|
|
18
|
+
* the consequences and pays the role. Same ownership split forum and collect
|
|
19
|
+
* already use for the content sentinel.
|
|
20
|
+
*
|
|
21
|
+
* Only unchallenged_verifications stays here: it is a federation-local
|
|
22
|
+
* bookkeeping stat with no shared meaning -- an unchallenged verification is
|
|
23
|
+
* not evidence of accuracy and deliberately earns nothing, so it must not
|
|
24
|
+
* reach the accuracy ring.
|
|
25
|
+
*
|
|
26
|
+
* The QueryVerifierActivityResponse still returns the FULL historical shape.
|
|
27
|
+
* Those fields are PROJECTED from rep at query time (see
|
|
28
|
+
* query_verifier_activity.go) and are not persisted here.
|
|
29
|
+
* @name VerifierActivity
|
|
30
|
+
* @package sparkdream.federation.v1
|
|
31
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
32
|
+
*/
|
|
33
|
+
export const VerifierActivity = {
|
|
34
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity",
|
|
35
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
36
|
+
if (message.address !== "") {
|
|
37
|
+
writer.uint32(10).string(message.address);
|
|
38
|
+
}
|
|
39
|
+
if (message.unchallengedVerifications !== BigInt(0)) {
|
|
40
|
+
writer.uint32(16).uint64(message.unchallengedVerifications);
|
|
41
|
+
}
|
|
42
|
+
return writer;
|
|
43
|
+
},
|
|
44
|
+
decode(input, length) {
|
|
45
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
46
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
47
|
+
const message = createBaseVerifierActivity();
|
|
48
|
+
while (reader.pos < end) {
|
|
49
|
+
const tag = reader.uint32();
|
|
50
|
+
switch (tag >>> 3) {
|
|
51
|
+
case 1:
|
|
52
|
+
message.address = reader.string();
|
|
53
|
+
break;
|
|
54
|
+
case 2:
|
|
55
|
+
message.unchallengedVerifications = reader.uint64();
|
|
56
|
+
break;
|
|
57
|
+
default:
|
|
58
|
+
reader.skipType(tag & 7);
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromPartial(object) {
|
|
65
|
+
const message = createBaseVerifierActivity();
|
|
66
|
+
message.address = object.address ?? "";
|
|
67
|
+
message.unchallengedVerifications = object.unchallengedVerifications !== undefined && object.unchallengedVerifications !== null ? BigInt(object.unchallengedVerifications.toString()) : BigInt(0);
|
|
68
|
+
return message;
|
|
69
|
+
},
|
|
70
|
+
fromAmino(object) {
|
|
71
|
+
const message = createBaseVerifierActivity();
|
|
72
|
+
if (object.address !== undefined && object.address !== null) {
|
|
73
|
+
message.address = object.address;
|
|
74
|
+
}
|
|
75
|
+
if (object.unchallenged_verifications !== undefined && object.unchallenged_verifications !== null) {
|
|
76
|
+
message.unchallengedVerifications = BigInt(object.unchallenged_verifications);
|
|
77
|
+
}
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
toAmino(message) {
|
|
81
|
+
const obj = {};
|
|
82
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
83
|
+
obj.unchallenged_verifications = message.unchallengedVerifications !== BigInt(0) ? message.unchallengedVerifications?.toString() : undefined;
|
|
84
|
+
return obj;
|
|
85
|
+
},
|
|
86
|
+
fromAminoMsg(object) {
|
|
87
|
+
return VerifierActivity.fromAmino(object.value);
|
|
88
|
+
},
|
|
89
|
+
fromProtoMsg(message) {
|
|
90
|
+
return VerifierActivity.decode(message.value);
|
|
91
|
+
},
|
|
92
|
+
toProto(message) {
|
|
93
|
+
return VerifierActivity.encode(message).finish();
|
|
94
|
+
},
|
|
95
|
+
toProtoMsg(message) {
|
|
96
|
+
return {
|
|
97
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity",
|
|
98
|
+
value: VerifierActivity.encode(message).finish()
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
function createBaseVerifierActivityView() {
|
|
103
|
+
return {
|
|
104
|
+
address: "",
|
|
105
|
+
unchallengedVerifications: BigInt(0),
|
|
6
106
|
totalVerifications: BigInt(0),
|
|
7
107
|
upheldVerifications: BigInt(0),
|
|
8
108
|
overturnedVerifications: BigInt(0),
|
|
9
|
-
unchallengedVerifications: BigInt(0),
|
|
10
109
|
epochVerifications: BigInt(0),
|
|
11
110
|
epochChallengesResolved: BigInt(0),
|
|
12
111
|
consecutiveOverturns: BigInt(0),
|
|
13
112
|
consecutiveUpheld: BigInt(0),
|
|
14
113
|
overturnCooldownUntil: BigInt(0),
|
|
15
|
-
|
|
16
|
-
|
|
114
|
+
lastSlashEpoch: BigInt(0),
|
|
115
|
+
slashCount: BigInt(0)
|
|
17
116
|
};
|
|
18
117
|
}
|
|
19
118
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* @name VerifierActivity
|
|
119
|
+
* VerifierActivityView is the read-only projection returned by the
|
|
120
|
+
* verifier-activity query: federation's slim stored record overlaid with the
|
|
121
|
+
* shared accountability state x/rep owns. Never persisted.
|
|
122
|
+
* @name VerifierActivityView
|
|
25
123
|
* @package sparkdream.federation.v1
|
|
26
|
-
* @see proto type: sparkdream.federation.v1.
|
|
124
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivityView
|
|
27
125
|
*/
|
|
28
|
-
export const
|
|
29
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
126
|
+
export const VerifierActivityView = {
|
|
127
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivityView",
|
|
30
128
|
encode(message, writer = BinaryWriter.create()) {
|
|
31
129
|
if (message.address !== "") {
|
|
32
130
|
writer.uint32(10).string(message.address);
|
|
33
131
|
}
|
|
132
|
+
if (message.unchallengedVerifications !== BigInt(0)) {
|
|
133
|
+
writer.uint32(16).uint64(message.unchallengedVerifications);
|
|
134
|
+
}
|
|
34
135
|
if (message.totalVerifications !== BigInt(0)) {
|
|
35
|
-
writer.uint32(
|
|
136
|
+
writer.uint32(24).uint64(message.totalVerifications);
|
|
36
137
|
}
|
|
37
138
|
if (message.upheldVerifications !== BigInt(0)) {
|
|
38
|
-
writer.uint32(
|
|
139
|
+
writer.uint32(32).uint64(message.upheldVerifications);
|
|
39
140
|
}
|
|
40
141
|
if (message.overturnedVerifications !== BigInt(0)) {
|
|
41
|
-
writer.uint32(
|
|
42
|
-
}
|
|
43
|
-
if (message.unchallengedVerifications !== BigInt(0)) {
|
|
44
|
-
writer.uint32(40).uint64(message.unchallengedVerifications);
|
|
142
|
+
writer.uint32(40).uint64(message.overturnedVerifications);
|
|
45
143
|
}
|
|
46
144
|
if (message.epochVerifications !== BigInt(0)) {
|
|
47
145
|
writer.uint32(48).uint64(message.epochVerifications);
|
|
@@ -58,18 +156,18 @@ export const VerifierActivity = {
|
|
|
58
156
|
if (message.overturnCooldownUntil !== BigInt(0)) {
|
|
59
157
|
writer.uint32(80).int64(message.overturnCooldownUntil);
|
|
60
158
|
}
|
|
61
|
-
if (message.slashCount !== BigInt(0)) {
|
|
62
|
-
writer.uint32(88).uint64(message.slashCount);
|
|
63
|
-
}
|
|
64
159
|
if (message.lastSlashEpoch !== BigInt(0)) {
|
|
65
|
-
writer.uint32(
|
|
160
|
+
writer.uint32(88).int64(message.lastSlashEpoch);
|
|
161
|
+
}
|
|
162
|
+
if (message.slashCount !== BigInt(0)) {
|
|
163
|
+
writer.uint32(96).uint64(message.slashCount);
|
|
66
164
|
}
|
|
67
165
|
return writer;
|
|
68
166
|
},
|
|
69
167
|
decode(input, length) {
|
|
70
168
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
71
169
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
72
|
-
const message =
|
|
170
|
+
const message = createBaseVerifierActivityView();
|
|
73
171
|
while (reader.pos < end) {
|
|
74
172
|
const tag = reader.uint32();
|
|
75
173
|
switch (tag >>> 3) {
|
|
@@ -77,16 +175,16 @@ export const VerifierActivity = {
|
|
|
77
175
|
message.address = reader.string();
|
|
78
176
|
break;
|
|
79
177
|
case 2:
|
|
80
|
-
message.
|
|
178
|
+
message.unchallengedVerifications = reader.uint64();
|
|
81
179
|
break;
|
|
82
180
|
case 3:
|
|
83
|
-
message.
|
|
181
|
+
message.totalVerifications = reader.uint64();
|
|
84
182
|
break;
|
|
85
183
|
case 4:
|
|
86
|
-
message.
|
|
184
|
+
message.upheldVerifications = reader.uint64();
|
|
87
185
|
break;
|
|
88
186
|
case 5:
|
|
89
|
-
message.
|
|
187
|
+
message.overturnedVerifications = reader.uint64();
|
|
90
188
|
break;
|
|
91
189
|
case 6:
|
|
92
190
|
message.epochVerifications = reader.uint64();
|
|
@@ -104,10 +202,10 @@ export const VerifierActivity = {
|
|
|
104
202
|
message.overturnCooldownUntil = reader.int64();
|
|
105
203
|
break;
|
|
106
204
|
case 11:
|
|
107
|
-
message.
|
|
205
|
+
message.lastSlashEpoch = reader.int64();
|
|
108
206
|
break;
|
|
109
207
|
case 12:
|
|
110
|
-
message.
|
|
208
|
+
message.slashCount = reader.uint64();
|
|
111
209
|
break;
|
|
112
210
|
default:
|
|
113
211
|
reader.skipType(tag & 7);
|
|
@@ -117,26 +215,29 @@ export const VerifierActivity = {
|
|
|
117
215
|
return message;
|
|
118
216
|
},
|
|
119
217
|
fromPartial(object) {
|
|
120
|
-
const message =
|
|
218
|
+
const message = createBaseVerifierActivityView();
|
|
121
219
|
message.address = object.address ?? "";
|
|
220
|
+
message.unchallengedVerifications = object.unchallengedVerifications !== undefined && object.unchallengedVerifications !== null ? BigInt(object.unchallengedVerifications.toString()) : BigInt(0);
|
|
122
221
|
message.totalVerifications = object.totalVerifications !== undefined && object.totalVerifications !== null ? BigInt(object.totalVerifications.toString()) : BigInt(0);
|
|
123
222
|
message.upheldVerifications = object.upheldVerifications !== undefined && object.upheldVerifications !== null ? BigInt(object.upheldVerifications.toString()) : BigInt(0);
|
|
124
223
|
message.overturnedVerifications = object.overturnedVerifications !== undefined && object.overturnedVerifications !== null ? BigInt(object.overturnedVerifications.toString()) : BigInt(0);
|
|
125
|
-
message.unchallengedVerifications = object.unchallengedVerifications !== undefined && object.unchallengedVerifications !== null ? BigInt(object.unchallengedVerifications.toString()) : BigInt(0);
|
|
126
224
|
message.epochVerifications = object.epochVerifications !== undefined && object.epochVerifications !== null ? BigInt(object.epochVerifications.toString()) : BigInt(0);
|
|
127
225
|
message.epochChallengesResolved = object.epochChallengesResolved !== undefined && object.epochChallengesResolved !== null ? BigInt(object.epochChallengesResolved.toString()) : BigInt(0);
|
|
128
226
|
message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
|
|
129
227
|
message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
|
|
130
228
|
message.overturnCooldownUntil = object.overturnCooldownUntil !== undefined && object.overturnCooldownUntil !== null ? BigInt(object.overturnCooldownUntil.toString()) : BigInt(0);
|
|
131
|
-
message.slashCount = object.slashCount !== undefined && object.slashCount !== null ? BigInt(object.slashCount.toString()) : BigInt(0);
|
|
132
229
|
message.lastSlashEpoch = object.lastSlashEpoch !== undefined && object.lastSlashEpoch !== null ? BigInt(object.lastSlashEpoch.toString()) : BigInt(0);
|
|
230
|
+
message.slashCount = object.slashCount !== undefined && object.slashCount !== null ? BigInt(object.slashCount.toString()) : BigInt(0);
|
|
133
231
|
return message;
|
|
134
232
|
},
|
|
135
233
|
fromAmino(object) {
|
|
136
|
-
const message =
|
|
234
|
+
const message = createBaseVerifierActivityView();
|
|
137
235
|
if (object.address !== undefined && object.address !== null) {
|
|
138
236
|
message.address = object.address;
|
|
139
237
|
}
|
|
238
|
+
if (object.unchallenged_verifications !== undefined && object.unchallenged_verifications !== null) {
|
|
239
|
+
message.unchallengedVerifications = BigInt(object.unchallenged_verifications);
|
|
240
|
+
}
|
|
140
241
|
if (object.total_verifications !== undefined && object.total_verifications !== null) {
|
|
141
242
|
message.totalVerifications = BigInt(object.total_verifications);
|
|
142
243
|
}
|
|
@@ -146,9 +247,6 @@ export const VerifierActivity = {
|
|
|
146
247
|
if (object.overturned_verifications !== undefined && object.overturned_verifications !== null) {
|
|
147
248
|
message.overturnedVerifications = BigInt(object.overturned_verifications);
|
|
148
249
|
}
|
|
149
|
-
if (object.unchallenged_verifications !== undefined && object.unchallenged_verifications !== null) {
|
|
150
|
-
message.unchallengedVerifications = BigInt(object.unchallenged_verifications);
|
|
151
|
-
}
|
|
152
250
|
if (object.epoch_verifications !== undefined && object.epoch_verifications !== null) {
|
|
153
251
|
message.epochVerifications = BigInt(object.epoch_verifications);
|
|
154
252
|
}
|
|
@@ -164,43 +262,43 @@ export const VerifierActivity = {
|
|
|
164
262
|
if (object.overturn_cooldown_until !== undefined && object.overturn_cooldown_until !== null) {
|
|
165
263
|
message.overturnCooldownUntil = BigInt(object.overturn_cooldown_until);
|
|
166
264
|
}
|
|
167
|
-
if (object.slash_count !== undefined && object.slash_count !== null) {
|
|
168
|
-
message.slashCount = BigInt(object.slash_count);
|
|
169
|
-
}
|
|
170
265
|
if (object.last_slash_epoch !== undefined && object.last_slash_epoch !== null) {
|
|
171
266
|
message.lastSlashEpoch = BigInt(object.last_slash_epoch);
|
|
172
267
|
}
|
|
268
|
+
if (object.slash_count !== undefined && object.slash_count !== null) {
|
|
269
|
+
message.slashCount = BigInt(object.slash_count);
|
|
270
|
+
}
|
|
173
271
|
return message;
|
|
174
272
|
},
|
|
175
273
|
toAmino(message) {
|
|
176
274
|
const obj = {};
|
|
177
275
|
obj.address = message.address === "" ? undefined : message.address;
|
|
276
|
+
obj.unchallenged_verifications = message.unchallengedVerifications !== BigInt(0) ? message.unchallengedVerifications?.toString() : undefined;
|
|
178
277
|
obj.total_verifications = message.totalVerifications !== BigInt(0) ? message.totalVerifications?.toString() : undefined;
|
|
179
278
|
obj.upheld_verifications = message.upheldVerifications !== BigInt(0) ? message.upheldVerifications?.toString() : undefined;
|
|
180
279
|
obj.overturned_verifications = message.overturnedVerifications !== BigInt(0) ? message.overturnedVerifications?.toString() : undefined;
|
|
181
|
-
obj.unchallenged_verifications = message.unchallengedVerifications !== BigInt(0) ? message.unchallengedVerifications?.toString() : undefined;
|
|
182
280
|
obj.epoch_verifications = message.epochVerifications !== BigInt(0) ? message.epochVerifications?.toString() : undefined;
|
|
183
281
|
obj.epoch_challenges_resolved = message.epochChallengesResolved !== BigInt(0) ? message.epochChallengesResolved?.toString() : undefined;
|
|
184
282
|
obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
|
|
185
283
|
obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
|
|
186
284
|
obj.overturn_cooldown_until = message.overturnCooldownUntil !== BigInt(0) ? message.overturnCooldownUntil?.toString() : undefined;
|
|
187
|
-
obj.slash_count = message.slashCount !== BigInt(0) ? message.slashCount?.toString() : undefined;
|
|
188
285
|
obj.last_slash_epoch = message.lastSlashEpoch !== BigInt(0) ? message.lastSlashEpoch?.toString() : undefined;
|
|
286
|
+
obj.slash_count = message.slashCount !== BigInt(0) ? message.slashCount?.toString() : undefined;
|
|
189
287
|
return obj;
|
|
190
288
|
},
|
|
191
289
|
fromAminoMsg(object) {
|
|
192
|
-
return
|
|
290
|
+
return VerifierActivityView.fromAmino(object.value);
|
|
193
291
|
},
|
|
194
292
|
fromProtoMsg(message) {
|
|
195
|
-
return
|
|
293
|
+
return VerifierActivityView.decode(message.value);
|
|
196
294
|
},
|
|
197
295
|
toProto(message) {
|
|
198
|
-
return
|
|
296
|
+
return VerifierActivityView.encode(message).finish();
|
|
199
297
|
},
|
|
200
298
|
toProtoMsg(message) {
|
|
201
299
|
return {
|
|
202
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
203
|
-
value:
|
|
300
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivityView",
|
|
301
|
+
value: VerifierActivityView.encode(message).finish()
|
|
204
302
|
};
|
|
205
303
|
}
|
|
206
304
|
};
|
|
@@ -38,129 +38,6 @@ export function criteriaTypeToJSON(object) {
|
|
|
38
38
|
return "UNRECOGNIZED";
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function createBaseInterimTemplate() {
|
|
42
|
-
return {
|
|
43
|
-
id: "",
|
|
44
|
-
name: "",
|
|
45
|
-
tags: [],
|
|
46
|
-
criteria: [],
|
|
47
|
-
verificationGuide: ""
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* InterimTemplate defines the InterimTemplate message.
|
|
52
|
-
* @name InterimTemplate
|
|
53
|
-
* @package sparkdream.rep.v1
|
|
54
|
-
* @see proto type: sparkdream.rep.v1.InterimTemplate
|
|
55
|
-
*/
|
|
56
|
-
export const InterimTemplate = {
|
|
57
|
-
typeUrl: "/sparkdream.rep.v1.InterimTemplate",
|
|
58
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
59
|
-
if (message.id !== "") {
|
|
60
|
-
writer.uint32(10).string(message.id);
|
|
61
|
-
}
|
|
62
|
-
if (message.name !== "") {
|
|
63
|
-
writer.uint32(18).string(message.name);
|
|
64
|
-
}
|
|
65
|
-
for (const v of message.tags) {
|
|
66
|
-
writer.uint32(26).string(v);
|
|
67
|
-
}
|
|
68
|
-
for (const v of message.criteria) {
|
|
69
|
-
VerificationCriteria.encode(v, writer.uint32(34).fork()).ldelim();
|
|
70
|
-
}
|
|
71
|
-
if (message.verificationGuide !== "") {
|
|
72
|
-
writer.uint32(42).string(message.verificationGuide);
|
|
73
|
-
}
|
|
74
|
-
return writer;
|
|
75
|
-
},
|
|
76
|
-
decode(input, length) {
|
|
77
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
78
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
-
const message = createBaseInterimTemplate();
|
|
80
|
-
while (reader.pos < end) {
|
|
81
|
-
const tag = reader.uint32();
|
|
82
|
-
switch (tag >>> 3) {
|
|
83
|
-
case 1:
|
|
84
|
-
message.id = reader.string();
|
|
85
|
-
break;
|
|
86
|
-
case 2:
|
|
87
|
-
message.name = reader.string();
|
|
88
|
-
break;
|
|
89
|
-
case 3:
|
|
90
|
-
message.tags.push(reader.string());
|
|
91
|
-
break;
|
|
92
|
-
case 4:
|
|
93
|
-
message.criteria.push(VerificationCriteria.decode(reader, reader.uint32()));
|
|
94
|
-
break;
|
|
95
|
-
case 5:
|
|
96
|
-
message.verificationGuide = reader.string();
|
|
97
|
-
break;
|
|
98
|
-
default:
|
|
99
|
-
reader.skipType(tag & 7);
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return message;
|
|
104
|
-
},
|
|
105
|
-
fromPartial(object) {
|
|
106
|
-
const message = createBaseInterimTemplate();
|
|
107
|
-
message.id = object.id ?? "";
|
|
108
|
-
message.name = object.name ?? "";
|
|
109
|
-
message.tags = object.tags?.map(e => e) || [];
|
|
110
|
-
message.criteria = object.criteria?.map(e => VerificationCriteria.fromPartial(e)) || [];
|
|
111
|
-
message.verificationGuide = object.verificationGuide ?? "";
|
|
112
|
-
return message;
|
|
113
|
-
},
|
|
114
|
-
fromAmino(object) {
|
|
115
|
-
const message = createBaseInterimTemplate();
|
|
116
|
-
if (object.id !== undefined && object.id !== null) {
|
|
117
|
-
message.id = object.id;
|
|
118
|
-
}
|
|
119
|
-
if (object.name !== undefined && object.name !== null) {
|
|
120
|
-
message.name = object.name;
|
|
121
|
-
}
|
|
122
|
-
message.tags = object.tags?.map(e => e) || [];
|
|
123
|
-
message.criteria = object.criteria?.map(e => VerificationCriteria.fromAmino(e)) || [];
|
|
124
|
-
if (object.verification_guide !== undefined && object.verification_guide !== null) {
|
|
125
|
-
message.verificationGuide = object.verification_guide;
|
|
126
|
-
}
|
|
127
|
-
return message;
|
|
128
|
-
},
|
|
129
|
-
toAmino(message) {
|
|
130
|
-
const obj = {};
|
|
131
|
-
obj.id = message.id === "" ? undefined : message.id;
|
|
132
|
-
obj.name = message.name === "" ? undefined : message.name;
|
|
133
|
-
if (message.tags) {
|
|
134
|
-
obj.tags = message.tags.map(e => e);
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
obj.tags = message.tags;
|
|
138
|
-
}
|
|
139
|
-
if (message.criteria) {
|
|
140
|
-
obj.criteria = message.criteria.map(e => e ? VerificationCriteria.toAmino(e) : undefined);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
obj.criteria = message.criteria;
|
|
144
|
-
}
|
|
145
|
-
obj.verification_guide = message.verificationGuide === "" ? undefined : message.verificationGuide;
|
|
146
|
-
return obj;
|
|
147
|
-
},
|
|
148
|
-
fromAminoMsg(object) {
|
|
149
|
-
return InterimTemplate.fromAmino(object.value);
|
|
150
|
-
},
|
|
151
|
-
fromProtoMsg(message) {
|
|
152
|
-
return InterimTemplate.decode(message.value);
|
|
153
|
-
},
|
|
154
|
-
toProto(message) {
|
|
155
|
-
return InterimTemplate.encode(message).finish();
|
|
156
|
-
},
|
|
157
|
-
toProtoMsg(message) {
|
|
158
|
-
return {
|
|
159
|
-
typeUrl: "/sparkdream.rep.v1.InterimTemplate",
|
|
160
|
-
value: InterimTemplate.encode(message).finish()
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
41
|
function createBaseVerificationCriteria() {
|
|
165
42
|
return {
|
|
166
43
|
id: "",
|
|
@@ -172,6 +49,19 @@ function createBaseVerificationCriteria() {
|
|
|
172
49
|
};
|
|
173
50
|
}
|
|
174
51
|
/**
|
|
52
|
+
* A single item in an initiative's definition of done.
|
|
53
|
+
*
|
|
54
|
+
* Declared on the initiative at creation and immutable afterwards, so the
|
|
55
|
+
* standard is fixed before any work starts. Consumed by MsgCreateChallenge
|
|
56
|
+
* (the challenger names the criterion the work fails) and by MsgSubmitJurorVote
|
|
57
|
+
* (a juror's per-item verdicts must answer criteria the initiative actually
|
|
58
|
+
* declared).
|
|
59
|
+
*
|
|
60
|
+
* These types previously sat alongside an InterimTemplate registry, since
|
|
61
|
+
* removed: no message ever created a template, all three networks shipped zero
|
|
62
|
+
* of them, and Initiative.template_id resolved against nothing. Criteria are
|
|
63
|
+
* declared per-initiative precisely because a template reference would have
|
|
64
|
+
* been a pointer into an empty store.
|
|
175
65
|
* @name VerificationCriteria
|
|
176
66
|
* @package sparkdream.rep.v1
|
|
177
67
|
* @see proto type: sparkdream.rep.v1.VerificationCriteria
|
|
@@ -12,6 +12,12 @@ export var GovActionType;
|
|
|
12
12
|
GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_MOVE"] = 7] = "GOV_ACTION_TYPE_THREAD_MOVE";
|
|
13
13
|
GovActionType[GovActionType["GOV_ACTION_TYPE_REPLY_PIN"] = 8] = "GOV_ACTION_TYPE_REPLY_PIN";
|
|
14
14
|
GovActionType[GovActionType["GOV_ACTION_TYPE_POST_HIDE"] = 9] = "GOV_ACTION_TYPE_POST_HIDE";
|
|
15
|
+
/**
|
|
16
|
+
* GOV_ACTION_TYPE_REVIEW_REJECTION - A reviewer rejection of submitted initiative work. Appealed by the
|
|
17
|
+
* assignee; a successful appeal voids the rejection and records the
|
|
18
|
+
* rejecting reviewers as overturned.
|
|
19
|
+
*/
|
|
20
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_REVIEW_REJECTION"] = 10] = "GOV_ACTION_TYPE_REVIEW_REJECTION";
|
|
15
21
|
GovActionType[GovActionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
16
22
|
})(GovActionType || (GovActionType = {}));
|
|
17
23
|
export const GovActionTypeAmino = GovActionType;
|
|
@@ -47,6 +53,9 @@ export function govActionTypeFromJSON(object) {
|
|
|
47
53
|
case 9:
|
|
48
54
|
case "GOV_ACTION_TYPE_POST_HIDE":
|
|
49
55
|
return GovActionType.GOV_ACTION_TYPE_POST_HIDE;
|
|
56
|
+
case 10:
|
|
57
|
+
case "GOV_ACTION_TYPE_REVIEW_REJECTION":
|
|
58
|
+
return GovActionType.GOV_ACTION_TYPE_REVIEW_REJECTION;
|
|
50
59
|
case -1:
|
|
51
60
|
case "UNRECOGNIZED":
|
|
52
61
|
default:
|
|
@@ -75,6 +84,8 @@ export function govActionTypeToJSON(object) {
|
|
|
75
84
|
return "GOV_ACTION_TYPE_REPLY_PIN";
|
|
76
85
|
case GovActionType.GOV_ACTION_TYPE_POST_HIDE:
|
|
77
86
|
return "GOV_ACTION_TYPE_POST_HIDE";
|
|
87
|
+
case GovActionType.GOV_ACTION_TYPE_REVIEW_REJECTION:
|
|
88
|
+
return "GOV_ACTION_TYPE_REVIEW_REJECTION";
|
|
78
89
|
case GovActionType.UNRECOGNIZED:
|
|
79
90
|
default:
|
|
80
91
|
return "UNRECOGNIZED";
|
|
@@ -26,6 +26,14 @@ export var RoleType;
|
|
|
26
26
|
RoleType[RoleType["ROLE_TYPE_CONTENT_SENTINEL"] = 1] = "ROLE_TYPE_CONTENT_SENTINEL";
|
|
27
27
|
RoleType[RoleType["ROLE_TYPE_COLLECT_CURATOR"] = 2] = "ROLE_TYPE_COLLECT_CURATOR";
|
|
28
28
|
RoleType[RoleType["ROLE_TYPE_FEDERATION_VERIFIER"] = 3] = "ROLE_TYPE_FEDERATION_VERIFIER";
|
|
29
|
+
/**
|
|
30
|
+
* ROLE_TYPE_INITIATIVE_REVIEWER - Reviews submitted initiative work against its acceptance criteria. Owned by
|
|
31
|
+
* x/rep. Distinct from CONTENT_SENTINEL because the competence, the liability
|
|
32
|
+
* (a wrong approval mints DREAM), the bond sizing and the accuracy
|
|
33
|
+
* denominators all differ — see the Initiative Review section of
|
|
34
|
+
* docs/x-rep-spec.md.
|
|
35
|
+
*/
|
|
36
|
+
RoleType[RoleType["ROLE_TYPE_INITIATIVE_REVIEWER"] = 4] = "ROLE_TYPE_INITIATIVE_REVIEWER";
|
|
29
37
|
RoleType[RoleType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
30
38
|
})(RoleType || (RoleType = {}));
|
|
31
39
|
export const RoleTypeAmino = RoleType;
|
|
@@ -43,6 +51,9 @@ export function roleTypeFromJSON(object) {
|
|
|
43
51
|
case 3:
|
|
44
52
|
case "ROLE_TYPE_FEDERATION_VERIFIER":
|
|
45
53
|
return RoleType.ROLE_TYPE_FEDERATION_VERIFIER;
|
|
54
|
+
case 4:
|
|
55
|
+
case "ROLE_TYPE_INITIATIVE_REVIEWER":
|
|
56
|
+
return RoleType.ROLE_TYPE_INITIATIVE_REVIEWER;
|
|
46
57
|
case -1:
|
|
47
58
|
case "UNRECOGNIZED":
|
|
48
59
|
default:
|
|
@@ -59,6 +70,8 @@ export function roleTypeToJSON(object) {
|
|
|
59
70
|
return "ROLE_TYPE_COLLECT_CURATOR";
|
|
60
71
|
case RoleType.ROLE_TYPE_FEDERATION_VERIFIER:
|
|
61
72
|
return "ROLE_TYPE_FEDERATION_VERIFIER";
|
|
73
|
+
case RoleType.ROLE_TYPE_INITIATIVE_REVIEWER:
|
|
74
|
+
return "ROLE_TYPE_INITIATIVE_REVIEWER";
|
|
62
75
|
case RoleType.UNRECOGNIZED:
|
|
63
76
|
default:
|
|
64
77
|
return "UNRECOGNIZED";
|
|
@@ -351,7 +364,10 @@ function createBaseBondedRoleConfig() {
|
|
|
351
364
|
minAgeBlocks: BigInt(0),
|
|
352
365
|
demotionCooldown: BigInt(0),
|
|
353
366
|
demotionThreshold: "",
|
|
354
|
-
unbondCooldown: BigInt(0)
|
|
367
|
+
unbondCooldown: BigInt(0),
|
|
368
|
+
upheldToResetOverturns: BigInt(0),
|
|
369
|
+
overturnBaseCooldown: BigInt(0),
|
|
370
|
+
overturnCooldownEscalates: false
|
|
355
371
|
};
|
|
356
372
|
}
|
|
357
373
|
/**
|
|
@@ -394,6 +410,15 @@ export const BondedRoleConfig = {
|
|
|
394
410
|
if (message.unbondCooldown !== BigInt(0)) {
|
|
395
411
|
writer.uint32(64).int64(message.unbondCooldown);
|
|
396
412
|
}
|
|
413
|
+
if (message.upheldToResetOverturns !== BigInt(0)) {
|
|
414
|
+
writer.uint32(72).uint64(message.upheldToResetOverturns);
|
|
415
|
+
}
|
|
416
|
+
if (message.overturnBaseCooldown !== BigInt(0)) {
|
|
417
|
+
writer.uint32(80).int64(message.overturnBaseCooldown);
|
|
418
|
+
}
|
|
419
|
+
if (message.overturnCooldownEscalates === true) {
|
|
420
|
+
writer.uint32(88).bool(message.overturnCooldownEscalates);
|
|
421
|
+
}
|
|
397
422
|
return writer;
|
|
398
423
|
},
|
|
399
424
|
decode(input, length) {
|
|
@@ -427,6 +452,15 @@ export const BondedRoleConfig = {
|
|
|
427
452
|
case 8:
|
|
428
453
|
message.unbondCooldown = reader.int64();
|
|
429
454
|
break;
|
|
455
|
+
case 9:
|
|
456
|
+
message.upheldToResetOverturns = reader.uint64();
|
|
457
|
+
break;
|
|
458
|
+
case 10:
|
|
459
|
+
message.overturnBaseCooldown = reader.int64();
|
|
460
|
+
break;
|
|
461
|
+
case 11:
|
|
462
|
+
message.overturnCooldownEscalates = reader.bool();
|
|
463
|
+
break;
|
|
430
464
|
default:
|
|
431
465
|
reader.skipType(tag & 7);
|
|
432
466
|
break;
|
|
@@ -444,6 +478,9 @@ export const BondedRoleConfig = {
|
|
|
444
478
|
message.demotionCooldown = object.demotionCooldown !== undefined && object.demotionCooldown !== null ? BigInt(object.demotionCooldown.toString()) : BigInt(0);
|
|
445
479
|
message.demotionThreshold = object.demotionThreshold ?? "";
|
|
446
480
|
message.unbondCooldown = object.unbondCooldown !== undefined && object.unbondCooldown !== null ? BigInt(object.unbondCooldown.toString()) : BigInt(0);
|
|
481
|
+
message.upheldToResetOverturns = object.upheldToResetOverturns !== undefined && object.upheldToResetOverturns !== null ? BigInt(object.upheldToResetOverturns.toString()) : BigInt(0);
|
|
482
|
+
message.overturnBaseCooldown = object.overturnBaseCooldown !== undefined && object.overturnBaseCooldown !== null ? BigInt(object.overturnBaseCooldown.toString()) : BigInt(0);
|
|
483
|
+
message.overturnCooldownEscalates = object.overturnCooldownEscalates ?? false;
|
|
447
484
|
return message;
|
|
448
485
|
},
|
|
449
486
|
fromAmino(object) {
|
|
@@ -472,6 +509,15 @@ export const BondedRoleConfig = {
|
|
|
472
509
|
if (object.unbond_cooldown !== undefined && object.unbond_cooldown !== null) {
|
|
473
510
|
message.unbondCooldown = BigInt(object.unbond_cooldown);
|
|
474
511
|
}
|
|
512
|
+
if (object.upheld_to_reset_overturns !== undefined && object.upheld_to_reset_overturns !== null) {
|
|
513
|
+
message.upheldToResetOverturns = BigInt(object.upheld_to_reset_overturns);
|
|
514
|
+
}
|
|
515
|
+
if (object.overturn_base_cooldown !== undefined && object.overturn_base_cooldown !== null) {
|
|
516
|
+
message.overturnBaseCooldown = BigInt(object.overturn_base_cooldown);
|
|
517
|
+
}
|
|
518
|
+
if (object.overturn_cooldown_escalates !== undefined && object.overturn_cooldown_escalates !== null) {
|
|
519
|
+
message.overturnCooldownEscalates = object.overturn_cooldown_escalates;
|
|
520
|
+
}
|
|
475
521
|
return message;
|
|
476
522
|
},
|
|
477
523
|
toAmino(message) {
|
|
@@ -484,6 +530,9 @@ export const BondedRoleConfig = {
|
|
|
484
530
|
obj.demotion_cooldown = message.demotionCooldown !== BigInt(0) ? message.demotionCooldown?.toString() : undefined;
|
|
485
531
|
obj.demotion_threshold = message.demotionThreshold === "" ? undefined : message.demotionThreshold;
|
|
486
532
|
obj.unbond_cooldown = message.unbondCooldown !== BigInt(0) ? message.unbondCooldown?.toString() : undefined;
|
|
533
|
+
obj.upheld_to_reset_overturns = message.upheldToResetOverturns !== BigInt(0) ? message.upheldToResetOverturns?.toString() : undefined;
|
|
534
|
+
obj.overturn_base_cooldown = message.overturnBaseCooldown !== BigInt(0) ? message.overturnBaseCooldown?.toString() : undefined;
|
|
535
|
+
obj.overturn_cooldown_escalates = message.overturnCooldownEscalates === false ? undefined : message.overturnCooldownEscalates;
|
|
487
536
|
return obj;
|
|
488
537
|
},
|
|
489
538
|
fromAminoMsg(object) {
|