@sparkdreamnft/sparkdreamjs 0.0.25 → 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/genesis.js +110 -1
- package/esm/sparkdream/forum/v1/params.js +26 -2
- package/esm/sparkdream/forum/v1/sentinel_activity.js +58 -1
- package/esm/sparkdream/forum/v1/thread_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/tx.js +157 -1
- package/esm/sparkdream/forum/v1/tx.registry.js +20 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +7 -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/sparkdream/rep/v1/tx.js +159 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +20 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +8 -1
- 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 +7232 -7037
- 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/genesis.d.ts +65 -0
- package/sparkdream/forum/v1/genesis.js +111 -2
- package/sparkdream/forum/v1/params.d.ts +30 -0
- package/sparkdream/forum/v1/params.js +26 -2
- package/sparkdream/forum/v1/sentinel_activity.d.ts +53 -0
- package/sparkdream/forum/v1/sentinel_activity.js +58 -1
- package/sparkdream/forum/v1/thread_metadata.d.ts +16 -0
- package/sparkdream/forum/v1/thread_metadata.js +13 -1
- package/sparkdream/forum/v1/tx.d.ts +93 -7
- package/sparkdream/forum/v1/tx.js +158 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +13 -1
- package/sparkdream/forum/v1/tx.registry.js +19 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +4 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +6 -0
- 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/sparkdream/rep/v1/tx.d.ts +101 -0
- package/sparkdream/rep/v1/tx.js +160 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +13 -1
- package/sparkdream/rep/v1/tx.registry.js +19 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +7 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +17 -17
|
@@ -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
|
+
};
|