@aztec/stdlib 3.0.0-nightly.20251111 → 3.0.0-nightly.20251113

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 (176) hide show
  1. package/dest/abi/abi.d.ts +8 -8
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/abi.js +2 -2
  4. package/dest/abi/contract_artifact.js +3 -3
  5. package/dest/avm/avm.d.ts +780 -1010
  6. package/dest/avm/avm.d.ts.map +1 -1
  7. package/dest/avm/avm.js +209 -15
  8. package/dest/avm/avm_accumulated_data.d.ts +22 -6
  9. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  10. package/dest/avm/avm_accumulated_data.js +18 -0
  11. package/dest/avm/avm_circuit_public_inputs.d.ts +35 -27
  12. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  13. package/dest/avm/avm_circuit_public_inputs.js +9 -0
  14. package/dest/avm/avm_proving_request.d.ts +308 -464
  15. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  16. package/dest/avm/public_data_write.d.ts +10 -2
  17. package/dest/avm/public_data_write.d.ts.map +1 -1
  18. package/dest/avm/public_data_write.js +9 -0
  19. package/dest/avm/revert_code.d.ts +8 -0
  20. package/dest/avm/revert_code.d.ts.map +1 -1
  21. package/dest/avm/revert_code.js +16 -0
  22. package/dest/aztec-address/index.d.ts +9 -0
  23. package/dest/aztec-address/index.d.ts.map +1 -1
  24. package/dest/aztec-address/index.js +16 -0
  25. package/dest/block/l2_block.d.ts +1 -1
  26. package/dest/block/l2_block_info.d.ts +3 -3
  27. package/dest/block/proposal/attestations_and_signers.d.ts +1 -1
  28. package/dest/block/proposal/committee_attestation.d.ts +1 -1
  29. package/dest/block/published_l2_block.d.ts +2 -2
  30. package/dest/block/validate_block_result.d.ts +12 -12
  31. package/dest/contract/contract_deployment_data.d.ts +10 -2
  32. package/dest/contract/contract_deployment_data.d.ts.map +1 -1
  33. package/dest/contract/contract_deployment_data.js +12 -0
  34. package/dest/contract/interfaces/contract_class.d.ts +19 -19
  35. package/dest/contract/interfaces/contract_instance.d.ts +32 -200
  36. package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
  37. package/dest/database-version/version_manager.d.ts +1 -1
  38. package/dest/file-store/http.d.ts.map +1 -1
  39. package/dest/file-store/http.js +8 -3
  40. package/dest/file-store/s3.d.ts.map +1 -1
  41. package/dest/file-store/s3.js +3 -7
  42. package/dest/gas/gas.d.ts +8 -0
  43. package/dest/gas/gas.d.ts.map +1 -1
  44. package/dest/gas/gas.js +12 -0
  45. package/dest/gas/gas_fees.d.ts +8 -0
  46. package/dest/gas/gas_fees.d.ts.map +1 -1
  47. package/dest/gas/gas_fees.js +12 -0
  48. package/dest/gas/gas_settings.d.ts +8 -0
  49. package/dest/gas/gas_settings.d.ts.map +1 -1
  50. package/dest/gas/gas_settings.js +12 -0
  51. package/dest/gas/gas_used.d.ts +12 -1
  52. package/dest/gas/gas_used.d.ts.map +1 -1
  53. package/dest/gas/gas_used.js +19 -1
  54. package/dest/interfaces/aztec-node-admin.d.ts +8 -5
  55. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  56. package/dest/interfaces/configs.d.ts +5 -0
  57. package/dest/interfaces/configs.d.ts.map +1 -1
  58. package/dest/interfaces/configs.js +1 -0
  59. package/dest/interfaces/proving-job.d.ts +336 -492
  60. package/dest/interfaces/proving-job.d.ts.map +1 -1
  61. package/dest/interfaces/slasher.d.ts +3 -3
  62. package/dest/interfaces/validator.d.ts +12 -4
  63. package/dest/interfaces/validator.d.ts.map +1 -1
  64. package/dest/interfaces/validator.js +2 -1
  65. package/dest/kernel/private_to_avm_accumulated_data.d.ts +20 -4
  66. package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
  67. package/dest/kernel/private_to_avm_accumulated_data.js +18 -0
  68. package/dest/kernel/public_call_request.d.ts +17 -1
  69. package/dest/kernel/public_call_request.d.ts.map +1 -1
  70. package/dest/kernel/public_call_request.js +18 -0
  71. package/dest/keys/public_keys.d.ts +20 -84
  72. package/dest/keys/public_keys.d.ts.map +1 -1
  73. package/dest/keys/public_keys.js +12 -0
  74. package/dest/logs/contract_class_log.d.ts +18 -2
  75. package/dest/logs/contract_class_log.d.ts.map +1 -1
  76. package/dest/logs/contract_class_log.js +24 -0
  77. package/dest/logs/debug_log.d.ts +9 -1
  78. package/dest/logs/debug_log.d.ts.map +1 -1
  79. package/dest/logs/debug_log.js +13 -0
  80. package/dest/logs/directional_app_tagging_secret.d.ts +1 -1
  81. package/dest/logs/pre_tag.d.ts +1 -1
  82. package/dest/logs/private_log.d.ts +9 -1
  83. package/dest/logs/private_log.d.ts.map +1 -1
  84. package/dest/logs/private_log.js +12 -0
  85. package/dest/logs/public_log.d.ts +8 -0
  86. package/dest/logs/public_log.d.ts.map +1 -1
  87. package/dest/logs/public_log.js +9 -0
  88. package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
  89. package/dest/messaging/l2_to_l1_message.d.ts +24 -8
  90. package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
  91. package/dest/messaging/l2_to_l1_message.js +18 -0
  92. package/dest/noir/index.d.ts +1 -1
  93. package/dest/noir/index.d.ts.map +1 -1
  94. package/dest/noir/index.js +1 -2
  95. package/dest/p2p/consensus_payload.d.ts +5 -5
  96. package/dest/snapshots/types.d.ts +2 -2
  97. package/dest/tests/factories.d.ts +4 -1
  98. package/dest/tests/factories.d.ts.map +1 -1
  99. package/dest/tests/factories.js +14 -2
  100. package/dest/trees/append_only_tree_snapshot.d.ts +9 -1
  101. package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
  102. package/dest/trees/append_only_tree_snapshot.js +9 -0
  103. package/dest/trees/nullifier_leaf.d.ts +20 -4
  104. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  105. package/dest/trees/nullifier_leaf.js +24 -0
  106. package/dest/trees/nullifier_membership_witness.d.ts +2 -2
  107. package/dest/trees/public_data_leaf.d.ts +23 -7
  108. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  109. package/dest/trees/public_data_leaf.js +24 -0
  110. package/dest/trees/public_data_witness.d.ts +3 -3
  111. package/dest/tx/content_commitment.d.ts +3 -3
  112. package/dest/tx/execution_payload.d.ts +45 -0
  113. package/dest/tx/execution_payload.d.ts.map +1 -0
  114. package/dest/tx/execution_payload.js +40 -0
  115. package/dest/tx/global_variables.d.ts +8 -0
  116. package/dest/tx/global_variables.d.ts.map +1 -1
  117. package/dest/tx/global_variables.js +9 -0
  118. package/dest/tx/index.d.ts +1 -0
  119. package/dest/tx/index.d.ts.map +1 -1
  120. package/dest/tx/index.js +1 -0
  121. package/dest/tx/partial_state_reference.d.ts +3 -3
  122. package/dest/tx/profiling.d.ts +3 -3
  123. package/dest/tx/profiling.d.ts.map +1 -1
  124. package/dest/tx/profiling.js +5 -4
  125. package/dest/tx/protocol_contracts.d.ts +8 -0
  126. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  127. package/dest/tx/protocol_contracts.js +9 -0
  128. package/dest/tx/public_call_request_with_calldata.d.ts +8 -0
  129. package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
  130. package/dest/tx/public_call_request_with_calldata.js +12 -0
  131. package/dest/tx/simulated_tx.d.ts +28 -148
  132. package/dest/tx/simulated_tx.d.ts.map +1 -1
  133. package/dest/tx/state_reference.d.ts +4 -4
  134. package/dest/tx/tree_snapshots.d.ts +12 -4
  135. package/dest/tx/tree_snapshots.d.ts.map +1 -1
  136. package/dest/tx/tree_snapshots.js +9 -0
  137. package/dest/tx/tx_context.d.ts +2 -2
  138. package/dest/validators/schemas.d.ts +3 -3
  139. package/package.json +8 -8
  140. package/src/abi/abi.ts +4 -4
  141. package/src/abi/contract_artifact.ts +3 -3
  142. package/src/avm/avm.ts +362 -15
  143. package/src/avm/avm_accumulated_data.ts +40 -0
  144. package/src/avm/avm_circuit_public_inputs.ts +40 -0
  145. package/src/avm/public_data_write.ts +11 -0
  146. package/src/avm/revert_code.ts +18 -0
  147. package/src/aztec-address/index.ts +18 -0
  148. package/src/contract/contract_deployment_data.ts +17 -0
  149. package/src/file-store/http.ts +6 -3
  150. package/src/file-store/s3.ts +3 -7
  151. package/src/gas/gas.ts +14 -0
  152. package/src/gas/gas_fees.ts +14 -0
  153. package/src/gas/gas_settings.ts +19 -0
  154. package/src/gas/gas_used.ts +22 -1
  155. package/src/interfaces/configs.ts +3 -0
  156. package/src/interfaces/validator.ts +4 -0
  157. package/src/kernel/private_to_avm_accumulated_data.ts +35 -0
  158. package/src/kernel/public_call_request.ts +27 -0
  159. package/src/keys/public_keys.ts +19 -0
  160. package/src/logs/contract_class_log.ts +32 -0
  161. package/src/logs/debug_log.ts +20 -1
  162. package/src/logs/private_log.ts +17 -0
  163. package/src/logs/public_log.ts +14 -0
  164. package/src/messaging/l2_to_l1_message.ts +25 -0
  165. package/src/noir/index.ts +1 -2
  166. package/src/tests/factories.ts +45 -0
  167. package/src/trees/append_only_tree_snapshot.ts +11 -0
  168. package/src/trees/nullifier_leaf.ts +32 -0
  169. package/src/trees/public_data_leaf.ts +32 -0
  170. package/src/tx/execution_payload.ts +60 -0
  171. package/src/tx/global_variables.ts +20 -0
  172. package/src/tx/index.ts +1 -0
  173. package/src/tx/profiling.ts +4 -6
  174. package/src/tx/protocol_contracts.ts +16 -0
  175. package/src/tx/public_call_request_with_calldata.ts +17 -0
  176. package/src/tx/tree_snapshots.ts +16 -0
