@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
@@ -1,4 +1,5 @@
1
1
  import { GovActionType, MemberReportStatus } from "./accountability";
2
+ import { MemberStatus, TrustLevel } from "./member";
2
3
  import { BinaryReader, BinaryWriter } from "../../../binary";
3
4
  import { DeepPartial } from "../../../helpers";
4
5
  /**
@@ -25,6 +26,16 @@ export interface MemberReport {
25
26
  * an averaged share, to prevent cross-signer bond theft.
26
27
  */
27
28
  reporterBonds: ReporterBondEntry[];
29
+ /**
30
+ * resolved_action is the action MsgResolveMemberReport applied
31
+ * (UNSPECIFIED = dismissed). Together with resolved_at it opens the
32
+ * member's MsgAppealGovAction filing window.
33
+ */
34
+ resolvedAction: GovActionType;
35
+ /**
36
+ * resolved_at is the block time of the resolution (0 while open).
37
+ */
38
+ resolvedAt: bigint;
28
39
  }
29
40
  export interface MemberReportProtoMsg {
30
41
  typeUrl: "/sparkdream.rep.v1.MemberReport";
@@ -54,6 +65,16 @@ export interface MemberReportAmino {
54
65
  * an averaged share, to prevent cross-signer bond theft.
55
66
  */
56
67
  reporter_bonds?: ReporterBondEntryAmino[];
68
+ /**
69
+ * resolved_action is the action MsgResolveMemberReport applied
70
+ * (UNSPECIFIED = dismissed). Together with resolved_at it opens the
71
+ * member's MsgAppealGovAction filing window.
72
+ */
73
+ resolved_action?: GovActionType;
74
+ /**
75
+ * resolved_at is the block time of the resolution (0 while open).
76
+ */
77
+ resolved_at?: string;
57
78
  }
58
79
  export interface MemberReportAminoMsg {
59
80
  type: "/sparkdream.rep.v1.MemberReport";
@@ -89,6 +110,162 @@ export interface ReporterBondEntryAminoMsg {
89
110
  type: "/sparkdream.rep.v1.ReporterBondEntry";
90
111
  value: ReporterBondEntryAmino;
91
112
  }
113
+ /**
114
+ * @name MemberActionRestoration_ReputationEntry
115
+ * @package sparkdream.rep.v1
116
+ * @see proto type: sparkdream.rep.v1.undefined
117
+ */
118
+ export interface MemberActionRestoration_ReputationEntry {
119
+ key: string;
120
+ value: string;
121
+ }
122
+ export interface MemberActionRestoration_ReputationEntryProtoMsg {
123
+ typeUrl: string;
124
+ value: Uint8Array;
125
+ }
126
+ /**
127
+ * @name MemberActionRestoration_ReputationEntryAmino
128
+ * @package sparkdream.rep.v1
129
+ * @see proto type: sparkdream.rep.v1.MemberActionRestoration_ReputationEntry
130
+ */
131
+ export interface MemberActionRestoration_ReputationEntryAmino {
132
+ key?: string;
133
+ value?: string;
134
+ }
135
+ export interface MemberActionRestoration_ReputationEntryAminoMsg {
136
+ type: string;
137
+ value: MemberActionRestoration_ReputationEntryAmino;
138
+ }
139
+ /**
140
+ * MemberActionRestoration is what an OVERTURNED member-action appeal needs to
141
+ * undo the action MsgResolveMemberReport applied. Written at resolution, keyed
142
+ * by the member's canonical address (re-keyed by a migration), and deleted when
143
+ * the appeal reaches any terminal outcome or the filing window closes with no
144
+ * appeal, so at most one exists per member and only while the action is
145
+ * appealable.
146
+ * @name MemberActionRestoration
147
+ * @package sparkdream.rep.v1
148
+ * @see proto type: sparkdream.rep.v1.MemberActionRestoration
149
+ */
150
+ export interface MemberActionRestoration {
151
+ member: string;
152
+ /**
153
+ * action is WARNING, DEMOTION or ZEROING.
154
+ */
155
+ action: GovActionType;
156
+ /**
157
+ * resolved_at is the block time of the resolution; the filing window closes
158
+ * at resolved_at + DefaultAppealDeadline.
159
+ */
160
+ resolvedAt: bigint;
161
+ /**
162
+ * season is the season the action was applied in. Reputation restored in a
163
+ * later season goes to the lifetime archive, which the season reset would
164
+ * have moved it to.
165
+ */
166
+ season: bigint;
167
+ /**
168
+ * warning_id is the MemberWarning a WARNING created.
169
+ */
170
+ warningId: bigint;
171
+ /**
172
+ * reputation is, for DEMOTION, the reputation the slash took per tag and,
173
+ * for ZEROING, the member's per-tag seasonal reputation before the zeroing.
174
+ */
175
+ reputation: {
176
+ [key: string]: string;
177
+ };
178
+ /**
179
+ * ZEROING only: the member's state before the zeroing, and the zeroed_count
180
+ * the zeroing produced (a later, unrelated zeroing changes it and blocks
181
+ * the restoration).
182
+ */
183
+ priorStatus: MemberStatus;
184
+ priorTrustLevel: TrustLevel;
185
+ priorInvitationCredits: number;
186
+ /**
187
+ * burned_dream is the liquid DREAM the zeroing burned from the balance.
188
+ * Escrows the zeroing forfeited (challenge stakes, invitation stakes, role
189
+ * and report bonds) are not included and are never restored.
190
+ */
191
+ burnedDream: string;
192
+ zeroedCount: number;
193
+ /**
194
+ * appealed is set once MsgAppealGovAction files the (single) appeal of the
195
+ * action; appeal_id is that appeal. Its outcome settles the record.
196
+ */
197
+ appealed: boolean;
198
+ appealId: bigint;
199
+ }
200
+ export interface MemberActionRestorationProtoMsg {
201
+ typeUrl: "/sparkdream.rep.v1.MemberActionRestoration";
202
+ value: Uint8Array;
203
+ }
204
+ /**
205
+ * MemberActionRestoration is what an OVERTURNED member-action appeal needs to
206
+ * undo the action MsgResolveMemberReport applied. Written at resolution, keyed
207
+ * by the member's canonical address (re-keyed by a migration), and deleted when
208
+ * the appeal reaches any terminal outcome or the filing window closes with no
209
+ * appeal, so at most one exists per member and only while the action is
210
+ * appealable.
211
+ * @name MemberActionRestorationAmino
212
+ * @package sparkdream.rep.v1
213
+ * @see proto type: sparkdream.rep.v1.MemberActionRestoration
214
+ */
215
+ export interface MemberActionRestorationAmino {
216
+ member?: string;
217
+ /**
218
+ * action is WARNING, DEMOTION or ZEROING.
219
+ */
220
+ action?: GovActionType;
221
+ /**
222
+ * resolved_at is the block time of the resolution; the filing window closes
223
+ * at resolved_at + DefaultAppealDeadline.
224
+ */
225
+ resolved_at?: string;
226
+ /**
227
+ * season is the season the action was applied in. Reputation restored in a
228
+ * later season goes to the lifetime archive, which the season reset would
229
+ * have moved it to.
230
+ */
231
+ season?: string;
232
+ /**
233
+ * warning_id is the MemberWarning a WARNING created.
234
+ */
235
+ warning_id?: string;
236
+ /**
237
+ * reputation is, for DEMOTION, the reputation the slash took per tag and,
238
+ * for ZEROING, the member's per-tag seasonal reputation before the zeroing.
239
+ */
240
+ reputation?: {
241
+ [key: string]: string;
242
+ };
243
+ /**
244
+ * ZEROING only: the member's state before the zeroing, and the zeroed_count
245
+ * the zeroing produced (a later, unrelated zeroing changes it and blocks
246
+ * the restoration).
247
+ */
248
+ prior_status?: MemberStatus;
249
+ prior_trust_level?: TrustLevel;
250
+ prior_invitation_credits?: number;
251
+ /**
252
+ * burned_dream is the liquid DREAM the zeroing burned from the balance.
253
+ * Escrows the zeroing forfeited (challenge stakes, invitation stakes, role
254
+ * and report bonds) are not included and are never restored.
255
+ */
256
+ burned_dream?: string;
257
+ zeroed_count?: number;
258
+ /**
259
+ * appealed is set once MsgAppealGovAction files the (single) appeal of the
260
+ * action; appeal_id is that appeal. Its outcome settles the record.
261
+ */
262
+ appealed?: boolean;
263
+ appeal_id?: string;
264
+ }
265
+ export interface MemberActionRestorationAminoMsg {
266
+ type: "/sparkdream.rep.v1.MemberActionRestoration";
267
+ value: MemberActionRestorationAmino;
268
+ }
92
269
  /**
93
270
  * MemberReport defines the MemberReport message.
94
271
  * @name MemberReport
@@ -126,3 +303,41 @@ export declare const ReporterBondEntry: {
126
303
  toProto(message: ReporterBondEntry): Uint8Array;
127
304
  toProtoMsg(message: ReporterBondEntry): ReporterBondEntryProtoMsg;
128
305
  };
306
+ /**
307
+ * @name MemberActionRestoration_ReputationEntry
308
+ * @package sparkdream.rep.v1
309
+ * @see proto type: sparkdream.rep.v1.undefined
310
+ */
311
+ export declare const MemberActionRestoration_ReputationEntry: {
312
+ encode(message: MemberActionRestoration_ReputationEntry, writer?: BinaryWriter): BinaryWriter;
313
+ decode(input: BinaryReader | Uint8Array, length?: number): MemberActionRestoration_ReputationEntry;
314
+ fromPartial(object: DeepPartial<MemberActionRestoration_ReputationEntry>): MemberActionRestoration_ReputationEntry;
315
+ fromAmino(object: MemberActionRestoration_ReputationEntryAmino): MemberActionRestoration_ReputationEntry;
316
+ toAmino(message: MemberActionRestoration_ReputationEntry): MemberActionRestoration_ReputationEntryAmino;
317
+ fromAminoMsg(object: MemberActionRestoration_ReputationEntryAminoMsg): MemberActionRestoration_ReputationEntry;
318
+ fromProtoMsg(message: MemberActionRestoration_ReputationEntryProtoMsg): MemberActionRestoration_ReputationEntry;
319
+ toProto(message: MemberActionRestoration_ReputationEntry): Uint8Array;
320
+ };
321
+ /**
322
+ * MemberActionRestoration is what an OVERTURNED member-action appeal needs to
323
+ * undo the action MsgResolveMemberReport applied. Written at resolution, keyed
324
+ * by the member's canonical address (re-keyed by a migration), and deleted when
325
+ * the appeal reaches any terminal outcome or the filing window closes with no
326
+ * appeal, so at most one exists per member and only while the action is
327
+ * appealable.
328
+ * @name MemberActionRestoration
329
+ * @package sparkdream.rep.v1
330
+ * @see proto type: sparkdream.rep.v1.MemberActionRestoration
331
+ */
332
+ export declare const MemberActionRestoration: {
333
+ typeUrl: string;
334
+ encode(message: MemberActionRestoration, writer?: BinaryWriter): BinaryWriter;
335
+ decode(input: BinaryReader | Uint8Array, length?: number): MemberActionRestoration;
336
+ fromPartial(object: DeepPartial<MemberActionRestoration>): MemberActionRestoration;
337
+ fromAmino(object: MemberActionRestorationAmino): MemberActionRestoration;
338
+ toAmino(message: MemberActionRestoration): MemberActionRestorationAmino;
339
+ fromAminoMsg(object: MemberActionRestorationAminoMsg): MemberActionRestoration;
340
+ fromProtoMsg(message: MemberActionRestorationProtoMsg): MemberActionRestoration;
341
+ toProto(message: MemberActionRestoration): Uint8Array;
342
+ toProtoMsg(message: MemberActionRestoration): MemberActionRestorationProtoMsg;
343
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReporterBondEntry = exports.MemberReport = void 0;
3
+ exports.MemberActionRestoration = exports.MemberActionRestoration_ReputationEntry = exports.ReporterBondEntry = exports.MemberReport = void 0;
4
4
  const binary_1 = require("../../../binary");
5
5
  function createBaseMemberReport() {
6
6
  return {
@@ -15,7 +15,9 @@ function createBaseMemberReport() {
15
15
  reporters: [],
16
16
  evidencePostIds: [],
17
17
  defensePostIds: [],
18
- reporterBonds: []
18
+ reporterBonds: [],
19
+ resolvedAction: 0,
20
+ resolvedAt: BigInt(0)
19
21
  };
20
22
  }
21
23
  /**
@@ -67,6 +69,12 @@ exports.MemberReport = {
67
69
  for (const v of message.reporterBonds) {
68
70
  exports.ReporterBondEntry.encode(v, writer.uint32(98).fork()).ldelim();
69
71
  }
72
+ if (message.resolvedAction !== 0) {
73
+ writer.uint32(104).int32(message.resolvedAction);
74
+ }
75
+ if (message.resolvedAt !== BigInt(0)) {
76
+ writer.uint32(112).int64(message.resolvedAt);
77
+ }
70
78
  return writer;
71
79
  },
72
80
  decode(input, length) {
@@ -128,6 +136,12 @@ exports.MemberReport = {
128
136
  case 12:
129
137
  message.reporterBonds.push(exports.ReporterBondEntry.decode(reader, reader.uint32()));
130
138
  break;
139
+ case 13:
140
+ message.resolvedAction = reader.int32();
141
+ break;
142
+ case 14:
143
+ message.resolvedAt = reader.int64();
144
+ break;
131
145
  default:
132
146
  reader.skipType(tag & 7);
133
147
  break;
@@ -149,6 +163,8 @@ exports.MemberReport = {
149
163
  message.evidencePostIds = object.evidencePostIds?.map(e => BigInt(e.toString())) || [];
150
164
  message.defensePostIds = object.defensePostIds?.map(e => BigInt(e.toString())) || [];
151
165
  message.reporterBonds = object.reporterBonds?.map(e => exports.ReporterBondEntry.fromPartial(e)) || [];
166
+ message.resolvedAction = object.resolvedAction ?? 0;
167
+ message.resolvedAt = object.resolvedAt !== undefined && object.resolvedAt !== null ? BigInt(object.resolvedAt.toString()) : BigInt(0);
152
168
  return message;
153
169
  },
154
170
  fromAmino(object) {
@@ -181,6 +197,12 @@ exports.MemberReport = {
181
197
  message.evidencePostIds = object.evidence_post_ids?.map(e => BigInt(e)) || [];
182
198
  message.defensePostIds = object.defense_post_ids?.map(e => BigInt(e)) || [];
183
199
  message.reporterBonds = object.reporter_bonds?.map(e => exports.ReporterBondEntry.fromAmino(e)) || [];
200
+ if (object.resolved_action !== undefined && object.resolved_action !== null) {
201
+ message.resolvedAction = object.resolved_action;
202
+ }
203
+ if (object.resolved_at !== undefined && object.resolved_at !== null) {
204
+ message.resolvedAt = BigInt(object.resolved_at);
205
+ }
184
206
  return message;
185
207
  },
186
208
  toAmino(message) {
@@ -217,6 +239,8 @@ exports.MemberReport = {
217
239
  else {
218
240
  obj.reporter_bonds = message.reporterBonds;
219
241
  }
242
+ obj.resolved_action = message.resolvedAction === 0 ? undefined : message.resolvedAction;
243
+ obj.resolved_at = message.resolvedAt !== BigInt(0) ? message.resolvedAt?.toString() : undefined;
220
244
  return obj;
221
245
  },
222
246
  fromAminoMsg(object) {
@@ -317,3 +341,313 @@ exports.ReporterBondEntry = {
317
341
  };
318
342
  }
319
343
  };
344
+ function createBaseMemberActionRestoration_ReputationEntry() {
345
+ return {
346
+ key: "",
347
+ value: ""
348
+ };
349
+ }
350
+ /**
351
+ * @name MemberActionRestoration_ReputationEntry
352
+ * @package sparkdream.rep.v1
353
+ * @see proto type: sparkdream.rep.v1.undefined
354
+ */
355
+ exports.MemberActionRestoration_ReputationEntry = {
356
+ encode(message, writer = binary_1.BinaryWriter.create()) {
357
+ if (message.key !== "") {
358
+ writer.uint32(10).string(message.key);
359
+ }
360
+ if (message.value !== "") {
361
+ writer.uint32(18).string(message.value);
362
+ }
363
+ return writer;
364
+ },
365
+ decode(input, length) {
366
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
367
+ let end = length === undefined ? reader.len : reader.pos + length;
368
+ const message = createBaseMemberActionRestoration_ReputationEntry();
369
+ while (reader.pos < end) {
370
+ const tag = reader.uint32();
371
+ switch (tag >>> 3) {
372
+ case 1:
373
+ message.key = reader.string();
374
+ break;
375
+ case 2:
376
+ message.value = reader.string();
377
+ break;
378
+ default:
379
+ reader.skipType(tag & 7);
380
+ break;
381
+ }
382
+ }
383
+ return message;
384
+ },
385
+ fromPartial(object) {
386
+ const message = createBaseMemberActionRestoration_ReputationEntry();
387
+ message.key = object.key ?? "";
388
+ message.value = object.value ?? "";
389
+ return message;
390
+ },
391
+ fromAmino(object) {
392
+ const message = createBaseMemberActionRestoration_ReputationEntry();
393
+ if (object.key !== undefined && object.key !== null) {
394
+ message.key = object.key;
395
+ }
396
+ if (object.value !== undefined && object.value !== null) {
397
+ message.value = object.value;
398
+ }
399
+ return message;
400
+ },
401
+ toAmino(message) {
402
+ const obj = {};
403
+ obj.key = message.key === "" ? undefined : message.key;
404
+ obj.value = message.value === "" ? undefined : message.value;
405
+ return obj;
406
+ },
407
+ fromAminoMsg(object) {
408
+ return exports.MemberActionRestoration_ReputationEntry.fromAmino(object.value);
409
+ },
410
+ fromProtoMsg(message) {
411
+ return exports.MemberActionRestoration_ReputationEntry.decode(message.value);
412
+ },
413
+ toProto(message) {
414
+ return exports.MemberActionRestoration_ReputationEntry.encode(message).finish();
415
+ }
416
+ };
417
+ function createBaseMemberActionRestoration() {
418
+ return {
419
+ member: "",
420
+ action: 0,
421
+ resolvedAt: BigInt(0),
422
+ season: BigInt(0),
423
+ warningId: BigInt(0),
424
+ reputation: {},
425
+ priorStatus: 0,
426
+ priorTrustLevel: 0,
427
+ priorInvitationCredits: 0,
428
+ burnedDream: "",
429
+ zeroedCount: 0,
430
+ appealed: false,
431
+ appealId: BigInt(0)
432
+ };
433
+ }
434
+ /**
435
+ * MemberActionRestoration is what an OVERTURNED member-action appeal needs to
436
+ * undo the action MsgResolveMemberReport applied. Written at resolution, keyed
437
+ * by the member's canonical address (re-keyed by a migration), and deleted when
438
+ * the appeal reaches any terminal outcome or the filing window closes with no
439
+ * appeal, so at most one exists per member and only while the action is
440
+ * appealable.
441
+ * @name MemberActionRestoration
442
+ * @package sparkdream.rep.v1
443
+ * @see proto type: sparkdream.rep.v1.MemberActionRestoration
444
+ */
445
+ exports.MemberActionRestoration = {
446
+ typeUrl: "/sparkdream.rep.v1.MemberActionRestoration",
447
+ encode(message, writer = binary_1.BinaryWriter.create()) {
448
+ if (message.member !== "") {
449
+ writer.uint32(10).string(message.member);
450
+ }
451
+ if (message.action !== 0) {
452
+ writer.uint32(16).int32(message.action);
453
+ }
454
+ if (message.resolvedAt !== BigInt(0)) {
455
+ writer.uint32(24).int64(message.resolvedAt);
456
+ }
457
+ if (message.season !== BigInt(0)) {
458
+ writer.uint32(32).int64(message.season);
459
+ }
460
+ if (message.warningId !== BigInt(0)) {
461
+ writer.uint32(40).uint64(message.warningId);
462
+ }
463
+ Object.entries(message.reputation).forEach(([key, value]) => {
464
+ exports.MemberActionRestoration_ReputationEntry.encode({
465
+ key: key,
466
+ value
467
+ }, writer.uint32(50).fork()).ldelim();
468
+ });
469
+ if (message.priorStatus !== 0) {
470
+ writer.uint32(56).int32(message.priorStatus);
471
+ }
472
+ if (message.priorTrustLevel !== 0) {
473
+ writer.uint32(64).int32(message.priorTrustLevel);
474
+ }
475
+ if (message.priorInvitationCredits !== 0) {
476
+ writer.uint32(72).uint32(message.priorInvitationCredits);
477
+ }
478
+ if (message.burnedDream !== "") {
479
+ writer.uint32(82).string(message.burnedDream);
480
+ }
481
+ if (message.zeroedCount !== 0) {
482
+ writer.uint32(88).uint32(message.zeroedCount);
483
+ }
484
+ if (message.appealed === true) {
485
+ writer.uint32(96).bool(message.appealed);
486
+ }
487
+ if (message.appealId !== BigInt(0)) {
488
+ writer.uint32(104).uint64(message.appealId);
489
+ }
490
+ return writer;
491
+ },
492
+ decode(input, length) {
493
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
494
+ let end = length === undefined ? reader.len : reader.pos + length;
495
+ const message = createBaseMemberActionRestoration();
496
+ while (reader.pos < end) {
497
+ const tag = reader.uint32();
498
+ switch (tag >>> 3) {
499
+ case 1:
500
+ message.member = reader.string();
501
+ break;
502
+ case 2:
503
+ message.action = reader.int32();
504
+ break;
505
+ case 3:
506
+ message.resolvedAt = reader.int64();
507
+ break;
508
+ case 4:
509
+ message.season = reader.int64();
510
+ break;
511
+ case 5:
512
+ message.warningId = reader.uint64();
513
+ break;
514
+ case 6:
515
+ const entry6 = exports.MemberActionRestoration_ReputationEntry.decode(reader, reader.uint32());
516
+ if (entry6.value !== undefined) {
517
+ message.reputation[entry6.key] = entry6.value;
518
+ }
519
+ break;
520
+ case 7:
521
+ message.priorStatus = reader.int32();
522
+ break;
523
+ case 8:
524
+ message.priorTrustLevel = reader.int32();
525
+ break;
526
+ case 9:
527
+ message.priorInvitationCredits = reader.uint32();
528
+ break;
529
+ case 10:
530
+ message.burnedDream = reader.string();
531
+ break;
532
+ case 11:
533
+ message.zeroedCount = reader.uint32();
534
+ break;
535
+ case 12:
536
+ message.appealed = reader.bool();
537
+ break;
538
+ case 13:
539
+ message.appealId = reader.uint64();
540
+ break;
541
+ default:
542
+ reader.skipType(tag & 7);
543
+ break;
544
+ }
545
+ }
546
+ return message;
547
+ },
548
+ fromPartial(object) {
549
+ const message = createBaseMemberActionRestoration();
550
+ message.member = object.member ?? "";
551
+ message.action = object.action ?? 0;
552
+ message.resolvedAt = object.resolvedAt !== undefined && object.resolvedAt !== null ? BigInt(object.resolvedAt.toString()) : BigInt(0);
553
+ message.season = object.season !== undefined && object.season !== null ? BigInt(object.season.toString()) : BigInt(0);
554
+ message.warningId = object.warningId !== undefined && object.warningId !== null ? BigInt(object.warningId.toString()) : BigInt(0);
555
+ message.reputation = Object.entries(object.reputation ?? {}).reduce((acc, [key, value]) => {
556
+ if (value !== undefined) {
557
+ acc[key] = String(value);
558
+ }
559
+ return acc;
560
+ }, {});
561
+ message.priorStatus = object.priorStatus ?? 0;
562
+ message.priorTrustLevel = object.priorTrustLevel ?? 0;
563
+ message.priorInvitationCredits = object.priorInvitationCredits ?? 0;
564
+ message.burnedDream = object.burnedDream ?? "";
565
+ message.zeroedCount = object.zeroedCount ?? 0;
566
+ message.appealed = object.appealed ?? false;
567
+ message.appealId = object.appealId !== undefined && object.appealId !== null ? BigInt(object.appealId.toString()) : BigInt(0);
568
+ return message;
569
+ },
570
+ fromAmino(object) {
571
+ const message = createBaseMemberActionRestoration();
572
+ if (object.member !== undefined && object.member !== null) {
573
+ message.member = object.member;
574
+ }
575
+ if (object.action !== undefined && object.action !== null) {
576
+ message.action = object.action;
577
+ }
578
+ if (object.resolved_at !== undefined && object.resolved_at !== null) {
579
+ message.resolvedAt = BigInt(object.resolved_at);
580
+ }
581
+ if (object.season !== undefined && object.season !== null) {
582
+ message.season = BigInt(object.season);
583
+ }
584
+ if (object.warning_id !== undefined && object.warning_id !== null) {
585
+ message.warningId = BigInt(object.warning_id);
586
+ }
587
+ message.reputation = Object.entries(object.reputation ?? {}).reduce((acc, [key, value]) => {
588
+ if (value !== undefined) {
589
+ acc[key] = String(value);
590
+ }
591
+ return acc;
592
+ }, {});
593
+ if (object.prior_status !== undefined && object.prior_status !== null) {
594
+ message.priorStatus = object.prior_status;
595
+ }
596
+ if (object.prior_trust_level !== undefined && object.prior_trust_level !== null) {
597
+ message.priorTrustLevel = object.prior_trust_level;
598
+ }
599
+ if (object.prior_invitation_credits !== undefined && object.prior_invitation_credits !== null) {
600
+ message.priorInvitationCredits = object.prior_invitation_credits;
601
+ }
602
+ if (object.burned_dream !== undefined && object.burned_dream !== null) {
603
+ message.burnedDream = object.burned_dream;
604
+ }
605
+ if (object.zeroed_count !== undefined && object.zeroed_count !== null) {
606
+ message.zeroedCount = object.zeroed_count;
607
+ }
608
+ if (object.appealed !== undefined && object.appealed !== null) {
609
+ message.appealed = object.appealed;
610
+ }
611
+ if (object.appeal_id !== undefined && object.appeal_id !== null) {
612
+ message.appealId = BigInt(object.appeal_id);
613
+ }
614
+ return message;
615
+ },
616
+ toAmino(message) {
617
+ const obj = {};
618
+ obj.member = message.member === "" ? undefined : message.member;
619
+ obj.action = message.action === 0 ? undefined : message.action;
620
+ obj.resolved_at = message.resolvedAt !== BigInt(0) ? message.resolvedAt?.toString() : undefined;
621
+ obj.season = message.season !== BigInt(0) ? message.season?.toString() : undefined;
622
+ obj.warning_id = message.warningId !== BigInt(0) ? message.warningId?.toString() : undefined;
623
+ obj.reputation = {};
624
+ if (message.reputation) {
625
+ Object.entries(message.reputation).forEach(([k, v]) => {
626
+ obj.reputation[k] = v;
627
+ });
628
+ }
629
+ obj.prior_status = message.priorStatus === 0 ? undefined : message.priorStatus;
630
+ obj.prior_trust_level = message.priorTrustLevel === 0 ? undefined : message.priorTrustLevel;
631
+ obj.prior_invitation_credits = message.priorInvitationCredits === 0 ? undefined : message.priorInvitationCredits;
632
+ obj.burned_dream = message.burnedDream === "" ? undefined : message.burnedDream;
633
+ obj.zeroed_count = message.zeroedCount === 0 ? undefined : message.zeroedCount;
634
+ obj.appealed = message.appealed === false ? undefined : message.appealed;
635
+ obj.appeal_id = message.appealId !== BigInt(0) ? message.appealId?.toString() : undefined;
636
+ return obj;
637
+ },
638
+ fromAminoMsg(object) {
639
+ return exports.MemberActionRestoration.fromAmino(object.value);
640
+ },
641
+ fromProtoMsg(message) {
642
+ return exports.MemberActionRestoration.decode(message.value);
643
+ },
644
+ toProto(message) {
645
+ return exports.MemberActionRestoration.encode(message).finish();
646
+ },
647
+ toProtoMsg(message) {
648
+ return {
649
+ typeUrl: "/sparkdream.rep.v1.MemberActionRestoration",
650
+ value: exports.MemberActionRestoration.encode(message).finish()
651
+ };
652
+ }
653
+ };
@@ -45,7 +45,8 @@ export declare enum MigrationStatus {
45
45
  MIGRATION_STATUS_ACCEPTED = 2,
46
46
  /**
47
47
  * MIGRATION_STATUS_OBJECTED - OBJECTED: (COUNCIL path) the old address objected during the delay and
48
- * a jury review decides. The queue entry is removed until the verdict.
48
+ * a jury review decides. The queue entry is removed until the verdict. An
49
+ * inconclusive jury escalates the objection to x/gov (escalated_until).
49
50
  */
50
51
  MIGRATION_STATUS_OBJECTED = 3,
51
52
  /** MIGRATION_STATUS_FINALIZED - FINALIZED: the identity moved; the old address is a tombstone. */
@@ -119,6 +120,22 @@ export interface MemberMigration {
119
120
  * finalized_at is the block time of finalization (0 until then).
120
121
  */
121
122
  finalizedAt: bigint;
123
+ /**
124
+ * accept_by is the block time by which the new address must accept
125
+ * (requested_at + migration_accept_window at request time). Stored so the
126
+ * accept-expiry queue key never drifts when the param changes.
127
+ */
128
+ acceptBy: bigint;
129
+ /**
130
+ * escalated_until is set (COUNCIL path) when the objection jury reached no
131
+ * verdict (INCONCLUSIVE, including a jury that could not be seated). The
132
+ * objection is escalated to x/gov: the migration stays OBJECTED and the
133
+ * bond stays locked until governance cancels the migration (objection
134
+ * upheld, bond refunded) or re-forces it (objection rejected, bond paid to
135
+ * to_address). If governance has not decided by this block time the
136
+ * objection is rejected. 0 when not escalated.
137
+ */
138
+ escalatedUntil: bigint;
122
139
  }
123
140
  export interface MemberMigrationProtoMsg {
124
141
  typeUrl: "/sparkdream.rep.v1.MemberMigration";
@@ -176,6 +193,22 @@ export interface MemberMigrationAmino {
176
193
  * finalized_at is the block time of finalization (0 until then).
177
194
  */
178
195
  finalized_at?: string;
196
+ /**
197
+ * accept_by is the block time by which the new address must accept
198
+ * (requested_at + migration_accept_window at request time). Stored so the
199
+ * accept-expiry queue key never drifts when the param changes.
200
+ */
201
+ accept_by?: string;
202
+ /**
203
+ * escalated_until is set (COUNCIL path) when the objection jury reached no
204
+ * verdict (INCONCLUSIVE, including a jury that could not be seated). The
205
+ * objection is escalated to x/gov: the migration stays OBJECTED and the
206
+ * bond stays locked until governance cancels the migration (objection
207
+ * upheld, bond refunded) or re-forces it (objection rejected, bond paid to
208
+ * to_address). If governance has not decided by this block time the
209
+ * objection is rejected. 0 when not escalated.
210
+ */
211
+ escalated_until?: string;
179
212
  }
180
213
  export interface MemberMigrationAminoMsg {
181
214
  type: "/sparkdream.rep.v1.MemberMigration";