@sparkdreamnft/sparkdreamjs 0.0.48 → 0.0.50
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/amino-schema.d.ts +94 -0
- package/amino-schema.js +1 -1
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/amino-schema.js +1 -1
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/v1/types.js +25 -1
- package/esm/sparkdream/blog/v1/genesis.js +97 -1
- package/esm/sparkdream/bundle.js +447 -439
- package/esm/sparkdream/collect/v1/genesis.js +308 -3
- package/esm/sparkdream/collect/v1/tx.js +170 -0
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/collect/v1/types.js +51 -3
- package/esm/sparkdream/commons/v1/genesis.js +756 -27
- package/esm/sparkdream/commons/v1/group.js +130 -2
- package/esm/sparkdream/commons/v1/poll.js +281 -0
- package/esm/sparkdream/commons/v1/poll_vote.js +107 -0
- package/esm/sparkdream/commons/v1/query.js +759 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +46 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +49 -1
- package/esm/sparkdream/commons/v1/tx.js +730 -4
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +25 -1
- package/esm/sparkdream/commons/v1/voter_tree.js +208 -0
- package/esm/sparkdream/federation/v1/genesis.js +212 -2
- package/esm/sparkdream/federation/v1/tx.js +365 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +38 -2
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +14 -1
- package/esm/sparkdream/federation/v1/types.js +194 -2
- package/esm/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/genesis.js +428 -1
- package/esm/sparkdream/forum/v1/params.js +182 -254
- package/esm/sparkdream/forum/v1/query.js +112 -7
- package/esm/sparkdream/forum/v1/user_reaction_limit.js +62 -1
- package/esm/sparkdream/futarchy/v1/market.js +37 -1
- package/esm/sparkdream/futarchy/v1/tx.js +13 -1
- package/esm/sparkdream/name/v1/dispute.js +13 -1
- package/esm/sparkdream/rep/v1/genesis.js +272 -2
- package/esm/sparkdream/rep/v1/initiative_review.js +13 -1
- package/esm/sparkdream/rep/v1/invitation.js +25 -1
- package/esm/sparkdream/rep/v1/member_report.js +335 -1
- package/esm/sparkdream/rep/v1/migration.js +27 -2
- package/esm/sparkdream/rep/v1/params.js +13 -1
- package/esm/sparkdream/rep/v1/stake.js +10 -0
- package/esm/sparkdream/rep/v1/tx.js +372 -14
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -2
- package/esm/sparkdream/reveal/v1/types.js +9 -21
- package/esm/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/esm/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/esm/sparkdream/season/v1/genesis.js +125 -1
- package/esm/sparkdream/season/v1/guild_invite.js +13 -1
- package/esm/sparkdream/season/v1/guild_membership.js +13 -1
- package/esm/sparkdream/season/v1/member_profile.js +13 -1
- package/esm/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/esm/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/esm/sparkdream/season/v1/nomination.js +37 -1
- package/esm/sparkdream/season/v1/query.js +26 -35
- package/esm/sparkdream/season/v1/query.lcd.js +1 -1
- package/esm/sparkdream/season/v1/quest.js +13 -1
- package/esm/sparkdream/season/v1/season.js +13 -1
- package/esm/sparkdream/season/v1/season_stats_counters.js +121 -0
- package/esm/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/esm/sparkdream/service/v1/genesis.js +126 -1
- package/esm/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/esm/sparkdream/session/v1/genesis.js +303 -1
- package/esm/sparkdream/session/v1/params.js +24 -0
- package/esm/sparkdream/shield/v1/genesis.js +56 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +202 -1
- package/esm/sparkdream/vault/v1/genesis.js +25 -1
- package/esm/sparkdream/vault/v1/query.js +15 -2
- package/esm/sparkdream/vault/v1/query.lcd.js +3 -0
- package/esm/sparkdream/vault/v1/tx.js +301 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +38 -2
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/vault/v1/vault_signer.js +15 -2
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/v1/types.d.ts +14 -0
- package/sparkdream/artifact/v1/types.js +25 -1
- package/sparkdream/blog/v1/genesis.d.ts +60 -0
- package/sparkdream/blog/v1/genesis.js +98 -2
- package/sparkdream/bundle.d.ts +17133 -16171
- package/sparkdream/bundle.js +447 -439
- package/sparkdream/collect/v1/genesis.d.ts +186 -0
- package/sparkdream/collect/v1/genesis.js +309 -4
- package/sparkdream/collect/v1/tx.d.ts +100 -0
- package/sparkdream/collect/v1/tx.js +171 -1
- 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 +9 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/collect/v1/types.d.ts +52 -0
- package/sparkdream/collect/v1/types.js +51 -3
- package/sparkdream/commons/v1/genesis.d.ts +443 -22
- package/sparkdream/commons/v1/genesis.js +756 -27
- package/sparkdream/commons/v1/group.d.ts +75 -0
- package/sparkdream/commons/v1/group.js +133 -3
- package/sparkdream/commons/v1/poll.d.ts +135 -0
- package/sparkdream/commons/v1/poll.js +286 -0
- package/sparkdream/commons/v1/poll_vote.d.ts +58 -0
- package/sparkdream/commons/v1/poll_vote.js +110 -0
- package/sparkdream/commons/v1/query.d.ts +465 -0
- package/sparkdream/commons/v1/query.js +760 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +6 -1
- package/sparkdream/commons/v1/query.lcd.js +46 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +30 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +48 -0
- package/sparkdream/commons/v1/tx.d.ts +475 -1
- package/sparkdream/commons/v1/tx.js +731 -4
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +13 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +24 -0
- package/sparkdream/commons/v1/voter_tree.d.ts +132 -0
- package/sparkdream/commons/v1/voter_tree.js +211 -0
- package/sparkdream/federation/v1/genesis.d.ts +136 -1
- package/sparkdream/federation/v1/genesis.js +212 -2
- package/sparkdream/federation/v1/tx.d.ts +235 -0
- package/sparkdream/federation/v1/tx.js +367 -1
- package/sparkdream/federation/v1/tx.registry.d.ts +25 -1
- package/sparkdream/federation/v1/tx.registry.js +37 -1
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/federation/v1/tx.rpc.msg.js +13 -0
- package/sparkdream/federation/v1/types.d.ts +166 -0
- package/sparkdream/federation/v1/types.js +197 -3
- package/sparkdream/forum/v1/archive_metadata.d.ts +12 -0
- package/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/sparkdream/forum/v1/genesis.d.ts +256 -0
- package/sparkdream/forum/v1/genesis.js +429 -2
- package/sparkdream/forum/v1/params.d.ts +0 -30
- package/sparkdream/forum/v1/params.js +182 -254
- package/sparkdream/forum/v1/query.d.ts +70 -0
- package/sparkdream/forum/v1/query.js +112 -7
- package/sparkdream/forum/v1/user_reaction_limit.d.ts +25 -0
- package/sparkdream/forum/v1/user_reaction_limit.js +65 -2
- package/sparkdream/futarchy/v1/market.d.ts +32 -0
- package/sparkdream/futarchy/v1/market.js +37 -1
- package/sparkdream/futarchy/v1/tx.d.ts +10 -0
- package/sparkdream/futarchy/v1/tx.js +13 -1
- package/sparkdream/name/v1/dispute.d.ts +14 -0
- package/sparkdream/name/v1/dispute.js +13 -1
- package/sparkdream/rep/v1/genesis.d.ts +151 -1
- package/sparkdream/rep/v1/genesis.js +272 -2
- package/sparkdream/rep/v1/initiative_review.d.ts +14 -0
- package/sparkdream/rep/v1/initiative_review.js +13 -1
- package/sparkdream/rep/v1/invitation.d.ts +32 -0
- package/sparkdream/rep/v1/invitation.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +215 -0
- package/sparkdream/rep/v1/member_report.js +336 -2
- package/sparkdream/rep/v1/migration.d.ts +34 -1
- package/sparkdream/rep/v1/migration.js +27 -2
- package/sparkdream/rep/v1/params.d.ts +18 -0
- package/sparkdream/rep/v1/params.js +13 -1
- package/sparkdream/rep/v1/stake.d.ts +5 -0
- package/sparkdream/rep/v1/stake.js +10 -0
- package/sparkdream/rep/v1/tx.d.ts +340 -39
- package/sparkdream/rep/v1/tx.js +375 -17
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +12 -2
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -1
- package/sparkdream/reveal/v1/types.d.ts +0 -8
- package/sparkdream/reveal/v1/types.js +9 -21
- package/sparkdream/rpc.query.d.ts +5 -0
- package/sparkdream/season/v1/display_name_moderation.d.ts +28 -0
- package/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/sparkdream/season/v1/epoch_xp_tracker.d.ts +10 -0
- package/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/sparkdream/season/v1/genesis.d.ts +75 -0
- package/sparkdream/season/v1/genesis.js +126 -2
- package/sparkdream/season/v1/guild_invite.d.ts +10 -0
- package/sparkdream/season/v1/guild_invite.js +13 -1
- package/sparkdream/season/v1/guild_membership.d.ts +12 -0
- package/sparkdream/season/v1/guild_membership.js +13 -1
- package/sparkdream/season/v1/member_profile.d.ts +12 -0
- package/sparkdream/season/v1/member_profile.js +13 -1
- package/sparkdream/season/v1/member_quest_progress.d.ts +8 -0
- package/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/sparkdream/season/v1/member_season_snapshot.d.ts +14 -0
- package/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/sparkdream/season/v1/nomination.d.ts +32 -0
- package/sparkdream/season/v1/nomination.js +37 -1
- package/sparkdream/season/v1/query.d.ts +10 -6
- package/sparkdream/season/v1/query.js +26 -35
- package/sparkdream/season/v1/query.lcd.js +1 -1
- package/sparkdream/season/v1/quest.d.ts +12 -0
- package/sparkdream/season/v1/quest.js +13 -1
- package/sparkdream/season/v1/season.d.ts +12 -0
- package/sparkdream/season/v1/season.js +13 -1
- package/sparkdream/season/v1/season_stats_counters.d.ts +86 -0
- package/sparkdream/season/v1/season_stats_counters.js +124 -0
- package/sparkdream/season/v1/season_title_eligibility.d.ts +12 -3
- package/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/sparkdream/service/v1/genesis.d.ts +71 -0
- package/sparkdream/service/v1/genesis.js +127 -2
- package/sparkdream/service/v1/refile_cooldown.d.ts +35 -22
- package/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/sparkdream/session/v1/genesis.d.ts +190 -0
- package/sparkdream/session/v1/genesis.js +304 -2
- package/sparkdream/session/v1/params.d.ts +18 -0
- package/sparkdream/session/v1/params.js +24 -0
- package/sparkdream/shield/v1/genesis.d.ts +37 -1
- package/sparkdream/shield/v1/genesis.js +55 -1
- package/sparkdream/shield/v1/params.d.ts +26 -2
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/types.d.ts +122 -0
- package/sparkdream/shield/v1/types.js +203 -2
- package/sparkdream/vault/v1/genesis.d.ts +14 -0
- package/sparkdream/vault/v1/genesis.js +25 -1
- package/sparkdream/vault/v1/query.d.ts +16 -3
- package/sparkdream/vault/v1/query.js +15 -2
- package/sparkdream/vault/v1/query.lcd.js +3 -0
- package/sparkdream/vault/v1/tx.d.ts +219 -0
- package/sparkdream/vault/v1/tx.js +302 -1
- package/sparkdream/vault/v1/tx.registry.d.ts +25 -1
- package/sparkdream/vault/v1/tx.registry.js +37 -1
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/vault/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +22 -3
- package/sparkdream/vault/v1/vault_signer.js +15 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -49,7 +49,10 @@ export interface TitleGrantAminoMsg {
|
|
|
49
49
|
value: TitleGrantAmino;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* SeasonTitleEligibility tracks title grants for a
|
|
52
|
+
* SeasonTitleEligibility tracks the ranked (TOP_XP) title grants for a
|
|
53
|
+
* season. It is built incrementally across the SNAPSHOT batches and holds at
|
|
54
|
+
* most the title's threshold (capped) members per grant; threshold titles are
|
|
55
|
+
* recorded per member on MemberSeasonSnapshot.eligible_title_ids.
|
|
53
56
|
* @name SeasonTitleEligibility
|
|
54
57
|
* @package sparkdream.season.v1
|
|
55
58
|
* @see proto type: sparkdream.season.v1.SeasonTitleEligibility
|
|
@@ -73,7 +76,10 @@ export interface SeasonTitleEligibilityProtoMsg {
|
|
|
73
76
|
value: Uint8Array;
|
|
74
77
|
}
|
|
75
78
|
/**
|
|
76
|
-
* SeasonTitleEligibility tracks title grants for a
|
|
79
|
+
* SeasonTitleEligibility tracks the ranked (TOP_XP) title grants for a
|
|
80
|
+
* season. It is built incrementally across the SNAPSHOT batches and holds at
|
|
81
|
+
* most the title's threshold (capped) members per grant; threshold titles are
|
|
82
|
+
* recorded per member on MemberSeasonSnapshot.eligible_title_ids.
|
|
77
83
|
* @name SeasonTitleEligibilityAmino
|
|
78
84
|
* @package sparkdream.season.v1
|
|
79
85
|
* @see proto type: sparkdream.season.v1.SeasonTitleEligibility
|
|
@@ -115,7 +121,10 @@ export declare const TitleGrant: {
|
|
|
115
121
|
toProtoMsg(message: TitleGrant): TitleGrantProtoMsg;
|
|
116
122
|
};
|
|
117
123
|
/**
|
|
118
|
-
* SeasonTitleEligibility tracks title grants for a
|
|
124
|
+
* SeasonTitleEligibility tracks the ranked (TOP_XP) title grants for a
|
|
125
|
+
* season. It is built incrementally across the SNAPSHOT batches and holds at
|
|
126
|
+
* most the title's threshold (capped) members per grant; threshold titles are
|
|
127
|
+
* recorded per member on MemberSeasonSnapshot.eligible_title_ids.
|
|
119
128
|
* @name SeasonTitleEligibility
|
|
120
129
|
* @package sparkdream.season.v1
|
|
121
130
|
* @see proto type: sparkdream.season.v1.SeasonTitleEligibility
|
|
@@ -107,7 +107,10 @@ function createBaseSeasonTitleEligibility() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* SeasonTitleEligibility tracks title grants for a
|
|
110
|
+
* SeasonTitleEligibility tracks the ranked (TOP_XP) title grants for a
|
|
111
|
+
* season. It is built incrementally across the SNAPSHOT batches and holds at
|
|
112
|
+
* most the title's threshold (capped) members per grant; threshold titles are
|
|
113
|
+
* recorded per member on MemberSeasonSnapshot.eligible_title_ids.
|
|
111
114
|
* @name SeasonTitleEligibility
|
|
112
115
|
* @package sparkdream.season.v1
|
|
113
116
|
* @see proto type: sparkdream.season.v1.SeasonTitleEligibility
|
|
@@ -8,6 +8,7 @@ import { ReporterRateLimit, ReporterRateLimitAmino } from "./reporter_rate_limit
|
|
|
8
8
|
import { RefileCooldown, RefileCooldownAmino } from "./refile_cooldown";
|
|
9
9
|
import { Tier1LastSlash, Tier1LastSlashAmino } from "./tier1_last_slash";
|
|
10
10
|
import { Checkpoint, CheckpointAmino } from "./checkpoint";
|
|
11
|
+
import { SystemReportRateLimit, SystemReportRateLimitAmino } from "./system_report_rate_limit";
|
|
11
12
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
12
13
|
import { DeepPartial } from "../../../helpers";
|
|
13
14
|
/**
|
|
@@ -83,6 +84,17 @@ export interface GenesisState {
|
|
|
83
84
|
* at import.
|
|
84
85
|
*/
|
|
85
86
|
checkpoints: Checkpoint[];
|
|
87
|
+
/**
|
|
88
|
+
* system_report_dedup is the OpenSystemReport idempotency index
|
|
89
|
+
* (caller_module, dedupe_key) -> report_id. Without it a caller retry
|
|
90
|
+
* after an export/import would open a duplicate report.
|
|
91
|
+
*/
|
|
92
|
+
systemReportDedup: SystemReportDedupEntry[];
|
|
93
|
+
/**
|
|
94
|
+
* system_report_rate_limits is the per-caller-module sliding-window
|
|
95
|
+
* ring buffer for OpenSystemReport.
|
|
96
|
+
*/
|
|
97
|
+
systemReportRateLimits: SystemReportRateLimit[];
|
|
86
98
|
}
|
|
87
99
|
export interface GenesisStateProtoMsg {
|
|
88
100
|
typeUrl: "/sparkdream.service.v1.GenesisState";
|
|
@@ -161,11 +173,52 @@ export interface GenesisStateAmino {
|
|
|
161
173
|
* at import.
|
|
162
174
|
*/
|
|
163
175
|
checkpoints?: CheckpointAmino[];
|
|
176
|
+
/**
|
|
177
|
+
* system_report_dedup is the OpenSystemReport idempotency index
|
|
178
|
+
* (caller_module, dedupe_key) -> report_id. Without it a caller retry
|
|
179
|
+
* after an export/import would open a duplicate report.
|
|
180
|
+
*/
|
|
181
|
+
system_report_dedup?: SystemReportDedupEntryAmino[];
|
|
182
|
+
/**
|
|
183
|
+
* system_report_rate_limits is the per-caller-module sliding-window
|
|
184
|
+
* ring buffer for OpenSystemReport.
|
|
185
|
+
*/
|
|
186
|
+
system_report_rate_limits?: SystemReportRateLimitAmino[];
|
|
164
187
|
}
|
|
165
188
|
export interface GenesisStateAminoMsg {
|
|
166
189
|
type: "/sparkdream.service.v1.GenesisState";
|
|
167
190
|
value: GenesisStateAmino;
|
|
168
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* SystemReportDedupEntry is one SystemReportDedup map entry.
|
|
194
|
+
* @name SystemReportDedupEntry
|
|
195
|
+
* @package sparkdream.service.v1
|
|
196
|
+
* @see proto type: sparkdream.service.v1.SystemReportDedupEntry
|
|
197
|
+
*/
|
|
198
|
+
export interface SystemReportDedupEntry {
|
|
199
|
+
callerModule: string;
|
|
200
|
+
dedupeKey: Uint8Array;
|
|
201
|
+
reportId: bigint;
|
|
202
|
+
}
|
|
203
|
+
export interface SystemReportDedupEntryProtoMsg {
|
|
204
|
+
typeUrl: "/sparkdream.service.v1.SystemReportDedupEntry";
|
|
205
|
+
value: Uint8Array;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* SystemReportDedupEntry is one SystemReportDedup map entry.
|
|
209
|
+
* @name SystemReportDedupEntryAmino
|
|
210
|
+
* @package sparkdream.service.v1
|
|
211
|
+
* @see proto type: sparkdream.service.v1.SystemReportDedupEntry
|
|
212
|
+
*/
|
|
213
|
+
export interface SystemReportDedupEntryAmino {
|
|
214
|
+
caller_module?: string;
|
|
215
|
+
dedupe_key?: string;
|
|
216
|
+
report_id?: string;
|
|
217
|
+
}
|
|
218
|
+
export interface SystemReportDedupEntryAminoMsg {
|
|
219
|
+
type: "/sparkdream.service.v1.SystemReportDedupEntry";
|
|
220
|
+
value: SystemReportDedupEntryAmino;
|
|
221
|
+
}
|
|
169
222
|
/**
|
|
170
223
|
* GenesisState defines the service module's genesis state. See
|
|
171
224
|
* x-service-spec.md §7 for full validation rules.
|
|
@@ -185,3 +238,21 @@ export declare const GenesisState: {
|
|
|
185
238
|
toProto(message: GenesisState): Uint8Array;
|
|
186
239
|
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
187
240
|
};
|
|
241
|
+
/**
|
|
242
|
+
* SystemReportDedupEntry is one SystemReportDedup map entry.
|
|
243
|
+
* @name SystemReportDedupEntry
|
|
244
|
+
* @package sparkdream.service.v1
|
|
245
|
+
* @see proto type: sparkdream.service.v1.SystemReportDedupEntry
|
|
246
|
+
*/
|
|
247
|
+
export declare const SystemReportDedupEntry: {
|
|
248
|
+
typeUrl: string;
|
|
249
|
+
encode(message: SystemReportDedupEntry, writer?: BinaryWriter): BinaryWriter;
|
|
250
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SystemReportDedupEntry;
|
|
251
|
+
fromPartial(object: DeepPartial<SystemReportDedupEntry>): SystemReportDedupEntry;
|
|
252
|
+
fromAmino(object: SystemReportDedupEntryAmino): SystemReportDedupEntry;
|
|
253
|
+
toAmino(message: SystemReportDedupEntry): SystemReportDedupEntryAmino;
|
|
254
|
+
fromAminoMsg(object: SystemReportDedupEntryAminoMsg): SystemReportDedupEntry;
|
|
255
|
+
fromProtoMsg(message: SystemReportDedupEntryProtoMsg): SystemReportDedupEntry;
|
|
256
|
+
toProto(message: SystemReportDedupEntry): Uint8Array;
|
|
257
|
+
toProtoMsg(message: SystemReportDedupEntry): SystemReportDedupEntryProtoMsg;
|
|
258
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenesisState = void 0;
|
|
3
|
+
exports.SystemReportDedupEntry = exports.GenesisState = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
6
|
const service_type_config_1 = require("./service_type_config");
|
|
@@ -12,7 +12,9 @@ const reporter_rate_limit_1 = require("./reporter_rate_limit");
|
|
|
12
12
|
const refile_cooldown_1 = require("./refile_cooldown");
|
|
13
13
|
const tier1_last_slash_1 = require("./tier1_last_slash");
|
|
14
14
|
const checkpoint_1 = require("./checkpoint");
|
|
15
|
+
const system_report_rate_limit_1 = require("./system_report_rate_limit");
|
|
15
16
|
const binary_1 = require("../../../binary");
|
|
17
|
+
const helpers_1 = require("../../../helpers");
|
|
16
18
|
function createBaseGenesisState() {
|
|
17
19
|
return {
|
|
18
20
|
params: params_1.Params.fromPartial({}),
|
|
@@ -27,7 +29,9 @@ function createBaseGenesisState() {
|
|
|
27
29
|
tier1LastSlash: [],
|
|
28
30
|
nextReportId: BigInt(0),
|
|
29
31
|
nextEscrowId: BigInt(0),
|
|
30
|
-
checkpoints: []
|
|
32
|
+
checkpoints: [],
|
|
33
|
+
systemReportDedup: [],
|
|
34
|
+
systemReportRateLimits: []
|
|
31
35
|
};
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
@@ -79,6 +83,12 @@ exports.GenesisState = {
|
|
|
79
83
|
for (const v of message.checkpoints) {
|
|
80
84
|
checkpoint_1.Checkpoint.encode(v, writer.uint32(106).fork()).ldelim();
|
|
81
85
|
}
|
|
86
|
+
for (const v of message.systemReportDedup) {
|
|
87
|
+
exports.SystemReportDedupEntry.encode(v, writer.uint32(114).fork()).ldelim();
|
|
88
|
+
}
|
|
89
|
+
for (const v of message.systemReportRateLimits) {
|
|
90
|
+
system_report_rate_limit_1.SystemReportRateLimit.encode(v, writer.uint32(122).fork()).ldelim();
|
|
91
|
+
}
|
|
82
92
|
return writer;
|
|
83
93
|
},
|
|
84
94
|
decode(input, length) {
|
|
@@ -127,6 +137,12 @@ exports.GenesisState = {
|
|
|
127
137
|
case 13:
|
|
128
138
|
message.checkpoints.push(checkpoint_1.Checkpoint.decode(reader, reader.uint32()));
|
|
129
139
|
break;
|
|
140
|
+
case 14:
|
|
141
|
+
message.systemReportDedup.push(exports.SystemReportDedupEntry.decode(reader, reader.uint32()));
|
|
142
|
+
break;
|
|
143
|
+
case 15:
|
|
144
|
+
message.systemReportRateLimits.push(system_report_rate_limit_1.SystemReportRateLimit.decode(reader, reader.uint32()));
|
|
145
|
+
break;
|
|
130
146
|
default:
|
|
131
147
|
reader.skipType(tag & 7);
|
|
132
148
|
break;
|
|
@@ -149,6 +165,8 @@ exports.GenesisState = {
|
|
|
149
165
|
message.nextReportId = object.nextReportId !== undefined && object.nextReportId !== null ? BigInt(object.nextReportId.toString()) : BigInt(0);
|
|
150
166
|
message.nextEscrowId = object.nextEscrowId !== undefined && object.nextEscrowId !== null ? BigInt(object.nextEscrowId.toString()) : BigInt(0);
|
|
151
167
|
message.checkpoints = object.checkpoints?.map(e => checkpoint_1.Checkpoint.fromPartial(e)) || [];
|
|
168
|
+
message.systemReportDedup = object.systemReportDedup?.map(e => exports.SystemReportDedupEntry.fromPartial(e)) || [];
|
|
169
|
+
message.systemReportRateLimits = object.systemReportRateLimits?.map(e => system_report_rate_limit_1.SystemReportRateLimit.fromPartial(e)) || [];
|
|
152
170
|
return message;
|
|
153
171
|
},
|
|
154
172
|
fromAmino(object) {
|
|
@@ -172,6 +190,8 @@ exports.GenesisState = {
|
|
|
172
190
|
message.nextEscrowId = BigInt(object.next_escrow_id);
|
|
173
191
|
}
|
|
174
192
|
message.checkpoints = object.checkpoints?.map(e => checkpoint_1.Checkpoint.fromAmino(e)) || [];
|
|
193
|
+
message.systemReportDedup = object.system_report_dedup?.map(e => exports.SystemReportDedupEntry.fromAmino(e)) || [];
|
|
194
|
+
message.systemReportRateLimits = object.system_report_rate_limits?.map(e => system_report_rate_limit_1.SystemReportRateLimit.fromAmino(e)) || [];
|
|
175
195
|
return message;
|
|
176
196
|
},
|
|
177
197
|
toAmino(message) {
|
|
@@ -239,6 +259,18 @@ exports.GenesisState = {
|
|
|
239
259
|
else {
|
|
240
260
|
obj.checkpoints = message.checkpoints;
|
|
241
261
|
}
|
|
262
|
+
if (message.systemReportDedup) {
|
|
263
|
+
obj.system_report_dedup = message.systemReportDedup.map(e => e ? exports.SystemReportDedupEntry.toAmino(e) : undefined);
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
obj.system_report_dedup = message.systemReportDedup;
|
|
267
|
+
}
|
|
268
|
+
if (message.systemReportRateLimits) {
|
|
269
|
+
obj.system_report_rate_limits = message.systemReportRateLimits.map(e => e ? system_report_rate_limit_1.SystemReportRateLimit.toAmino(e) : undefined);
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
obj.system_report_rate_limits = message.systemReportRateLimits;
|
|
273
|
+
}
|
|
242
274
|
return obj;
|
|
243
275
|
},
|
|
244
276
|
fromAminoMsg(object) {
|
|
@@ -257,3 +289,96 @@ exports.GenesisState = {
|
|
|
257
289
|
};
|
|
258
290
|
}
|
|
259
291
|
};
|
|
292
|
+
function createBaseSystemReportDedupEntry() {
|
|
293
|
+
return {
|
|
294
|
+
callerModule: "",
|
|
295
|
+
dedupeKey: new Uint8Array(),
|
|
296
|
+
reportId: BigInt(0)
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* SystemReportDedupEntry is one SystemReportDedup map entry.
|
|
301
|
+
* @name SystemReportDedupEntry
|
|
302
|
+
* @package sparkdream.service.v1
|
|
303
|
+
* @see proto type: sparkdream.service.v1.SystemReportDedupEntry
|
|
304
|
+
*/
|
|
305
|
+
exports.SystemReportDedupEntry = {
|
|
306
|
+
typeUrl: "/sparkdream.service.v1.SystemReportDedupEntry",
|
|
307
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
308
|
+
if (message.callerModule !== "") {
|
|
309
|
+
writer.uint32(10).string(message.callerModule);
|
|
310
|
+
}
|
|
311
|
+
if (message.dedupeKey.length !== 0) {
|
|
312
|
+
writer.uint32(18).bytes(message.dedupeKey);
|
|
313
|
+
}
|
|
314
|
+
if (message.reportId !== BigInt(0)) {
|
|
315
|
+
writer.uint32(24).uint64(message.reportId);
|
|
316
|
+
}
|
|
317
|
+
return writer;
|
|
318
|
+
},
|
|
319
|
+
decode(input, length) {
|
|
320
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
321
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
322
|
+
const message = createBaseSystemReportDedupEntry();
|
|
323
|
+
while (reader.pos < end) {
|
|
324
|
+
const tag = reader.uint32();
|
|
325
|
+
switch (tag >>> 3) {
|
|
326
|
+
case 1:
|
|
327
|
+
message.callerModule = reader.string();
|
|
328
|
+
break;
|
|
329
|
+
case 2:
|
|
330
|
+
message.dedupeKey = reader.bytes();
|
|
331
|
+
break;
|
|
332
|
+
case 3:
|
|
333
|
+
message.reportId = reader.uint64();
|
|
334
|
+
break;
|
|
335
|
+
default:
|
|
336
|
+
reader.skipType(tag & 7);
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return message;
|
|
341
|
+
},
|
|
342
|
+
fromPartial(object) {
|
|
343
|
+
const message = createBaseSystemReportDedupEntry();
|
|
344
|
+
message.callerModule = object.callerModule ?? "";
|
|
345
|
+
message.dedupeKey = object.dedupeKey ?? new Uint8Array();
|
|
346
|
+
message.reportId = object.reportId !== undefined && object.reportId !== null ? BigInt(object.reportId.toString()) : BigInt(0);
|
|
347
|
+
return message;
|
|
348
|
+
},
|
|
349
|
+
fromAmino(object) {
|
|
350
|
+
const message = createBaseSystemReportDedupEntry();
|
|
351
|
+
if (object.caller_module !== undefined && object.caller_module !== null) {
|
|
352
|
+
message.callerModule = object.caller_module;
|
|
353
|
+
}
|
|
354
|
+
if (object.dedupe_key !== undefined && object.dedupe_key !== null) {
|
|
355
|
+
message.dedupeKey = (0, helpers_1.bytesFromBase64)(object.dedupe_key);
|
|
356
|
+
}
|
|
357
|
+
if (object.report_id !== undefined && object.report_id !== null) {
|
|
358
|
+
message.reportId = BigInt(object.report_id);
|
|
359
|
+
}
|
|
360
|
+
return message;
|
|
361
|
+
},
|
|
362
|
+
toAmino(message) {
|
|
363
|
+
const obj = {};
|
|
364
|
+
obj.caller_module = message.callerModule === "" ? undefined : message.callerModule;
|
|
365
|
+
obj.dedupe_key = message.dedupeKey ? (0, helpers_1.base64FromBytes)(message.dedupeKey) : undefined;
|
|
366
|
+
obj.report_id = message.reportId !== BigInt(0) ? message.reportId?.toString() : undefined;
|
|
367
|
+
return obj;
|
|
368
|
+
},
|
|
369
|
+
fromAminoMsg(object) {
|
|
370
|
+
return exports.SystemReportDedupEntry.fromAmino(object.value);
|
|
371
|
+
},
|
|
372
|
+
fromProtoMsg(message) {
|
|
373
|
+
return exports.SystemReportDedupEntry.decode(message.value);
|
|
374
|
+
},
|
|
375
|
+
toProto(message) {
|
|
376
|
+
return exports.SystemReportDedupEntry.encode(message).finish();
|
|
377
|
+
},
|
|
378
|
+
toProtoMsg(message) {
|
|
379
|
+
return {
|
|
380
|
+
typeUrl: "/sparkdream.service.v1.SystemReportDedupEntry",
|
|
381
|
+
value: exports.SystemReportDedupEntry.encode(message).finish()
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
2
|
import { DeepPartial } from "../../../helpers";
|
|
3
3
|
/**
|
|
4
|
-
* RefileCooldown bars
|
|
5
|
-
* against the same
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* RefileCooldown bars the reporter of a member report that was
|
|
5
|
+
* AUTO_DISMISSED (controller stall) from re-filing against the same
|
|
6
|
+
* (operator, service_type) within `report_refile_cooldown_blocks`. See
|
|
7
|
+
* x-service-spec.md §3.4.5. Other members can still report the operator,
|
|
8
|
+
* and auto-dismissed system reports record no cooldown at all.
|
|
8
9
|
*
|
|
9
|
-
* Keyed by (
|
|
10
|
-
*
|
|
10
|
+
* Keyed by (reporter, operator_address, service_type, dismissed_at) in
|
|
11
|
+
* the RefileCooldowns store; lazy expiry — entries are checked at
|
|
11
12
|
* MsgReportOperator time and pruned when expired.
|
|
12
13
|
* @name RefileCooldown
|
|
13
14
|
* @package sparkdream.service.v1
|
|
@@ -15,8 +16,8 @@ import { DeepPartial } from "../../../helpers";
|
|
|
15
16
|
*/
|
|
16
17
|
export interface RefileCooldown {
|
|
17
18
|
/**
|
|
18
|
-
* controller is the
|
|
19
|
-
*
|
|
19
|
+
* controller is the operator's controller at dismissal time (the party
|
|
20
|
+
* that let the report lapse). Informational.
|
|
20
21
|
*/
|
|
21
22
|
controller: string;
|
|
22
23
|
/**
|
|
@@ -33,19 +34,25 @@ export interface RefileCooldown {
|
|
|
33
34
|
* `dismissed_at + report_refile_cooldown_blocks`.
|
|
34
35
|
*/
|
|
35
36
|
dismissedAt: bigint;
|
|
37
|
+
/**
|
|
38
|
+
* reporter is the bech32 address of the member whose report lapsed and
|
|
39
|
+
* who is barred from re-filing until the cooldown expires.
|
|
40
|
+
*/
|
|
41
|
+
reporter: string;
|
|
36
42
|
}
|
|
37
43
|
export interface RefileCooldownProtoMsg {
|
|
38
44
|
typeUrl: "/sparkdream.service.v1.RefileCooldown";
|
|
39
45
|
value: Uint8Array;
|
|
40
46
|
}
|
|
41
47
|
/**
|
|
42
|
-
* RefileCooldown bars
|
|
43
|
-
* against the same
|
|
44
|
-
*
|
|
45
|
-
*
|
|
48
|
+
* RefileCooldown bars the reporter of a member report that was
|
|
49
|
+
* AUTO_DISMISSED (controller stall) from re-filing against the same
|
|
50
|
+
* (operator, service_type) within `report_refile_cooldown_blocks`. See
|
|
51
|
+
* x-service-spec.md §3.4.5. Other members can still report the operator,
|
|
52
|
+
* and auto-dismissed system reports record no cooldown at all.
|
|
46
53
|
*
|
|
47
|
-
* Keyed by (
|
|
48
|
-
*
|
|
54
|
+
* Keyed by (reporter, operator_address, service_type, dismissed_at) in
|
|
55
|
+
* the RefileCooldowns store; lazy expiry — entries are checked at
|
|
49
56
|
* MsgReportOperator time and pruned when expired.
|
|
50
57
|
* @name RefileCooldownAmino
|
|
51
58
|
* @package sparkdream.service.v1
|
|
@@ -53,8 +60,8 @@ export interface RefileCooldownProtoMsg {
|
|
|
53
60
|
*/
|
|
54
61
|
export interface RefileCooldownAmino {
|
|
55
62
|
/**
|
|
56
|
-
* controller is the
|
|
57
|
-
*
|
|
63
|
+
* controller is the operator's controller at dismissal time (the party
|
|
64
|
+
* that let the report lapse). Informational.
|
|
58
65
|
*/
|
|
59
66
|
controller?: string;
|
|
60
67
|
/**
|
|
@@ -71,19 +78,25 @@ export interface RefileCooldownAmino {
|
|
|
71
78
|
* `dismissed_at + report_refile_cooldown_blocks`.
|
|
72
79
|
*/
|
|
73
80
|
dismissed_at?: string;
|
|
81
|
+
/**
|
|
82
|
+
* reporter is the bech32 address of the member whose report lapsed and
|
|
83
|
+
* who is barred from re-filing until the cooldown expires.
|
|
84
|
+
*/
|
|
85
|
+
reporter?: string;
|
|
74
86
|
}
|
|
75
87
|
export interface RefileCooldownAminoMsg {
|
|
76
88
|
type: "sparkdream/x/service/RefileCooldown";
|
|
77
89
|
value: RefileCooldownAmino;
|
|
78
90
|
}
|
|
79
91
|
/**
|
|
80
|
-
* RefileCooldown bars
|
|
81
|
-
* against the same
|
|
82
|
-
*
|
|
83
|
-
*
|
|
92
|
+
* RefileCooldown bars the reporter of a member report that was
|
|
93
|
+
* AUTO_DISMISSED (controller stall) from re-filing against the same
|
|
94
|
+
* (operator, service_type) within `report_refile_cooldown_blocks`. See
|
|
95
|
+
* x-service-spec.md §3.4.5. Other members can still report the operator,
|
|
96
|
+
* and auto-dismissed system reports record no cooldown at all.
|
|
84
97
|
*
|
|
85
|
-
* Keyed by (
|
|
86
|
-
*
|
|
98
|
+
* Keyed by (reporter, operator_address, service_type, dismissed_at) in
|
|
99
|
+
* the RefileCooldowns store; lazy expiry — entries are checked at
|
|
87
100
|
* MsgReportOperator time and pruned when expired.
|
|
88
101
|
* @name RefileCooldown
|
|
89
102
|
* @package sparkdream.service.v1
|
|
@@ -8,17 +8,19 @@ function createBaseRefileCooldown() {
|
|
|
8
8
|
controller: "",
|
|
9
9
|
operatorAddress: "",
|
|
10
10
|
serviceType: "",
|
|
11
|
-
dismissedAt: BigInt(0)
|
|
11
|
+
dismissedAt: BigInt(0),
|
|
12
|
+
reporter: ""
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
|
-
* RefileCooldown bars
|
|
16
|
-
* against the same
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* RefileCooldown bars the reporter of a member report that was
|
|
17
|
+
* AUTO_DISMISSED (controller stall) from re-filing against the same
|
|
18
|
+
* (operator, service_type) within `report_refile_cooldown_blocks`. See
|
|
19
|
+
* x-service-spec.md §3.4.5. Other members can still report the operator,
|
|
20
|
+
* and auto-dismissed system reports record no cooldown at all.
|
|
19
21
|
*
|
|
20
|
-
* Keyed by (
|
|
21
|
-
*
|
|
22
|
+
* Keyed by (reporter, operator_address, service_type, dismissed_at) in
|
|
23
|
+
* the RefileCooldowns store; lazy expiry — entries are checked at
|
|
22
24
|
* MsgReportOperator time and pruned when expired.
|
|
23
25
|
* @name RefileCooldown
|
|
24
26
|
* @package sparkdream.service.v1
|
|
@@ -40,6 +42,9 @@ exports.RefileCooldown = {
|
|
|
40
42
|
if (message.dismissedAt !== BigInt(0)) {
|
|
41
43
|
writer.uint32(32).int64(message.dismissedAt);
|
|
42
44
|
}
|
|
45
|
+
if (message.reporter !== "") {
|
|
46
|
+
writer.uint32(42).string(message.reporter);
|
|
47
|
+
}
|
|
43
48
|
return writer;
|
|
44
49
|
},
|
|
45
50
|
decode(input, length) {
|
|
@@ -61,6 +66,9 @@ exports.RefileCooldown = {
|
|
|
61
66
|
case 4:
|
|
62
67
|
message.dismissedAt = reader.int64();
|
|
63
68
|
break;
|
|
69
|
+
case 5:
|
|
70
|
+
message.reporter = reader.string();
|
|
71
|
+
break;
|
|
64
72
|
default:
|
|
65
73
|
reader.skipType(tag & 7);
|
|
66
74
|
break;
|
|
@@ -74,6 +82,7 @@ exports.RefileCooldown = {
|
|
|
74
82
|
message.operatorAddress = object.operatorAddress ?? "";
|
|
75
83
|
message.serviceType = object.serviceType ?? "";
|
|
76
84
|
message.dismissedAt = object.dismissedAt !== undefined && object.dismissedAt !== null ? BigInt(object.dismissedAt.toString()) : BigInt(0);
|
|
85
|
+
message.reporter = object.reporter ?? "";
|
|
77
86
|
return message;
|
|
78
87
|
},
|
|
79
88
|
fromAmino(object) {
|
|
@@ -90,6 +99,9 @@ exports.RefileCooldown = {
|
|
|
90
99
|
if (object.dismissed_at !== undefined && object.dismissed_at !== null) {
|
|
91
100
|
message.dismissedAt = BigInt(object.dismissed_at);
|
|
92
101
|
}
|
|
102
|
+
if (object.reporter !== undefined && object.reporter !== null) {
|
|
103
|
+
message.reporter = object.reporter;
|
|
104
|
+
}
|
|
93
105
|
return message;
|
|
94
106
|
},
|
|
95
107
|
toAmino(message) {
|
|
@@ -98,6 +110,7 @@ exports.RefileCooldown = {
|
|
|
98
110
|
obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress;
|
|
99
111
|
obj.service_type = message.serviceType === "" ? undefined : message.serviceType;
|
|
100
112
|
obj.dismissed_at = message.dismissedAt !== BigInt(0) ? message.dismissedAt?.toString() : undefined;
|
|
113
|
+
obj.reporter = message.reporter === "" ? undefined : message.reporter;
|
|
101
114
|
return obj;
|
|
102
115
|
},
|
|
103
116
|
fromAminoMsg(object) {
|