@@ -102,7 +102,7 @@ export declare class AvmCircuitPublicInputs {
102
102
  }>;
103
103
  startTreeSnapshots: z.ZodEffects<z.ZodObject<{
104
104
  l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
105
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
105
+ root: z.ZodType<Fr, any, string>;
106
106
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  root: Fr;
@@ -115,7 +115,7 @@ export declare class AvmCircuitPublicInputs {
115
115
  nextAvailableLeafIndex: string | number | bigint;
116
116
  }>;
117
117
  noteHashTree: z.ZodEffects<z.ZodObject<{
118
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
118
+ root: z.ZodType<Fr, any, string>;
119
119
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  root: Fr;
@@ -128,7 +128,7 @@ export declare class AvmCircuitPublicInputs {
128
128
  nextAvailableLeafIndex: string | number | bigint;
129
129
  }>;
130
130
  nullifierTree: z.ZodEffects<z.ZodObject<{
131
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
131
+ root: z.ZodType<Fr, any, string>;
132
132
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
133
133
  }, "strip", z.ZodTypeAny, {
134
134
  root: Fr;
@@ -141,7 +141,7 @@ export declare class AvmCircuitPublicInputs {
141
141
  nextAvailableLeafIndex: string | number | bigint;
142
142
  }>;
143
143
  publicDataTree: z.ZodEffects<z.ZodObject<{
144
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
144
+ root: z.ZodType<Fr, any, string>;
145
145
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
146
146
  }, "strip", z.ZodTypeAny, {
147
147
  root: Fr;
@@ -313,7 +313,7 @@ export declare class AvmCircuitPublicInputs {
313
313
  feePerL2Gas: string | number | bigint;
314
314
  }>;
315
315
  feePayer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
316
- proverId: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
316
+ proverId: z.ZodType<Fr, any, string>;
317
317
  publicCallRequestArrayLengths: z.ZodEffects<z.ZodObject<{
318
318
  setupCalls: z.ZodNumber;
319
319
  appLogicCalls: z.ZodNumber;
@@ -335,7 +335,7 @@ export declare class AvmCircuitPublicInputs {
335
335
  msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
336
336
  contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
337
337
  isStaticCall: z.ZodBoolean;
338
- calldataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
338
+ calldataHash: z.ZodType<Fr, any, string>;
339
339
  }, "strip", z.ZodTypeAny, {
340
340
  contractAddress: AztecAddress;
341
341
  msgSender: AztecAddress;
@@ -356,7 +356,7 @@ export declare class AvmCircuitPublicInputs {
356
356
  msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
357
357
  contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
358
358
  isStaticCall: z.ZodBoolean;
359
- calldataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
359
+ calldataHash: z.ZodType<Fr, any, string>;
360
360
  }, "strip", z.ZodTypeAny, {
361
361
  contractAddress: AztecAddress;
362
362
  msgSender: AztecAddress;
@@ -377,7 +377,7 @@ export declare class AvmCircuitPublicInputs {
377
377
  msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
378
378
  contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
379
379
  isStaticCall: z.ZodBoolean;
380
- calldataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
380
+ calldataHash: z.ZodType<Fr, any, string>;
381
381
  }, "strip", z.ZodTypeAny, {
382
382
  contractAddress: AztecAddress;
383
383
  msgSender: AztecAddress;
@@ -429,12 +429,12 @@ export declare class AvmCircuitPublicInputs {
429
429
  l2ToL1Msgs: string | number | bigint;
430
430
  }>;
431
431
  previousNonRevertibleAccumulatedData: z.ZodEffects<z.ZodObject<{
432
- noteHashes: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
433
- nullifiers: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
432
+ noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
433
+ nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
434
434
  l2ToL1Msgs: z.ZodArray<z.ZodEffects<z.ZodObject<{
435
435
  message: z.ZodEffects<z.ZodObject<{
436
- recipient: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>;
437
- content: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
436
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
437
+ content: z.ZodType<Fr, any, string>;
438
438
  }, "strip", z.ZodTypeAny, {
439
439
  content: Fr;
440
440
  recipient: import("@aztec/foundation/schemas").EthAddress;
@@ -488,12 +488,12 @@ export declare class AvmCircuitPublicInputs {
488
488
  }[];
489
489
  }>;
490
490
  previousRevertibleAccumulatedData: z.ZodEffects<z.ZodObject<{
491
- noteHashes: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
492
- nullifiers: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
491
+ noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
492
+ nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
493
493
  l2ToL1Msgs: z.ZodArray<z.ZodEffects<z.ZodObject<{
494
494
  message: z.ZodEffects<z.ZodObject<{
495
- recipient: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>;
496
- content: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
495
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
496
+ content: z.ZodType<Fr, any, string>;
497
497
  }, "strip", z.ZodTypeAny, {
498
498
  content: Fr;
499
499
  recipient: import("@aztec/foundation/schemas").EthAddress;
@@ -548,7 +548,7 @@ export declare class AvmCircuitPublicInputs {
548
548
  }>;
549
549
  endTreeSnapshots: z.ZodEffects<z.ZodObject<{
550
550
  l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
551
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
551
+ root: z.ZodType<Fr, any, string>;
552
552
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
553
553
  }, "strip", z.ZodTypeAny, {
554
554
  root: Fr;
@@ -561,7 +561,7 @@ export declare class AvmCircuitPublicInputs {
561
561
  nextAvailableLeafIndex: string | number | bigint;
562
562
  }>;
563
563
  noteHashTree: z.ZodEffects<z.ZodObject<{
564
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
564
+ root: z.ZodType<Fr, any, string>;
565
565
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
566
566
  }, "strip", z.ZodTypeAny, {
567
567
  root: Fr;
@@ -574,7 +574,7 @@ export declare class AvmCircuitPublicInputs {
574
574
  nextAvailableLeafIndex: string | number | bigint;
575
575
  }>;
576
576
  nullifierTree: z.ZodEffects<z.ZodObject<{
577
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
577
+ root: z.ZodType<Fr, any, string>;
578
578
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
579
579
  }, "strip", z.ZodTypeAny, {
580
580
  root: Fr;
@@ -587,7 +587,7 @@ export declare class AvmCircuitPublicInputs {
587
587
  nextAvailableLeafIndex: string | number | bigint;
588
588
  }>;
589
589
  publicDataTree: z.ZodEffects<z.ZodObject<{
590
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
590
+ root: z.ZodType<Fr, any, string>;
591
591
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
592
592
  }, "strip", z.ZodTypeAny, {
593
593
  root: Fr;
@@ -674,12 +674,12 @@ export declare class AvmCircuitPublicInputs {
674
674
  publicDataWrites: number;
675
675
  }>;
676
676
  accumulatedData: z.ZodEffects<z.ZodObject<{
677
- noteHashes: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
678
- nullifiers: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
677
+ noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
678
+ nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
679
679
  l2ToL1Msgs: z.ZodArray<z.ZodEffects<z.ZodObject<{
680
680
  message: z.ZodEffects<z.ZodObject<{
681
- recipient: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>;
682
- content: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
681
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
682
+ content: z.ZodType<Fr, any, string>;
683
683
  }, "strip", z.ZodTypeAny, {
684
684
  content: Fr;
685
685
  recipient: import("@aztec/foundation/schemas").EthAddress;
@@ -709,8 +709,8 @@ export declare class AvmCircuitPublicInputs {
709
709
  }>, "many">;
710
710
  publicLogs: import("@aztec/foundation/schemas").ZodFor<import("../logs/public_log.js").FlatPublicLogs>;
711
711
  publicDataWrites: z.ZodArray<z.ZodEffects<z.ZodObject<{
712
- leafSlot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
713
- value: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
712
+ leafSlot: z.ZodType<Fr, any, string>;
713
+ value: z.ZodType<Fr, any, string>;
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  value: Fr;
716
716
  leafSlot: Fr;
@@ -758,7 +758,7 @@ export declare class AvmCircuitPublicInputs {
758
758
  }[];
759
759
  publicLogs?: any;
760
760
  }>;
761
- transactionFee: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
761
+ transactionFee: z.ZodType<Fr, any, string>;
762
762
  reverted: z.ZodBoolean;
763
763
  }, "strip", z.ZodTypeAny, {
764
764
  globalVariables: GlobalVariables;
@@ -1119,6 +1119,14 @@ export declare class AvmCircuitPublicInputs {
1119
1119
  static fromFields(fields: Fr[] | FieldReader): AvmCircuitPublicInputs;
1120
1120
  toFields(): (number | boolean | AztecAddress | Fr | Fr[])[];
1121
1121
  static empty(): AvmCircuitPublicInputs;
1122
+ /**
1123
+ * Creates an AvmCircuitPublicInputs instance from a plain object without Zod validation.
1124
+ * This method is optimized for performance and skips validation, making it suitable
1125
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
1126
+ * @param obj - Plain object containing AvmCircuitPublicInputs fields
1127
+ * @returns An AvmCircuitPublicInputs instance
1128
+ */
1129
+ static fromPlainObject(obj: any): AvmCircuitPublicInputs;
1122
1130
  serializeWithMessagePack(): Buffer;
1123
1131
  [inspect.custom](): string;
1124
1132
  }
@@ -1 +1 @@
1
- {"version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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4EhB;IAED,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IA4B/C,QAAQ;IA2BR,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;IAI7B,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IA4B5C,QAAQ;IA2BR,MAAM,CAAC,KAAK;IA2BZ;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,sBAAsB;IAiCjD,wBAAwB,IAAI,MAAM;IAIzC,CAAC,OAAO,CAAC,MAAM,CAAC;CAkCjB"}
@@ -140,6 +140,15 @@ export class AvmCircuitPublicInputs {
140
140
  static empty() {
141
141
  return new AvmCircuitPublicInputs(GlobalVariables.empty(), ProtocolContracts.empty(), TreeSnapshots.empty(), Gas.empty(), GasSettings.empty(), GasFees.empty(), AztecAddress.zero(), Fr.zero(), PublicCallRequestArrayLengths.empty(), makeTuple(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest.empty), makeTuple(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest.empty), PublicCallRequest.empty(), PrivateToAvmAccumulatedDataArrayLengths.empty(), PrivateToAvmAccumulatedDataArrayLengths.empty(), PrivateToAvmAccumulatedData.empty(), PrivateToAvmAccumulatedData.empty(), TreeSnapshots.empty(), Gas.empty(), AvmAccumulatedDataArrayLengths.empty(), AvmAccumulatedData.empty(), Fr.zero(), false);
142
142
  }
143
+ /**
144
+ * Creates an AvmCircuitPublicInputs instance from a plain object without Zod validation.
145
+ * This method is optimized for performance and skips validation, making it suitable
146
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
147
+ * @param obj - Plain object containing AvmCircuitPublicInputs fields
148
+ * @returns An AvmCircuitPublicInputs instance
149
+ */ static fromPlainObject(obj) {
150
+ return new AvmCircuitPublicInputs(GlobalVariables.fromPlainObject(obj.globalVariables), ProtocolContracts.fromPlainObject(obj.protocolContracts), TreeSnapshots.fromPlainObject(obj.startTreeSnapshots), Gas.fromPlainObject(obj.startGasUsed), GasSettings.fromPlainObject(obj.gasSettings), GasFees.fromPlainObject(obj.effectiveGasFees), AztecAddress.fromPlainObject(obj.feePayer), Fr.fromPlainObject(obj.proverId), PublicCallRequestArrayLengths.fromPlainObject(obj.publicCallRequestArrayLengths), assertLength(obj.publicSetupCallRequests.map((r)=>PublicCallRequest.fromPlainObject(r)), MAX_ENQUEUED_CALLS_PER_TX), assertLength(obj.publicAppLogicCallRequests.map((r)=>PublicCallRequest.fromPlainObject(r)), MAX_ENQUEUED_CALLS_PER_TX), PublicCallRequest.fromPlainObject(obj.publicTeardownCallRequest), PrivateToAvmAccumulatedDataArrayLengths.fromPlainObject(obj.previousNonRevertibleAccumulatedDataArrayLengths), PrivateToAvmAccumulatedDataArrayLengths.fromPlainObject(obj.previousRevertibleAccumulatedDataArrayLengths), PrivateToAvmAccumulatedData.fromPlainObject(obj.previousNonRevertibleAccumulatedData), PrivateToAvmAccumulatedData.fromPlainObject(obj.previousRevertibleAccumulatedData), TreeSnapshots.fromPlainObject(obj.endTreeSnapshots), Gas.fromPlainObject(obj.endGasUsed), AvmAccumulatedDataArrayLengths.fromPlainObject(obj.accumulatedDataArrayLengths), AvmAccumulatedData.fromPlainObject(obj.accumulatedData), Fr.fromPlainObject(obj.transactionFee), obj.reverted);
151
+ }
143
152
  serializeWithMessagePack() {
144
153
  return serializeWithMessagePack(this);
145
154
  }