@aztec/stdlib 0.82.2 → 0.82.3-nightly.20250403

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 (206) hide show
  1. package/dest/avm/avm.d.ts +4648 -1474
  2. package/dest/avm/avm.d.ts.map +1 -1
  3. package/dest/avm/avm.js +182 -109
  4. package/dest/avm/avm_proving_request.d.ts +1867 -498
  5. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  6. package/dest/block/l2_block_downloader/l2_block_stream.d.ts +10 -12
  7. package/dest/block/l2_block_downloader/l2_block_stream.d.ts.map +1 -1
  8. package/dest/block/l2_block_downloader/l2_block_stream.js +45 -11
  9. package/dest/config/config.d.ts +2 -2
  10. package/dest/config/config.d.ts.map +1 -1
  11. package/dest/config/config.js +4 -5
  12. package/dest/contract/interfaces/node-info.d.ts +2 -2
  13. package/dest/contract/interfaces/node-info.d.ts.map +1 -1
  14. package/dest/contract/interfaces/node-info.js +1 -1
  15. package/dest/database-version/version_manager.d.ts +4 -2
  16. package/dest/database-version/version_manager.d.ts.map +1 -1
  17. package/dest/database-version/version_manager.js +13 -9
  18. package/dest/epoch-helpers/index.d.ts +2 -0
  19. package/dest/epoch-helpers/index.d.ts.map +1 -1
  20. package/dest/epoch-helpers/index.js +3 -0
  21. package/dest/file-store/factory.d.ts +7 -0
  22. package/dest/file-store/factory.d.ts.map +1 -0
  23. package/dest/file-store/factory.js +46 -0
  24. package/dest/file-store/gcs.d.ts +22 -0
  25. package/dest/file-store/gcs.d.ts.map +1 -0
  26. package/dest/file-store/gcs.js +115 -0
  27. package/dest/file-store/http.d.ts +15 -0
  28. package/dest/file-store/http.d.ts.map +1 -0
  29. package/dest/file-store/http.js +53 -0
  30. package/dest/file-store/index.d.ts +3 -0
  31. package/dest/file-store/index.d.ts.map +1 -0
  32. package/dest/file-store/index.js +2 -0
  33. package/dest/file-store/interface.d.ts +24 -0
  34. package/dest/file-store/interface.d.ts.map +1 -0
  35. package/dest/file-store/interface.js +1 -0
  36. package/dest/file-store/local.d.ts +16 -0
  37. package/dest/file-store/local.d.ts.map +1 -0
  38. package/dest/file-store/local.js +40 -0
  39. package/dest/interfaces/aztec-node-admin.d.ts +9 -1
  40. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  41. package/dest/interfaces/aztec-node-admin.js +2 -1
  42. package/dest/interfaces/aztec-node.d.ts +3 -0
  43. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  44. package/dest/interfaces/aztec-node.js +2 -0
  45. package/dest/interfaces/p2p.d.ts +2 -0
  46. package/dest/interfaces/p2p.d.ts.map +1 -1
  47. package/dest/interfaces/p2p.js +2 -1
  48. package/dest/interfaces/prover-client.d.ts +3 -3
  49. package/dest/interfaces/prover-client.d.ts.map +1 -1
  50. package/dest/interfaces/prover-client.js +6 -4
  51. package/dest/interfaces/prover-node.d.ts +4 -0
  52. package/dest/interfaces/prover-node.d.ts.map +1 -1
  53. package/dest/interfaces/prover-node.js +5 -1
  54. package/dest/interfaces/proving-job.d.ts +1866 -497
  55. package/dest/interfaces/proving-job.d.ts.map +1 -1
  56. package/dest/interfaces/pxe.d.ts +7 -6
  57. package/dest/interfaces/pxe.d.ts.map +1 -1
  58. package/dest/interfaces/pxe.js +1 -1
  59. package/dest/interfaces/service.d.ts +3 -0
  60. package/dest/interfaces/service.d.ts.map +1 -1
  61. package/dest/interfaces/service.js +7 -0
  62. package/dest/interfaces/world_state.d.ts +13 -15
  63. package/dest/interfaces/world_state.d.ts.map +1 -1
  64. package/dest/keys/derivation.d.ts +1 -1
  65. package/dest/keys/derivation.d.ts.map +1 -1
  66. package/dest/keys/derivation.js +10 -2
  67. package/dest/logs/index.d.ts +2 -1
  68. package/dest/logs/index.d.ts.map +1 -1
  69. package/dest/logs/index.js +2 -1
  70. package/dest/logs/pending_tagged_log.d.ts +17 -0
  71. package/dest/logs/pending_tagged_log.d.ts.map +1 -0
  72. package/dest/logs/pending_tagged_log.js +45 -0
  73. package/dest/logs/{l1_payload/shared_secret_derivation.d.ts → shared_secret_derivation.d.ts} +4 -3
  74. package/dest/logs/shared_secret_derivation.d.ts.map +1 -0
  75. package/dest/logs/{l1_payload/shared_secret_derivation.js → shared_secret_derivation.js} +3 -5
  76. package/dest/logs/tx_scoped_l2_log.d.ts +6 -1
  77. package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
  78. package/dest/logs/tx_scoped_l2_log.js +12 -4
  79. package/dest/note/note.d.ts +45 -4
  80. package/dest/note/note.d.ts.map +1 -1
  81. package/dest/note/note.js +51 -4
  82. package/dest/proofs/proof.d.ts.map +1 -1
  83. package/dest/proofs/proof.js +33 -7
  84. package/dest/snapshots/download.d.ts +9 -0
  85. package/dest/snapshots/download.d.ts.map +1 -0
  86. package/dest/snapshots/download.js +37 -0
  87. package/dest/snapshots/index.d.ts +4 -0
  88. package/dest/snapshots/index.d.ts.map +1 -0
  89. package/dest/snapshots/index.js +3 -0
  90. package/dest/snapshots/types.d.ts +97 -0
  91. package/dest/snapshots/types.d.ts.map +1 -0
  92. package/dest/snapshots/types.js +27 -0
  93. package/dest/snapshots/upload.d.ts +5 -0
  94. package/dest/snapshots/upload.d.ts.map +1 -0
  95. package/dest/snapshots/upload.js +37 -0
  96. package/dest/tests/factories.d.ts +21 -7
  97. package/dest/tests/factories.d.ts.map +1 -1
  98. package/dest/tests/factories.js +78 -30
  99. package/dest/tests/mocks.d.ts +2 -1
  100. package/dest/tests/mocks.d.ts.map +1 -1
  101. package/dest/tests/mocks.js +5 -1
  102. package/dest/trees/merkle_tree_id.d.ts +8 -0
  103. package/dest/trees/merkle_tree_id.d.ts.map +1 -1
  104. package/dest/trees/merkle_tree_id.js +10 -0
  105. package/dest/trees/nullifier_leaf.d.ts +49 -15
  106. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  107. package/dest/trees/nullifier_leaf.js +45 -22
  108. package/dest/trees/nullifier_membership_witness.d.ts +34 -18
  109. package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
  110. package/dest/trees/protocol_contract_leaf.d.ts +0 -1
  111. package/dest/trees/protocol_contract_leaf.d.ts.map +1 -1
  112. package/dest/trees/protocol_contract_leaf.js +0 -3
  113. package/dest/trees/public_data_leaf.d.ts +59 -25
  114. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  115. package/dest/trees/public_data_leaf.js +41 -30
  116. package/dest/trees/public_data_witness.d.ts +42 -24
  117. package/dest/trees/public_data_witness.d.ts.map +1 -1
  118. package/dest/trees/public_data_witness.js +6 -6
  119. package/dest/validators/index.d.ts +3 -0
  120. package/dest/validators/index.d.ts.map +1 -0
  121. package/dest/validators/index.js +1 -0
  122. package/dest/validators/schemas.d.ts +342 -0
  123. package/dest/validators/schemas.d.ts.map +1 -0
  124. package/dest/validators/schemas.js +40 -0
  125. package/dest/validators/types.d.ts +39 -0
  126. package/dest/validators/types.d.ts.map +1 -0
  127. package/dest/validators/types.js +1 -0
  128. package/dest/versioning/versioning.d.ts +1 -1
  129. package/dest/versioning/versioning.d.ts.map +1 -1
  130. package/dest/versioning/versioning.js +6 -6
  131. package/package.json +11 -8
  132. package/src/avm/avm.ts +183 -104
  133. package/src/block/l2_block_downloader/l2_block_stream.ts +64 -29
  134. package/src/config/config.ts +6 -6
  135. package/src/contract/interfaces/node-info.ts +3 -3
  136. package/src/database-version/version_manager.ts +12 -8
  137. package/src/epoch-helpers/index.ts +8 -0
  138. package/src/file-store/factory.ts +61 -0
  139. package/src/file-store/gcs.ts +121 -0
  140. package/src/file-store/http.ts +58 -0
  141. package/src/file-store/index.ts +2 -0
  142. package/src/file-store/interface.ts +19 -0
  143. package/src/file-store/local.ts +46 -0
  144. package/src/interfaces/aztec-node-admin.ts +11 -1
  145. package/src/interfaces/aztec-node.ts +7 -0
  146. package/src/interfaces/p2p.ts +4 -0
  147. package/src/interfaces/prover-client.ts +9 -7
  148. package/src/interfaces/prover-node.ts +10 -0
  149. package/src/interfaces/pxe.ts +14 -7
  150. package/src/interfaces/service.ts +13 -0
  151. package/src/interfaces/world_state.ts +17 -15
  152. package/src/keys/derivation.ts +12 -6
  153. package/src/logs/index.ts +2 -1
  154. package/src/logs/pending_tagged_log.ts +43 -0
  155. package/src/logs/{l1_payload/shared_secret_derivation.ts → shared_secret_derivation.ts} +4 -11
  156. package/src/logs/tx_scoped_l2_log.ts +13 -4
  157. package/src/note/note.ts +61 -5
  158. package/src/proofs/proof.ts +39 -5
  159. package/src/snapshots/download.ts +60 -0
  160. package/src/snapshots/index.ts +3 -0
  161. package/src/snapshots/types.ts +58 -0
  162. package/src/snapshots/upload.ts +55 -0
  163. package/src/tests/factories.ts +137 -53
  164. package/src/tests/mocks.ts +7 -0
  165. package/src/trees/merkle_tree_id.ts +12 -0
  166. package/src/trees/nullifier_leaf.ts +48 -21
  167. package/src/trees/protocol_contract_leaf.ts +0 -4
  168. package/src/trees/public_data_leaf.ts +40 -29
  169. package/src/trees/public_data_witness.ts +6 -6
  170. package/src/validators/index.ts +3 -0
  171. package/src/validators/schemas.ts +53 -0
  172. package/src/validators/types.ts +37 -0
  173. package/src/versioning/versioning.ts +8 -14
  174. package/dest/event/event.d.ts +0 -24
  175. package/dest/event/event.d.ts.map +0 -1
  176. package/dest/event/event.js +0 -13
  177. package/dest/event/event_metadata.d.ts +0 -38
  178. package/dest/event/event_metadata.d.ts.map +0 -1
  179. package/dest/event/event_metadata.js +0 -45
  180. package/dest/event/index.d.ts +0 -4
  181. package/dest/event/index.d.ts.map +0 -1
  182. package/dest/event/index.js +0 -3
  183. package/dest/event/l1_event_payload.d.ts +0 -52
  184. package/dest/event/l1_event_payload.d.ts.map +0 -1
  185. package/dest/event/l1_event_payload.js +0 -64
  186. package/dest/logs/l1_payload/encrypted_log_payload.d.ts +0 -50
  187. package/dest/logs/l1_payload/encrypted_log_payload.d.ts.map +0 -1
  188. package/dest/logs/l1_payload/encrypted_log_payload.js +0 -140
  189. package/dest/logs/l1_payload/encryption_util.d.ts +0 -24
  190. package/dest/logs/l1_payload/encryption_util.d.ts.map +0 -1
  191. package/dest/logs/l1_payload/encryption_util.js +0 -46
  192. package/dest/logs/l1_payload/index.d.ts +0 -3
  193. package/dest/logs/l1_payload/index.d.ts.map +0 -1
  194. package/dest/logs/l1_payload/index.js +0 -2
  195. package/dest/logs/l1_payload/payload.d.ts +0 -60
  196. package/dest/logs/l1_payload/payload.d.ts.map +0 -1
  197. package/dest/logs/l1_payload/payload.js +0 -61
  198. package/dest/logs/l1_payload/shared_secret_derivation.d.ts.map +0 -1
  199. package/src/event/event.ts +0 -16
  200. package/src/event/event_metadata.ts +0 -56
  201. package/src/event/index.ts +0 -3
  202. package/src/event/l1_event_payload.ts +0 -87
  203. package/src/logs/l1_payload/encrypted_log_payload.ts +0 -202
  204. package/src/logs/l1_payload/encryption_util.ts +0 -54
  205. package/src/logs/l1_payload/index.ts +0 -2
  206. package/src/logs/l1_payload/payload.ts +0 -73
