@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
@@ -146,357 +146,1152 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
146
146
  classId: string;
147
147
  commitment: string;
148
148
  }>, "many">;
149
- publicDataReads: z.ZodArray<z.ZodEffects<z.ZodObject<{
149
+ getSiblingPathHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
150
+ hintKey: z.ZodEffects<z.ZodObject<{
151
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
152
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ root: import("@aztec/foundation/schemas").Fr;
155
+ nextAvailableLeafIndex: number;
156
+ }, {
157
+ root: string;
158
+ nextAvailableLeafIndex: string | number | bigint;
159
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
160
+ root: string;
161
+ nextAvailableLeafIndex: string | number | bigint;
162
+ }>;
163
+ treeId: z.ZodNumber;
164
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
165
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
166
+ }, "strip", z.ZodTypeAny, {
167
+ path: import("@aztec/foundation/schemas").Fr[];
168
+ index: bigint;
169
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
170
+ treeId: number;
171
+ }, {
172
+ path: string[];
173
+ index: string | number | bigint;
174
+ hintKey: {
175
+ root: string;
176
+ nextAvailableLeafIndex: string | number | bigint;
177
+ };
178
+ treeId: number;
179
+ }>, import("./avm.js").AvmGetSiblingPathHint, {
180
+ path: string[];
181
+ index: string | number | bigint;
182
+ hintKey: {
183
+ root: string;
184
+ nextAvailableLeafIndex: string | number | bigint;
185
+ };
186
+ treeId: number;
187
+ }>, "many">;
188
+ getPreviousValueIndexHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
189
+ hintKey: z.ZodEffects<z.ZodObject<{
190
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
191
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ root: import("@aztec/foundation/schemas").Fr;
194
+ nextAvailableLeafIndex: number;
195
+ }, {
196
+ root: string;
197
+ nextAvailableLeafIndex: string | number | bigint;
198
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
199
+ root: string;
200
+ nextAvailableLeafIndex: string | number | bigint;
201
+ }>;
202
+ treeId: z.ZodNumber;
203
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
204
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
205
+ alreadyPresent: z.ZodBoolean;
206
+ }, "strip", z.ZodTypeAny, {
207
+ value: import("@aztec/foundation/schemas").Fr;
208
+ index: bigint;
209
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
210
+ treeId: number;
211
+ alreadyPresent: boolean;
212
+ }, {
213
+ value: string;
214
+ index: string | number | bigint;
215
+ hintKey: {
216
+ root: string;
217
+ nextAvailableLeafIndex: string | number | bigint;
218
+ };
219
+ treeId: number;
220
+ alreadyPresent: boolean;
221
+ }>, import("./avm.js").AvmGetPreviousValueIndexHint, {
222
+ value: string;
223
+ index: string | number | bigint;
224
+ hintKey: {
225
+ root: string;
226
+ nextAvailableLeafIndex: string | number | bigint;
227
+ };
228
+ treeId: number;
229
+ alreadyPresent: boolean;
230
+ }>, "many">;
231
+ getLeafPreimageHintsPublicDataTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
232
+ hintKey: z.ZodEffects<z.ZodObject<{
233
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
234
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ root: import("@aztec/foundation/schemas").Fr;
237
+ nextAvailableLeafIndex: number;
238
+ }, {
239
+ root: string;
240
+ nextAvailableLeafIndex: string | number | bigint;
241
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
242
+ root: string;
243
+ nextAvailableLeafIndex: string | number | bigint;
244
+ }>;
245
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
150
246
  leafPreimage: z.ZodEffects<z.ZodObject<{
151
- slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
152
- value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
153
- nextSlot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
247
+ leaf: z.ZodEffects<z.ZodObject<{
248
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ nullifier: import("@aztec/foundation/schemas").Fr;
251
+ }, {
252
+ nullifier: string;
253
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
254
+ nullifier: string;
255
+ }>;
256
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
154
257
  nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
155
258
  }, "strip", z.ZodTypeAny, {
156
- value: import("@aztec/foundation/schemas").Fr;
157
- slot: import("@aztec/foundation/schemas").Fr;
259
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
260
+ nextKey: import("@aztec/foundation/schemas").Fr;
158
261
  nextIndex: bigint;
159
- nextSlot: import("@aztec/foundation/schemas").Fr;
160
262
  }, {
161
- value: string;
162
- slot: string;
263
+ leaf: {
264
+ nullifier: string;
265
+ };
266
+ nextKey: string;
267
+ nextIndex: string | number | bigint;
268
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
269
+ leaf: {
270
+ nullifier: string;
271
+ };
272
+ nextKey: string;
273
+ nextIndex: string | number | bigint;
274
+ }> | z.ZodEffects<z.ZodObject<{
275
+ leaf: z.ZodEffects<z.ZodObject<{
276
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
277
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ value: import("@aztec/foundation/schemas").Fr;
280
+ slot: import("@aztec/foundation/schemas").Fr;
281
+ }, {
282
+ value: string;
283
+ slot: string;
284
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
285
+ value: string;
286
+ slot: string;
287
+ }>;
288
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
289
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
292
+ nextKey: import("@aztec/foundation/schemas").Fr;
293
+ nextIndex: bigint;
294
+ }, {
295
+ leaf: {
296
+ value: string;
297
+ slot: string;
298
+ };
299
+ nextKey: string;
163
300
  nextIndex: string | number | bigint;
164
- nextSlot: string;
165
301
  }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
166
- value: string;
167
- slot: string;
302
+ leaf: {
303
+ value: string;
304
+ slot: string;
305
+ };
306
+ nextKey: string;
168
307
  nextIndex: string | number | bigint;
169
- nextSlot: string;
170
308
  }>;
171
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
172
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
173
309
  }, "strip", z.ZodTypeAny, {
174
- leafIndex: import("@aztec/foundation/schemas").Fr;
175
- siblingPath: import("@aztec/foundation/schemas").Fr[];
176
- leafPreimage: import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
310
+ index: bigint;
311
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
312
+ leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
177
313
  }, {
178
- leafIndex: string;
179
- siblingPath: string[];
314
+ index: string | number | bigint;
315
+ hintKey: {
316
+ root: string;
317
+ nextAvailableLeafIndex: string | number | bigint;
318
+ };
180
319
  leafPreimage: {
181
- value: string;
182
- slot: string;
320
+ leaf: {
321
+ nullifier: string;
322
+ };
323
+ nextKey: string;
324
+ nextIndex: string | number | bigint;
325
+ } | {
326
+ leaf: {
327
+ value: string;
328
+ slot: string;
329
+ };
330
+ nextKey: string;
183
331
  nextIndex: string | number | bigint;
184
- nextSlot: string;
185
332
  };
186
- }>, import("./avm.js").AvmPublicDataReadTreeHint, {
187
- leafIndex: string;
188
- siblingPath: string[];
333
+ }>, {
334
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
335
+ readonly index: bigint;
336
+ readonly leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
337
+ }, {
338
+ index: string | number | bigint;
339
+ hintKey: {
340
+ root: string;
341
+ nextAvailableLeafIndex: string | number | bigint;
342
+ };
189
343
  leafPreimage: {
190
- value: string;
191
- slot: string;
344
+ leaf: {
345
+ nullifier: string;
346
+ };
347
+ nextKey: string;
348
+ nextIndex: string | number | bigint;
349
+ } | {
350
+ leaf: {
351
+ value: string;
352
+ slot: string;
353
+ };
354
+ nextKey: string;
192
355
  nextIndex: string | number | bigint;
193
- nextSlot: string;
194
356
  };
195
357
  }>, "many">;
