@sparkdreamnft/sparkdreamjs 0.0.43 → 0.0.45

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 (232) hide show
  1. package/akash/bundle.d.ts +134 -134
  2. package/akash/bundle.js +150 -150
  3. package/cosmos/bundle.d.ts +160 -160
  4. package/cosmos/bundle.js +182 -182
  5. package/esm/akash/bundle.js +150 -150
  6. package/esm/cosmos/bundle.js +182 -182
  7. package/esm/ibc/bundle.js +116 -116
  8. package/esm/sparkdream/artifact/module/v1/module.js +71 -0
  9. package/esm/sparkdream/artifact/v1/genesis.js +279 -0
  10. package/esm/sparkdream/artifact/v1/params.js +645 -0
  11. package/esm/sparkdream/artifact/v1/query.js +3415 -0
  12. package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
  13. package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
  14. package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
  15. package/esm/sparkdream/artifact/v1/tx.js +5751 -0
  16. package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
  17. package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
  18. package/esm/sparkdream/artifact/v1/types.js +2603 -0
  19. package/esm/sparkdream/blog/v1/params.js +37 -1
  20. package/esm/sparkdream/blog/v1/post.js +38 -1
  21. package/esm/sparkdream/blog/v1/query.js +351 -0
  22. package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
  23. package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
  24. package/esm/sparkdream/blog/v1/types.js +38 -1
  25. package/esm/sparkdream/bundle.js +521 -483
  26. package/esm/sparkdream/client.js +4 -1
  27. package/esm/sparkdream/collect/v1/params.js +102 -126
  28. package/esm/sparkdream/collect/v1/types.js +207 -123
  29. package/esm/sparkdream/common/v1/media_flag.js +63 -0
  30. package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
  31. package/esm/sparkdream/commons/v1/query.js +27 -3
  32. package/esm/sparkdream/federation/v1/packet.js +13 -1
  33. package/esm/sparkdream/federation/v1/query.js +163 -0
  34. package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
  35. package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
  36. package/esm/sparkdream/federation/v1/tx.js +13 -1
  37. package/esm/sparkdream/federation/v1/types.js +37 -1
  38. package/esm/sparkdream/forum/v1/params.js +37 -1
  39. package/esm/sparkdream/forum/v1/post.js +38 -1
  40. package/esm/sparkdream/forum/v1/query.js +176 -0
  41. package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
  42. package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
  43. package/esm/sparkdream/lcd.js +5 -0
  44. package/esm/sparkdream/name/v1/genesis.js +32 -2
  45. package/esm/sparkdream/rep/v1/accountability.js +22 -0
  46. package/esm/sparkdream/rep/v1/genesis.js +18 -2
  47. package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
  48. package/esm/sparkdream/rep/v1/member.js +97 -35
  49. package/esm/sparkdream/rep/v1/params.js +198 -66
  50. package/esm/sparkdream/rep/v1/query.js +530 -0
  51. package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
  52. package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
  53. package/esm/sparkdream/rep/v1/tx.js +499 -7
  54. package/esm/sparkdream/rep/v1/tx.registry.js +56 -2
  55. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +21 -1
  56. package/esm/sparkdream/rpc.query.js +3 -0
  57. package/esm/sparkdream/rpc.tx.js +3 -0
  58. package/esm/sparkdream/season/v1/tx.js +33 -2
  59. package/esm/sparkdream/service/v1/checkpoint.js +125 -0
  60. package/esm/sparkdream/service/v1/genesis.js +17 -1
  61. package/esm/sparkdream/service/v1/operator.js +25 -1
  62. package/esm/sparkdream/service/v1/query.js +317 -0
  63. package/esm/sparkdream/service/v1/query.lcd.js +18 -0
  64. package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
  65. package/esm/sparkdream/service/v1/service_type_config.js +37 -1
  66. package/esm/sparkdream/service/v1/tx.amino.js +11 -1
  67. package/esm/sparkdream/service/v1/tx.js +332 -0
  68. package/esm/sparkdream/service/v1/tx.registry.js +38 -2
  69. package/esm/sparkdream/service/v1/tx.rpc.msg.js +20 -1
  70. package/esm/sparkdream/session/v1/grant.js +98 -6
  71. package/esm/sparkdream/session/v1/tx.amino.js +3 -0
  72. package/esm/sparkdream/session/v1/tx.js +15 -3
  73. package/esm/sparkdream/session/v1/tx.rpc.msg.js +2 -2
  74. package/esm/sparkdream/shield/v1/genesis.js +32 -2
  75. package/esm/sparkdream/shield/v1/params.js +25 -1
  76. package/esm/sparkdream/shield/v1/query.js +13 -1
  77. package/esm/sparkdream/shield/v1/types.js +480 -16
  78. package/esm/sparkdream/sparkdream/v1/query.js +176 -0
  79. package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
  80. package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
  81. package/esm/tendermint/bundle.js +20 -20
  82. package/ibc/bundle.d.ts +99 -99
  83. package/ibc/bundle.js +116 -116
  84. package/package.json +1 -1
  85. package/sparkdream/artifact/module/v1/module.d.ts +54 -0
  86. package/sparkdream/artifact/module/v1/module.js +74 -0
  87. package/sparkdream/artifact/v1/genesis.d.ts +88 -0
  88. package/sparkdream/artifact/v1/genesis.js +282 -0
  89. package/sparkdream/artifact/v1/params.d.ts +251 -0
  90. package/sparkdream/artifact/v1/params.js +648 -0
  91. package/sparkdream/artifact/v1/query.d.ts +1986 -0
  92. package/sparkdream/artifact/v1/query.js +3418 -0
  93. package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
  94. package/sparkdream/artifact/v1/query.lcd.js +163 -0
  95. package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
  96. package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
  97. package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
  98. package/sparkdream/artifact/v1/tx.amino.js +162 -0
  99. package/sparkdream/artifact/v1/tx.d.ts +3268 -0
  100. package/sparkdream/artifact/v1/tx.js +5755 -0
  101. package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
  102. package/sparkdream/artifact/v1/tx.registry.js +577 -0
  103. package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
  104. package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
  105. package/sparkdream/artifact/v1/types.d.ts +1157 -0
  106. package/sparkdream/artifact/v1/types.js +2620 -0
  107. package/sparkdream/blog/v1/params.d.ts +46 -0
  108. package/sparkdream/blog/v1/params.js +37 -1
  109. package/sparkdream/blog/v1/post.d.ts +24 -0
  110. package/sparkdream/blog/v1/post.js +38 -1
  111. package/sparkdream/blog/v1/query.d.ts +195 -0
  112. package/sparkdream/blog/v1/query.js +352 -1
  113. package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
  114. package/sparkdream/blog/v1/query.lcd.js +12 -0
  115. package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
  116. package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
  117. package/sparkdream/blog/v1/types.d.ts +24 -0
  118. package/sparkdream/blog/v1/types.js +38 -1
  119. package/sparkdream/bundle.d.ts +20666 -17863
  120. package/sparkdream/bundle.js +521 -483
  121. package/sparkdream/client.d.ts +165 -0
  122. package/sparkdream/client.js +4 -1
  123. package/sparkdream/collect/v1/params.d.ts +0 -4
  124. package/sparkdream/collect/v1/params.js +102 -126
  125. package/sparkdream/collect/v1/types.d.ts +80 -4
  126. package/sparkdream/collect/v1/types.js +207 -123
  127. package/sparkdream/common/v1/media_flag.d.ts +23 -0
  128. package/sparkdream/common/v1/media_flag.js +68 -0
  129. package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
  130. package/sparkdream/common/v1/moderation_reason.js +1 -1
  131. package/sparkdream/commons/v1/query.d.ts +19 -1
  132. package/sparkdream/commons/v1/query.js +26 -2
  133. package/sparkdream/federation/v1/packet.d.ts +14 -0
  134. package/sparkdream/federation/v1/packet.js +13 -1
  135. package/sparkdream/federation/v1/query.d.ts +92 -0
  136. package/sparkdream/federation/v1/query.js +164 -1
  137. package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
  138. package/sparkdream/federation/v1/query.lcd.js +7 -0
  139. package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
  140. package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
  141. package/sparkdream/federation/v1/tx.d.ts +18 -0
  142. package/sparkdream/federation/v1/tx.js +13 -1
  143. package/sparkdream/federation/v1/types.d.ts +34 -0
  144. package/sparkdream/federation/v1/types.js +37 -1
  145. package/sparkdream/forum/v1/params.d.ts +46 -0
  146. package/sparkdream/forum/v1/params.js +37 -1
  147. package/sparkdream/forum/v1/post.d.ts +30 -0
  148. package/sparkdream/forum/v1/post.js +38 -1
  149. package/sparkdream/forum/v1/query.d.ts +98 -0
  150. package/sparkdream/forum/v1/query.js +177 -1
  151. package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
  152. package/sparkdream/forum/v1/query.lcd.js +7 -0
  153. package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
  154. package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
  155. package/sparkdream/lcd.d.ts +3 -0
  156. package/sparkdream/lcd.js +5 -0
  157. package/sparkdream/name/v1/genesis.d.ts +23 -1
  158. package/sparkdream/name/v1/genesis.js +31 -1
  159. package/sparkdream/rep/v1/accountability.d.ts +12 -0
  160. package/sparkdream/rep/v1/accountability.js +22 -0
  161. package/sparkdream/rep/v1/genesis.d.ts +18 -7
  162. package/sparkdream/rep/v1/genesis.js +18 -2
  163. package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
  164. package/sparkdream/rep/v1/initiative_bounty.js +203 -0
  165. package/sparkdream/rep/v1/member.d.ts +82 -28
  166. package/sparkdream/rep/v1/member.js +97 -35
  167. package/sparkdream/rep/v1/params.d.ts +144 -28
  168. package/sparkdream/rep/v1/params.js +198 -66
  169. package/sparkdream/rep/v1/query.d.ts +315 -10
  170. package/sparkdream/rep/v1/query.js +531 -1
  171. package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
  172. package/sparkdream/rep/v1/query.lcd.js +23 -0
  173. package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
  174. package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
  175. package/sparkdream/rep/v1/tx.d.ts +338 -1
  176. package/sparkdream/rep/v1/tx.js +500 -8
  177. package/sparkdream/rep/v1/tx.registry.d.ts +37 -1
  178. package/sparkdream/rep/v1/tx.registry.js +55 -1
  179. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +14 -1
  180. package/sparkdream/rep/v1/tx.rpc.msg.js +20 -0
  181. package/sparkdream/rpc.query.d.ts +32 -0
  182. package/sparkdream/rpc.query.js +3 -0
  183. package/sparkdream/rpc.tx.d.ts +3 -0
  184. package/sparkdream/rpc.tx.js +3 -0
  185. package/sparkdream/season/v1/tx.d.ts +19 -0
  186. package/sparkdream/season/v1/tx.js +33 -2
  187. package/sparkdream/service/v1/checkpoint.d.ts +93 -0
  188. package/sparkdream/service/v1/checkpoint.js +128 -0
  189. package/sparkdream/service/v1/genesis.d.ts +15 -0
  190. package/sparkdream/service/v1/genesis.js +17 -1
  191. package/sparkdream/service/v1/operator.d.ts +30 -0
  192. package/sparkdream/service/v1/operator.js +25 -1
  193. package/sparkdream/service/v1/query.d.ts +186 -0
  194. package/sparkdream/service/v1/query.js +318 -1
  195. package/sparkdream/service/v1/query.lcd.d.ts +3 -1
  196. package/sparkdream/service/v1/query.lcd.js +18 -0
  197. package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
  198. package/sparkdream/service/v1/query.rpc.Query.js +20 -0
  199. package/sparkdream/service/v1/service_type_config.d.ts +48 -0
  200. package/sparkdream/service/v1/service_type_config.js +37 -1
  201. package/sparkdream/service/v1/tx.amino.d.ts +11 -1
  202. package/sparkdream/service/v1/tx.amino.js +10 -0
  203. package/sparkdream/service/v1/tx.d.ts +216 -0
  204. package/sparkdream/service/v1/tx.js +333 -1
  205. package/sparkdream/service/v1/tx.registry.d.ts +25 -1
  206. package/sparkdream/service/v1/tx.registry.js +37 -1
  207. package/sparkdream/service/v1/tx.rpc.msg.d.ts +18 -1
  208. package/sparkdream/service/v1/tx.rpc.msg.js +19 -0
  209. package/sparkdream/session/v1/grant.d.ts +75 -7
  210. package/sparkdream/session/v1/grant.js +99 -7
  211. package/sparkdream/session/v1/tx.amino.js +3 -0
  212. package/sparkdream/session/v1/tx.d.ts +6 -4
  213. package/sparkdream/session/v1/tx.js +14 -2
  214. package/sparkdream/session/v1/tx.rpc.msg.d.ts +2 -2
  215. package/sparkdream/session/v1/tx.rpc.msg.js +2 -2
  216. package/sparkdream/shield/v1/genesis.d.ts +17 -1
  217. package/sparkdream/shield/v1/genesis.js +31 -1
  218. package/sparkdream/shield/v1/params.d.ts +32 -4
  219. package/sparkdream/shield/v1/params.js +25 -1
  220. package/sparkdream/shield/v1/query.d.ts +8 -0
  221. package/sparkdream/shield/v1/query.js +13 -1
  222. package/sparkdream/shield/v1/tx.d.ts +36 -10
  223. package/sparkdream/shield/v1/types.d.ts +337 -13
  224. package/sparkdream/shield/v1/types.js +483 -17
  225. package/sparkdream/sparkdream/v1/query.d.ts +132 -0
  226. package/sparkdream/sparkdream/v1/query.js +177 -1
  227. package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
  228. package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
  229. package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
  230. package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
  231. package/tendermint/bundle.d.ts +844 -844
  232. package/tendermint/bundle.js +20 -20
