@sparkdreamnft/sparkdreamjs 0.0.44 → 0.0.46

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 (202) 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/nested-amino.js +6 -4
  9. package/esm/sparkdream/artifact/v1/genesis.js +217 -3
  10. package/esm/sparkdream/artifact/v1/params.js +146 -2
  11. package/esm/sparkdream/artifact/v1/query.js +3767 -5
  12. package/esm/sparkdream/artifact/v1/query.lcd.js +173 -0
  13. package/esm/sparkdream/artifact/v1/query.rpc.Query.js +195 -1
  14. package/esm/sparkdream/artifact/v1/tx.amino.js +324 -5
  15. package/esm/sparkdream/artifact/v1/tx.js +7498 -5
  16. package/esm/sparkdream/artifact/v1/tx.registry.js +704 -2
  17. package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +241 -1
  18. package/esm/sparkdream/artifact/v1/types.js +4312 -1120
  19. package/esm/sparkdream/blog/v1/tx.amino.js +21 -1
  20. package/esm/sparkdream/bundle.js +329 -291
  21. package/esm/sparkdream/client.js +5 -2
  22. package/esm/sparkdream/collect/v1/tx.amino.js +16 -1
  23. package/esm/sparkdream/commons/v1/tx.amino.js +33 -1
  24. package/esm/sparkdream/commons/v1/tx.js +25 -1
  25. package/esm/sparkdream/federation/v1/tx.amino.js +51 -1
  26. package/esm/sparkdream/forum/v1/tx.amino.js +21 -1
  27. package/esm/sparkdream/guardian/v1/tx.amino.js +33 -3
  28. package/esm/sparkdream/lcd.js +5 -0
  29. package/esm/sparkdream/name/v1/genesis.js +32 -2
  30. package/esm/sparkdream/rep/v1/genesis.js +74 -1
  31. package/esm/sparkdream/rep/v1/member.js +110 -1
  32. package/esm/sparkdream/rep/v1/migration.js +957 -0
  33. package/esm/sparkdream/rep/v1/params.js +193 -1
  34. package/esm/sparkdream/rep/v1/query.js +1060 -0
  35. package/esm/sparkdream/rep/v1/query.lcd.js +48 -0
  36. package/esm/sparkdream/rep/v1/query.rpc.Query.js +65 -1
  37. package/esm/sparkdream/rep/v1/tx.amino.js +71 -1
  38. package/esm/sparkdream/rep/v1/tx.js +1886 -1
  39. package/esm/sparkdream/rep/v1/tx.registry.js +218 -2
  40. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +75 -1
  41. package/esm/sparkdream/rpc.query.js +3 -0
  42. package/esm/sparkdream/rpc.tx.js +3 -0
  43. package/esm/sparkdream/season/v1/tx.amino.js +64 -2
  44. package/esm/sparkdream/season/v1/tx.js +33 -2
  45. package/esm/sparkdream/service/v1/operator.js +25 -1
  46. package/esm/sparkdream/service/v1/tx.amino.js +6 -1
  47. package/esm/sparkdream/service/v1/tx.js +163 -0
  48. package/esm/sparkdream/service/v1/tx.registry.js +20 -2
  49. package/esm/sparkdream/service/v1/tx.rpc.msg.js +11 -1
  50. package/esm/sparkdream/session/v1/grant.js +98 -6
  51. package/esm/sparkdream/session/v1/tx.amino.js +3 -0
  52. package/esm/sparkdream/session/v1/tx.js +53 -5
  53. package/esm/sparkdream/session/v1/tx.rpc.msg.js +2 -2
  54. package/esm/sparkdream/shield/v1/genesis.js +32 -2
  55. package/esm/sparkdream/shield/v1/params.js +13 -1
  56. package/esm/sparkdream/shield/v1/query.js +13 -1
  57. package/esm/sparkdream/shield/v1/types.js +414 -15
  58. package/esm/sparkdream/vault/module/v1/module.js +71 -0
  59. package/esm/sparkdream/vault/v1/genesis.js +104 -0
  60. package/esm/sparkdream/vault/v1/params.js +90 -0
  61. package/esm/sparkdream/vault/v1/query.js +1535 -0
  62. package/esm/sparkdream/vault/v1/query.lcd.js +100 -0
  63. package/esm/sparkdream/vault/v1/query.rpc.Query.js +111 -0
  64. package/esm/sparkdream/vault/v1/tx.amino.js +111 -0
  65. package/esm/sparkdream/vault/v1/tx.js +1393 -0
  66. package/esm/sparkdream/vault/v1/tx.registry.js +159 -0
  67. package/esm/sparkdream/vault/v1/tx.rpc.msg.js +60 -0
  68. package/esm/sparkdream/vault/v1/vault.js +163 -0
  69. package/esm/sparkdream/vault/v1/vault_proposal.js +277 -0
  70. package/esm/sparkdream/vault/v1/vault_signer.js +85 -0
  71. package/esm/tendermint/bundle.js +20 -20
  72. package/ibc/bundle.d.ts +99 -99
  73. package/ibc/bundle.js +116 -116
  74. package/nested-amino.d.ts +3 -2
  75. package/nested-amino.js +6 -4
  76. package/package.json +1 -13
  77. package/sparkdream/artifact/v1/genesis.d.ts +37 -4
  78. package/sparkdream/artifact/v1/genesis.js +216 -2
  79. package/sparkdream/artifact/v1/params.d.ts +92 -0
  80. package/sparkdream/artifact/v1/params.js +146 -2
  81. package/sparkdream/artifact/v1/query.d.ts +2373 -168
  82. package/sparkdream/artifact/v1/query.js +3768 -5
  83. package/sparkdream/artifact/v1/query.lcd.d.ts +22 -1
  84. package/sparkdream/artifact/v1/query.lcd.js +173 -0
  85. package/sparkdream/artifact/v1/query.rpc.Query.d.ts +98 -1
  86. package/sparkdream/artifact/v1/query.rpc.Query.js +194 -0
  87. package/sparkdream/artifact/v1/tx.amino.d.ts +200 -5
  88. package/sparkdream/artifact/v1/tx.amino.js +324 -5
  89. package/sparkdream/artifact/v1/tx.d.ts +5188 -930
  90. package/sparkdream/artifact/v1/tx.js +7499 -5
  91. package/sparkdream/artifact/v1/tx.registry.d.ts +469 -1
  92. package/sparkdream/artifact/v1/tx.registry.js +703 -1
  93. package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +136 -1
  94. package/sparkdream/artifact/v1/tx.rpc.msg.js +240 -0
  95. package/sparkdream/artifact/v1/types.d.ts +1797 -25
  96. package/sparkdream/artifact/v1/types.js +4322 -1121
  97. package/sparkdream/blog/v1/tx.amino.d.ts +21 -1
  98. package/sparkdream/blog/v1/tx.amino.js +20 -0
  99. package/sparkdream/bundle.d.ts +13721 -9493
  100. package/sparkdream/bundle.js +329 -291
  101. package/sparkdream/client.d.ts +394 -9
  102. package/sparkdream/client.js +5 -2
  103. package/sparkdream/collect/v1/tx.amino.d.ts +16 -1
  104. package/sparkdream/collect/v1/tx.amino.js +15 -0
  105. package/sparkdream/commons/v1/tx.amino.d.ts +21 -1
  106. package/sparkdream/commons/v1/tx.amino.js +32 -0
  107. package/sparkdream/commons/v1/tx.d.ts +18 -0
  108. package/sparkdream/commons/v1/tx.js +25 -1
  109. package/sparkdream/federation/v1/tx.amino.d.ts +1 -1
  110. package/sparkdream/federation/v1/tx.amino.js +52 -2
  111. package/sparkdream/forum/v1/tx.amino.d.ts +21 -1
  112. package/sparkdream/forum/v1/tx.amino.js +20 -0
  113. package/sparkdream/guardian/v1/tx.amino.d.ts +3 -3
  114. package/sparkdream/guardian/v1/tx.amino.js +36 -5
  115. package/sparkdream/lcd.d.ts +3 -0
  116. package/sparkdream/lcd.js +5 -0
  117. package/sparkdream/name/v1/genesis.d.ts +23 -1
  118. package/sparkdream/name/v1/genesis.js +31 -1
  119. package/sparkdream/rep/v1/genesis.d.ts +19 -0
  120. package/sparkdream/rep/v1/genesis.js +74 -1
  121. package/sparkdream/rep/v1/member.d.ts +92 -0
  122. package/sparkdream/rep/v1/member.js +110 -1
  123. package/sparkdream/rep/v1/migration.d.ts +587 -0
  124. package/sparkdream/rep/v1/migration.js +964 -0
  125. package/sparkdream/rep/v1/params.d.ts +190 -0
  126. package/sparkdream/rep/v1/params.js +193 -1
  127. package/sparkdream/rep/v1/query.d.ts +679 -0
  128. package/sparkdream/rep/v1/query.js +1061 -1
  129. package/sparkdream/rep/v1/query.lcd.d.ts +8 -1
  130. package/sparkdream/rep/v1/query.lcd.js +48 -0
  131. package/sparkdream/rep/v1/query.rpc.Query.d.ts +32 -1
  132. package/sparkdream/rep/v1/query.rpc.Query.js +64 -0
  133. package/sparkdream/rep/v1/tx.amino.d.ts +71 -1
  134. package/sparkdream/rep/v1/tx.amino.js +70 -0
  135. package/sparkdream/rep/v1/tx.d.ts +1278 -0
  136. package/sparkdream/rep/v1/tx.js +1887 -2
  137. package/sparkdream/rep/v1/tx.registry.d.ts +145 -1
  138. package/sparkdream/rep/v1/tx.registry.js +217 -1
  139. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +41 -1
  140. package/sparkdream/rep/v1/tx.rpc.msg.js +74 -0
  141. package/sparkdream/rpc.query.d.ts +42 -0
  142. package/sparkdream/rpc.query.js +3 -0
  143. package/sparkdream/rpc.tx.d.ts +3 -0
  144. package/sparkdream/rpc.tx.js +3 -0
  145. package/sparkdream/season/v1/tx.amino.d.ts +2 -2
  146. package/sparkdream/season/v1/tx.amino.js +65 -3
  147. package/sparkdream/season/v1/tx.d.ts +19 -0
  148. package/sparkdream/season/v1/tx.js +33 -2
  149. package/sparkdream/service/v1/operator.d.ts +30 -0
  150. package/sparkdream/service/v1/operator.js +25 -1
  151. package/sparkdream/service/v1/tx.amino.d.ts +6 -1
  152. package/sparkdream/service/v1/tx.amino.js +5 -0
  153. package/sparkdream/service/v1/tx.d.ts +119 -0
  154. package/sparkdream/service/v1/tx.js +164 -1
  155. package/sparkdream/service/v1/tx.registry.d.ts +13 -1
  156. package/sparkdream/service/v1/tx.registry.js +19 -1
  157. package/sparkdream/service/v1/tx.rpc.msg.d.ts +10 -1
  158. package/sparkdream/service/v1/tx.rpc.msg.js +10 -0
  159. package/sparkdream/session/v1/grant.d.ts +75 -7
  160. package/sparkdream/session/v1/grant.js +99 -7
  161. package/sparkdream/session/v1/tx.amino.js +3 -0
  162. package/sparkdream/session/v1/tx.d.ts +36 -4
  163. package/sparkdream/session/v1/tx.js +52 -4
  164. package/sparkdream/session/v1/tx.rpc.msg.d.ts +2 -2
  165. package/sparkdream/session/v1/tx.rpc.msg.js +2 -2
  166. package/sparkdream/shield/v1/genesis.d.ts +17 -1
  167. package/sparkdream/shield/v1/genesis.js +31 -1
  168. package/sparkdream/shield/v1/params.d.ts +16 -4
  169. package/sparkdream/shield/v1/params.js +13 -1
  170. package/sparkdream/shield/v1/query.d.ts +8 -0
  171. package/sparkdream/shield/v1/query.js +13 -1
  172. package/sparkdream/shield/v1/tx.d.ts +36 -10
  173. package/sparkdream/shield/v1/types.d.ts +294 -13
  174. package/sparkdream/shield/v1/types.js +415 -16
  175. package/sparkdream/vault/module/v1/module.d.ts +54 -0
  176. package/sparkdream/vault/module/v1/module.js +74 -0
  177. package/sparkdream/vault/v1/genesis.d.ts +59 -0
  178. package/sparkdream/vault/v1/genesis.js +107 -0
  179. package/sparkdream/vault/v1/params.d.ts +68 -0
  180. package/sparkdream/vault/v1/params.js +93 -0
  181. package/sparkdream/vault/v1/query.d.ts +935 -0
  182. package/sparkdream/vault/v1/query.js +1538 -0
  183. package/sparkdream/vault/v1/query.lcd.d.ts +18 -0
  184. package/sparkdream/vault/v1/query.lcd.js +104 -0
  185. package/sparkdream/vault/v1/query.rpc.Query.d.ts +56 -0
  186. package/sparkdream/vault/v1/query.rpc.Query.js +116 -0
  187. package/sparkdream/vault/v1/tx.amino.d.ts +44 -0
  188. package/sparkdream/vault/v1/tx.amino.js +115 -0
  189. package/sparkdream/vault/v1/tx.d.ts +826 -0
  190. package/sparkdream/vault/v1/tx.js +1399 -0
  191. package/sparkdream/vault/v1/tx.registry.d.ts +109 -0
  192. package/sparkdream/vault/v1/tx.registry.js +163 -0
  193. package/sparkdream/vault/v1/tx.rpc.msg.d.ts +37 -0
  194. package/sparkdream/vault/v1/tx.rpc.msg.js +65 -0
  195. package/sparkdream/vault/v1/vault.d.ts +117 -0
  196. package/sparkdream/vault/v1/vault.js +166 -0
  197. package/sparkdream/vault/v1/vault_proposal.d.ts +158 -0
  198. package/sparkdream/vault/v1/vault_proposal.js +285 -0
  199. package/sparkdream/vault/v1/vault_signer.d.ts +54 -0
  200. package/sparkdream/vault/v1/vault_signer.js +88 -0
  201. package/tendermint/bundle.d.ts +844 -844
  202. package/tendermint/bundle.js +20 -20