196
- publicDataWrites: z.ZodArray<z.ZodEffects<z.ZodObject<{
197
- lowLeafRead: z.ZodEffects<z.ZodObject<{
198
- leafPreimage: z.ZodEffects<z.ZodObject<{
358
+ getLeafPreimageHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
359
+ hintKey: z.ZodEffects<z.ZodObject<{
360
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
361
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ root: import("@aztec/foundation/schemas").Fr;
364
+ nextAvailableLeafIndex: number;
365
+ }, {
366
+ root: string;
367
+ nextAvailableLeafIndex: string | number | bigint;
368
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
369
+ root: string;
370
+ nextAvailableLeafIndex: string | number | bigint;
371
+ }>;
372
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
373
+ leafPreimage: z.ZodEffects<z.ZodObject<{
374
+ leaf: z.ZodEffects<z.ZodObject<{
375
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ nullifier: import("@aztec/foundation/schemas").Fr;
378
+ }, {
379
+ nullifier: string;
380
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
381
+ nullifier: string;
382
+ }>;
383
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
384
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
387
+ nextKey: import("@aztec/foundation/schemas").Fr;
388
+ nextIndex: bigint;
389
+ }, {
390
+ leaf: {
391
+ nullifier: string;
392
+ };
393
+ nextKey: string;
394
+ nextIndex: string | number | bigint;
395
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
396
+ leaf: {
397
+ nullifier: string;
398
+ };
399
+ nextKey: string;
400
+ nextIndex: string | number | bigint;
401
+ }> | z.ZodEffects<z.ZodObject<{
402
+ leaf: z.ZodEffects<z.ZodObject<{
199
403
  slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
200
404
  value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
201
- nextSlot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
202
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
203
405
  }, "strip", z.ZodTypeAny, {
204
406
  value: import("@aztec/foundation/schemas").Fr;
205
407
  slot: import("@aztec/foundation/schemas").Fr;
206
- nextIndex: bigint;
207
- nextSlot: import("@aztec/foundation/schemas").Fr;
208
408
  }, {
209
409
  value: string;
210
410
  slot: string;
211
- nextIndex: string | number | bigint;
212
- nextSlot: string;
213
- }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
411
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
214
412
  value: string;
215
413
  slot: string;
216
- nextIndex: string | number | bigint;
217
- nextSlot: string;
218
414
  }>;
219
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
220
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
415
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
416
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
221
417
  }, "strip", z.ZodTypeAny, {
222
- leafIndex: import("@aztec/foundation/schemas").Fr;
223
- siblingPath: import("@aztec/foundation/schemas").Fr[];
224
- leafPreimage: import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
418
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
419
+ nextKey: import("@aztec/foundation/schemas").Fr;
420
+ nextIndex: bigint;
225
421
  }, {
226
- leafIndex: string;
227
- siblingPath: string[];
228
- leafPreimage: {
422
+ leaf: {
229
423
  value: string;
230
424
  slot: string;
231
- nextIndex: string | number | bigint;
232
- nextSlot: string;
233
425
  };
234
- }>, import("./avm.js").AvmPublicDataReadTreeHint, {
235
- leafIndex: string;
236
- siblingPath: string[];
237
- leafPreimage: {
426
+ nextKey: string;
427
+ nextIndex: string | number | bigint;
428
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
429
+ leaf: {
430
+ value: string;
431
+ slot: string;
432
+ };
433
+ nextKey: string;
434
+ nextIndex: string | number | bigint;
435
+ }>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ index: bigint;
438
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
439
+ leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
440
+ }, {
441
+ index: string | number | bigint;
442
+ hintKey: {
443
+ root: string;
444
+ nextAvailableLeafIndex: string | number | bigint;
445
+ };
446
+ leafPreimage: {
447
+ leaf: {
448
+ nullifier: string;
449
+ };
450
+ nextKey: string;
451
+ nextIndex: string | number | bigint;
452
+ } | {
453
+ leaf: {
454
+ value: string;
455
+ slot: string;
456
+ };
457
+ nextKey: string;
458
+ nextIndex: string | number | bigint;
459
+ };
460
+ }>, {
461
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
462
+ readonly index: bigint;
463
+ readonly leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
464
+ }, {
465
+ index: string | number | bigint;
466
+ hintKey: {
467
+ root: string;
468
+ nextAvailableLeafIndex: string | number | bigint;
469
+ };
470
+ leafPreimage: {
471
+ leaf: {
472
+ nullifier: string;
473
+ };
474
+ nextKey: string;
475
+ nextIndex: string | number | bigint;
476
+ } | {
477
+ leaf: {
238
478
  value: string;
239
479
  slot: string;
240
- nextIndex: string | number | bigint;
241
- nextSlot: string;
242
480
  };
481
+ nextKey: string;
482
+ nextIndex: string | number | bigint;
483
+ };
484
+ }>, "many">;
485
+ getLeafValueHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
486
+ hintKey: z.ZodEffects<z.ZodObject<{
487
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
488
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ root: import("@aztec/foundation/schemas").Fr;
491
+ nextAvailableLeafIndex: number;
492
+ }, {
493
+ root: string;
494
+ nextAvailableLeafIndex: string | number | bigint;
495
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
496
+ root: string;
497
+ nextAvailableLeafIndex: string | number | bigint;
243
498
  }>;
244
- newLeafPreimage: z.ZodEffects<z.ZodObject<{
499
+ treeId: z.ZodNumber;
500
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
501
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ value: import("@aztec/foundation/schemas").Fr;
504
+ index: bigint;
505
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
506
+ treeId: number;
507
+ }, {
508
+ value: string;
509
+ index: string | number | bigint;
510
+ hintKey: {
511
+ root: string;
512
+ nextAvailableLeafIndex: string | number | bigint;
513
+ };
514
+ treeId: number;
515
+ }>, import("./avm.js").AvmGetLeafValueHint, {
516
+ value: string;
517
+ index: string | number | bigint;
518
+ hintKey: {
519
+ root: string;
520
+ nextAvailableLeafIndex: string | number | bigint;
521
+ };
522
+ treeId: number;
523
+ }>, "many">;
524
+ sequentialInsertHintsPublicDataTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
525
+ hintKey: z.ZodEffects<z.ZodObject<{
526
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
527
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ root: import("@aztec/foundation/schemas").Fr;
530
+ nextAvailableLeafIndex: number;
531
+ }, {
532
+ root: string;
533
+ nextAvailableLeafIndex: string | number | bigint;
534
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
535
+ root: string;
536
+ nextAvailableLeafIndex: string | number | bigint;
537
+ }>;
538
+ stateAfter: z.ZodEffects<z.ZodObject<{
539
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
540
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ root: import("@aztec/foundation/schemas").Fr;
543
+ nextAvailableLeafIndex: number;
544
+ }, {
545
+ root: string;
546
+ nextAvailableLeafIndex: string | number | bigint;
547
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
548
+ root: string;
549
+ nextAvailableLeafIndex: string | number | bigint;
550
+ }>;
551
+ treeId: z.ZodNumber;
552
+ leaf: z.ZodEffects<z.ZodObject<{
553
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ nullifier: import("@aztec/foundation/schemas").Fr;
556
+ }, {
557
+ nullifier: string;
558
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
559
+ nullifier: string;
560
+ }> | z.ZodEffects<z.ZodObject<{
245
561
  slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
246
562
  value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
247
- nextSlot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
248
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
249
563
  }, "strip", z.ZodTypeAny, {
250
564
  value: import("@aztec/foundation/schemas").Fr;
251
565
  slot: import("@aztec/foundation/schemas").Fr;
252
- nextIndex: bigint;
253
- nextSlot: import("@aztec/foundation/schemas").Fr;
254
566
  }, {
255
567
  value: string;
256
568
  slot: string;
257
- nextIndex: string | number | bigint;
258
- nextSlot: string;
259
- }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
569
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
260
570
  value: string;
261
571
  slot: string;
262
- nextIndex: string | number | bigint;
263
- nextSlot: string;
264
572
  }>;
265
- insertionPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
573
+ lowLeavesWitnessData: z.ZodObject<{
574
+ leaf: z.ZodEffects<z.ZodObject<{
575
+ leaf: z.ZodEffects<z.ZodObject<{
576
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ nullifier: import("@aztec/foundation/schemas").Fr;
579
+ }, {
580
+ nullifier: string;
581
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
582
+ nullifier: string;
583
+ }>;
584
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
585
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
588
+ nextKey: import("@aztec/foundation/schemas").Fr;
589
+ nextIndex: bigint;
590
+ }, {
591
+ leaf: {
592
+ nullifier: string;
593
+ };
594
+ nextKey: string;
595
+ nextIndex: string | number | bigint;
596
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
597
+ leaf: {
598
+ nullifier: string;
599
+ };
600
+ nextKey: string;
601
+ nextIndex: string | number | bigint;
602
+ }> | z.ZodEffects<z.ZodObject<{
603
+ leaf: z.ZodEffects<z.ZodObject<{
604
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
605
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ value: import("@aztec/foundation/schemas").Fr;
608
+ slot: import("@aztec/foundation/schemas").Fr;
609
+ }, {
610
+ value: string;
611
+ slot: string;
612
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
613
+ value: string;
614
+ slot: string;
615
+ }>;
616
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
617
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
620
+ nextKey: import("@aztec/foundation/schemas").Fr;
621
+ nextIndex: bigint;
622
+ }, {
623
+ leaf: {
624
+ value: string;
625
+ slot: string;
626
+ };
627
+ nextKey: string;
628
+ nextIndex: string | number | bigint;
629
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
630
+ leaf: {
631
+ value: string;
632
+ slot: string;
633
+ };
634
+ nextKey: string;
635
+ nextIndex: string | number | bigint;
636
+ }>;
637
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
638
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
639
+ }, "strip", z.ZodTypeAny, {
640
+ path: import("@aztec/foundation/schemas").Fr[];
641
+ index: bigint;
642
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
643
+ }, {
644
+ path: string[];
645
+ index: string | number | bigint;
646
+ leaf: {
647
+ leaf: {
648
+ nullifier: string;
649
+ };
650
+ nextKey: string;
651
+ nextIndex: string | number | bigint;
652
+ } | {
653
+ leaf: {
654
+ value: string;
655
+ slot: string;
656
+ };
657
+ nextKey: string;
658
+ nextIndex: string | number | bigint;
659
+ };
660
+ }>;
661
+ insertionWitnessData: z.ZodObject<{
662
+ leaf: z.ZodEffects<z.ZodObject<{
663
+ leaf: z.ZodEffects<z.ZodObject<{
664
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ nullifier: import("@aztec/foundation/schemas").Fr;
667
+ }, {
668
+ nullifier: string;
669
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
670
+ nullifier: string;
671
+ }>;
672
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
673
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
676
+ nextKey: import("@aztec/foundation/schemas").Fr;
677
+ nextIndex: bigint;
678
+ }, {
679
+ leaf: {
680
+ nullifier: string;
681
+ };
682
+ nextKey: string;
683
+ nextIndex: string | number | bigint;
684
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
685
+ leaf: {
686
+ nullifier: string;
687
+ };
688
+ nextKey: string;
689
+ nextIndex: string | number | bigint;
690
+ }> | z.ZodEffects<z.ZodObject<{
691
+ leaf: z.ZodEffects<z.ZodObject<{
692
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
693
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ value: import("@aztec/foundation/schemas").Fr;
696
+ slot: import("@aztec/foundation/schemas").Fr;
697
+ }, {
698
+ value: string;
699
+ slot: string;
700
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
701
+ value: string;
702
+ slot: string;
703
+ }>;
704
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
705
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
708
+ nextKey: import("@aztec/foundation/schemas").Fr;
709
+ nextIndex: bigint;
710
+ }, {
711
+ leaf: {
712
+ value: string;
713
+ slot: string;
714
+ };
715
+ nextKey: string;
716
+ nextIndex: string | number | bigint;
717
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
718
+ leaf: {
719
+ value: string;
720
+ slot: string;
721
+ };
722
+ nextKey: string;
723
+ nextIndex: string | number | bigint;
724
+ }>;
725
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
726
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
727
+ }, "strip", z.ZodTypeAny, {
728
+ path: import("@aztec/foundation/schemas").Fr[];
729
+ index: bigint;
730
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
731
+ }, {
732
+ path: string[];
733
+ index: string | number | bigint;
734
+ leaf: {
735
+ leaf: {
736
+ nullifier: string;
737
+ };
738
+ nextKey: string;
739
+ nextIndex: string | number | bigint;
740
+ } | {
741
+ leaf: {
742
+ value: string;
743
+ slot: string;
744
+ };
745
+ nextKey: string;
746
+ nextIndex: string | number | bigint;
747
+ };
748
+ }>;
266
749
  }, "strip", z.ZodTypeAny, {
267
- lowLeafRead: import("./avm.js").AvmPublicDataReadTreeHint;
268
- insertionPath: import("@aztec/foundation/schemas").Fr[];
269
- newLeafPreimage: import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
750
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
751
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
752
+ treeId: number;
753
+ stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
754
+ lowLeavesWitnessData: {
755
+ path: import("@aztec/foundation/schemas").Fr[];
756
+ index: bigint;
757
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
758
+ };
759
+ insertionWitnessData: {
760
+ path: import("@aztec/foundation/schemas").Fr[];
761
+ index: bigint;
762
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
763
+ };
270
764
  }, {
271
- lowLeafRead: {
272
- leafIndex: string;
273
- siblingPath: string[];
274
- leafPreimage: {
275
- value: string;
276
- slot: string;
765
+ leaf: {
766
+ nullifier: string;
767
+ } | {
768
+ value: string;
769
+ slot: string;
770
+ };
771
+ hintKey: {
772
+ root: string;
773
+ nextAvailableLeafIndex: string | number | bigint;
774
+ };
775
+ treeId: number;
776
+ stateAfter: {
777
+ root: string;
778
+ nextAvailableLeafIndex: string | number | bigint;
779
+ };
780
+ lowLeavesWitnessData: {
781
+ path: string[];
782
+ index: string | number | bigint;
783
+ leaf: {
784
+ leaf: {
785
+ nullifier: string;
786
+ };
787
+ nextKey: string;
788
+ nextIndex: string | number | bigint;
789
+ } | {
790
+ leaf: {
791
+ value: string;
792
+ slot: string;
793
+ };
794
+ nextKey: string;
795
+ nextIndex: string | number | bigint;
796
+ };
797
+ };
798
+ insertionWitnessData: {
799
+ path: string[];
800
+ index: string | number | bigint;
801
+ leaf: {
802
+ leaf: {
803
+ nullifier: string;
804
+ };
805
+ nextKey: string;
806
+ nextIndex: string | number | bigint;
807
+ } | {
808
+ leaf: {
809
+ value: string;
810
+ slot: string;
811
+ };
812
+ nextKey: string;
277
813
  nextIndex: string | number | bigint;
278
- nextSlot: string;
279
814
  };
280
815
  };
281
- insertionPath: string[];
282
- newLeafPreimage: {
816
+ }>, {
817
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
818
+ readonly stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
819
+ readonly treeId: import("../trees/merkle_tree_id.js").MerkleTreeId;
820
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
821
+ readonly lowLeavesWitnessData: {
822
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
823
+ index: bigint;
824
+ path: import("@aztec/foundation/schemas").Fr[];
825
+ };
826
+ readonly insertionWitnessData: {
827
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
828
+ index: bigint;
829
+ path: import("@aztec/foundation/schemas").Fr[];
830
+ };
831
+ }, {
832
+ leaf: {
833
+ nullifier: string;
834
+ } | {
283
835
  value: string;
284
836
  slot: string;
285
- nextIndex: string | number | bigint;
286
- nextSlot: string;
287
837
  };
288
- }>, import("./avm.js").AvmPublicDataWriteTreeHint, {
289
- lowLeafRead: {
290
- leafIndex: string;
291
- siblingPath: string[];
292
- leafPreimage: {
293
- value: string;
294
- slot: string;
838
+ hintKey: {
839
+ root: string;
840
+ nextAvailableLeafIndex: string | number | bigint;
841
+ };
842
+ treeId: number;
843
+ stateAfter: {
844
+ root: string;
845
+ nextAvailableLeafIndex: string | number | bigint;
846
+ };
847
+ lowLeavesWitnessData: {
848
+ path: string[];
849
+ index: string | number | bigint;
850
+ leaf: {
851
+ leaf: {
852
+ nullifier: string;
853
+ };
854
+ nextKey: string;
855
+ nextIndex: string | number | bigint;
856
+ } | {
857
+ leaf: {
858
+ value: string;
859
+ slot: string;
860
+ };
861
+ nextKey: string;
862
+ nextIndex: string | number | bigint;
863
+ };
864
+ };
865
+ insertionWitnessData: {
866
+ path: string[];
867
+ index: string | number | bigint;
868
+ leaf: {
869
+ leaf: {
870
+ nullifier: string;
871
+ };
872
+ nextKey: string;
873
+ nextIndex: string | number | bigint;
874
+ } | {
875
+ leaf: {
876
+ value: string;
877
+ slot: string;
878
+ };
879
+ nextKey: string;
880
+ nextIndex: string | number | bigint;
881
+ };
882
+ };
883
+ }>, "many">;
884
+ sequentialInsertHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
885
+ hintKey: z.ZodEffects<z.ZodObject<{
886
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
887
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ root: import("@aztec/foundation/schemas").Fr;
890
+ nextAvailableLeafIndex: number;
891
+ }, {
892
+ root: string;
893
+ nextAvailableLeafIndex: string | number | bigint;
894
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
895
+ root: string;
896
+ nextAvailableLeafIndex: string | number | bigint;
897
+ }>;
898
+ stateAfter: z.ZodEffects<z.ZodObject<{
899
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
900
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ root: import("@aztec/foundation/schemas").Fr;
903
+ nextAvailableLeafIndex: number;
904
+ }, {
905
+ root: string;
906
+ nextAvailableLeafIndex: string | number | bigint;
907
+ }>, import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot, {
908
+ root: string;
909
+ nextAvailableLeafIndex: string | number | bigint;
910
+ }>;
911
+ treeId: z.ZodNumber;
912
+ leaf: z.ZodEffects<z.ZodObject<{
913
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
914
+ }, "strip", z.ZodTypeAny, {
915
+ nullifier: import("@aztec/foundation/schemas").Fr;
916
+ }, {
917
+ nullifier: string;
918
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
919
+ nullifier: string;
920
+ }> | z.ZodEffects<z.ZodObject<{
921
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
922
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
923
+ }, "strip", z.ZodTypeAny, {
924
+ value: import("@aztec/foundation/schemas").Fr;
925
+ slot: import("@aztec/foundation/schemas").Fr;
926
+ }, {
927
+ value: string;
928
+ slot: string;
929
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
930
+ value: string;
931
+ slot: string;
932
+ }>;
933
+ lowLeavesWitnessData: z.ZodObject<{
934
+ leaf: z.ZodEffects<z.ZodObject<{
935
+ leaf: z.ZodEffects<z.ZodObject<{
936
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
937
+ }, "strip", z.ZodTypeAny, {
938
+ nullifier: import("@aztec/foundation/schemas").Fr;
939
+ }, {
940
+ nullifier: string;
941
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
942
+ nullifier: string;
943
+ }>;
944
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
945
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
948
+ nextKey: import("@aztec/foundation/schemas").Fr;
949
+ nextIndex: bigint;
950
+ }, {
951
+ leaf: {
952
+ nullifier: string;
953
+ };
954
+ nextKey: string;
955
+ nextIndex: string | number | bigint;
956
+ }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
957
+ leaf: {
958
+ nullifier: string;
959
+ };
960
+ nextKey: string;
961
+ nextIndex: string | number | bigint;
962
+ }> | z.ZodEffects<z.ZodObject<{
963
+ leaf: z.ZodEffects<z.ZodObject<{
964
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
965
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ value: import("@aztec/foundation/schemas").Fr;
968
+ slot: import("@aztec/foundation/schemas").Fr;
969
+ }, {
970
+ value: string;
971
+ slot: string;
972
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
973
+ value: string;
974
+ slot: string;
975
+ }>;
976
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
977
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
980
+ nextKey: import("@aztec/foundation/schemas").Fr;
981
+ nextIndex: bigint;
982
+ }, {
983
+ leaf: {
984
+ value: string;
985
+ slot: string;
986
+ };
987
+ nextKey: string;
295
988
  nextIndex: string | number | bigint;
296
- nextSlot: string;
297
- };
298
- };
299
- insertionPath: string[];
300
- newLeafPreimage: {
301
- value: string;
302
- slot: string;
303
- nextIndex: string | number | bigint;
304
- nextSlot: string;
305
- };
306
- }>, "many">;
307
- nullifierReads: z.ZodArray<z.ZodEffects<z.ZodObject<{
308
- lowLeafPreimage: z.ZodEffects<z.ZodObject<{
309
- nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
310
- nextNullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
311
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
989
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
990
+ leaf: {
991
+ value: string;
992
+ slot: string;
993
+ };
994
+ nextKey: string;
995
+ nextIndex: string | number | bigint;
996
+ }>;
997
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
998
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
312
999
  }, "strip", z.ZodTypeAny, {
313
- nullifier: import("@aztec/foundation/schemas").Fr;
314
- nextNullifier: import("@aztec/foundation/schemas").Fr;
315
- nextIndex: bigint;
1000
+ path: import("@aztec/foundation/schemas").Fr[];
1001
+ index: bigint;
1002
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
316
1003
  }, {
317
- nullifier: string;
318
- nextNullifier: string;
319
- nextIndex: string | number | bigint;
320
- }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
321
- nullifier: string;
322
- nextNullifier: string;
323
- nextIndex: string | number | bigint;
1004
+ path: string[];
1005
+ index: string | number | bigint;
1006
+ leaf: {
1007
+ leaf: {
1008
+ nullifier: string;
1009
+ };
1010
+ nextKey: string;
1011
+ nextIndex: string | number | bigint;
1012
+ } | {
1013
+ leaf: {
1014
+ value: string;
1015
+ slot: string;
1016
+ };
1017
+ nextKey: string;
1018
+ nextIndex: string | number | bigint;
1019
+ };
324
1020
  }>;
325
- lowLeafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
326
- lowLeafSiblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
327
- }, "strip", z.ZodTypeAny, {
328
- lowLeafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage;
329
- lowLeafIndex: import("@aztec/foundation/schemas").Fr;
330
- lowLeafSiblingPath: import("@aztec/foundation/schemas").Fr[];
331
- }, {
332
- lowLeafPreimage: {
333
- nullifier: string;
334
- nextNullifier: string;
335
- nextIndex: string | number | bigint;
336
- };
337
- lowLeafIndex: string;
338
- lowLeafSiblingPath: string[];
339
- }>, import("./avm.js").AvmNullifierReadTreeHint, {
340
- lowLeafPreimage: {
341
- nullifier: string;
342
- nextNullifier: string;
343
- nextIndex: string | number | bigint;
344
- };
345
- lowLeafIndex: string;
346
- lowLeafSiblingPath: string[];
347
- }>, "many">;
348
- nullifierWrites: z.ZodArray<z.ZodEffects<z.ZodObject<{
349
- lowLeafRead: z.ZodEffects<z.ZodObject<{
350
- lowLeafPreimage: z.ZodEffects<z.ZodObject<{
351
- nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
352
- nextNullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1021
+ insertionWitnessData: z.ZodObject<{
1022
+ leaf: z.ZodEffects<z.ZodObject<{
1023
+ leaf: z.ZodEffects<z.ZodObject<{
1024
+ nullifier: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ nullifier: import("@aztec/foundation/schemas").Fr;
1027
+ }, {
1028
+ nullifier: string;
1029
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1030
+ nullifier: string;
1031
+ }>;
1032
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
353
1033
  nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
354
1034
  }, "strip", z.ZodTypeAny, {
355
- nullifier: import("@aztec/foundation/schemas").Fr;
356
- nextNullifier: import("@aztec/foundation/schemas").Fr;
1035
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
1036
+ nextKey: import("@aztec/foundation/schemas").Fr;
357
1037
  nextIndex: bigint;
358
1038
  }, {
359
- nullifier: string;
360
- nextNullifier: string;
1039
+ leaf: {
1040
+ nullifier: string;
1041
+ };
1042
+ nextKey: string;
361
1043
  nextIndex: string | number | bigint;
362
1044
  }>, import("../trees/nullifier_leaf.js").NullifierLeafPreimage, {
363
- nullifier: string;
364
- nextNullifier: string;
1045
+ leaf: {
1046
+ nullifier: string;
1047
+ };
1048
+ nextKey: string;
1049
+ nextIndex: string | number | bigint;
1050
+ }> | z.ZodEffects<z.ZodObject<{
1051
+ leaf: z.ZodEffects<z.ZodObject<{
1052
+ slot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1053
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ value: import("@aztec/foundation/schemas").Fr;
1056
+ slot: import("@aztec/foundation/schemas").Fr;
1057
+ }, {
1058
+ value: string;
1059
+ slot: string;
1060
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1061
+ value: string;
1062
+ slot: string;
1063
+ }>;
1064
+ nextKey: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1065
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1068
+ nextKey: import("@aztec/foundation/schemas").Fr;
1069
+ nextIndex: bigint;
1070
+ }, {
1071
+ leaf: {
1072
+ value: string;
1073
+ slot: string;
1074
+ };
1075
+ nextKey: string;
1076
+ nextIndex: string | number | bigint;
1077
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage, {
1078
+ leaf: {
1079
+ value: string;
1080
+ slot: string;
1081
+ };
1082
+ nextKey: string;
365
1083
  nextIndex: string | number | bigint;
366
1084
  }>;
367
- lowLeafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
368
- lowLeafSiblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
1085
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1086
+ path: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
369
1087
  }, "strip", z.ZodTypeAny, {
370
- lowLeafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage;
371
- lowLeafIndex: import("@aztec/foundation/schemas").Fr;
372
- lowLeafSiblingPath: import("@aztec/foundation/schemas").Fr[];
1088
+ path: import("@aztec/foundation/schemas").Fr[];
1089
+ index: bigint;
1090
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
373
1091
  }, {
374
- lowLeafPreimage: {
375
- nullifier: string;
376
- nextNullifier: string;
1092
+ path: string[];
1093
+ index: string | number | bigint;
1094
+ leaf: {
1095
+ leaf: {
1096
+ nullifier: string;
1097
+ };
1098
+ nextKey: string;
377
1099
  nextIndex: string | number | bigint;
378
- };
379
- lowLeafIndex: string;
380
- lowLeafSiblingPath: string[];
381
- }>, import("./avm.js").AvmNullifierReadTreeHint, {
382
- lowLeafPreimage: {
383
- nullifier: string;
384
- nextNullifier: string;
1100
+ } | {
1101
+ leaf: {
1102
+ value: string;
1103
+ slot: string;
1104
+ };
1105
+ nextKey: string;
385
1106
  nextIndex: string | number | bigint;
386
1107
  };
387
- lowLeafIndex: string;
388
- lowLeafSiblingPath: string[];
389
1108
  }>;
390
- insertionPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
391
1109
  }, "strip", z.ZodTypeAny, {
392
- lowLeafRead: import("./avm.js").AvmNullifierReadTreeHint;
393
- insertionPath: import("@aztec/foundation/schemas").Fr[];
1110
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1111
+ hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1112
+ treeId: number;
1113
+ stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1114
+ lowLeavesWitnessData: {
1115
+ path: import("@aztec/foundation/schemas").Fr[];
1116
+ index: bigint;
1117
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1118
+ };
1119
+ insertionWitnessData: {
1120
+ path: import("@aztec/foundation/schemas").Fr[];
1121
+ index: bigint;
1122
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1123
+ };
394
1124
  }, {
395
- lowLeafRead: {
396
- lowLeafPreimage: {
397
- nullifier: string;
398
- nextNullifier: string;
1125
+ leaf: {
1126
+ nullifier: string;
1127
+ } | {
1128
+ value: string;
1129
+ slot: string;
1130
+ };
1131
+ hintKey: {
1132
+ root: string;
1133
+ nextAvailableLeafIndex: string | number | bigint;
1134
+ };
1135
+ treeId: number;
1136
+ stateAfter: {
1137
+ root: string;
1138
+ nextAvailableLeafIndex: string | number | bigint;
1139
+ };
1140
+ lowLeavesWitnessData: {
1141
+ path: string[];
1142
+ index: string | number | bigint;
1143
+ leaf: {
1144
+ leaf: {
1145
+ nullifier: string;
1146
+ };
1147
+ nextKey: string;
1148
+ nextIndex: string | number | bigint;
1149
+ } | {
1150
+ leaf: {
1151
+ value: string;
1152
+ slot: string;
1153
+ };
1154
+ nextKey: string;
399
1155
  nextIndex: string | number | bigint;
400
1156
  };
401
- lowLeafIndex: string;
402
- lowLeafSiblingPath: string[];
403
1157
  };
404
- insertionPath: string[];
405
- }>, import("./avm.js").AvmNullifierWriteTreeHint, {
406
- lowLeafRead: {
407
- lowLeafPreimage: {
408
- nullifier: string;
409
- nextNullifier: string;
1158
+ insertionWitnessData: {
1159
+ path: string[];
1160
+ index: string | number | bigint;
1161
+ leaf: {
1162
+ leaf: {
1163
+ nullifier: string;
1164
+ };
1165
+ nextKey: string;
1166
+ nextIndex: string | number | bigint;
1167
+ } | {
1168
+ leaf: {
1169
+ value: string;
1170
+ slot: string;
1171
+ };
1172
+ nextKey: string;
410
1173
  nextIndex: string | number | bigint;
411
1174
  };
412
- lowLeafIndex: string;
413
- lowLeafSiblingPath: string[];
414
1175
  };
415
- insertionPath: string[];
416
- }>, "many">;
417
- noteHashReads: z.ZodArray<z.ZodEffects<z.ZodObject<{
418
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
419
- value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
420
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
421
- }, "strip", z.ZodTypeAny, {
422
- value: import("@aztec/foundation/schemas").Fr;
423
- leafIndex: import("@aztec/foundation/schemas").Fr;
424
- siblingPath: import("@aztec/foundation/schemas").Fr[];
425
- }, {
426
- value: string;
427
- leafIndex: string;
428
- siblingPath: string[];
429
- }>, import("./avm.js").AvmAppendTreeHint, {
430
- value: string;
431
- leafIndex: string;
432
- siblingPath: string[];
433
- }>, "many">;
434
- noteHashWrites: z.ZodArray<z.ZodEffects<z.ZodObject<{
435
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
436
- value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
437
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
438
- }, "strip", z.ZodTypeAny, {
439
- value: import("@aztec/foundation/schemas").Fr;
440
- leafIndex: import("@aztec/foundation/schemas").Fr;
441
- siblingPath: import("@aztec/foundation/schemas").Fr[];
442
- }, {
443
- value: string;
444
- leafIndex: string;
445
- siblingPath: string[];
446
- }>, import("./avm.js").AvmAppendTreeHint, {
447
- value: string;
448
- leafIndex: string;
449
- siblingPath: string[];
450
- }>, "many">;
451
- l1ToL2MessageReads: z.ZodArray<z.ZodEffects<z.ZodObject<{
452
- leafIndex: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
453
- value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
454
- siblingPath: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
455
- }, "strip", z.ZodTypeAny, {
456
- value: import("@aztec/foundation/schemas").Fr;
457
- leafIndex: import("@aztec/foundation/schemas").Fr;
458
- siblingPath: import("@aztec/foundation/schemas").Fr[];
1176
+ }>, {
1177
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1178
+ readonly stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1179
+ readonly treeId: import("../trees/merkle_tree_id.js").MerkleTreeId;
1180
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1181
+ readonly lowLeavesWitnessData: {
1182
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1183
+ index: bigint;
1184
+ path: import("@aztec/foundation/schemas").Fr[];
1185
+ };
1186
+ readonly insertionWitnessData: {
1187
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1188
+ index: bigint;
1189
+ path: import("@aztec/foundation/schemas").Fr[];
1190
+ };
459
1191
  }, {
460
- value: string;
461
- leafIndex: string;
462
- siblingPath: string[];
463
- }>, import("./avm.js").AvmAppendTreeHint, {
464
- value: string;
465
- leafIndex: string;
466
- siblingPath: string[];
1192
+ leaf: {
1193
+ nullifier: string;
1194
+ } | {
1195
+ value: string;
1196
+ slot: string;
1197
+ };
1198
+ hintKey: {
1199
+ root: string;
1200
+ nextAvailableLeafIndex: string | number | bigint;
1201
+ };
1202
+ treeId: number;
1203
+ stateAfter: {
1204
+ root: string;
1205
+ nextAvailableLeafIndex: string | number | bigint;
1206
+ };
1207
+ lowLeavesWitnessData: {
1208
+ path: string[];
1209
+ index: string | number | bigint;
1210
+ leaf: {
1211
+ leaf: {
1212
+ nullifier: string;
1213
+ };
1214
+ nextKey: string;
1215
+ nextIndex: string | number | bigint;
1216
+ } | {
1217
+ leaf: {
1218
+ value: string;
1219
+ slot: string;
1220
+ };
1221
+ nextKey: string;
1222
+ nextIndex: string | number | bigint;
1223
+ };
1224
+ };
1225
+ insertionWitnessData: {
1226
+ path: string[];
1227
+ index: string | number | bigint;
1228
+ leaf: {
1229
+ leaf: {
1230
+ nullifier: string;
1231
+ };
1232
+ nextKey: string;
1233
+ nextIndex: string | number | bigint;
1234
+ } | {
1235
+ leaf: {
1236
+ value: string;
1237
+ slot: string;
1238
+ };
1239
+ nextKey: string;
1240
+ nextIndex: string | number | bigint;
1241
+ };
1242
+ };
467
1243
  }>, "many">;
468
1244
  }, "strip", z.ZodTypeAny, {
469
- publicDataWrites: import("./avm.js").AvmPublicDataWriteTreeHint[];
470
1245
  enqueuedCalls: import("./avm.js").AvmEnqueuedCallHint[];
471
1246
  contractInstances: import("./avm.js").AvmContractInstanceHint[];
472
1247
  contractClasses: import("./avm.js").AvmContractClassHint[];
473
1248
  bytecodeCommitments: import("./avm.js").AvmBytecodeCommitmentHint[];
474
- publicDataReads: import("./avm.js").AvmPublicDataReadTreeHint[];
475
- nullifierReads: import("./avm.js").AvmNullifierReadTreeHint[];
476
- nullifierWrites: import("./avm.js").AvmNullifierWriteTreeHint[];
477
- noteHashReads: import("./avm.js").AvmAppendTreeHint[];
478
- noteHashWrites: import("./avm.js").AvmAppendTreeHint[];
479
- l1ToL2MessageReads: import("./avm.js").AvmAppendTreeHint[];
480
- }, {
481
- publicDataWrites: {
482
- lowLeafRead: {
483
- leafIndex: string;
484
- siblingPath: string[];
485
- leafPreimage: {
486
- value: string;
487
- slot: string;
488
- nextIndex: string | number | bigint;
489
- nextSlot: string;
490
- };
491
- };
492
- insertionPath: string[];
493
- newLeafPreimage: {
494
- value: string;
495
- slot: string;
496
- nextIndex: string | number | bigint;
497
- nextSlot: string;
1249
+ getSiblingPathHints: import("./avm.js").AvmGetSiblingPathHint[];
1250
+ getPreviousValueIndexHints: import("./avm.js").AvmGetPreviousValueIndexHint[];
1251
+ getLeafPreimageHintsPublicDataTree: {
1252
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1253
+ readonly index: bigint;
1254
+ readonly leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1255
+ }[];
1256
+ getLeafPreimageHintsNullifierTree: {
1257
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1258
+ readonly index: bigint;
1259
+ readonly leafPreimage: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1260
+ }[];
1261
+ getLeafValueHints: import("./avm.js").AvmGetLeafValueHint[];
1262
+ sequentialInsertHintsPublicDataTree: {
1263
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1264
+ readonly stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1265
+ readonly treeId: import("../trees/merkle_tree_id.js").MerkleTreeId;
1266
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1267
+ readonly lowLeavesWitnessData: {
1268
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1269
+ index: bigint;
1270
+ path: import("@aztec/foundation/schemas").Fr[];
1271
+ };
1272
+ readonly insertionWitnessData: {
1273
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1274
+ index: bigint;
1275
+ path: import("@aztec/foundation/schemas").Fr[];
1276
+ };
1277
+ }[];
1278
+ sequentialInsertHintsNullifierTree: {
1279
+ readonly hintKey: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1280
+ readonly stateAfter: import("../trees/append_only_tree_snapshot.js").AppendOnlyTreeSnapshot;
1281
+ readonly treeId: import("../trees/merkle_tree_id.js").MerkleTreeId;
1282
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1283
+ readonly lowLeavesWitnessData: {
1284
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1285
+ index: bigint;
1286
+ path: import("@aztec/foundation/schemas").Fr[];
1287
+ };
1288
+ readonly insertionWitnessData: {
1289
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeafPreimage | import("../trees/public_data_leaf.js").PublicDataTreeLeafPreimage;
1290
+ index: bigint;
1291
+ path: import("@aztec/foundation/schemas").Fr[];
498
1292
  };
499
1293
  }[];
1294
+ }, {
500
1295
  enqueuedCalls: {
501
1296
  isStaticCall: boolean;
502
1297
  calldata: string[];
@@ -530,72 +1325,183 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
530
1325
  classId: string;
531
1326
  commitment: string;
532
1327
  }[];
533
- publicDataReads: {
534
- leafIndex: string;
535
- siblingPath: string[];
536
- leafPreimage: {
537
- value: string;
538
- slot: string;
539
- nextIndex: string | number | bigint;
540
- nextSlot: string;
1328
+ getSiblingPathHints: {
1329
+ path: string[];
1330
+ index: string | number | bigint;
1331
+ hintKey: {
1332
+ root: string;
1333
+ nextAvailableLeafIndex: string | number | bigint;
541
1334
  };
1335
+ treeId: number;
542
1336
  }[];
543
- nullifierReads: {
544
- lowLeafPreimage: {
545
- nullifier: string;
546
- nextNullifier: string;
547
- nextIndex: string | number | bigint;
1337
+ getPreviousValueIndexHints: {
1338
+ value: string;
1339
+ index: string | number | bigint;
1340
+ hintKey: {
1341
+ root: string;
1342
+ nextAvailableLeafIndex: string | number | bigint;
548
1343
  };
549
- lowLeafIndex: string;
550
- lowLeafSiblingPath: string[];
1344
+ treeId: number;
1345
+ alreadyPresent: boolean;
551
1346
  }[];
552
- nullifierWrites: {
553
- lowLeafRead: {
554
- lowLeafPreimage: {
1347
+ getLeafPreimageHintsPublicDataTree: {
1348
+ index: string | number | bigint;
1349
+ hintKey: {
1350
+ root: string;
1351
+ nextAvailableLeafIndex: string | number | bigint;
1352
+ };
1353
+ leafPreimage: {
1354
+ leaf: {
555
1355
  nullifier: string;
556
- nextNullifier: string;
557
- nextIndex: string | number | bigint;
558
1356
  };
559
- lowLeafIndex: string;
560
- lowLeafSiblingPath: string[];
1357
+ nextKey: string;
1358
+ nextIndex: string | number | bigint;
1359
+ } | {
1360
+ leaf: {
1361
+ value: string;
1362
+ slot: string;
1363
+ };
1364
+ nextKey: string;
1365
+ nextIndex: string | number | bigint;
561
1366
  };
562
- insertionPath: string[];
563
1367
  }[];
564
- noteHashReads: {
565
- value: string;
566
- leafIndex: string;
567
- siblingPath: string[];
568
- }[];
569
- noteHashWrites: {
570
- value: string;
571
- leafIndex: string;
572
- siblingPath: string[];
1368
+ getLeafPreimageHintsNullifierTree: {
1369
+ index: string | number | bigint;
1370
+ hintKey: {
1371
+ root: string;
1372
+ nextAvailableLeafIndex: string | number | bigint;
1373
+ };
1374
+ leafPreimage: {
1375
+ leaf: {
1376
+ nullifier: string;
1377
+ };
1378
+ nextKey: string;
1379
+ nextIndex: string | number | bigint;
1380
+ } | {
1381
+ leaf: {
1382
+ value: string;
1383
+ slot: string;
1384
+ };
1385
+ nextKey: string;
1386
+ nextIndex: string | number | bigint;
1387
+ };
573
1388
  }[];
574
- l1ToL2MessageReads: {
1389
+ getLeafValueHints: {
575
1390
  value: string;
576
- leafIndex: string;
577
- siblingPath: string[];
1391
+ index: string | number | bigint;
1392
+ hintKey: {
1393
+ root: string;
1394
+ nextAvailableLeafIndex: string | number | bigint;
1395
+ };
1396
+ treeId: number;
578
1397
  }[];
579
- }>, import("./avm.js").AvmExecutionHints, {
580
- publicDataWrites: {
581
- lowLeafRead: {
582
- leafIndex: string;
583
- siblingPath: string[];
584
- leafPreimage: {
585
- value: string;
586
- slot: string;
1398
+ sequentialInsertHintsPublicDataTree: {
1399
+ leaf: {
1400
+ nullifier: string;
1401
+ } | {
1402
+ value: string;
1403
+ slot: string;
1404
+ };
1405
+ hintKey: {
1406
+ root: string;
1407
+ nextAvailableLeafIndex: string | number | bigint;
1408
+ };
1409
+ treeId: number;
1410
+ stateAfter: {
1411
+ root: string;
1412
+ nextAvailableLeafIndex: string | number | bigint;
1413
+ };
1414
+ lowLeavesWitnessData: {
1415
+ path: string[];
1416
+ index: string | number | bigint;
1417
+ leaf: {
1418
+ leaf: {
1419
+ nullifier: string;
1420
+ };
1421
+ nextKey: string;
1422
+ nextIndex: string | number | bigint;
1423
+ } | {
1424
+ leaf: {
1425
+ value: string;
1426
+ slot: string;
1427
+ };
1428
+ nextKey: string;
1429
+ nextIndex: string | number | bigint;
1430
+ };
1431
+ };
1432
+ insertionWitnessData: {
1433
+ path: string[];
1434
+ index: string | number | bigint;
1435
+ leaf: {
1436
+ leaf: {
1437
+ nullifier: string;
1438
+ };
1439
+ nextKey: string;
1440
+ nextIndex: string | number | bigint;
1441
+ } | {
1442
+ leaf: {
1443
+ value: string;
1444
+ slot: string;
1445
+ };
1446
+ nextKey: string;
587
1447
  nextIndex: string | number | bigint;
588
- nextSlot: string;
589
1448
  };
590
1449
  };
591
- insertionPath: string[];
592
- newLeafPreimage: {
1450
+ }[];
1451
+ sequentialInsertHintsNullifierTree: {
1452
+ leaf: {
1453
+ nullifier: string;
1454
+ } | {
593
1455
  value: string;
594
1456
  slot: string;
595
- nextIndex: string | number | bigint;
596
- nextSlot: string;
1457
+ };
1458
+ hintKey: {
1459
+ root: string;
1460
+ nextAvailableLeafIndex: string | number | bigint;
1461
+ };
1462
+ treeId: number;
1463
+ stateAfter: {
1464
+ root: string;
1465
+ nextAvailableLeafIndex: string | number | bigint;
1466
+ };
1467
+ lowLeavesWitnessData: {
1468
+ path: string[];
1469
+ index: string | number | bigint;
1470
+ leaf: {
1471
+ leaf: {
1472
+ nullifier: string;
1473
+ };
1474
+ nextKey: string;
1475
+ nextIndex: string | number | bigint;
1476
+ } | {
1477
+ leaf: {
1478
+ value: string;
1479
+ slot: string;
1480
+ };
1481
+ nextKey: string;
1482
+ nextIndex: string | number | bigint;
1483
+ };
1484
+ };
1485
+ insertionWitnessData: {
1486
+ path: string[];
1487
+ index: string | number | bigint;
1488
+ leaf: {
1489
+ leaf: {
1490
+ nullifier: string;
1491
+ };
1492
+ nextKey: string;
1493
+ nextIndex: string | number | bigint;
1494
+ } | {
1495
+ leaf: {
1496
+ value: string;
1497
+ slot: string;
1498
+ };
1499
+ nextKey: string;
1500
+ nextIndex: string | number | bigint;
1501
+ };
597
1502
  };
598
1503
  }[];
1504
+ }>, import("./avm.js").AvmExecutionHints, {
599
1505
  enqueuedCalls: {
600
1506
  isStaticCall: boolean;
601
1507
  calldata: string[];
@@ -629,51 +1535,181 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
629
1535
  classId: string;
630
1536
  commitment: string;
631
1537
  }[];
632
- publicDataReads: {
633
- leafIndex: string;
634
- siblingPath: string[];
1538
+ getSiblingPathHints: {
1539
+ path: string[];
1540
+ index: string | number | bigint;
1541
+ hintKey: {
1542
+ root: string;
1543
+ nextAvailableLeafIndex: string | number | bigint;
1544
+ };
1545
+ treeId: number;
1546
+ }[];
1547
+ getPreviousValueIndexHints: {
1548
+ value: string;
1549
+ index: string | number | bigint;
1550
+ hintKey: {
1551
+ root: string;
1552
+ nextAvailableLeafIndex: string | number | bigint;
1553
+ };
1554
+ treeId: number;
1555
+ alreadyPresent: boolean;
1556
+ }[];
1557
+ getLeafPreimageHintsPublicDataTree: {
1558
+ index: string | number | bigint;
1559
+ hintKey: {
1560
+ root: string;
1561
+ nextAvailableLeafIndex: string | number | bigint;
1562
+ };
635
1563
  leafPreimage: {
636
- value: string;
637
- slot: string;
1564
+ leaf: {
1565
+ nullifier: string;
1566
+ };
1567
+ nextKey: string;
1568
+ nextIndex: string | number | bigint;
1569
+ } | {
1570
+ leaf: {
1571
+ value: string;
1572
+ slot: string;
1573
+ };
1574
+ nextKey: string;
638
1575
  nextIndex: string | number | bigint;
639
- nextSlot: string;
640
1576
  };
641
1577
  }[];
642
- nullifierReads: {
643
- lowLeafPreimage: {
644
- nullifier: string;
645
- nextNullifier: string;
1578
+ getLeafPreimageHintsNullifierTree: {
1579
+ index: string | number | bigint;
1580
+ hintKey: {
1581
+ root: string;
1582
+ nextAvailableLeafIndex: string | number | bigint;
1583
+ };
1584
+ leafPreimage: {
1585
+ leaf: {
1586
+ nullifier: string;
1587
+ };
1588
+ nextKey: string;
1589
+ nextIndex: string | number | bigint;
1590
+ } | {
1591
+ leaf: {
1592
+ value: string;
1593
+ slot: string;
1594
+ };
1595
+ nextKey: string;
646
1596
  nextIndex: string | number | bigint;
647
1597
  };
648
- lowLeafIndex: string;
649
- lowLeafSiblingPath: string[];
650
1598
  }[];
651
- nullifierWrites: {
652
- lowLeafRead: {
653
- lowLeafPreimage: {
654
- nullifier: string;
655
- nextNullifier: string;
1599
+ getLeafValueHints: {
1600
+ value: string;
1601
+ index: string | number | bigint;
1602
+ hintKey: {
1603
+ root: string;
1604
+ nextAvailableLeafIndex: string | number | bigint;
1605
+ };
1606
+ treeId: number;
1607
+ }[];
1608
+ sequentialInsertHintsPublicDataTree: {
1609
+ leaf: {
1610
+ nullifier: string;
1611
+ } | {
1612
+ value: string;
1613
+ slot: string;
1614
+ };
1615
+ hintKey: {
1616
+ root: string;
1617
+ nextAvailableLeafIndex: string | number | bigint;
1618
+ };
1619
+ treeId: number;
1620
+ stateAfter: {
1621
+ root: string;
1622
+ nextAvailableLeafIndex: string | number | bigint;
1623
+ };
1624
+ lowLeavesWitnessData: {
1625
+ path: string[];
1626
+ index: string | number | bigint;
1627
+ leaf: {
1628
+ leaf: {
1629
+ nullifier: string;
1630
+ };
1631
+ nextKey: string;
1632
+ nextIndex: string | number | bigint;
1633
+ } | {
1634
+ leaf: {
1635
+ value: string;
1636
+ slot: string;
1637
+ };
1638
+ nextKey: string;
1639
+ nextIndex: string | number | bigint;
1640
+ };
1641
+ };
1642
+ insertionWitnessData: {
1643
+ path: string[];
1644
+ index: string | number | bigint;
1645
+ leaf: {
1646
+ leaf: {
1647
+ nullifier: string;
1648
+ };
1649
+ nextKey: string;
1650
+ nextIndex: string | number | bigint;
1651
+ } | {
1652
+ leaf: {
1653
+ value: string;
1654
+ slot: string;
1655
+ };
1656
+ nextKey: string;
1657
+ nextIndex: string | number | bigint;
1658
+ };
1659
+ };
1660
+ }[];
1661
+ sequentialInsertHintsNullifierTree: {
1662
+ leaf: {
1663
+ nullifier: string;
1664
+ } | {
1665
+ value: string;
1666
+ slot: string;
1667
+ };
1668
+ hintKey: {
1669
+ root: string;
1670
+ nextAvailableLeafIndex: string | number | bigint;
1671
+ };
1672
+ treeId: number;
1673
+ stateAfter: {
1674
+ root: string;
1675
+ nextAvailableLeafIndex: string | number | bigint;
1676
+ };
1677
+ lowLeavesWitnessData: {
1678
+ path: string[];
1679
+ index: string | number | bigint;
1680
+ leaf: {
1681
+ leaf: {
1682
+ nullifier: string;
1683
+ };
1684
+ nextKey: string;
1685
+ nextIndex: string | number | bigint;
1686
+ } | {
1687
+ leaf: {
1688
+ value: string;
1689
+ slot: string;
1690
+ };
1691
+ nextKey: string;
1692
+ nextIndex: string | number | bigint;
1693
+ };
1694
+ };
1695
+ insertionWitnessData: {
1696
+ path: string[];
1697
+ index: string | number | bigint;
1698
+ leaf: {
1699
+ leaf: {
1700
+ nullifier: string;
1701
+ };
1702
+ nextKey: string;
1703
+ nextIndex: string | number | bigint;
1704
+ } | {
1705
+ leaf: {
1706
+ value: string;
1707
+ slot: string;
1708
+ };
1709
+ nextKey: string;
656
1710
  nextIndex: string | number | bigint;
657
1711
  };
658
- lowLeafIndex: string;
659
- lowLeafSiblingPath: string[];
660
1712
  };
661
- insertionPath: string[];
662
- }[];
663
- noteHashReads: {
664
- value: string;
665
- leafIndex: string;
666
- siblingPath: string[];
667
- }[];
668
- noteHashWrites: {
669
- value: string;
670
- leafIndex: string;
671
- siblingPath: string[];
672
- }[];
673
- l1ToL2MessageReads: {
674
- value: string;
675
- leafIndex: string;
676
- siblingPath: string[];
677
1713
  }[];
678
1714
  }>;
679
1715
  publicInputs: z.ZodEffects<z.ZodObject<{
@@ -1688,25 +2724,6 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
1688
2724
  calldata: string[];
1689
2725
  functionName: string;
1690
2726
  hints: {
1691
- publicDataWrites: {
1692
- lowLeafRead: {
1693
- leafIndex: string;
1694
- siblingPath: string[];
1695
- leafPreimage: {
1696
- value: string;
1697
- slot: string;
1698
- nextIndex: string | number | bigint;
1699
- nextSlot: string;
1700
- };
1701
- };
1702
- insertionPath: string[];
1703
- newLeafPreimage: {
1704
- value: string;
1705
- slot: string;
1706
- nextIndex: string | number | bigint;
1707
- nextSlot: string;
1708
- };
1709
- }[];
1710
2727
  enqueuedCalls: {
1711
2728
  isStaticCall: boolean;
1712
2729
  calldata: string[];
@@ -1740,51 +2757,181 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
1740
2757
  classId: string;
1741
2758
  commitment: string;
1742
2759
  }[];
1743
- publicDataReads: {
1744
- leafIndex: string;
1745
- siblingPath: string[];
1746
- leafPreimage: {
1747
- value: string;
1748
- slot: string;
1749
- nextIndex: string | number | bigint;
1750
- nextSlot: string;
2760
+ getSiblingPathHints: {
2761
+ path: string[];
2762
+ index: string | number | bigint;
2763
+ hintKey: {
2764
+ root: string;
2765
+ nextAvailableLeafIndex: string | number | bigint;
1751
2766
  };
2767
+ treeId: number;
1752
2768
  }[];
1753
- nullifierReads: {
1754
- lowLeafPreimage: {
1755
- nullifier: string;
1756
- nextNullifier: string;
2769
+ getPreviousValueIndexHints: {
2770
+ value: string;
2771
+ index: string | number | bigint;
2772
+ hintKey: {
2773
+ root: string;
2774
+ nextAvailableLeafIndex: string | number | bigint;
2775
+ };
2776
+ treeId: number;
2777
+ alreadyPresent: boolean;
2778
+ }[];
2779
+ getLeafPreimageHintsPublicDataTree: {
2780
+ index: string | number | bigint;
2781
+ hintKey: {
2782
+ root: string;
2783
+ nextAvailableLeafIndex: string | number | bigint;
2784
+ };
2785
+ leafPreimage: {
2786
+ leaf: {
2787
+ nullifier: string;
2788
+ };
2789
+ nextKey: string;
2790
+ nextIndex: string | number | bigint;
2791
+ } | {
2792
+ leaf: {
2793
+ value: string;
2794
+ slot: string;
2795
+ };
2796
+ nextKey: string;
1757
2797
  nextIndex: string | number | bigint;
1758
2798
  };
1759
- lowLeafIndex: string;
1760
- lowLeafSiblingPath: string[];
1761
2799
  }[];
1762
- nullifierWrites: {
1763
- lowLeafRead: {
1764
- lowLeafPreimage: {
2800
+ getLeafPreimageHintsNullifierTree: {
2801
+ index: string | number | bigint;
2802
+ hintKey: {
2803
+ root: string;
2804
+ nextAvailableLeafIndex: string | number | bigint;
2805
+ };
2806
+ leafPreimage: {
2807
+ leaf: {
1765
2808
  nullifier: string;
1766
- nextNullifier: string;
1767
- nextIndex: string | number | bigint;
1768
2809
  };
1769
- lowLeafIndex: string;
1770
- lowLeafSiblingPath: string[];
2810
+ nextKey: string;
2811
+ nextIndex: string | number | bigint;
2812
+ } | {
2813
+ leaf: {
2814
+ value: string;
2815
+ slot: string;
2816
+ };
2817
+ nextKey: string;
2818
+ nextIndex: string | number | bigint;
1771
2819
  };
1772
- insertionPath: string[];
1773
2820
  }[];
1774
- noteHashReads: {
2821
+ getLeafValueHints: {
1775
2822
  value: string;
1776
- leafIndex: string;
1777
- siblingPath: string[];
2823
+ index: string | number | bigint;
2824
+ hintKey: {
2825
+ root: string;
2826
+ nextAvailableLeafIndex: string | number | bigint;
2827
+ };
2828
+ treeId: number;
1778
2829
  }[];
1779
- noteHashWrites: {
1780
- value: string;
1781
- leafIndex: string;
1782
- siblingPath: string[];
2830
+ sequentialInsertHintsPublicDataTree: {
2831
+ leaf: {
2832
+ nullifier: string;
2833
+ } | {
2834
+ value: string;
2835
+ slot: string;
2836
+ };
2837
+ hintKey: {
2838
+ root: string;
2839
+ nextAvailableLeafIndex: string | number | bigint;
2840
+ };
2841
+ treeId: number;
2842
+ stateAfter: {
2843
+ root: string;
2844
+ nextAvailableLeafIndex: string | number | bigint;
2845
+ };
2846
+ lowLeavesWitnessData: {
2847
+ path: string[];
2848
+ index: string | number | bigint;
2849
+ leaf: {
2850
+ leaf: {
2851
+ nullifier: string;
2852
+ };
2853
+ nextKey: string;
2854
+ nextIndex: string | number | bigint;
2855
+ } | {
2856
+ leaf: {
2857
+ value: string;
2858
+ slot: string;
2859
+ };
2860
+ nextKey: string;
2861
+ nextIndex: string | number | bigint;
2862
+ };
2863
+ };
2864
+ insertionWitnessData: {
2865
+ path: string[];
2866
+ index: string | number | bigint;
2867
+ leaf: {
2868
+ leaf: {
2869
+ nullifier: string;
2870
+ };
2871
+ nextKey: string;
2872
+ nextIndex: string | number | bigint;
2873
+ } | {
2874
+ leaf: {
2875
+ value: string;
2876
+ slot: string;
2877
+ };
2878
+ nextKey: string;
2879
+ nextIndex: string | number | bigint;
2880
+ };
2881
+ };
1783
2882
  }[];
1784
- l1ToL2MessageReads: {
1785
- value: string;
1786
- leafIndex: string;
1787
- siblingPath: string[];
2883
+ sequentialInsertHintsNullifierTree: {
2884
+ leaf: {
2885
+ nullifier: string;
2886
+ } | {
2887
+ value: string;
2888
+ slot: string;
2889
+ };
2890
+ hintKey: {
2891
+ root: string;
2892
+ nextAvailableLeafIndex: string | number | bigint;
2893
+ };
2894
+ treeId: number;
2895
+ stateAfter: {
2896
+ root: string;
2897
+ nextAvailableLeafIndex: string | number | bigint;
2898
+ };
2899
+ lowLeavesWitnessData: {
2900
+ path: string[];
2901
+ index: string | number | bigint;
2902
+ leaf: {
2903
+ leaf: {
2904
+ nullifier: string;
2905
+ };
2906
+ nextKey: string;
2907
+ nextIndex: string | number | bigint;
2908
+ } | {
2909
+ leaf: {
2910
+ value: string;
2911
+ slot: string;
2912
+ };
2913
+ nextKey: string;
2914
+ nextIndex: string | number | bigint;
2915
+ };
2916
+ };
2917
+ insertionWitnessData: {
2918
+ path: string[];
2919
+ index: string | number | bigint;
2920
+ leaf: {
2921
+ leaf: {
2922
+ nullifier: string;
2923
+ };
2924
+ nextKey: string;
2925
+ nextIndex: string | number | bigint;
2926
+ } | {
2927
+ leaf: {
2928
+ value: string;
2929
+ slot: string;
2930
+ };
2931
+ nextKey: string;
2932
+ nextIndex: string | number | bigint;
2933
+ };
2934
+ };
1788
2935
  }[];
1789
2936
  };
1790
2937
  publicInputs: {
@@ -1940,25 +3087,6 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
1940
3087
  calldata: string[];
1941
3088
  functionName: string;
1942
3089
  hints: {
1943
- publicDataWrites: {
1944
- lowLeafRead: {
1945
- leafIndex: string;
1946
- siblingPath: string[];
1947
- leafPreimage: {
1948
- value: string;
1949
- slot: string;
1950
- nextIndex: string | number | bigint;
1951
- nextSlot: string;
1952
- };
1953
- };
1954
- insertionPath: string[];
1955
- newLeafPreimage: {
1956
- value: string;
1957
- slot: string;
1958
- nextIndex: string | number | bigint;
1959
- nextSlot: string;
1960
- };
1961
- }[];
1962
3090
  enqueuedCalls: {
1963
3091
  isStaticCall: boolean;
1964
3092
  calldata: string[];
@@ -1992,51 +3120,181 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
1992
3120
  classId: string;
1993
3121
  commitment: string;
1994
3122
  }[];
1995
- publicDataReads: {
1996
- leafIndex: string;
1997
- siblingPath: string[];
1998
- leafPreimage: {
1999
- value: string;
2000
- slot: string;
2001
- nextIndex: string | number | bigint;
2002
- nextSlot: string;
3123
+ getSiblingPathHints: {
3124
+ path: string[];
3125
+ index: string | number | bigint;
3126
+ hintKey: {
3127
+ root: string;
3128
+ nextAvailableLeafIndex: string | number | bigint;
2003
3129
  };
3130
+ treeId: number;
2004
3131
  }[];
2005
- nullifierReads: {
2006
- lowLeafPreimage: {
2007
- nullifier: string;
2008
- nextNullifier: string;
3132
+ getPreviousValueIndexHints: {
3133
+ value: string;
3134
+ index: string | number | bigint;
3135
+ hintKey: {
3136
+ root: string;
3137
+ nextAvailableLeafIndex: string | number | bigint;
3138
+ };
3139
+ treeId: number;
3140
+ alreadyPresent: boolean;
3141
+ }[];
3142
+ getLeafPreimageHintsPublicDataTree: {
3143
+ index: string | number | bigint;
3144
+ hintKey: {
3145
+ root: string;
3146
+ nextAvailableLeafIndex: string | number | bigint;
3147
+ };
3148
+ leafPreimage: {
3149
+ leaf: {
3150
+ nullifier: string;
3151
+ };
3152
+ nextKey: string;
3153
+ nextIndex: string | number | bigint;
3154
+ } | {
3155
+ leaf: {
3156
+ value: string;
3157
+ slot: string;
3158
+ };
3159
+ nextKey: string;
2009
3160
  nextIndex: string | number | bigint;
2010
3161
  };
2011
- lowLeafIndex: string;
2012
- lowLeafSiblingPath: string[];
2013
3162
  }[];
2014
- nullifierWrites: {
2015
- lowLeafRead: {
2016
- lowLeafPreimage: {
3163
+ getLeafPreimageHintsNullifierTree: {
3164
+ index: string | number | bigint;
3165
+ hintKey: {
3166
+ root: string;
3167
+ nextAvailableLeafIndex: string | number | bigint;
3168
+ };
3169
+ leafPreimage: {
3170
+ leaf: {
2017
3171
  nullifier: string;
2018
- nextNullifier: string;
2019
- nextIndex: string | number | bigint;
2020
3172
  };
2021
- lowLeafIndex: string;
2022
- lowLeafSiblingPath: string[];
3173
+ nextKey: string;
3174
+ nextIndex: string | number | bigint;
3175
+ } | {
3176
+ leaf: {
3177
+ value: string;
3178
+ slot: string;
3179
+ };
3180
+ nextKey: string;
3181
+ nextIndex: string | number | bigint;
2023
3182
  };
2024
- insertionPath: string[];
2025
3183
  }[];
2026
- noteHashReads: {
3184
+ getLeafValueHints: {
2027
3185
  value: string;
2028
- leafIndex: string;
2029
- siblingPath: string[];
3186
+ index: string | number | bigint;
3187
+ hintKey: {
3188
+ root: string;
3189
+ nextAvailableLeafIndex: string | number | bigint;
3190
+ };
3191
+ treeId: number;
2030
3192
  }[];
2031
- noteHashWrites: {
2032
- value: string;
2033
- leafIndex: string;
2034
- siblingPath: string[];
3193
+ sequentialInsertHintsPublicDataTree: {
3194
+ leaf: {
3195
+ nullifier: string;
3196
+ } | {
3197
+ value: string;
3198
+ slot: string;
3199
+ };
3200
+ hintKey: {
3201
+ root: string;
3202
+ nextAvailableLeafIndex: string | number | bigint;
3203
+ };
3204
+ treeId: number;
3205
+ stateAfter: {
3206
+ root: string;
3207
+ nextAvailableLeafIndex: string | number | bigint;
3208
+ };
3209
+ lowLeavesWitnessData: {
3210
+ path: string[];
3211
+ index: string | number | bigint;
3212
+ leaf: {
3213
+ leaf: {
3214
+ nullifier: string;
3215
+ };
3216
+ nextKey: string;
3217
+ nextIndex: string | number | bigint;
3218
+ } | {
3219
+ leaf: {
3220
+ value: string;
3221
+ slot: string;
3222
+ };
3223
+ nextKey: string;
3224
+ nextIndex: string | number | bigint;
3225
+ };
3226
+ };
3227
+ insertionWitnessData: {
3228
+ path: string[];
3229
+ index: string | number | bigint;
3230
+ leaf: {
3231
+ leaf: {
3232
+ nullifier: string;
3233
+ };
3234
+ nextKey: string;
3235
+ nextIndex: string | number | bigint;
3236
+ } | {
3237
+ leaf: {
3238
+ value: string;
3239
+ slot: string;
3240
+ };
3241
+ nextKey: string;
3242
+ nextIndex: string | number | bigint;
3243
+ };
3244
+ };
2035
3245
  }[];
2036
- l1ToL2MessageReads: {
2037
- value: string;
2038
- leafIndex: string;
2039
- siblingPath: string[];
3246
+ sequentialInsertHintsNullifierTree: {
3247
+ leaf: {
3248
+ nullifier: string;
3249
+ } | {
3250
+ value: string;
3251
+ slot: string;
3252
+ };
3253
+ hintKey: {
3254
+ root: string;
3255
+ nextAvailableLeafIndex: string | number | bigint;
3256
+ };
3257
+ treeId: number;
3258
+ stateAfter: {
3259
+ root: string;
3260
+ nextAvailableLeafIndex: string | number | bigint;
3261
+ };
3262
+ lowLeavesWitnessData: {
3263
+ path: string[];
3264
+ index: string | number | bigint;
3265
+ leaf: {
3266
+ leaf: {
3267
+ nullifier: string;
3268
+ };
3269
+ nextKey: string;
3270
+ nextIndex: string | number | bigint;
3271
+ } | {
3272
+ leaf: {
3273
+ value: string;
3274
+ slot: string;
3275
+ };
3276
+ nextKey: string;
3277
+ nextIndex: string | number | bigint;
3278
+ };
3279
+ };
3280
+ insertionWitnessData: {
3281
+ path: string[];
3282
+ index: string | number | bigint;
3283
+ leaf: {
3284
+ leaf: {
3285
+ nullifier: string;
3286
+ };
3287
+ nextKey: string;
3288
+ nextIndex: string | number | bigint;
3289
+ } | {
3290
+ leaf: {
3291
+ value: string;
3292
+ slot: string;
3293
+ };
3294
+ nextKey: string;
3295
+ nextIndex: string | number | bigint;
3296
+ };
3297
+ };
2040
3298
  }[];
2041
3299
  };
2042
3300
  publicInputs: {
@@ -2198,25 +3456,6 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
2198
3456
  calldata: string[];
2199
3457
  functionName: string;
2200
3458
  hints: {
2201
- publicDataWrites: {
2202
- lowLeafRead: {
2203
- leafIndex: string;
2204
- siblingPath: string[];
2205
- leafPreimage: {
2206
- value: string;
2207
- slot: string;
2208
- nextIndex: string | number | bigint;
2209
- nextSlot: string;
2210
- };
2211
- };
2212
- insertionPath: string[];
2213
- newLeafPreimage: {
2214
- value: string;
2215
- slot: string;
2216
- nextIndex: string | number | bigint;
2217
- nextSlot: string;
2218
- };
2219
- }[];
2220
3459
  enqueuedCalls: {
2221
3460
  isStaticCall: boolean;
2222
3461
  calldata: string[];
@@ -2250,51 +3489,181 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
2250
3489
  classId: string;
2251
3490
  commitment: string;
2252
3491
  }[];
2253
- publicDataReads: {
2254
- leafIndex: string;
2255
- siblingPath: string[];
2256
- leafPreimage: {
2257
- value: string;
2258
- slot: string;
2259
- nextIndex: string | number | bigint;
2260
- nextSlot: string;
3492
+ getSiblingPathHints: {
3493
+ path: string[];
3494
+ index: string | number | bigint;
3495
+ hintKey: {
3496
+ root: string;
3497
+ nextAvailableLeafIndex: string | number | bigint;
2261
3498
  };
3499
+ treeId: number;
2262
3500
  }[];
2263
- nullifierReads: {
2264
- lowLeafPreimage: {
2265
- nullifier: string;
2266
- nextNullifier: string;
3501
+ getPreviousValueIndexHints: {
3502
+ value: string;
3503
+ index: string | number | bigint;
3504
+ hintKey: {
3505
+ root: string;
3506
+ nextAvailableLeafIndex: string | number | bigint;
3507
+ };
3508
+ treeId: number;
3509
+ alreadyPresent: boolean;
3510
+ }[];
3511
+ getLeafPreimageHintsPublicDataTree: {
3512
+ index: string | number | bigint;
3513
+ hintKey: {
3514
+ root: string;
3515
+ nextAvailableLeafIndex: string | number | bigint;
3516
+ };
3517
+ leafPreimage: {
3518
+ leaf: {
3519
+ nullifier: string;
3520
+ };
3521
+ nextKey: string;
3522
+ nextIndex: string | number | bigint;
3523
+ } | {
3524
+ leaf: {
3525
+ value: string;
3526
+ slot: string;
3527
+ };
3528
+ nextKey: string;
2267
3529
  nextIndex: string | number | bigint;
2268
3530
  };
2269
- lowLeafIndex: string;
2270
- lowLeafSiblingPath: string[];
2271
3531
  }[];
2272
- nullifierWrites: {
2273
- lowLeafRead: {
2274
- lowLeafPreimage: {
3532
+ getLeafPreimageHintsNullifierTree: {
3533
+ index: string | number | bigint;
3534
+ hintKey: {
3535
+ root: string;
3536
+ nextAvailableLeafIndex: string | number | bigint;
3537
+ };
3538
+ leafPreimage: {
3539
+ leaf: {
2275
3540
  nullifier: string;
2276
- nextNullifier: string;
2277
- nextIndex: string | number | bigint;
2278
3541
  };
2279
- lowLeafIndex: string;
2280
- lowLeafSiblingPath: string[];
3542
+ nextKey: string;
3543
+ nextIndex: string | number | bigint;
3544
+ } | {
3545
+ leaf: {
3546
+ value: string;
3547
+ slot: string;
3548
+ };
3549
+ nextKey: string;
3550
+ nextIndex: string | number | bigint;
2281
3551
  };
2282
- insertionPath: string[];
2283
3552
  }[];
2284
- noteHashReads: {
3553
+ getLeafValueHints: {
2285
3554
  value: string;
2286
- leafIndex: string;
2287
- siblingPath: string[];
3555
+ index: string | number | bigint;
3556
+ hintKey: {
3557
+ root: string;
3558
+ nextAvailableLeafIndex: string | number | bigint;
3559
+ };
3560
+ treeId: number;
2288
3561
  }[];
2289
- noteHashWrites: {
2290
- value: string;
2291
- leafIndex: string;
2292
- siblingPath: string[];
3562
+ sequentialInsertHintsPublicDataTree: {
3563
+ leaf: {
3564
+ nullifier: string;
3565
+ } | {
3566
+ value: string;
3567
+ slot: string;
3568
+ };
3569
+ hintKey: {
3570
+ root: string;
3571
+ nextAvailableLeafIndex: string | number | bigint;
3572
+ };
3573
+ treeId: number;
3574
+ stateAfter: {
3575
+ root: string;
3576
+ nextAvailableLeafIndex: string | number | bigint;
3577
+ };
3578
+ lowLeavesWitnessData: {
3579
+ path: string[];
3580
+ index: string | number | bigint;
3581
+ leaf: {
3582
+ leaf: {
3583
+ nullifier: string;
3584
+ };
3585
+ nextKey: string;
3586
+ nextIndex: string | number | bigint;
3587
+ } | {
3588
+ leaf: {
3589
+ value: string;
3590
+ slot: string;
3591
+ };
3592
+ nextKey: string;
3593
+ nextIndex: string | number | bigint;
3594
+ };
3595
+ };
3596
+ insertionWitnessData: {
3597
+ path: string[];
3598
+ index: string | number | bigint;
3599
+ leaf: {
3600
+ leaf: {
3601
+ nullifier: string;
3602
+ };
3603
+ nextKey: string;
3604
+ nextIndex: string | number | bigint;
3605
+ } | {
3606
+ leaf: {
3607
+ value: string;
3608
+ slot: string;
3609
+ };
3610
+ nextKey: string;
3611
+ nextIndex: string | number | bigint;
3612
+ };
3613
+ };
2293
3614
  }[];
2294
- l1ToL2MessageReads: {
2295
- value: string;
2296
- leafIndex: string;
2297
- siblingPath: string[];
3615
+ sequentialInsertHintsNullifierTree: {
3616
+ leaf: {
3617
+ nullifier: string;
3618
+ } | {
3619
+ value: string;
3620
+ slot: string;
3621
+ };
3622
+ hintKey: {
3623
+ root: string;
3624
+ nextAvailableLeafIndex: string | number | bigint;
3625
+ };
3626
+ treeId: number;
3627
+ stateAfter: {
3628
+ root: string;
3629
+ nextAvailableLeafIndex: string | number | bigint;
3630
+ };
3631
+ lowLeavesWitnessData: {
3632
+ path: string[];
3633
+ index: string | number | bigint;
3634
+ leaf: {
3635
+ leaf: {
3636
+ nullifier: string;
3637
+ };
3638
+ nextKey: string;
3639
+ nextIndex: string | number | bigint;
3640
+ } | {
3641
+ leaf: {
3642
+ value: string;
3643
+ slot: string;
3644
+ };
3645
+ nextKey: string;
3646
+ nextIndex: string | number | bigint;
3647
+ };
3648
+ };
3649
+ insertionWitnessData: {
3650
+ path: string[];
3651
+ index: string | number | bigint;
3652
+ leaf: {
3653
+ leaf: {
3654
+ nullifier: string;
3655
+ };
3656
+ nextKey: string;
3657
+ nextIndex: string | number | bigint;
3658
+ } | {
3659
+ leaf: {
3660
+ value: string;
3661
+ slot: string;
3662
+ };
3663
+ nextKey: string;
3664
+ nextIndex: string | number | bigint;
3665
+ };
3666
+ };
2298
3667
  }[];
2299
3668
  };
2300
3669
  publicInputs: {