@@ -26,6 +26,23 @@ export declare enum NullifierScopeType {
26
26
  export declare const NullifierScopeTypeAmino: typeof NullifierScopeType;
27
27
  export declare function nullifierScopeTypeFromJSON(object: any): NullifierScopeType;
28
28
  export declare function nullifierScopeTypeToJSON(object: NullifierScopeType): string;
29
+ /** NullifierMode controls what an operation's nullifier proves. */
30
+ export declare enum NullifierMode {
31
+ /** NULLIFIER_MODE_CONSUME - The nullifier is consumed: each (member, scope) acts once. */
32
+ NULLIFIER_MODE_CONSUME = 0,
33
+ /**
34
+ * NULLIFIER_MODE_OWNERSHIP - The nullifier proves ownership of anonymously created content and is
35
+ * reused: the target module's ShieldOwnershipResolver supplies the owner's
36
+ * domain, scope and tag (the creation nullifier), the proof must reproduce
37
+ * the tag, and the owner's sequence (bound into the message hash) stops
38
+ * replays. Immediate mode only.
39
+ */
40
+ NULLIFIER_MODE_OWNERSHIP = 1,
41
+ UNRECOGNIZED = -1
42
+ }
43
+ export declare const NullifierModeAmino: typeof NullifierMode;
44
+ export declare function nullifierModeFromJSON(object: any): NullifierMode;
45
+ export declare function nullifierModeToJSON(object: NullifierMode): string;
29
46
  /** ShieldBatchMode controls which execution modes an operation supports. */
30
47
  export declare enum ShieldBatchMode {
31
48
  /** SHIELD_BATCH_MODE_IMMEDIATE_ONLY - Only immediate execution allowed */
@@ -56,8 +73,19 @@ export declare enum DKGPhase {
56
73
  DKG_PHASE_REGISTERING = 1,
57
74
  /** DKG_PHASE_CONTRIBUTING - Key registration closed; accepting Feldman DKG contributions */
58
75
  DKG_PHASE_CONTRIBUTING = 2,
59
- /** DKG_PHASE_ACTIVE - DKG complete, master key available, encrypted batch enabled */
76
+ /** DKG_PHASE_ACTIVE - DKG complete, master key available */
60
77
  DKG_PHASE_ACTIVE = 3,
78
+ /**
79
+ * DKG_PHASE_COMPLAINING - Contributions closed; validators report dealers whose evaluation for
80
+ * them is missing, undecryptable or inconsistent with the commitments
81
+ */
82
+ DKG_PHASE_COMPLAINING = 4,
83
+ /**
84
+ * DKG_PHASE_JUSTIFYING - Complaints closed; accused dealers publish the disputed evaluations in
85
+ * clear. A dealer with an unjustified complaint at the deadline is
86
+ * disqualified from the key set.
87
+ */
88
+ DKG_PHASE_JUSTIFYING = 5,
61
89
  UNRECOGNIZED = -1
62
90
  }
63
91
  export declare const DKGPhaseAmino: typeof DKGPhase;
@@ -104,6 +132,20 @@ export interface ShieldedOpRegistration {
104
132
  * Must refer to a uint64 field in the inner message
105
133
  */
106
134
  scopeFieldPath: string;
135
+ /**
136
+ * What the nullifier proves: a consumed one-time action (default) or
137
+ * ownership of anonymously created content. OWNERSHIP ignores
138
+ * nullifier_scope_type and scope_field_path (the target module supplies the
139
+ * owner's scope) and requires batch_mode IMMEDIATE_ONLY.
140
+ */
141
+ nullifierMode: NullifierMode;
142
+ /**
143
+ * For NULLIFIER_SCOPE_EPOCH: the scope is current_epoch / epoch_window, so
144
+ * each member gets one action per window of this many shield epochs instead
145
+ * of one per epoch. 0 or 1 = every epoch. Must be 0 or 1 for other scope
146
+ * types and for ownership ops.
147
+ */
148
+ epochWindow: bigint;
107
149
  }
108
150
  export interface ShieldedOpRegistrationProtoMsg {
109
151
  typeUrl: "/sparkdream.shield.v1.ShieldedOpRegistration";
@@ -150,6 +192,20 @@ export interface ShieldedOpRegistrationAmino {
150
192
  * Must refer to a uint64 field in the inner message
151
193
  */
152
194
  scope_field_path?: string;
195
+ /**
196
+ * What the nullifier proves: a consumed one-time action (default) or
197
+ * ownership of anonymously created content. OWNERSHIP ignores
198
+ * nullifier_scope_type and scope_field_path (the target module supplies the
199
+ * owner's scope) and requires batch_mode IMMEDIATE_ONLY.
200
+ */
201
+ nullifier_mode?: NullifierMode;
202
+ /**
203
+ * For NULLIFIER_SCOPE_EPOCH: the scope is current_epoch / epoch_window, so
204
+ * each member gets one action per window of this many shield epochs instead
205
+ * of one per epoch. 0 or 1 = every epoch. Must be 0 or 1 for other scope
206
+ * types and for ownership ops.
207
+ */
208
+ epoch_window?: string;
153
209
  }
154
210
  export interface ShieldedOpRegistrationAminoMsg {
155
211
  type: "/sparkdream.shield.v1.ShieldedOpRegistration";
@@ -191,7 +247,7 @@ export interface UsedNullifierAminoMsg {
191
247
  }
192
248
  /**
193
249
  * DayFunding tracks funding per day to enforce the daily cap.
194
- * Day is calculated as block_height / 14400 (at 6s/block = 1 day).
250
+ * Day is the UTC day of the block time (block_time / 86400).
195
251
  * @name DayFunding
196
252
  * @package sparkdream.shield.v1
197
253
  * @see proto type: sparkdream.shield.v1.DayFunding
@@ -206,7 +262,7 @@ export interface DayFundingProtoMsg {
206
262
  }
207
263
  /**
208
264
  * DayFunding tracks funding per day to enforce the daily cap.
209
- * Day is calculated as block_height / 14400 (at 6s/block = 1 day).
265
+ * Day is the UTC day of the block time (block_time / 86400).
210
266
  * @name DayFundingAmino
211
267
  * @package sparkdream.shield.v1
212
268
  * @see proto type: sparkdream.shield.v1.DayFunding
@@ -220,7 +276,8 @@ export interface DayFundingAminoMsg {
220
276
  value: DayFundingAmino;
221
277
  }
222
278
  /**
223
- * PendingShieldedOp is stored in queue until the shield epoch boundary triggers batch execution.
279
+ * PendingShieldedOp is stored in queue until its epoch has closed, its batch was
280
+ * demanded and the epoch key exists; it then executes in that block.
224
281
  * @name PendingShieldedOp
225
282
  * @package sparkdream.shield.v1
226
283
  * @see proto type: sparkdream.shield.v1.PendingShieldedOp
@@ -228,20 +285,32 @@ export interface DayFundingAminoMsg {
228
285
  export interface PendingShieldedOp {
229
286
  id: bigint;
230
287
  targetEpoch: bigint;
231
- nullifier: Uint8Array;
288
+ /**
289
+ * Submission nullifier proven at submission: MiMC(secret, ScopeElement(
290
+ * BatchSubmissionDomain, BatchSubmissionScope(encrypted_payload))). One per
291
+ * payload and member; it deduplicates submissions and is unrelated to the
292
+ * operation's own nullifier, which travels inside the ciphertext.
293
+ */
294
+ submissionNullifier: Uint8Array;
232
295
  merkleRoot: Uint8Array;
233
296
  proofDomain: ProofDomain;
234
297
  minTrustLevel: number;
235
298
  encryptedPayload: Uint8Array;
236
299
  submittedAtHeight: bigint;
237
300
  submittedAtEpoch: bigint;
301
+ /**
302
+ * Rate-limit nullifier proven by the submission proof (same member, same
303
+ * epoch); the decrypted operation proof must reproduce it.
304
+ */
305
+ rateLimitNullifier: Uint8Array;
238
306
  }
239
307
  export interface PendingShieldedOpProtoMsg {
240
308
  typeUrl: "/sparkdream.shield.v1.PendingShieldedOp";
241
309
  value: Uint8Array;
242
310
  }
243
311
  /**
244
- * PendingShieldedOp is stored in queue until the shield epoch boundary triggers batch execution.
312
+ * PendingShieldedOp is stored in queue until its epoch has closed, its batch was
313
+ * demanded and the epoch key exists; it then executes in that block.
245
314
  * @name PendingShieldedOpAmino
246
315
  * @package sparkdream.shield.v1
247
316
  * @see proto type: sparkdream.shield.v1.PendingShieldedOp
@@ -249,13 +318,24 @@ export interface PendingShieldedOpProtoMsg {
249
318
  export interface PendingShieldedOpAmino {
250
319
  id?: string;
251
320
  target_epoch?: string;
252
- nullifier?: string;
321
+ /**
322
+ * Submission nullifier proven at submission: MiMC(secret, ScopeElement(
323
+ * BatchSubmissionDomain, BatchSubmissionScope(encrypted_payload))). One per
324
+ * payload and member; it deduplicates submissions and is unrelated to the
325
+ * operation's own nullifier, which travels inside the ciphertext.
326
+ */
327
+ submission_nullifier?: string;
253
328
  merkle_root?: string;
254
329
  proof_domain?: ProofDomain;
255
330
  min_trust_level?: number;
256
331
  encrypted_payload?: string;
257
332
  submitted_at_height?: string;
258
333
  submitted_at_epoch?: string;
334
+ /**
335
+ * Rate-limit nullifier proven by the submission proof (same member, same
336
+ * epoch); the decrypted operation proof must reproduce it.
337
+ */
338
+ rate_limit_nullifier?: string;
259
339
  }
260
340
  export interface PendingShieldedOpAminoMsg {
261
341
  type: "/sparkdream.shield.v1.PendingShieldedOp";
@@ -384,6 +464,12 @@ export interface TLEKeySet {
384
464
  thresholdDenominator: bigint;
385
465
  validatorShares: TLEValidatorPublicShare[];
386
466
  createdAtHeight: bigint;
467
+ /**
468
+ * BN256 G2 point s*G2: what clients encrypt to (tools/tle). The G1 key
469
+ * above cannot be encrypted to on a type-3 pairing; it stays for share
470
+ * bookkeeping.
471
+ */
472
+ masterPublicKeyG2: Uint8Array;
387
473
  }
388
474
  export interface TLEKeySetProtoMsg {
389
475
  typeUrl: "/sparkdream.shield.v1.TLEKeySet";
@@ -410,6 +496,12 @@ export interface TLEKeySetAmino {
410
496
  threshold_denominator?: string;
411
497
  validator_shares?: TLEValidatorPublicShareAmino[];
412
498
  created_at_height?: string;
499
+ /**
500
+ * BN256 G2 point s*G2: what clients encrypt to (tools/tle). The G1 key
501
+ * above cannot be encrypted to on a type-3 pairing; it stays for share
502
+ * bookkeeping.
503
+ */
504
+ master_public_key_g2?: string;
413
505
  }
414
506
  export interface TLEKeySetAminoMsg {
415
507
  type: "/sparkdream.shield.v1.TLEKeySet";
@@ -498,13 +590,29 @@ export interface DKGState {
498
590
  thresholdNumerator: bigint;
499
591
  thresholdDenominator: bigint;
500
592
  /**
501
- * Snapshot of bonded validator addresses at DKG start
593
+ * DKG participants, 1-based Shamir index = position + 1. Snapshot of the
594
+ * bonded set at open; narrowed to the validators that registered a key
595
+ * when CONTRIBUTING starts (a validator without a registered key could
596
+ * never receive its evaluations).
502
597
  */
503
598
  expectedValidators: string[];
504
599
  /**
505
600
  * Number of contributions received so far
506
601
  */
507
602
  contributionsReceived: bigint;
603
+ /**
604
+ * Block height when COMPLAINING ends and JUSTIFYING starts
605
+ */
606
+ complaintDeadline: bigint;
607
+ /**
608
+ * Block height when JUSTIFYING ends and the key set is aggregated
609
+ */
610
+ justificationDeadline: bigint;
611
+ /**
612
+ * Dealers excluded from aggregation: a complaint against them stood
613
+ * unjustified at the justification deadline.
614
+ */
615
+ disqualifiedDealers: string[];
508
616
  }
509
617
  export interface DKGStateProtoMsg {
510
618
  typeUrl: "/sparkdream.shield.v1.DKGState";
@@ -543,13 +651,29 @@ export interface DKGStateAmino {
543
651
  threshold_numerator?: string;
544
652
  threshold_denominator?: string;
545
653
  /**
546
- * Snapshot of bonded validator addresses at DKG start
654
+ * DKG participants, 1-based Shamir index = position + 1. Snapshot of the
655
+ * bonded set at open; narrowed to the validators that registered a key
656
+ * when CONTRIBUTING starts (a validator without a registered key could
657
+ * never receive its evaluations).
547
658
  */
548
659
  expected_validators?: string[];
549
660
  /**
550
661
  * Number of contributions received so far
551
662
  */
552
663
  contributions_received?: string;
664
+ /**
665
+ * Block height when COMPLAINING ends and JUSTIFYING starts
666
+ */
667
+ complaint_deadline?: string;
668
+ /**
669
+ * Block height when JUSTIFYING ends and the key set is aggregated
670
+ */
671
+ justification_deadline?: string;
672
+ /**
673
+ * Dealers excluded from aggregation: a complaint against them stood
674
+ * unjustified at the justification deadline.
675
+ */
676
+ disqualified_dealers?: string[];
553
677
  }
554
678
  export interface DKGStateAminoMsg {
555
679
  type: "/sparkdream.shield.v1.DKGState";
@@ -758,6 +882,18 @@ export interface DKGVoteExtension {
758
882
  * Epoch decryption share: secret_share_i * H_to_G1(epoch)
759
883
  */
760
884
  decryptionShare: Uint8Array;
885
+ /**
886
+ * --- COMPLAINING phase data ---
887
+ * 1-based indices of dealers whose evaluation for this validator is
888
+ * missing, does not decrypt, or does not match their commitments
889
+ */
890
+ complaints: number[];
891
+ /**
892
+ * --- JUSTIFYING phase data ---
893
+ * The dealer's answers to complaints against it: the disputed evaluations
894
+ * in clear, verifiable against its Feldman commitments
895
+ */
896
+ justifications: DKGJustification[];
761
897
  }
762
898
  export interface DKGVoteExtensionProtoMsg {
763
899
  typeUrl: "/sparkdream.shield.v1.DKGVoteExtension";
@@ -814,11 +950,105 @@ export interface DKGVoteExtensionAmino {
814
950
  * Epoch decryption share: secret_share_i * H_to_G1(epoch)
815
951
  */
816
952
  decryption_share?: string;
953
+ /**
954
+ * --- COMPLAINING phase data ---
955
+ * 1-based indices of dealers whose evaluation for this validator is
956
+ * missing, does not decrypt, or does not match their commitments
957
+ */
958
+ complaints?: number[];
959
+ /**
960
+ * --- JUSTIFYING phase data ---
961
+ * The dealer's answers to complaints against it: the disputed evaluations
962
+ * in clear, verifiable against its Feldman commitments
963
+ */
964
+ justifications?: DKGJustificationAmino[];
817
965
  }
818
966
  export interface DKGVoteExtensionAminoMsg {
819
967
  type: "/sparkdream.shield.v1.DKGVoteExtension";
820
968
  value: DKGVoteExtensionAmino;
821
969
  }
970
+ /**
971
+ * DKGJustification is a dealer's public answer to a complaint: p_i(j) for the
972
+ * complaining validator j, which anyone checks against the dealer's Feldman
973
+ * commitments.
974
+ * @name DKGJustification
975
+ * @package sparkdream.shield.v1
976
+ * @see proto type: sparkdream.shield.v1.DKGJustification
977
+ */
978
+ export interface DKGJustification {
979
+ /**
980
+ * 1-based index of the complaining validator
981
+ */
982
+ complainerIndex: number;
983
+ /**
984
+ * p_i(complainer_index) as a BN256 scalar
985
+ */
986
+ evaluation: Uint8Array;
987
+ }
988
+ export interface DKGJustificationProtoMsg {
989
+ typeUrl: "/sparkdream.shield.v1.DKGJustification";
990
+ value: Uint8Array;
991
+ }
992
+ /**
993
+ * DKGJustification is a dealer's public answer to a complaint: p_i(j) for the
994
+ * complaining validator j, which anyone checks against the dealer's Feldman
995
+ * commitments.
996
+ * @name DKGJustificationAmino
997
+ * @package sparkdream.shield.v1
998
+ * @see proto type: sparkdream.shield.v1.DKGJustification
999
+ */
1000
+ export interface DKGJustificationAmino {
1001
+ /**
1002
+ * 1-based index of the complaining validator
1003
+ */
1004
+ complainer_index?: number;
1005
+ /**
1006
+ * p_i(complainer_index) as a BN256 scalar
1007
+ */
1008
+ evaluation?: string;
1009
+ }
1010
+ export interface DKGJustificationAminoMsg {
1011
+ type: "/sparkdream.shield.v1.DKGJustification";
1012
+ value: DKGJustificationAmino;
1013
+ }
1014
+ /**
1015
+ * DKGComplaint records a complaint by complainer_address against
1016
+ * dealer_address in the current round and, once the dealer answers with a
1017
+ * valid evaluation, that evaluation (the complainer uses it in place of the
1018
+ * ciphertext it could not open).
1019
+ * @name DKGComplaint
1020
+ * @package sparkdream.shield.v1
1021
+ * @see proto type: sparkdream.shield.v1.DKGComplaint
1022
+ */
1023
+ export interface DKGComplaint {
1024
+ dealerAddress: string;
1025
+ complainerAddress: string;
1026
+ justified: boolean;
1027
+ evaluation: Uint8Array;
1028
+ }
1029
+ export interface DKGComplaintProtoMsg {
1030
+ typeUrl: "/sparkdream.shield.v1.DKGComplaint";
1031
+ value: Uint8Array;
1032
+ }
1033
+ /**
1034
+ * DKGComplaint records a complaint by complainer_address against
1035
+ * dealer_address in the current round and, once the dealer answers with a
1036
+ * valid evaluation, that evaluation (the complainer uses it in place of the
1037
+ * ciphertext it could not open).
1038
+ * @name DKGComplaintAmino
1039
+ * @package sparkdream.shield.v1
1040
+ * @see proto type: sparkdream.shield.v1.DKGComplaint
1041
+ */
1042
+ export interface DKGComplaintAmino {
1043
+ dealer_address?: string;
1044
+ complainer_address?: string;
1045
+ justified?: boolean;
1046
+ evaluation?: string;
1047
+ }
1048
+ export interface DKGComplaintAminoMsg {
1049
+ type: "/sparkdream.shield.v1.DKGComplaint";
1050
+ value: DKGComplaintAmino;
1051
+ }
822
1052
  /**
823
1053
  * InjectedDKGData is the aggregated shield data injected by the block proposer
824
1054
  * as a pseudo-transaction at position 0 of the block.
@@ -983,7 +1213,7 @@ export interface VerificationKey {
983
1213
  */
984
1214
  circuitId: string;
985
1215
  /**
986
- * serialized Groth16/PLONK verification key
1216
+ * serialized Groth16 verification key
987
1217
  */
988
1218
  vkBytes: Uint8Array;
989
1219
  description: string;
@@ -1004,7 +1234,7 @@ export interface VerificationKeyAmino {
1004
1234
  */
1005
1235
  circuit_id?: string;
1006
1236
  /**
1007
- * serialized Groth16/PLONK verification key
1237
+ * serialized Groth16 verification key
1008
1238
  */
1009
1239
  vk_bytes?: string;
1010
1240
  description?: string;
@@ -1071,6 +1301,38 @@ export interface TLEMissCounterEntryAminoMsg {
1071
1301
  type: "/sparkdream.shield.v1.TLEMissCounterEntry";
1072
1302
  value: TLEMissCounterEntryAmino;
1073
1303
  }
1304
+ /**
1305
+ * DecryptionDemandEntry records that the EndBlocker asked validators for
1306
+ * decryption shares of a closed epoch (its batch became ready) at a height.
1307
+ * TLE liveness for that epoch is judged one full epoch interval later.
1308
+ * @name DecryptionDemandEntry
1309
+ * @package sparkdream.shield.v1
1310
+ * @see proto type: sparkdream.shield.v1.DecryptionDemandEntry
1311
+ */
1312
+ export interface DecryptionDemandEntry {
1313
+ epoch: bigint;
1314
+ height: bigint;
1315
+ }
1316
+ export interface DecryptionDemandEntryProtoMsg {
1317
+ typeUrl: "/sparkdream.shield.v1.DecryptionDemandEntry";
1318
+ value: Uint8Array;
1319
+ }
1320
+ /**
1321
+ * DecryptionDemandEntry records that the EndBlocker asked validators for
1322
+ * decryption shares of a closed epoch (its batch became ready) at a height.
1323
+ * TLE liveness for that epoch is judged one full epoch interval later.
1324
+ * @name DecryptionDemandEntryAmino
1325
+ * @package sparkdream.shield.v1
1326
+ * @see proto type: sparkdream.shield.v1.DecryptionDemandEntry
1327
+ */
1328
+ export interface DecryptionDemandEntryAmino {
1329
+ epoch?: string;
1330
+ height?: string;
1331
+ }
1332
+ export interface DecryptionDemandEntryAminoMsg {
1333
+ type: "/sparkdream.shield.v1.DecryptionDemandEntry";
1334
+ value: DecryptionDemandEntryAmino;
1335
+ }
1074
1336
  /**
1075
1337
  * ShieldedOpRegistration defines a registered shielded operation.
1076
1338
  * @name ShieldedOpRegistration
@@ -1110,7 +1372,7 @@ export declare const UsedNullifier: {
1110
1372
  };
1111
1373
  /**
1112
1374
  * DayFunding tracks funding per day to enforce the daily cap.
1113
- * Day is calculated as block_height / 14400 (at 6s/block = 1 day).
1375
+ * Day is the UTC day of the block time (block_time / 86400).
1114
1376
  * @name DayFunding
1115
1377
  * @package sparkdream.shield.v1
1116
1378
  * @see proto type: sparkdream.shield.v1.DayFunding
@@ -1128,7 +1390,8 @@ export declare const DayFunding: {
1128
1390
  toProtoMsg(message: DayFunding): DayFundingProtoMsg;
1129
1391
  };
1130
1392
  /**
1131
- * PendingShieldedOp is stored in queue until the shield epoch boundary triggers batch execution.
1393
+ * PendingShieldedOp is stored in queue until its epoch has closed, its batch was
1394
+ * demanded and the epoch key exists; it then executes in that block.
1132
1395
  * @name PendingShieldedOp
1133
1396
  * @package sparkdream.shield.v1
1134
1397
  * @see proto type: sparkdream.shield.v1.PendingShieldedOp
@@ -1326,6 +1589,47 @@ export declare const DKGVoteExtension: {
1326
1589
  toProto(message: DKGVoteExtension): Uint8Array;
1327
1590
  toProtoMsg(message: DKGVoteExtension): DKGVoteExtensionProtoMsg;
1328
1591
  };
1592
+ /**
1593
+ * DKGJustification is a dealer's public answer to a complaint: p_i(j) for the
1594
+ * complaining validator j, which anyone checks against the dealer's Feldman
1595
+ * commitments.
1596
+ * @name DKGJustification
1597
+ * @package sparkdream.shield.v1
1598
+ * @see proto type: sparkdream.shield.v1.DKGJustification
1599
+ */
1600
+ export declare const DKGJustification: {
1601
+ typeUrl: string;
1602
+ encode(message: DKGJustification, writer?: BinaryWriter): BinaryWriter;
1603
+ decode(input: BinaryReader | Uint8Array, length?: number): DKGJustification;
1604
+ fromPartial(object: DeepPartial<DKGJustification>): DKGJustification;
1605
+ fromAmino(object: DKGJustificationAmino): DKGJustification;
1606
+ toAmino(message: DKGJustification): DKGJustificationAmino;
1607
+ fromAminoMsg(object: DKGJustificationAminoMsg): DKGJustification;
1608
+ fromProtoMsg(message: DKGJustificationProtoMsg): DKGJustification;
1609
+ toProto(message: DKGJustification): Uint8Array;
1610
+ toProtoMsg(message: DKGJustification): DKGJustificationProtoMsg;
1611
+ };
1612
+ /**
1613
+ * DKGComplaint records a complaint by complainer_address against
1614
+ * dealer_address in the current round and, once the dealer answers with a
1615
+ * valid evaluation, that evaluation (the complainer uses it in place of the
1616
+ * ciphertext it could not open).
1617
+ * @name DKGComplaint
1618
+ * @package sparkdream.shield.v1
1619
+ * @see proto type: sparkdream.shield.v1.DKGComplaint
1620
+ */
1621
+ export declare const DKGComplaint: {
1622
+ typeUrl: string;
1623
+ encode(message: DKGComplaint, writer?: BinaryWriter): BinaryWriter;
1624
+ decode(input: BinaryReader | Uint8Array, length?: number): DKGComplaint;
1625
+ fromPartial(object: DeepPartial<DKGComplaint>): DKGComplaint;
1626
+ fromAmino(object: DKGComplaintAmino): DKGComplaint;
1627
+ toAmino(message: DKGComplaint): DKGComplaintAmino;
1628
+ fromAminoMsg(object: DKGComplaintAminoMsg): DKGComplaint;
1629
+ fromProtoMsg(message: DKGComplaintProtoMsg): DKGComplaint;
1630
+ toProto(message: DKGComplaint): Uint8Array;
1631
+ toProtoMsg(message: DKGComplaint): DKGComplaintProtoMsg;
1632
+ };
1329
1633
  /**
1330
1634
  * InjectedDKGData is the aggregated shield data injected by the block proposer
1331
1635
  * as a pseudo-transaction at position 0 of the block.
@@ -1438,3 +1742,23 @@ export declare const TLEMissCounterEntry: {
1438
1742
  toProto(message: TLEMissCounterEntry): Uint8Array;
1439
1743
  toProtoMsg(message: TLEMissCounterEntry): TLEMissCounterEntryProtoMsg;
1440
1744
  };
1745
+ /**
1746
+ * DecryptionDemandEntry records that the EndBlocker asked validators for
1747
+ * decryption shares of a closed epoch (its batch became ready) at a height.
1748
+ * TLE liveness for that epoch is judged one full epoch interval later.
1749
+ * @name DecryptionDemandEntry
1750
+ * @package sparkdream.shield.v1
1751
+ * @see proto type: sparkdream.shield.v1.DecryptionDemandEntry
1752
+ */
1753
+ export declare const DecryptionDemandEntry: {
1754
+ typeUrl: string;
1755
+ encode(message: DecryptionDemandEntry, writer?: BinaryWriter): BinaryWriter;
1756
+ decode(input: BinaryReader | Uint8Array, length?: number): DecryptionDemandEntry;
1757
+ fromPartial(object: DeepPartial<DecryptionDemandEntry>): DecryptionDemandEntry;
1758
+ fromAmino(object: DecryptionDemandEntryAmino): DecryptionDemandEntry;
1759
+ toAmino(message: DecryptionDemandEntry): DecryptionDemandEntryAmino;
1760
+ fromAminoMsg(object: DecryptionDemandEntryAminoMsg): DecryptionDemandEntry;
1761
+ fromProtoMsg(message: DecryptionDemandEntryProtoMsg): DecryptionDemandEntry;
1762
+ toProto(message: DecryptionDemandEntry): Uint8Array;
1763
+ toProtoMsg(message: DecryptionDemandEntry): DecryptionDemandEntryProtoMsg;
1764
+ };