@@ -73,8 +73,19 @@ export declare enum DKGPhase {
73
73
  DKG_PHASE_REGISTERING = 1,
74
74
  /** DKG_PHASE_CONTRIBUTING - Key registration closed; accepting Feldman DKG contributions */
75
75
  DKG_PHASE_CONTRIBUTING = 2,
76
- /** DKG_PHASE_ACTIVE - DKG complete, master key available, encrypted batch enabled */
76
+ /** DKG_PHASE_ACTIVE - DKG complete, master key available */
77
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,
78
89
  UNRECOGNIZED = -1
79
90
  }
80
91
  export declare const DKGPhaseAmino: typeof DKGPhase;
@@ -131,7 +142,8 @@ export interface ShieldedOpRegistration {
131
142
  /**
132
143
  * For NULLIFIER_SCOPE_EPOCH: the scope is current_epoch / epoch_window, so
133
144
  * each member gets one action per window of this many shield epochs instead
134
- * of one per epoch. 0 or 1 = every epoch. Must be 0 for other scope types.
145
+ * of one per epoch. 0 or 1 = every epoch. Must be 0 or 1 for other scope
146
+ * types and for ownership ops.
135
147
  */
136
148
  epochWindow: bigint;
137
149
  }
@@ -190,7 +202,8 @@ export interface ShieldedOpRegistrationAmino {
190
202
  /**
191
203
  * For NULLIFIER_SCOPE_EPOCH: the scope is current_epoch / epoch_window, so
192
204
  * each member gets one action per window of this many shield epochs instead
193
- * of one per epoch. 0 or 1 = every epoch. Must be 0 for other scope types.
205
+ * of one per epoch. 0 or 1 = every epoch. Must be 0 or 1 for other scope
206
+ * types and for ownership ops.
194
207
  */
195
208
  epoch_window?: string;
196
209
  }
