@sparkdreamnft/sparkdreamjs 0.0.26 → 0.0.27
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +181 -181
- package/esm/cosmos/bundle.js +181 -181
- package/esm/ibc/bundle.js +105 -105
- package/esm/sparkdream/bundle.js +275 -273
- package/esm/sparkdream/collect/v1/params.js +24 -0
- package/esm/sparkdream/collect/v1/tx.js +216 -1
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +11 -1
- package/esm/sparkdream/collect/v1/types.js +92 -2
- package/esm/sparkdream/forum/v1/sentinel_activity.js +58 -1
- package/esm/sparkdream/forum/v1/tx.js +1 -1
- package/esm/sparkdream/rep/v1/bonded_role.js +17 -5
- package/esm/sparkdream/rep/v1/genesis.js +17 -1
- package/esm/sparkdream/rep/v1/role_activity.js +670 -0
- package/esm/tendermint/bundle.js +17 -17
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +105 -105
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +7168 -7061
- package/sparkdream/bundle.js +275 -273
- package/sparkdream/collect/v1/params.d.ts +28 -0
- package/sparkdream/collect/v1/params.js +24 -0
- package/sparkdream/collect/v1/tx.d.ts +130 -6
- package/sparkdream/collect/v1/tx.js +220 -3
- package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
- package/sparkdream/collect/v1/tx.registry.js +19 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +10 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +10 -0
- package/sparkdream/collect/v1/types.d.ts +72 -0
- package/sparkdream/collect/v1/types.js +92 -2
- package/sparkdream/forum/v1/sentinel_activity.d.ts +53 -0
- package/sparkdream/forum/v1/sentinel_activity.js +58 -1
- package/sparkdream/forum/v1/tx.d.ts +1 -1
- package/sparkdream/forum/v1/tx.js +1 -1
- package/sparkdream/rep/v1/bonded_role.d.ts +13 -1
- package/sparkdream/rep/v1/bonded_role.js +17 -5
- package/sparkdream/rep/v1/genesis.d.ts +3 -0
- package/sparkdream/rep/v1/genesis.js +17 -1
- package/sparkdream/rep/v1/role_activity.d.ts +395 -0
- package/sparkdream/rep/v1/role_activity.js +673 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +17 -17
|
@@ -23,6 +23,7 @@ const member_report_1 = require("./member_report");
|
|
|
23
23
|
const member_warning_1 = require("./member_warning");
|
|
24
24
|
const gov_action_appeal_1 = require("./gov_action_appeal");
|
|
25
25
|
const bonded_role_1 = require("./bonded_role");
|
|
26
|
+
const role_activity_1 = require("./role_activity");
|
|
26
27
|
const binary_1 = require("../../../binary");
|
|
27
28
|
function createBaseGenesisState() {
|
|
28
29
|
return {
|
|
@@ -63,7 +64,8 @@ function createBaseGenesisState() {
|
|
|
63
64
|
govActionAppealList: [],
|
|
64
65
|
govActionAppealCount: BigInt(0),
|
|
65
66
|
bondedRoleList: [],
|
|
66
|
-
bondedRoleConfigList: []
|
|
67
|
+
bondedRoleConfigList: [],
|
|
68
|
+
roleActivityList: []
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
71
|
/**
|
|
@@ -189,6 +191,9 @@ exports.GenesisState = {
|
|
|
189
191
|
for (const v of message.bondedRoleConfigList) {
|
|
190
192
|
bonded_role_1.BondedRoleConfig.encode(v, writer.uint32(314).fork()).ldelim();
|
|
191
193
|
}
|
|
194
|
+
for (const v of message.roleActivityList) {
|
|
195
|
+
role_activity_1.RoleActivity.encode(v, writer.uint32(322).fork()).ldelim();
|
|
196
|
+
}
|
|
192
197
|
return writer;
|
|
193
198
|
},
|
|
194
199
|
decode(input, length) {
|
|
@@ -312,6 +317,9 @@ exports.GenesisState = {
|
|
|
312
317
|
case 39:
|
|
313
318
|
message.bondedRoleConfigList.push(bonded_role_1.BondedRoleConfig.decode(reader, reader.uint32()));
|
|
314
319
|
break;
|
|
320
|
+
case 40:
|
|
321
|
+
message.roleActivityList.push(role_activity_1.RoleActivity.decode(reader, reader.uint32()));
|
|
322
|
+
break;
|
|
315
323
|
default:
|
|
316
324
|
reader.skipType(tag & 7);
|
|
317
325
|
break;
|
|
@@ -359,6 +367,7 @@ exports.GenesisState = {
|
|
|
359
367
|
message.govActionAppealCount = object.govActionAppealCount !== undefined && object.govActionAppealCount !== null ? BigInt(object.govActionAppealCount.toString()) : BigInt(0);
|
|
360
368
|
message.bondedRoleList = object.bondedRoleList?.map(e => bonded_role_1.BondedRole.fromPartial(e)) || [];
|
|
361
369
|
message.bondedRoleConfigList = object.bondedRoleConfigList?.map(e => bonded_role_1.BondedRoleConfig.fromPartial(e)) || [];
|
|
370
|
+
message.roleActivityList = object.roleActivityList?.map(e => role_activity_1.RoleActivity.fromPartial(e)) || [];
|
|
362
371
|
return message;
|
|
363
372
|
},
|
|
364
373
|
fromAmino(object) {
|
|
@@ -427,6 +436,7 @@ exports.GenesisState = {
|
|
|
427
436
|
}
|
|
428
437
|
message.bondedRoleList = object.bonded_role_list?.map(e => bonded_role_1.BondedRole.fromAmino(e)) || [];
|
|
429
438
|
message.bondedRoleConfigList = object.bonded_role_config_list?.map(e => bonded_role_1.BondedRoleConfig.fromAmino(e)) || [];
|
|
439
|
+
message.roleActivityList = object.role_activity_list?.map(e => role_activity_1.RoleActivity.fromAmino(e)) || [];
|
|
430
440
|
return message;
|
|
431
441
|
},
|
|
432
442
|
toAmino(message) {
|
|
@@ -594,6 +604,12 @@ exports.GenesisState = {
|
|
|
594
604
|
else {
|
|
595
605
|
obj.bonded_role_config_list = message.bondedRoleConfigList;
|
|
596
606
|
}
|
|
607
|
+
if (message.roleActivityList) {
|
|
608
|
+
obj.role_activity_list = message.roleActivityList.map(e => e ? role_activity_1.RoleActivity.toAmino(e) : undefined);
|
|
609
|
+
}
|
|
610
|
+
else {
|
|
611
|
+
obj.role_activity_list = message.roleActivityList;
|
|
612
|
+
}
|
|
597
613
|
return obj;
|
|
598
614
|
},
|
|
599
615
|
fromAminoMsg(object) {
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { RoleType } from "./bonded_role";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
/**
|
|
5
|
+
* RoleAccuracyBucket is one reward-epoch slot in a RoleActivity's rolling
|
|
6
|
+
* accuracy ring (slot index = epoch % ring size); the `epoch` stamp
|
|
7
|
+
* disambiguates a live slot from a stale one left by an earlier epoch that
|
|
8
|
+
* mapped to the same index.
|
|
9
|
+
* @name RoleAccuracyBucket
|
|
10
|
+
* @package sparkdream.rep.v1
|
|
11
|
+
* @see proto type: sparkdream.rep.v1.RoleAccuracyBucket
|
|
12
|
+
*/
|
|
13
|
+
export interface RoleAccuracyBucket {
|
|
14
|
+
epoch: bigint;
|
|
15
|
+
upheld: bigint;
|
|
16
|
+
overturned: bigint;
|
|
17
|
+
}
|
|
18
|
+
export interface RoleAccuracyBucketProtoMsg {
|
|
19
|
+
typeUrl: "/sparkdream.rep.v1.RoleAccuracyBucket";
|
|
20
|
+
value: Uint8Array;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* RoleAccuracyBucket is one reward-epoch slot in a RoleActivity's rolling
|
|
24
|
+
* accuracy ring (slot index = epoch % ring size); the `epoch` stamp
|
|
25
|
+
* disambiguates a live slot from a stale one left by an earlier epoch that
|
|
26
|
+
* mapped to the same index.
|
|
27
|
+
* @name RoleAccuracyBucketAmino
|
|
28
|
+
* @package sparkdream.rep.v1
|
|
29
|
+
* @see proto type: sparkdream.rep.v1.RoleAccuracyBucket
|
|
30
|
+
*/
|
|
31
|
+
export interface RoleAccuracyBucketAmino {
|
|
32
|
+
epoch?: string;
|
|
33
|
+
upheld?: string;
|
|
34
|
+
overturned?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface RoleAccuracyBucketAminoMsg {
|
|
37
|
+
type: "/sparkdream.rep.v1.RoleAccuracyBucket";
|
|
38
|
+
value: RoleAccuracyBucketAmino;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @name RoleActivity_EpochActionsEntry
|
|
42
|
+
* @package sparkdream.rep.v1
|
|
43
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
44
|
+
*/
|
|
45
|
+
export interface RoleActivity_EpochActionsEntry {
|
|
46
|
+
key: string;
|
|
47
|
+
value: bigint;
|
|
48
|
+
}
|
|
49
|
+
export interface RoleActivity_EpochActionsEntryProtoMsg {
|
|
50
|
+
typeUrl: string;
|
|
51
|
+
value: Uint8Array;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @name RoleActivity_EpochActionsEntryAmino
|
|
55
|
+
* @package sparkdream.rep.v1
|
|
56
|
+
* @see proto type: sparkdream.rep.v1.RoleActivity_EpochActionsEntry
|
|
57
|
+
*/
|
|
58
|
+
export interface RoleActivity_EpochActionsEntryAmino {
|
|
59
|
+
key?: string;
|
|
60
|
+
value?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface RoleActivity_EpochActionsEntryAminoMsg {
|
|
63
|
+
type: string;
|
|
64
|
+
value: RoleActivity_EpochActionsEntryAmino;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @name RoleActivity_TotalActionsEntry
|
|
68
|
+
* @package sparkdream.rep.v1
|
|
69
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
70
|
+
*/
|
|
71
|
+
export interface RoleActivity_TotalActionsEntry {
|
|
72
|
+
key: string;
|
|
73
|
+
value: bigint;
|
|
74
|
+
}
|
|
75
|
+
export interface RoleActivity_TotalActionsEntryProtoMsg {
|
|
76
|
+
typeUrl: string;
|
|
77
|
+
value: Uint8Array;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @name RoleActivity_TotalActionsEntryAmino
|
|
81
|
+
* @package sparkdream.rep.v1
|
|
82
|
+
* @see proto type: sparkdream.rep.v1.RoleActivity_TotalActionsEntry
|
|
83
|
+
*/
|
|
84
|
+
export interface RoleActivity_TotalActionsEntryAmino {
|
|
85
|
+
key?: string;
|
|
86
|
+
value?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface RoleActivity_TotalActionsEntryAminoMsg {
|
|
89
|
+
type: string;
|
|
90
|
+
value: RoleActivity_TotalActionsEntryAmino;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @name RoleActivity_UpheldActionsEntry
|
|
94
|
+
* @package sparkdream.rep.v1
|
|
95
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
96
|
+
*/
|
|
97
|
+
export interface RoleActivity_UpheldActionsEntry {
|
|
98
|
+
key: string;
|
|
99
|
+
value: bigint;
|
|
100
|
+
}
|
|
101
|
+
export interface RoleActivity_UpheldActionsEntryProtoMsg {
|
|
102
|
+
typeUrl: string;
|
|
103
|
+
value: Uint8Array;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @name RoleActivity_UpheldActionsEntryAmino
|
|
107
|
+
* @package sparkdream.rep.v1
|
|
108
|
+
* @see proto type: sparkdream.rep.v1.RoleActivity_UpheldActionsEntry
|
|
109
|
+
*/
|
|
110
|
+
export interface RoleActivity_UpheldActionsEntryAmino {
|
|
111
|
+
key?: string;
|
|
112
|
+
value?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface RoleActivity_UpheldActionsEntryAminoMsg {
|
|
115
|
+
type: string;
|
|
116
|
+
value: RoleActivity_UpheldActionsEntryAmino;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @name RoleActivity_OverturnedActionsEntry
|
|
120
|
+
* @package sparkdream.rep.v1
|
|
121
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
122
|
+
*/
|
|
123
|
+
export interface RoleActivity_OverturnedActionsEntry {
|
|
124
|
+
key: string;
|
|
125
|
+
value: bigint;
|
|
126
|
+
}
|
|
127
|
+
export interface RoleActivity_OverturnedActionsEntryProtoMsg {
|
|
128
|
+
typeUrl: string;
|
|
129
|
+
value: Uint8Array;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @name RoleActivity_OverturnedActionsEntryAmino
|
|
133
|
+
* @package sparkdream.rep.v1
|
|
134
|
+
* @see proto type: sparkdream.rep.v1.RoleActivity_OverturnedActionsEntry
|
|
135
|
+
*/
|
|
136
|
+
export interface RoleActivity_OverturnedActionsEntryAmino {
|
|
137
|
+
key?: string;
|
|
138
|
+
value?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface RoleActivity_OverturnedActionsEntryAminoMsg {
|
|
141
|
+
type: string;
|
|
142
|
+
value: RoleActivity_OverturnedActionsEntryAmino;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* RoleActivity is the SHARED accountability record for a bonded role,
|
|
146
|
+
* keyed by (role_type, address) and owned by x/rep. It holds everything
|
|
147
|
+
* that is a property of the role rather than of any one module surface:
|
|
148
|
+
* verdict streaks, the overturn cooldown, the rolling accuracy ring, and
|
|
149
|
+
* generic per-action-kind counters. Owning modules REPORT actions
|
|
150
|
+
* (RecordRoleAction) and jury verdicts (RecordRoleOutcome); x/rep applies
|
|
151
|
+
* the consequences, including streak demotion (it owns the bond).
|
|
152
|
+
*
|
|
153
|
+
* Module-local bookkeeping that is not shared (e.g. forum's
|
|
154
|
+
* pending_hide_count, curation-proposal lifecycle counts) stays in the
|
|
155
|
+
* owning module. There are deliberately NO duplicate counters: forum's
|
|
156
|
+
* per-epoch moderation caps read these maps too.
|
|
157
|
+
*
|
|
158
|
+
* See docs/x-rep-spec.md (RoleActivity).
|
|
159
|
+
* @name RoleActivity
|
|
160
|
+
* @package sparkdream.rep.v1
|
|
161
|
+
* @see proto type: sparkdream.rep.v1.RoleActivity
|
|
162
|
+
*/
|
|
163
|
+
export interface RoleActivity {
|
|
164
|
+
roleType: RoleType;
|
|
165
|
+
address: string;
|
|
166
|
+
/**
|
|
167
|
+
* Verdict streaks, shared across every surface the role acts on. An
|
|
168
|
+
* overturn streak crossing the demotion threshold demotes the role.
|
|
169
|
+
*/
|
|
170
|
+
consecutiveUpheld: bigint;
|
|
171
|
+
consecutiveOverturns: bigint;
|
|
172
|
+
/**
|
|
173
|
+
* overturn_cooldown_until is the unix timestamp until which the role
|
|
174
|
+
* holder may not take new moderation actions (on ANY surface) after a
|
|
175
|
+
* lost appeal. Not set by curation-proposal rejections (see the kind
|
|
176
|
+
* policy table in x/rep/types/role_activity_kinds.go).
|
|
177
|
+
*/
|
|
178
|
+
overturnCooldownUntil: bigint;
|
|
179
|
+
/**
|
|
180
|
+
* epoch_appeals_resolved counts jury verdicts (either way) in the
|
|
181
|
+
* current reward epoch; feeds the reward score's sqrt term. Reset each
|
|
182
|
+
* reward epoch.
|
|
183
|
+
*/
|
|
184
|
+
epochAppealsResolved: bigint;
|
|
185
|
+
/**
|
|
186
|
+
* Rolling accuracy ring (see RoleAccuracyBucket). Fixed length
|
|
187
|
+
* RoleAccuracyRingSize once first written. The reward distribution
|
|
188
|
+
* computes windowed accuracy over the last
|
|
189
|
+
* SentinelAccuracyWindowEpochs slots.
|
|
190
|
+
*/
|
|
191
|
+
accuracyWindow: RoleAccuracyBucket[];
|
|
192
|
+
/**
|
|
193
|
+
* Per-action-kind counters. Keys are the rep-owned kind constants
|
|
194
|
+
* ("forum_hide", "collect_hide", "forum_appeal_filed", ...).
|
|
195
|
+
* epoch_actions resets each reward epoch; the others are lifetime.
|
|
196
|
+
*/
|
|
197
|
+
epochActions: {
|
|
198
|
+
[key: string]: bigint;
|
|
199
|
+
};
|
|
200
|
+
totalActions: {
|
|
201
|
+
[key: string]: bigint;
|
|
202
|
+
};
|
|
203
|
+
upheldActions: {
|
|
204
|
+
[key: string]: bigint;
|
|
205
|
+
};
|
|
206
|
+
overturnedActions: {
|
|
207
|
+
[key: string]: bigint;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
export interface RoleActivityProtoMsg {
|
|
211
|
+
typeUrl: "/sparkdream.rep.v1.RoleActivity";
|
|
212
|
+
value: Uint8Array;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* RoleActivity is the SHARED accountability record for a bonded role,
|
|
216
|
+
* keyed by (role_type, address) and owned by x/rep. It holds everything
|
|
217
|
+
* that is a property of the role rather than of any one module surface:
|
|
218
|
+
* verdict streaks, the overturn cooldown, the rolling accuracy ring, and
|
|
219
|
+
* generic per-action-kind counters. Owning modules REPORT actions
|
|
220
|
+
* (RecordRoleAction) and jury verdicts (RecordRoleOutcome); x/rep applies
|
|
221
|
+
* the consequences, including streak demotion (it owns the bond).
|
|
222
|
+
*
|
|
223
|
+
* Module-local bookkeeping that is not shared (e.g. forum's
|
|
224
|
+
* pending_hide_count, curation-proposal lifecycle counts) stays in the
|
|
225
|
+
* owning module. There are deliberately NO duplicate counters: forum's
|
|
226
|
+
* per-epoch moderation caps read these maps too.
|
|
227
|
+
*
|
|
228
|
+
* See docs/x-rep-spec.md (RoleActivity).
|
|
229
|
+
* @name RoleActivityAmino
|
|
230
|
+
* @package sparkdream.rep.v1
|
|
231
|
+
* @see proto type: sparkdream.rep.v1.RoleActivity
|
|
232
|
+
*/
|
|
233
|
+
export interface RoleActivityAmino {
|
|
234
|
+
role_type?: RoleType;
|
|
235
|
+
address?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Verdict streaks, shared across every surface the role acts on. An
|
|
238
|
+
* overturn streak crossing the demotion threshold demotes the role.
|
|
239
|
+
*/
|
|
240
|
+
consecutive_upheld?: string;
|
|
241
|
+
consecutive_overturns?: string;
|
|
242
|
+
/**
|
|
243
|
+
* overturn_cooldown_until is the unix timestamp until which the role
|
|
244
|
+
* holder may not take new moderation actions (on ANY surface) after a
|
|
245
|
+
* lost appeal. Not set by curation-proposal rejections (see the kind
|
|
246
|
+
* policy table in x/rep/types/role_activity_kinds.go).
|
|
247
|
+
*/
|
|
248
|
+
overturn_cooldown_until?: string;
|
|
249
|
+
/**
|
|
250
|
+
* epoch_appeals_resolved counts jury verdicts (either way) in the
|
|
251
|
+
* current reward epoch; feeds the reward score's sqrt term. Reset each
|
|
252
|
+
* reward epoch.
|
|
253
|
+
*/
|
|
254
|
+
epoch_appeals_resolved?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Rolling accuracy ring (see RoleAccuracyBucket). Fixed length
|
|
257
|
+
* RoleAccuracyRingSize once first written. The reward distribution
|
|
258
|
+
* computes windowed accuracy over the last
|
|
259
|
+
* SentinelAccuracyWindowEpochs slots.
|
|
260
|
+
*/
|
|
261
|
+
accuracy_window?: RoleAccuracyBucketAmino[];
|
|
262
|
+
/**
|
|
263
|
+
* Per-action-kind counters. Keys are the rep-owned kind constants
|
|
264
|
+
* ("forum_hide", "collect_hide", "forum_appeal_filed", ...).
|
|
265
|
+
* epoch_actions resets each reward epoch; the others are lifetime.
|
|
266
|
+
*/
|
|
267
|
+
epoch_actions?: {
|
|
268
|
+
[key: string]: string;
|
|
269
|
+
};
|
|
270
|
+
total_actions?: {
|
|
271
|
+
[key: string]: string;
|
|
272
|
+
};
|
|
273
|
+
upheld_actions?: {
|
|
274
|
+
[key: string]: string;
|
|
275
|
+
};
|
|
276
|
+
overturned_actions?: {
|
|
277
|
+
[key: string]: string;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
export interface RoleActivityAminoMsg {
|
|
281
|
+
type: "/sparkdream.rep.v1.RoleActivity";
|
|
282
|
+
value: RoleActivityAmino;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* RoleAccuracyBucket is one reward-epoch slot in a RoleActivity's rolling
|
|
286
|
+
* accuracy ring (slot index = epoch % ring size); the `epoch` stamp
|
|
287
|
+
* disambiguates a live slot from a stale one left by an earlier epoch that
|
|
288
|
+
* mapped to the same index.
|
|
289
|
+
* @name RoleAccuracyBucket
|
|
290
|
+
* @package sparkdream.rep.v1
|
|
291
|
+
* @see proto type: sparkdream.rep.v1.RoleAccuracyBucket
|
|
292
|
+
*/
|
|
293
|
+
export declare const RoleAccuracyBucket: {
|
|
294
|
+
typeUrl: string;
|
|
295
|
+
encode(message: RoleAccuracyBucket, writer?: BinaryWriter): BinaryWriter;
|
|
296
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RoleAccuracyBucket;
|
|
297
|
+
fromPartial(object: DeepPartial<RoleAccuracyBucket>): RoleAccuracyBucket;
|
|
298
|
+
fromAmino(object: RoleAccuracyBucketAmino): RoleAccuracyBucket;
|
|
299
|
+
toAmino(message: RoleAccuracyBucket): RoleAccuracyBucketAmino;
|
|
300
|
+
fromAminoMsg(object: RoleAccuracyBucketAminoMsg): RoleAccuracyBucket;
|
|
301
|
+
fromProtoMsg(message: RoleAccuracyBucketProtoMsg): RoleAccuracyBucket;
|
|
302
|
+
toProto(message: RoleAccuracyBucket): Uint8Array;
|
|
303
|
+
toProtoMsg(message: RoleAccuracyBucket): RoleAccuracyBucketProtoMsg;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* @name RoleActivity_EpochActionsEntry
|
|
307
|
+
* @package sparkdream.rep.v1
|
|
308
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
309
|
+
*/
|
|
310
|
+
export declare const RoleActivity_EpochActionsEntry: {
|
|
311
|
+
encode(message: RoleActivity_EpochActionsEntry, writer?: BinaryWriter): BinaryWriter;
|
|
312
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RoleActivity_EpochActionsEntry;
|
|
313
|
+
fromPartial(object: DeepPartial<RoleActivity_EpochActionsEntry>): RoleActivity_EpochActionsEntry;
|
|
314
|
+
fromAmino(object: RoleActivity_EpochActionsEntryAmino): RoleActivity_EpochActionsEntry;
|
|
315
|
+
toAmino(message: RoleActivity_EpochActionsEntry): RoleActivity_EpochActionsEntryAmino;
|
|
316
|
+
fromAminoMsg(object: RoleActivity_EpochActionsEntryAminoMsg): RoleActivity_EpochActionsEntry;
|
|
317
|
+
fromProtoMsg(message: RoleActivity_EpochActionsEntryProtoMsg): RoleActivity_EpochActionsEntry;
|
|
318
|
+
toProto(message: RoleActivity_EpochActionsEntry): Uint8Array;
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* @name RoleActivity_TotalActionsEntry
|
|
322
|
+
* @package sparkdream.rep.v1
|
|
323
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
324
|
+
*/
|
|
325
|
+
export declare const RoleActivity_TotalActionsEntry: {
|
|
326
|
+
encode(message: RoleActivity_TotalActionsEntry, writer?: BinaryWriter): BinaryWriter;
|
|
327
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RoleActivity_TotalActionsEntry;
|
|
328
|
+
fromPartial(object: DeepPartial<RoleActivity_TotalActionsEntry>): RoleActivity_TotalActionsEntry;
|
|
329
|
+
fromAmino(object: RoleActivity_TotalActionsEntryAmino): RoleActivity_TotalActionsEntry;
|
|
330
|
+
toAmino(message: RoleActivity_TotalActionsEntry): RoleActivity_TotalActionsEntryAmino;
|
|
331
|
+
fromAminoMsg(object: RoleActivity_TotalActionsEntryAminoMsg): RoleActivity_TotalActionsEntry;
|
|
332
|
+
fromProtoMsg(message: RoleActivity_TotalActionsEntryProtoMsg): RoleActivity_TotalActionsEntry;
|
|
333
|
+
toProto(message: RoleActivity_TotalActionsEntry): Uint8Array;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* @name RoleActivity_UpheldActionsEntry
|
|
337
|
+
* @package sparkdream.rep.v1
|
|
338
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
339
|
+
*/
|
|
340
|
+
export declare const RoleActivity_UpheldActionsEntry: {
|
|
341
|
+
encode(message: RoleActivity_UpheldActionsEntry, writer?: BinaryWriter): BinaryWriter;
|
|
342
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RoleActivity_UpheldActionsEntry;
|
|
343
|
+
fromPartial(object: DeepPartial<RoleActivity_UpheldActionsEntry>): RoleActivity_UpheldActionsEntry;
|
|
344
|
+
fromAmino(object: RoleActivity_UpheldActionsEntryAmino): RoleActivity_UpheldActionsEntry;
|
|
345
|
+
toAmino(message: RoleActivity_UpheldActionsEntry): RoleActivity_UpheldActionsEntryAmino;
|
|
346
|
+
fromAminoMsg(object: RoleActivity_UpheldActionsEntryAminoMsg): RoleActivity_UpheldActionsEntry;
|
|
347
|
+
fromProtoMsg(message: RoleActivity_UpheldActionsEntryProtoMsg): RoleActivity_UpheldActionsEntry;
|
|
348
|
+
toProto(message: RoleActivity_UpheldActionsEntry): Uint8Array;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* @name RoleActivity_OverturnedActionsEntry
|
|
352
|
+
* @package sparkdream.rep.v1
|
|
353
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
354
|
+
*/
|
|
355
|
+
export declare const RoleActivity_OverturnedActionsEntry: {
|
|
356
|
+
encode(message: RoleActivity_OverturnedActionsEntry, writer?: BinaryWriter): BinaryWriter;
|
|
357
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RoleActivity_OverturnedActionsEntry;
|
|
358
|
+
fromPartial(object: DeepPartial<RoleActivity_OverturnedActionsEntry>): RoleActivity_OverturnedActionsEntry;
|
|
359
|
+
fromAmino(object: RoleActivity_OverturnedActionsEntryAmino): RoleActivity_OverturnedActionsEntry;
|
|
360
|
+
toAmino(message: RoleActivity_OverturnedActionsEntry): RoleActivity_OverturnedActionsEntryAmino;
|
|
361
|
+
fromAminoMsg(object: RoleActivity_OverturnedActionsEntryAminoMsg): RoleActivity_OverturnedActionsEntry;
|
|
362
|
+
fromProtoMsg(message: RoleActivity_OverturnedActionsEntryProtoMsg): RoleActivity_OverturnedActionsEntry;
|
|
363
|
+
toProto(message: RoleActivity_OverturnedActionsEntry): Uint8Array;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* RoleActivity is the SHARED accountability record for a bonded role,
|
|
367
|
+
* keyed by (role_type, address) and owned by x/rep. It holds everything
|
|
368
|
+
* that is a property of the role rather than of any one module surface:
|
|
369
|
+
* verdict streaks, the overturn cooldown, the rolling accuracy ring, and
|
|
370
|
+
* generic per-action-kind counters. Owning modules REPORT actions
|
|
371
|
+
* (RecordRoleAction) and jury verdicts (RecordRoleOutcome); x/rep applies
|
|
372
|
+
* the consequences, including streak demotion (it owns the bond).
|
|
373
|
+
*
|
|
374
|
+
* Module-local bookkeeping that is not shared (e.g. forum's
|
|
375
|
+
* pending_hide_count, curation-proposal lifecycle counts) stays in the
|
|
376
|
+
* owning module. There are deliberately NO duplicate counters: forum's
|
|
377
|
+
* per-epoch moderation caps read these maps too.
|
|
378
|
+
*
|
|
379
|
+
* See docs/x-rep-spec.md (RoleActivity).
|
|
380
|
+
* @name RoleActivity
|
|
381
|
+
* @package sparkdream.rep.v1
|
|
382
|
+
* @see proto type: sparkdream.rep.v1.RoleActivity
|
|
383
|
+
*/
|
|
384
|
+
export declare const RoleActivity: {
|
|
385
|
+
typeUrl: string;
|
|
386
|
+
encode(message: RoleActivity, writer?: BinaryWriter): BinaryWriter;
|
|
387
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RoleActivity;
|
|
388
|
+
fromPartial(object: DeepPartial<RoleActivity>): RoleActivity;
|
|
389
|
+
fromAmino(object: RoleActivityAmino): RoleActivity;
|
|
390
|
+
toAmino(message: RoleActivity): RoleActivityAmino;
|
|
391
|
+
fromAminoMsg(object: RoleActivityAminoMsg): RoleActivity;
|
|
392
|
+
fromProtoMsg(message: RoleActivityProtoMsg): RoleActivity;
|
|
393
|
+
toProto(message: RoleActivity): Uint8Array;
|
|
394
|
+
toProtoMsg(message: RoleActivity): RoleActivityProtoMsg;
|
|
395
|
+
};
|