@@ -175,357 +175,1152 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
175
175
  classId: string;
176
176
  commitment: string;
177
177
  }>, "many">;
178
- publicDataReads: z.ZodArray<z.ZodEffects<z.ZodObject<{
178
+ getSiblingPathHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
179
+ hintKey: z.ZodEffects<z.ZodObject<{
180
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
181
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ root: import("@aztec/foundation/schemas").Fr;
184
+ nextAvailableLeafIndex: number;
185
+ }, {
186
+ root: string;
187
+ nextAvailableLeafIndex: string | number | bigint;
188
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
189
+ root: string;
190
+ nextAvailableLeafIndex: string | number | bigint;
191
+ }>;
192
+ treeId: z.ZodNumber;
193
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
194
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
195
+ }, "strip", z.ZodTypeAny, {
196
+ path: import("@aztec/foundation/schemas").Fr[];
197
+ index: bigint;
198
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
199
+ treeId: number;
200
+ }, {
201
+ path: string[];
202
+ index: string | number | bigint;
203
+ hintKey: {
204
+ root: string;
205
+ nextAvailableLeafIndex: string | number | bigint;
206
+ };
207
+ treeId: number;
208
+ }>, import("../avm/avm.js").AvmGetSiblingPathHint, {
209
+ path: string[];
210
+ index: string | number | bigint;
211
+ hintKey: {
212
+ root: string;
213
+ nextAvailableLeafIndex: string | number | bigint;
214
+ };
215
+ treeId: number;
216
+ }>, "many">;
217
+ getPreviousValueIndexHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
218
+ hintKey: z.ZodEffects<z.ZodObject<{
219
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
220
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ root: import("@aztec/foundation/schemas").Fr;
223
+ nextAvailableLeafIndex: number;
224
+ }, {
225
+ root: string;
226
+ nextAvailableLeafIndex: string | number | bigint;
227
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
228
+ root: string;
229
+ nextAvailableLeafIndex: string | number | bigint;
230
+ }>;
231
+ treeId: z.ZodNumber;
232
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
233
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
234
+ alreadyPresent: z.ZodBoolean;
235
+ }, "strip", z.ZodTypeAny, {
236
+ value: import("@aztec/foundation/schemas").Fr;
237
+ index: bigint;
238
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
239
+ treeId: number;
240
+ alreadyPresent: boolean;
241
+ }, {
242
+ value: string;
243
+ index: string | number | bigint;
244
+ hintKey: {
245
+ root: string;
246
+ nextAvailableLeafIndex: string | number | bigint;
247
+ };
248
+ treeId: number;
249
+ alreadyPresent: boolean;
250
+ }>, import("../avm/avm.js").AvmGetPreviousValueIndexHint, {
251
+ value: string;
252
+ index: string | number | bigint;
253
+ hintKey: {
254
+ root: string;
255
+ nextAvailableLeafIndex: string | number | bigint;
256
+ };
257
+ treeId: number;
258
+ alreadyPresent: boolean;
259
+ }>, "many">;
260
+ getLeafPreimageHintsPublicDataTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
261
+ hintKey: z.ZodEffects<z.ZodObject<{
262
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
263
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ root: import("@aztec/foundation/schemas").Fr;
266
+ nextAvailableLeafIndex: number;
267
+ }, {
268
+ root: string;
269
+ nextAvailableLeafIndex: string | number | bigint;
270
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
271
+ root: string;
272
+ nextAvailableLeafIndex: string | number | bigint;
273
+ }>;
274
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
179
275
  leafPreimage: z.ZodEffects<z.ZodObject<{
180
- slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
181
- value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
182
- nextSlot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
276
+ leaf: z.ZodEffects<z.ZodObject<{
277
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ nullifier: import("@aztec/foundation/schemas").Fr;
280
+ }, {
281
+ nullifier: string;
282
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
283
+ nullifier: string;
284
+ }>;
285
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
183
286
  nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
184
287
  }, "strip", z.ZodTypeAny, {
185
- value: import("@aztec/foundation/schemas").Fr;
186
- slot: import("@aztec/foundation/schemas").Fr;
288
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
289
+ nextKey: import("@aztec/foundation/schemas").Fr;
187
290
  nextIndex: bigint;
188
- nextSlot: import("@aztec/foundation/schemas").Fr;
189
291
  }, {
190
- value: string;
191
- slot: string;
292
+ leaf: {
293
+ nullifier: string;
294
+ };
295
+ nextKey: string;
296
+ nextIndex: string | number | bigint;
297
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
298
+ leaf: {
299
+ nullifier: string;
300
+ };
301
+ nextKey: string;
302
+ nextIndex: string | number | bigint;
303
+ }> | z.ZodEffects<z.ZodObject<{
304
+ leaf: z.ZodEffects<z.ZodObject<{
305
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
306
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ value: import("@aztec/foundation/schemas").Fr;
309
+ slot: import("@aztec/foundation/schemas").Fr;
310
+ }, {
311
+ value: string;
312
+ slot: string;
313
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
314
+ value: string;
315
+ slot: string;
316
+ }>;
317
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
318
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
321
+ nextKey: import("@aztec/foundation/schemas").Fr;
322
+ nextIndex: bigint;
323
+ }, {
324
+ leaf: {
325
+ value: string;
326
+ slot: string;
327
+ };
328
+ nextKey: string;
192
329
  nextIndex: string | number | bigint;
193
- nextSlot: string;
194
330
  }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
195
- value: string;
196
- slot: string;
331
+ leaf: {
332
+ value: string;
333
+ slot: string;
334
+ };
335
+ nextKey: string;
197
336
  nextIndex: string | number | bigint;
198
- nextSlot: string;
199
337
  }>;
200
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
201
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
202
338
  }, "strip", z.ZodTypeAny, {
203
- leafIndex: import("@aztec/foundation/schemas").Fr;
204
- siblingPath: import("@aztec/foundation/schemas").Fr[];
205
- leafPreimage: import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
339
+ index: bigint;
340
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
341
+ leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
206
342
  }, {
207
- leafIndex: string;
208
- siblingPath: string[];
343
+ index: string | number | bigint;
344
+ hintKey: {
345
+ root: string;
346
+ nextAvailableLeafIndex: string | number | bigint;
347
+ };
209
348
  leafPreimage: {
210
- value: string;
211
- slot: string;
349
+ leaf: {
350
+ nullifier: string;
351
+ };
352
+ nextKey: string;
212
353
  nextIndex: string | number | bigint;
213
- nextSlot: string;
354
+ } | {
355
+ leaf: {
356
+ value: string;
357
+ slot: string;
358
+ };
359
+ nextKey: string;
360
+ nextIndex: string | number | bigint;
361
+ };
362
+ }>, {
363
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
364
+ readonly index: bigint;
365
+ readonly leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
366
+ }, {
367
+ index: string | number | bigint;
368
+ hintKey: {
369
+ root: string;
370
+ nextAvailableLeafIndex: string | number | bigint;
214
371
  };
215
- }>, import("../avm/avm.js").AvmPublicDataReadTreeHint, {
216
- leafIndex: string;
217
- siblingPath: string[];
218
372
  leafPreimage: {
219
- value: string;
220
- slot: string;
373
+ leaf: {
374
+ nullifier: string;
375
+ };
376
+ nextKey: string;
377
+ nextIndex: string | number | bigint;
378
+ } | {
379
+ leaf: {
380
+ value: string;
381
+ slot: string;
382
+ };
383
+ nextKey: string;
221
384
  nextIndex: string | number | bigint;
222
- nextSlot: string;
223
385
  };
224
386
  }>, "many">;
