@sparkdreamnft/sparkdreamjs 0.0.48 → 0.0.49

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.
Files changed (231) hide show
  1. package/akash/bundle.d.ts +134 -134
  2. package/akash/bundle.js +150 -150
  3. package/amino-schema.d.ts +86 -0
  4. package/amino-schema.js +1 -1
  5. package/cosmos/bundle.d.ts +160 -160
  6. package/cosmos/bundle.js +182 -182
  7. package/esm/akash/bundle.js +150 -150
  8. package/esm/amino-schema.js +1 -1
  9. package/esm/cosmos/bundle.js +182 -182
  10. package/esm/ibc/bundle.js +116 -116
  11. package/esm/sparkdream/artifact/v1/types.js +25 -1
  12. package/esm/sparkdream/blog/v1/genesis.js +97 -1
  13. package/esm/sparkdream/bundle.js +447 -439
  14. package/esm/sparkdream/collect/v1/genesis.js +308 -3
  15. package/esm/sparkdream/collect/v1/tx.js +170 -0
  16. package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
  17. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +10 -1
  18. package/esm/sparkdream/collect/v1/types.js +51 -3
  19. package/esm/sparkdream/commons/v1/genesis.js +756 -27
  20. package/esm/sparkdream/commons/v1/group.js +130 -2
  21. package/esm/sparkdream/commons/v1/poll.js +281 -0
  22. package/esm/sparkdream/commons/v1/poll_vote.js +107 -0
  23. package/esm/sparkdream/commons/v1/query.js +759 -0
  24. package/esm/sparkdream/commons/v1/query.lcd.js +46 -0
  25. package/esm/sparkdream/commons/v1/query.rpc.Query.js +49 -1
  26. package/esm/sparkdream/commons/v1/tx.js +730 -4
  27. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  28. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +25 -1
  29. package/esm/sparkdream/commons/v1/voter_tree.js +208 -0
  30. package/esm/sparkdream/federation/v1/genesis.js +212 -2
  31. package/esm/sparkdream/federation/v1/tx.js +196 -0
  32. package/esm/sparkdream/federation/v1/tx.registry.js +20 -2
  33. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +8 -1
  34. package/esm/sparkdream/federation/v1/types.js +194 -2
  35. package/esm/sparkdream/forum/v1/archive_metadata.js +13 -1
  36. package/esm/sparkdream/forum/v1/genesis.js +428 -1
  37. package/esm/sparkdream/forum/v1/params.js +182 -254
  38. package/esm/sparkdream/forum/v1/query.js +112 -7
  39. package/esm/sparkdream/forum/v1/user_reaction_limit.js +62 -1
  40. package/esm/sparkdream/futarchy/v1/market.js +37 -1
  41. package/esm/sparkdream/futarchy/v1/tx.js +13 -1
  42. package/esm/sparkdream/name/v1/dispute.js +13 -1
  43. package/esm/sparkdream/rep/v1/genesis.js +272 -2
  44. package/esm/sparkdream/rep/v1/initiative_review.js +13 -1
  45. package/esm/sparkdream/rep/v1/invitation.js +25 -1
  46. package/esm/sparkdream/rep/v1/member_report.js +335 -1
  47. package/esm/sparkdream/rep/v1/migration.js +27 -2
  48. package/esm/sparkdream/rep/v1/params.js +13 -1
  49. package/esm/sparkdream/rep/v1/stake.js +10 -0
  50. package/esm/sparkdream/rep/v1/tx.js +372 -14
  51. package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
  52. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -2
  53. package/esm/sparkdream/reveal/v1/types.js +9 -21
  54. package/esm/sparkdream/season/v1/display_name_moderation.js +40 -1
  55. package/esm/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
  56. package/esm/sparkdream/season/v1/genesis.js +125 -1
  57. package/esm/sparkdream/season/v1/guild_invite.js +13 -1
  58. package/esm/sparkdream/season/v1/guild_membership.js +13 -1
  59. package/esm/sparkdream/season/v1/member_profile.js +13 -1
  60. package/esm/sparkdream/season/v1/member_quest_progress.js +13 -1
  61. package/esm/sparkdream/season/v1/member_season_snapshot.js +16 -1
  62. package/esm/sparkdream/season/v1/nomination.js +37 -1
  63. package/esm/sparkdream/season/v1/query.js +26 -35
  64. package/esm/sparkdream/season/v1/query.lcd.js +1 -1
  65. package/esm/sparkdream/season/v1/quest.js +13 -1
  66. package/esm/sparkdream/season/v1/season.js +13 -1
  67. package/esm/sparkdream/season/v1/season_stats_counters.js +121 -0
  68. package/esm/sparkdream/season/v1/season_title_eligibility.js +4 -1
  69. package/esm/sparkdream/service/v1/genesis.js +126 -1
  70. package/esm/sparkdream/service/v1/refile_cooldown.js +20 -7
  71. package/esm/sparkdream/session/v1/genesis.js +303 -1
  72. package/esm/sparkdream/session/v1/params.js +24 -0
  73. package/esm/sparkdream/shield/v1/genesis.js +56 -2
  74. package/esm/sparkdream/shield/v1/params.js +13 -1
  75. package/esm/sparkdream/shield/v1/types.js +202 -1
  76. package/esm/sparkdream/vault/v1/genesis.js +25 -1
  77. package/esm/sparkdream/vault/v1/query.js +15 -2
  78. package/esm/sparkdream/vault/v1/query.lcd.js +3 -0
  79. package/esm/sparkdream/vault/v1/tx.js +301 -0
  80. package/esm/sparkdream/vault/v1/tx.registry.js +38 -2
  81. package/esm/sparkdream/vault/v1/tx.rpc.msg.js +13 -1
  82. package/esm/sparkdream/vault/v1/vault_signer.js +15 -2
  83. package/esm/tendermint/bundle.js +20 -20
  84. package/ibc/bundle.d.ts +99 -99
  85. package/ibc/bundle.js +116 -116
  86. package/package.json +1 -1
  87. package/sparkdream/artifact/v1/types.d.ts +14 -0
  88. package/sparkdream/artifact/v1/types.js +25 -1
  89. package/sparkdream/blog/v1/genesis.d.ts +60 -0
  90. package/sparkdream/blog/v1/genesis.js +98 -2
  91. package/sparkdream/bundle.d.ts +17095 -16171
  92. package/sparkdream/bundle.js +447 -439
  93. package/sparkdream/collect/v1/genesis.d.ts +186 -0
  94. package/sparkdream/collect/v1/genesis.js +309 -4
  95. package/sparkdream/collect/v1/tx.d.ts +100 -0
  96. package/sparkdream/collect/v1/tx.js +171 -1
  97. package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
  98. package/sparkdream/collect/v1/tx.registry.js +19 -1
  99. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +9 -1
  100. package/sparkdream/collect/v1/tx.rpc.msg.js +9 -0
  101. package/sparkdream/collect/v1/types.d.ts +52 -0
  102. package/sparkdream/collect/v1/types.js +51 -3
  103. package/sparkdream/commons/v1/genesis.d.ts +443 -22
  104. package/sparkdream/commons/v1/genesis.js +756 -27
  105. package/sparkdream/commons/v1/group.d.ts +75 -0
  106. package/sparkdream/commons/v1/group.js +133 -3
  107. package/sparkdream/commons/v1/poll.d.ts +135 -0
  108. package/sparkdream/commons/v1/poll.js +286 -0
  109. package/sparkdream/commons/v1/poll_vote.d.ts +58 -0
  110. package/sparkdream/commons/v1/poll_vote.js +110 -0
  111. package/sparkdream/commons/v1/query.d.ts +465 -0
  112. package/sparkdream/commons/v1/query.js +760 -1
  113. package/sparkdream/commons/v1/query.lcd.d.ts +6 -1
  114. package/sparkdream/commons/v1/query.lcd.js +46 -0
  115. package/sparkdream/commons/v1/query.rpc.Query.d.ts +30 -1
  116. package/sparkdream/commons/v1/query.rpc.Query.js +48 -0
  117. package/sparkdream/commons/v1/tx.d.ts +475 -1
  118. package/sparkdream/commons/v1/tx.js +731 -4
  119. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  120. package/sparkdream/commons/v1/tx.registry.js +73 -1
  121. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +13 -1
  122. package/sparkdream/commons/v1/tx.rpc.msg.js +24 -0
  123. package/sparkdream/commons/v1/voter_tree.d.ts +132 -0
  124. package/sparkdream/commons/v1/voter_tree.js +211 -0
  125. package/sparkdream/federation/v1/genesis.d.ts +136 -1
  126. package/sparkdream/federation/v1/genesis.js +212 -2
  127. package/sparkdream/federation/v1/tx.d.ts +138 -0
  128. package/sparkdream/federation/v1/tx.js +198 -1
  129. package/sparkdream/federation/v1/tx.registry.d.ts +13 -1
  130. package/sparkdream/federation/v1/tx.registry.js +19 -1
  131. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +7 -1
  132. package/sparkdream/federation/v1/tx.rpc.msg.js +7 -0
  133. package/sparkdream/federation/v1/types.d.ts +166 -0
  134. package/sparkdream/federation/v1/types.js +197 -3
  135. package/sparkdream/forum/v1/archive_metadata.d.ts +12 -0
  136. package/sparkdream/forum/v1/archive_metadata.js +13 -1
  137. package/sparkdream/forum/v1/genesis.d.ts +256 -0
  138. package/sparkdream/forum/v1/genesis.js +429 -2
  139. package/sparkdream/forum/v1/params.d.ts +0 -30
  140. package/sparkdream/forum/v1/params.js +182 -254
  141. package/sparkdream/forum/v1/query.d.ts +70 -0
  142. package/sparkdream/forum/v1/query.js +112 -7
  143. package/sparkdream/forum/v1/user_reaction_limit.d.ts +25 -0
  144. package/sparkdream/forum/v1/user_reaction_limit.js +65 -2
  145. package/sparkdream/futarchy/v1/market.d.ts +32 -0
  146. package/sparkdream/futarchy/v1/market.js +37 -1
  147. package/sparkdream/futarchy/v1/tx.d.ts +10 -0
  148. package/sparkdream/futarchy/v1/tx.js +13 -1
  149. package/sparkdream/name/v1/dispute.d.ts +14 -0
  150. package/sparkdream/name/v1/dispute.js +13 -1
  151. package/sparkdream/rep/v1/genesis.d.ts +151 -1
  152. package/sparkdream/rep/v1/genesis.js +272 -2
  153. package/sparkdream/rep/v1/initiative_review.d.ts +14 -0
  154. package/sparkdream/rep/v1/initiative_review.js +13 -1
  155. package/sparkdream/rep/v1/invitation.d.ts +32 -0
  156. package/sparkdream/rep/v1/invitation.js +25 -1
  157. package/sparkdream/rep/v1/member_report.d.ts +215 -0
  158. package/sparkdream/rep/v1/member_report.js +336 -2
  159. package/sparkdream/rep/v1/migration.d.ts +34 -1
  160. package/sparkdream/rep/v1/migration.js +27 -2
  161. package/sparkdream/rep/v1/params.d.ts +18 -0
  162. package/sparkdream/rep/v1/params.js +13 -1
  163. package/sparkdream/rep/v1/stake.d.ts +5 -0
  164. package/sparkdream/rep/v1/stake.js +10 -0
  165. package/sparkdream/rep/v1/tx.d.ts +340 -39
  166. package/sparkdream/rep/v1/tx.js +375 -17
  167. package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
  168. package/sparkdream/rep/v1/tx.registry.js +37 -1
  169. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +12 -2
  170. package/sparkdream/rep/v1/tx.rpc.msg.js +15 -1
  171. package/sparkdream/reveal/v1/types.d.ts +0 -8
  172. package/sparkdream/reveal/v1/types.js +9 -21
  173. package/sparkdream/rpc.query.d.ts +5 -0
  174. package/sparkdream/season/v1/display_name_moderation.d.ts +28 -0
  175. package/sparkdream/season/v1/display_name_moderation.js +40 -1
  176. package/sparkdream/season/v1/epoch_xp_tracker.d.ts +10 -0
  177. package/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
  178. package/sparkdream/season/v1/genesis.d.ts +75 -0
  179. package/sparkdream/season/v1/genesis.js +126 -2
  180. package/sparkdream/season/v1/guild_invite.d.ts +10 -0
  181. package/sparkdream/season/v1/guild_invite.js +13 -1
  182. package/sparkdream/season/v1/guild_membership.d.ts +12 -0
  183. package/sparkdream/season/v1/guild_membership.js +13 -1
  184. package/sparkdream/season/v1/member_profile.d.ts +12 -0
  185. package/sparkdream/season/v1/member_profile.js +13 -1
  186. package/sparkdream/season/v1/member_quest_progress.d.ts +8 -0
  187. package/sparkdream/season/v1/member_quest_progress.js +13 -1
  188. package/sparkdream/season/v1/member_season_snapshot.d.ts +14 -0
  189. package/sparkdream/season/v1/member_season_snapshot.js +16 -1
  190. package/sparkdream/season/v1/nomination.d.ts +32 -0
  191. package/sparkdream/season/v1/nomination.js +37 -1
  192. package/sparkdream/season/v1/query.d.ts +10 -6
  193. package/sparkdream/season/v1/query.js +26 -35
  194. package/sparkdream/season/v1/query.lcd.js +1 -1
  195. package/sparkdream/season/v1/quest.d.ts +12 -0
  196. package/sparkdream/season/v1/quest.js +13 -1
  197. package/sparkdream/season/v1/season.d.ts +12 -0
  198. package/sparkdream/season/v1/season.js +13 -1
  199. package/sparkdream/season/v1/season_stats_counters.d.ts +86 -0
  200. package/sparkdream/season/v1/season_stats_counters.js +124 -0
  201. package/sparkdream/season/v1/season_title_eligibility.d.ts +12 -3
  202. package/sparkdream/season/v1/season_title_eligibility.js +4 -1
  203. package/sparkdream/service/v1/genesis.d.ts +71 -0
  204. package/sparkdream/service/v1/genesis.js +127 -2
  205. package/sparkdream/service/v1/refile_cooldown.d.ts +35 -22
  206. package/sparkdream/service/v1/refile_cooldown.js +20 -7
  207. package/sparkdream/session/v1/genesis.d.ts +190 -0
  208. package/sparkdream/session/v1/genesis.js +304 -2
  209. package/sparkdream/session/v1/params.d.ts +18 -0
  210. package/sparkdream/session/v1/params.js +24 -0
  211. package/sparkdream/shield/v1/genesis.d.ts +37 -1
  212. package/sparkdream/shield/v1/genesis.js +55 -1
  213. package/sparkdream/shield/v1/params.d.ts +26 -2
  214. package/sparkdream/shield/v1/params.js +13 -1
  215. package/sparkdream/shield/v1/types.d.ts +122 -0
  216. package/sparkdream/shield/v1/types.js +203 -2
  217. package/sparkdream/vault/v1/genesis.d.ts +14 -0
  218. package/sparkdream/vault/v1/genesis.js +25 -1
  219. package/sparkdream/vault/v1/query.d.ts +16 -3
  220. package/sparkdream/vault/v1/query.js +15 -2
  221. package/sparkdream/vault/v1/query.lcd.js +3 -0
  222. package/sparkdream/vault/v1/tx.d.ts +219 -0
  223. package/sparkdream/vault/v1/tx.js +302 -1
  224. package/sparkdream/vault/v1/tx.registry.d.ts +25 -1
  225. package/sparkdream/vault/v1/tx.registry.js +37 -1
  226. package/sparkdream/vault/v1/tx.rpc.msg.d.ts +7 -1
  227. package/sparkdream/vault/v1/tx.rpc.msg.js +12 -0
  228. package/sparkdream/vault/v1/vault_signer.d.ts +22 -3
  229. package/sparkdream/vault/v1/vault_signer.js +15 -2
  230. package/tendermint/bundle.d.ts +844 -844
  231. 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 season.
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 season.
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 season.
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 season.
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 a controller from re-filing the same allegation
5
- * against the same (operator, service_type) within
6
- * `report_refile_cooldown_blocks` after a PENDING report was
7
- * AUTO_DISMISSED (controller stall). See x-service-spec.md §3.4.5.
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 (controller, operator_address, service_type, dismissed_at)
10
- * in the RefileCooldowns store; lazy expiry — entries are checked at
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 bech32 address of the controller against whom the
19
- * cooldown applies.
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 a controller from re-filing the same allegation
43
- * against the same (operator, service_type) within
44
- * `report_refile_cooldown_blocks` after a PENDING report was
45
- * AUTO_DISMISSED (controller stall). See x-service-spec.md §3.4.5.
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 (controller, operator_address, service_type, dismissed_at)
48
- * in the RefileCooldowns store; lazy expiry — entries are checked at
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 bech32 address of the controller against whom the
57
- * cooldown applies.
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 a controller from re-filing the same allegation
81
- * against the same (operator, service_type) within
82
- * `report_refile_cooldown_blocks` after a PENDING report was
83
- * AUTO_DISMISSED (controller stall). See x-service-spec.md §3.4.5.
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 (controller, operator_address, service_type, dismissed_at)
86
- * in the RefileCooldowns store; lazy expiry — entries are checked at
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 a controller from re-filing the same allegation
16
- * against the same (operator, service_type) within
17
- * `report_refile_cooldown_blocks` after a PENDING report was
18
- * AUTO_DISMISSED (controller stall). See x-service-spec.md §3.4.5.
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 (controller, operator_address, service_type, dismissed_at)
21
- * in the RefileCooldowns store; lazy expiry — entries are checked at
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) {