@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.10
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 +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +76 -76
- package/esm/sparkdream/blog/v1/params.js +25 -1
- package/esm/sparkdream/blog/v1/post.js +16 -1
- package/esm/sparkdream/blog/v1/query.js +165 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
- package/esm/sparkdream/blog/v1/tx.js +32 -2
- package/esm/sparkdream/bundle.js +367 -327
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
- package/esm/sparkdream/collect/v1/genesis.js +12 -11
- package/esm/sparkdream/collect/v1/params.js +37 -1
- package/esm/sparkdream/collect/v1/query.js +201 -186
- package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
- package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
- package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
- package/esm/sparkdream/collect/v1/tx.js +0 -258
- package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
- package/esm/sparkdream/collect/v1/types.js +50 -143
- package/esm/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +245 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2479 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +142 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +181 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +129 -0
- package/esm/sparkdream/federation/v1/tx.js +3929 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +465 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +163 -0
- package/esm/sparkdream/federation/v1/types.js +2266 -0
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +224 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +102 -5
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5251 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +293 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +334 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2467 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +104 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +76 -76
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +16 -0
- package/sparkdream/blog/v1/params.js +25 -1
- package/sparkdream/blog/v1/post.d.ts +8 -0
- package/sparkdream/blog/v1/post.js +16 -1
- package/sparkdream/blog/v1/query.d.ts +92 -0
- package/sparkdream/blog/v1/query.js +166 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
- package/sparkdream/blog/v1/query.lcd.js +11 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
- package/sparkdream/blog/v1/tx.d.ts +16 -0
- package/sparkdream/blog/v1/tx.js +32 -2
- package/sparkdream/bundle.d.ts +14529 -12577
- package/sparkdream/bundle.js +367 -327
- package/sparkdream/client.d.ts +192 -67
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
- package/sparkdream/collect/v1/curator_activity.js +161 -0
- package/sparkdream/collect/v1/genesis.d.ts +4 -3
- package/sparkdream/collect/v1/genesis.js +11 -10
- package/sparkdream/collect/v1/params.d.ts +32 -0
- package/sparkdream/collect/v1/params.js +37 -1
- package/sparkdream/collect/v1/query.d.ts +142 -133
- package/sparkdream/collect/v1/query.js +201 -186
- package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
- package/sparkdream/collect/v1/query.lcd.js +16 -16
- package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
- package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
- package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
- package/sparkdream/collect/v1/tx.amino.js +0 -10
- package/sparkdream/collect/v1/tx.d.ts +0 -162
- package/sparkdream/collect/v1/tx.js +2 -260
- package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
- package/sparkdream/collect/v1/tx.registry.js +1 -37
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
- package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
- package/sparkdream/collect/v1/types.d.ts +26 -56
- package/sparkdream/collect/v1/types.js +51 -144
- package/sparkdream/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +79 -0
- package/sparkdream/federation/v1/genesis.js +248 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1458 -0
- package/sparkdream/federation/v1/query.js +2482 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +25 -0
- package/sparkdream/federation/v1/query.lcd.js +146 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +69 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +186 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +128 -0
- package/sparkdream/federation/v1/tx.amino.js +132 -0
- package/sparkdream/federation/v1/tx.d.ts +2147 -0
- package/sparkdream/federation/v1/tx.js +3932 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +313 -0
- package/sparkdream/federation/v1/tx.registry.js +469 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +65 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +168 -0
- package/sparkdream/federation/v1/types.d.ts +810 -0
- package/sparkdream/federation/v1/types.js +2281 -0
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +70 -0
- package/sparkdream/rep/v1/genesis.js +224 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +128 -0
- package/sparkdream/{forum → rep}/v1/member_report.js +103 -6
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4222 -1156
- package/sparkdream/rep/v1/query.js +5254 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +293 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +140 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +333 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1484 -0
- package/sparkdream/rep/v1/tx.js +2468 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +64 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +103 -0
- package/sparkdream/rpc.query.d.ts +60 -36
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_report.d.ts +0 -67
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
5
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
6
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
7
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
8
|
+
* @name VerifierActivity
|
|
9
|
+
* @package sparkdream.federation.v1
|
|
10
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
11
|
+
*/
|
|
12
|
+
export interface VerifierActivity {
|
|
13
|
+
address: string;
|
|
14
|
+
/**
|
|
15
|
+
* Lifetime metrics
|
|
16
|
+
*/
|
|
17
|
+
totalVerifications: bigint;
|
|
18
|
+
upheldVerifications: bigint;
|
|
19
|
+
overturnedVerifications: bigint;
|
|
20
|
+
unchallengedVerifications: bigint;
|
|
21
|
+
/**
|
|
22
|
+
* Epoch metrics
|
|
23
|
+
*/
|
|
24
|
+
epochVerifications: bigint;
|
|
25
|
+
epochChallengesResolved: bigint;
|
|
26
|
+
/**
|
|
27
|
+
* Consecutive-outcome tracking for demotion triggers. Slash streak beyond
|
|
28
|
+
* UpheldToResetOverturns consecutive-overturn is the demotion signal.
|
|
29
|
+
*/
|
|
30
|
+
consecutiveOverturns: bigint;
|
|
31
|
+
consecutiveUpheld: bigint;
|
|
32
|
+
/**
|
|
33
|
+
* overturn_cooldown_until is the unix timestamp during which the verifier
|
|
34
|
+
* cannot submit new verifications after an overturn. Managed by the
|
|
35
|
+
* federation challenge-resolution flow.
|
|
36
|
+
*/
|
|
37
|
+
overturnCooldownUntil: bigint;
|
|
38
|
+
/**
|
|
39
|
+
* slash_count is the lifetime number of times this verifier has been
|
|
40
|
+
* slashed (overturn verdicts).
|
|
41
|
+
*/
|
|
42
|
+
slashCount: bigint;
|
|
43
|
+
}
|
|
44
|
+
export interface VerifierActivityProtoMsg {
|
|
45
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity";
|
|
46
|
+
value: Uint8Array;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
50
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
51
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
52
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
53
|
+
* @name VerifierActivityAmino
|
|
54
|
+
* @package sparkdream.federation.v1
|
|
55
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
56
|
+
*/
|
|
57
|
+
export interface VerifierActivityAmino {
|
|
58
|
+
address?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Lifetime metrics
|
|
61
|
+
*/
|
|
62
|
+
total_verifications?: string;
|
|
63
|
+
upheld_verifications?: string;
|
|
64
|
+
overturned_verifications?: string;
|
|
65
|
+
unchallenged_verifications?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Epoch metrics
|
|
68
|
+
*/
|
|
69
|
+
epoch_verifications?: string;
|
|
70
|
+
epoch_challenges_resolved?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Consecutive-outcome tracking for demotion triggers. Slash streak beyond
|
|
73
|
+
* UpheldToResetOverturns consecutive-overturn is the demotion signal.
|
|
74
|
+
*/
|
|
75
|
+
consecutive_overturns?: string;
|
|
76
|
+
consecutive_upheld?: string;
|
|
77
|
+
/**
|
|
78
|
+
* overturn_cooldown_until is the unix timestamp during which the verifier
|
|
79
|
+
* cannot submit new verifications after an overturn. Managed by the
|
|
80
|
+
* federation challenge-resolution flow.
|
|
81
|
+
*/
|
|
82
|
+
overturn_cooldown_until?: string;
|
|
83
|
+
/**
|
|
84
|
+
* slash_count is the lifetime number of times this verifier has been
|
|
85
|
+
* slashed (overturn verdicts).
|
|
86
|
+
*/
|
|
87
|
+
slash_count?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface VerifierActivityAminoMsg {
|
|
90
|
+
type: "/sparkdream.federation.v1.VerifierActivity";
|
|
91
|
+
value: VerifierActivityAmino;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
95
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
96
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
97
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
98
|
+
* @name VerifierActivity
|
|
99
|
+
* @package sparkdream.federation.v1
|
|
100
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
101
|
+
*/
|
|
102
|
+
export declare const VerifierActivity: {
|
|
103
|
+
typeUrl: string;
|
|
104
|
+
encode(message: VerifierActivity, writer?: BinaryWriter): BinaryWriter;
|
|
105
|
+
decode(input: BinaryReader | Uint8Array, length?: number): VerifierActivity;
|
|
106
|
+
fromPartial(object: DeepPartial<VerifierActivity>): VerifierActivity;
|
|
107
|
+
fromAmino(object: VerifierActivityAmino): VerifierActivity;
|
|
108
|
+
toAmino(message: VerifierActivity): VerifierActivityAmino;
|
|
109
|
+
fromAminoMsg(object: VerifierActivityAminoMsg): VerifierActivity;
|
|
110
|
+
fromProtoMsg(message: VerifierActivityProtoMsg): VerifierActivity;
|
|
111
|
+
toProto(message: VerifierActivity): Uint8Array;
|
|
112
|
+
toProtoMsg(message: VerifierActivity): VerifierActivityProtoMsg;
|
|
113
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerifierActivity = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const binary_1 = require("../../../binary");
|
|
6
|
+
function createBaseVerifierActivity() {
|
|
7
|
+
return {
|
|
8
|
+
address: "",
|
|
9
|
+
totalVerifications: BigInt(0),
|
|
10
|
+
upheldVerifications: BigInt(0),
|
|
11
|
+
overturnedVerifications: BigInt(0),
|
|
12
|
+
unchallengedVerifications: BigInt(0),
|
|
13
|
+
epochVerifications: BigInt(0),
|
|
14
|
+
epochChallengesResolved: BigInt(0),
|
|
15
|
+
consecutiveOverturns: BigInt(0),
|
|
16
|
+
consecutiveUpheld: BigInt(0),
|
|
17
|
+
overturnCooldownUntil: BigInt(0),
|
|
18
|
+
slashCount: BigInt(0)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
23
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
24
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
25
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
26
|
+
* @name VerifierActivity
|
|
27
|
+
* @package sparkdream.federation.v1
|
|
28
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
29
|
+
*/
|
|
30
|
+
exports.VerifierActivity = {
|
|
31
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity",
|
|
32
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
33
|
+
if (message.address !== "") {
|
|
34
|
+
writer.uint32(10).string(message.address);
|
|
35
|
+
}
|
|
36
|
+
if (message.totalVerifications !== BigInt(0)) {
|
|
37
|
+
writer.uint32(16).uint64(message.totalVerifications);
|
|
38
|
+
}
|
|
39
|
+
if (message.upheldVerifications !== BigInt(0)) {
|
|
40
|
+
writer.uint32(24).uint64(message.upheldVerifications);
|
|
41
|
+
}
|
|
42
|
+
if (message.overturnedVerifications !== BigInt(0)) {
|
|
43
|
+
writer.uint32(32).uint64(message.overturnedVerifications);
|
|
44
|
+
}
|
|
45
|
+
if (message.unchallengedVerifications !== BigInt(0)) {
|
|
46
|
+
writer.uint32(40).uint64(message.unchallengedVerifications);
|
|
47
|
+
}
|
|
48
|
+
if (message.epochVerifications !== BigInt(0)) {
|
|
49
|
+
writer.uint32(48).uint64(message.epochVerifications);
|
|
50
|
+
}
|
|
51
|
+
if (message.epochChallengesResolved !== BigInt(0)) {
|
|
52
|
+
writer.uint32(56).uint64(message.epochChallengesResolved);
|
|
53
|
+
}
|
|
54
|
+
if (message.consecutiveOverturns !== BigInt(0)) {
|
|
55
|
+
writer.uint32(64).uint64(message.consecutiveOverturns);
|
|
56
|
+
}
|
|
57
|
+
if (message.consecutiveUpheld !== BigInt(0)) {
|
|
58
|
+
writer.uint32(72).uint64(message.consecutiveUpheld);
|
|
59
|
+
}
|
|
60
|
+
if (message.overturnCooldownUntil !== BigInt(0)) {
|
|
61
|
+
writer.uint32(80).int64(message.overturnCooldownUntil);
|
|
62
|
+
}
|
|
63
|
+
if (message.slashCount !== BigInt(0)) {
|
|
64
|
+
writer.uint32(88).uint64(message.slashCount);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBaseVerifierActivity();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
message.address = reader.string();
|
|
77
|
+
break;
|
|
78
|
+
case 2:
|
|
79
|
+
message.totalVerifications = reader.uint64();
|
|
80
|
+
break;
|
|
81
|
+
case 3:
|
|
82
|
+
message.upheldVerifications = reader.uint64();
|
|
83
|
+
break;
|
|
84
|
+
case 4:
|
|
85
|
+
message.overturnedVerifications = reader.uint64();
|
|
86
|
+
break;
|
|
87
|
+
case 5:
|
|
88
|
+
message.unchallengedVerifications = reader.uint64();
|
|
89
|
+
break;
|
|
90
|
+
case 6:
|
|
91
|
+
message.epochVerifications = reader.uint64();
|
|
92
|
+
break;
|
|
93
|
+
case 7:
|
|
94
|
+
message.epochChallengesResolved = reader.uint64();
|
|
95
|
+
break;
|
|
96
|
+
case 8:
|
|
97
|
+
message.consecutiveOverturns = reader.uint64();
|
|
98
|
+
break;
|
|
99
|
+
case 9:
|
|
100
|
+
message.consecutiveUpheld = reader.uint64();
|
|
101
|
+
break;
|
|
102
|
+
case 10:
|
|
103
|
+
message.overturnCooldownUntil = reader.int64();
|
|
104
|
+
break;
|
|
105
|
+
case 11:
|
|
106
|
+
message.slashCount = reader.uint64();
|
|
107
|
+
break;
|
|
108
|
+
default:
|
|
109
|
+
reader.skipType(tag & 7);
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
fromPartial(object) {
|
|
116
|
+
const message = createBaseVerifierActivity();
|
|
117
|
+
message.address = object.address ?? "";
|
|
118
|
+
message.totalVerifications = object.totalVerifications !== undefined && object.totalVerifications !== null ? BigInt(object.totalVerifications.toString()) : BigInt(0);
|
|
119
|
+
message.upheldVerifications = object.upheldVerifications !== undefined && object.upheldVerifications !== null ? BigInt(object.upheldVerifications.toString()) : BigInt(0);
|
|
120
|
+
message.overturnedVerifications = object.overturnedVerifications !== undefined && object.overturnedVerifications !== null ? BigInt(object.overturnedVerifications.toString()) : BigInt(0);
|
|
121
|
+
message.unchallengedVerifications = object.unchallengedVerifications !== undefined && object.unchallengedVerifications !== null ? BigInt(object.unchallengedVerifications.toString()) : BigInt(0);
|
|
122
|
+
message.epochVerifications = object.epochVerifications !== undefined && object.epochVerifications !== null ? BigInt(object.epochVerifications.toString()) : BigInt(0);
|
|
123
|
+
message.epochChallengesResolved = object.epochChallengesResolved !== undefined && object.epochChallengesResolved !== null ? BigInt(object.epochChallengesResolved.toString()) : BigInt(0);
|
|
124
|
+
message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
|
|
125
|
+
message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
|
|
126
|
+
message.overturnCooldownUntil = object.overturnCooldownUntil !== undefined && object.overturnCooldownUntil !== null ? BigInt(object.overturnCooldownUntil.toString()) : BigInt(0);
|
|
127
|
+
message.slashCount = object.slashCount !== undefined && object.slashCount !== null ? BigInt(object.slashCount.toString()) : BigInt(0);
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
fromAmino(object) {
|
|
131
|
+
const message = createBaseVerifierActivity();
|
|
132
|
+
if (object.address !== undefined && object.address !== null) {
|
|
133
|
+
message.address = object.address;
|
|
134
|
+
}
|
|
135
|
+
if (object.total_verifications !== undefined && object.total_verifications !== null) {
|
|
136
|
+
message.totalVerifications = BigInt(object.total_verifications);
|
|
137
|
+
}
|
|
138
|
+
if (object.upheld_verifications !== undefined && object.upheld_verifications !== null) {
|
|
139
|
+
message.upheldVerifications = BigInt(object.upheld_verifications);
|
|
140
|
+
}
|
|
141
|
+
if (object.overturned_verifications !== undefined && object.overturned_verifications !== null) {
|
|
142
|
+
message.overturnedVerifications = BigInt(object.overturned_verifications);
|
|
143
|
+
}
|
|
144
|
+
if (object.unchallenged_verifications !== undefined && object.unchallenged_verifications !== null) {
|
|
145
|
+
message.unchallengedVerifications = BigInt(object.unchallenged_verifications);
|
|
146
|
+
}
|
|
147
|
+
if (object.epoch_verifications !== undefined && object.epoch_verifications !== null) {
|
|
148
|
+
message.epochVerifications = BigInt(object.epoch_verifications);
|
|
149
|
+
}
|
|
150
|
+
if (object.epoch_challenges_resolved !== undefined && object.epoch_challenges_resolved !== null) {
|
|
151
|
+
message.epochChallengesResolved = BigInt(object.epoch_challenges_resolved);
|
|
152
|
+
}
|
|
153
|
+
if (object.consecutive_overturns !== undefined && object.consecutive_overturns !== null) {
|
|
154
|
+
message.consecutiveOverturns = BigInt(object.consecutive_overturns);
|
|
155
|
+
}
|
|
156
|
+
if (object.consecutive_upheld !== undefined && object.consecutive_upheld !== null) {
|
|
157
|
+
message.consecutiveUpheld = BigInt(object.consecutive_upheld);
|
|
158
|
+
}
|
|
159
|
+
if (object.overturn_cooldown_until !== undefined && object.overturn_cooldown_until !== null) {
|
|
160
|
+
message.overturnCooldownUntil = BigInt(object.overturn_cooldown_until);
|
|
161
|
+
}
|
|
162
|
+
if (object.slash_count !== undefined && object.slash_count !== null) {
|
|
163
|
+
message.slashCount = BigInt(object.slash_count);
|
|
164
|
+
}
|
|
165
|
+
return message;
|
|
166
|
+
},
|
|
167
|
+
toAmino(message) {
|
|
168
|
+
const obj = {};
|
|
169
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
170
|
+
obj.total_verifications = message.totalVerifications !== BigInt(0) ? message.totalVerifications?.toString() : undefined;
|
|
171
|
+
obj.upheld_verifications = message.upheldVerifications !== BigInt(0) ? message.upheldVerifications?.toString() : undefined;
|
|
172
|
+
obj.overturned_verifications = message.overturnedVerifications !== BigInt(0) ? message.overturnedVerifications?.toString() : undefined;
|
|
173
|
+
obj.unchallenged_verifications = message.unchallengedVerifications !== BigInt(0) ? message.unchallengedVerifications?.toString() : undefined;
|
|
174
|
+
obj.epoch_verifications = message.epochVerifications !== BigInt(0) ? message.epochVerifications?.toString() : undefined;
|
|
175
|
+
obj.epoch_challenges_resolved = message.epochChallengesResolved !== BigInt(0) ? message.epochChallengesResolved?.toString() : undefined;
|
|
176
|
+
obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
|
|
177
|
+
obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
|
|
178
|
+
obj.overturn_cooldown_until = message.overturnCooldownUntil !== BigInt(0) ? message.overturnCooldownUntil?.toString() : undefined;
|
|
179
|
+
obj.slash_count = message.slashCount !== BigInt(0) ? message.slashCount?.toString() : undefined;
|
|
180
|
+
return obj;
|
|
181
|
+
},
|
|
182
|
+
fromAminoMsg(object) {
|
|
183
|
+
return exports.VerifierActivity.fromAmino(object.value);
|
|
184
|
+
},
|
|
185
|
+
fromProtoMsg(message) {
|
|
186
|
+
return exports.VerifierActivity.decode(message.value);
|
|
187
|
+
},
|
|
188
|
+
toProto(message) {
|
|
189
|
+
return exports.VerifierActivity.encode(message).finish();
|
|
190
|
+
},
|
|
191
|
+
toProtoMsg(message) {
|
|
192
|
+
return {
|
|
193
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity",
|
|
194
|
+
value: exports.VerifierActivity.encode(message).finish()
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { Params, ParamsAmino } from "./params";
|
|
2
2
|
import { Post, PostAmino } from "./post";
|
|
3
|
-
import { Category, CategoryAmino } from "./category";
|
|
4
|
-
import { Tag, TagAmino } from "../../common/v1/tag";
|
|
5
|
-
import { ReservedTag, ReservedTagAmino } from "../../common/v1/reserved_tag";
|
|
6
3
|
import { UserRateLimit, UserRateLimitAmino } from "./user_rate_limit";
|
|
7
4
|
import { UserReactionLimit, UserReactionLimitAmino } from "./user_reaction_limit";
|
|
8
5
|
import { SentinelActivity, SentinelActivityAmino } from "./sentinel_activity";
|
|
@@ -11,18 +8,10 @@ import { ThreadLockRecord, ThreadLockRecordAmino } from "./thread_lock_record";
|
|
|
11
8
|
import { ThreadMoveRecord, ThreadMoveRecordAmino } from "./thread_move_record";
|
|
12
9
|
import { PostFlag, PostFlagAmino } from "./post_flag";
|
|
13
10
|
import { Bounty, BountyAmino } from "./bounty";
|
|
14
|
-
import { TagBudget, TagBudgetAmino } from "./tag_budget";
|
|
15
|
-
import { TagBudgetAward, TagBudgetAwardAmino } from "./tag_budget_award";
|
|
16
11
|
import { ThreadMetadata, ThreadMetadataAmino } from "./thread_metadata";
|
|
17
12
|
import { ThreadFollow, ThreadFollowAmino } from "./thread_follow";
|
|
18
13
|
import { ThreadFollowCount, ThreadFollowCountAmino } from "./thread_follow_count";
|
|
19
14
|
import { ArchiveMetadata, ArchiveMetadataAmino } from "./archive_metadata";
|
|
20
|
-
import { TagReport, TagReportAmino } from "./tag_report";
|
|
21
|
-
import { MemberSalvationStatus, MemberSalvationStatusAmino } from "./member_salvation_status";
|
|
22
|
-
import { JuryParticipation, JuryParticipationAmino } from "./jury_participation";
|
|
23
|
-
import { MemberReport, MemberReportAmino } from "./member_report";
|
|
24
|
-
import { MemberWarning, MemberWarningAmino } from "./member_warning";
|
|
25
|
-
import { GovActionAppeal, GovActionAppealAmino } from "./gov_action_appeal";
|
|
26
15
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
27
16
|
import { DeepPartial } from "../../../helpers";
|
|
28
17
|
/**
|
|
@@ -37,9 +26,6 @@ export interface GenesisState {
|
|
|
37
26
|
*/
|
|
38
27
|
params: Params;
|
|
39
28
|
postMap: Post[];
|
|
40
|
-
categoryMap: Category[];
|
|
41
|
-
tagMap: Tag[];
|
|
42
|
-
reservedTagMap: ReservedTag[];
|
|
43
29
|
userRateLimitMap: UserRateLimit[];
|
|
44
30
|
userReactionLimitMap: UserReactionLimit[];
|
|
45
31
|
sentinelActivityMap: SentinelActivity[];
|
|
@@ -49,22 +35,10 @@ export interface GenesisState {
|
|
|
49
35
|
postFlagMap: PostFlag[];
|
|
50
36
|
bountyList: Bounty[];
|
|
51
37
|
bountyCount: bigint;
|
|
52
|
-
tagBudgetList: TagBudget[];
|
|
53
|
-
tagBudgetCount: bigint;
|
|
54
|
-
tagBudgetAwardList: TagBudgetAward[];
|
|
55
|
-
tagBudgetAwardCount: bigint;
|
|
56
38
|
threadMetadataMap: ThreadMetadata[];
|
|
57
39
|
threadFollowMap: ThreadFollow[];
|
|
58
40
|
threadFollowCountMap: ThreadFollowCount[];
|
|
59
41
|
archiveMetadataMap: ArchiveMetadata[];
|
|
60
|
-
tagReportMap: TagReport[];
|
|
61
|
-
memberSalvationStatusMap: MemberSalvationStatus[];
|
|
62
|
-
juryParticipationMap: JuryParticipation[];
|
|
63
|
-
memberReportMap: MemberReport[];
|
|
64
|
-
memberWarningList: MemberWarning[];
|
|
65
|
-
memberWarningCount: bigint;
|
|
66
|
-
govActionAppealList: GovActionAppeal[];
|
|
67
|
-
govActionAppealCount: bigint;
|
|
68
42
|
}
|
|
69
43
|
export interface GenesisStateProtoMsg {
|
|
70
44
|
typeUrl: "/sparkdream.forum.v1.GenesisState";
|
|
@@ -82,9 +56,6 @@ export interface GenesisStateAmino {
|
|
|
82
56
|
*/
|
|
83
57
|
params: ParamsAmino;
|
|
84
58
|
post_map?: PostAmino[];
|
|
85
|
-
category_map?: CategoryAmino[];
|
|
86
|
-
tag_map?: TagAmino[];
|
|
87
|
-
reserved_tag_map?: ReservedTagAmino[];
|
|
88
59
|
user_rate_limit_map?: UserRateLimitAmino[];
|
|
89
60
|
user_reaction_limit_map?: UserReactionLimitAmino[];
|
|
90
61
|
sentinel_activity_map?: SentinelActivityAmino[];
|
|
@@ -94,22 +65,10 @@ export interface GenesisStateAmino {
|
|
|
94
65
|
post_flag_map?: PostFlagAmino[];
|
|
95
66
|
bounty_list?: BountyAmino[];
|
|
96
67
|
bounty_count?: string;
|
|
97
|
-
tag_budget_list?: TagBudgetAmino[];
|
|
98
|
-
tag_budget_count?: string;
|
|
99
|
-
tag_budget_award_list?: TagBudgetAwardAmino[];
|
|
100
|
-
tag_budget_award_count?: string;
|
|
101
68
|
thread_metadata_map?: ThreadMetadataAmino[];
|
|
102
69
|
thread_follow_map?: ThreadFollowAmino[];
|
|
103
70
|
thread_follow_count_map?: ThreadFollowCountAmino[];
|
|
104
71
|
archive_metadata_map?: ArchiveMetadataAmino[];
|
|
105
|
-
tag_report_map?: TagReportAmino[];
|
|
106
|
-
member_salvation_status_map?: MemberSalvationStatusAmino[];
|
|
107
|
-
jury_participation_map?: JuryParticipationAmino[];
|
|
108
|
-
member_report_map?: MemberReportAmino[];
|
|
109
|
-
member_warning_list?: MemberWarningAmino[];
|
|
110
|
-
member_warning_count?: string;
|
|
111
|
-
gov_action_appeal_list?: GovActionAppealAmino[];
|
|
112
|
-
gov_action_appeal_count?: string;
|
|
113
72
|
}
|
|
114
73
|
export interface GenesisStateAminoMsg {
|
|
115
74
|
type: "/sparkdream.forum.v1.GenesisState";
|