225
- publicDataWrites: z.ZodArray<z.ZodEffects<z.ZodObject<{
226
- lowLeafRead: z.ZodEffects<z.ZodObject<{
227
- leafPreimage: z.ZodEffects<z.ZodObject<{
387
+ getLeafPreimageHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
388
+ hintKey: z.ZodEffects<z.ZodObject<{
389
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
390
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ root: import("@aztec/foundation/schemas").Fr;
393
+ nextAvailableLeafIndex: number;
394
+ }, {
395
+ root: string;
396
+ nextAvailableLeafIndex: string | number | bigint;
397
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
398
+ root: string;
399
+ nextAvailableLeafIndex: string | number | bigint;
400
+ }>;
401
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
402
+ leafPreimage: z.ZodEffects<z.ZodObject<{
403
+ leaf: z.ZodEffects<z.ZodObject<{
404
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ nullifier: import("@aztec/foundation/schemas").Fr;
407
+ }, {
408
+ nullifier: string;
409
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
410
+ nullifier: string;
411
+ }>;
412
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
413
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
416
+ nextKey: import("@aztec/foundation/schemas").Fr;
417
+ nextIndex: bigint;
418
+ }, {
419
+ leaf: {
420
+ nullifier: string;
421
+ };
422
+ nextKey: string;
423
+ nextIndex: string | number | bigint;
424
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
425
+ leaf: {
426
+ nullifier: string;
427
+ };
428
+ nextKey: string;
429
+ nextIndex: string | number | bigint;
430
+ }> | z.ZodEffects<z.ZodObject<{
431
+ leaf: z.ZodEffects<z.ZodObject<{
228
432
  slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
229
433
  value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
230
- nextSlot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
231
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
232
434
  }, "strip", z.ZodTypeAny, {
233
435
  value: import("@aztec/foundation/schemas").Fr;
234
436
  slot: import("@aztec/foundation/schemas").Fr;
235
- nextIndex: bigint;
236
- nextSlot: import("@aztec/foundation/schemas").Fr;
237
437
  }, {
238
438
  value: string;
239
439
  slot: string;
240
- nextIndex: string | number | bigint;
241
- nextSlot: string;
242
- }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
440
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
243
441
  value: string;
244
442
  slot: string;
245
- nextIndex: string | number | bigint;
246
- nextSlot: string;
247
443
  }>;
248
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
249
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
444
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
445
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
250
446
  }, "strip", z.ZodTypeAny, {
251
- leafIndex: import("@aztec/foundation/schemas").Fr;
252
- siblingPath: import("@aztec/foundation/schemas").Fr[];
253
- leafPreimage: import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
447
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
448
+ nextKey: import("@aztec/foundation/schemas").Fr;
449
+ nextIndex: bigint;
254
450
  }, {
255
- leafIndex: string;
256
- siblingPath: string[];
257
- leafPreimage: {
451
+ leaf: {
258
452
  value: string;
259
453
  slot: string;
260
- nextIndex: string | number | bigint;
261
- nextSlot: string;
262
454
  };
263
- }>, import("../avm/avm.js").AvmPublicDataReadTreeHint, {
264
- leafIndex: string;
265
- siblingPath: string[];
266
- leafPreimage: {
455
+ nextKey: string;
456
+ nextIndex: string | number | bigint;
457
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
458
+ leaf: {
459
+ value: string;
460
+ slot: string;
461
+ };
462
+ nextKey: string;
463
+ nextIndex: string | number | bigint;
464
+ }>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ index: bigint;
467
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
468
+ leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
469
+ }, {
470
+ index: string | number | bigint;
471
+ hintKey: {
472
+ root: string;
473
+ nextAvailableLeafIndex: string | number | bigint;
474
+ };
475
+ leafPreimage: {
476
+ leaf: {
477
+ nullifier: string;
478
+ };
479
+ nextKey: string;
480
+ nextIndex: string | number | bigint;
481
+ } | {
482
+ leaf: {
483
+ value: string;
484
+ slot: string;
485
+ };
486
+ nextKey: string;
487
+ nextIndex: string | number | bigint;
488
+ };
489
+ }>, {
490
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
491
+ readonly index: bigint;
492
+ readonly leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
493
+ }, {
494
+ index: string | number | bigint;
495
+ hintKey: {
496
+ root: string;
497
+ nextAvailableLeafIndex: string | number | bigint;
498
+ };
499
+ leafPreimage: {
500
+ leaf: {
501
+ nullifier: string;
502
+ };
503
+ nextKey: string;
504
+ nextIndex: string | number | bigint;
505
+ } | {
506
+ leaf: {
267
507
  value: string;
268
508
  slot: string;
269
- nextIndex: string | number | bigint;
270
- nextSlot: string;
271
509
  };
510
+ nextKey: string;
511
+ nextIndex: string | number | bigint;
512
+ };
513
+ }>, "many">;
514
+ getLeafValueHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
515
+ hintKey: z.ZodEffects<z.ZodObject<{
516
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
517
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ root: import("@aztec/foundation/schemas").Fr;
520
+ nextAvailableLeafIndex: number;
521
+ }, {
522
+ root: string;
523
+ nextAvailableLeafIndex: string | number | bigint;
524
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
525
+ root: string;
526
+ nextAvailableLeafIndex: string | number | bigint;
272
527
  }>;
273
- newLeafPreimage: z.ZodEffects<z.ZodObject<{
528
+ treeId: z.ZodNumber;
529
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
530
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ value: import("@aztec/foundation/schemas").Fr;
533
+ index: bigint;
534
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
535
+ treeId: number;
536
+ }, {
537
+ value: string;
538
+ index: string | number | bigint;
539
+ hintKey: {
540
+ root: string;
541
+ nextAvailableLeafIndex: string | number | bigint;
542
+ };
543
+ treeId: number;
544
+ }>, import("../avm/avm.js").AvmGetLeafValueHint, {
545
+ value: string;
546
+ index: string | number | bigint;
547
+ hintKey: {
548
+ root: string;
549
+ nextAvailableLeafIndex: string | number | bigint;
550
+ };
551
+ treeId: number;
552
+ }>, "many">;
553
+ sequentialInsertHintsPublicDataTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
554
+ hintKey: z.ZodEffects<z.ZodObject<{
555
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
556
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
557
+ }, "strip", z.ZodTypeAny, {
558
+ root: import("@aztec/foundation/schemas").Fr;
559
+ nextAvailableLeafIndex: number;
560
+ }, {
561
+ root: string;
562
+ nextAvailableLeafIndex: string | number | bigint;
563
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
564
+ root: string;
565
+ nextAvailableLeafIndex: string | number | bigint;
566
+ }>;
567
+ stateAfter: z.ZodEffects<z.ZodObject<{
568
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
569
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ root: import("@aztec/foundation/schemas").Fr;
572
+ nextAvailableLeafIndex: number;
573
+ }, {
574
+ root: string;
575
+ nextAvailableLeafIndex: string | number | bigint;
576
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
577
+ root: string;
578
+ nextAvailableLeafIndex: string | number | bigint;
579
+ }>;
580
+ treeId: z.ZodNumber;
581
+ leaf: z.ZodEffects<z.ZodObject<{
582
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
583
+ }, "strip", z.ZodTypeAny, {
584
+ nullifier: import("@aztec/foundation/schemas").Fr;
585
+ }, {
586
+ nullifier: string;
587
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
588
+ nullifier: string;
589
+ }> | z.ZodEffects<z.ZodObject<{
274
590
  slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
275
591
  value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
276
- nextSlot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
277
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
278
592
  }, "strip", z.ZodTypeAny, {
279
593
  value: import("@aztec/foundation/schemas").Fr;
280
594
  slot: import("@aztec/foundation/schemas").Fr;
281
- nextIndex: bigint;
282
- nextSlot: import("@aztec/foundation/schemas").Fr;
283
595
  }, {
284
596
  value: string;
285
597
  slot: string;
286
- nextIndex: string | number | bigint;
287
- nextSlot: string;
288
- }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
598
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
289
599
  value: string;
290
600
  slot: string;
291
- nextIndex: string | number | bigint;
292
- nextSlot: string;
293
601
  }>;
294
- insertionPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
602
+ lowLeavesWitnessData: z.ZodObject<{
603
+ leaf: z.ZodEffects<z.ZodObject<{
604
+ leaf: z.ZodEffects<z.ZodObject<{
605
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ nullifier: import("@aztec/foundation/schemas").Fr;
608
+ }, {
609
+ nullifier: string;
610
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
611
+ nullifier: string;
612
+ }>;
613
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
614
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
617
+ nextKey: import("@aztec/foundation/schemas").Fr;
618
+ nextIndex: bigint;
619
+ }, {
620
+ leaf: {
621
+ nullifier: string;
622
+ };
623
+ nextKey: string;
624
+ nextIndex: string | number | bigint;
625
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
626
+ leaf: {
627
+ nullifier: string;
628
+ };
629
+ nextKey: string;
630
+ nextIndex: string | number | bigint;
631
+ }> | z.ZodEffects<z.ZodObject<{
632
+ leaf: z.ZodEffects<z.ZodObject<{
633
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
634
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ value: import("@aztec/foundation/schemas").Fr;
637
+ slot: import("@aztec/foundation/schemas").Fr;
638
+ }, {
639
+ value: string;
640
+ slot: string;
641
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
642
+ value: string;
643
+ slot: string;
644
+ }>;
645
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
646
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
649
+ nextKey: import("@aztec/foundation/schemas").Fr;
650
+ nextIndex: bigint;
651
+ }, {
652
+ leaf: {
653
+ value: string;
654
+ slot: string;
655
+ };
656
+ nextKey: string;
657
+ nextIndex: string | number | bigint;
658
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
659
+ leaf: {
660
+ value: string;
661
+ slot: string;
662
+ };
663
+ nextKey: string;
664
+ nextIndex: string | number | bigint;
665
+ }>;
666
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
667
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
668
+ }, "strip", z.ZodTypeAny, {
669
+ path: import("@aztec/foundation/schemas").Fr[];
670
+ index: bigint;
671
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
672
+ }, {
673
+ path: string[];
674
+ index: string | number | bigint;
675
+ leaf: {
676
+ leaf: {
677
+ nullifier: string;
678
+ };
679
+ nextKey: string;
680
+ nextIndex: string | number | bigint;
681
+ } | {
682
+ leaf: {
683
+ value: string;
684
+ slot: string;
685
+ };
686
+ nextKey: string;
687
+ nextIndex: string | number | bigint;
688
+ };
689
+ }>;
690
+ insertionWitnessData: z.ZodObject<{
691
+ leaf: z.ZodEffects<z.ZodObject<{
692
+ leaf: z.ZodEffects<z.ZodObject<{
693
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ nullifier: import("@aztec/foundation/schemas").Fr;
696
+ }, {
697
+ nullifier: string;
698
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
699
+ nullifier: string;
700
+ }>;
701
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
702
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
705
+ nextKey: import("@aztec/foundation/schemas").Fr;
706
+ nextIndex: bigint;
707
+ }, {
708
+ leaf: {
709
+ nullifier: string;
710
+ };
711
+ nextKey: string;
712
+ nextIndex: string | number | bigint;
713
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
714
+ leaf: {
715
+ nullifier: string;
716
+ };
717
+ nextKey: string;
718
+ nextIndex: string | number | bigint;
719
+ }> | z.ZodEffects<z.ZodObject<{
720
+ leaf: z.ZodEffects<z.ZodObject<{
721
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
722
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ value: import("@aztec/foundation/schemas").Fr;
725
+ slot: import("@aztec/foundation/schemas").Fr;
726
+ }, {
727
+ value: string;
728
+ slot: string;
729
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
730
+ value: string;
731
+ slot: string;
732
+ }>;
733
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
734
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
737
+ nextKey: import("@aztec/foundation/schemas").Fr;
738
+ nextIndex: bigint;
739
+ }, {
740
+ leaf: {
741
+ value: string;
742
+ slot: string;
743
+ };
744
+ nextKey: string;
745
+ nextIndex: string | number | bigint;
746
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
747
+ leaf: {
748
+ value: string;
749
+ slot: string;
750
+ };
751
+ nextKey: string;
752
+ nextIndex: string | number | bigint;
753
+ }>;
754
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
755
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
756
+ }, "strip", z.ZodTypeAny, {
757
+ path: import("@aztec/foundation/schemas").Fr[];
758
+ index: bigint;
759
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
760
+ }, {
761
+ path: string[];
762
+ index: string | number | bigint;
763
+ leaf: {
764
+ leaf: {
765
+ nullifier: string;
766
+ };
767
+ nextKey: string;
768
+ nextIndex: string | number | bigint;
769
+ } | {
770
+ leaf: {
771
+ value: string;
772
+ slot: string;
773
+ };
774
+ nextKey: string;
775
+ nextIndex: string | number | bigint;
776
+ };
777
+ }>;
295
778
  }, "strip", z.ZodTypeAny, {
296
- lowLeafRead: import("../avm/avm.js").AvmPublicDataReadTreeHint;
297
- insertionPath: import("@aztec/foundation/schemas").Fr[];
298
- newLeafPreimage: import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
779
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
780
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
781
+ treeId: number;
782
+ stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
783
+ lowLeavesWitnessData: {
784
+ path: import("@aztec/foundation/schemas").Fr[];
785
+ index: bigint;
786
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
787
+ };
788
+ insertionWitnessData: {
789
+ path: import("@aztec/foundation/schemas").Fr[];
790
+ index: bigint;
791
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
792
+ };
299
793
  }, {
300
- lowLeafRead: {
301
- leafIndex: string;
302
- siblingPath: string[];
303
- leafPreimage: {
304
- value: string;
305
- slot: string;
794
+ leaf: {
795
+ nullifier: string;
796
+ } | {
797
+ value: string;
798
+ slot: string;
799
+ };
800
+ hintKey: {
801
+ root: string;
802
+ nextAvailableLeafIndex: string | number | bigint;
803
+ };
804
+ treeId: number;
805
+ stateAfter: {
806
+ root: string;
807
+ nextAvailableLeafIndex: string | number | bigint;
808
+ };
809
+ lowLeavesWitnessData: {
810
+ path: string[];
811
+ index: string | number | bigint;
812
+ leaf: {
813
+ leaf: {
814
+ nullifier: string;
815
+ };
816
+ nextKey: string;
817
+ nextIndex: string | number | bigint;
818
+ } | {
819
+ leaf: {
820
+ value: string;
821
+ slot: string;
822
+ };
823
+ nextKey: string;
824
+ nextIndex: string | number | bigint;
825
+ };
826
+ };
827
+ insertionWitnessData: {
828
+ path: string[];
829
+ index: string | number | bigint;
830
+ leaf: {
831
+ leaf: {
832
+ nullifier: string;
833
+ };
834
+ nextKey: string;
835
+ nextIndex: string | number | bigint;
836
+ } | {
837
+ leaf: {
838
+ value: string;
839
+ slot: string;
840
+ };
841
+ nextKey: string;
306
842
  nextIndex: string | number | bigint;
307
- nextSlot: string;
308
843
  };
309
844
  };
310
- insertionPath: string[];
311
- newLeafPreimage: {
845
+ }>, {
846
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
847
+ readonly stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
848
+ readonly treeId: import("../trees/merkle_tree_id.js").MerkleTreeId;
849
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
850
+ readonly lowLeavesWitnessData: {
851
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
852
+ index: bigint;
853
+ path: import("@aztec/foundation/schemas").Fr[];
854
+ };
855
+ readonly insertionWitnessData: {
856
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
857
+ index: bigint;
858
+ path: import("@aztec/foundation/schemas").Fr[];
859
+ };
860
+ }, {
861
+ leaf: {
862
+ nullifier: string;
863
+ } | {
312
864
  value: string;
313
865
  slot: string;
314
- nextIndex: string | number | bigint;
315
- nextSlot: string;
316
866
  };
317
- }>, import("../avm/avm.js").AvmPublicDataWriteTreeHint, {
318
- lowLeafRead: {
319
- leafIndex: string;
320
- siblingPath: string[];
321
- leafPreimage: {
322
- value: string;
323
- slot: string;
867
+ hintKey: {
868
+ root: string;
869
+ nextAvailableLeafIndex: string | number | bigint;
870
+ };
871
+ treeId: number;
872
+ stateAfter: {
873
+ root: string;
874
+ nextAvailableLeafIndex: string | number | bigint;
875
+ };
876
+ lowLeavesWitnessData: {
877
+ path: string[];
878
+ index: string | number | bigint;
879
+ leaf: {
880
+ leaf: {
881
+ nullifier: string;
882
+ };
883
+ nextKey: string;
884
+ nextIndex: string | number | bigint;
885
+ } | {
886
+ leaf: {
887
+ value: string;
888
+ slot: string;
889
+ };
890
+ nextKey: string;
891
+ nextIndex: string | number | bigint;
892
+ };
893
+ };
894
+ insertionWitnessData: {
895
+ path: string[];
896
+ index: string | number | bigint;
897
+ leaf: {
898
+ leaf: {
899
+ nullifier: string;
900
+ };
901
+ nextKey: string;
902
+ nextIndex: string | number | bigint;
903
+ } | {
904
+ leaf: {
905
+ value: string;
906
+ slot: string;
907
+ };
908
+ nextKey: string;
909
+ nextIndex: string | number | bigint;
910
+ };
911
+ };
912
+ }>, "many">;
913
+ sequentialInsertHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
914
+ hintKey: z.ZodEffects<z.ZodObject<{
915
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
916
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ root: import("@aztec/foundation/schemas").Fr;
919
+ nextAvailableLeafIndex: number;
920
+ }, {
921
+ root: string;
922
+ nextAvailableLeafIndex: string | number | bigint;
923
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
924
+ root: string;
925
+ nextAvailableLeafIndex: string | number | bigint;
926
+ }>;
927
+ stateAfter: z.ZodEffects<z.ZodObject<{
928
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
929
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
930
+ }, "strip", z.ZodTypeAny, {
931
+ root: import("@aztec/foundation/schemas").Fr;
932
+ nextAvailableLeafIndex: number;
933
+ }, {
934
+ root: string;
935
+ nextAvailableLeafIndex: string | number | bigint;
936
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
937
+ root: string;
938
+ nextAvailableLeafIndex: string | number | bigint;
939
+ }>;
940
+ treeId: z.ZodNumber;
941
+ leaf: z.ZodEffects<z.ZodObject<{
942
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ nullifier: import("@aztec/foundation/schemas").Fr;
945
+ }, {
946
+ nullifier: string;
947
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
948
+ nullifier: string;
949
+ }> | z.ZodEffects<z.ZodObject<{
950
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
951
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
952
+ }, "strip", z.ZodTypeAny, {
953
+ value: import("@aztec/foundation/schemas").Fr;
954
+ slot: import("@aztec/foundation/schemas").Fr;
955
+ }, {
956
+ value: string;
957
+ slot: string;
958
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
959
+ value: string;
960
+ slot: string;
961
+ }>;
962
+ lowLeavesWitnessData: z.ZodObject<{
963
+ leaf: z.ZodEffects<z.ZodObject<{
964
+ leaf: z.ZodEffects<z.ZodObject<{
965
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ nullifier: import("@aztec/foundation/schemas").Fr;
968
+ }, {
969
+ nullifier: string;
970
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
971
+ nullifier: string;
972
+ }>;
973
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
974
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
975
+ }, "strip", z.ZodTypeAny, {
976
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
977
+ nextKey: import("@aztec/foundation/schemas").Fr;
978
+ nextIndex: bigint;
979
+ }, {
980
+ leaf: {
981
+ nullifier: string;
982
+ };
983
+ nextKey: string;
984
+ nextIndex: string | number | bigint;
985
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
986
+ leaf: {
987
+ nullifier: string;
988
+ };
989
+ nextKey: string;
990
+ nextIndex: string | number | bigint;
991
+ }> | z.ZodEffects<z.ZodObject<{
992
+ leaf: z.ZodEffects<z.ZodObject<{
993
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
994
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ value: import("@aztec/foundation/schemas").Fr;
997
+ slot: import("@aztec/foundation/schemas").Fr;
998
+ }, {
999
+ value: string;
1000
+ slot: string;
1001
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1002
+ value: string;
1003
+ slot: string;
1004
+ }>;
1005
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1006
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1009
+ nextKey: import("@aztec/foundation/schemas").Fr;
1010
+ nextIndex: bigint;
1011
+ }, {
1012
+ leaf: {
1013
+ value: string;
1014
+ slot: string;
1015
+ };
1016
+ nextKey: string;
324
1017
  nextIndex: string | number | bigint;
325
- nextSlot: string;
326
- };
327
- };
328
- insertionPath: string[];
329
- newLeafPreimage: {
330
- value: string;
331
- slot: string;
332
- nextIndex: string | number | bigint;
333
- nextSlot: string;
334
- };
335
- }>, "many">;
336
- nullifierReads: z.ZodArray<z.ZodEffects<z.ZodObject<{
337
- lowLeafPreimage: z.ZodEffects<z.ZodObject<{
338
- nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
339
- nextNullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
340
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1018
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
1019
+ leaf: {
1020
+ value: string;
1021
+ slot: string;
1022
+ };
1023
+ nextKey: string;
1024
+ nextIndex: string | number | bigint;
1025
+ }>;
1026
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1027
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
341
1028
  }, "strip", z.ZodTypeAny, {
342
- nullifier: import("@aztec/foundation/schemas").Fr;
343
- nextNullifier: import("@aztec/foundation/schemas").Fr;
344
- nextIndex: bigint;
1029
+ path: import("@aztec/foundation/schemas").Fr[];
1030
+ index: bigint;
1031
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
345
1032
  }, {
346
- nullifier: string;
347
- nextNullifier: string;
348
- nextIndex: string | number | bigint;
349
- }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
350
- nullifier: string;
351
- nextNullifier: string;
352
- nextIndex: string | number | bigint;
1033
+ path: string[];
1034
+ index: string | number | bigint;
1035
+ leaf: {
1036
+ leaf: {
1037
+ nullifier: string;
1038
+ };
1039
+ nextKey: string;
1040
+ nextIndex: string | number | bigint;
1041
+ } | {
1042
+ leaf: {
1043
+ value: string;
1044
+ slot: string;
1045
+ };
1046
+ nextKey: string;
1047
+ nextIndex: string | number | bigint;
1048
+ };
353
1049
  }>;
354
- lowLeafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
355
- lowLeafSiblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
356
- }, "strip", z.ZodTypeAny, {
357
- lowLeafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage;
358
- lowLeafIndex: import("@aztec/foundation/schemas").Fr;
359
- lowLeafSiblingPath: import("@aztec/foundation/schemas").Fr[];
360
- }, {
361
- lowLeafPreimage: {
362
- nullifier: string;
363
- nextNullifier: string;
364
- nextIndex: string | number | bigint;
365
- };
366
- lowLeafIndex: string;
367
- lowLeafSiblingPath: string[];
368
- }>, import("../avm/avm.js").AvmNullifierReadTreeHint, {
369
- lowLeafPreimage: {
370
- nullifier: string;
371
- nextNullifier: string;
372
- nextIndex: string | number | bigint;
373
- };
374
- lowLeafIndex: string;
375
- lowLeafSiblingPath: string[];
376
- }>, "many">;
377
- nullifierWrites: z.ZodArray<z.ZodEffects<z.ZodObject<{
378
- lowLeafRead: z.ZodEffects<z.ZodObject<{
379
- lowLeafPreimage: z.ZodEffects<z.ZodObject<{
380
- nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
381
- nextNullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1050
+ insertionWitnessData: z.ZodObject<{
1051
+ leaf: z.ZodEffects<z.ZodObject<{
1052
+ leaf: z.ZodEffects<z.ZodObject<{
1053
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ nullifier: import("@aztec/foundation/schemas").Fr;
1056
+ }, {
1057
+ nullifier: string;
1058
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1059
+ nullifier: string;
1060
+ }>;
1061
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
382
1062
  nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
383
1063
  }, "strip", z.ZodTypeAny, {
384
- nullifier: import("@aztec/foundation/schemas").Fr;
385
- nextNullifier: import("@aztec/foundation/schemas").Fr;
1064
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
1065
+ nextKey: import("@aztec/foundation/schemas").Fr;
386
1066
  nextIndex: bigint;
387
1067
  }, {
388
- nullifier: string;
389
- nextNullifier: string;
1068
+ leaf: {
1069
+ nullifier: string;
1070
+ };
1071
+ nextKey: string;
390
1072
  nextIndex: string | number | bigint;
391
1073
  }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
392
- nullifier: string;
393
- nextNullifier: string;
1074
+ leaf: {
1075
+ nullifier: string;
1076
+ };
1077
+ nextKey: string;
1078
+ nextIndex: string | number | bigint;
1079
+ }> | z.ZodEffects<z.ZodObject<{
1080
+ leaf: z.ZodEffects<z.ZodObject<{
1081
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1082
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ value: import("@aztec/foundation/schemas").Fr;
1085
+ slot: import("@aztec/foundation/schemas").Fr;
1086
+ }, {
1087
+ value: string;
1088
+ slot: string;
1089
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1090
+ value: string;
1091
+ slot: string;
1092
+ }>;
1093
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1094
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1097
+ nextKey: import("@aztec/foundation/schemas").Fr;
1098
+ nextIndex: bigint;
1099
+ }, {
1100
+ leaf: {
1101
+ value: string;
1102
+ slot: string;
1103
+ };
1104
+ nextKey: string;
1105
+ nextIndex: string | number | bigint;
1106
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
1107
+ leaf: {
1108
+ value: string;
1109
+ slot: string;
1110
+ };
1111
+ nextKey: string;
394
1112
  nextIndex: string | number | bigint;
395
1113
  }>;
396
- lowLeafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
397
- lowLeafSiblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
1114
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1115
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
398
1116
  }, "strip", z.ZodTypeAny, {
399
- lowLeafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage;
400
- lowLeafIndex: import("@aztec/foundation/schemas").Fr;
401
- lowLeafSiblingPath: import("@aztec/foundation/schemas").Fr[];
1117
+ path: import("@aztec/foundation/schemas").Fr[];
1118
+ index: bigint;
1119
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
402
1120
  }, {
403
- lowLeafPreimage: {
404
- nullifier: string;
405
- nextNullifier: string;
1121
+ path: string[];
1122
+ index: string | number | bigint;
1123
+ leaf: {
1124
+ leaf: {
1125
+ nullifier: string;
1126
+ };
1127
+ nextKey: string;
406
1128
  nextIndex: string | number | bigint;
407
- };
408
- lowLeafIndex: string;
409
- lowLeafSiblingPath: string[];
410
- }>, import("../avm/avm.js").AvmNullifierReadTreeHint, {
411
- lowLeafPreimage: {
412
- nullifier: string;
413
- nextNullifier: string;
1129
+ } | {
1130
+ leaf: {
1131
+ value: string;
1132
+ slot: string;
1133
+ };
1134
+ nextKey: string;
414
1135
  nextIndex: string | number | bigint;
415
1136
  };
416
- lowLeafIndex: string;
417
- lowLeafSiblingPath: string[];
418
1137
  }>;
419
- insertionPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
420
1138
  }, "strip", z.ZodTypeAny, {
421
- lowLeafRead: import("../avm/avm.js").AvmNullifierReadTreeHint;
422
- insertionPath: import("@aztec/foundation/schemas").Fr[];
1139
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1140
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1141
+ treeId: number;
1142
+ stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1143
+ lowLeavesWitnessData: {
1144
+ path: import("@aztec/foundation/schemas").Fr[];
1145
+ index: bigint;
1146
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1147
+ };
1148
+ insertionWitnessData: {
1149
+ path: import("@aztec/foundation/schemas").Fr[];
1150
+ index: bigint;
1151
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1152
+ };
423
1153
  }, {
424
- lowLeafRead: {
425
- lowLeafPreimage: {
426
- nullifier: string;
427
- nextNullifier: string;
1154
+ leaf: {
1155
+ nullifier: string;
1156
+ } | {
1157
+ value: string;
1158
+ slot: string;
1159
+ };
1160
+ hintKey: {
1161
+ root: string;
1162
+ nextAvailableLeafIndex: string | number | bigint;
1163
+ };
1164
+ treeId: number;
1165
+ stateAfter: {
1166
+ root: string;
1167
+ nextAvailableLeafIndex: string | number | bigint;
1168
+ };
1169
+ lowLeavesWitnessData: {
1170
+ path: string[];
1171
+ index: string | number | bigint;
1172
+ leaf: {
1173
+ leaf: {
1174
+ nullifier: string;
1175
+ };
1176
+ nextKey: string;
1177
+ nextIndex: string | number | bigint;
1178
+ } | {
1179
+ leaf: {
1180
+ value: string;
1181
+ slot: string;
1182
+ };
1183
+ nextKey: string;
428
1184
  nextIndex: string | number | bigint;
429
1185
  };
430
- lowLeafIndex: string;
431
- lowLeafSiblingPath: string[];
432
1186
  };
433
- insertionPath: string[];
434
- }>, import("../avm/avm.js").AvmNullifierWriteTreeHint, {
435
- lowLeafRead: {
436
- lowLeafPreimage: {
437
- nullifier: string;
438
- nextNullifier: string;
1187
+ insertionWitnessData: {
1188
+ path: string[];
1189
+ index: string | number | bigint;
1190
+ leaf: {
1191
+ leaf: {
1192
+ nullifier: string;
1193
+ };
1194
+ nextKey: string;
1195
+ nextIndex: string | number | bigint;
1196
+ } | {
1197
+ leaf: {
1198
+ value: string;
1199
+ slot: string;
1200
+ };
1201
+ nextKey: string;
439
1202
  nextIndex: string | number | bigint;
440
1203
  };
441
- lowLeafIndex: string;
442
- lowLeafSiblingPath: string[];
443
1204
  };
444
- insertionPath: string[];
445
- }>, "many">;
446
- noteHashReads: z.ZodArray<z.ZodEffects<z.ZodObject<{
447
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
448
- value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
449
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
450
- }, "strip", z.ZodTypeAny, {
451
- value: import("@aztec/foundation/schemas").Fr;
452
- leafIndex: import("@aztec/foundation/schemas").Fr;
453
- siblingPath: import("@aztec/foundation/schemas").Fr[];
454
- }, {
455
- value: string;
456
- leafIndex: string;
457
- siblingPath: string[];
458
- }>, import("../avm/avm.js").AvmAppendTreeHint, {
459
- value: string;
460
- leafIndex: string;
461
- siblingPath: string[];
462
- }>, "many">;
463
- noteHashWrites: z.ZodArray<z.ZodEffects<z.ZodObject<{
464
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
465
- value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
466
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
467
- }, "strip", z.ZodTypeAny, {
468
- value: import("@aztec/foundation/schemas").Fr;
469
- leafIndex: import("@aztec/foundation/schemas").Fr;
470
- siblingPath: import("@aztec/foundation/schemas").Fr[];
471
- }, {
472
- value: string;
473
- leafIndex: string;
474
- siblingPath: string[];
475
- }>, import("../avm/avm.js").AvmAppendTreeHint, {
476
- value: string;
477
- leafIndex: string;
478
- siblingPath: string[];
479
- }>, "many">;
480
- l1ToL2MessageReads: z.ZodArray<z.ZodEffects<z.ZodObject<{
481
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
482
- value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
483
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
484
- }, "strip", z.ZodTypeAny, {
485
- value: import("@aztec/foundation/schemas").Fr;
486
- leafIndex: import("@aztec/foundation/schemas").Fr;
487
- siblingPath: import("@aztec/foundation/schemas").Fr[];
1205
+ }>, {
1206
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1207
+ readonly stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1208
+ readonly treeId: import("../trees/merkle_tree_id.js").MerkleTreeId;
1209
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1210
+ readonly lowLeavesWitnessData: {
1211
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1212
+ index: bigint;
1213
+ path: import("@aztec/foundation/schemas").Fr[];
1214
+ };
1215
+ readonly insertionWitnessData: {
1216
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1217
+ index: bigint;
1218
+ path: import("@aztec/foundation/schemas").Fr[];
1219
+ };
488
1220
  }, {
489
- value: string;
490
- leafIndex: string;
491
- siblingPath: string[];
492
- }>, import("../avm/avm.js").AvmAppendTreeHint, {
493
- value: string;
494
- leafIndex: string;
495
- siblingPath: string[];
1221
+ leaf: {
1222
+ nullifier: string;
1223
+ } | {
1224
+ value: string;
1225
+ slot: string;
1226
+ };
1227
+ hintKey: {
1228
+ root: string;
1229
+ nextAvailableLeafIndex: string | number | bigint;
1230
+ };
1231
+ treeId: number;
1232
+ stateAfter: {
1233
+ root: string;
1234
+ nextAvailableLeafIndex: string | number | bigint;
1235
+ };
1236
+ lowLeavesWitnessData: {
1237
+ path: string[];
1238
+ index: string | number | bigint;
1239
+ leaf: {
1240
+ leaf: {
1241
+ nullifier: string;
1242
+ };
1243
+ nextKey: string;
1244
+ nextIndex: string | number | bigint;
1245
+ } | {
1246
+ leaf: {
1247
+ value: string;
1248
+ slot: string;
1249
+ };
1250
+ nextKey: string;
1251
+ nextIndex: string | number | bigint;
1252
+ };
1253
+ };
1254
+ insertionWitnessData: {
1255
+ path: string[];
1256
+ index: string | number | bigint;
1257
+ leaf: {
1258
+ leaf: {
1259
+ nullifier: string;
1260
+ };
1261
+ nextKey: string;
1262
+ nextIndex: string | number | bigint;
1263
+ } | {
1264
+ leaf: {
1265
+ value: string;
1266
+ slot: string;
1267
+ };
1268
+ nextKey: string;
1269
+ nextIndex: string | number | bigint;
1270
+ };
1271
+ };
496
1272
  }>, "many">;
497
1273
  }, "strip", z.ZodTypeAny, {
498
- publicDataWrites: import("../avm/avm.js").AvmPublicDataWriteTreeHint[];
499
1274
  enqueuedCalls: import("../avm/avm.js").AvmEnqueuedCallHint[];
500
1275
  contractInstances: import("../avm/avm.js").AvmContractInstanceHint[];
501
1276
  contractClasses: import("../avm/avm.js").AvmContractClassHint[];
502
1277
  bytecodeCommitments: import("../avm/avm.js").AvmBytecodeCommitmentHint[];
503
- publicDataReads: import("../avm/avm.js").AvmPublicDataReadTreeHint[];
504
- nullifierReads: import("../avm/avm.js").AvmNullifierReadTreeHint[];
505
- nullifierWrites: import("../avm/avm.js").AvmNullifierWriteTreeHint[];
506
- noteHashReads: import("../avm/avm.js").AvmAppendTreeHint[];
507
- noteHashWrites: import("../avm/avm.js").AvmAppendTreeHint[];
508
- l1ToL2MessageReads: import("../avm/avm.js").AvmAppendTreeHint[];
509
- }, {
510
- publicDataWrites: {
511
- lowLeafRead: {
512
- leafIndex: string;
513
- siblingPath: string[];
514
- leafPreimage: {
515
- value: string;
516
- slot: string;
517
- nextIndex: string | number | bigint;
518
- nextSlot: string;
519
- };
1278
+ getSiblingPathHints: import("../avm/avm.js").AvmGetSiblingPathHint[];
1279
+ getPreviousValueIndexHints: import("../avm/avm.js").AvmGetPreviousValueIndexHint[];
1280
+ getLeafPreimageHintsPublicDataTree: {
1281
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1282
+ readonly index: bigint;
1283
+ readonly leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1284
+ }[];
1285
+ getLeafPreimageHintsNullifierTree: {
1286
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1287
+ readonly index: bigint;
1288
+ readonly leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1289
+ }[];
1290
+ getLeafValueHints: import("../avm/avm.js").AvmGetLeafValueHint[];
1291
+ sequentialInsertHintsPublicDataTree: {
1292
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1293
+ readonly stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1294
+ readonly treeId: import("../trees/merkle_tree_id.js").MerkleTreeId;
1295
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1296
+ readonly lowLeavesWitnessData: {
1297
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1298
+ index: bigint;
1299
+ path: import("@aztec/foundation/schemas").Fr[];
1300
+ };
1301
+ readonly insertionWitnessData: {
1302
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1303
+ index: bigint;
1304
+ path: import("@aztec/foundation/schemas").Fr[];
520
1305
  };
521
- insertionPath: string[];
522
- newLeafPreimage: {
523
- value: string;
524
- slot: string;
525
- nextIndex: string | number | bigint;
526
- nextSlot: string;
1306
+ }[];
1307
+ sequentialInsertHintsNullifierTree: {
1308
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1309
+ readonly stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1310
+ readonly treeId: import("../trees/merkle_tree_id.js").MerkleTreeId;
1311
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1312
+ readonly lowLeavesWitnessData: {
1313
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1314
+ index: bigint;
1315
+ path: import("@aztec/foundation/schemas").Fr[];
1316
+ };
1317
+ readonly insertionWitnessData: {
1318
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1319
+ index: bigint;
1320
+ path: import("@aztec/foundation/schemas").Fr[];
527
1321
  };
528
1322
  }[];
1323
+ }, {
529
1324
  enqueuedCalls: {
530
1325
  isStaticCall: boolean;
531
1326
  calldata: string[];
@@ -559,72 +1354,183 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
559
1354
  classId: string;
560
1355
  commitment: string;
561
1356
  }[];
562
- publicDataReads: {
563
- leafIndex: string;
564
- siblingPath: string[];
565
- leafPreimage: {
566
- value: string;
567
- slot: string;
568
- nextIndex: string | number | bigint;
569
- nextSlot: string;
1357
+ getSiblingPathHints: {
1358
+ path: string[];
1359
+ index: string | number | bigint;
1360
+ hintKey: {
1361
+ root: string;
1362
+ nextAvailableLeafIndex: string | number | bigint;
570
1363
  };
1364
+ treeId: number;
571
1365
  }[];
572
- nullifierReads: {
573
- lowLeafPreimage: {
574
- nullifier: string;
575
- nextNullifier: string;
576
- nextIndex: string | number | bigint;
1366
+ getPreviousValueIndexHints: {
1367
+ value: string;
1368
+ index: string | number | bigint;
1369
+ hintKey: {
1370
+ root: string;
1371
+ nextAvailableLeafIndex: string | number | bigint;
577
1372
  };
578
- lowLeafIndex: string;
579
- lowLeafSiblingPath: string[];
1373
+ treeId: number;
1374
+ alreadyPresent: boolean;
580
1375
  }[];
581
- nullifierWrites: {
582
- lowLeafRead: {
583
- lowLeafPreimage: {
1376
+ getLeafPreimageHintsPublicDataTree: {
1377
+ index: string | number | bigint;
1378
+ hintKey: {
1379
+ root: string;
1380
+ nextAvailableLeafIndex: string | number | bigint;
1381
+ };
1382
+ leafPreimage: {
1383
+ leaf: {
584
1384
  nullifier: string;
585
- nextNullifier: string;
586
- nextIndex: string | number | bigint;
587
1385
  };
588
- lowLeafIndex: string;
589
- lowLeafSiblingPath: string[];
1386
+ nextKey: string;
1387
+ nextIndex: string | number | bigint;
1388
+ } | {
1389
+ leaf: {
1390
+ value: string;
1391
+ slot: string;
1392
+ };
1393
+ nextKey: string;
1394
+ nextIndex: string | number | bigint;
590
1395
  };
591
- insertionPath: string[];
592
1396
  }[];
593
- noteHashReads: {
594
- value: string;
595
- leafIndex: string;
596
- siblingPath: string[];
597
- }[];
598
- noteHashWrites: {
599
- value: string;
600
- leafIndex: string;
601
- siblingPath: string[];
1397
+ getLeafPreimageHintsNullifierTree: {
1398
+ index: string | number | bigint;
1399
+ hintKey: {
1400
+ root: string;
1401
+ nextAvailableLeafIndex: string | number | bigint;
1402
+ };
1403
+ leafPreimage: {
1404
+ leaf: {
1405
+ nullifier: string;
1406
+ };
1407
+ nextKey: string;
1408
+ nextIndex: string | number | bigint;
1409
+ } | {
1410
+ leaf: {
1411
+ value: string;
1412
+ slot: string;
1413
+ };
1414
+ nextKey: string;
1415
+ nextIndex: string | number | bigint;
1416
+ };
602
1417
  }[];
603
- l1ToL2MessageReads: {
1418
+ getLeafValueHints: {
604
1419
  value: string;
605
- leafIndex: string;
606
- siblingPath: string[];
1420
+ index: string | number | bigint;
1421
+ hintKey: {
1422
+ root: string;
1423
+ nextAvailableLeafIndex: string | number | bigint;
1424
+ };
1425
+ treeId: number;
607
1426
  }[];
608
- }>, import("../avm/avm.js").AvmExecutionHints, {
609
- publicDataWrites: {
610
- lowLeafRead: {
611
- leafIndex: string;
612
- siblingPath: string[];
613
- leafPreimage: {
614
- value: string;
615
- slot: string;
1427
+ sequentialInsertHintsPublicDataTree: {
1428
+ leaf: {
1429
+ nullifier: string;
1430
+ } | {
1431
+ value: string;
1432
+ slot: string;
1433
+ };
1434
+ hintKey: {
1435
+ root: string;
1436
+ nextAvailableLeafIndex: string | number | bigint;
1437
+ };
1438
+ treeId: number;
1439
+ stateAfter: {
1440
+ root: string;
1441
+ nextAvailableLeafIndex: string | number | bigint;
1442
+ };
1443
+ lowLeavesWitnessData: {
1444
+ path: string[];
1445
+ index: string | number | bigint;
1446
+ leaf: {
1447
+ leaf: {
1448
+ nullifier: string;
1449
+ };
1450
+ nextKey: string;
1451
+ nextIndex: string | number | bigint;
1452
+ } | {
1453
+ leaf: {
1454
+ value: string;
1455
+ slot: string;
1456
+ };
1457
+ nextKey: string;
1458
+ nextIndex: string | number | bigint;
1459
+ };
1460
+ };
1461
+ insertionWitnessData: {
1462
+ path: string[];
1463
+ index: string | number | bigint;
1464
+ leaf: {
1465
+ leaf: {
1466
+ nullifier: string;
1467
+ };
1468
+ nextKey: string;
1469
+ nextIndex: string | number | bigint;
1470
+ } | {
1471
+ leaf: {
1472
+ value: string;
1473
+ slot: string;
1474
+ };
1475
+ nextKey: string;
616
1476
  nextIndex: string | number | bigint;
617
- nextSlot: string;
618
1477
  };
619
1478
  };
620
- insertionPath: string[];
621
- newLeafPreimage: {
1479
+ }[];
1480
+ sequentialInsertHintsNullifierTree: {
1481
+ leaf: {
1482
+ nullifier: string;
1483
+ } | {
622
1484
  value: string;
623
1485
  slot: string;
624
- nextIndex: string | number | bigint;
625
- nextSlot: string;
1486
+ };
1487
+ hintKey: {
1488
+ root: string;
1489
+ nextAvailableLeafIndex: string | number | bigint;
1490
+ };
1491
+ treeId: number;
1492
+ stateAfter: {
1493
+ root: string;
1494
+ nextAvailableLeafIndex: string | number | bigint;
1495
+ };
1496
+ lowLeavesWitnessData: {
1497
+ path: string[];
1498
+ index: string | number | bigint;
1499
+ leaf: {
1500
+ leaf: {
1501
+ nullifier: string;
1502
+ };
1503
+ nextKey: string;
1504
+ nextIndex: string | number | bigint;
1505
+ } | {
1506
+ leaf: {
1507
+ value: string;
1508
+ slot: string;
1509
+ };
1510
+ nextKey: string;
1511
+ nextIndex: string | number | bigint;
1512
+ };
1513
+ };
1514
+ insertionWitnessData: {
1515
+ path: string[];
1516
+ index: string | number | bigint;
1517
+ leaf: {
1518
+ leaf: {
1519
+ nullifier: string;
1520
+ };
1521
+ nextKey: string;
1522
+ nextIndex: string | number | bigint;
1523
+ } | {
1524
+ leaf: {
1525
+ value: string;
1526
+ slot: string;
1527
+ };
1528
+ nextKey: string;
1529
+ nextIndex: string | number | bigint;
1530
+ };
626
1531
  };
627
1532
  }[];
1533
+ }>, import("../avm/avm.js").AvmExecutionHints, {
628
1534
  enqueuedCalls: {
629
1535
  isStaticCall: boolean;
630
1536
  calldata: string[];
@@ -658,51 +1564,181 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
658
1564
  classId: string;
659
1565
  commitment: string;
660
1566
  }[];
661
- publicDataReads: {
662
- leafIndex: string;
663
- siblingPath: string[];
1567
+ getSiblingPathHints: {
1568
+ path: string[];
1569
+ index: string | number | bigint;
1570
+ hintKey: {
1571
+ root: string;
1572
+ nextAvailableLeafIndex: string | number | bigint;
1573
+ };
1574
+ treeId: number;
1575
+ }[];
1576
+ getPreviousValueIndexHints: {
1577
+ value: string;
1578
+ index: string | number | bigint;
1579
+ hintKey: {
1580
+ root: string;
1581
+ nextAvailableLeafIndex: string | number | bigint;
1582
+ };
1583
+ treeId: number;
1584
+ alreadyPresent: boolean;
1585
+ }[];
1586
+ getLeafPreimageHintsPublicDataTree: {
1587
+ index: string | number | bigint;
1588
+ hintKey: {
1589
+ root: string;
1590
+ nextAvailableLeafIndex: string | number | bigint;
1591
+ };
664
1592
  leafPreimage: {
665
- value: string;
666
- slot: string;
1593
+ leaf: {
1594
+ nullifier: string;
1595
+ };
1596
+ nextKey: string;
1597
+ nextIndex: string | number | bigint;
1598
+ } | {
1599
+ leaf: {
1600
+ value: string;
1601
+ slot: string;
1602
+ };
1603
+ nextKey: string;
667
1604
  nextIndex: string | number | bigint;
668
- nextSlot: string;
669
1605
  };
670
1606
  }[];
671
- nullifierReads: {
672
- lowLeafPreimage: {
673
- nullifier: string;
674
- nextNullifier: string;
1607
+ getLeafPreimageHintsNullifierTree: {
1608
+ index: string | number | bigint;
1609
+ hintKey: {
1610
+ root: string;
1611
+ nextAvailableLeafIndex: string | number | bigint;
1612
+ };
1613
+ leafPreimage: {
1614
+ leaf: {
1615
+ nullifier: string;
1616
+ };
1617
+ nextKey: string;
1618
+ nextIndex: string | number | bigint;
1619
+ } | {
1620
+ leaf: {
1621
+ value: string;
1622
+ slot: string;
1623
+ };
1624
+ nextKey: string;
675
1625
  nextIndex: string | number | bigint;
676
1626
  };
677
- lowLeafIndex: string;
678
- lowLeafSiblingPath: string[];
679
1627
  }[];
680
- nullifierWrites: {
681
- lowLeafRead: {
682
- lowLeafPreimage: {
683
- nullifier: string;
684
- nextNullifier: string;
1628
+ getLeafValueHints: {
1629
+ value: string;
1630
+ index: string | number | bigint;
1631
+ hintKey: {
1632
+ root: string;
1633
+ nextAvailableLeafIndex: string | number | bigint;
1634
+ };
1635
+ treeId: number;
1636
+ }[];
1637
+ sequentialInsertHintsPublicDataTree: {
1638
+ leaf: {
1639
+ nullifier: string;
1640
+ } | {
1641
+ value: string;
1642
+ slot: string;
1643
+ };
1644
+ hintKey: {
1645
+ root: string;
1646
+ nextAvailableLeafIndex: string | number | bigint;
1647
+ };
1648
+ treeId: number;
1649
+ stateAfter: {
1650
+ root: string;
1651
+ nextAvailableLeafIndex: string | number | bigint;
1652
+ };
1653
+ lowLeavesWitnessData: {
1654
+ path: string[];
1655
+ index: string | number | bigint;
1656
+ leaf: {
1657
+ leaf: {
1658
+ nullifier: string;
1659
+ };
1660
+ nextKey: string;
1661
+ nextIndex: string | number | bigint;
1662
+ } | {
1663
+ leaf: {
1664
+ value: string;
1665
+ slot: string;
1666
+ };
1667
+ nextKey: string;
1668
+ nextIndex: string | number | bigint;
1669
+ };
1670
+ };
1671
+ insertionWitnessData: {
1672
+ path: string[];
1673
+ index: string | number | bigint;
1674
+ leaf: {
1675
+ leaf: {
1676
+ nullifier: string;
1677
+ };
1678
+ nextKey: string;
1679
+ nextIndex: string | number | bigint;
1680
+ } | {
1681
+ leaf: {
1682
+ value: string;
1683
+ slot: string;
1684
+ };
1685
+ nextKey: string;
1686
+ nextIndex: string | number | bigint;
1687
+ };
1688
+ };
1689
+ }[];
1690
+ sequentialInsertHintsNullifierTree: {
1691
+ leaf: {
1692
+ nullifier: string;
1693
+ } | {
1694
+ value: string;
1695
+ slot: string;
1696
+ };
1697
+ hintKey: {
1698
+ root: string;
1699
+ nextAvailableLeafIndex: string | number | bigint;
1700
+ };
1701
+ treeId: number;
1702
+ stateAfter: {
1703
+ root: string;
1704
+ nextAvailableLeafIndex: string | number | bigint;
1705
+ };
1706
+ lowLeavesWitnessData: {
1707
+ path: string[];
1708
+ index: string | number | bigint;
1709
+ leaf: {
1710
+ leaf: {
1711
+ nullifier: string;
1712
+ };
1713
+ nextKey: string;
1714
+ nextIndex: string | number | bigint;
1715
+ } | {
1716
+ leaf: {
1717
+ value: string;
1718
+ slot: string;
1719
+ };
1720
+ nextKey: string;
1721
+ nextIndex: string | number | bigint;
1722
+ };
1723
+ };
1724
+ insertionWitnessData: {
1725
+ path: string[];
1726
+ index: string | number | bigint;
1727
+ leaf: {
1728
+ leaf: {
1729
+ nullifier: string;
1730
+ };
1731
+ nextKey: string;
1732
+ nextIndex: string | number | bigint;
1733
+ } | {
1734
+ leaf: {
1735
+ value: string;
1736
+ slot: string;
1737
+ };
1738
+ nextKey: string;
685
1739
  nextIndex: string | number | bigint;
686
1740
  };
687
- lowLeafIndex: string;
688
- lowLeafSiblingPath: string[];
689
1741
  };
690
- insertionPath: string[];
691
- }[];
692
- noteHashReads: {
693
- value: string;
694
- leafIndex: string;
695
- siblingPath: string[];
696
- }[];
697
- noteHashWrites: {
698
- value: string;
699
- leafIndex: string;
700
- siblingPath: string[];
701
- }[];
702
- l1ToL2MessageReads: {
703
- value: string;
704
- leafIndex: string;
705
- siblingPath: string[];
706
1742
  }[];
707
1743
  }>;
708
1744
  publicInputs: z.ZodEffects<z.ZodObject<{
@@ -1717,25 +2753,6 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1717
2753
  calldata: string[];
1718
2754
  functionName: string;
1719
2755
  hints: {
1720
- publicDataWrites: {
1721
- lowLeafRead: {
1722
- leafIndex: string;
1723
- siblingPath: string[];
1724
- leafPreimage: {
1725
- value: string;
1726
- slot: string;
1727
- nextIndex: string | number | bigint;
1728
- nextSlot: string;
1729
- };
1730
- };
1731
- insertionPath: string[];
1732
- newLeafPreimage: {
1733
- value: string;
1734
- slot: string;
1735
- nextIndex: string | number | bigint;
1736
- nextSlot: string;
1737
- };
1738
- }[];
1739
2756
  enqueuedCalls: {
1740
2757
  isStaticCall: boolean;
1741
2758
  calldata: string[];
@@ -1769,51 +2786,181 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1769
2786
  classId: string;
1770
2787
  commitment: string;
1771
2788
  }[];
1772
- publicDataReads: {
1773
- leafIndex: string;
1774
- siblingPath: string[];
1775
- leafPreimage: {
1776
- value: string;
1777
- slot: string;
1778
- nextIndex: string | number | bigint;
1779
- nextSlot: string;
2789
+ getSiblingPathHints: {
2790
+ path: string[];
2791
+ index: string | number | bigint;
2792
+ hintKey: {
2793
+ root: string;
2794
+ nextAvailableLeafIndex: string | number | bigint;
1780
2795
  };
2796
+ treeId: number;
1781
2797
  }[];
1782
- nullifierReads: {
1783
- lowLeafPreimage: {
1784
- nullifier: string;
1785
- nextNullifier: string;
2798
+ getPreviousValueIndexHints: {
2799
+ value: string;
2800
+ index: string | number | bigint;
2801
+ hintKey: {
2802
+ root: string;
2803
+ nextAvailableLeafIndex: string | number | bigint;
2804
+ };
2805
+ treeId: number;
2806
+ alreadyPresent: boolean;
2807
+ }[];
2808
+ getLeafPreimageHintsPublicDataTree: {
2809
+ index: string | number | bigint;
2810
+ hintKey: {
2811
+ root: string;
2812
+ nextAvailableLeafIndex: string | number | bigint;
2813
+ };
2814
+ leafPreimage: {
2815
+ leaf: {
2816
+ nullifier: string;
2817
+ };
2818
+ nextKey: string;
2819
+ nextIndex: string | number | bigint;
2820
+ } | {
2821
+ leaf: {
2822
+ value: string;
2823
+ slot: string;
2824
+ };
2825
+ nextKey: string;
1786
2826
  nextIndex: string | number | bigint;
1787
2827
  };
1788
- lowLeafIndex: string;
1789
- lowLeafSiblingPath: string[];
1790
2828
  }[];
1791
- nullifierWrites: {
1792
- lowLeafRead: {
1793
- lowLeafPreimage: {
2829
+ getLeafPreimageHintsNullifierTree: {
2830
+ index: string | number | bigint;
2831
+ hintKey: {
2832
+ root: string;
2833
+ nextAvailableLeafIndex: string | number | bigint;
2834
+ };
2835
+ leafPreimage: {
2836
+ leaf: {
1794
2837
  nullifier: string;
1795
- nextNullifier: string;
1796
- nextIndex: string | number | bigint;
1797
2838
  };
1798
- lowLeafIndex: string;
1799
- lowLeafSiblingPath: string[];
2839
+ nextKey: string;
2840
+ nextIndex: string | number | bigint;
2841
+ } | {
2842
+ leaf: {
2843
+ value: string;
2844
+ slot: string;
2845
+ };
2846
+ nextKey: string;
2847
+ nextIndex: string | number | bigint;
1800
2848
  };
1801
- insertionPath: string[];
1802
2849
  }[];
1803
- noteHashReads: {
2850
+ getLeafValueHints: {
1804
2851
  value: string;
1805
- leafIndex: string;
1806
- siblingPath: string[];
2852
+ index: string | number | bigint;
2853
+ hintKey: {
2854
+ root: string;
2855
+ nextAvailableLeafIndex: string | number | bigint;
2856
+ };
2857
+ treeId: number;
1807
2858
  }[];
1808
- noteHashWrites: {
1809
- value: string;
1810
- leafIndex: string;
1811
- siblingPath: string[];
2859
+ sequentialInsertHintsPublicDataTree: {
2860
+ leaf: {
2861
+ nullifier: string;
2862
+ } | {
2863
+ value: string;
2864
+ slot: string;
2865
+ };
2866
+ hintKey: {
2867
+ root: string;
2868
+ nextAvailableLeafIndex: string | number | bigint;
2869
+ };
2870
+ treeId: number;
2871
+ stateAfter: {
2872
+ root: string;
2873
+ nextAvailableLeafIndex: string | number | bigint;
2874
+ };
2875
+ lowLeavesWitnessData: {
2876
+ path: string[];
2877
+ index: string | number | bigint;
2878
+ leaf: {
2879
+ leaf: {
2880
+ nullifier: string;
2881
+ };
2882
+ nextKey: string;
2883
+ nextIndex: string | number | bigint;
2884
+ } | {
2885
+ leaf: {
2886
+ value: string;
2887
+ slot: string;
2888
+ };
2889
+ nextKey: string;
2890
+ nextIndex: string | number | bigint;
2891
+ };
2892
+ };
2893
+ insertionWitnessData: {
2894
+ path: string[];
2895
+ index: string | number | bigint;
2896
+ leaf: {
2897
+ leaf: {
2898
+ nullifier: string;
2899
+ };
2900
+ nextKey: string;
2901
+ nextIndex: string | number | bigint;
2902
+ } | {
2903
+ leaf: {
2904
+ value: string;
2905
+ slot: string;
2906
+ };
2907
+ nextKey: string;
2908
+ nextIndex: string | number | bigint;
2909
+ };
2910
+ };
1812
2911
  }[];
1813
- l1ToL2MessageReads: {
1814
- value: string;
1815
- leafIndex: string;
1816
- siblingPath: string[];
2912
+ sequentialInsertHintsNullifierTree: {
2913
+ leaf: {
2914
+ nullifier: string;
2915
+ } | {
2916
+ value: string;
2917
+ slot: string;
2918
+ };
2919
+ hintKey: {
2920
+ root: string;
2921
+ nextAvailableLeafIndex: string | number | bigint;
2922
+ };
2923
+ treeId: number;
2924
+ stateAfter: {
2925
+ root: string;
2926
+ nextAvailableLeafIndex: string | number | bigint;
2927
+ };
2928
+ lowLeavesWitnessData: {
2929
+ path: string[];
2930
+ index: string | number | bigint;
2931
+ leaf: {
2932
+ leaf: {
2933
+ nullifier: string;
2934
+ };
2935
+ nextKey: string;
2936
+ nextIndex: string | number | bigint;
2937
+ } | {
2938
+ leaf: {
2939
+ value: string;
2940
+ slot: string;
2941
+ };
2942
+ nextKey: string;
2943
+ nextIndex: string | number | bigint;
2944
+ };
2945
+ };
2946
+ insertionWitnessData: {
2947
+ path: string[];
2948
+ index: string | number | bigint;
2949
+ leaf: {
2950
+ leaf: {
2951
+ nullifier: string;
2952
+ };
2953
+ nextKey: string;
2954
+ nextIndex: string | number | bigint;
2955
+ } | {
2956
+ leaf: {
2957
+ value: string;
2958
+ slot: string;
2959
+ };
2960
+ nextKey: string;
2961
+ nextIndex: string | number | bigint;
2962
+ };
2963
+ };
1817
2964
  }[];
1818
2965
  };
1819
2966
  publicInputs: {
@@ -1969,25 +3116,6 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1969
3116
  calldata: string[];
1970
3117
  functionName: string;
1971
3118
  hints: {
1972
- publicDataWrites: {
1973
- lowLeafRead: {
1974
- leafIndex: string;
1975
- siblingPath: string[];
1976
- leafPreimage: {
1977
- value: string;
1978
- slot: string;
1979
- nextIndex: string | number | bigint;
1980
- nextSlot: string;
1981
- };
1982
- };
1983
- insertionPath: string[];
1984
- newLeafPreimage: {
1985
- value: string;
1986
- slot: string;
1987
- nextIndex: string | number | bigint;
1988
- nextSlot: string;
1989
- };
1990
- }[];
1991
3119
  enqueuedCalls: {
1992
3120
  isStaticCall: boolean;
1993
3121
  calldata: string[];
@@ -2021,51 +3149,181 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2021
3149
  classId: string;
2022
3150
  commitment: string;
2023
3151
  }[];
2024
- publicDataReads: {
2025
- leafIndex: string;
2026
- siblingPath: string[];
2027
- leafPreimage: {
2028
- value: string;
2029
- slot: string;
2030
- nextIndex: string | number | bigint;
2031
- nextSlot: string;
3152
+ getSiblingPathHints: {
3153
+ path: string[];
3154
+ index: string | number | bigint;
3155
+ hintKey: {
3156
+ root: string;
3157
+ nextAvailableLeafIndex: string | number | bigint;
2032
3158
  };
3159
+ treeId: number;
2033
3160
  }[];
2034
- nullifierReads: {
2035
- lowLeafPreimage: {
2036
- nullifier: string;
2037
- nextNullifier: string;
3161
+ getPreviousValueIndexHints: {
3162
+ value: string;
3163
+ index: string | number | bigint;
3164
+ hintKey: {
3165
+ root: string;
3166
+ nextAvailableLeafIndex: string | number | bigint;
3167
+ };
3168
+ treeId: number;
3169
+ alreadyPresent: boolean;
3170
+ }[];
3171
+ getLeafPreimageHintsPublicDataTree: {
3172
+ index: string | number | bigint;
3173
+ hintKey: {
3174
+ root: string;
3175
+ nextAvailableLeafIndex: string | number | bigint;
3176
+ };
3177
+ leafPreimage: {
3178
+ leaf: {
3179
+ nullifier: string;
3180
+ };
3181
+ nextKey: string;
3182
+ nextIndex: string | number | bigint;
3183
+ } | {
3184
+ leaf: {
3185
+ value: string;
3186
+ slot: string;
3187
+ };
3188
+ nextKey: string;
2038
3189
  nextIndex: string | number | bigint;
2039
3190
  };
2040
- lowLeafIndex: string;
2041
- lowLeafSiblingPath: string[];
2042
3191
  }[];
2043
- nullifierWrites: {
2044
- lowLeafRead: {
2045
- lowLeafPreimage: {
3192
+ getLeafPreimageHintsNullifierTree: {
3193
+ index: string | number | bigint;
3194
+ hintKey: {
3195
+ root: string;
3196
+ nextAvailableLeafIndex: string | number | bigint;
3197
+ };
3198
+ leafPreimage: {
3199
+ leaf: {
2046
3200
  nullifier: string;
2047
- nextNullifier: string;
2048
- nextIndex: string | number | bigint;
2049
3201
  };
2050
- lowLeafIndex: string;
2051
- lowLeafSiblingPath: string[];
3202
+ nextKey: string;
3203
+ nextIndex: string | number | bigint;
3204
+ } | {
3205
+ leaf: {
3206
+ value: string;
3207
+ slot: string;
3208
+ };
3209
+ nextKey: string;
3210
+ nextIndex: string | number | bigint;
2052
3211
  };
2053
- insertionPath: string[];
2054
3212
  }[];
2055
- noteHashReads: {
3213
+ getLeafValueHints: {
2056
3214
  value: string;
2057
- leafIndex: string;
2058
- siblingPath: string[];
3215
+ index: string | number | bigint;
3216
+ hintKey: {
3217
+ root: string;
3218
+ nextAvailableLeafIndex: string | number | bigint;
3219
+ };
3220
+ treeId: number;
2059
3221
  }[];
2060
- noteHashWrites: {
2061
- value: string;
2062
- leafIndex: string;
2063
- siblingPath: string[];
3222
+ sequentialInsertHintsPublicDataTree: {
3223
+ leaf: {
3224
+ nullifier: string;
3225
+ } | {
3226
+ value: string;
3227
+ slot: string;
3228
+ };
3229
+ hintKey: {
3230
+ root: string;
3231
+ nextAvailableLeafIndex: string | number | bigint;
3232
+ };
3233
+ treeId: number;
3234
+ stateAfter: {
3235
+ root: string;
3236
+ nextAvailableLeafIndex: string | number | bigint;
3237
+ };
3238
+ lowLeavesWitnessData: {
3239
+ path: string[];
3240
+ index: string | number | bigint;
3241
+ leaf: {
3242
+ leaf: {
3243
+ nullifier: string;
3244
+ };
3245
+ nextKey: string;
3246
+ nextIndex: string | number | bigint;
3247
+ } | {
3248
+ leaf: {
3249
+ value: string;
3250
+ slot: string;
3251
+ };
3252
+ nextKey: string;
3253
+ nextIndex: string | number | bigint;
3254
+ };
3255
+ };
3256
+ insertionWitnessData: {
3257
+ path: string[];
3258
+ index: string | number | bigint;
3259
+ leaf: {
3260
+ leaf: {
3261
+ nullifier: string;
3262
+ };
3263
+ nextKey: string;
3264
+ nextIndex: string | number | bigint;
3265
+ } | {
3266
+ leaf: {
3267
+ value: string;
3268
+ slot: string;
3269
+ };
3270
+ nextKey: string;
3271
+ nextIndex: string | number | bigint;
3272
+ };
3273
+ };
2064
3274
  }[];
2065
- l1ToL2MessageReads: {
2066
- value: string;
2067
- leafIndex: string;
2068
- siblingPath: string[];
3275
+ sequentialInsertHintsNullifierTree: {
3276
+ leaf: {
3277
+ nullifier: string;
3278
+ } | {
3279
+ value: string;
3280
+ slot: string;
3281
+ };
3282
+ hintKey: {
3283
+ root: string;
3284
+ nextAvailableLeafIndex: string | number | bigint;
3285
+ };
3286
+ treeId: number;
3287
+ stateAfter: {
3288
+ root: string;
3289
+ nextAvailableLeafIndex: string | number | bigint;
3290
+ };
3291
+ lowLeavesWitnessData: {
3292
+ path: string[];
3293
+ index: string | number | bigint;
3294
+ leaf: {
3295
+ leaf: {
3296
+ nullifier: string;
3297
+ };
3298
+ nextKey: string;
3299
+ nextIndex: string | number | bigint;
3300
+ } | {
3301
+ leaf: {
3302
+ value: string;
3303
+ slot: string;
3304
+ };
3305
+ nextKey: string;
3306
+ nextIndex: string | number | bigint;
3307
+ };
3308
+ };
3309
+ insertionWitnessData: {
3310
+ path: string[];
3311
+ index: string | number | bigint;
3312
+ leaf: {
3313
+ leaf: {
3314
+ nullifier: string;
3315
+ };
3316
+ nextKey: string;
3317
+ nextIndex: string | number | bigint;
3318
+ } | {
3319
+ leaf: {
3320
+ value: string;
3321
+ slot: string;
3322
+ };
3323
+ nextKey: string;
3324
+ nextIndex: string | number | bigint;
3325
+ };
3326
+ };
2069
3327
  }[];
2070
3328
  };
2071
3329
  publicInputs: {
@@ -2227,25 +3485,6 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2227
3485
  calldata: string[];
2228
3486
  functionName: string;
2229
3487
  hints: {
2230
- publicDataWrites: {
2231
- lowLeafRead: {
2232
- leafIndex: string;
2233
- siblingPath: string[];
2234
- leafPreimage: {
2235
- value: string;
2236
- slot: string;
2237
- nextIndex: string | number | bigint;
2238
- nextSlot: string;
2239
- };
2240
- };
2241
- insertionPath: string[];
2242
- newLeafPreimage: {
2243
- value: string;
2244
- slot: string;
2245
- nextIndex: string | number | bigint;
2246
- nextSlot: string;
2247
- };
2248
- }[];
2249
3488
  enqueuedCalls: {
2250
3489
  isStaticCall: boolean;
2251
3490
  calldata: string[];
@@ -2279,51 +3518,181 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2279
3518
  classId: string;
2280
3519
  commitment: string;
2281
3520
  }[];
2282
- publicDataReads: {
2283
- leafIndex: string;
2284
- siblingPath: string[];
2285
- leafPreimage: {
2286
- value: string;
2287
- slot: string;
2288
- nextIndex: string | number | bigint;
2289
- nextSlot: string;
3521
+ getSiblingPathHints: {
3522
+ path: string[];
3523
+ index: string | number | bigint;
3524
+ hintKey: {
3525
+ root: string;
3526
+ nextAvailableLeafIndex: string | number | bigint;
2290
3527
  };
3528
+ treeId: number;
2291
3529
  }[];
2292
- nullifierReads: {
2293
- lowLeafPreimage: {
2294
- nullifier: string;
2295
- nextNullifier: string;
3530
+ getPreviousValueIndexHints: {
3531
+ value: string;
3532
+ index: string | number | bigint;
3533
+ hintKey: {
3534
+ root: string;
3535
+ nextAvailableLeafIndex: string | number | bigint;
3536
+ };
3537
+ treeId: number;
3538
+ alreadyPresent: boolean;
3539
+ }[];
3540
+ getLeafPreimageHintsPublicDataTree: {
3541
+ index: string | number | bigint;
3542
+ hintKey: {
3543
+ root: string;
3544
+ nextAvailableLeafIndex: string | number | bigint;
3545
+ };
3546
+ leafPreimage: {
3547
+ leaf: {
3548
+ nullifier: string;
3549
+ };
3550
+ nextKey: string;
3551
+ nextIndex: string | number | bigint;
3552
+ } | {
3553
+ leaf: {
3554
+ value: string;
3555
+ slot: string;
3556
+ };
3557
+ nextKey: string;
2296
3558
  nextIndex: string | number | bigint;
2297
3559
  };
2298
- lowLeafIndex: string;
2299
- lowLeafSiblingPath: string[];
2300
3560
  }[];
2301
- nullifierWrites: {
2302
- lowLeafRead: {
2303
- lowLeafPreimage: {
3561
+ getLeafPreimageHintsNullifierTree: {
3562
+ index: string | number | bigint;
3563
+ hintKey: {
3564
+ root: string;
3565
+ nextAvailableLeafIndex: string | number | bigint;
3566
+ };
3567
+ leafPreimage: {
3568
+ leaf: {
2304
3569
  nullifier: string;
2305
- nextNullifier: string;
2306
- nextIndex: string | number | bigint;
2307
3570
  };
2308
- lowLeafIndex: string;
2309
- lowLeafSiblingPath: string[];
3571
+ nextKey: string;
3572
+ nextIndex: string | number | bigint;
3573
+ } | {
3574
+ leaf: {
3575
+ value: string;
3576
+ slot: string;
3577
+ };
3578
+ nextKey: string;
3579
+ nextIndex: string | number | bigint;
2310
3580
  };
2311
- insertionPath: string[];
2312
3581
  }[];
2313
- noteHashReads: {
3582
+ getLeafValueHints: {
2314
3583
  value: string;
2315
- leafIndex: string;
2316
- siblingPath: string[];
3584
+ index: string | number | bigint;
3585
+ hintKey: {
3586
+ root: string;
3587
+ nextAvailableLeafIndex: string | number | bigint;
3588
+ };
3589
+ treeId: number;
2317
3590
  }[];
2318
- noteHashWrites: {
2319
- value: string;
2320
- leafIndex: string;
2321
- siblingPath: string[];
3591
+ sequentialInsertHintsPublicDataTree: {
3592
+ leaf: {
3593
+ nullifier: string;
3594
+ } | {
3595
+ value: string;
3596
+ slot: string;
3597
+ };
3598
+ hintKey: {
3599
+ root: string;
3600
+ nextAvailableLeafIndex: string | number | bigint;
3601
+ };
3602
+ treeId: number;
3603
+ stateAfter: {
3604
+ root: string;
3605
+ nextAvailableLeafIndex: string | number | bigint;
3606
+ };
3607
+ lowLeavesWitnessData: {
3608
+ path: string[];
3609
+ index: string | number | bigint;
3610
+ leaf: {
3611
+ leaf: {
3612
+ nullifier: string;
3613
+ };
3614
+ nextKey: string;
3615
+ nextIndex: string | number | bigint;
3616
+ } | {
3617
+ leaf: {
3618
+ value: string;
3619
+ slot: string;
3620
+ };
3621
+ nextKey: string;
3622
+ nextIndex: string | number | bigint;
3623
+ };
3624
+ };
3625
+ insertionWitnessData: {
3626
+ path: string[];
3627
+ index: string | number | bigint;
3628
+ leaf: {
3629
+ leaf: {
3630
+ nullifier: string;
3631
+ };
3632
+ nextKey: string;
3633
+ nextIndex: string | number | bigint;
3634
+ } | {
3635
+ leaf: {
3636
+ value: string;
3637
+ slot: string;
3638
+ };
3639
+ nextKey: string;
3640
+ nextIndex: string | number | bigint;
3641
+ };
3642
+ };
2322
3643
  }[];
2323
- l1ToL2MessageReads: {
2324
- value: string;
2325
- leafIndex: string;
2326
- siblingPath: string[];
3644
+ sequentialInsertHintsNullifierTree: {
3645
+ leaf: {
3646
+ nullifier: string;
3647
+ } | {
3648
+ value: string;
3649
+ slot: string;
3650
+ };
3651
+ hintKey: {
3652
+ root: string;
3653
+ nextAvailableLeafIndex: string | number | bigint;
3654
+ };
3655
+ treeId: number;
3656
+ stateAfter: {
3657
+ root: string;
3658
+ nextAvailableLeafIndex: string | number | bigint;
3659
+ };
3660
+ lowLeavesWitnessData: {
3661
+ path: string[];
3662
+ index: string | number | bigint;
3663
+ leaf: {
3664
+ leaf: {
3665
+ nullifier: string;
3666
+ };
3667
+ nextKey: string;
3668
+ nextIndex: string | number | bigint;
3669
+ } | {
3670
+ leaf: {
3671
+ value: string;
3672
+ slot: string;
3673
+ };
3674
+ nextKey: string;
3675
+ nextIndex: string | number | bigint;
3676
+ };
3677
+ };
3678
+ insertionWitnessData: {
3679
+ path: string[];
3680
+ index: string | number | bigint;
3681
+ leaf: {
3682
+ leaf: {
3683
+ nullifier: string;
3684
+ };
3685
+ nextKey: string;
3686
+ nextIndex: string | number | bigint;
3687
+ } | {
3688
+ leaf: {
3689
+ value: string;
3690
+ slot: string;
3691
+ };
3692
+ nextKey: string;
3693
+ nextIndex: string | number | bigint;
3694
+ };
3695
+ };
2327
3696
  }[];
2328
3697
  };
2329
3698
  publicInputs: {