@@ -234,7 +247,7 @@ export interface UsedNullifierAminoMsg {
234
247
  }
235
248
  /**
236
249
  * DayFunding tracks funding per day to enforce the daily cap.
237
- * 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).
238
251
  * @name DayFunding
239
252
  * @package sparkdream.shield.v1
240
253
  * @see proto type: sparkdream.shield.v1.DayFunding
@@ -249,7 +262,7 @@ export interface DayFundingProtoMsg {
249
262
  }
250
263
  /**
251
264
  * DayFunding tracks funding per day to enforce the daily cap.
252
- * 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).
253
266
  * @name DayFundingAmino
254
267
  * @package sparkdream.shield.v1
255
268
  * @see proto type: sparkdream.shield.v1.DayFunding
@@ -263,7 +276,8 @@ export interface DayFundingAminoMsg {
263
276
  value: DayFundingAmino;
264
277
  }
265
278
  /**
266
- * 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.
267
281
  * @name PendingShieldedOp
268
282
  * @package sparkdream.shield.v1
269
283
  * @see proto type: sparkdream.shield.v1.PendingShieldedOp
@@ -271,20 +285,32 @@ export interface DayFundingAminoMsg {
271
285
  export interface PendingShieldedOp {
272
286
  id: bigint;
273
287
  targetEpoch: bigint;
274
- 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;
275
295
  merkleRoot: Uint8Array;
276
296
  proofDomain: ProofDomain;
277
297
  minTrustLevel: number;
278
298
  encryptedPayload: Uint8Array;
279
299
  submittedAtHeight: bigint;
280
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;
281
306
  }
282
307
  export interface PendingShieldedOpProtoMsg {
283
308
  typeUrl: "/sparkdream.shield.v1.PendingShieldedOp";
284
309
  value: Uint8Array;
285
310
  }
286
311
  /**
287
- * 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.
288
314
  * @name PendingShieldedOpAmino
289
315
  * @package sparkdream.shield.v1
290
316
  * @see proto type: sparkdream.shield.v1.PendingShieldedOp
@@ -292,13 +318,24 @@ export interface PendingShieldedOpProtoMsg {
292
318
  export interface PendingShieldedOpAmino {
293
319
  id?: string;
294
320
  target_epoch?: string;
295
- 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;
296
328
  merkle_root?: string;
297
329
  proof_domain?: ProofDomain;
298
330
  min_trust_level?: number;
299
331
  encrypted_payload?: string;
300
332
  submitted_at_height?: string;
301
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;
302
339
  }
303
340
  export interface PendingShieldedOpAminoMsg {
304
341
  type: "/sparkdream.shield.v1.PendingShieldedOp";
@@ -427,6 +464,12 @@ export interface TLEKeySet {
427
464
  thresholdDenominator: bigint;
428
465
  validatorShares: TLEValidatorPublicShare[];
429
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;
430
473
  }
431
474
  export interface TLEKeySetProtoMsg {
432
475
  typeUrl: "/sparkdream.shield.v1.TLEKeySet";
@@ -453,6 +496,12 @@ export interface TLEKeySetAmino {
453
496
  threshold_denominator?: string;
454
497
  validator_shares?: TLEValidatorPublicShareAmino[];
455
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;
456
505
  }
457
506
  export interface TLEKeySetAminoMsg {
458
507
  type: "/sparkdream.shield.v1.TLEKeySet";
@@ -541,13 +590,29 @@ export interface DKGState {
541
590
  thresholdNumerator: bigint;
542
591
  thresholdDenominator: bigint;
543
592
  /**
544
- * 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).
545
597
  */
