@aztec/stdlib 0.82.3 → 0.83.1-alpha-testnet.0

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 (129) hide show
  1. package/dest/avm/avm.d.ts +3889 -382
  2. package/dest/avm/avm.d.ts.map +1 -1
  3. package/dest/avm/avm.js +64 -18
  4. package/dest/avm/avm_proving_request.d.ts +1610 -66
  5. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  6. package/dest/block/l2_block_downloader/l2_block_stream.d.ts +9 -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 +39 -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/interfaces/prover-client.d.ts +3 -3
  16. package/dest/interfaces/prover-client.d.ts.map +1 -1
  17. package/dest/interfaces/prover-client.js +6 -4
  18. package/dest/interfaces/proving-job.d.ts +1610 -66
  19. package/dest/interfaces/proving-job.d.ts.map +1 -1
  20. package/dest/interfaces/pxe.d.ts +7 -6
  21. package/dest/interfaces/pxe.d.ts.map +1 -1
  22. package/dest/interfaces/pxe.js +1 -1
  23. package/dest/keys/derivation.d.ts +1 -1
  24. package/dest/keys/derivation.d.ts.map +1 -1
  25. package/dest/keys/derivation.js +10 -2
  26. package/dest/logs/index.d.ts +2 -1
  27. package/dest/logs/index.d.ts.map +1 -1
  28. package/dest/logs/index.js +2 -1
  29. package/dest/logs/pending_tagged_log.d.ts +17 -0
  30. package/dest/logs/pending_tagged_log.d.ts.map +1 -0
  31. package/dest/logs/pending_tagged_log.js +45 -0
  32. package/dest/logs/{l1_payload/shared_secret_derivation.d.ts → shared_secret_derivation.d.ts} +4 -3
  33. package/dest/logs/shared_secret_derivation.d.ts.map +1 -0
  34. package/dest/logs/{l1_payload/shared_secret_derivation.js → shared_secret_derivation.js} +3 -5
  35. package/dest/logs/tx_scoped_l2_log.d.ts +6 -1
  36. package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
  37. package/dest/logs/tx_scoped_l2_log.js +12 -4
  38. package/dest/note/note.d.ts +45 -4
  39. package/dest/note/note.d.ts.map +1 -1
  40. package/dest/note/note.js +51 -4
  41. package/dest/proofs/proof.d.ts.map +1 -1
  42. package/dest/proofs/proof.js +33 -7
  43. package/dest/snapshots/download.js +1 -1
  44. package/dest/snapshots/types.d.ts +4 -4
  45. package/dest/snapshots/types.d.ts.map +1 -1
  46. package/dest/snapshots/types.js +1 -1
  47. package/dest/snapshots/upload.d.ts +1 -1
  48. package/dest/snapshots/upload.d.ts.map +1 -1
  49. package/dest/snapshots/upload.js +1 -1
  50. package/dest/tests/factories.d.ts +10 -2
  51. package/dest/tests/factories.d.ts.map +1 -1
  52. package/dest/tests/factories.js +42 -6
  53. package/dest/tests/mocks.d.ts +2 -1
  54. package/dest/tests/mocks.d.ts.map +1 -1
  55. package/dest/tests/mocks.js +5 -1
  56. package/dest/trees/nullifier_leaf.d.ts +46 -21
  57. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  58. package/dest/trees/nullifier_leaf.js +48 -30
  59. package/dest/trees/nullifier_membership_witness.d.ts +28 -12
  60. package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
  61. package/dest/trees/protocol_contract_leaf.d.ts +0 -1
  62. package/dest/trees/protocol_contract_leaf.d.ts.map +1 -1
  63. package/dest/trees/protocol_contract_leaf.js +0 -3
  64. package/dest/trees/public_data_leaf.d.ts +46 -25
  65. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  66. package/dest/trees/public_data_leaf.js +35 -30
  67. package/dest/trees/public_data_witness.d.ts +36 -18
  68. package/dest/trees/public_data_witness.d.ts.map +1 -1
  69. package/dest/trees/public_data_witness.js +6 -6
  70. package/dest/versioning/versioning.d.ts +1 -1
  71. package/dest/versioning/versioning.d.ts.map +1 -1
  72. package/dest/versioning/versioning.js +6 -6
  73. package/package.json +6 -7
  74. package/src/avm/avm.ts +74 -20
  75. package/src/block/l2_block_downloader/l2_block_stream.ts +58 -29
  76. package/src/config/config.ts +6 -6
  77. package/src/contract/interfaces/node-info.ts +3 -3
  78. package/src/interfaces/prover-client.ts +9 -7
  79. package/src/interfaces/pxe.ts +14 -7
  80. package/src/keys/derivation.ts +12 -6
  81. package/src/logs/index.ts +2 -1
  82. package/src/logs/pending_tagged_log.ts +43 -0
  83. package/src/logs/{l1_payload/shared_secret_derivation.ts → shared_secret_derivation.ts} +4 -11
  84. package/src/logs/tx_scoped_l2_log.ts +13 -4
  85. package/src/note/note.ts +61 -5
  86. package/src/proofs/proof.ts +39 -5
  87. package/src/snapshots/download.ts +1 -1
  88. package/src/snapshots/types.ts +2 -2
  89. package/src/snapshots/upload.ts +5 -3
  90. package/src/tests/factories.ts +72 -8
  91. package/src/tests/mocks.ts +7 -0
  92. package/src/trees/nullifier_leaf.ts +49 -26
  93. package/src/trees/protocol_contract_leaf.ts +0 -4
  94. package/src/trees/public_data_leaf.ts +31 -29
  95. package/src/trees/public_data_witness.ts +6 -6
  96. package/src/versioning/versioning.ts +8 -14
  97. package/dest/event/event.d.ts +0 -24
  98. package/dest/event/event.d.ts.map +0 -1
  99. package/dest/event/event.js +0 -13
  100. package/dest/event/event_metadata.d.ts +0 -38
  101. package/dest/event/event_metadata.d.ts.map +0 -1
  102. package/dest/event/event_metadata.js +0 -45
  103. package/dest/event/index.d.ts +0 -4
  104. package/dest/event/index.d.ts.map +0 -1
  105. package/dest/event/index.js +0 -3
  106. package/dest/event/l1_event_payload.d.ts +0 -52
  107. package/dest/event/l1_event_payload.d.ts.map +0 -1
  108. package/dest/event/l1_event_payload.js +0 -64
  109. package/dest/logs/l1_payload/encrypted_log_payload.d.ts +0 -50
  110. package/dest/logs/l1_payload/encrypted_log_payload.d.ts.map +0 -1
  111. package/dest/logs/l1_payload/encrypted_log_payload.js +0 -140
  112. package/dest/logs/l1_payload/encryption_util.d.ts +0 -24
  113. package/dest/logs/l1_payload/encryption_util.d.ts.map +0 -1
  114. package/dest/logs/l1_payload/encryption_util.js +0 -46
  115. package/dest/logs/l1_payload/index.d.ts +0 -3
  116. package/dest/logs/l1_payload/index.d.ts.map +0 -1
  117. package/dest/logs/l1_payload/index.js +0 -2
  118. package/dest/logs/l1_payload/payload.d.ts +0 -60
  119. package/dest/logs/l1_payload/payload.d.ts.map +0 -1
  120. package/dest/logs/l1_payload/payload.js +0 -61
  121. package/dest/logs/l1_payload/shared_secret_derivation.d.ts.map +0 -1
  122. package/src/event/event.ts +0 -16
  123. package/src/event/event_metadata.ts +0 -56
  124. package/src/event/index.ts +0 -3
  125. package/src/event/l1_event_payload.ts +0 -87
  126. package/src/logs/l1_payload/encrypted_log_payload.ts +0 -202
  127. package/src/logs/l1_payload/encryption_util.ts +0 -54
  128. package/src/logs/l1_payload/index.ts +0 -2
  129. package/src/logs/l1_payload/payload.ts +0 -73
package/dest/avm/avm.d.ts CHANGED
@@ -5,9 +5,9 @@ import { z } from 'zod';
5
5
  import { AztecAddress } from '../aztec-address/index.js';
6
6
  import { PublicKeys } from '../keys/public_keys.js';
7
7
  import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
8
- import type { MerkleTreeId } from '../trees/merkle_tree_id.js';
9
- import { NullifierLeaf } from '../trees/nullifier_leaf.js';
10
- import { PublicDataTreeLeaf } from '../trees/public_data_leaf.js';
8
+ import { MerkleTreeId } from '../trees/merkle_tree_id.js';
9
+ import { NullifierLeafPreimage } from '../trees/nullifier_leaf.js';
10
+ import { PublicDataTreeLeafPreimage } from '../trees/public_data_leaf.js';
11
11
  import { AvmCircuitPublicInputs } from './avm_circuit_public_inputs.js';
12
12
  export declare class AvmContractClassHint {
13
13
  readonly classId: Fr;
@@ -243,13 +243,12 @@ export declare class AvmGetPreviousValueIndexHint {
243
243
  alreadyPresent: boolean;
244
244
  }>;
245
245
  }
246
+ type IndexedTreeLeafPreimages = NullifierLeafPreimage | PublicDataTreeLeafPreimage;
246
247
  declare const AvmGetLeafPreimageHintPublicDataTree_base: {
247
- new (hintKey: AppendOnlyTreeSnapshot, index: bigint, leaf: PublicDataTreeLeaf, nextIndex: bigint, nextValue: Fr): {
248
+ new (hintKey: AppendOnlyTreeSnapshot, index: bigint, leafPreimage: IndexedTreeLeafPreimages): {
248
249
  readonly hintKey: AppendOnlyTreeSnapshot;
249
250
  readonly index: bigint;
250
- readonly leaf: PublicDataTreeLeaf;
251
- readonly nextIndex: bigint;
252
- readonly nextValue: Fr;
251
+ readonly leafPreimage: IndexedTreeLeafPreimages;
253
252
  };
254
253
  readonly schema: z.ZodEffects<z.ZodObject<{
255
254
  hintKey: z.ZodEffects<z.ZodObject<{
@@ -266,50 +265,126 @@ declare const AvmGetLeafPreimageHintPublicDataTree_base: {
266
265
  nextAvailableLeafIndex: string | number | bigint;
267
266
  }>;
268
267
  index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
269
- leaf: z.ZodType<any, z.ZodTypeDef, any>;
270
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
271
- nextValue: z.ZodType<Fr, any, string>;
268
+ leafPreimage: z.ZodEffects<z.ZodObject<{
269
+ leaf: z.ZodEffects<z.ZodObject<{
270
+ nullifier: z.ZodType<Fr, any, string>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ nullifier: Fr;
273
+ }, {
274
+ nullifier: string;
275
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
276
+ nullifier: string;
277
+ }>;
278
+ nextKey: z.ZodType<Fr, any, string>;
279
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
282
+ nextKey: Fr;
283
+ nextIndex: bigint;
284
+ }, {
285
+ leaf: {
286
+ nullifier: string;
287
+ };
288
+ nextKey: string;
289
+ nextIndex: string | number | bigint;
290
+ }>, NullifierLeafPreimage, {
291
+ leaf: {
292
+ nullifier: string;
293
+ };
294
+ nextKey: string;
295
+ nextIndex: string | number | bigint;
296
+ }> | z.ZodEffects<z.ZodObject<{
297
+ leaf: z.ZodEffects<z.ZodObject<{
298
+ slot: z.ZodType<Fr, any, string>;
299
+ value: z.ZodType<Fr, any, string>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ value: Fr;
302
+ slot: Fr;
303
+ }, {
304
+ value: string;
305
+ slot: string;
306
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
307
+ value: string;
308
+ slot: string;
309
+ }>;
310
+ nextKey: z.ZodType<Fr, any, string>;
311
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
314
+ nextKey: Fr;
315
+ nextIndex: bigint;
316
+ }, {
317
+ leaf: {
318
+ value: string;
319
+ slot: string;
320
+ };
321
+ nextKey: string;
322
+ nextIndex: string | number | bigint;
323
+ }>, PublicDataTreeLeafPreimage, {
324
+ leaf: {
325
+ value: string;
326
+ slot: string;
327
+ };
328
+ nextKey: string;
329
+ nextIndex: string | number | bigint;
330
+ }>;
272
331
  }, "strip", z.ZodTypeAny, {
273
332
  index: bigint;
274
- nextIndex: bigint;
275
333
  hintKey: AppendOnlyTreeSnapshot;
276
- nextValue: Fr;
277
- leaf?: any;
334
+ leafPreimage: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
278
335
  }, {
279
336
  index: string | number | bigint;
280
- nextIndex: string | number | bigint;
281
337
  hintKey: {
282
338
  root: string;
283
339
  nextAvailableLeafIndex: string | number | bigint;
284
340
  };
285
- nextValue: string;
286
- leaf?: any;
341
+ leafPreimage: {
342
+ leaf: {
343
+ nullifier: string;
344
+ };
345
+ nextKey: string;
346
+ nextIndex: string | number | bigint;
347
+ } | {
348
+ leaf: {
349
+ value: string;
350
+ slot: string;
351
+ };
352
+ nextKey: string;
353
+ nextIndex: string | number | bigint;
354
+ };
287
355
  }>, {
288
356
  readonly hintKey: AppendOnlyTreeSnapshot;
289
357
  readonly index: bigint;
290
- readonly leaf: PublicDataTreeLeaf;
291
- readonly nextIndex: bigint;
292
- readonly nextValue: Fr;
358
+ readonly leafPreimage: IndexedTreeLeafPreimages;
293
359
  }, {
294
360
  index: string | number | bigint;
295
- nextIndex: string | number | bigint;
296
361
  hintKey: {
297
362
  root: string;
298
363
  nextAvailableLeafIndex: string | number | bigint;
299
364
  };
300
- nextValue: string;
301
- leaf?: any;
365
+ leafPreimage: {
366
+ leaf: {
367
+ nullifier: string;
368
+ };
369
+ nextKey: string;
370
+ nextIndex: string | number | bigint;
371
+ } | {
372
+ leaf: {
373
+ value: string;
374
+ slot: string;
375
+ };
376
+ nextKey: string;
377
+ nextIndex: string | number | bigint;
378
+ };
302
379
  }>;
303
380
  };
304
381
  export declare class AvmGetLeafPreimageHintPublicDataTree extends AvmGetLeafPreimageHintPublicDataTree_base {
305
382
  }
306
383
  declare const AvmGetLeafPreimageHintNullifierTree_base: {
307
- new (hintKey: AppendOnlyTreeSnapshot, index: bigint, leaf: NullifierLeaf, nextIndex: bigint, nextValue: Fr): {
384
+ new (hintKey: AppendOnlyTreeSnapshot, index: bigint, leafPreimage: IndexedTreeLeafPreimages): {
308
385
  readonly hintKey: AppendOnlyTreeSnapshot;
309
386
  readonly index: bigint;
310
- readonly leaf: NullifierLeaf;
311
- readonly nextIndex: bigint;
312
- readonly nextValue: Fr;
387
+ readonly leafPreimage: IndexedTreeLeafPreimages;
313
388
  };
314
389
  readonly schema: z.ZodEffects<z.ZodObject<{
315
390
  hintKey: z.ZodEffects<z.ZodObject<{
@@ -326,39 +401,117 @@ declare const AvmGetLeafPreimageHintNullifierTree_base: {
326
401
  nextAvailableLeafIndex: string | number | bigint;
327
402
  }>;
328
403
  index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
329
- leaf: z.ZodType<any, z.ZodTypeDef, any>;
330
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
331
- nextValue: z.ZodType<Fr, any, string>;
404
+ leafPreimage: z.ZodEffects<z.ZodObject<{
405
+ leaf: z.ZodEffects<z.ZodObject<{
406
+ nullifier: z.ZodType<Fr, any, string>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ nullifier: Fr;
409
+ }, {
410
+ nullifier: string;
411
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
412
+ nullifier: string;
413
+ }>;
414
+ nextKey: z.ZodType<Fr, any, string>;
415
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
418
+ nextKey: Fr;
419
+ nextIndex: bigint;
420
+ }, {
421
+ leaf: {
422
+ nullifier: string;
423
+ };
424
+ nextKey: string;
425
+ nextIndex: string | number | bigint;
426
+ }>, NullifierLeafPreimage, {
427
+ leaf: {
428
+ nullifier: string;
429
+ };
430
+ nextKey: string;
431
+ nextIndex: string | number | bigint;
432
+ }> | z.ZodEffects<z.ZodObject<{
433
+ leaf: z.ZodEffects<z.ZodObject<{
434
+ slot: z.ZodType<Fr, any, string>;
435
+ value: z.ZodType<Fr, any, string>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ value: Fr;
438
+ slot: Fr;
439
+ }, {
440
+ value: string;
441
+ slot: string;
442
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
443
+ value: string;
444
+ slot: string;
445
+ }>;
446
+ nextKey: z.ZodType<Fr, any, string>;
447
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
450
+ nextKey: Fr;
451
+ nextIndex: bigint;
452
+ }, {
453
+ leaf: {
454
+ value: string;
455
+ slot: string;
456
+ };
457
+ nextKey: string;
458
+ nextIndex: string | number | bigint;
459
+ }>, PublicDataTreeLeafPreimage, {
460
+ leaf: {
461
+ value: string;
462
+ slot: string;
463
+ };
464
+ nextKey: string;
465
+ nextIndex: string | number | bigint;
466
+ }>;
332
467
  }, "strip", z.ZodTypeAny, {
333
468
  index: bigint;
334
- nextIndex: bigint;
335
469
  hintKey: AppendOnlyTreeSnapshot;
336
- nextValue: Fr;
337
- leaf?: any;
470
+ leafPreimage: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
338
471
  }, {
339
472
  index: string | number | bigint;
340
- nextIndex: string | number | bigint;
341
473
  hintKey: {
342
474
  root: string;
343
475
  nextAvailableLeafIndex: string | number | bigint;
344
476
  };
345
- nextValue: string;
346
- leaf?: any;
477
+ leafPreimage: {
478
+ leaf: {
479
+ nullifier: string;
480
+ };
481
+ nextKey: string;
482
+ nextIndex: string | number | bigint;
483
+ } | {
484
+ leaf: {
485
+ value: string;
486
+ slot: string;
487
+ };
488
+ nextKey: string;
489
+ nextIndex: string | number | bigint;
490
+ };
347
491
  }>, {
348
492
  readonly hintKey: AppendOnlyTreeSnapshot;
349
493
  readonly index: bigint;
350
- readonly leaf: NullifierLeaf;
351
- readonly nextIndex: bigint;
352
- readonly nextValue: Fr;
494
+ readonly leafPreimage: IndexedTreeLeafPreimages;
353
495
  }, {
354
496
  index: string | number | bigint;
355
- nextIndex: string | number | bigint;
356
497
  hintKey: {
357
498
  root: string;
358
499
  nextAvailableLeafIndex: string | number | bigint;
359
500
  };
360
- nextValue: string;
361
- leaf?: any;
501
+ leafPreimage: {
502
+ leaf: {
503
+ nullifier: string;
504
+ };
505
+ nextKey: string;
506
+ nextIndex: string | number | bigint;
507
+ } | {
508
+ leaf: {
509
+ value: string;
510
+ slot: string;
511
+ };
512
+ nextKey: string;
513
+ nextIndex: string | number | bigint;
514
+ };
362
515
  }>;
363
516
  };
364
517
  export declare class AvmGetLeafPreimageHintNullifierTree extends AvmGetLeafPreimageHintNullifierTree_base {
@@ -409,112 +562,890 @@ export declare class AvmGetLeafValueHint {
409
562
  treeId: number;
410
563
  }>;
411
564
  }
412
- export declare class AvmEnqueuedCallHint {
413
- readonly msgSender: AztecAddress;
414
- readonly contractAddress: AztecAddress;
415
- readonly calldata: Fr[];
416
- isStaticCall: boolean;
417
- constructor(msgSender: AztecAddress, contractAddress: AztecAddress, calldata: Fr[], isStaticCall: boolean);
418
- static get schema(): z.ZodEffects<z.ZodObject<{
419
- msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
420
- contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
421
- calldata: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
422
- isStaticCall: z.ZodBoolean;
423
- }, "strip", z.ZodTypeAny, {
424
- contractAddress: AztecAddress;
425
- msgSender: AztecAddress;
426
- isStaticCall: boolean;
427
- calldata: Fr[];
428
- }, {
429
- isStaticCall: boolean;
430
- calldata: string[];
431
- contractAddress?: any;
432
- msgSender?: any;
433
- }>, AvmEnqueuedCallHint, {
434
- isStaticCall: boolean;
435
- calldata: string[];
436
- contractAddress?: any;
437
- msgSender?: any;
438
- }>;
439
- }
440
- export declare class AvmExecutionHints {
441
- readonly enqueuedCalls: AvmEnqueuedCallHint[];
442
- readonly contractInstances: AvmContractInstanceHint[];
443
- readonly contractClasses: AvmContractClassHint[];
444
- readonly bytecodeCommitments: AvmBytecodeCommitmentHint[];
445
- readonly getSiblingPathHints: AvmGetSiblingPathHint[];
446
- readonly getPreviousValueIndexHints: AvmGetPreviousValueIndexHint[];
447
- readonly getLeafPreimageHintsPublicDataTree: AvmGetLeafPreimageHintPublicDataTree[];
448
- readonly getLeafPreimageHintsNullifierTree: AvmGetLeafPreimageHintNullifierTree[];
449
- readonly getLeafValueHints: AvmGetLeafValueHint[];
450
- constructor(enqueuedCalls?: AvmEnqueuedCallHint[], contractInstances?: AvmContractInstanceHint[], contractClasses?: AvmContractClassHint[], bytecodeCommitments?: AvmBytecodeCommitmentHint[], getSiblingPathHints?: AvmGetSiblingPathHint[], getPreviousValueIndexHints?: AvmGetPreviousValueIndexHint[], getLeafPreimageHintsPublicDataTree?: AvmGetLeafPreimageHintPublicDataTree[], getLeafPreimageHintsNullifierTree?: AvmGetLeafPreimageHintNullifierTree[], getLeafValueHints?: AvmGetLeafValueHint[]);
451
- static empty(): AvmExecutionHints;
452
- static get schema(): z.ZodEffects<z.ZodObject<{
453
- enqueuedCalls: z.ZodArray<z.ZodEffects<z.ZodObject<{
454
- msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
455
- contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
456
- calldata: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
457
- isStaticCall: z.ZodBoolean;
565
+ declare const AvmSequentialInsertHintPublicDataTree_base: {
566
+ new (hintKey: AppendOnlyTreeSnapshot, stateAfter: AppendOnlyTreeSnapshot, treeId: MerkleTreeId, leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf, lowLeavesWitnessData: {
567
+ leaf: IndexedTreeLeafPreimages;
568
+ index: bigint;
569
+ path: Fr[];
570
+ }, insertionWitnessData: {
571
+ leaf: IndexedTreeLeafPreimages;
572
+ index: bigint;
573
+ path: Fr[];
574
+ }): {
575
+ readonly hintKey: AppendOnlyTreeSnapshot;
576
+ readonly stateAfter: AppendOnlyTreeSnapshot;
577
+ readonly treeId: MerkleTreeId;
578
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
579
+ readonly lowLeavesWitnessData: {
580
+ leaf: IndexedTreeLeafPreimages;
581
+ index: bigint;
582
+ path: Fr[];
583
+ };
584
+ readonly insertionWitnessData: {
585
+ leaf: IndexedTreeLeafPreimages;
586
+ index: bigint;
587
+ path: Fr[];
588
+ };
589
+ };
590
+ readonly schema: z.ZodEffects<z.ZodObject<{
591
+ hintKey: z.ZodEffects<z.ZodObject<{
592
+ root: z.ZodType<Fr, any, string>;
593
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
458
594
  }, "strip", z.ZodTypeAny, {
459
- contractAddress: AztecAddress;
460
- msgSender: AztecAddress;
461
- isStaticCall: boolean;
462
- calldata: Fr[];
595
+ root: Fr;
596
+ nextAvailableLeafIndex: number;
463
597
  }, {
464
- isStaticCall: boolean;
465
- calldata: string[];
466
- contractAddress?: any;
467
- msgSender?: any;
468
- }>, AvmEnqueuedCallHint, {
469
- isStaticCall: boolean;
470
- calldata: string[];
471
- contractAddress?: any;
472
- msgSender?: any;
473
- }>, "many">;
474
- contractInstances: z.ZodArray<z.ZodEffects<z.ZodObject<{
475
- address: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
476
- salt: z.ZodType<Fr, any, string>;
477
- deployer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
478
- currentContractClassId: z.ZodType<Fr, any, string>;
479
- originalContractClassId: z.ZodType<Fr, any, string>;
480
- initializationHash: z.ZodType<Fr, any, string>;
481
- publicKeys: z.ZodEffects<z.ZodObject<{
482
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
483
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
484
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
485
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
598
+ root: string;
599
+ nextAvailableLeafIndex: string | number | bigint;
600
+ }>, AppendOnlyTreeSnapshot, {
601
+ root: string;
602
+ nextAvailableLeafIndex: string | number | bigint;
603
+ }>;
604
+ stateAfter: z.ZodEffects<z.ZodObject<{
605
+ root: z.ZodType<Fr, any, string>;
606
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ root: Fr;
609
+ nextAvailableLeafIndex: number;
610
+ }, {
611
+ root: string;
612
+ nextAvailableLeafIndex: string | number | bigint;
613
+ }>, AppendOnlyTreeSnapshot, {
614
+ root: string;
615
+ nextAvailableLeafIndex: string | number | bigint;
616
+ }>;
617
+ treeId: z.ZodNumber;
618
+ leaf: z.ZodEffects<z.ZodObject<{
619
+ nullifier: z.ZodType<Fr, any, string>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ nullifier: Fr;
622
+ }, {
623
+ nullifier: string;
624
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
625
+ nullifier: string;
626
+ }> | z.ZodEffects<z.ZodObject<{
627
+ slot: z.ZodType<Fr, any, string>;
628
+ value: z.ZodType<Fr, any, string>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ value: Fr;
631
+ slot: Fr;
632
+ }, {
633
+ value: string;
634
+ slot: string;
635
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
636
+ value: string;
637
+ slot: string;
638
+ }>;
639
+ lowLeavesWitnessData: z.ZodObject<{
640
+ leaf: z.ZodEffects<z.ZodObject<{
641
+ leaf: z.ZodEffects<z.ZodObject<{
642
+ nullifier: z.ZodType<Fr, any, string>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ nullifier: Fr;
645
+ }, {
646
+ nullifier: string;
647
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
648
+ nullifier: string;
649
+ }>;
650
+ nextKey: z.ZodType<Fr, any, string>;
651
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
486
652
  }, "strip", z.ZodTypeAny, {
487
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
488
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
489
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
490
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
653
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
654
+ nextKey: Fr;
655
+ nextIndex: bigint;
491
656
  }, {
492
- masterNullifierPublicKey: string;
493
- masterIncomingViewingPublicKey: string;
494
- masterOutgoingViewingPublicKey: string;
495
- masterTaggingPublicKey: string;
496
- }>, PublicKeys, {
497
- masterNullifierPublicKey: string;
498
- masterIncomingViewingPublicKey: string;
499
- masterOutgoingViewingPublicKey: string;
500
- masterTaggingPublicKey: string;
657
+ leaf: {
658
+ nullifier: string;
659
+ };
660
+ nextKey: string;
661
+ nextIndex: string | number | bigint;
662
+ }>, NullifierLeafPreimage, {
663
+ leaf: {
664
+ nullifier: string;
665
+ };
666
+ nextKey: string;
667
+ nextIndex: string | number | bigint;
668
+ }> | z.ZodEffects<z.ZodObject<{
669
+ leaf: z.ZodEffects<z.ZodObject<{
670
+ slot: z.ZodType<Fr, any, string>;
671
+ value: z.ZodType<Fr, any, string>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ value: Fr;
674
+ slot: Fr;
675
+ }, {
676
+ value: string;
677
+ slot: string;
678
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
679
+ value: string;
680
+ slot: string;
681
+ }>;
682
+ nextKey: z.ZodType<Fr, any, string>;
683
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
684
+ }, "strip", z.ZodTypeAny, {
685
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
686
+ nextKey: Fr;
687
+ nextIndex: bigint;
688
+ }, {
689
+ leaf: {
690
+ value: string;
691
+ slot: string;
692
+ };
693
+ nextKey: string;
694
+ nextIndex: string | number | bigint;
695
+ }>, PublicDataTreeLeafPreimage, {
696
+ leaf: {
697
+ value: string;
698
+ slot: string;
699
+ };
700
+ nextKey: string;
701
+ nextIndex: string | number | bigint;
501
702
  }>;
703
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
704
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
502
705
  }, "strip", z.ZodTypeAny, {
503
- address: AztecAddress;
504
- salt: Fr;
505
- deployer: AztecAddress;
506
- currentContractClassId: Fr;
507
- originalContractClassId: Fr;
508
- initializationHash: Fr;
509
- publicKeys: PublicKeys;
706
+ path: Fr[];
707
+ index: bigint;
708
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
510
709
  }, {
511
- salt: string;
512
- currentContractClassId: string;
513
- originalContractClassId: string;
514
- initializationHash: string;
515
- publicKeys: {
516
- masterNullifierPublicKey: string;
517
- masterIncomingViewingPublicKey: string;
710
+ path: string[];
711
+ index: string | number | bigint;
712
+ leaf: {
713
+ leaf: {
714
+ nullifier: string;
715
+ };
716
+ nextKey: string;
717
+ nextIndex: string | number | bigint;
718
+ } | {
719
+ leaf: {
720
+ value: string;
721
+ slot: string;
722
+ };
723
+ nextKey: string;
724
+ nextIndex: string | number | bigint;
725
+ };
726
+ }>;
727
+ insertionWitnessData: z.ZodObject<{
728
+ leaf: z.ZodEffects<z.ZodObject<{
729
+ leaf: z.ZodEffects<z.ZodObject<{
730
+ nullifier: z.ZodType<Fr, any, string>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ nullifier: Fr;
733
+ }, {
734
+ nullifier: string;
735
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
736
+ nullifier: string;
737
+ }>;
738
+ nextKey: z.ZodType<Fr, any, string>;
739
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
742
+ nextKey: Fr;
743
+ nextIndex: bigint;
744
+ }, {
745
+ leaf: {
746
+ nullifier: string;
747
+ };
748
+ nextKey: string;
749
+ nextIndex: string | number | bigint;
750
+ }>, NullifierLeafPreimage, {
751
+ leaf: {
752
+ nullifier: string;
753
+ };
754
+ nextKey: string;
755
+ nextIndex: string | number | bigint;
756
+ }> | z.ZodEffects<z.ZodObject<{
757
+ leaf: z.ZodEffects<z.ZodObject<{
758
+ slot: z.ZodType<Fr, any, string>;
759
+ value: z.ZodType<Fr, any, string>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ value: Fr;
762
+ slot: Fr;
763
+ }, {
764
+ value: string;
765
+ slot: string;
766
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
767
+ value: string;
768
+ slot: string;
769
+ }>;
770
+ nextKey: z.ZodType<Fr, any, string>;
771
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
774
+ nextKey: Fr;
775
+ nextIndex: bigint;
776
+ }, {
777
+ leaf: {
778
+ value: string;
779
+ slot: string;
780
+ };
781
+ nextKey: string;
782
+ nextIndex: string | number | bigint;
783
+ }>, PublicDataTreeLeafPreimage, {
784
+ leaf: {
785
+ value: string;
786
+ slot: string;
787
+ };
788
+ nextKey: string;
789
+ nextIndex: string | number | bigint;
790
+ }>;
791
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
792
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
793
+ }, "strip", z.ZodTypeAny, {
794
+ path: Fr[];
795
+ index: bigint;
796
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
797
+ }, {
798
+ path: string[];
799
+ index: string | number | bigint;
800
+ leaf: {
801
+ leaf: {
802
+ nullifier: string;
803
+ };
804
+ nextKey: string;
805
+ nextIndex: string | number | bigint;
806
+ } | {
807
+ leaf: {
808
+ value: string;
809
+ slot: string;
810
+ };
811
+ nextKey: string;
812
+ nextIndex: string | number | bigint;
813
+ };
814
+ }>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
817
+ hintKey: AppendOnlyTreeSnapshot;
818
+ treeId: number;
819
+ stateAfter: AppendOnlyTreeSnapshot;
820
+ lowLeavesWitnessData: {
821
+ path: Fr[];
822
+ index: bigint;
823
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
824
+ };
825
+ insertionWitnessData: {
826
+ path: Fr[];
827
+ index: bigint;
828
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
829
+ };
830
+ }, {
831
+ leaf: {
832
+ nullifier: string;
833
+ } | {
834
+ value: string;
835
+ slot: string;
836
+ };
837
+ hintKey: {
838
+ root: string;
839
+ nextAvailableLeafIndex: string | number | bigint;
840
+ };
841
+ treeId: number;
842
+ stateAfter: {
843
+ root: string;
844
+ nextAvailableLeafIndex: string | number | bigint;
845
+ };
846
+ lowLeavesWitnessData: {
847
+ path: string[];
848
+ index: string | number | bigint;
849
+ leaf: {
850
+ leaf: {
851
+ nullifier: string;
852
+ };
853
+ nextKey: string;
854
+ nextIndex: string | number | bigint;
855
+ } | {
856
+ leaf: {
857
+ value: string;
858
+ slot: string;
859
+ };
860
+ nextKey: string;
861
+ nextIndex: string | number | bigint;
862
+ };
863
+ };
864
+ insertionWitnessData: {
865
+ path: string[];
866
+ index: string | number | bigint;
867
+ leaf: {
868
+ leaf: {
869
+ nullifier: string;
870
+ };
871
+ nextKey: string;
872
+ nextIndex: string | number | bigint;
873
+ } | {
874
+ leaf: {
875
+ value: string;
876
+ slot: string;
877
+ };
878
+ nextKey: string;
879
+ nextIndex: string | number | bigint;
880
+ };
881
+ };
882
+ }>, {
883
+ readonly hintKey: AppendOnlyTreeSnapshot;
884
+ readonly stateAfter: AppendOnlyTreeSnapshot;
885
+ readonly treeId: MerkleTreeId;
886
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
887
+ readonly lowLeavesWitnessData: {
888
+ leaf: IndexedTreeLeafPreimages;
889
+ index: bigint;
890
+ path: Fr[];
891
+ };
892
+ readonly insertionWitnessData: {
893
+ leaf: IndexedTreeLeafPreimages;
894
+ index: bigint;
895
+ path: Fr[];
896
+ };
897
+ }, {
898
+ leaf: {
899
+ nullifier: string;
900
+ } | {
901
+ value: string;
902
+ slot: string;
903
+ };
904
+ hintKey: {
905
+ root: string;
906
+ nextAvailableLeafIndex: string | number | bigint;
907
+ };
908
+ treeId: number;
909
+ stateAfter: {
910
+ root: string;
911
+ nextAvailableLeafIndex: string | number | bigint;
912
+ };
913
+ lowLeavesWitnessData: {
914
+ path: string[];
915
+ index: string | number | bigint;
916
+ leaf: {
917
+ leaf: {
918
+ nullifier: string;
919
+ };
920
+ nextKey: string;
921
+ nextIndex: string | number | bigint;
922
+ } | {
923
+ leaf: {
924
+ value: string;
925
+ slot: string;
926
+ };
927
+ nextKey: string;
928
+ nextIndex: string | number | bigint;
929
+ };
930
+ };
931
+ insertionWitnessData: {
932
+ path: string[];
933
+ index: string | number | bigint;
934
+ leaf: {
935
+ leaf: {
936
+ nullifier: string;
937
+ };
938
+ nextKey: string;
939
+ nextIndex: string | number | bigint;
940
+ } | {
941
+ leaf: {
942
+ value: string;
943
+ slot: string;
944
+ };
945
+ nextKey: string;
946
+ nextIndex: string | number | bigint;
947
+ };
948
+ };
949
+ }>;
950
+ };
951
+ export declare class AvmSequentialInsertHintPublicDataTree extends AvmSequentialInsertHintPublicDataTree_base {
952
+ }
953
+ declare const AvmSequentialInsertHintNullifierTree_base: {
954
+ new (hintKey: AppendOnlyTreeSnapshot, stateAfter: AppendOnlyTreeSnapshot, treeId: MerkleTreeId, leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf, lowLeavesWitnessData: {
955
+ leaf: IndexedTreeLeafPreimages;
956
+ index: bigint;
957
+ path: Fr[];
958
+ }, insertionWitnessData: {
959
+ leaf: IndexedTreeLeafPreimages;
960
+ index: bigint;
961
+ path: Fr[];
962
+ }): {
963
+ readonly hintKey: AppendOnlyTreeSnapshot;
964
+ readonly stateAfter: AppendOnlyTreeSnapshot;
965
+ readonly treeId: MerkleTreeId;
966
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
967
+ readonly lowLeavesWitnessData: {
968
+ leaf: IndexedTreeLeafPreimages;
969
+ index: bigint;
970
+ path: Fr[];
971
+ };
972
+ readonly insertionWitnessData: {
973
+ leaf: IndexedTreeLeafPreimages;
974
+ index: bigint;
975
+ path: Fr[];
976
+ };
977
+ };
978
+ readonly schema: z.ZodEffects<z.ZodObject<{
979
+ hintKey: z.ZodEffects<z.ZodObject<{
980
+ root: z.ZodType<Fr, any, string>;
981
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ root: Fr;
984
+ nextAvailableLeafIndex: number;
985
+ }, {
986
+ root: string;
987
+ nextAvailableLeafIndex: string | number | bigint;
988
+ }>, AppendOnlyTreeSnapshot, {
989
+ root: string;
990
+ nextAvailableLeafIndex: string | number | bigint;
991
+ }>;
992
+ stateAfter: z.ZodEffects<z.ZodObject<{
993
+ root: z.ZodType<Fr, any, string>;
994
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ root: Fr;
997
+ nextAvailableLeafIndex: number;
998
+ }, {
999
+ root: string;
1000
+ nextAvailableLeafIndex: string | number | bigint;
1001
+ }>, AppendOnlyTreeSnapshot, {
1002
+ root: string;
1003
+ nextAvailableLeafIndex: string | number | bigint;
1004
+ }>;
1005
+ treeId: z.ZodNumber;
1006
+ leaf: z.ZodEffects<z.ZodObject<{
1007
+ nullifier: z.ZodType<Fr, any, string>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ nullifier: Fr;
1010
+ }, {
1011
+ nullifier: string;
1012
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1013
+ nullifier: string;
1014
+ }> | z.ZodEffects<z.ZodObject<{
1015
+ slot: z.ZodType<Fr, any, string>;
1016
+ value: z.ZodType<Fr, any, string>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ value: Fr;
1019
+ slot: Fr;
1020
+ }, {
1021
+ value: string;
1022
+ slot: string;
1023
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1024
+ value: string;
1025
+ slot: string;
1026
+ }>;
1027
+ lowLeavesWitnessData: z.ZodObject<{
1028
+ leaf: z.ZodEffects<z.ZodObject<{
1029
+ leaf: z.ZodEffects<z.ZodObject<{
1030
+ nullifier: z.ZodType<Fr, any, string>;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ nullifier: Fr;
1033
+ }, {
1034
+ nullifier: string;
1035
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1036
+ nullifier: string;
1037
+ }>;
1038
+ nextKey: z.ZodType<Fr, any, string>;
1039
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
1042
+ nextKey: Fr;
1043
+ nextIndex: bigint;
1044
+ }, {
1045
+ leaf: {
1046
+ nullifier: string;
1047
+ };
1048
+ nextKey: string;
1049
+ nextIndex: string | number | bigint;
1050
+ }>, NullifierLeafPreimage, {
1051
+ leaf: {
1052
+ nullifier: string;
1053
+ };
1054
+ nextKey: string;
1055
+ nextIndex: string | number | bigint;
1056
+ }> | z.ZodEffects<z.ZodObject<{
1057
+ leaf: z.ZodEffects<z.ZodObject<{
1058
+ slot: z.ZodType<Fr, any, string>;
1059
+ value: z.ZodType<Fr, any, string>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ value: Fr;
1062
+ slot: Fr;
1063
+ }, {
1064
+ value: string;
1065
+ slot: string;
1066
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1067
+ value: string;
1068
+ slot: string;
1069
+ }>;
1070
+ nextKey: z.ZodType<Fr, any, string>;
1071
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1074
+ nextKey: Fr;
1075
+ nextIndex: bigint;
1076
+ }, {
1077
+ leaf: {
1078
+ value: string;
1079
+ slot: string;
1080
+ };
1081
+ nextKey: string;
1082
+ nextIndex: string | number | bigint;
1083
+ }>, PublicDataTreeLeafPreimage, {
1084
+ leaf: {
1085
+ value: string;
1086
+ slot: string;
1087
+ };
1088
+ nextKey: string;
1089
+ nextIndex: string | number | bigint;
1090
+ }>;
1091
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1092
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1093
+ }, "strip", z.ZodTypeAny, {
1094
+ path: Fr[];
1095
+ index: bigint;
1096
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
1097
+ }, {
1098
+ path: string[];
1099
+ index: string | number | bigint;
1100
+ leaf: {
1101
+ leaf: {
1102
+ nullifier: string;
1103
+ };
1104
+ nextKey: string;
1105
+ nextIndex: string | number | bigint;
1106
+ } | {
1107
+ leaf: {
1108
+ value: string;
1109
+ slot: string;
1110
+ };
1111
+ nextKey: string;
1112
+ nextIndex: string | number | bigint;
1113
+ };
1114
+ }>;
1115
+ insertionWitnessData: z.ZodObject<{
1116
+ leaf: z.ZodEffects<z.ZodObject<{
1117
+ leaf: z.ZodEffects<z.ZodObject<{
1118
+ nullifier: z.ZodType<Fr, any, string>;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ nullifier: Fr;
1121
+ }, {
1122
+ nullifier: string;
1123
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1124
+ nullifier: string;
1125
+ }>;
1126
+ nextKey: z.ZodType<Fr, any, string>;
1127
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
1130
+ nextKey: Fr;
1131
+ nextIndex: bigint;
1132
+ }, {
1133
+ leaf: {
1134
+ nullifier: string;
1135
+ };
1136
+ nextKey: string;
1137
+ nextIndex: string | number | bigint;
1138
+ }>, NullifierLeafPreimage, {
1139
+ leaf: {
1140
+ nullifier: string;
1141
+ };
1142
+ nextKey: string;
1143
+ nextIndex: string | number | bigint;
1144
+ }> | z.ZodEffects<z.ZodObject<{
1145
+ leaf: z.ZodEffects<z.ZodObject<{
1146
+ slot: z.ZodType<Fr, any, string>;
1147
+ value: z.ZodType<Fr, any, string>;
1148
+ }, "strip", z.ZodTypeAny, {
1149
+ value: Fr;
1150
+ slot: Fr;
1151
+ }, {
1152
+ value: string;
1153
+ slot: string;
1154
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1155
+ value: string;
1156
+ slot: string;
1157
+ }>;
1158
+ nextKey: z.ZodType<Fr, any, string>;
1159
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1162
+ nextKey: Fr;
1163
+ nextIndex: bigint;
1164
+ }, {
1165
+ leaf: {
1166
+ value: string;
1167
+ slot: string;
1168
+ };
1169
+ nextKey: string;
1170
+ nextIndex: string | number | bigint;
1171
+ }>, PublicDataTreeLeafPreimage, {
1172
+ leaf: {
1173
+ value: string;
1174
+ slot: string;
1175
+ };
1176
+ nextKey: string;
1177
+ nextIndex: string | number | bigint;
1178
+ }>;
1179
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1180
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ path: Fr[];
1183
+ index: bigint;
1184
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
1185
+ }, {
1186
+ path: string[];
1187
+ index: string | number | bigint;
1188
+ leaf: {
1189
+ leaf: {
1190
+ nullifier: string;
1191
+ };
1192
+ nextKey: string;
1193
+ nextIndex: string | number | bigint;
1194
+ } | {
1195
+ leaf: {
1196
+ value: string;
1197
+ slot: string;
1198
+ };
1199
+ nextKey: string;
1200
+ nextIndex: string | number | bigint;
1201
+ };
1202
+ }>;
1203
+ }, "strip", z.ZodTypeAny, {
1204
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1205
+ hintKey: AppendOnlyTreeSnapshot;
1206
+ treeId: number;
1207
+ stateAfter: AppendOnlyTreeSnapshot;
1208
+ lowLeavesWitnessData: {
1209
+ path: Fr[];
1210
+ index: bigint;
1211
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
1212
+ };
1213
+ insertionWitnessData: {
1214
+ path: Fr[];
1215
+ index: bigint;
1216
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
1217
+ };
1218
+ }, {
1219
+ leaf: {
1220
+ nullifier: string;
1221
+ } | {
1222
+ value: string;
1223
+ slot: string;
1224
+ };
1225
+ hintKey: {
1226
+ root: string;
1227
+ nextAvailableLeafIndex: string | number | bigint;
1228
+ };
1229
+ treeId: number;
1230
+ stateAfter: {
1231
+ root: string;
1232
+ nextAvailableLeafIndex: string | number | bigint;
1233
+ };
1234
+ lowLeavesWitnessData: {
1235
+ path: string[];
1236
+ index: string | number | bigint;
1237
+ leaf: {
1238
+ leaf: {
1239
+ nullifier: string;
1240
+ };
1241
+ nextKey: string;
1242
+ nextIndex: string | number | bigint;
1243
+ } | {
1244
+ leaf: {
1245
+ value: string;
1246
+ slot: string;
1247
+ };
1248
+ nextKey: string;
1249
+ nextIndex: string | number | bigint;
1250
+ };
1251
+ };
1252
+ insertionWitnessData: {
1253
+ path: string[];
1254
+ index: string | number | bigint;
1255
+ leaf: {
1256
+ leaf: {
1257
+ nullifier: string;
1258
+ };
1259
+ nextKey: string;
1260
+ nextIndex: string | number | bigint;
1261
+ } | {
1262
+ leaf: {
1263
+ value: string;
1264
+ slot: string;
1265
+ };
1266
+ nextKey: string;
1267
+ nextIndex: string | number | bigint;
1268
+ };
1269
+ };
1270
+ }>, {
1271
+ readonly hintKey: AppendOnlyTreeSnapshot;
1272
+ readonly stateAfter: AppendOnlyTreeSnapshot;
1273
+ readonly treeId: MerkleTreeId;
1274
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1275
+ readonly lowLeavesWitnessData: {
1276
+ leaf: IndexedTreeLeafPreimages;
1277
+ index: bigint;
1278
+ path: Fr[];
1279
+ };
1280
+ readonly insertionWitnessData: {
1281
+ leaf: IndexedTreeLeafPreimages;
1282
+ index: bigint;
1283
+ path: Fr[];
1284
+ };
1285
+ }, {
1286
+ leaf: {
1287
+ nullifier: string;
1288
+ } | {
1289
+ value: string;
1290
+ slot: string;
1291
+ };
1292
+ hintKey: {
1293
+ root: string;
1294
+ nextAvailableLeafIndex: string | number | bigint;
1295
+ };
1296
+ treeId: number;
1297
+ stateAfter: {
1298
+ root: string;
1299
+ nextAvailableLeafIndex: string | number | bigint;
1300
+ };
1301
+ lowLeavesWitnessData: {
1302
+ path: string[];
1303
+ index: string | number | bigint;
1304
+ leaf: {
1305
+ leaf: {
1306
+ nullifier: string;
1307
+ };
1308
+ nextKey: string;
1309
+ nextIndex: string | number | bigint;
1310
+ } | {
1311
+ leaf: {
1312
+ value: string;
1313
+ slot: string;
1314
+ };
1315
+ nextKey: string;
1316
+ nextIndex: string | number | bigint;
1317
+ };
1318
+ };
1319
+ insertionWitnessData: {
1320
+ path: string[];
1321
+ index: string | number | bigint;
1322
+ leaf: {
1323
+ leaf: {
1324
+ nullifier: string;
1325
+ };
1326
+ nextKey: string;
1327
+ nextIndex: string | number | bigint;
1328
+ } | {
1329
+ leaf: {
1330
+ value: string;
1331
+ slot: string;
1332
+ };
1333
+ nextKey: string;
1334
+ nextIndex: string | number | bigint;
1335
+ };
1336
+ };
1337
+ }>;
1338
+ };
1339
+ export declare class AvmSequentialInsertHintNullifierTree extends AvmSequentialInsertHintNullifierTree_base {
1340
+ }
1341
+ export declare class AvmEnqueuedCallHint {
1342
+ readonly msgSender: AztecAddress;
1343
+ readonly contractAddress: AztecAddress;
1344
+ readonly calldata: Fr[];
1345
+ isStaticCall: boolean;
1346
+ constructor(msgSender: AztecAddress, contractAddress: AztecAddress, calldata: Fr[], isStaticCall: boolean);
1347
+ static get schema(): z.ZodEffects<z.ZodObject<{
1348
+ msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
1349
+ contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
1350
+ calldata: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1351
+ isStaticCall: z.ZodBoolean;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ contractAddress: AztecAddress;
1354
+ msgSender: AztecAddress;
1355
+ isStaticCall: boolean;
1356
+ calldata: Fr[];
1357
+ }, {
1358
+ isStaticCall: boolean;
1359
+ calldata: string[];
1360
+ contractAddress?: any;
1361
+ msgSender?: any;
1362
+ }>, AvmEnqueuedCallHint, {
1363
+ isStaticCall: boolean;
1364
+ calldata: string[];
1365
+ contractAddress?: any;
1366
+ msgSender?: any;
1367
+ }>;
1368
+ }
1369
+ export declare class AvmExecutionHints {
1370
+ readonly enqueuedCalls: AvmEnqueuedCallHint[];
1371
+ readonly contractInstances: AvmContractInstanceHint[];
1372
+ readonly contractClasses: AvmContractClassHint[];
1373
+ readonly bytecodeCommitments: AvmBytecodeCommitmentHint[];
1374
+ readonly getSiblingPathHints: AvmGetSiblingPathHint[];
1375
+ readonly getPreviousValueIndexHints: AvmGetPreviousValueIndexHint[];
1376
+ readonly getLeafPreimageHintsPublicDataTree: AvmGetLeafPreimageHintPublicDataTree[];
1377
+ readonly getLeafPreimageHintsNullifierTree: AvmGetLeafPreimageHintNullifierTree[];
1378
+ readonly getLeafValueHints: AvmGetLeafValueHint[];
1379
+ readonly sequentialInsertHintsPublicDataTree: AvmSequentialInsertHintPublicDataTree[];
1380
+ readonly sequentialInsertHintsNullifierTree: AvmSequentialInsertHintNullifierTree[];
1381
+ constructor(enqueuedCalls?: AvmEnqueuedCallHint[], contractInstances?: AvmContractInstanceHint[], contractClasses?: AvmContractClassHint[], bytecodeCommitments?: AvmBytecodeCommitmentHint[], getSiblingPathHints?: AvmGetSiblingPathHint[], getPreviousValueIndexHints?: AvmGetPreviousValueIndexHint[], getLeafPreimageHintsPublicDataTree?: AvmGetLeafPreimageHintPublicDataTree[], getLeafPreimageHintsNullifierTree?: AvmGetLeafPreimageHintNullifierTree[], getLeafValueHints?: AvmGetLeafValueHint[], sequentialInsertHintsPublicDataTree?: AvmSequentialInsertHintPublicDataTree[], sequentialInsertHintsNullifierTree?: AvmSequentialInsertHintNullifierTree[]);
1382
+ static empty(): AvmExecutionHints;
1383
+ static get schema(): z.ZodEffects<z.ZodObject<{
1384
+ enqueuedCalls: z.ZodArray<z.ZodEffects<z.ZodObject<{
1385
+ msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
1386
+ contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
1387
+ calldata: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1388
+ isStaticCall: z.ZodBoolean;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ contractAddress: AztecAddress;
1391
+ msgSender: AztecAddress;
1392
+ isStaticCall: boolean;
1393
+ calldata: Fr[];
1394
+ }, {
1395
+ isStaticCall: boolean;
1396
+ calldata: string[];
1397
+ contractAddress?: any;
1398
+ msgSender?: any;
1399
+ }>, AvmEnqueuedCallHint, {
1400
+ isStaticCall: boolean;
1401
+ calldata: string[];
1402
+ contractAddress?: any;
1403
+ msgSender?: any;
1404
+ }>, "many">;
1405
+ contractInstances: z.ZodArray<z.ZodEffects<z.ZodObject<{
1406
+ address: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
1407
+ salt: z.ZodType<Fr, any, string>;
1408
+ deployer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
1409
+ currentContractClassId: z.ZodType<Fr, any, string>;
1410
+ originalContractClassId: z.ZodType<Fr, any, string>;
1411
+ initializationHash: z.ZodType<Fr, any, string>;
1412
+ publicKeys: z.ZodEffects<z.ZodObject<{
1413
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1414
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1415
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1416
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1419
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1420
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1421
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1422
+ }, {
1423
+ masterNullifierPublicKey: string;
1424
+ masterIncomingViewingPublicKey: string;
1425
+ masterOutgoingViewingPublicKey: string;
1426
+ masterTaggingPublicKey: string;
1427
+ }>, PublicKeys, {
1428
+ masterNullifierPublicKey: string;
1429
+ masterIncomingViewingPublicKey: string;
1430
+ masterOutgoingViewingPublicKey: string;
1431
+ masterTaggingPublicKey: string;
1432
+ }>;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ address: AztecAddress;
1435
+ salt: Fr;
1436
+ deployer: AztecAddress;
1437
+ currentContractClassId: Fr;
1438
+ originalContractClassId: Fr;
1439
+ initializationHash: Fr;
1440
+ publicKeys: PublicKeys;
1441
+ }, {
1442
+ salt: string;
1443
+ currentContractClassId: string;
1444
+ originalContractClassId: string;
1445
+ initializationHash: string;
1446
+ publicKeys: {
1447
+ masterNullifierPublicKey: string;
1448
+ masterIncomingViewingPublicKey: string;
518
1449
  masterOutgoingViewingPublicKey: string;
519
1450
  masterTaggingPublicKey: string;
520
1451
  };
@@ -557,36 +1488,245 @@ export declare class AvmExecutionHints {
557
1488
  privateFunctionsRoot: Fr;
558
1489
  packedBytecode: Buffer;
559
1490
  }, {
560
- classId: string;
561
- artifactHash: string;
562
- privateFunctionsRoot: string;
563
- packedBytecode: string | {
564
- type: "Buffer";
565
- data: number[];
1491
+ classId: string;
1492
+ artifactHash: string;
1493
+ privateFunctionsRoot: string;
1494
+ packedBytecode: string | {
1495
+ type: "Buffer";
1496
+ data: number[];
1497
+ };
1498
+ }>, AvmContractClassHint, {
1499
+ classId: string;
1500
+ artifactHash: string;
1501
+ privateFunctionsRoot: string;
1502
+ packedBytecode: string | {
1503
+ type: "Buffer";
1504
+ data: number[];
1505
+ };
1506
+ }>, "many">;
1507
+ bytecodeCommitments: z.ZodArray<z.ZodEffects<z.ZodObject<{
1508
+ classId: z.ZodType<Fr, any, string>;
1509
+ commitment: z.ZodType<Fr, any, string>;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ classId: Fr;
1512
+ commitment: Fr;
1513
+ }, {
1514
+ classId: string;
1515
+ commitment: string;
1516
+ }>, AvmBytecodeCommitmentHint, {
1517
+ classId: string;
1518
+ commitment: string;
1519
+ }>, "many">;
1520
+ getSiblingPathHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
1521
+ hintKey: z.ZodEffects<z.ZodObject<{
1522
+ root: z.ZodType<Fr, any, string>;
1523
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ root: Fr;
1526
+ nextAvailableLeafIndex: number;
1527
+ }, {
1528
+ root: string;
1529
+ nextAvailableLeafIndex: string | number | bigint;
1530
+ }>, AppendOnlyTreeSnapshot, {
1531
+ root: string;
1532
+ nextAvailableLeafIndex: string | number | bigint;
1533
+ }>;
1534
+ treeId: z.ZodNumber;
1535
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1536
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1537
+ }, "strip", z.ZodTypeAny, {
1538
+ path: Fr[];
1539
+ index: bigint;
1540
+ hintKey: AppendOnlyTreeSnapshot;
1541
+ treeId: number;
1542
+ }, {
1543
+ path: string[];
1544
+ index: string | number | bigint;
1545
+ hintKey: {
1546
+ root: string;
1547
+ nextAvailableLeafIndex: string | number | bigint;
1548
+ };
1549
+ treeId: number;
1550
+ }>, AvmGetSiblingPathHint, {
1551
+ path: string[];
1552
+ index: string | number | bigint;
1553
+ hintKey: {
1554
+ root: string;
1555
+ nextAvailableLeafIndex: string | number | bigint;
1556
+ };
1557
+ treeId: number;
1558
+ }>, "many">;
1559
+ getPreviousValueIndexHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
1560
+ hintKey: z.ZodEffects<z.ZodObject<{
1561
+ root: z.ZodType<Fr, any, string>;
1562
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ root: Fr;
1565
+ nextAvailableLeafIndex: number;
1566
+ }, {
1567
+ root: string;
1568
+ nextAvailableLeafIndex: string | number | bigint;
1569
+ }>, AppendOnlyTreeSnapshot, {
1570
+ root: string;
1571
+ nextAvailableLeafIndex: string | number | bigint;
1572
+ }>;
1573
+ treeId: z.ZodNumber;
1574
+ value: z.ZodType<Fr, any, string>;
1575
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1576
+ alreadyPresent: z.ZodBoolean;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ value: Fr;
1579
+ index: bigint;
1580
+ hintKey: AppendOnlyTreeSnapshot;
1581
+ treeId: number;
1582
+ alreadyPresent: boolean;
1583
+ }, {
1584
+ value: string;
1585
+ index: string | number | bigint;
1586
+ hintKey: {
1587
+ root: string;
1588
+ nextAvailableLeafIndex: string | number | bigint;
1589
+ };
1590
+ treeId: number;
1591
+ alreadyPresent: boolean;
1592
+ }>, AvmGetPreviousValueIndexHint, {
1593
+ value: string;
1594
+ index: string | number | bigint;
1595
+ hintKey: {
1596
+ root: string;
1597
+ nextAvailableLeafIndex: string | number | bigint;
1598
+ };
1599
+ treeId: number;
1600
+ alreadyPresent: boolean;
1601
+ }>, "many">;
1602
+ getLeafPreimageHintsPublicDataTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
1603
+ hintKey: z.ZodEffects<z.ZodObject<{
1604
+ root: z.ZodType<Fr, any, string>;
1605
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1606
+ }, "strip", z.ZodTypeAny, {
1607
+ root: Fr;
1608
+ nextAvailableLeafIndex: number;
1609
+ }, {
1610
+ root: string;
1611
+ nextAvailableLeafIndex: string | number | bigint;
1612
+ }>, AppendOnlyTreeSnapshot, {
1613
+ root: string;
1614
+ nextAvailableLeafIndex: string | number | bigint;
1615
+ }>;
1616
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1617
+ leafPreimage: z.ZodEffects<z.ZodObject<{
1618
+ leaf: z.ZodEffects<z.ZodObject<{
1619
+ nullifier: z.ZodType<Fr, any, string>;
1620
+ }, "strip", z.ZodTypeAny, {
1621
+ nullifier: Fr;
1622
+ }, {
1623
+ nullifier: string;
1624
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1625
+ nullifier: string;
1626
+ }>;
1627
+ nextKey: z.ZodType<Fr, any, string>;
1628
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
1631
+ nextKey: Fr;
1632
+ nextIndex: bigint;
1633
+ }, {
1634
+ leaf: {
1635
+ nullifier: string;
1636
+ };
1637
+ nextKey: string;
1638
+ nextIndex: string | number | bigint;
1639
+ }>, NullifierLeafPreimage, {
1640
+ leaf: {
1641
+ nullifier: string;
1642
+ };
1643
+ nextKey: string;
1644
+ nextIndex: string | number | bigint;
1645
+ }> | z.ZodEffects<z.ZodObject<{
1646
+ leaf: z.ZodEffects<z.ZodObject<{
1647
+ slot: z.ZodType<Fr, any, string>;
1648
+ value: z.ZodType<Fr, any, string>;
1649
+ }, "strip", z.ZodTypeAny, {
1650
+ value: Fr;
1651
+ slot: Fr;
1652
+ }, {
1653
+ value: string;
1654
+ slot: string;
1655
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1656
+ value: string;
1657
+ slot: string;
1658
+ }>;
1659
+ nextKey: z.ZodType<Fr, any, string>;
1660
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1661
+ }, "strip", z.ZodTypeAny, {
1662
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1663
+ nextKey: Fr;
1664
+ nextIndex: bigint;
1665
+ }, {
1666
+ leaf: {
1667
+ value: string;
1668
+ slot: string;
1669
+ };
1670
+ nextKey: string;
1671
+ nextIndex: string | number | bigint;
1672
+ }>, PublicDataTreeLeafPreimage, {
1673
+ leaf: {
1674
+ value: string;
1675
+ slot: string;
1676
+ };
1677
+ nextKey: string;
1678
+ nextIndex: string | number | bigint;
1679
+ }>;
1680
+ }, "strip", z.ZodTypeAny, {
1681
+ index: bigint;
1682
+ hintKey: AppendOnlyTreeSnapshot;
1683
+ leafPreimage: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
1684
+ }, {
1685
+ index: string | number | bigint;
1686
+ hintKey: {
1687
+ root: string;
1688
+ nextAvailableLeafIndex: string | number | bigint;
1689
+ };
1690
+ leafPreimage: {
1691
+ leaf: {
1692
+ nullifier: string;
1693
+ };
1694
+ nextKey: string;
1695
+ nextIndex: string | number | bigint;
1696
+ } | {
1697
+ leaf: {
1698
+ value: string;
1699
+ slot: string;
1700
+ };
1701
+ nextKey: string;
1702
+ nextIndex: string | number | bigint;
1703
+ };
1704
+ }>, {
1705
+ readonly hintKey: AppendOnlyTreeSnapshot;
1706
+ readonly index: bigint;
1707
+ readonly leafPreimage: IndexedTreeLeafPreimages;
1708
+ }, {
1709
+ index: string | number | bigint;
1710
+ hintKey: {
1711
+ root: string;
1712
+ nextAvailableLeafIndex: string | number | bigint;
566
1713
  };
567
- }>, AvmContractClassHint, {
568
- classId: string;
569
- artifactHash: string;
570
- privateFunctionsRoot: string;
571
- packedBytecode: string | {
572
- type: "Buffer";
573
- data: number[];
1714
+ leafPreimage: {
1715
+ leaf: {
1716
+ nullifier: string;
1717
+ };
1718
+ nextKey: string;
1719
+ nextIndex: string | number | bigint;
1720
+ } | {
1721
+ leaf: {
1722
+ value: string;
1723
+ slot: string;
1724
+ };
1725
+ nextKey: string;
1726
+ nextIndex: string | number | bigint;
574
1727
  };
575
1728
  }>, "many">;
576
- bytecodeCommitments: z.ZodArray<z.ZodEffects<z.ZodObject<{
577
- classId: z.ZodType<Fr, any, string>;
578
- commitment: z.ZodType<Fr, any, string>;
579
- }, "strip", z.ZodTypeAny, {
580
- classId: Fr;
581
- commitment: Fr;
582
- }, {
583
- classId: string;
584
- commitment: string;
585
- }>, AvmBytecodeCommitmentHint, {
586
- classId: string;
587
- commitment: string;
588
- }>, "many">;
589
- getSiblingPathHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
1729
+ getLeafPreimageHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
590
1730
  hintKey: z.ZodEffects<z.ZodObject<{
591
1731
  root: z.ZodType<Fr, any, string>;
592
1732
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
@@ -600,32 +1740,120 @@ export declare class AvmExecutionHints {
600
1740
  root: string;
601
1741
  nextAvailableLeafIndex: string | number | bigint;
602
1742
  }>;
603
- treeId: z.ZodNumber;
604
1743
  index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
605
- path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1744
+ leafPreimage: z.ZodEffects<z.ZodObject<{
1745
+ leaf: z.ZodEffects<z.ZodObject<{
1746
+ nullifier: z.ZodType<Fr, any, string>;
1747
+ }, "strip", z.ZodTypeAny, {
1748
+ nullifier: Fr;
1749
+ }, {
1750
+ nullifier: string;
1751
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1752
+ nullifier: string;
1753
+ }>;
1754
+ nextKey: z.ZodType<Fr, any, string>;
1755
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1756
+ }, "strip", z.ZodTypeAny, {
1757
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
1758
+ nextKey: Fr;
1759
+ nextIndex: bigint;
1760
+ }, {
1761
+ leaf: {
1762
+ nullifier: string;
1763
+ };
1764
+ nextKey: string;
1765
+ nextIndex: string | number | bigint;
1766
+ }>, NullifierLeafPreimage, {
1767
+ leaf: {
1768
+ nullifier: string;
1769
+ };
1770
+ nextKey: string;
1771
+ nextIndex: string | number | bigint;
1772
+ }> | z.ZodEffects<z.ZodObject<{
1773
+ leaf: z.ZodEffects<z.ZodObject<{
1774
+ slot: z.ZodType<Fr, any, string>;
1775
+ value: z.ZodType<Fr, any, string>;
1776
+ }, "strip", z.ZodTypeAny, {
1777
+ value: Fr;
1778
+ slot: Fr;
1779
+ }, {
1780
+ value: string;
1781
+ slot: string;
1782
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1783
+ value: string;
1784
+ slot: string;
1785
+ }>;
1786
+ nextKey: z.ZodType<Fr, any, string>;
1787
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1790
+ nextKey: Fr;
1791
+ nextIndex: bigint;
1792
+ }, {
1793
+ leaf: {
1794
+ value: string;
1795
+ slot: string;
1796
+ };
1797
+ nextKey: string;
1798
+ nextIndex: string | number | bigint;
1799
+ }>, PublicDataTreeLeafPreimage, {
1800
+ leaf: {
1801
+ value: string;
1802
+ slot: string;
1803
+ };
1804
+ nextKey: string;
1805
+ nextIndex: string | number | bigint;
1806
+ }>;
606
1807
  }, "strip", z.ZodTypeAny, {
607
- path: Fr[];
608
1808
  index: bigint;
609
1809
  hintKey: AppendOnlyTreeSnapshot;
610
- treeId: number;
1810
+ leafPreimage: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
611
1811
  }, {
612
- path: string[];
613
1812
  index: string | number | bigint;
614
1813
  hintKey: {
615
1814
  root: string;
616
1815
  nextAvailableLeafIndex: string | number | bigint;
617
1816
  };
618
- treeId: number;
619
- }>, AvmGetSiblingPathHint, {
620
- path: string[];
1817
+ leafPreimage: {
1818
+ leaf: {
1819
+ nullifier: string;
1820
+ };
1821
+ nextKey: string;
1822
+ nextIndex: string | number | bigint;
1823
+ } | {
1824
+ leaf: {
1825
+ value: string;
1826
+ slot: string;
1827
+ };
1828
+ nextKey: string;
1829
+ nextIndex: string | number | bigint;
1830
+ };
1831
+ }>, {
1832
+ readonly hintKey: AppendOnlyTreeSnapshot;
1833
+ readonly index: bigint;
1834
+ readonly leafPreimage: IndexedTreeLeafPreimages;
1835
+ }, {
621
1836
  index: string | number | bigint;
622
1837
  hintKey: {
623
1838
  root: string;
624
1839
  nextAvailableLeafIndex: string | number | bigint;
625
1840
  };
626
- treeId: number;
1841
+ leafPreimage: {
1842
+ leaf: {
1843
+ nullifier: string;
1844
+ };
1845
+ nextKey: string;
1846
+ nextIndex: string | number | bigint;
1847
+ } | {
1848
+ leaf: {
1849
+ value: string;
1850
+ slot: string;
1851
+ };
1852
+ nextKey: string;
1853
+ nextIndex: string | number | bigint;
1854
+ };
627
1855
  }>, "many">;
628
- getPreviousValueIndexHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
1856
+ getLeafValueHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
629
1857
  hintKey: z.ZodEffects<z.ZodObject<{
630
1858
  root: z.ZodType<Fr, any, string>;
631
1859
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
@@ -640,15 +1868,13 @@ export declare class AvmExecutionHints {
640
1868
  nextAvailableLeafIndex: string | number | bigint;
641
1869
  }>;
642
1870
  treeId: z.ZodNumber;
643
- value: z.ZodType<Fr, any, string>;
644
1871
  index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
645
- alreadyPresent: z.ZodBoolean;
1872
+ value: z.ZodType<Fr, any, string>;
646
1873
  }, "strip", z.ZodTypeAny, {
647
1874
  value: Fr;
648
1875
  index: bigint;
649
1876
  hintKey: AppendOnlyTreeSnapshot;
650
1877
  treeId: number;
651
- alreadyPresent: boolean;
652
1878
  }, {
653
1879
  value: string;
654
1880
  index: string | number | bigint;
@@ -657,8 +1883,7 @@ export declare class AvmExecutionHints {
657
1883
  nextAvailableLeafIndex: string | number | bigint;
658
1884
  };
659
1885
  treeId: number;
660
- alreadyPresent: boolean;
661
- }>, AvmGetPreviousValueIndexHint, {
1886
+ }>, AvmGetLeafValueHint, {
662
1887
  value: string;
663
1888
  index: string | number | bigint;
664
1889
  hintKey: {
@@ -666,9 +1891,8 @@ export declare class AvmExecutionHints {
666
1891
  nextAvailableLeafIndex: string | number | bigint;
667
1892
  };
668
1893
  treeId: number;
669
- alreadyPresent: boolean;
670
1894
  }>, "many">;
671
- getLeafPreimageHintsPublicDataTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
1895
+ sequentialInsertHintsPublicDataTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
672
1896
  hintKey: z.ZodEffects<z.ZodObject<{
673
1897
  root: z.ZodType<Fr, any, string>;
674
1898
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
@@ -682,92 +1906,367 @@ export declare class AvmExecutionHints {
682
1906
  root: string;
683
1907
  nextAvailableLeafIndex: string | number | bigint;
684
1908
  }>;
685
- index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
686
- leaf: z.ZodType<any, z.ZodTypeDef, any>;
687
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
688
- nextValue: z.ZodType<Fr, any, string>;
1909
+ stateAfter: z.ZodEffects<z.ZodObject<{
1910
+ root: z.ZodType<Fr, any, string>;
1911
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1912
+ }, "strip", z.ZodTypeAny, {
1913
+ root: Fr;
1914
+ nextAvailableLeafIndex: number;
1915
+ }, {
1916
+ root: string;
1917
+ nextAvailableLeafIndex: string | number | bigint;
1918
+ }>, AppendOnlyTreeSnapshot, {
1919
+ root: string;
1920
+ nextAvailableLeafIndex: string | number | bigint;
1921
+ }>;
1922
+ treeId: z.ZodNumber;
1923
+ leaf: z.ZodEffects<z.ZodObject<{
1924
+ nullifier: z.ZodType<Fr, any, string>;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ nullifier: Fr;
1927
+ }, {
1928
+ nullifier: string;
1929
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1930
+ nullifier: string;
1931
+ }> | z.ZodEffects<z.ZodObject<{
1932
+ slot: z.ZodType<Fr, any, string>;
1933
+ value: z.ZodType<Fr, any, string>;
1934
+ }, "strip", z.ZodTypeAny, {
1935
+ value: Fr;
1936
+ slot: Fr;
1937
+ }, {
1938
+ value: string;
1939
+ slot: string;
1940
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1941
+ value: string;
1942
+ slot: string;
1943
+ }>;
1944
+ lowLeavesWitnessData: z.ZodObject<{
1945
+ leaf: z.ZodEffects<z.ZodObject<{
1946
+ leaf: z.ZodEffects<z.ZodObject<{
1947
+ nullifier: z.ZodType<Fr, any, string>;
1948
+ }, "strip", z.ZodTypeAny, {
1949
+ nullifier: Fr;
1950
+ }, {
1951
+ nullifier: string;
1952
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
1953
+ nullifier: string;
1954
+ }>;
1955
+ nextKey: z.ZodType<Fr, any, string>;
1956
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1957
+ }, "strip", z.ZodTypeAny, {
1958
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
1959
+ nextKey: Fr;
1960
+ nextIndex: bigint;
1961
+ }, {
1962
+ leaf: {
1963
+ nullifier: string;
1964
+ };
1965
+ nextKey: string;
1966
+ nextIndex: string | number | bigint;
1967
+ }>, NullifierLeafPreimage, {
1968
+ leaf: {
1969
+ nullifier: string;
1970
+ };
1971
+ nextKey: string;
1972
+ nextIndex: string | number | bigint;
1973
+ }> | z.ZodEffects<z.ZodObject<{
1974
+ leaf: z.ZodEffects<z.ZodObject<{
1975
+ slot: z.ZodType<Fr, any, string>;
1976
+ value: z.ZodType<Fr, any, string>;
1977
+ }, "strip", z.ZodTypeAny, {
1978
+ value: Fr;
1979
+ slot: Fr;
1980
+ }, {
1981
+ value: string;
1982
+ slot: string;
1983
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
1984
+ value: string;
1985
+ slot: string;
1986
+ }>;
1987
+ nextKey: z.ZodType<Fr, any, string>;
1988
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1989
+ }, "strip", z.ZodTypeAny, {
1990
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1991
+ nextKey: Fr;
1992
+ nextIndex: bigint;
1993
+ }, {
1994
+ leaf: {
1995
+ value: string;
1996
+ slot: string;
1997
+ };
1998
+ nextKey: string;
1999
+ nextIndex: string | number | bigint;
2000
+ }>, PublicDataTreeLeafPreimage, {
2001
+ leaf: {
2002
+ value: string;
2003
+ slot: string;
2004
+ };
2005
+ nextKey: string;
2006
+ nextIndex: string | number | bigint;
2007
+ }>;
2008
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2009
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ path: Fr[];
2012
+ index: bigint;
2013
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
2014
+ }, {
2015
+ path: string[];
2016
+ index: string | number | bigint;
2017
+ leaf: {
2018
+ leaf: {
2019
+ nullifier: string;
2020
+ };
2021
+ nextKey: string;
2022
+ nextIndex: string | number | bigint;
2023
+ } | {
2024
+ leaf: {
2025
+ value: string;
2026
+ slot: string;
2027
+ };
2028
+ nextKey: string;
2029
+ nextIndex: string | number | bigint;
2030
+ };
2031
+ }>;
2032
+ insertionWitnessData: z.ZodObject<{
2033
+ leaf: z.ZodEffects<z.ZodObject<{
2034
+ leaf: z.ZodEffects<z.ZodObject<{
2035
+ nullifier: z.ZodType<Fr, any, string>;
2036
+ }, "strip", z.ZodTypeAny, {
2037
+ nullifier: Fr;
2038
+ }, {
2039
+ nullifier: string;
2040
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
2041
+ nullifier: string;
2042
+ }>;
2043
+ nextKey: z.ZodType<Fr, any, string>;
2044
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2045
+ }, "strip", z.ZodTypeAny, {
2046
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
2047
+ nextKey: Fr;
2048
+ nextIndex: bigint;
2049
+ }, {
2050
+ leaf: {
2051
+ nullifier: string;
2052
+ };
2053
+ nextKey: string;
2054
+ nextIndex: string | number | bigint;
2055
+ }>, NullifierLeafPreimage, {
2056
+ leaf: {
2057
+ nullifier: string;
2058
+ };
2059
+ nextKey: string;
2060
+ nextIndex: string | number | bigint;
2061
+ }> | z.ZodEffects<z.ZodObject<{
2062
+ leaf: z.ZodEffects<z.ZodObject<{
2063
+ slot: z.ZodType<Fr, any, string>;
2064
+ value: z.ZodType<Fr, any, string>;
2065
+ }, "strip", z.ZodTypeAny, {
2066
+ value: Fr;
2067
+ slot: Fr;
2068
+ }, {
2069
+ value: string;
2070
+ slot: string;
2071
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
2072
+ value: string;
2073
+ slot: string;
2074
+ }>;
2075
+ nextKey: z.ZodType<Fr, any, string>;
2076
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
2079
+ nextKey: Fr;
2080
+ nextIndex: bigint;
2081
+ }, {
2082
+ leaf: {
2083
+ value: string;
2084
+ slot: string;
2085
+ };
2086
+ nextKey: string;
2087
+ nextIndex: string | number | bigint;
2088
+ }>, PublicDataTreeLeafPreimage, {
2089
+ leaf: {
2090
+ value: string;
2091
+ slot: string;
2092
+ };
2093
+ nextKey: string;
2094
+ nextIndex: string | number | bigint;
2095
+ }>;
2096
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2097
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ path: Fr[];
2100
+ index: bigint;
2101
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
2102
+ }, {
2103
+ path: string[];
2104
+ index: string | number | bigint;
2105
+ leaf: {
2106
+ leaf: {
2107
+ nullifier: string;
2108
+ };
2109
+ nextKey: string;
2110
+ nextIndex: string | number | bigint;
2111
+ } | {
2112
+ leaf: {
2113
+ value: string;
2114
+ slot: string;
2115
+ };
2116
+ nextKey: string;
2117
+ nextIndex: string | number | bigint;
2118
+ };
2119
+ }>;
689
2120
  }, "strip", z.ZodTypeAny, {
690
- index: bigint;
691
- nextIndex: bigint;
2121
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
692
2122
  hintKey: AppendOnlyTreeSnapshot;
693
- nextValue: Fr;
694
- leaf?: any;
2123
+ treeId: number;
2124
+ stateAfter: AppendOnlyTreeSnapshot;
2125
+ lowLeavesWitnessData: {
2126
+ path: Fr[];
2127
+ index: bigint;
2128
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
2129
+ };
2130
+ insertionWitnessData: {
2131
+ path: Fr[];
2132
+ index: bigint;
2133
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
2134
+ };
695
2135
  }, {
696
- index: string | number | bigint;
697
- nextIndex: string | number | bigint;
2136
+ leaf: {
2137
+ nullifier: string;
2138
+ } | {
2139
+ value: string;
2140
+ slot: string;
2141
+ };
698
2142
  hintKey: {
699
2143
  root: string;
700
2144
  nextAvailableLeafIndex: string | number | bigint;
701
2145
  };
702
- nextValue: string;
703
- leaf?: any;
2146
+ treeId: number;
2147
+ stateAfter: {
2148
+ root: string;
2149
+ nextAvailableLeafIndex: string | number | bigint;
2150
+ };
2151
+ lowLeavesWitnessData: {
2152
+ path: string[];
2153
+ index: string | number | bigint;
2154
+ leaf: {
2155
+ leaf: {
2156
+ nullifier: string;
2157
+ };
2158
+ nextKey: string;
2159
+ nextIndex: string | number | bigint;
2160
+ } | {
2161
+ leaf: {
2162
+ value: string;
2163
+ slot: string;
2164
+ };
2165
+ nextKey: string;
2166
+ nextIndex: string | number | bigint;
2167
+ };
2168
+ };
2169
+ insertionWitnessData: {
2170
+ path: string[];
2171
+ index: string | number | bigint;
2172
+ leaf: {
2173
+ leaf: {
2174
+ nullifier: string;
2175
+ };
2176
+ nextKey: string;
2177
+ nextIndex: string | number | bigint;
2178
+ } | {
2179
+ leaf: {
2180
+ value: string;
2181
+ slot: string;
2182
+ };
2183
+ nextKey: string;
2184
+ nextIndex: string | number | bigint;
2185
+ };
2186
+ };
704
2187
  }>, {
705
2188
  readonly hintKey: AppendOnlyTreeSnapshot;
706
- readonly index: bigint;
707
- readonly leaf: PublicDataTreeLeaf;
708
- readonly nextIndex: bigint;
709
- readonly nextValue: Fr;
2189
+ readonly stateAfter: AppendOnlyTreeSnapshot;
2190
+ readonly treeId: MerkleTreeId;
2191
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
2192
+ readonly lowLeavesWitnessData: {
2193
+ leaf: IndexedTreeLeafPreimages;
2194
+ index: bigint;
2195
+ path: Fr[];
2196
+ };
2197
+ readonly insertionWitnessData: {
2198
+ leaf: IndexedTreeLeafPreimages;
2199
+ index: bigint;
2200
+ path: Fr[];
2201
+ };
710
2202
  }, {
711
- index: string | number | bigint;
712
- nextIndex: string | number | bigint;
2203
+ leaf: {
2204
+ nullifier: string;
2205
+ } | {
2206
+ value: string;
2207
+ slot: string;
2208
+ };
713
2209
  hintKey: {
714
2210
  root: string;
715
2211
  nextAvailableLeafIndex: string | number | bigint;
716
2212
  };
717
- nextValue: string;
718
- leaf?: any;
2213
+ treeId: number;
2214
+ stateAfter: {
2215
+ root: string;
2216
+ nextAvailableLeafIndex: string | number | bigint;
2217
+ };
2218
+ lowLeavesWitnessData: {
2219
+ path: string[];
2220
+ index: string | number | bigint;
2221
+ leaf: {
2222
+ leaf: {
2223
+ nullifier: string;
2224
+ };
2225
+ nextKey: string;
2226
+ nextIndex: string | number | bigint;
2227
+ } | {
2228
+ leaf: {
2229
+ value: string;
2230
+ slot: string;
2231
+ };
2232
+ nextKey: string;
2233
+ nextIndex: string | number | bigint;
2234
+ };
2235
+ };
2236
+ insertionWitnessData: {
2237
+ path: string[];
2238
+ index: string | number | bigint;
2239
+ leaf: {
2240
+ leaf: {
2241
+ nullifier: string;
2242
+ };
2243
+ nextKey: string;
2244
+ nextIndex: string | number | bigint;
2245
+ } | {
2246
+ leaf: {
2247
+ value: string;
2248
+ slot: string;
2249
+ };
2250
+ nextKey: string;
2251
+ nextIndex: string | number | bigint;
2252
+ };
2253
+ };
719
2254
  }>, "many">;
720
- getLeafPreimageHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
2255
+ sequentialInsertHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
721
2256
  hintKey: z.ZodEffects<z.ZodObject<{
722
2257
  root: z.ZodType<Fr, any, string>;
723
2258
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
724
2259
  }, "strip", z.ZodTypeAny, {
725
2260
  root: Fr;
726
2261
  nextAvailableLeafIndex: number;
727
- }, {
728
- root: string;
729
- nextAvailableLeafIndex: string | number | bigint;
730
- }>, AppendOnlyTreeSnapshot, {
731
- root: string;
732
- nextAvailableLeafIndex: string | number | bigint;
733
- }>;
734
- index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
735
- leaf: z.ZodType<any, z.ZodTypeDef, any>;
736
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
737
- nextValue: z.ZodType<Fr, any, string>;
738
- }, "strip", z.ZodTypeAny, {
739
- index: bigint;
740
- nextIndex: bigint;
741
- hintKey: AppendOnlyTreeSnapshot;
742
- nextValue: Fr;
743
- leaf?: any;
744
- }, {
745
- index: string | number | bigint;
746
- nextIndex: string | number | bigint;
747
- hintKey: {
2262
+ }, {
748
2263
  root: string;
749
2264
  nextAvailableLeafIndex: string | number | bigint;
750
- };
751
- nextValue: string;
752
- leaf?: any;
753
- }>, {
754
- readonly hintKey: AppendOnlyTreeSnapshot;
755
- readonly index: bigint;
756
- readonly leaf: NullifierLeaf;
757
- readonly nextIndex: bigint;
758
- readonly nextValue: Fr;
759
- }, {
760
- index: string | number | bigint;
761
- nextIndex: string | number | bigint;
762
- hintKey: {
2265
+ }>, AppendOnlyTreeSnapshot, {
763
2266
  root: string;
764
2267
  nextAvailableLeafIndex: string | number | bigint;
765
- };
766
- nextValue: string;
767
- leaf?: any;
768
- }>, "many">;
769
- getLeafValueHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
770
- hintKey: z.ZodEffects<z.ZodObject<{
2268
+ }>;
2269
+ stateAfter: z.ZodEffects<z.ZodObject<{
771
2270
  root: z.ZodType<Fr, any, string>;
772
2271
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
773
2272
  }, "strip", z.ZodTypeAny, {
@@ -781,29 +2280,337 @@ export declare class AvmExecutionHints {
781
2280
  nextAvailableLeafIndex: string | number | bigint;
782
2281
  }>;
783
2282
  treeId: z.ZodNumber;
784
- index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
785
- value: z.ZodType<Fr, any, string>;
2283
+ leaf: z.ZodEffects<z.ZodObject<{
2284
+ nullifier: z.ZodType<Fr, any, string>;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ nullifier: Fr;
2287
+ }, {
2288
+ nullifier: string;
2289
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
2290
+ nullifier: string;
2291
+ }> | z.ZodEffects<z.ZodObject<{
2292
+ slot: z.ZodType<Fr, any, string>;
2293
+ value: z.ZodType<Fr, any, string>;
2294
+ }, "strip", z.ZodTypeAny, {
2295
+ value: Fr;
2296
+ slot: Fr;
2297
+ }, {
2298
+ value: string;
2299
+ slot: string;
2300
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
2301
+ value: string;
2302
+ slot: string;
2303
+ }>;
2304
+ lowLeavesWitnessData: z.ZodObject<{
2305
+ leaf: z.ZodEffects<z.ZodObject<{
2306
+ leaf: z.ZodEffects<z.ZodObject<{
2307
+ nullifier: z.ZodType<Fr, any, string>;
2308
+ }, "strip", z.ZodTypeAny, {
2309
+ nullifier: Fr;
2310
+ }, {
2311
+ nullifier: string;
2312
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
2313
+ nullifier: string;
2314
+ }>;
2315
+ nextKey: z.ZodType<Fr, any, string>;
2316
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2317
+ }, "strip", z.ZodTypeAny, {
2318
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
2319
+ nextKey: Fr;
2320
+ nextIndex: bigint;
2321
+ }, {
2322
+ leaf: {
2323
+ nullifier: string;
2324
+ };
2325
+ nextKey: string;
2326
+ nextIndex: string | number | bigint;
2327
+ }>, NullifierLeafPreimage, {
2328
+ leaf: {
2329
+ nullifier: string;
2330
+ };
2331
+ nextKey: string;
2332
+ nextIndex: string | number | bigint;
2333
+ }> | z.ZodEffects<z.ZodObject<{
2334
+ leaf: z.ZodEffects<z.ZodObject<{
2335
+ slot: z.ZodType<Fr, any, string>;
2336
+ value: z.ZodType<Fr, any, string>;
2337
+ }, "strip", z.ZodTypeAny, {
2338
+ value: Fr;
2339
+ slot: Fr;
2340
+ }, {
2341
+ value: string;
2342
+ slot: string;
2343
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
2344
+ value: string;
2345
+ slot: string;
2346
+ }>;
2347
+ nextKey: z.ZodType<Fr, any, string>;
2348
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2349
+ }, "strip", z.ZodTypeAny, {
2350
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
2351
+ nextKey: Fr;
2352
+ nextIndex: bigint;
2353
+ }, {
2354
+ leaf: {
2355
+ value: string;
2356
+ slot: string;
2357
+ };
2358
+ nextKey: string;
2359
+ nextIndex: string | number | bigint;
2360
+ }>, PublicDataTreeLeafPreimage, {
2361
+ leaf: {
2362
+ value: string;
2363
+ slot: string;
2364
+ };
2365
+ nextKey: string;
2366
+ nextIndex: string | number | bigint;
2367
+ }>;
2368
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2369
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ path: Fr[];
2372
+ index: bigint;
2373
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
2374
+ }, {
2375
+ path: string[];
2376
+ index: string | number | bigint;
2377
+ leaf: {
2378
+ leaf: {
2379
+ nullifier: string;
2380
+ };
2381
+ nextKey: string;
2382
+ nextIndex: string | number | bigint;
2383
+ } | {
2384
+ leaf: {
2385
+ value: string;
2386
+ slot: string;
2387
+ };
2388
+ nextKey: string;
2389
+ nextIndex: string | number | bigint;
2390
+ };
2391
+ }>;
2392
+ insertionWitnessData: z.ZodObject<{
2393
+ leaf: z.ZodEffects<z.ZodObject<{
2394
+ leaf: z.ZodEffects<z.ZodObject<{
2395
+ nullifier: z.ZodType<Fr, any, string>;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ nullifier: Fr;
2398
+ }, {
2399
+ nullifier: string;
2400
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
2401
+ nullifier: string;
2402
+ }>;
2403
+ nextKey: z.ZodType<Fr, any, string>;
2404
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2405
+ }, "strip", z.ZodTypeAny, {
2406
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
2407
+ nextKey: Fr;
2408
+ nextIndex: bigint;
2409
+ }, {
2410
+ leaf: {
2411
+ nullifier: string;
2412
+ };
2413
+ nextKey: string;
2414
+ nextIndex: string | number | bigint;
2415
+ }>, NullifierLeafPreimage, {
2416
+ leaf: {
2417
+ nullifier: string;
2418
+ };
2419
+ nextKey: string;
2420
+ nextIndex: string | number | bigint;
2421
+ }> | z.ZodEffects<z.ZodObject<{
2422
+ leaf: z.ZodEffects<z.ZodObject<{
2423
+ slot: z.ZodType<Fr, any, string>;
2424
+ value: z.ZodType<Fr, any, string>;
2425
+ }, "strip", z.ZodTypeAny, {
2426
+ value: Fr;
2427
+ slot: Fr;
2428
+ }, {
2429
+ value: string;
2430
+ slot: string;
2431
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
2432
+ value: string;
2433
+ slot: string;
2434
+ }>;
2435
+ nextKey: z.ZodType<Fr, any, string>;
2436
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2437
+ }, "strip", z.ZodTypeAny, {
2438
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
2439
+ nextKey: Fr;
2440
+ nextIndex: bigint;
2441
+ }, {
2442
+ leaf: {
2443
+ value: string;
2444
+ slot: string;
2445
+ };
2446
+ nextKey: string;
2447
+ nextIndex: string | number | bigint;
2448
+ }>, PublicDataTreeLeafPreimage, {
2449
+ leaf: {
2450
+ value: string;
2451
+ slot: string;
2452
+ };
2453
+ nextKey: string;
2454
+ nextIndex: string | number | bigint;
2455
+ }>;
2456
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2457
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
2458
+ }, "strip", z.ZodTypeAny, {
2459
+ path: Fr[];
2460
+ index: bigint;
2461
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
2462
+ }, {
2463
+ path: string[];
2464
+ index: string | number | bigint;
2465
+ leaf: {
2466
+ leaf: {
2467
+ nullifier: string;
2468
+ };
2469
+ nextKey: string;
2470
+ nextIndex: string | number | bigint;
2471
+ } | {
2472
+ leaf: {
2473
+ value: string;
2474
+ slot: string;
2475
+ };
2476
+ nextKey: string;
2477
+ nextIndex: string | number | bigint;
2478
+ };
2479
+ }>;
786
2480
  }, "strip", z.ZodTypeAny, {
787
- value: Fr;
788
- index: bigint;
2481
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
789
2482
  hintKey: AppendOnlyTreeSnapshot;
790
2483
  treeId: number;
2484
+ stateAfter: AppendOnlyTreeSnapshot;
2485
+ lowLeavesWitnessData: {
2486
+ path: Fr[];
2487
+ index: bigint;
2488
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
2489
+ };
2490
+ insertionWitnessData: {
2491
+ path: Fr[];
2492
+ index: bigint;
2493
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
2494
+ };
791
2495
  }, {
792
- value: string;
793
- index: string | number | bigint;
2496
+ leaf: {
2497
+ nullifier: string;
2498
+ } | {
2499
+ value: string;
2500
+ slot: string;
2501
+ };
794
2502
  hintKey: {
795
2503
  root: string;
796
2504
  nextAvailableLeafIndex: string | number | bigint;
797
2505
  };
798
2506
  treeId: number;
799
- }>, AvmGetLeafValueHint, {
800
- value: string;
801
- index: string | number | bigint;
2507
+ stateAfter: {
2508
+ root: string;
2509
+ nextAvailableLeafIndex: string | number | bigint;
2510
+ };
2511
+ lowLeavesWitnessData: {
2512
+ path: string[];
2513
+ index: string | number | bigint;
2514
+ leaf: {
2515
+ leaf: {
2516
+ nullifier: string;
2517
+ };
2518
+ nextKey: string;
2519
+ nextIndex: string | number | bigint;
2520
+ } | {
2521
+ leaf: {
2522
+ value: string;
2523
+ slot: string;
2524
+ };
2525
+ nextKey: string;
2526
+ nextIndex: string | number | bigint;
2527
+ };
2528
+ };
2529
+ insertionWitnessData: {
2530
+ path: string[];
2531
+ index: string | number | bigint;
2532
+ leaf: {
2533
+ leaf: {
2534
+ nullifier: string;
2535
+ };
2536
+ nextKey: string;
2537
+ nextIndex: string | number | bigint;
2538
+ } | {
2539
+ leaf: {
2540
+ value: string;
2541
+ slot: string;
2542
+ };
2543
+ nextKey: string;
2544
+ nextIndex: string | number | bigint;
2545
+ };
2546
+ };
2547
+ }>, {
2548
+ readonly hintKey: AppendOnlyTreeSnapshot;
2549
+ readonly stateAfter: AppendOnlyTreeSnapshot;
2550
+ readonly treeId: MerkleTreeId;
2551
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
2552
+ readonly lowLeavesWitnessData: {
2553
+ leaf: IndexedTreeLeafPreimages;
2554
+ index: bigint;
2555
+ path: Fr[];
2556
+ };
2557
+ readonly insertionWitnessData: {
2558
+ leaf: IndexedTreeLeafPreimages;
2559
+ index: bigint;
2560
+ path: Fr[];
2561
+ };
2562
+ }, {
2563
+ leaf: {
2564
+ nullifier: string;
2565
+ } | {
2566
+ value: string;
2567
+ slot: string;
2568
+ };
802
2569
  hintKey: {
803
2570
  root: string;
804
2571
  nextAvailableLeafIndex: string | number | bigint;
805
2572
  };
806
2573
  treeId: number;
2574
+ stateAfter: {
2575
+ root: string;
2576
+ nextAvailableLeafIndex: string | number | bigint;
2577
+ };
2578
+ lowLeavesWitnessData: {
2579
+ path: string[];
2580
+ index: string | number | bigint;
2581
+ leaf: {
2582
+ leaf: {
2583
+ nullifier: string;
2584
+ };
2585
+ nextKey: string;
2586
+ nextIndex: string | number | bigint;
2587
+ } | {
2588
+ leaf: {
2589
+ value: string;
2590
+ slot: string;
2591
+ };
2592
+ nextKey: string;
2593
+ nextIndex: string | number | bigint;
2594
+ };
2595
+ };
2596
+ insertionWitnessData: {
2597
+ path: string[];
2598
+ index: string | number | bigint;
2599
+ leaf: {
2600
+ leaf: {
2601
+ nullifier: string;
2602
+ };
2603
+ nextKey: string;
2604
+ nextIndex: string | number | bigint;
2605
+ } | {
2606
+ leaf: {
2607
+ value: string;
2608
+ slot: string;
2609
+ };
2610
+ nextKey: string;
2611
+ nextIndex: string | number | bigint;
2612
+ };
2613
+ };
807
2614
  }>, "many">;
808
2615
  }, "strip", z.ZodTypeAny, {
809
2616
  enqueuedCalls: AvmEnqueuedCallHint[];
@@ -815,18 +2622,46 @@ export declare class AvmExecutionHints {
815
2622
  getLeafPreimageHintsPublicDataTree: {
816
2623
  readonly hintKey: AppendOnlyTreeSnapshot;
817
2624
  readonly index: bigint;
818
- readonly leaf: PublicDataTreeLeaf;
819
- readonly nextIndex: bigint;
820
- readonly nextValue: Fr;
2625
+ readonly leafPreimage: IndexedTreeLeafPreimages;
821
2626
  }[];
822
2627
  getLeafPreimageHintsNullifierTree: {
823
2628
  readonly hintKey: AppendOnlyTreeSnapshot;
824
2629
  readonly index: bigint;
825
- readonly leaf: NullifierLeaf;
826
- readonly nextIndex: bigint;
827
- readonly nextValue: Fr;
2630
+ readonly leafPreimage: IndexedTreeLeafPreimages;
828
2631
  }[];
829
2632
  getLeafValueHints: AvmGetLeafValueHint[];
2633
+ sequentialInsertHintsPublicDataTree: {
2634
+ readonly hintKey: AppendOnlyTreeSnapshot;
2635
+ readonly stateAfter: AppendOnlyTreeSnapshot;
2636
+ readonly treeId: MerkleTreeId;
2637
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
2638
+ readonly lowLeavesWitnessData: {
2639
+ leaf: IndexedTreeLeafPreimages;
2640
+ index: bigint;
2641
+ path: Fr[];
2642
+ };
2643
+ readonly insertionWitnessData: {
2644
+ leaf: IndexedTreeLeafPreimages;
2645
+ index: bigint;
2646
+ path: Fr[];
2647
+ };
2648
+ }[];
2649
+ sequentialInsertHintsNullifierTree: {
2650
+ readonly hintKey: AppendOnlyTreeSnapshot;
2651
+ readonly stateAfter: AppendOnlyTreeSnapshot;
2652
+ readonly treeId: MerkleTreeId;
2653
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
2654
+ readonly lowLeavesWitnessData: {
2655
+ leaf: IndexedTreeLeafPreimages;
2656
+ index: bigint;
2657
+ path: Fr[];
2658
+ };
2659
+ readonly insertionWitnessData: {
2660
+ leaf: IndexedTreeLeafPreimages;
2661
+ index: bigint;
2662
+ path: Fr[];
2663
+ };
2664
+ }[];
830
2665
  }, {
831
2666
  enqueuedCalls: {
832
2667
  isStaticCall: boolean;
@@ -882,23 +2717,45 @@ export declare class AvmExecutionHints {
882
2717
  }[];
883
2718
  getLeafPreimageHintsPublicDataTree: {
884
2719
  index: string | number | bigint;
885
- nextIndex: string | number | bigint;
886
2720
  hintKey: {
887
2721
  root: string;
888
2722
  nextAvailableLeafIndex: string | number | bigint;
889
2723
  };
890
- nextValue: string;
891
- leaf?: any;
2724
+ leafPreimage: {
2725
+ leaf: {
2726
+ nullifier: string;
2727
+ };
2728
+ nextKey: string;
2729
+ nextIndex: string | number | bigint;
2730
+ } | {
2731
+ leaf: {
2732
+ value: string;
2733
+ slot: string;
2734
+ };
2735
+ nextKey: string;
2736
+ nextIndex: string | number | bigint;
2737
+ };
892
2738
  }[];
893
2739
  getLeafPreimageHintsNullifierTree: {
894
2740
  index: string | number | bigint;
895
- nextIndex: string | number | bigint;
896
2741
  hintKey: {
897
2742
  root: string;
898
2743
  nextAvailableLeafIndex: string | number | bigint;
899
2744
  };
900
- nextValue: string;
901
- leaf?: any;
2745
+ leafPreimage: {
2746
+ leaf: {
2747
+ nullifier: string;
2748
+ };
2749
+ nextKey: string;
2750
+ nextIndex: string | number | bigint;
2751
+ } | {
2752
+ leaf: {
2753
+ value: string;
2754
+ slot: string;
2755
+ };
2756
+ nextKey: string;
2757
+ nextIndex: string | number | bigint;
2758
+ };
902
2759
  }[];
903
2760
  getLeafValueHints: {
904
2761
  value: string;
@@ -909,6 +2766,112 @@ export declare class AvmExecutionHints {
909
2766
  };
910
2767
  treeId: number;
911
2768
  }[];
2769
+ sequentialInsertHintsPublicDataTree: {
2770
+ leaf: {
2771
+ nullifier: string;
2772
+ } | {
2773
+ value: string;
2774
+ slot: string;
2775
+ };
2776
+ hintKey: {
2777
+ root: string;
2778
+ nextAvailableLeafIndex: string | number | bigint;
2779
+ };
2780
+ treeId: number;
2781
+ stateAfter: {
2782
+ root: string;
2783
+ nextAvailableLeafIndex: string | number | bigint;
2784
+ };
2785
+ lowLeavesWitnessData: {
2786
+ path: string[];
2787
+ index: string | number | bigint;
2788
+ leaf: {
2789
+ leaf: {
2790
+ nullifier: string;
2791
+ };
2792
+ nextKey: string;
2793
+ nextIndex: string | number | bigint;
2794
+ } | {
2795
+ leaf: {
2796
+ value: string;
2797
+ slot: string;
2798
+ };
2799
+ nextKey: string;
2800
+ nextIndex: string | number | bigint;
2801
+ };
2802
+ };
2803
+ insertionWitnessData: {
2804
+ path: string[];
2805
+ index: string | number | bigint;
2806
+ leaf: {
2807
+ leaf: {
2808
+ nullifier: string;
2809
+ };
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;
2819
+ };
2820
+ };
2821
+ }[];
2822
+ sequentialInsertHintsNullifierTree: {
2823
+ leaf: {
2824
+ nullifier: string;
2825
+ } | {
2826
+ value: string;
2827
+ slot: string;
2828
+ };
2829
+ hintKey: {
2830
+ root: string;
2831
+ nextAvailableLeafIndex: string | number | bigint;
2832
+ };
2833
+ treeId: number;
2834
+ stateAfter: {
2835
+ root: string;
2836
+ nextAvailableLeafIndex: string | number | bigint;
2837
+ };
2838
+ lowLeavesWitnessData: {
2839
+ path: string[];
2840
+ index: string | number | bigint;
2841
+ leaf: {
2842
+ leaf: {
2843
+ nullifier: string;
2844
+ };
2845
+ nextKey: string;
2846
+ nextIndex: string | number | bigint;
2847
+ } | {
2848
+ leaf: {
2849
+ value: string;
2850
+ slot: string;
2851
+ };
2852
+ nextKey: string;
2853
+ nextIndex: string | number | bigint;
2854
+ };
2855
+ };
2856
+ insertionWitnessData: {
2857
+ path: string[];
2858
+ index: string | number | bigint;
2859
+ leaf: {
2860
+ leaf: {
2861
+ nullifier: string;
2862
+ };
2863
+ nextKey: string;
2864
+ nextIndex: string | number | bigint;
2865
+ } | {
2866
+ leaf: {
2867
+ value: string;
2868
+ slot: string;
2869
+ };
2870
+ nextKey: string;
2871
+ nextIndex: string | number | bigint;
2872
+ };
2873
+ };
2874
+ }[];
912
2875
  }>, AvmExecutionHints, {
913
2876
  enqueuedCalls: {
914
2877
  isStaticCall: boolean;
@@ -943,8 +2906,69 @@ export declare class AvmExecutionHints {
943
2906
  classId: string;
944
2907
  commitment: string;
945
2908
  }[];
946
- getSiblingPathHints: {
947
- path: string[];
2909
+ getSiblingPathHints: {
2910
+ path: string[];
2911
+ index: string | number | bigint;
2912
+ hintKey: {
2913
+ root: string;
2914
+ nextAvailableLeafIndex: string | number | bigint;
2915
+ };
2916
+ treeId: number;
2917
+ }[];
2918
+ getPreviousValueIndexHints: {
2919
+ value: string;
2920
+ index: string | number | bigint;
2921
+ hintKey: {
2922
+ root: string;
2923
+ nextAvailableLeafIndex: string | number | bigint;
2924
+ };
2925
+ treeId: number;
2926
+ alreadyPresent: boolean;
2927
+ }[];
2928
+ getLeafPreimageHintsPublicDataTree: {
2929
+ index: string | number | bigint;
2930
+ hintKey: {
2931
+ root: string;
2932
+ nextAvailableLeafIndex: string | number | bigint;
2933
+ };
2934
+ leafPreimage: {
2935
+ leaf: {
2936
+ nullifier: string;
2937
+ };
2938
+ nextKey: string;
2939
+ nextIndex: string | number | bigint;
2940
+ } | {
2941
+ leaf: {
2942
+ value: string;
2943
+ slot: string;
2944
+ };
2945
+ nextKey: string;
2946
+ nextIndex: string | number | bigint;
2947
+ };
2948
+ }[];
2949
+ getLeafPreimageHintsNullifierTree: {
2950
+ index: string | number | bigint;
2951
+ hintKey: {
2952
+ root: string;
2953
+ nextAvailableLeafIndex: string | number | bigint;
2954
+ };
2955
+ leafPreimage: {
2956
+ leaf: {
2957
+ nullifier: string;
2958
+ };
2959
+ nextKey: string;
2960
+ nextIndex: string | number | bigint;
2961
+ } | {
2962
+ leaf: {
2963
+ value: string;
2964
+ slot: string;
2965
+ };
2966
+ nextKey: string;
2967
+ nextIndex: string | number | bigint;
2968
+ };
2969
+ }[];
2970
+ getLeafValueHints: {
2971
+ value: string;
948
2972
  index: string | number | bigint;
949
2973
  hintKey: {
950
2974
  root: string;
@@ -952,44 +2976,111 @@ export declare class AvmExecutionHints {
952
2976
  };
953
2977
  treeId: number;
954
2978
  }[];
955
- getPreviousValueIndexHints: {
956
- value: string;
957
- index: string | number | bigint;
2979
+ sequentialInsertHintsPublicDataTree: {
2980
+ leaf: {
2981
+ nullifier: string;
2982
+ } | {
2983
+ value: string;
2984
+ slot: string;
2985
+ };
958
2986
  hintKey: {
959
2987
  root: string;
960
2988
  nextAvailableLeafIndex: string | number | bigint;
961
2989
  };
962
2990
  treeId: number;
963
- alreadyPresent: boolean;
964
- }[];
965
- getLeafPreimageHintsPublicDataTree: {
966
- index: string | number | bigint;
967
- nextIndex: string | number | bigint;
968
- hintKey: {
2991
+ stateAfter: {
969
2992
  root: string;
970
2993
  nextAvailableLeafIndex: string | number | bigint;
971
2994
  };
972
- nextValue: string;
973
- leaf?: any;
2995
+ lowLeavesWitnessData: {
2996
+ path: string[];
2997
+ index: string | number | bigint;
2998
+ leaf: {
2999
+ leaf: {
3000
+ nullifier: string;
3001
+ };
3002
+ nextKey: string;
3003
+ nextIndex: string | number | bigint;
3004
+ } | {
3005
+ leaf: {
3006
+ value: string;
3007
+ slot: string;
3008
+ };
3009
+ nextKey: string;
3010
+ nextIndex: string | number | bigint;
3011
+ };
3012
+ };
3013
+ insertionWitnessData: {
3014
+ path: string[];
3015
+ index: string | number | bigint;
3016
+ leaf: {
3017
+ leaf: {
3018
+ nullifier: string;
3019
+ };
3020
+ nextKey: string;
3021
+ nextIndex: string | number | bigint;
3022
+ } | {
3023
+ leaf: {
3024
+ value: string;
3025
+ slot: string;
3026
+ };
3027
+ nextKey: string;
3028
+ nextIndex: string | number | bigint;
3029
+ };
3030
+ };
974
3031
  }[];
975
- getLeafPreimageHintsNullifierTree: {
976
- index: string | number | bigint;
977
- nextIndex: string | number | bigint;
3032
+ sequentialInsertHintsNullifierTree: {
3033
+ leaf: {
3034
+ nullifier: string;
3035
+ } | {
3036
+ value: string;
3037
+ slot: string;
3038
+ };
978
3039
  hintKey: {
979
3040
  root: string;
980
3041
  nextAvailableLeafIndex: string | number | bigint;
981
3042
  };
982
- nextValue: string;
983
- leaf?: any;
984
- }[];
985
- getLeafValueHints: {
986
- value: string;
987
- index: string | number | bigint;
988
- hintKey: {
3043
+ treeId: number;
3044
+ stateAfter: {
989
3045
  root: string;
990
3046
  nextAvailableLeafIndex: string | number | bigint;
991
3047
  };
992
- treeId: number;
3048
+ lowLeavesWitnessData: {
3049
+ path: string[];
3050
+ index: string | number | bigint;
3051
+ leaf: {
3052
+ leaf: {
3053
+ nullifier: string;
3054
+ };
3055
+ nextKey: string;
3056
+ nextIndex: string | number | bigint;
3057
+ } | {
3058
+ leaf: {
3059
+ value: string;
3060
+ slot: string;
3061
+ };
3062
+ nextKey: string;
3063
+ nextIndex: string | number | bigint;
3064
+ };
3065
+ };
3066
+ insertionWitnessData: {
3067
+ path: string[];
3068
+ index: string | number | bigint;
3069
+ leaf: {
3070
+ leaf: {
3071
+ nullifier: string;
3072
+ };
3073
+ nextKey: string;
3074
+ nextIndex: string | number | bigint;
3075
+ } | {
3076
+ leaf: {
3077
+ value: string;
3078
+ slot: string;
3079
+ };
3080
+ nextKey: string;
3081
+ nextIndex: string | number | bigint;
3082
+ };
3083
+ };
993
3084
  }[];
994
3085
  }>;
995
3086
  }
@@ -1238,41 +3329,645 @@ export declare class AvmCircuitInputs {
1238
3329
  nextAvailableLeafIndex: string | number | bigint;
1239
3330
  }>;
1240
3331
  index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1241
- leaf: z.ZodType<any, z.ZodTypeDef, any>;
1242
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1243
- nextValue: z.ZodType<Fr, any, string>;
3332
+ leafPreimage: z.ZodEffects<z.ZodObject<{
3333
+ leaf: z.ZodEffects<z.ZodObject<{
3334
+ nullifier: z.ZodType<Fr, any, string>;
3335
+ }, "strip", z.ZodTypeAny, {
3336
+ nullifier: Fr;
3337
+ }, {
3338
+ nullifier: string;
3339
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
3340
+ nullifier: string;
3341
+ }>;
3342
+ nextKey: z.ZodType<Fr, any, string>;
3343
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3344
+ }, "strip", z.ZodTypeAny, {
3345
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
3346
+ nextKey: Fr;
3347
+ nextIndex: bigint;
3348
+ }, {
3349
+ leaf: {
3350
+ nullifier: string;
3351
+ };
3352
+ nextKey: string;
3353
+ nextIndex: string | number | bigint;
3354
+ }>, NullifierLeafPreimage, {
3355
+ leaf: {
3356
+ nullifier: string;
3357
+ };
3358
+ nextKey: string;
3359
+ nextIndex: string | number | bigint;
3360
+ }> | z.ZodEffects<z.ZodObject<{
3361
+ leaf: z.ZodEffects<z.ZodObject<{
3362
+ slot: z.ZodType<Fr, any, string>;
3363
+ value: z.ZodType<Fr, any, string>;
3364
+ }, "strip", z.ZodTypeAny, {
3365
+ value: Fr;
3366
+ slot: Fr;
3367
+ }, {
3368
+ value: string;
3369
+ slot: string;
3370
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
3371
+ value: string;
3372
+ slot: string;
3373
+ }>;
3374
+ nextKey: z.ZodType<Fr, any, string>;
3375
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3376
+ }, "strip", z.ZodTypeAny, {
3377
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
3378
+ nextKey: Fr;
3379
+ nextIndex: bigint;
3380
+ }, {
3381
+ leaf: {
3382
+ value: string;
3383
+ slot: string;
3384
+ };
3385
+ nextKey: string;
3386
+ nextIndex: string | number | bigint;
3387
+ }>, PublicDataTreeLeafPreimage, {
3388
+ leaf: {
3389
+ value: string;
3390
+ slot: string;
3391
+ };
3392
+ nextKey: string;
3393
+ nextIndex: string | number | bigint;
3394
+ }>;
1244
3395
  }, "strip", z.ZodTypeAny, {
1245
3396
  index: bigint;
1246
- nextIndex: bigint;
1247
3397
  hintKey: AppendOnlyTreeSnapshot;
1248
- nextValue: Fr;
1249
- leaf?: any;
3398
+ leafPreimage: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
1250
3399
  }, {
1251
3400
  index: string | number | bigint;
1252
- nextIndex: string | number | bigint;
1253
3401
  hintKey: {
1254
3402
  root: string;
1255
3403
  nextAvailableLeafIndex: string | number | bigint;
1256
3404
  };
1257
- nextValue: string;
1258
- leaf?: any;
3405
+ leafPreimage: {
3406
+ leaf: {
3407
+ nullifier: string;
3408
+ };
3409
+ nextKey: string;
3410
+ nextIndex: string | number | bigint;
3411
+ } | {
3412
+ leaf: {
3413
+ value: string;
3414
+ slot: string;
3415
+ };
3416
+ nextKey: string;
3417
+ nextIndex: string | number | bigint;
3418
+ };
1259
3419
  }>, {
1260
3420
  readonly hintKey: AppendOnlyTreeSnapshot;
1261
3421
  readonly index: bigint;
1262
- readonly leaf: PublicDataTreeLeaf;
1263
- readonly nextIndex: bigint;
1264
- readonly nextValue: Fr;
3422
+ readonly leafPreimage: IndexedTreeLeafPreimages;
1265
3423
  }, {
1266
3424
  index: string | number | bigint;
1267
- nextIndex: string | number | bigint;
1268
3425
  hintKey: {
1269
3426
  root: string;
1270
3427
  nextAvailableLeafIndex: string | number | bigint;
1271
3428
  };
1272
- nextValue: string;
1273
- leaf?: any;
3429
+ leafPreimage: {
3430
+ leaf: {
3431
+ nullifier: string;
3432
+ };
3433
+ nextKey: string;
3434
+ nextIndex: string | number | bigint;
3435
+ } | {
3436
+ leaf: {
3437
+ value: string;
3438
+ slot: string;
3439
+ };
3440
+ nextKey: string;
3441
+ nextIndex: string | number | bigint;
3442
+ };
3443
+ }>, "many">;
3444
+ getLeafPreimageHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
3445
+ hintKey: z.ZodEffects<z.ZodObject<{
3446
+ root: z.ZodType<Fr, any, string>;
3447
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
3448
+ }, "strip", z.ZodTypeAny, {
3449
+ root: Fr;
3450
+ nextAvailableLeafIndex: number;
3451
+ }, {
3452
+ root: string;
3453
+ nextAvailableLeafIndex: string | number | bigint;
3454
+ }>, AppendOnlyTreeSnapshot, {
3455
+ root: string;
3456
+ nextAvailableLeafIndex: string | number | bigint;
3457
+ }>;
3458
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3459
+ leafPreimage: z.ZodEffects<z.ZodObject<{
3460
+ leaf: z.ZodEffects<z.ZodObject<{
3461
+ nullifier: z.ZodType<Fr, any, string>;
3462
+ }, "strip", z.ZodTypeAny, {
3463
+ nullifier: Fr;
3464
+ }, {
3465
+ nullifier: string;
3466
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
3467
+ nullifier: string;
3468
+ }>;
3469
+ nextKey: z.ZodType<Fr, any, string>;
3470
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3471
+ }, "strip", z.ZodTypeAny, {
3472
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
3473
+ nextKey: Fr;
3474
+ nextIndex: bigint;
3475
+ }, {
3476
+ leaf: {
3477
+ nullifier: string;
3478
+ };
3479
+ nextKey: string;
3480
+ nextIndex: string | number | bigint;
3481
+ }>, NullifierLeafPreimage, {
3482
+ leaf: {
3483
+ nullifier: string;
3484
+ };
3485
+ nextKey: string;
3486
+ nextIndex: string | number | bigint;
3487
+ }> | z.ZodEffects<z.ZodObject<{
3488
+ leaf: z.ZodEffects<z.ZodObject<{
3489
+ slot: z.ZodType<Fr, any, string>;
3490
+ value: z.ZodType<Fr, any, string>;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ value: Fr;
3493
+ slot: Fr;
3494
+ }, {
3495
+ value: string;
3496
+ slot: string;
3497
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
3498
+ value: string;
3499
+ slot: string;
3500
+ }>;
3501
+ nextKey: z.ZodType<Fr, any, string>;
3502
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3503
+ }, "strip", z.ZodTypeAny, {
3504
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
3505
+ nextKey: Fr;
3506
+ nextIndex: bigint;
3507
+ }, {
3508
+ leaf: {
3509
+ value: string;
3510
+ slot: string;
3511
+ };
3512
+ nextKey: string;
3513
+ nextIndex: string | number | bigint;
3514
+ }>, PublicDataTreeLeafPreimage, {
3515
+ leaf: {
3516
+ value: string;
3517
+ slot: string;
3518
+ };
3519
+ nextKey: string;
3520
+ nextIndex: string | number | bigint;
3521
+ }>;
3522
+ }, "strip", z.ZodTypeAny, {
3523
+ index: bigint;
3524
+ hintKey: AppendOnlyTreeSnapshot;
3525
+ leafPreimage: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
3526
+ }, {
3527
+ index: string | number | bigint;
3528
+ hintKey: {
3529
+ root: string;
3530
+ nextAvailableLeafIndex: string | number | bigint;
3531
+ };
3532
+ leafPreimage: {
3533
+ leaf: {
3534
+ nullifier: string;
3535
+ };
3536
+ nextKey: string;
3537
+ nextIndex: string | number | bigint;
3538
+ } | {
3539
+ leaf: {
3540
+ value: string;
3541
+ slot: string;
3542
+ };
3543
+ nextKey: string;
3544
+ nextIndex: string | number | bigint;
3545
+ };
3546
+ }>, {
3547
+ readonly hintKey: AppendOnlyTreeSnapshot;
3548
+ readonly index: bigint;
3549
+ readonly leafPreimage: IndexedTreeLeafPreimages;
3550
+ }, {
3551
+ index: string | number | bigint;
3552
+ hintKey: {
3553
+ root: string;
3554
+ nextAvailableLeafIndex: string | number | bigint;
3555
+ };
3556
+ leafPreimage: {
3557
+ leaf: {
3558
+ nullifier: string;
3559
+ };
3560
+ nextKey: string;
3561
+ nextIndex: string | number | bigint;
3562
+ } | {
3563
+ leaf: {
3564
+ value: string;
3565
+ slot: string;
3566
+ };
3567
+ nextKey: string;
3568
+ nextIndex: string | number | bigint;
3569
+ };
3570
+ }>, "many">;
3571
+ getLeafValueHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
3572
+ hintKey: z.ZodEffects<z.ZodObject<{
3573
+ root: z.ZodType<Fr, any, string>;
3574
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
3575
+ }, "strip", z.ZodTypeAny, {
3576
+ root: Fr;
3577
+ nextAvailableLeafIndex: number;
3578
+ }, {
3579
+ root: string;
3580
+ nextAvailableLeafIndex: string | number | bigint;
3581
+ }>, AppendOnlyTreeSnapshot, {
3582
+ root: string;
3583
+ nextAvailableLeafIndex: string | number | bigint;
3584
+ }>;
3585
+ treeId: z.ZodNumber;
3586
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3587
+ value: z.ZodType<Fr, any, string>;
3588
+ }, "strip", z.ZodTypeAny, {
3589
+ value: Fr;
3590
+ index: bigint;
3591
+ hintKey: AppendOnlyTreeSnapshot;
3592
+ treeId: number;
3593
+ }, {
3594
+ value: string;
3595
+ index: string | number | bigint;
3596
+ hintKey: {
3597
+ root: string;
3598
+ nextAvailableLeafIndex: string | number | bigint;
3599
+ };
3600
+ treeId: number;
3601
+ }>, AvmGetLeafValueHint, {
3602
+ value: string;
3603
+ index: string | number | bigint;
3604
+ hintKey: {
3605
+ root: string;
3606
+ nextAvailableLeafIndex: string | number | bigint;
3607
+ };
3608
+ treeId: number;
3609
+ }>, "many">;
3610
+ sequentialInsertHintsPublicDataTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
3611
+ hintKey: z.ZodEffects<z.ZodObject<{
3612
+ root: z.ZodType<Fr, any, string>;
3613
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
3614
+ }, "strip", z.ZodTypeAny, {
3615
+ root: Fr;
3616
+ nextAvailableLeafIndex: number;
3617
+ }, {
3618
+ root: string;
3619
+ nextAvailableLeafIndex: string | number | bigint;
3620
+ }>, AppendOnlyTreeSnapshot, {
3621
+ root: string;
3622
+ nextAvailableLeafIndex: string | number | bigint;
3623
+ }>;
3624
+ stateAfter: z.ZodEffects<z.ZodObject<{
3625
+ root: z.ZodType<Fr, any, string>;
3626
+ nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
3627
+ }, "strip", z.ZodTypeAny, {
3628
+ root: Fr;
3629
+ nextAvailableLeafIndex: number;
3630
+ }, {
3631
+ root: string;
3632
+ nextAvailableLeafIndex: string | number | bigint;
3633
+ }>, AppendOnlyTreeSnapshot, {
3634
+ root: string;
3635
+ nextAvailableLeafIndex: string | number | bigint;
3636
+ }>;
3637
+ treeId: z.ZodNumber;
3638
+ leaf: z.ZodEffects<z.ZodObject<{
3639
+ nullifier: z.ZodType<Fr, any, string>;
3640
+ }, "strip", z.ZodTypeAny, {
3641
+ nullifier: Fr;
3642
+ }, {
3643
+ nullifier: string;
3644
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
3645
+ nullifier: string;
3646
+ }> | z.ZodEffects<z.ZodObject<{
3647
+ slot: z.ZodType<Fr, any, string>;
3648
+ value: z.ZodType<Fr, any, string>;
3649
+ }, "strip", z.ZodTypeAny, {
3650
+ value: Fr;
3651
+ slot: Fr;
3652
+ }, {
3653
+ value: string;
3654
+ slot: string;
3655
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
3656
+ value: string;
3657
+ slot: string;
3658
+ }>;
3659
+ lowLeavesWitnessData: z.ZodObject<{
3660
+ leaf: z.ZodEffects<z.ZodObject<{
3661
+ leaf: z.ZodEffects<z.ZodObject<{
3662
+ nullifier: z.ZodType<Fr, any, string>;
3663
+ }, "strip", z.ZodTypeAny, {
3664
+ nullifier: Fr;
3665
+ }, {
3666
+ nullifier: string;
3667
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
3668
+ nullifier: string;
3669
+ }>;
3670
+ nextKey: z.ZodType<Fr, any, string>;
3671
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3672
+ }, "strip", z.ZodTypeAny, {
3673
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
3674
+ nextKey: Fr;
3675
+ nextIndex: bigint;
3676
+ }, {
3677
+ leaf: {
3678
+ nullifier: string;
3679
+ };
3680
+ nextKey: string;
3681
+ nextIndex: string | number | bigint;
3682
+ }>, NullifierLeafPreimage, {
3683
+ leaf: {
3684
+ nullifier: string;
3685
+ };
3686
+ nextKey: string;
3687
+ nextIndex: string | number | bigint;
3688
+ }> | z.ZodEffects<z.ZodObject<{
3689
+ leaf: z.ZodEffects<z.ZodObject<{
3690
+ slot: z.ZodType<Fr, any, string>;
3691
+ value: z.ZodType<Fr, any, string>;
3692
+ }, "strip", z.ZodTypeAny, {
3693
+ value: Fr;
3694
+ slot: Fr;
3695
+ }, {
3696
+ value: string;
3697
+ slot: string;
3698
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
3699
+ value: string;
3700
+ slot: string;
3701
+ }>;
3702
+ nextKey: z.ZodType<Fr, any, string>;
3703
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3704
+ }, "strip", z.ZodTypeAny, {
3705
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
3706
+ nextKey: Fr;
3707
+ nextIndex: bigint;
3708
+ }, {
3709
+ leaf: {
3710
+ value: string;
3711
+ slot: string;
3712
+ };
3713
+ nextKey: string;
3714
+ nextIndex: string | number | bigint;
3715
+ }>, PublicDataTreeLeafPreimage, {
3716
+ leaf: {
3717
+ value: string;
3718
+ slot: string;
3719
+ };
3720
+ nextKey: string;
3721
+ nextIndex: string | number | bigint;
3722
+ }>;
3723
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3724
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
3725
+ }, "strip", z.ZodTypeAny, {
3726
+ path: Fr[];
3727
+ index: bigint;
3728
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
3729
+ }, {
3730
+ path: string[];
3731
+ index: string | number | bigint;
3732
+ leaf: {
3733
+ leaf: {
3734
+ nullifier: string;
3735
+ };
3736
+ nextKey: string;
3737
+ nextIndex: string | number | bigint;
3738
+ } | {
3739
+ leaf: {
3740
+ value: string;
3741
+ slot: string;
3742
+ };
3743
+ nextKey: string;
3744
+ nextIndex: string | number | bigint;
3745
+ };
3746
+ }>;
3747
+ insertionWitnessData: z.ZodObject<{
3748
+ leaf: z.ZodEffects<z.ZodObject<{
3749
+ leaf: z.ZodEffects<z.ZodObject<{
3750
+ nullifier: z.ZodType<Fr, any, string>;
3751
+ }, "strip", z.ZodTypeAny, {
3752
+ nullifier: Fr;
3753
+ }, {
3754
+ nullifier: string;
3755
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
3756
+ nullifier: string;
3757
+ }>;
3758
+ nextKey: z.ZodType<Fr, any, string>;
3759
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3760
+ }, "strip", z.ZodTypeAny, {
3761
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
3762
+ nextKey: Fr;
3763
+ nextIndex: bigint;
3764
+ }, {
3765
+ leaf: {
3766
+ nullifier: string;
3767
+ };
3768
+ nextKey: string;
3769
+ nextIndex: string | number | bigint;
3770
+ }>, NullifierLeafPreimage, {
3771
+ leaf: {
3772
+ nullifier: string;
3773
+ };
3774
+ nextKey: string;
3775
+ nextIndex: string | number | bigint;
3776
+ }> | z.ZodEffects<z.ZodObject<{
3777
+ leaf: z.ZodEffects<z.ZodObject<{
3778
+ slot: z.ZodType<Fr, any, string>;
3779
+ value: z.ZodType<Fr, any, string>;
3780
+ }, "strip", z.ZodTypeAny, {
3781
+ value: Fr;
3782
+ slot: Fr;
3783
+ }, {
3784
+ value: string;
3785
+ slot: string;
3786
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
3787
+ value: string;
3788
+ slot: string;
3789
+ }>;
3790
+ nextKey: z.ZodType<Fr, any, string>;
3791
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3792
+ }, "strip", z.ZodTypeAny, {
3793
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
3794
+ nextKey: Fr;
3795
+ nextIndex: bigint;
3796
+ }, {
3797
+ leaf: {
3798
+ value: string;
3799
+ slot: string;
3800
+ };
3801
+ nextKey: string;
3802
+ nextIndex: string | number | bigint;
3803
+ }>, PublicDataTreeLeafPreimage, {
3804
+ leaf: {
3805
+ value: string;
3806
+ slot: string;
3807
+ };
3808
+ nextKey: string;
3809
+ nextIndex: string | number | bigint;
3810
+ }>;
3811
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
3812
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
3813
+ }, "strip", z.ZodTypeAny, {
3814
+ path: Fr[];
3815
+ index: bigint;
3816
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
3817
+ }, {
3818
+ path: string[];
3819
+ index: string | number | bigint;
3820
+ leaf: {
3821
+ leaf: {
3822
+ nullifier: string;
3823
+ };
3824
+ nextKey: string;
3825
+ nextIndex: string | number | bigint;
3826
+ } | {
3827
+ leaf: {
3828
+ value: string;
3829
+ slot: string;
3830
+ };
3831
+ nextKey: string;
3832
+ nextIndex: string | number | bigint;
3833
+ };
3834
+ }>;
3835
+ }, "strip", z.ZodTypeAny, {
3836
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
3837
+ hintKey: AppendOnlyTreeSnapshot;
3838
+ treeId: number;
3839
+ stateAfter: AppendOnlyTreeSnapshot;
3840
+ lowLeavesWitnessData: {
3841
+ path: Fr[];
3842
+ index: bigint;
3843
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
3844
+ };
3845
+ insertionWitnessData: {
3846
+ path: Fr[];
3847
+ index: bigint;
3848
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
3849
+ };
3850
+ }, {
3851
+ leaf: {
3852
+ nullifier: string;
3853
+ } | {
3854
+ value: string;
3855
+ slot: string;
3856
+ };
3857
+ hintKey: {
3858
+ root: string;
3859
+ nextAvailableLeafIndex: string | number | bigint;
3860
+ };
3861
+ treeId: number;
3862
+ stateAfter: {
3863
+ root: string;
3864
+ nextAvailableLeafIndex: string | number | bigint;
3865
+ };
3866
+ lowLeavesWitnessData: {
3867
+ path: string[];
3868
+ index: string | number | bigint;
3869
+ leaf: {
3870
+ leaf: {
3871
+ nullifier: string;
3872
+ };
3873
+ nextKey: string;
3874
+ nextIndex: string | number | bigint;
3875
+ } | {
3876
+ leaf: {
3877
+ value: string;
3878
+ slot: string;
3879
+ };
3880
+ nextKey: string;
3881
+ nextIndex: string | number | bigint;
3882
+ };
3883
+ };
3884
+ insertionWitnessData: {
3885
+ path: string[];
3886
+ index: string | number | bigint;
3887
+ leaf: {
3888
+ leaf: {
3889
+ nullifier: string;
3890
+ };
3891
+ nextKey: string;
3892
+ nextIndex: string | number | bigint;
3893
+ } | {
3894
+ leaf: {
3895
+ value: string;
3896
+ slot: string;
3897
+ };
3898
+ nextKey: string;
3899
+ nextIndex: string | number | bigint;
3900
+ };
3901
+ };
3902
+ }>, {
3903
+ readonly hintKey: AppendOnlyTreeSnapshot;
3904
+ readonly stateAfter: AppendOnlyTreeSnapshot;
3905
+ readonly treeId: MerkleTreeId;
3906
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
3907
+ readonly lowLeavesWitnessData: {
3908
+ leaf: IndexedTreeLeafPreimages;
3909
+ index: bigint;
3910
+ path: Fr[];
3911
+ };
3912
+ readonly insertionWitnessData: {
3913
+ leaf: IndexedTreeLeafPreimages;
3914
+ index: bigint;
3915
+ path: Fr[];
3916
+ };
3917
+ }, {
3918
+ leaf: {
3919
+ nullifier: string;
3920
+ } | {
3921
+ value: string;
3922
+ slot: string;
3923
+ };
3924
+ hintKey: {
3925
+ root: string;
3926
+ nextAvailableLeafIndex: string | number | bigint;
3927
+ };
3928
+ treeId: number;
3929
+ stateAfter: {
3930
+ root: string;
3931
+ nextAvailableLeafIndex: string | number | bigint;
3932
+ };
3933
+ lowLeavesWitnessData: {
3934
+ path: string[];
3935
+ index: string | number | bigint;
3936
+ leaf: {
3937
+ leaf: {
3938
+ nullifier: string;
3939
+ };
3940
+ nextKey: string;
3941
+ nextIndex: string | number | bigint;
3942
+ } | {
3943
+ leaf: {
3944
+ value: string;
3945
+ slot: string;
3946
+ };
3947
+ nextKey: string;
3948
+ nextIndex: string | number | bigint;
3949
+ };
3950
+ };
3951
+ insertionWitnessData: {
3952
+ path: string[];
3953
+ index: string | number | bigint;
3954
+ leaf: {
3955
+ leaf: {
3956
+ nullifier: string;
3957
+ };
3958
+ nextKey: string;
3959
+ nextIndex: string | number | bigint;
3960
+ } | {
3961
+ leaf: {
3962
+ value: string;
3963
+ slot: string;
3964
+ };
3965
+ nextKey: string;
3966
+ nextIndex: string | number | bigint;
3967
+ };
3968
+ };
1274
3969
  }>, "many">;
1275
- getLeafPreimageHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
3970
+ sequentialInsertHintsNullifierTree: z.ZodArray<z.ZodEffects<z.ZodObject<{
1276
3971
  hintKey: z.ZodEffects<z.ZodObject<{
1277
3972
  root: z.ZodType<Fr, any, string>;
1278
3973
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
@@ -1286,43 +3981,7 @@ export declare class AvmCircuitInputs {
1286
3981
  root: string;
1287
3982
  nextAvailableLeafIndex: string | number | bigint;
1288
3983
  }>;
1289
- index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1290
- leaf: z.ZodType<any, z.ZodTypeDef, any>;
1291
- nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1292
- nextValue: z.ZodType<Fr, any, string>;
1293
- }, "strip", z.ZodTypeAny, {
1294
- index: bigint;
1295
- nextIndex: bigint;
1296
- hintKey: AppendOnlyTreeSnapshot;
1297
- nextValue: Fr;
1298
- leaf?: any;
1299
- }, {
1300
- index: string | number | bigint;
1301
- nextIndex: string | number | bigint;
1302
- hintKey: {
1303
- root: string;
1304
- nextAvailableLeafIndex: string | number | bigint;
1305
- };
1306
- nextValue: string;
1307
- leaf?: any;
1308
- }>, {
1309
- readonly hintKey: AppendOnlyTreeSnapshot;
1310
- readonly index: bigint;
1311
- readonly leaf: NullifierLeaf;
1312
- readonly nextIndex: bigint;
1313
- readonly nextValue: Fr;
1314
- }, {
1315
- index: string | number | bigint;
1316
- nextIndex: string | number | bigint;
1317
- hintKey: {
1318
- root: string;
1319
- nextAvailableLeafIndex: string | number | bigint;
1320
- };
1321
- nextValue: string;
1322
- leaf?: any;
1323
- }>, "many">;
1324
- getLeafValueHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
1325
- hintKey: z.ZodEffects<z.ZodObject<{
3984
+ stateAfter: z.ZodEffects<z.ZodObject<{
1326
3985
  root: z.ZodType<Fr, any, string>;
1327
3986
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1328
3987
  }, "strip", z.ZodTypeAny, {
@@ -1336,29 +3995,337 @@ export declare class AvmCircuitInputs {
1336
3995
  nextAvailableLeafIndex: string | number | bigint;
1337
3996
  }>;
1338
3997
  treeId: z.ZodNumber;
1339
- index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1340
- value: z.ZodType<Fr, any, string>;
3998
+ leaf: z.ZodEffects<z.ZodObject<{
3999
+ nullifier: z.ZodType<Fr, any, string>;
4000
+ }, "strip", z.ZodTypeAny, {
4001
+ nullifier: Fr;
4002
+ }, {
4003
+ nullifier: string;
4004
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
4005
+ nullifier: string;
4006
+ }> | z.ZodEffects<z.ZodObject<{
4007
+ slot: z.ZodType<Fr, any, string>;
4008
+ value: z.ZodType<Fr, any, string>;
4009
+ }, "strip", z.ZodTypeAny, {
4010
+ value: Fr;
4011
+ slot: Fr;
4012
+ }, {
4013
+ value: string;
4014
+ slot: string;
4015
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
4016
+ value: string;
4017
+ slot: string;
4018
+ }>;
4019
+ lowLeavesWitnessData: z.ZodObject<{
4020
+ leaf: z.ZodEffects<z.ZodObject<{
4021
+ leaf: z.ZodEffects<z.ZodObject<{
4022
+ nullifier: z.ZodType<Fr, any, string>;
4023
+ }, "strip", z.ZodTypeAny, {
4024
+ nullifier: Fr;
4025
+ }, {
4026
+ nullifier: string;
4027
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
4028
+ nullifier: string;
4029
+ }>;
4030
+ nextKey: z.ZodType<Fr, any, string>;
4031
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
4034
+ nextKey: Fr;
4035
+ nextIndex: bigint;
4036
+ }, {
4037
+ leaf: {
4038
+ nullifier: string;
4039
+ };
4040
+ nextKey: string;
4041
+ nextIndex: string | number | bigint;
4042
+ }>, NullifierLeafPreimage, {
4043
+ leaf: {
4044
+ nullifier: string;
4045
+ };
4046
+ nextKey: string;
4047
+ nextIndex: string | number | bigint;
4048
+ }> | z.ZodEffects<z.ZodObject<{
4049
+ leaf: z.ZodEffects<z.ZodObject<{
4050
+ slot: z.ZodType<Fr, any, string>;
4051
+ value: z.ZodType<Fr, any, string>;
4052
+ }, "strip", z.ZodTypeAny, {
4053
+ value: Fr;
4054
+ slot: Fr;
4055
+ }, {
4056
+ value: string;
4057
+ slot: string;
4058
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
4059
+ value: string;
4060
+ slot: string;
4061
+ }>;
4062
+ nextKey: z.ZodType<Fr, any, string>;
4063
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
4064
+ }, "strip", z.ZodTypeAny, {
4065
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
4066
+ nextKey: Fr;
4067
+ nextIndex: bigint;
4068
+ }, {
4069
+ leaf: {
4070
+ value: string;
4071
+ slot: string;
4072
+ };
4073
+ nextKey: string;
4074
+ nextIndex: string | number | bigint;
4075
+ }>, PublicDataTreeLeafPreimage, {
4076
+ leaf: {
4077
+ value: string;
4078
+ slot: string;
4079
+ };
4080
+ nextKey: string;
4081
+ nextIndex: string | number | bigint;
4082
+ }>;
4083
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
4084
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
4085
+ }, "strip", z.ZodTypeAny, {
4086
+ path: Fr[];
4087
+ index: bigint;
4088
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
4089
+ }, {
4090
+ path: string[];
4091
+ index: string | number | bigint;
4092
+ leaf: {
4093
+ leaf: {
4094
+ nullifier: string;
4095
+ };
4096
+ nextKey: string;
4097
+ nextIndex: string | number | bigint;
4098
+ } | {
4099
+ leaf: {
4100
+ value: string;
4101
+ slot: string;
4102
+ };
4103
+ nextKey: string;
4104
+ nextIndex: string | number | bigint;
4105
+ };
4106
+ }>;
4107
+ insertionWitnessData: z.ZodObject<{
4108
+ leaf: z.ZodEffects<z.ZodObject<{
4109
+ leaf: z.ZodEffects<z.ZodObject<{
4110
+ nullifier: z.ZodType<Fr, any, string>;
4111
+ }, "strip", z.ZodTypeAny, {
4112
+ nullifier: Fr;
4113
+ }, {
4114
+ nullifier: string;
4115
+ }>, import("../trees/nullifier_leaf.js").NullifierLeaf, {
4116
+ nullifier: string;
4117
+ }>;
4118
+ nextKey: z.ZodType<Fr, any, string>;
4119
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
4120
+ }, "strip", z.ZodTypeAny, {
4121
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf;
4122
+ nextKey: Fr;
4123
+ nextIndex: bigint;
4124
+ }, {
4125
+ leaf: {
4126
+ nullifier: string;
4127
+ };
4128
+ nextKey: string;
4129
+ nextIndex: string | number | bigint;
4130
+ }>, NullifierLeafPreimage, {
4131
+ leaf: {
4132
+ nullifier: string;
4133
+ };
4134
+ nextKey: string;
4135
+ nextIndex: string | number | bigint;
4136
+ }> | z.ZodEffects<z.ZodObject<{
4137
+ leaf: z.ZodEffects<z.ZodObject<{
4138
+ slot: z.ZodType<Fr, any, string>;
4139
+ value: z.ZodType<Fr, any, string>;
4140
+ }, "strip", z.ZodTypeAny, {
4141
+ value: Fr;
4142
+ slot: Fr;
4143
+ }, {
4144
+ value: string;
4145
+ slot: string;
4146
+ }>, import("../trees/public_data_leaf.js").PublicDataTreeLeaf, {
4147
+ value: string;
4148
+ slot: string;
4149
+ }>;
4150
+ nextKey: z.ZodType<Fr, any, string>;
4151
+ nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
4152
+ }, "strip", z.ZodTypeAny, {
4153
+ leaf: import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
4154
+ nextKey: Fr;
4155
+ nextIndex: bigint;
4156
+ }, {
4157
+ leaf: {
4158
+ value: string;
4159
+ slot: string;
4160
+ };
4161
+ nextKey: string;
4162
+ nextIndex: string | number | bigint;
4163
+ }>, PublicDataTreeLeafPreimage, {
4164
+ leaf: {
4165
+ value: string;
4166
+ slot: string;
4167
+ };
4168
+ nextKey: string;
4169
+ nextIndex: string | number | bigint;
4170
+ }>;
4171
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
4172
+ path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
4173
+ }, "strip", z.ZodTypeAny, {
4174
+ path: Fr[];
4175
+ index: bigint;
4176
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
4177
+ }, {
4178
+ path: string[];
4179
+ index: string | number | bigint;
4180
+ leaf: {
4181
+ leaf: {
4182
+ nullifier: string;
4183
+ };
4184
+ nextKey: string;
4185
+ nextIndex: string | number | bigint;
4186
+ } | {
4187
+ leaf: {
4188
+ value: string;
4189
+ slot: string;
4190
+ };
4191
+ nextKey: string;
4192
+ nextIndex: string | number | bigint;
4193
+ };
4194
+ }>;
1341
4195
  }, "strip", z.ZodTypeAny, {
1342
- value: Fr;
1343
- index: bigint;
4196
+ leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
1344
4197
  hintKey: AppendOnlyTreeSnapshot;
1345
4198
  treeId: number;
4199
+ stateAfter: AppendOnlyTreeSnapshot;
4200
+ lowLeavesWitnessData: {
4201
+ path: Fr[];
4202
+ index: bigint;
4203
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
4204
+ };
4205
+ insertionWitnessData: {
4206
+ path: Fr[];
4207
+ index: bigint;
4208
+ leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
4209
+ };
1346
4210
  }, {
1347
- value: string;
1348
- index: string | number | bigint;
4211
+ leaf: {
4212
+ nullifier: string;
4213
+ } | {
4214
+ value: string;
4215
+ slot: string;
4216
+ };
1349
4217
  hintKey: {
1350
4218
  root: string;
1351
4219
  nextAvailableLeafIndex: string | number | bigint;
1352
4220
  };
1353
4221
  treeId: number;
1354
- }>, AvmGetLeafValueHint, {
1355
- value: string;
1356
- index: string | number | bigint;
4222
+ stateAfter: {
4223
+ root: string;
4224
+ nextAvailableLeafIndex: string | number | bigint;
4225
+ };
4226
+ lowLeavesWitnessData: {
4227
+ path: string[];
4228
+ index: string | number | bigint;
4229
+ leaf: {
4230
+ leaf: {
4231
+ nullifier: string;
4232
+ };
4233
+ nextKey: string;
4234
+ nextIndex: string | number | bigint;
4235
+ } | {
4236
+ leaf: {
4237
+ value: string;
4238
+ slot: string;
4239
+ };
4240
+ nextKey: string;
4241
+ nextIndex: string | number | bigint;
4242
+ };
4243
+ };
4244
+ insertionWitnessData: {
4245
+ path: string[];
4246
+ index: string | number | bigint;
4247
+ leaf: {
4248
+ leaf: {
4249
+ nullifier: string;
4250
+ };
4251
+ nextKey: string;
4252
+ nextIndex: string | number | bigint;
4253
+ } | {
4254
+ leaf: {
4255
+ value: string;
4256
+ slot: string;
4257
+ };
4258
+ nextKey: string;
4259
+ nextIndex: string | number | bigint;
4260
+ };
4261
+ };
4262
+ }>, {
4263
+ readonly hintKey: AppendOnlyTreeSnapshot;
4264
+ readonly stateAfter: AppendOnlyTreeSnapshot;
4265
+ readonly treeId: MerkleTreeId;
4266
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
4267
+ readonly lowLeavesWitnessData: {
4268
+ leaf: IndexedTreeLeafPreimages;
4269
+ index: bigint;
4270
+ path: Fr[];
4271
+ };
4272
+ readonly insertionWitnessData: {
4273
+ leaf: IndexedTreeLeafPreimages;
4274
+ index: bigint;
4275
+ path: Fr[];
4276
+ };
4277
+ }, {
4278
+ leaf: {
4279
+ nullifier: string;
4280
+ } | {
4281
+ value: string;
4282
+ slot: string;
4283
+ };
1357
4284
  hintKey: {
1358
4285
  root: string;
1359
4286
  nextAvailableLeafIndex: string | number | bigint;
1360
4287
  };
1361
4288
  treeId: number;
4289
+ stateAfter: {
4290
+ root: string;
4291
+ nextAvailableLeafIndex: string | number | bigint;
4292
+ };
4293
+ lowLeavesWitnessData: {
4294
+ path: string[];
4295
+ index: string | number | bigint;
4296
+ leaf: {
4297
+ leaf: {
4298
+ nullifier: string;
4299
+ };
4300
+ nextKey: string;
4301
+ nextIndex: string | number | bigint;
4302
+ } | {
4303
+ leaf: {
4304
+ value: string;
4305
+ slot: string;
4306
+ };
4307
+ nextKey: string;
4308
+ nextIndex: string | number | bigint;
4309
+ };
4310
+ };
4311
+ insertionWitnessData: {
4312
+ path: string[];
4313
+ index: string | number | bigint;
4314
+ leaf: {
4315
+ leaf: {
4316
+ nullifier: string;
4317
+ };
4318
+ nextKey: string;
4319
+ nextIndex: string | number | bigint;
4320
+ } | {
4321
+ leaf: {
4322
+ value: string;
4323
+ slot: string;
4324
+ };
4325
+ nextKey: string;
4326
+ nextIndex: string | number | bigint;
4327
+ };
4328
+ };
1362
4329
  }>, "many">;
1363
4330
  }, "strip", z.ZodTypeAny, {
1364
4331
  enqueuedCalls: AvmEnqueuedCallHint[];
@@ -1370,18 +4337,46 @@ export declare class AvmCircuitInputs {
1370
4337
  getLeafPreimageHintsPublicDataTree: {
1371
4338
  readonly hintKey: AppendOnlyTreeSnapshot;
1372
4339
  readonly index: bigint;
1373
- readonly leaf: PublicDataTreeLeaf;
1374
- readonly nextIndex: bigint;
1375
- readonly nextValue: Fr;
4340
+ readonly leafPreimage: IndexedTreeLeafPreimages;
1376
4341
  }[];
1377
4342
  getLeafPreimageHintsNullifierTree: {
1378
4343
  readonly hintKey: AppendOnlyTreeSnapshot;
1379
4344
  readonly index: bigint;
1380
- readonly leaf: NullifierLeaf;
1381
- readonly nextIndex: bigint;
1382
- readonly nextValue: Fr;
4345
+ readonly leafPreimage: IndexedTreeLeafPreimages;
1383
4346
  }[];
1384
4347
  getLeafValueHints: AvmGetLeafValueHint[];
4348
+ sequentialInsertHintsPublicDataTree: {
4349
+ readonly hintKey: AppendOnlyTreeSnapshot;
4350
+ readonly stateAfter: AppendOnlyTreeSnapshot;
4351
+ readonly treeId: MerkleTreeId;
4352
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
4353
+ readonly lowLeavesWitnessData: {
4354
+ leaf: IndexedTreeLeafPreimages;
4355
+ index: bigint;
4356
+ path: Fr[];
4357
+ };
4358
+ readonly insertionWitnessData: {
4359
+ leaf: IndexedTreeLeafPreimages;
4360
+ index: bigint;
4361
+ path: Fr[];
4362
+ };
4363
+ }[];
4364
+ sequentialInsertHintsNullifierTree: {
4365
+ readonly hintKey: AppendOnlyTreeSnapshot;
4366
+ readonly stateAfter: AppendOnlyTreeSnapshot;
4367
+ readonly treeId: MerkleTreeId;
4368
+ readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
4369
+ readonly lowLeavesWitnessData: {
4370
+ leaf: IndexedTreeLeafPreimages;
4371
+ index: bigint;
4372
+ path: Fr[];
4373
+ };
4374
+ readonly insertionWitnessData: {
4375
+ leaf: IndexedTreeLeafPreimages;
4376
+ index: bigint;
4377
+ path: Fr[];
4378
+ };
4379
+ }[];
1385
4380
  }, {
1386
4381
  enqueuedCalls: {
1387
4382
  isStaticCall: boolean;
@@ -1437,23 +4432,45 @@ export declare class AvmCircuitInputs {
1437
4432
  }[];
1438
4433
  getLeafPreimageHintsPublicDataTree: {
1439
4434
  index: string | number | bigint;
1440
- nextIndex: string | number | bigint;
1441
4435
  hintKey: {
1442
4436
  root: string;
1443
4437
  nextAvailableLeafIndex: string | number | bigint;
1444
4438
  };
1445
- nextValue: string;
1446
- leaf?: any;
4439
+ leafPreimage: {
4440
+ leaf: {
4441
+ nullifier: string;
4442
+ };
4443
+ nextKey: string;
4444
+ nextIndex: string | number | bigint;
4445
+ } | {
4446
+ leaf: {
4447
+ value: string;
4448
+ slot: string;
4449
+ };
4450
+ nextKey: string;
4451
+ nextIndex: string | number | bigint;
4452
+ };
1447
4453
  }[];
1448
4454
  getLeafPreimageHintsNullifierTree: {
1449
4455
  index: string | number | bigint;
1450
- nextIndex: string | number | bigint;
1451
4456
  hintKey: {
1452
4457
  root: string;
1453
4458
  nextAvailableLeafIndex: string | number | bigint;
1454
4459
  };
1455
- nextValue: string;
1456
- leaf?: any;
4460
+ leafPreimage: {
4461
+ leaf: {
4462
+ nullifier: string;
4463
+ };
4464
+ nextKey: string;
4465
+ nextIndex: string | number | bigint;
4466
+ } | {
4467
+ leaf: {
4468
+ value: string;
4469
+ slot: string;
4470
+ };
4471
+ nextKey: string;
4472
+ nextIndex: string | number | bigint;
4473
+ };
1457
4474
  }[];
1458
4475
  getLeafValueHints: {
1459
4476
  value: string;
@@ -1464,6 +4481,112 @@ export declare class AvmCircuitInputs {
1464
4481
  };
1465
4482
  treeId: number;
1466
4483
  }[];
4484
+ sequentialInsertHintsPublicDataTree: {
4485
+ leaf: {
4486
+ nullifier: string;
4487
+ } | {
4488
+ value: string;
4489
+ slot: string;
4490
+ };
4491
+ hintKey: {
4492
+ root: string;
4493
+ nextAvailableLeafIndex: string | number | bigint;
4494
+ };
4495
+ treeId: number;
4496
+ stateAfter: {
4497
+ root: string;
4498
+ nextAvailableLeafIndex: string | number | bigint;
4499
+ };
4500
+ lowLeavesWitnessData: {
4501
+ path: string[];
4502
+ index: string | number | bigint;
4503
+ leaf: {
4504
+ leaf: {
4505
+ nullifier: string;
4506
+ };
4507
+ nextKey: string;
4508
+ nextIndex: string | number | bigint;
4509
+ } | {
4510
+ leaf: {
4511
+ value: string;
4512
+ slot: string;
4513
+ };
4514
+ nextKey: string;
4515
+ nextIndex: string | number | bigint;
4516
+ };
4517
+ };
4518
+ insertionWitnessData: {
4519
+ path: string[];
4520
+ index: string | number | bigint;
4521
+ leaf: {
4522
+ leaf: {
4523
+ nullifier: string;
4524
+ };
4525
+ nextKey: string;
4526
+ nextIndex: string | number | bigint;
4527
+ } | {
4528
+ leaf: {
4529
+ value: string;
4530
+ slot: string;
4531
+ };
4532
+ nextKey: string;
4533
+ nextIndex: string | number | bigint;
4534
+ };
4535
+ };
4536
+ }[];
4537
+ sequentialInsertHintsNullifierTree: {
4538
+ leaf: {
4539
+ nullifier: string;
4540
+ } | {
4541
+ value: string;
4542
+ slot: string;
4543
+ };
4544
+ hintKey: {
4545
+ root: string;
4546
+ nextAvailableLeafIndex: string | number | bigint;
4547
+ };
4548
+ treeId: number;
4549
+ stateAfter: {
4550
+ root: string;
4551
+ nextAvailableLeafIndex: string | number | bigint;
4552
+ };
4553
+ lowLeavesWitnessData: {
4554
+ path: string[];
4555
+ index: string | number | bigint;
4556
+ leaf: {
4557
+ leaf: {
4558
+ nullifier: string;
4559
+ };
4560
+ nextKey: string;
4561
+ nextIndex: string | number | bigint;
4562
+ } | {
4563
+ leaf: {
4564
+ value: string;
4565
+ slot: string;
4566
+ };
4567
+ nextKey: string;
4568
+ nextIndex: string | number | bigint;
4569
+ };
4570
+ };
4571
+ insertionWitnessData: {
4572
+ path: string[];
4573
+ index: string | number | bigint;
4574
+ leaf: {
4575
+ leaf: {
4576
+ nullifier: string;
4577
+ };
4578
+ nextKey: string;
4579
+ nextIndex: string | number | bigint;
4580
+ } | {
4581
+ leaf: {
4582
+ value: string;
4583
+ slot: string;
4584
+ };
4585
+ nextKey: string;
4586
+ nextIndex: string | number | bigint;
4587
+ };
4588
+ };
4589
+ }[];
1467
4590
  }>, AvmExecutionHints, {
1468
4591
  enqueuedCalls: {
1469
4592
  isStaticCall: boolean;
@@ -1519,23 +4642,45 @@ export declare class AvmCircuitInputs {
1519
4642
  }[];
1520
4643
  getLeafPreimageHintsPublicDataTree: {
1521
4644
  index: string | number | bigint;
1522
- nextIndex: string | number | bigint;
1523
4645
  hintKey: {
1524
4646
  root: string;
1525
4647
  nextAvailableLeafIndex: string | number | bigint;
1526
4648
  };
1527
- nextValue: string;
1528
- leaf?: any;
4649
+ leafPreimage: {
4650
+ leaf: {
4651
+ nullifier: string;
4652
+ };
4653
+ nextKey: string;
4654
+ nextIndex: string | number | bigint;
4655
+ } | {
4656
+ leaf: {
4657
+ value: string;
4658
+ slot: string;
4659
+ };
4660
+ nextKey: string;
4661
+ nextIndex: string | number | bigint;
4662
+ };
1529
4663
  }[];
1530
4664
  getLeafPreimageHintsNullifierTree: {
1531
4665
  index: string | number | bigint;
1532
- nextIndex: string | number | bigint;
1533
4666
  hintKey: {
1534
4667
  root: string;
1535
4668
  nextAvailableLeafIndex: string | number | bigint;
1536
4669
  };
1537
- nextValue: string;
1538
- leaf?: any;
4670
+ leafPreimage: {
4671
+ leaf: {
4672
+ nullifier: string;
4673
+ };
4674
+ nextKey: string;
4675
+ nextIndex: string | number | bigint;
4676
+ } | {
4677
+ leaf: {
4678
+ value: string;
4679
+ slot: string;
4680
+ };
4681
+ nextKey: string;
4682
+ nextIndex: string | number | bigint;
4683
+ };
1539
4684
  }[];
1540
4685
  getLeafValueHints: {
1541
4686
  value: string;
@@ -1546,6 +4691,112 @@ export declare class AvmCircuitInputs {
1546
4691
  };
1547
4692
  treeId: number;
1548
4693
  }[];
4694
+ sequentialInsertHintsPublicDataTree: {
4695
+ leaf: {
4696
+ nullifier: string;
4697
+ } | {
4698
+ value: string;
4699
+ slot: string;
4700
+ };
4701
+ hintKey: {
4702
+ root: string;
4703
+ nextAvailableLeafIndex: string | number | bigint;
4704
+ };
4705
+ treeId: number;
4706
+ stateAfter: {
4707
+ root: string;
4708
+ nextAvailableLeafIndex: string | number | bigint;
4709
+ };
4710
+ lowLeavesWitnessData: {
4711
+ path: string[];
4712
+ index: string | number | bigint;
4713
+ leaf: {
4714
+ leaf: {
4715
+ nullifier: string;
4716
+ };
4717
+ nextKey: string;
4718
+ nextIndex: string | number | bigint;
4719
+ } | {
4720
+ leaf: {
4721
+ value: string;
4722
+ slot: string;
4723
+ };
4724
+ nextKey: string;
4725
+ nextIndex: string | number | bigint;
4726
+ };
4727
+ };
4728
+ insertionWitnessData: {
4729
+ path: string[];
4730
+ index: string | number | bigint;
4731
+ leaf: {
4732
+ leaf: {
4733
+ nullifier: string;
4734
+ };
4735
+ nextKey: string;
4736
+ nextIndex: string | number | bigint;
4737
+ } | {
4738
+ leaf: {
4739
+ value: string;
4740
+ slot: string;
4741
+ };
4742
+ nextKey: string;
4743
+ nextIndex: string | number | bigint;
4744
+ };
4745
+ };
4746
+ }[];
4747
+ sequentialInsertHintsNullifierTree: {
4748
+ leaf: {
4749
+ nullifier: string;
4750
+ } | {
4751
+ value: string;
4752
+ slot: string;
4753
+ };
4754
+ hintKey: {
4755
+ root: string;
4756
+ nextAvailableLeafIndex: string | number | bigint;
4757
+ };
4758
+ treeId: number;
4759
+ stateAfter: {
4760
+ root: string;
4761
+ nextAvailableLeafIndex: string | number | bigint;
4762
+ };
4763
+ lowLeavesWitnessData: {
4764
+ path: string[];
4765
+ index: string | number | bigint;
4766
+ leaf: {
4767
+ leaf: {
4768
+ nullifier: string;
4769
+ };
4770
+ nextKey: string;
4771
+ nextIndex: string | number | bigint;
4772
+ } | {
4773
+ leaf: {
4774
+ value: string;
4775
+ slot: string;
4776
+ };
4777
+ nextKey: string;
4778
+ nextIndex: string | number | bigint;
4779
+ };
4780
+ };
4781
+ insertionWitnessData: {
4782
+ path: string[];
4783
+ index: string | number | bigint;
4784
+ leaf: {
4785
+ leaf: {
4786
+ nullifier: string;
4787
+ };
4788
+ nextKey: string;
4789
+ nextIndex: string | number | bigint;
4790
+ } | {
4791
+ leaf: {
4792
+ value: string;
4793
+ slot: string;
4794
+ };
4795
+ nextKey: string;
4796
+ nextIndex: string | number | bigint;
4797
+ };
4798
+ };
4799
+ }[];
1549
4800
  }>;
1550
4801
  publicInputs: z.ZodEffects<z.ZodObject<{
1551
4802
  globalVariables: z.ZodEffects<z.ZodObject<{
@@ -2613,23 +5864,45 @@ export declare class AvmCircuitInputs {
2613
5864
  }[];
2614
5865
  getLeafPreimageHintsPublicDataTree: {
2615
5866
  index: string | number | bigint;
2616
- nextIndex: string | number | bigint;
2617
5867
  hintKey: {
2618
5868
  root: string;
2619
5869
  nextAvailableLeafIndex: string | number | bigint;
2620
5870
  };
2621
- nextValue: string;
2622
- leaf?: any;
5871
+ leafPreimage: {
5872
+ leaf: {
5873
+ nullifier: string;
5874
+ };
5875
+ nextKey: string;
5876
+ nextIndex: string | number | bigint;
5877
+ } | {
5878
+ leaf: {
5879
+ value: string;
5880
+ slot: string;
5881
+ };
5882
+ nextKey: string;
5883
+ nextIndex: string | number | bigint;
5884
+ };
2623
5885
  }[];
2624
5886
  getLeafPreimageHintsNullifierTree: {
2625
5887
  index: string | number | bigint;
2626
- nextIndex: string | number | bigint;
2627
5888
  hintKey: {
2628
5889
  root: string;
2629
5890
  nextAvailableLeafIndex: string | number | bigint;
2630
5891
  };
2631
- nextValue: string;
2632
- leaf?: any;
5892
+ leafPreimage: {
5893
+ leaf: {
5894
+ nullifier: string;
5895
+ };
5896
+ nextKey: string;
5897
+ nextIndex: string | number | bigint;
5898
+ } | {
5899
+ leaf: {
5900
+ value: string;
5901
+ slot: string;
5902
+ };
5903
+ nextKey: string;
5904
+ nextIndex: string | number | bigint;
5905
+ };
2633
5906
  }[];
2634
5907
  getLeafValueHints: {
2635
5908
  value: string;
@@ -2640,6 +5913,112 @@ export declare class AvmCircuitInputs {
2640
5913
  };
2641
5914
  treeId: number;
2642
5915
  }[];
5916
+ sequentialInsertHintsPublicDataTree: {
5917
+ leaf: {
5918
+ nullifier: string;
5919
+ } | {
5920
+ value: string;
5921
+ slot: string;
5922
+ };
5923
+ hintKey: {
5924
+ root: string;
5925
+ nextAvailableLeafIndex: string | number | bigint;
5926
+ };
5927
+ treeId: number;
5928
+ stateAfter: {
5929
+ root: string;
5930
+ nextAvailableLeafIndex: string | number | bigint;
5931
+ };
5932
+ lowLeavesWitnessData: {
5933
+ path: string[];
5934
+ index: string | number | bigint;
5935
+ leaf: {
5936
+ leaf: {
5937
+ nullifier: string;
5938
+ };
5939
+ nextKey: string;
5940
+ nextIndex: string | number | bigint;
5941
+ } | {
5942
+ leaf: {
5943
+ value: string;
5944
+ slot: string;
5945
+ };
5946
+ nextKey: string;
5947
+ nextIndex: string | number | bigint;
5948
+ };
5949
+ };
5950
+ insertionWitnessData: {
5951
+ path: string[];
5952
+ index: string | number | bigint;
5953
+ leaf: {
5954
+ leaf: {
5955
+ nullifier: string;
5956
+ };
5957
+ nextKey: string;
5958
+ nextIndex: string | number | bigint;
5959
+ } | {
5960
+ leaf: {
5961
+ value: string;
5962
+ slot: string;
5963
+ };
5964
+ nextKey: string;
5965
+ nextIndex: string | number | bigint;
5966
+ };
5967
+ };
5968
+ }[];
5969
+ sequentialInsertHintsNullifierTree: {
5970
+ leaf: {
5971
+ nullifier: string;
5972
+ } | {
5973
+ value: string;
5974
+ slot: string;
5975
+ };
5976
+ hintKey: {
5977
+ root: string;
5978
+ nextAvailableLeafIndex: string | number | bigint;
5979
+ };
5980
+ treeId: number;
5981
+ stateAfter: {
5982
+ root: string;
5983
+ nextAvailableLeafIndex: string | number | bigint;
5984
+ };
5985
+ lowLeavesWitnessData: {
5986
+ path: string[];
5987
+ index: string | number | bigint;
5988
+ leaf: {
5989
+ leaf: {
5990
+ nullifier: string;
5991
+ };
5992
+ nextKey: string;
5993
+ nextIndex: string | number | bigint;
5994
+ } | {
5995
+ leaf: {
5996
+ value: string;
5997
+ slot: string;
5998
+ };
5999
+ nextKey: string;
6000
+ nextIndex: string | number | bigint;
6001
+ };
6002
+ };
6003
+ insertionWitnessData: {
6004
+ path: string[];
6005
+ index: string | number | bigint;
6006
+ leaf: {
6007
+ leaf: {
6008
+ nullifier: string;
6009
+ };
6010
+ nextKey: string;
6011
+ nextIndex: string | number | bigint;
6012
+ } | {
6013
+ leaf: {
6014
+ value: string;
6015
+ slot: string;
6016
+ };
6017
+ nextKey: string;
6018
+ nextIndex: string | number | bigint;
6019
+ };
6020
+ };
6021
+ }[];
2643
6022
  };
2644
6023
  publicInputs: {
2645
6024
  globalVariables: {
@@ -2848,23 +6227,45 @@ export declare class AvmCircuitInputs {
2848
6227
  }[];
2849
6228
  getLeafPreimageHintsPublicDataTree: {
2850
6229
  index: string | number | bigint;
2851
- nextIndex: string | number | bigint;
2852
6230
  hintKey: {
2853
6231
  root: string;
2854
6232
  nextAvailableLeafIndex: string | number | bigint;
2855
6233
  };
2856
- nextValue: string;
2857
- leaf?: any;
6234
+ leafPreimage: {
6235
+ leaf: {
6236
+ nullifier: string;
6237
+ };
6238
+ nextKey: string;
6239
+ nextIndex: string | number | bigint;
6240
+ } | {
6241
+ leaf: {
6242
+ value: string;
6243
+ slot: string;
6244
+ };
6245
+ nextKey: string;
6246
+ nextIndex: string | number | bigint;
6247
+ };
2858
6248
  }[];
2859
6249
  getLeafPreimageHintsNullifierTree: {
2860
6250
  index: string | number | bigint;
2861
- nextIndex: string | number | bigint;
2862
6251
  hintKey: {
2863
6252
  root: string;
2864
6253
  nextAvailableLeafIndex: string | number | bigint;
2865
6254
  };
2866
- nextValue: string;
2867
- leaf?: any;
6255
+ leafPreimage: {
6256
+ leaf: {
6257
+ nullifier: string;
6258
+ };
6259
+ nextKey: string;
6260
+ nextIndex: string | number | bigint;
6261
+ } | {
6262
+ leaf: {
6263
+ value: string;
6264
+ slot: string;
6265
+ };
6266
+ nextKey: string;
6267
+ nextIndex: string | number | bigint;
6268
+ };
2868
6269
  }[];
2869
6270
  getLeafValueHints: {
2870
6271
  value: string;
@@ -2875,6 +6276,112 @@ export declare class AvmCircuitInputs {
2875
6276
  };
2876
6277
  treeId: number;
2877
6278
  }[];
6279
+ sequentialInsertHintsPublicDataTree: {
6280
+ leaf: {
6281
+ nullifier: string;
6282
+ } | {
6283
+ value: string;
6284
+ slot: string;
6285
+ };
6286
+ hintKey: {
6287
+ root: string;
6288
+ nextAvailableLeafIndex: string | number | bigint;
6289
+ };
6290
+ treeId: number;
6291
+ stateAfter: {
6292
+ root: string;
6293
+ nextAvailableLeafIndex: string | number | bigint;
6294
+ };
6295
+ lowLeavesWitnessData: {
6296
+ path: string[];
6297
+ index: string | number | bigint;
6298
+ leaf: {
6299
+ leaf: {
6300
+ nullifier: string;
6301
+ };
6302
+ nextKey: string;
6303
+ nextIndex: string | number | bigint;
6304
+ } | {
6305
+ leaf: {
6306
+ value: string;
6307
+ slot: string;
6308
+ };
6309
+ nextKey: string;
6310
+ nextIndex: string | number | bigint;
6311
+ };
6312
+ };
6313
+ insertionWitnessData: {
6314
+ path: string[];
6315
+ index: string | number | bigint;
6316
+ leaf: {
6317
+ leaf: {
6318
+ nullifier: string;
6319
+ };
6320
+ nextKey: string;
6321
+ nextIndex: string | number | bigint;
6322
+ } | {
6323
+ leaf: {
6324
+ value: string;
6325
+ slot: string;
6326
+ };
6327
+ nextKey: string;
6328
+ nextIndex: string | number | bigint;
6329
+ };
6330
+ };
6331
+ }[];
6332
+ sequentialInsertHintsNullifierTree: {
6333
+ leaf: {
6334
+ nullifier: string;
6335
+ } | {
6336
+ value: string;
6337
+ slot: string;
6338
+ };
6339
+ hintKey: {
6340
+ root: string;
6341
+ nextAvailableLeafIndex: string | number | bigint;
6342
+ };
6343
+ treeId: number;
6344
+ stateAfter: {
6345
+ root: string;
6346
+ nextAvailableLeafIndex: string | number | bigint;
6347
+ };
6348
+ lowLeavesWitnessData: {
6349
+ path: string[];
6350
+ index: string | number | bigint;
6351
+ leaf: {
6352
+ leaf: {
6353
+ nullifier: string;
6354
+ };
6355
+ nextKey: string;
6356
+ nextIndex: string | number | bigint;
6357
+ } | {
6358
+ leaf: {
6359
+ value: string;
6360
+ slot: string;
6361
+ };
6362
+ nextKey: string;
6363
+ nextIndex: string | number | bigint;
6364
+ };
6365
+ };
6366
+ insertionWitnessData: {
6367
+ path: string[];
6368
+ index: string | number | bigint;
6369
+ leaf: {
6370
+ leaf: {
6371
+ nullifier: string;
6372
+ };
6373
+ nextKey: string;
6374
+ nextIndex: string | number | bigint;
6375
+ } | {
6376
+ leaf: {
6377
+ value: string;
6378
+ slot: string;
6379
+ };
6380
+ nextKey: string;
6381
+ nextIndex: string | number | bigint;
6382
+ };
6383
+ };
6384
+ }[];
2878
6385
  };
2879
6386
  publicInputs: {
2880
6387
  globalVariables: {