546
598
  expectedValidators: string[];
547
599
  /**
548
600
  * Number of contributions received so far
549
601
  */
550
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[];
551
616
  }
552
617
  export interface DKGStateProtoMsg {
553
618
  typeUrl: "/sparkdream.shield.v1.DKGState";
@@ -586,13 +651,29 @@ export interface DKGStateAmino {
586
651
  threshold_numerator?: string;
587
652
  threshold_denominator?: string;
588
653
  /**
589
- * 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).
590
658
  */
591
659
  expected_validators?: string[];
592
660
  /**
593
661
  * Number of contributions received so far
594
662
  */
595
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[];
596
677
  }
597
678
  export interface DKGStateAminoMsg {
598
679
  type: "/sparkdream.shield.v1.DKGState";
@@ -801,6 +882,18 @@ export interface DKGVoteExtension {
801
882
  * Epoch decryption share: secret_share_i * H_to_G1(epoch)
802
883
  */
803
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[];
804
897
  }
805
898
  export interface DKGVoteExtensionProtoMsg {
806
899
  typeUrl: "/sparkdream.shield.v1.DKGVoteExtension";
@@ -857,11 +950,105 @@ export interface DKGVoteExtensionAmino {
857
950
  * Epoch decryption share: secret_share_i * H_to_G1(epoch)
858
951
  */
859
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[];
860
965
  }
861
966
  export interface DKGVoteExtensionAminoMsg {
862
967
  type: "/sparkdream.shield.v1.DKGVoteExtension";
863
968
  value: DKGVoteExtensionAmino;
864
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
+ }
865
1052
  /**
866
1053
  * InjectedDKGData is the aggregated shield data injected by the block proposer
867
1054
  * as a pseudo-transaction at position 0 of the block.
@@ -1114,6 +1301,38 @@ export interface TLEMissCounterEntryAminoMsg {
1114
1301
  type: "/sparkdream.shield.v1.TLEMissCounterEntry";
1115
1302
  value: TLEMissCounterEntryAmino;
1116
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
+ }
1117
1336
  /**
1118
1337
  * ShieldedOpRegistration defines a registered shielded operation.
1119
1338
  * @name ShieldedOpRegistration
@@ -1153,7 +1372,7 @@ export declare const UsedNullifier: {
1153
1372
  };
1154
1373
  /**
1155
1374
  * DayFunding tracks funding per day to enforce the daily cap.
1156
- * 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).
1157
1376
  * @name DayFunding
1158
1377
  * @package sparkdream.shield.v1
1159
1378
  * @see proto type: sparkdream.shield.v1.DayFunding
@@ -1171,7 +1390,8 @@ export declare const DayFunding: {
1171
1390
  toProtoMsg(message: DayFunding): DayFundingProtoMsg;
1172
1391
  };
1173
1392
  /**
1174
- * 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.
1175
1395
  * @name PendingShieldedOp
1176
1396
  * @package sparkdream.shield.v1
1177
1397
  * @see proto type: sparkdream.shield.v1.PendingShieldedOp
@@ -1369,6 +1589,47 @@ export declare const DKGVoteExtension: {
1369
1589
  toProto(message: DKGVoteExtension): Uint8Array;
1370
1590
  toProtoMsg(message: DKGVoteExtension): DKGVoteExtensionProtoMsg;
1371
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
+ };
1372
1633
  /**
1373
1634
  * InjectedDKGData is the aggregated shield data injected by the block proposer
1374
1635
  * as a pseudo-transaction at position 0 of the block.
@@ -1481,3 +1742,23 @@ export declare const TLEMissCounterEntry: {
1481
1742
  toProto(message: TLEMissCounterEntry): Uint8Array;
1482
1743
  toProtoMsg(message: TLEMissCounterEntry): TLEMissCounterEntryProtoMsg;
1483
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
+ };