@aztec/stdlib 0.87.7 → 1.0.0-nightly.20250604

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 (220) hide show
  1. package/dest/abi/abi.d.ts +3 -0
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/abi.js +38 -0
  4. package/dest/avm/avm.d.ts +1188 -25
  5. package/dest/avm/avm.d.ts.map +1 -1
  6. package/dest/avm/avm.js +31 -14
  7. package/dest/avm/avm_accumulated_data.d.ts +77 -0
  8. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  9. package/dest/avm/avm_accumulated_data.js +67 -0
  10. package/dest/avm/avm_circuit_public_inputs.d.ts +73 -3
  11. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  12. package/dest/avm/avm_circuit_public_inputs.js +19 -9
  13. package/dest/avm/avm_proving_request.d.ts +572 -0
  14. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  15. package/dest/avm/gas.d.ts +7 -0
  16. package/dest/avm/gas.d.ts.map +1 -0
  17. package/dest/avm/gas.js +13 -0
  18. package/dest/avm/index.d.ts +1 -0
  19. package/dest/avm/index.d.ts.map +1 -1
  20. package/dest/avm/index.js +1 -0
  21. package/dest/block/body.d.ts +1 -1
  22. package/dest/block/body.d.ts.map +1 -1
  23. package/dest/block/body.js +2 -2
  24. package/dest/block/index.d.ts +1 -0
  25. package/dest/block/index.d.ts.map +1 -1
  26. package/dest/block/index.js +1 -0
  27. package/dest/block/l2_block.d.ts +3 -2
  28. package/dest/block/l2_block.d.ts.map +1 -1
  29. package/dest/block/l2_block.js +10 -5
  30. package/dest/block/l2_block_source.d.ts +9 -4
  31. package/dest/block/l2_block_source.d.ts.map +1 -1
  32. package/dest/block/l2_block_source.js +1 -0
  33. package/dest/block/proposal/committee_attestation.d.ts +34 -0
  34. package/dest/block/proposal/committee_attestation.d.ts.map +1 -0
  35. package/dest/block/proposal/committee_attestation.js +59 -0
  36. package/dest/block/proposal/index.d.ts +2 -0
  37. package/dest/block/proposal/index.d.ts.map +1 -0
  38. package/dest/block/proposal/index.js +1 -0
  39. package/dest/block/published_l2_block.d.ts +99 -69
  40. package/dest/block/published_l2_block.d.ts.map +1 -1
  41. package/dest/block/published_l2_block.js +38 -12
  42. package/dest/block/test/l2_tips_store_test_suite.js +1 -1
  43. package/dest/interfaces/archiver.js +2 -2
  44. package/dest/interfaces/aztec-node.d.ts +3 -8
  45. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  46. package/dest/interfaces/aztec-node.js +3 -6
  47. package/dest/interfaces/block-builder.d.ts +41 -2
  48. package/dest/interfaces/block-builder.d.ts.map +1 -1
  49. package/dest/interfaces/block-builder.js +1 -1
  50. package/dest/interfaces/epoch-prover.d.ts +2 -2
  51. package/dest/interfaces/epoch-prover.d.ts.map +1 -1
  52. package/dest/interfaces/merkle_tree_operations.d.ts +14 -0
  53. package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
  54. package/dest/interfaces/p2p.d.ts +6 -3
  55. package/dest/interfaces/p2p.d.ts.map +1 -1
  56. package/dest/interfaces/p2p.js +1 -2
  57. package/dest/interfaces/proving-job.d.ts +576 -4
  58. package/dest/interfaces/proving-job.d.ts.map +1 -1
  59. package/dest/interfaces/proving-job.js +2 -2
  60. package/dest/interfaces/server_circuit_prover.d.ts +3 -2
  61. package/dest/interfaces/server_circuit_prover.d.ts.map +1 -1
  62. package/dest/kernel/hints/find_private_kernel_reset_dimensions.js +1 -1
  63. package/dest/kernel/hints/key_validation_hint.d.ts +2 -6
  64. package/dest/kernel/hints/key_validation_hint.d.ts.map +1 -1
  65. package/dest/kernel/hints/key_validation_hint.js +5 -7
  66. package/dest/kernel/hints/private_kernel_reset_hints.d.ts +7 -7
  67. package/dest/kernel/hints/private_kernel_reset_hints.d.ts.map +1 -1
  68. package/dest/kernel/hints/private_kernel_reset_hints.js +8 -4
  69. package/dest/kernel/hints/read_request_hints.d.ts +8 -8
  70. package/dest/kernel/hints/read_request_hints.d.ts.map +1 -1
  71. package/dest/kernel/index.d.ts +1 -0
  72. package/dest/kernel/index.d.ts.map +1 -1
  73. package/dest/kernel/index.js +1 -0
  74. package/dest/kernel/padded_side_effects.d.ts +26 -0
  75. package/dest/kernel/padded_side_effects.d.ts.map +1 -0
  76. package/dest/kernel/padded_side_effects.js +51 -0
  77. package/dest/kernel/private_kernel_data.d.ts +6 -25
  78. package/dest/kernel/private_kernel_data.d.ts.map +1 -1
  79. package/dest/kernel/private_kernel_data.js +8 -19
  80. package/dest/kernel/private_kernel_reset_circuit_private_inputs.d.ts +7 -4
  81. package/dest/kernel/private_kernel_reset_circuit_private_inputs.d.ts.map +1 -1
  82. package/dest/kernel/private_kernel_reset_circuit_private_inputs.js +10 -6
  83. package/dest/kernel/private_kernel_reset_dimensions.d.ts +10 -10
  84. package/dest/kernel/private_kernel_reset_dimensions.d.ts.map +1 -1
  85. package/dest/kernel/private_kernel_reset_dimensions.js +29 -29
  86. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts +10 -1
  87. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts.map +1 -1
  88. package/dest/kernel/private_kernel_tail_circuit_private_inputs.js +8 -3
  89. package/dest/kernel/private_to_avm_accumulated_data.d.ts +1 -0
  90. package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
  91. package/dest/kernel/private_to_avm_accumulated_data.js +4 -0
  92. package/dest/kernel/public_call_request.d.ts +54 -0
  93. package/dest/kernel/public_call_request.d.ts.map +1 -1
  94. package/dest/kernel/public_call_request.js +58 -0
  95. package/dest/logs/contract_class_log.d.ts +0 -4
  96. package/dest/logs/contract_class_log.d.ts.map +1 -1
  97. package/dest/logs/contract_class_log.js +0 -33
  98. package/dest/logs/log_with_tx_data.d.ts +13 -3
  99. package/dest/logs/log_with_tx_data.d.ts.map +1 -1
  100. package/dest/logs/log_with_tx_data.js +26 -14
  101. package/dest/logs/private_log.d.ts +1 -0
  102. package/dest/logs/private_log.d.ts.map +1 -1
  103. package/dest/logs/private_log.js +3 -0
  104. package/dest/logs/public_log.d.ts +1 -0
  105. package/dest/logs/public_log.d.ts.map +1 -1
  106. package/dest/logs/public_log.js +3 -0
  107. package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
  108. package/dest/logs/tx_scoped_l2_log.js +1 -0
  109. package/dest/messaging/index.d.ts +1 -0
  110. package/dest/messaging/index.d.ts.map +1 -1
  111. package/dest/messaging/index.js +1 -0
  112. package/dest/messaging/l2_to_l1_membership.d.ts +11 -0
  113. package/dest/messaging/l2_to_l1_membership.d.ts.map +1 -0
  114. package/dest/messaging/l2_to_l1_membership.js +70 -0
  115. package/dest/p2p/consensus_payload.d.ts.map +1 -1
  116. package/dest/rollup/avm_proof_data.d.ts +7 -5
  117. package/dest/rollup/avm_proof_data.d.ts.map +1 -1
  118. package/dest/rollup/avm_proof_data.js +12 -4
  119. package/dest/rollup/base_rollup_hints.d.ts +4 -4
  120. package/dest/rollup/base_rollup_hints.d.ts.map +1 -1
  121. package/dest/rollup/base_rollup_hints.js +8 -8
  122. package/dest/rollup/previous_rollup_block_data.d.ts +6 -15
  123. package/dest/rollup/previous_rollup_block_data.d.ts.map +1 -1
  124. package/dest/rollup/previous_rollup_block_data.js +8 -13
  125. package/dest/rollup/previous_rollup_data.d.ts +6 -15
  126. package/dest/rollup/previous_rollup_data.d.ts.map +1 -1
  127. package/dest/rollup/previous_rollup_data.js +8 -13
  128. package/dest/rollup/private_tube_data.d.ts +3 -3
  129. package/dest/rollup/private_tube_data.d.ts.map +1 -1
  130. package/dest/rollup/private_tube_data.js +3 -3
  131. package/dest/rollup/public_tube_data.d.ts +3 -3
  132. package/dest/rollup/public_tube_data.d.ts.map +1 -1
  133. package/dest/rollup/public_tube_data.js +3 -3
  134. package/dest/rollup/root_rollup.d.ts +9 -10
  135. package/dest/rollup/root_rollup.d.ts.map +1 -1
  136. package/dest/rollup/root_rollup.js +9 -20
  137. package/dest/tests/factories.d.ts +2 -1
  138. package/dest/tests/factories.d.ts.map +1 -1
  139. package/dest/tests/factories.js +53 -28
  140. package/dest/tests/mocks.d.ts.map +1 -1
  141. package/dest/tests/mocks.js +4 -3
  142. package/dest/tx/processed_tx.d.ts.map +1 -1
  143. package/dest/tx/processed_tx.js +2 -5
  144. package/dest/tx/tx.d.ts +10 -25
  145. package/dest/tx/tx.d.ts.map +1 -1
  146. package/dest/tx/tx.js +25 -50
  147. package/dest/tx/tx_effect.d.ts +1 -1
  148. package/dest/tx/tx_effect.d.ts.map +1 -1
  149. package/dest/tx/tx_effect.js +2 -2
  150. package/dest/tx/tx_hash.d.ts +1 -0
  151. package/dest/tx/tx_hash.d.ts.map +1 -1
  152. package/dest/tx/tx_hash.js +3 -0
  153. package/dest/validators/types.d.ts +4 -0
  154. package/dest/validators/types.d.ts.map +1 -1
  155. package/dest/vks/index.d.ts +1 -1
  156. package/dest/vks/index.d.ts.map +1 -1
  157. package/dest/vks/index.js +1 -1
  158. package/dest/vks/{vk_witness_data.d.ts → vk_data.d.ts} +8 -8
  159. package/dest/vks/vk_data.d.ts.map +1 -0
  160. package/dest/vks/{vk_witness_data.js → vk_data.js} +10 -10
  161. package/package.json +7 -7
  162. package/src/abi/abi.ts +37 -0
  163. package/src/avm/avm.ts +25 -4
  164. package/src/avm/avm_accumulated_data.ts +93 -0
  165. package/src/avm/avm_circuit_public_inputs.ts +22 -2
  166. package/src/avm/gas.ts +26 -0
  167. package/src/avm/index.ts +1 -0
  168. package/src/block/body.ts +7 -2
  169. package/src/block/index.ts +1 -0
  170. package/src/block/l2_block.ts +8 -3
  171. package/src/block/l2_block_source.ts +9 -3
  172. package/src/block/proposal/committee_attestation.ts +70 -0
  173. package/src/block/proposal/index.ts +1 -0
  174. package/src/block/published_l2_block.ts +38 -24
  175. package/src/block/test/l2_tips_store_test_suite.ts +1 -1
  176. package/src/interfaces/archiver.ts +2 -2
  177. package/src/interfaces/aztec-node.ts +8 -16
  178. package/src/interfaces/block-builder.ts +49 -2
  179. package/src/interfaces/epoch-prover.ts +2 -2
  180. package/src/interfaces/merkle_tree_operations.ts +20 -0
  181. package/src/interfaces/p2p.ts +9 -4
  182. package/src/interfaces/proving-job.ts +3 -3
  183. package/src/interfaces/server_circuit_prover.ts +3 -2
  184. package/src/kernel/hints/find_private_kernel_reset_dimensions.ts +3 -3
  185. package/src/kernel/hints/key_validation_hint.ts +4 -6
  186. package/src/kernel/hints/private_kernel_reset_hints.ts +34 -43
  187. package/src/kernel/hints/read_request_hints.ts +27 -15
  188. package/src/kernel/index.ts +1 -0
  189. package/src/kernel/padded_side_effects.ts +73 -0
  190. package/src/kernel/private_kernel_data.ts +7 -29
  191. package/src/kernel/private_kernel_reset_circuit_private_inputs.ts +16 -13
  192. package/src/kernel/private_kernel_reset_dimensions.ts +27 -27
  193. package/src/kernel/private_kernel_tail_circuit_private_inputs.ts +10 -2
  194. package/src/kernel/private_to_avm_accumulated_data.ts +9 -0
  195. package/src/kernel/public_call_request.ts +66 -0
  196. package/src/logs/contract_class_log.ts +0 -36
  197. package/src/logs/log_with_tx_data.ts +26 -12
  198. package/src/logs/private_log.ts +4 -0
  199. package/src/logs/public_log.ts +4 -0
  200. package/src/logs/tx_scoped_l2_log.ts +1 -0
  201. package/src/messaging/index.ts +1 -0
  202. package/src/messaging/l2_to_l1_membership.ts +113 -0
  203. package/src/p2p/consensus_payload.ts +3 -1
  204. package/src/rollup/avm_proof_data.ts +14 -7
  205. package/src/rollup/base_rollup_hints.ts +4 -4
  206. package/src/rollup/previous_rollup_block_data.ts +6 -12
  207. package/src/rollup/previous_rollup_data.ts +6 -12
  208. package/src/rollup/private_tube_data.ts +4 -4
  209. package/src/rollup/public_tube_data.ts +4 -4
  210. package/src/rollup/root_rollup.ts +6 -19
  211. package/src/tests/factories.ts +80 -43
  212. package/src/tests/mocks.ts +6 -3
  213. package/src/tx/processed_tx.ts +4 -5
  214. package/src/tx/tx.ts +28 -54
  215. package/src/tx/tx_effect.ts +23 -5
  216. package/src/tx/tx_hash.ts +4 -0
  217. package/src/validators/types.ts +2 -0
  218. package/src/vks/index.ts +1 -1
  219. package/src/vks/{vk_witness_data.ts → vk_data.ts} +6 -6
  220. package/dest/vks/vk_witness_data.d.ts.map +0 -1
package/dest/avm/avm.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { Fr } from '@aztec/foundation/fields';
2
2
  import { z } from 'zod';
3
3
  import { AztecAddress } from '../aztec-address/index.js';
4
+ import { Gas } from '../gas/gas.js';
5
+ import { GasSettings } from '../gas/gas_settings.js';
4
6
  import { PublicKeys } from '../keys/public_keys.js';
7
+ import { ScopedL2ToL1Message } from '../messaging/l2_to_l1_message.js';
5
8
  import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
6
9
  import { MerkleTreeId } from '../trees/merkle_tree_id.js';
7
10
  import { NullifierLeafPreimage } from '../trees/nullifier_leaf.js';
@@ -1746,24 +1749,30 @@ export declare class AvmEnqueuedCallHint {
1746
1749
  export declare class AvmTxHint {
1747
1750
  readonly hash: string;
1748
1751
  readonly globalVariables: GlobalVariables;
1752
+ readonly gasSettings: GasSettings;
1749
1753
  readonly nonRevertibleAccumulatedData: {
1750
1754
  noteHashes: Fr[];
1751
1755
  nullifiers: Fr[];
1756
+ l2ToL1Messages: ScopedL2ToL1Message[];
1752
1757
  };
1753
1758
  readonly revertibleAccumulatedData: {
1754
1759
  noteHashes: Fr[];
1755
1760
  nullifiers: Fr[];
1761
+ l2ToL1Messages: ScopedL2ToL1Message[];
1756
1762
  };
1757
1763
  readonly setupEnqueuedCalls: AvmEnqueuedCallHint[];
1758
1764
  readonly appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
1759
1765
  readonly teardownEnqueuedCall: AvmEnqueuedCallHint | null;
1760
- constructor(hash: string, globalVariables: GlobalVariables, nonRevertibleAccumulatedData: {
1766
+ readonly gasUsedByPrivate: Gas;
1767
+ constructor(hash: string, globalVariables: GlobalVariables, gasSettings: GasSettings, nonRevertibleAccumulatedData: {
1761
1768
  noteHashes: Fr[];
1762
1769
  nullifiers: Fr[];
1770
+ l2ToL1Messages: ScopedL2ToL1Message[];
1763
1771
  }, revertibleAccumulatedData: {
1764
1772
  noteHashes: Fr[];
1765
1773
  nullifiers: Fr[];
1766
- }, setupEnqueuedCalls: AvmEnqueuedCallHint[], appLogicEnqueuedCalls: AvmEnqueuedCallHint[], teardownEnqueuedCall: AvmEnqueuedCallHint | null);
1774
+ l2ToL1Messages: ScopedL2ToL1Message[];
1775
+ }, setupEnqueuedCalls: AvmEnqueuedCallHint[], appLogicEnqueuedCalls: AvmEnqueuedCallHint[], teardownEnqueuedCall: AvmEnqueuedCallHint | null, gasUsedByPrivate: Gas);
1767
1776
  static fromTx(tx: Tx): Promise<AvmTxHint>;
1768
1777
  static empty(): AvmTxHint;
1769
1778
  static get schema(): z.ZodEffects<z.ZodObject<{
@@ -1823,25 +1832,210 @@ export declare class AvmTxHint {
1823
1832
  coinbase?: any;
1824
1833
  feeRecipient?: any;
1825
1834
  }>;
1835
+ gasSettings: z.ZodEffects<z.ZodObject<{
1836
+ gasLimits: z.ZodEffects<z.ZodObject<{
1837
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1838
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ daGas: number;
1841
+ l2Gas: number;
1842
+ }, {
1843
+ daGas: string | number | bigint;
1844
+ l2Gas: string | number | bigint;
1845
+ }>, Gas, {
1846
+ daGas: string | number | bigint;
1847
+ l2Gas: string | number | bigint;
1848
+ }>;
1849
+ teardownGasLimits: z.ZodEffects<z.ZodObject<{
1850
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1851
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ daGas: number;
1854
+ l2Gas: number;
1855
+ }, {
1856
+ daGas: string | number | bigint;
1857
+ l2Gas: string | number | bigint;
1858
+ }>, Gas, {
1859
+ daGas: string | number | bigint;
1860
+ l2Gas: string | number | bigint;
1861
+ }>;
1862
+ maxFeesPerGas: z.ZodEffects<z.ZodObject<{
1863
+ feePerDaGas: z.ZodType<Fr, any, string>;
1864
+ feePerL2Gas: z.ZodType<Fr, any, string>;
1865
+ }, "strip", z.ZodTypeAny, {
1866
+ feePerDaGas: Fr;
1867
+ feePerL2Gas: Fr;
1868
+ }, {
1869
+ feePerDaGas: string;
1870
+ feePerL2Gas: string;
1871
+ }>, import("../gas/gas_fees.js").GasFees, {
1872
+ feePerDaGas: string;
1873
+ feePerL2Gas: string;
1874
+ }>;
1875
+ maxPriorityFeesPerGas: z.ZodEffects<z.ZodObject<{
1876
+ feePerDaGas: z.ZodType<Fr, any, string>;
1877
+ feePerL2Gas: z.ZodType<Fr, any, string>;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ feePerDaGas: Fr;
1880
+ feePerL2Gas: Fr;
1881
+ }, {
1882
+ feePerDaGas: string;
1883
+ feePerL2Gas: string;
1884
+ }>, import("../gas/gas_fees.js").GasFees, {
1885
+ feePerDaGas: string;
1886
+ feePerL2Gas: string;
1887
+ }>;
1888
+ }, "strip", z.ZodTypeAny, {
1889
+ gasLimits: Gas;
1890
+ teardownGasLimits: Gas;
1891
+ maxFeesPerGas: import("../gas/gas_fees.js").GasFees;
1892
+ maxPriorityFeesPerGas: import("../gas/gas_fees.js").GasFees;
1893
+ }, {
1894
+ gasLimits: {
1895
+ daGas: string | number | bigint;
1896
+ l2Gas: string | number | bigint;
1897
+ };
1898
+ teardownGasLimits: {
1899
+ daGas: string | number | bigint;
1900
+ l2Gas: string | number | bigint;
1901
+ };
1902
+ maxFeesPerGas: {
1903
+ feePerDaGas: string;
1904
+ feePerL2Gas: string;
1905
+ };
1906
+ maxPriorityFeesPerGas: {
1907
+ feePerDaGas: string;
1908
+ feePerL2Gas: string;
1909
+ };
1910
+ }>, GasSettings, {
1911
+ gasLimits: {
1912
+ daGas: string | number | bigint;
1913
+ l2Gas: string | number | bigint;
1914
+ };
1915
+ teardownGasLimits: {
1916
+ daGas: string | number | bigint;
1917
+ l2Gas: string | number | bigint;
1918
+ };
1919
+ maxFeesPerGas: {
1920
+ feePerDaGas: string;
1921
+ feePerL2Gas: string;
1922
+ };
1923
+ maxPriorityFeesPerGas: {
1924
+ feePerDaGas: string;
1925
+ feePerL2Gas: string;
1926
+ };
1927
+ }>;
1826
1928
  nonRevertibleAccumulatedData: z.ZodObject<{
1827
1929
  noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1828
1930
  nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1931
+ l2ToL1Messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
1932
+ message: z.ZodEffects<z.ZodObject<{
1933
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
1934
+ content: z.ZodType<Fr, any, string>;
1935
+ counter: z.ZodNumber;
1936
+ }, "strip", z.ZodTypeAny, {
1937
+ counter: number;
1938
+ recipient: import("@aztec/foundation/schemas").EthAddress;
1939
+ content: Fr;
1940
+ }, {
1941
+ counter: number;
1942
+ recipient: string;
1943
+ content: string;
1944
+ }>, import("../messaging/l2_to_l1_message.js").L2ToL1Message, {
1945
+ counter: number;
1946
+ recipient: string;
1947
+ content: string;
1948
+ }>;
1949
+ contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
1950
+ }, "strip", z.ZodTypeAny, {
1951
+ message: import("../messaging/l2_to_l1_message.js").L2ToL1Message;
1952
+ contractAddress: AztecAddress;
1953
+ }, {
1954
+ message: {
1955
+ counter: number;
1956
+ recipient: string;
1957
+ content: string;
1958
+ };
1959
+ contractAddress?: any;
1960
+ }>, ScopedL2ToL1Message, {
1961
+ message: {
1962
+ counter: number;
1963
+ recipient: string;
1964
+ content: string;
1965
+ };
1966
+ contractAddress?: any;
1967
+ }>, "many">;
1829
1968
  }, "strip", z.ZodTypeAny, {
1830
1969
  noteHashes: Fr[];
1831
1970
  nullifiers: Fr[];
1971
+ l2ToL1Messages: ScopedL2ToL1Message[];
1832
1972
  }, {
1833
1973
  noteHashes: string[];
1834
1974
  nullifiers: string[];
1975
+ l2ToL1Messages: {
1976
+ message: {
1977
+ counter: number;
1978
+ recipient: string;
1979
+ content: string;
1980
+ };
1981
+ contractAddress?: any;
1982
+ }[];
1835
1983
  }>;
1836
1984
  revertibleAccumulatedData: z.ZodObject<{
1837
1985
  noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1838
1986
  nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
1987
+ l2ToL1Messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
1988
+ message: z.ZodEffects<z.ZodObject<{
1989
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
1990
+ content: z.ZodType<Fr, any, string>;
1991
+ counter: z.ZodNumber;
1992
+ }, "strip", z.ZodTypeAny, {
1993
+ counter: number;
1994
+ recipient: import("@aztec/foundation/schemas").EthAddress;
1995
+ content: Fr;
1996
+ }, {
1997
+ counter: number;
1998
+ recipient: string;
1999
+ content: string;
2000
+ }>, import("../messaging/l2_to_l1_message.js").L2ToL1Message, {
2001
+ counter: number;
2002
+ recipient: string;
2003
+ content: string;
2004
+ }>;
2005
+ contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ message: import("../messaging/l2_to_l1_message.js").L2ToL1Message;
2008
+ contractAddress: AztecAddress;
2009
+ }, {
2010
+ message: {
2011
+ counter: number;
2012
+ recipient: string;
2013
+ content: string;
2014
+ };
2015
+ contractAddress?: any;
2016
+ }>, ScopedL2ToL1Message, {
2017
+ message: {
2018
+ counter: number;
2019
+ recipient: string;
2020
+ content: string;
2021
+ };
2022
+ contractAddress?: any;
2023
+ }>, "many">;
1839
2024
  }, "strip", z.ZodTypeAny, {
1840
2025
  noteHashes: Fr[];
1841
2026
  nullifiers: Fr[];
2027
+ l2ToL1Messages: ScopedL2ToL1Message[];
1842
2028
  }, {
1843
2029
  noteHashes: string[];
1844
2030
  nullifiers: string[];
2031
+ l2ToL1Messages: {
2032
+ message: {
2033
+ counter: number;
2034
+ recipient: string;
2035
+ content: string;
2036
+ };
2037
+ contractAddress?: any;
2038
+ }[];
1845
2039
  }>;
1846
2040
  setupEnqueuedCalls: z.ZodArray<z.ZodEffects<z.ZodObject<{
1847
2041
  msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
@@ -1906,20 +2100,37 @@ export declare class AvmTxHint {
1906
2100
  contractAddress?: any;
1907
2101
  msgSender?: any;
1908
2102
  }>>;
2103
+ gasUsedByPrivate: z.ZodEffects<z.ZodObject<{
2104
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2105
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2106
+ }, "strip", z.ZodTypeAny, {
2107
+ daGas: number;
2108
+ l2Gas: number;
2109
+ }, {
2110
+ daGas: string | number | bigint;
2111
+ l2Gas: string | number | bigint;
2112
+ }>, Gas, {
2113
+ daGas: string | number | bigint;
2114
+ l2Gas: string | number | bigint;
2115
+ }>;
1909
2116
  }, "strip", z.ZodTypeAny, {
1910
2117
  hash: string;
1911
2118
  globalVariables: GlobalVariables;
2119
+ gasSettings: GasSettings;
1912
2120
  nonRevertibleAccumulatedData: {
1913
2121
  noteHashes: Fr[];
1914
2122
  nullifiers: Fr[];
2123
+ l2ToL1Messages: ScopedL2ToL1Message[];
1915
2124
  };
1916
2125
  revertibleAccumulatedData: {
1917
2126
  noteHashes: Fr[];
1918
2127
  nullifiers: Fr[];
2128
+ l2ToL1Messages: ScopedL2ToL1Message[];
1919
2129
  };
1920
2130
  setupEnqueuedCalls: AvmEnqueuedCallHint[];
1921
2131
  appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
1922
2132
  teardownEnqueuedCall: AvmEnqueuedCallHint | null;
2133
+ gasUsedByPrivate: Gas;
1923
2134
  }, {
1924
2135
  hash: string;
1925
2136
  globalVariables: {
@@ -1935,13 +2146,47 @@ export declare class AvmTxHint {
1935
2146
  coinbase?: any;
1936
2147
  feeRecipient?: any;
1937
2148
  };
2149
+ gasSettings: {
2150
+ gasLimits: {
2151
+ daGas: string | number | bigint;
2152
+ l2Gas: string | number | bigint;
2153
+ };
2154
+ teardownGasLimits: {
2155
+ daGas: string | number | bigint;
2156
+ l2Gas: string | number | bigint;
2157
+ };
2158
+ maxFeesPerGas: {
2159
+ feePerDaGas: string;
2160
+ feePerL2Gas: string;
2161
+ };
2162
+ maxPriorityFeesPerGas: {
2163
+ feePerDaGas: string;
2164
+ feePerL2Gas: string;
2165
+ };
2166
+ };
1938
2167
  nonRevertibleAccumulatedData: {
1939
2168
  noteHashes: string[];
1940
2169
  nullifiers: string[];
2170
+ l2ToL1Messages: {
2171
+ message: {
2172
+ counter: number;
2173
+ recipient: string;
2174
+ content: string;
2175
+ };
2176
+ contractAddress?: any;
2177
+ }[];
1941
2178
  };
1942
2179
  revertibleAccumulatedData: {
1943
2180
  noteHashes: string[];
1944
2181
  nullifiers: string[];
2182
+ l2ToL1Messages: {
2183
+ message: {
2184
+ counter: number;
2185
+ recipient: string;
2186
+ content: string;
2187
+ };
2188
+ contractAddress?: any;
2189
+ }[];
1945
2190
  };
1946
2191
  setupEnqueuedCalls: {
1947
2192
  isStaticCall: boolean;
@@ -1961,6 +2206,10 @@ export declare class AvmTxHint {
1961
2206
  contractAddress?: any;
1962
2207
  msgSender?: any;
1963
2208
  } | null;
2209
+ gasUsedByPrivate: {
2210
+ daGas: string | number | bigint;
2211
+ l2Gas: string | number | bigint;
2212
+ };
1964
2213
  }>, AvmTxHint, {
1965
2214
  hash: string;
1966
2215
  globalVariables: {
@@ -1976,13 +2225,47 @@ export declare class AvmTxHint {
1976
2225
  coinbase?: any;
1977
2226
  feeRecipient?: any;
1978
2227
  };
2228
+ gasSettings: {
2229
+ gasLimits: {
2230
+ daGas: string | number | bigint;
2231
+ l2Gas: string | number | bigint;
2232
+ };
2233
+ teardownGasLimits: {
2234
+ daGas: string | number | bigint;
2235
+ l2Gas: string | number | bigint;
2236
+ };
2237
+ maxFeesPerGas: {
2238
+ feePerDaGas: string;
2239
+ feePerL2Gas: string;
2240
+ };
2241
+ maxPriorityFeesPerGas: {
2242
+ feePerDaGas: string;
2243
+ feePerL2Gas: string;
2244
+ };
2245
+ };
1979
2246
  nonRevertibleAccumulatedData: {
1980
2247
  noteHashes: string[];
1981
2248
  nullifiers: string[];
2249
+ l2ToL1Messages: {
2250
+ message: {
2251
+ counter: number;
2252
+ recipient: string;
2253
+ content: string;
2254
+ };
2255
+ contractAddress?: any;
2256
+ }[];
1982
2257
  };
1983
2258
  revertibleAccumulatedData: {
1984
2259
  noteHashes: string[];
1985
2260
  nullifiers: string[];
2261
+ l2ToL1Messages: {
2262
+ message: {
2263
+ counter: number;
2264
+ recipient: string;
2265
+ content: string;
2266
+ };
2267
+ contractAddress?: any;
2268
+ }[];
1986
2269
  };
1987
2270
  setupEnqueuedCalls: {
1988
2271
  isStaticCall: boolean;
@@ -2002,6 +2285,10 @@ export declare class AvmTxHint {
2002
2285
  contractAddress?: any;
2003
2286
  msgSender?: any;
2004
2287
  } | null;
2288
+ gasUsedByPrivate: {
2289
+ daGas: string | number | bigint;
2290
+ l2Gas: string | number | bigint;
2291
+ };
2005
2292
  }>;
2006
2293
  }
2007
2294
  export declare class AvmExecutionHints {
@@ -2081,25 +2368,210 @@ export declare class AvmExecutionHints {
2081
2368
  coinbase?: any;
2082
2369
  feeRecipient?: any;
2083
2370
  }>;
2371
+ gasSettings: z.ZodEffects<z.ZodObject<{
2372
+ gasLimits: z.ZodEffects<z.ZodObject<{
2373
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2374
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2375
+ }, "strip", z.ZodTypeAny, {
2376
+ daGas: number;
2377
+ l2Gas: number;
2378
+ }, {
2379
+ daGas: string | number | bigint;
2380
+ l2Gas: string | number | bigint;
2381
+ }>, Gas, {
2382
+ daGas: string | number | bigint;
2383
+ l2Gas: string | number | bigint;
2384
+ }>;
2385
+ teardownGasLimits: z.ZodEffects<z.ZodObject<{
2386
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2387
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2388
+ }, "strip", z.ZodTypeAny, {
2389
+ daGas: number;
2390
+ l2Gas: number;
2391
+ }, {
2392
+ daGas: string | number | bigint;
2393
+ l2Gas: string | number | bigint;
2394
+ }>, Gas, {
2395
+ daGas: string | number | bigint;
2396
+ l2Gas: string | number | bigint;
2397
+ }>;
2398
+ maxFeesPerGas: z.ZodEffects<z.ZodObject<{
2399
+ feePerDaGas: z.ZodType<Fr, any, string>;
2400
+ feePerL2Gas: z.ZodType<Fr, any, string>;
2401
+ }, "strip", z.ZodTypeAny, {
2402
+ feePerDaGas: Fr;
2403
+ feePerL2Gas: Fr;
2404
+ }, {
2405
+ feePerDaGas: string;
2406
+ feePerL2Gas: string;
2407
+ }>, import("../gas/gas_fees.js").GasFees, {
2408
+ feePerDaGas: string;
2409
+ feePerL2Gas: string;
2410
+ }>;
2411
+ maxPriorityFeesPerGas: z.ZodEffects<z.ZodObject<{
2412
+ feePerDaGas: z.ZodType<Fr, any, string>;
2413
+ feePerL2Gas: z.ZodType<Fr, any, string>;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ feePerDaGas: Fr;
2416
+ feePerL2Gas: Fr;
2417
+ }, {
2418
+ feePerDaGas: string;
2419
+ feePerL2Gas: string;
2420
+ }>, import("../gas/gas_fees.js").GasFees, {
2421
+ feePerDaGas: string;
2422
+ feePerL2Gas: string;
2423
+ }>;
2424
+ }, "strip", z.ZodTypeAny, {
2425
+ gasLimits: Gas;
2426
+ teardownGasLimits: Gas;
2427
+ maxFeesPerGas: import("../gas/gas_fees.js").GasFees;
2428
+ maxPriorityFeesPerGas: import("../gas/gas_fees.js").GasFees;
2429
+ }, {
2430
+ gasLimits: {
2431
+ daGas: string | number | bigint;
2432
+ l2Gas: string | number | bigint;
2433
+ };
2434
+ teardownGasLimits: {
2435
+ daGas: string | number | bigint;
2436
+ l2Gas: string | number | bigint;
2437
+ };
2438
+ maxFeesPerGas: {
2439
+ feePerDaGas: string;
2440
+ feePerL2Gas: string;
2441
+ };
2442
+ maxPriorityFeesPerGas: {
2443
+ feePerDaGas: string;
2444
+ feePerL2Gas: string;
2445
+ };
2446
+ }>, GasSettings, {
2447
+ gasLimits: {
2448
+ daGas: string | number | bigint;
2449
+ l2Gas: string | number | bigint;
2450
+ };
2451
+ teardownGasLimits: {
2452
+ daGas: string | number | bigint;
2453
+ l2Gas: string | number | bigint;
2454
+ };
2455
+ maxFeesPerGas: {
2456
+ feePerDaGas: string;
2457
+ feePerL2Gas: string;
2458
+ };
2459
+ maxPriorityFeesPerGas: {
2460
+ feePerDaGas: string;
2461
+ feePerL2Gas: string;
2462
+ };
2463
+ }>;
2084
2464
  nonRevertibleAccumulatedData: z.ZodObject<{
2085
2465
  noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
2086
2466
  nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
2467
+ l2ToL1Messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
2468
+ message: z.ZodEffects<z.ZodObject<{
2469
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
2470
+ content: z.ZodType<Fr, any, string>;
2471
+ counter: z.ZodNumber;
2472
+ }, "strip", z.ZodTypeAny, {
2473
+ counter: number;
2474
+ recipient: import("@aztec/foundation/schemas").EthAddress;
2475
+ content: Fr;
2476
+ }, {
2477
+ counter: number;
2478
+ recipient: string;
2479
+ content: string;
2480
+ }>, import("../messaging/l2_to_l1_message.js").L2ToL1Message, {
2481
+ counter: number;
2482
+ recipient: string;
2483
+ content: string;
2484
+ }>;
2485
+ contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
2486
+ }, "strip", z.ZodTypeAny, {
2487
+ message: import("../messaging/l2_to_l1_message.js").L2ToL1Message;
2488
+ contractAddress: AztecAddress;
2489
+ }, {
2490
+ message: {
2491
+ counter: number;
2492
+ recipient: string;
2493
+ content: string;
2494
+ };
2495
+ contractAddress?: any;
2496
+ }>, ScopedL2ToL1Message, {
2497
+ message: {
2498
+ counter: number;
2499
+ recipient: string;
2500
+ content: string;
2501
+ };
2502
+ contractAddress?: any;
2503
+ }>, "many">;
2087
2504
  }, "strip", z.ZodTypeAny, {
2088
2505
  noteHashes: Fr[];
2089
2506
  nullifiers: Fr[];
2507
+ l2ToL1Messages: ScopedL2ToL1Message[];
2090
2508
  }, {
2091
2509
  noteHashes: string[];
2092
2510
  nullifiers: string[];
2511
+ l2ToL1Messages: {
2512
+ message: {
2513
+ counter: number;
2514
+ recipient: string;
2515
+ content: string;
2516
+ };
2517
+ contractAddress?: any;
2518
+ }[];
2093
2519
  }>;
2094
2520
  revertibleAccumulatedData: z.ZodObject<{
2095
2521
  noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
2096
2522
  nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
2523
+ l2ToL1Messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
2524
+ message: z.ZodEffects<z.ZodObject<{
2525
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
2526
+ content: z.ZodType<Fr, any, string>;
2527
+ counter: z.ZodNumber;
2528
+ }, "strip", z.ZodTypeAny, {
2529
+ counter: number;
2530
+ recipient: import("@aztec/foundation/schemas").EthAddress;
2531
+ content: Fr;
2532
+ }, {
2533
+ counter: number;
2534
+ recipient: string;
2535
+ content: string;
2536
+ }>, import("../messaging/l2_to_l1_message.js").L2ToL1Message, {
2537
+ counter: number;
2538
+ recipient: string;
2539
+ content: string;
2540
+ }>;
2541
+ contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ message: import("../messaging/l2_to_l1_message.js").L2ToL1Message;
2544
+ contractAddress: AztecAddress;
2545
+ }, {
2546
+ message: {
2547
+ counter: number;
2548
+ recipient: string;
2549
+ content: string;
2550
+ };
2551
+ contractAddress?: any;
2552
+ }>, ScopedL2ToL1Message, {
2553
+ message: {
2554
+ counter: number;
2555
+ recipient: string;
2556
+ content: string;
2557
+ };
2558
+ contractAddress?: any;
2559
+ }>, "many">;
2097
2560
  }, "strip", z.ZodTypeAny, {
2098
2561
  noteHashes: Fr[];
2099
2562
  nullifiers: Fr[];
2563
+ l2ToL1Messages: ScopedL2ToL1Message[];
2100
2564
  }, {
2101
2565
  noteHashes: string[];
2102
2566
  nullifiers: string[];
2567
+ l2ToL1Messages: {
2568
+ message: {
2569
+ counter: number;
2570
+ recipient: string;
2571
+ content: string;
2572
+ };
2573
+ contractAddress?: any;
2574
+ }[];
2103
2575
  }>;
2104
2576
  setupEnqueuedCalls: z.ZodArray<z.ZodEffects<z.ZodObject<{
2105
2577
  msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
@@ -2164,20 +2636,37 @@ export declare class AvmExecutionHints {
2164
2636
  contractAddress?: any;
2165
2637
  msgSender?: any;
2166
2638
  }>>;
2639
+ gasUsedByPrivate: z.ZodEffects<z.ZodObject<{
2640
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2641
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2642
+ }, "strip", z.ZodTypeAny, {
2643
+ daGas: number;
2644
+ l2Gas: number;
2645
+ }, {
2646
+ daGas: string | number | bigint;
2647
+ l2Gas: string | number | bigint;
2648
+ }>, Gas, {
2649
+ daGas: string | number | bigint;
2650
+ l2Gas: string | number | bigint;
2651
+ }>;
2167
2652
  }, "strip", z.ZodTypeAny, {
2168
2653
  hash: string;
2169
2654
  globalVariables: GlobalVariables;
2655
+ gasSettings: GasSettings;
2170
2656
  nonRevertibleAccumulatedData: {
2171
2657
  noteHashes: Fr[];
2172
2658
  nullifiers: Fr[];
2659
+ l2ToL1Messages: ScopedL2ToL1Message[];
2173
2660
  };
2174
2661
  revertibleAccumulatedData: {
2175
2662
  noteHashes: Fr[];
2176
2663
  nullifiers: Fr[];
2664
+ l2ToL1Messages: ScopedL2ToL1Message[];
2177
2665
  };
2178
2666
  setupEnqueuedCalls: AvmEnqueuedCallHint[];
2179
2667
  appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
2180
2668
  teardownEnqueuedCall: AvmEnqueuedCallHint | null;
2669
+ gasUsedByPrivate: Gas;
2181
2670
  }, {
2182
2671
  hash: string;
2183
2672
  globalVariables: {
@@ -2193,13 +2682,47 @@ export declare class AvmExecutionHints {
2193
2682
  coinbase?: any;
2194
2683
  feeRecipient?: any;
2195
2684
  };
2685
+ gasSettings: {
2686
+ gasLimits: {
2687
+ daGas: string | number | bigint;
2688
+ l2Gas: string | number | bigint;
2689
+ };
2690
+ teardownGasLimits: {
2691
+ daGas: string | number | bigint;
2692
+ l2Gas: string | number | bigint;
2693
+ };
2694
+ maxFeesPerGas: {
2695
+ feePerDaGas: string;
2696
+ feePerL2Gas: string;
2697
+ };
2698
+ maxPriorityFeesPerGas: {
2699
+ feePerDaGas: string;
2700
+ feePerL2Gas: string;
2701
+ };
2702
+ };
2196
2703
  nonRevertibleAccumulatedData: {
2197
2704
  noteHashes: string[];
2198
2705
  nullifiers: string[];
2706
+ l2ToL1Messages: {
2707
+ message: {
2708
+ counter: number;
2709
+ recipient: string;
2710
+ content: string;
2711
+ };
2712
+ contractAddress?: any;
2713
+ }[];
2199
2714
  };
2200
2715
  revertibleAccumulatedData: {
2201
2716
  noteHashes: string[];
2202
2717
  nullifiers: string[];
2718
+ l2ToL1Messages: {
2719
+ message: {
2720
+ counter: number;
2721
+ recipient: string;
2722
+ content: string;
2723
+ };
2724
+ contractAddress?: any;
2725
+ }[];
2203
2726
  };
2204
2727
  setupEnqueuedCalls: {
2205
2728
  isStaticCall: boolean;
@@ -2219,6 +2742,10 @@ export declare class AvmExecutionHints {
2219
2742
  contractAddress?: any;
2220
2743
  msgSender?: any;
2221
2744
  } | null;
2745
+ gasUsedByPrivate: {
2746
+ daGas: string | number | bigint;
2747
+ l2Gas: string | number | bigint;
2748
+ };
2222
2749
  }>, AvmTxHint, {
2223
2750
  hash: string;
2224
2751
  globalVariables: {
@@ -2234,13 +2761,47 @@ export declare class AvmExecutionHints {
2234
2761
  coinbase?: any;
2235
2762
  feeRecipient?: any;
2236
2763
  };
2764
+ gasSettings: {
2765
+ gasLimits: {
2766
+ daGas: string | number | bigint;
2767
+ l2Gas: string | number | bigint;
2768
+ };
2769
+ teardownGasLimits: {
2770
+ daGas: string | number | bigint;
2771
+ l2Gas: string | number | bigint;
2772
+ };
2773
+ maxFeesPerGas: {
2774
+ feePerDaGas: string;
2775
+ feePerL2Gas: string;
2776
+ };
2777
+ maxPriorityFeesPerGas: {
2778
+ feePerDaGas: string;
2779
+ feePerL2Gas: string;
2780
+ };
2781
+ };
2237
2782
  nonRevertibleAccumulatedData: {
2238
2783
  noteHashes: string[];
2239
2784
  nullifiers: string[];
2785
+ l2ToL1Messages: {
2786
+ message: {
2787
+ counter: number;
2788
+ recipient: string;
2789
+ content: string;
2790
+ };
2791
+ contractAddress?: any;
2792
+ }[];
2240
2793
  };
2241
2794
  revertibleAccumulatedData: {
2242
2795
  noteHashes: string[];
2243
2796
  nullifiers: string[];
2797
+ l2ToL1Messages: {
2798
+ message: {
2799
+ counter: number;
2800
+ recipient: string;
2801
+ content: string;
2802
+ };
2803
+ contractAddress?: any;
2804
+ }[];
2244
2805
  };
2245
2806
  setupEnqueuedCalls: {
2246
2807
  isStaticCall: boolean;
@@ -2260,6 +2821,10 @@ export declare class AvmExecutionHints {
2260
2821
  contractAddress?: any;
2261
2822
  msgSender?: any;
2262
2823
  } | null;
2824
+ gasUsedByPrivate: {
2825
+ daGas: string | number | bigint;
2826
+ l2Gas: string | number | bigint;
2827
+ };
2263
2828
  }>;
2264
2829
  contractInstances: z.ZodArray<z.ZodEffects<z.ZodObject<{
2265
2830
  address: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
@@ -3995,21 +4560,55 @@ export declare class AvmExecutionHints {
3995
4560
  feePerDaGas: string;
3996
4561
  feePerL2Gas: string;
3997
4562
  };
3998
- chainId?: any;
3999
- version?: any;
4000
- blockNumber?: any;
4001
- slotNumber?: any;
4002
- timestamp?: any;
4003
- coinbase?: any;
4004
- feeRecipient?: any;
4563
+ chainId?: any;
4564
+ version?: any;
4565
+ blockNumber?: any;
4566
+ slotNumber?: any;
4567
+ timestamp?: any;
4568
+ coinbase?: any;
4569
+ feeRecipient?: any;
4570
+ };
4571
+ gasSettings: {
4572
+ gasLimits: {
4573
+ daGas: string | number | bigint;
4574
+ l2Gas: string | number | bigint;
4575
+ };
4576
+ teardownGasLimits: {
4577
+ daGas: string | number | bigint;
4578
+ l2Gas: string | number | bigint;
4579
+ };
4580
+ maxFeesPerGas: {
4581
+ feePerDaGas: string;
4582
+ feePerL2Gas: string;
4583
+ };
4584
+ maxPriorityFeesPerGas: {
4585
+ feePerDaGas: string;
4586
+ feePerL2Gas: string;
4587
+ };
4005
4588
  };
4006
4589
  nonRevertibleAccumulatedData: {
4007
4590
  noteHashes: string[];
4008
4591
  nullifiers: string[];
4592
+ l2ToL1Messages: {
4593
+ message: {
4594
+ counter: number;
4595
+ recipient: string;
4596
+ content: string;
4597
+ };
4598
+ contractAddress?: any;
4599
+ }[];
4009
4600
  };
4010
4601
  revertibleAccumulatedData: {
4011
4602
  noteHashes: string[];
4012
4603
  nullifiers: string[];
4604
+ l2ToL1Messages: {
4605
+ message: {
4606
+ counter: number;
4607
+ recipient: string;
4608
+ content: string;
4609
+ };
4610
+ contractAddress?: any;
4611
+ }[];
4013
4612
  };
4014
4613
  setupEnqueuedCalls: {
4015
4614
  isStaticCall: boolean;
@@ -4029,6 +4628,10 @@ export declare class AvmExecutionHints {
4029
4628
  contractAddress?: any;
4030
4629
  msgSender?: any;
4031
4630
  } | null;
4631
+ gasUsedByPrivate: {
4632
+ daGas: string | number | bigint;
4633
+ l2Gas: string | number | bigint;
4634
+ };
4032
4635
  };
4033
4636
  contractInstances: {
4034
4637
  salt: string;
@@ -4330,13 +4933,47 @@ export declare class AvmExecutionHints {
4330
4933
  coinbase?: any;
4331
4934
  feeRecipient?: any;
4332
4935
  };
4936
+ gasSettings: {
4937
+ gasLimits: {
4938
+ daGas: string | number | bigint;
4939
+ l2Gas: string | number | bigint;
4940
+ };
4941
+ teardownGasLimits: {
4942
+ daGas: string | number | bigint;
4943
+ l2Gas: string | number | bigint;
4944
+ };
4945
+ maxFeesPerGas: {
4946
+ feePerDaGas: string;
4947
+ feePerL2Gas: string;
4948
+ };
4949
+ maxPriorityFeesPerGas: {
4950
+ feePerDaGas: string;
4951
+ feePerL2Gas: string;
4952
+ };
4953
+ };
4333
4954
  nonRevertibleAccumulatedData: {
4334
4955
  noteHashes: string[];
4335
4956
  nullifiers: string[];
4957
+ l2ToL1Messages: {
4958
+ message: {
4959
+ counter: number;
4960
+ recipient: string;
4961
+ content: string;
4962
+ };
4963
+ contractAddress?: any;
4964
+ }[];
4336
4965
  };
4337
4966
  revertibleAccumulatedData: {
4338
4967
  noteHashes: string[];
4339
4968
  nullifiers: string[];
4969
+ l2ToL1Messages: {
4970
+ message: {
4971
+ counter: number;
4972
+ recipient: string;
4973
+ content: string;
4974
+ };
4975
+ contractAddress?: any;
4976
+ }[];
4340
4977
  };
4341
4978
  setupEnqueuedCalls: {
4342
4979
  isStaticCall: boolean;
@@ -4356,6 +4993,10 @@ export declare class AvmExecutionHints {
4356
4993
  contractAddress?: any;
4357
4994
  msgSender?: any;
4358
4995
  } | null;
4996
+ gasUsedByPrivate: {
4997
+ daGas: string | number | bigint;
4998
+ l2Gas: string | number | bigint;
4999
+ };
4359
5000
  };
4360
5001
  contractInstances: {
4361
5002
  salt: string;
@@ -4707,25 +5348,210 @@ export declare class AvmCircuitInputs {
4707
5348
  coinbase?: any;
4708
5349
  feeRecipient?: any;
4709
5350
  }>;
5351
+ gasSettings: z.ZodEffects<z.ZodObject<{
5352
+ gasLimits: z.ZodEffects<z.ZodObject<{
5353
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
5354
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
5355
+ }, "strip", z.ZodTypeAny, {
5356
+ daGas: number;
5357
+ l2Gas: number;
5358
+ }, {
5359
+ daGas: string | number | bigint;
5360
+ l2Gas: string | number | bigint;
5361
+ }>, Gas, {
5362
+ daGas: string | number | bigint;
5363
+ l2Gas: string | number | bigint;
5364
+ }>;
5365
+ teardownGasLimits: z.ZodEffects<z.ZodObject<{
5366
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
5367
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
5368
+ }, "strip", z.ZodTypeAny, {
5369
+ daGas: number;
5370
+ l2Gas: number;
5371
+ }, {
5372
+ daGas: string | number | bigint;
5373
+ l2Gas: string | number | bigint;
5374
+ }>, Gas, {
5375
+ daGas: string | number | bigint;
5376
+ l2Gas: string | number | bigint;
5377
+ }>;
5378
+ maxFeesPerGas: z.ZodEffects<z.ZodObject<{
5379
+ feePerDaGas: z.ZodType<Fr, any, string>;
5380
+ feePerL2Gas: z.ZodType<Fr, any, string>;
5381
+ }, "strip", z.ZodTypeAny, {
5382
+ feePerDaGas: Fr;
5383
+ feePerL2Gas: Fr;
5384
+ }, {
5385
+ feePerDaGas: string;
5386
+ feePerL2Gas: string;
5387
+ }>, import("../gas/gas_fees.js").GasFees, {
5388
+ feePerDaGas: string;
5389
+ feePerL2Gas: string;
5390
+ }>;
5391
+ maxPriorityFeesPerGas: z.ZodEffects<z.ZodObject<{
5392
+ feePerDaGas: z.ZodType<Fr, any, string>;
5393
+ feePerL2Gas: z.ZodType<Fr, any, string>;
5394
+ }, "strip", z.ZodTypeAny, {
5395
+ feePerDaGas: Fr;
5396
+ feePerL2Gas: Fr;
5397
+ }, {
5398
+ feePerDaGas: string;
5399
+ feePerL2Gas: string;
5400
+ }>, import("../gas/gas_fees.js").GasFees, {
5401
+ feePerDaGas: string;
5402
+ feePerL2Gas: string;
5403
+ }>;
5404
+ }, "strip", z.ZodTypeAny, {
5405
+ gasLimits: Gas;
5406
+ teardownGasLimits: Gas;
5407
+ maxFeesPerGas: import("../gas/gas_fees.js").GasFees;
5408
+ maxPriorityFeesPerGas: import("../gas/gas_fees.js").GasFees;
5409
+ }, {
5410
+ gasLimits: {
5411
+ daGas: string | number | bigint;
5412
+ l2Gas: string | number | bigint;
5413
+ };
5414
+ teardownGasLimits: {
5415
+ daGas: string | number | bigint;
5416
+ l2Gas: string | number | bigint;
5417
+ };
5418
+ maxFeesPerGas: {
5419
+ feePerDaGas: string;
5420
+ feePerL2Gas: string;
5421
+ };
5422
+ maxPriorityFeesPerGas: {
5423
+ feePerDaGas: string;
5424
+ feePerL2Gas: string;
5425
+ };
5426
+ }>, GasSettings, {
5427
+ gasLimits: {
5428
+ daGas: string | number | bigint;
5429
+ l2Gas: string | number | bigint;
5430
+ };
5431
+ teardownGasLimits: {
5432
+ daGas: string | number | bigint;
5433
+ l2Gas: string | number | bigint;
5434
+ };
5435
+ maxFeesPerGas: {
5436
+ feePerDaGas: string;
5437
+ feePerL2Gas: string;
5438
+ };
5439
+ maxPriorityFeesPerGas: {
5440
+ feePerDaGas: string;
5441
+ feePerL2Gas: string;
5442
+ };
5443
+ }>;
4710
5444
  nonRevertibleAccumulatedData: z.ZodObject<{
4711
5445
  noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
4712
5446
  nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
5447
+ l2ToL1Messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
5448
+ message: z.ZodEffects<z.ZodObject<{
5449
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
5450
+ content: z.ZodType<Fr, any, string>;
5451
+ counter: z.ZodNumber;
5452
+ }, "strip", z.ZodTypeAny, {
5453
+ counter: number;
5454
+ recipient: import("@aztec/foundation/schemas").EthAddress;
5455
+ content: Fr;
5456
+ }, {
5457
+ counter: number;
5458
+ recipient: string;
5459
+ content: string;
5460
+ }>, import("../messaging/l2_to_l1_message.js").L2ToL1Message, {
5461
+ counter: number;
5462
+ recipient: string;
5463
+ content: string;
5464
+ }>;
5465
+ contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
5466
+ }, "strip", z.ZodTypeAny, {
5467
+ message: import("../messaging/l2_to_l1_message.js").L2ToL1Message;
5468
+ contractAddress: AztecAddress;
5469
+ }, {
5470
+ message: {
5471
+ counter: number;
5472
+ recipient: string;
5473
+ content: string;
5474
+ };
5475
+ contractAddress?: any;
5476
+ }>, ScopedL2ToL1Message, {
5477
+ message: {
5478
+ counter: number;
5479
+ recipient: string;
5480
+ content: string;
5481
+ };
5482
+ contractAddress?: any;
5483
+ }>, "many">;
4713
5484
  }, "strip", z.ZodTypeAny, {
4714
5485
  noteHashes: Fr[];
4715
5486
  nullifiers: Fr[];
5487
+ l2ToL1Messages: ScopedL2ToL1Message[];
4716
5488
  }, {
4717
5489
  noteHashes: string[];
4718
5490
  nullifiers: string[];
5491
+ l2ToL1Messages: {
5492
+ message: {
5493
+ counter: number;
5494
+ recipient: string;
5495
+ content: string;
5496
+ };
5497
+ contractAddress?: any;
5498
+ }[];
4719
5499
  }>;
4720
5500
  revertibleAccumulatedData: z.ZodObject<{
4721
5501
  noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
4722
5502
  nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
5503
+ l2ToL1Messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
5504
+ message: z.ZodEffects<z.ZodObject<{
5505
+ recipient: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
5506
+ content: z.ZodType<Fr, any, string>;
5507
+ counter: z.ZodNumber;
5508
+ }, "strip", z.ZodTypeAny, {
5509
+ counter: number;
5510
+ recipient: import("@aztec/foundation/schemas").EthAddress;
5511
+ content: Fr;
5512
+ }, {
5513
+ counter: number;
5514
+ recipient: string;
5515
+ content: string;
5516
+ }>, import("../messaging/l2_to_l1_message.js").L2ToL1Message, {
5517
+ counter: number;
5518
+ recipient: string;
5519
+ content: string;
5520
+ }>;
5521
+ contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
5522
+ }, "strip", z.ZodTypeAny, {
5523
+ message: import("../messaging/l2_to_l1_message.js").L2ToL1Message;
5524
+ contractAddress: AztecAddress;
5525
+ }, {
5526
+ message: {
5527
+ counter: number;
5528
+ recipient: string;
5529
+ content: string;
5530
+ };
5531
+ contractAddress?: any;
5532
+ }>, ScopedL2ToL1Message, {
5533
+ message: {
5534
+ counter: number;
5535
+ recipient: string;
5536
+ content: string;
5537
+ };
5538
+ contractAddress?: any;
5539
+ }>, "many">;
4723
5540
  }, "strip", z.ZodTypeAny, {
4724
5541
  noteHashes: Fr[];
4725
5542
  nullifiers: Fr[];
5543
+ l2ToL1Messages: ScopedL2ToL1Message[];
4726
5544
  }, {
4727
5545
  noteHashes: string[];
4728
5546
  nullifiers: string[];
5547
+ l2ToL1Messages: {
5548
+ message: {
5549
+ counter: number;
5550
+ recipient: string;
5551
+ content: string;
5552
+ };
5553
+ contractAddress?: any;
5554
+ }[];
4729
5555
  }>;
4730
5556
  setupEnqueuedCalls: z.ZodArray<z.ZodEffects<z.ZodObject<{
4731
5557
  msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
@@ -4790,20 +5616,37 @@ export declare class AvmCircuitInputs {
4790
5616
  contractAddress?: any;
4791
5617
  msgSender?: any;
4792
5618
  }>>;
5619
+ gasUsedByPrivate: z.ZodEffects<z.ZodObject<{
5620
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
5621
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
5622
+ }, "strip", z.ZodTypeAny, {
5623
+ daGas: number;
5624
+ l2Gas: number;
5625
+ }, {
5626
+ daGas: string | number | bigint;
5627
+ l2Gas: string | number | bigint;
5628
+ }>, Gas, {
5629
+ daGas: string | number | bigint;
5630
+ l2Gas: string | number | bigint;
5631
+ }>;
4793
5632
  }, "strip", z.ZodTypeAny, {
4794
5633
  hash: string;
4795
5634
  globalVariables: GlobalVariables;
5635
+ gasSettings: GasSettings;
4796
5636
  nonRevertibleAccumulatedData: {
4797
5637
  noteHashes: Fr[];
4798
5638
  nullifiers: Fr[];
5639
+ l2ToL1Messages: ScopedL2ToL1Message[];
4799
5640
  };
4800
5641
  revertibleAccumulatedData: {
4801
5642
  noteHashes: Fr[];
4802
5643
  nullifiers: Fr[];
5644
+ l2ToL1Messages: ScopedL2ToL1Message[];
4803
5645
  };
4804
5646
  setupEnqueuedCalls: AvmEnqueuedCallHint[];
4805
5647
  appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
4806
5648
  teardownEnqueuedCall: AvmEnqueuedCallHint | null;
5649
+ gasUsedByPrivate: Gas;
4807
5650
  }, {
4808
5651
  hash: string;
4809
5652
  globalVariables: {
@@ -4819,13 +5662,47 @@ export declare class AvmCircuitInputs {
4819
5662
  coinbase?: any;
4820
5663
  feeRecipient?: any;
4821
5664
  };
5665
+ gasSettings: {
5666
+ gasLimits: {
5667
+ daGas: string | number | bigint;
5668
+ l2Gas: string | number | bigint;
5669
+ };
5670
+ teardownGasLimits: {
5671
+ daGas: string | number | bigint;
5672
+ l2Gas: string | number | bigint;
5673
+ };
5674
+ maxFeesPerGas: {
5675
+ feePerDaGas: string;
5676
+ feePerL2Gas: string;
5677
+ };
5678
+ maxPriorityFeesPerGas: {
5679
+ feePerDaGas: string;
5680
+ feePerL2Gas: string;
5681
+ };
5682
+ };
4822
5683
  nonRevertibleAccumulatedData: {
4823
5684
  noteHashes: string[];
4824
5685
  nullifiers: string[];
5686
+ l2ToL1Messages: {
5687
+ message: {
5688
+ counter: number;
5689
+ recipient: string;
5690
+ content: string;
5691
+ };
5692
+ contractAddress?: any;
5693
+ }[];
4825
5694
  };
4826
5695
  revertibleAccumulatedData: {
4827
5696
  noteHashes: string[];
4828
5697
  nullifiers: string[];
5698
+ l2ToL1Messages: {
5699
+ message: {
5700
+ counter: number;
5701
+ recipient: string;
5702
+ content: string;
5703
+ };
5704
+ contractAddress?: any;
5705
+ }[];
4829
5706
  };
4830
5707
  setupEnqueuedCalls: {
4831
5708
  isStaticCall: boolean;
@@ -4845,6 +5722,10 @@ export declare class AvmCircuitInputs {
4845
5722
  contractAddress?: any;
4846
5723
  msgSender?: any;
4847
5724
  } | null;
5725
+ gasUsedByPrivate: {
5726
+ daGas: string | number | bigint;
5727
+ l2Gas: string | number | bigint;
5728
+ };
4848
5729
  }>, AvmTxHint, {
4849
5730
  hash: string;
4850
5731
  globalVariables: {
@@ -4860,13 +5741,47 @@ export declare class AvmCircuitInputs {
4860
5741
  coinbase?: any;
4861
5742
  feeRecipient?: any;
4862
5743
  };
5744
+ gasSettings: {
5745
+ gasLimits: {
5746
+ daGas: string | number | bigint;
5747
+ l2Gas: string | number | bigint;
5748
+ };
5749
+ teardownGasLimits: {
5750
+ daGas: string | number | bigint;
5751
+ l2Gas: string | number | bigint;
5752
+ };
5753
+ maxFeesPerGas: {
5754
+ feePerDaGas: string;
5755
+ feePerL2Gas: string;
5756
+ };
5757
+ maxPriorityFeesPerGas: {
5758
+ feePerDaGas: string;
5759
+ feePerL2Gas: string;
5760
+ };
5761
+ };
4863
5762
  nonRevertibleAccumulatedData: {
4864
5763
  noteHashes: string[];
4865
5764
  nullifiers: string[];
5765
+ l2ToL1Messages: {
5766
+ message: {
5767
+ counter: number;
5768
+ recipient: string;
5769
+ content: string;
5770
+ };
5771
+ contractAddress?: any;
5772
+ }[];
4866
5773
  };
4867
5774
  revertibleAccumulatedData: {
4868
5775
  noteHashes: string[];
4869
5776
  nullifiers: string[];
5777
+ l2ToL1Messages: {
5778
+ message: {
5779
+ counter: number;
5780
+ recipient: string;
5781
+ content: string;
5782
+ };
5783
+ contractAddress?: any;
5784
+ }[];
4870
5785
  };
4871
5786
  setupEnqueuedCalls: {
4872
5787
  isStaticCall: boolean;
@@ -4886,6 +5801,10 @@ export declare class AvmCircuitInputs {
4886
5801
  contractAddress?: any;
4887
5802
  msgSender?: any;
4888
5803
  } | null;
5804
+ gasUsedByPrivate: {
5805
+ daGas: string | number | bigint;
5806
+ l2Gas: string | number | bigint;
5807
+ };
4889
5808
  }>;
4890
5809
  contractInstances: z.ZodArray<z.ZodEffects<z.ZodObject<{
4891
5810
  address: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
@@ -6629,13 +7548,47 @@ export declare class AvmCircuitInputs {
6629
7548
  coinbase?: any;
6630
7549
  feeRecipient?: any;
6631
7550
  };
7551
+ gasSettings: {
7552
+ gasLimits: {
7553
+ daGas: string | number | bigint;
7554
+ l2Gas: string | number | bigint;
7555
+ };
7556
+ teardownGasLimits: {
7557
+ daGas: string | number | bigint;
7558
+ l2Gas: string | number | bigint;
7559
+ };
7560
+ maxFeesPerGas: {
7561
+ feePerDaGas: string;
7562
+ feePerL2Gas: string;
7563
+ };
7564
+ maxPriorityFeesPerGas: {
7565
+ feePerDaGas: string;
7566
+ feePerL2Gas: string;
7567
+ };
7568
+ };
6632
7569
  nonRevertibleAccumulatedData: {
6633
7570
  noteHashes: string[];
6634
7571
  nullifiers: string[];
7572
+ l2ToL1Messages: {
7573
+ message: {
7574
+ counter: number;
7575
+ recipient: string;
7576
+ content: string;
7577
+ };
7578
+ contractAddress?: any;
7579
+ }[];
6635
7580
  };
6636
7581
  revertibleAccumulatedData: {
6637
7582
  noteHashes: string[];
6638
7583
  nullifiers: string[];
7584
+ l2ToL1Messages: {
7585
+ message: {
7586
+ counter: number;
7587
+ recipient: string;
7588
+ content: string;
7589
+ };
7590
+ contractAddress?: any;
7591
+ }[];
6639
7592
  };
6640
7593
  setupEnqueuedCalls: {
6641
7594
  isStaticCall: boolean;
@@ -6655,6 +7608,10 @@ export declare class AvmCircuitInputs {
6655
7608
  contractAddress?: any;
6656
7609
  msgSender?: any;
6657
7610
  } | null;
7611
+ gasUsedByPrivate: {
7612
+ daGas: string | number | bigint;
7613
+ l2Gas: string | number | bigint;
7614
+ };
6658
7615
  };
6659
7616
  contractInstances: {
6660
7617
  salt: string;
@@ -6956,13 +7913,47 @@ export declare class AvmCircuitInputs {
6956
7913
  coinbase?: any;
6957
7914
  feeRecipient?: any;
6958
7915
  };
7916
+ gasSettings: {
7917
+ gasLimits: {
7918
+ daGas: string | number | bigint;
7919
+ l2Gas: string | number | bigint;
7920
+ };
7921
+ teardownGasLimits: {
7922
+ daGas: string | number | bigint;
7923
+ l2Gas: string | number | bigint;
7924
+ };
7925
+ maxFeesPerGas: {
7926
+ feePerDaGas: string;
7927
+ feePerL2Gas: string;
7928
+ };
7929
+ maxPriorityFeesPerGas: {
7930
+ feePerDaGas: string;
7931
+ feePerL2Gas: string;
7932
+ };
7933
+ };
6959
7934
  nonRevertibleAccumulatedData: {
6960
7935
  noteHashes: string[];
6961
7936
  nullifiers: string[];
7937
+ l2ToL1Messages: {
7938
+ message: {
7939
+ counter: number;
7940
+ recipient: string;
7941
+ content: string;
7942
+ };
7943
+ contractAddress?: any;
7944
+ }[];
6962
7945
  };
6963
7946
  revertibleAccumulatedData: {
6964
7947
  noteHashes: string[];
6965
7948
  nullifiers: string[];
7949
+ l2ToL1Messages: {
7950
+ message: {
7951
+ counter: number;
7952
+ recipient: string;
7953
+ content: string;
7954
+ };
7955
+ contractAddress?: any;
7956
+ }[];
6966
7957
  };
6967
7958
  setupEnqueuedCalls: {
6968
7959
  isStaticCall: boolean;
@@ -6982,6 +7973,10 @@ export declare class AvmCircuitInputs {
6982
7973
  contractAddress?: any;
6983
7974
  msgSender?: any;
6984
7975
  } | null;
7976
+ gasUsedByPrivate: {
7977
+ daGas: string | number | bigint;
7978
+ l2Gas: string | number | bigint;
7979
+ };
6985
7980
  };
6986
7981
  contractInstances: {
6987
7982
  salt: string;
@@ -7426,7 +8421,7 @@ export declare class AvmCircuitInputs {
7426
8421
  }, {
7427
8422
  daGas: string | number | bigint;
7428
8423
  l2Gas: string | number | bigint;
7429
- }>, import("../gas/gas.js").Gas, {
8424
+ }>, Gas, {
7430
8425
  daGas: string | number | bigint;
7431
8426
  l2Gas: string | number | bigint;
7432
8427
  }>;
@@ -7440,7 +8435,7 @@ export declare class AvmCircuitInputs {
7440
8435
  }, {
7441
8436
  daGas: string | number | bigint;
7442
8437
  l2Gas: string | number | bigint;
7443
- }>, import("../gas/gas.js").Gas, {
8438
+ }>, Gas, {
7444
8439
  daGas: string | number | bigint;
7445
8440
  l2Gas: string | number | bigint;
7446
8441
  }>;
@@ -7453,7 +8448,7 @@ export declare class AvmCircuitInputs {
7453
8448
  }, {
7454
8449
  daGas: string | number | bigint;
7455
8450
  l2Gas: string | number | bigint;
7456
- }>, import("../gas/gas.js").Gas, {
8451
+ }>, Gas, {
7457
8452
  daGas: string | number | bigint;
7458
8453
  l2Gas: string | number | bigint;
7459
8454
  }>;
@@ -7484,8 +8479,8 @@ export declare class AvmCircuitInputs {
7484
8479
  feePerL2Gas: string;
7485
8480
  }>;
7486
8481
  }, "strip", z.ZodTypeAny, {
7487
- gasLimits: import("../gas/gas.js").Gas;
7488
- teardownGasLimits: import("../gas/gas.js").Gas;
8482
+ gasLimits: Gas;
8483
+ teardownGasLimits: Gas;
7489
8484
  maxFeesPerGas: import("../gas/gas_fees.js").GasFees;
7490
8485
  maxPriorityFeesPerGas: import("../gas/gas_fees.js").GasFees;
7491
8486
  }, {
@@ -7505,7 +8500,7 @@ export declare class AvmCircuitInputs {
7505
8500
  feePerDaGas: string;
7506
8501
  feePerL2Gas: string;
7507
8502
  };
7508
- }>, import("../gas/gas_settings.js").GasSettings, {
8503
+ }>, GasSettings, {
7509
8504
  gasLimits: {
7510
8505
  daGas: string | number | bigint;
7511
8506
  l2Gas: string | number | bigint;
@@ -7524,6 +8519,23 @@ export declare class AvmCircuitInputs {
7524
8519
  };
7525
8520
  }>;
7526
8521
  feePayer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
8522
+ publicCallRequestArrayLengths: z.ZodEffects<z.ZodObject<{
8523
+ setupCalls: z.ZodNumber;
8524
+ appLogicCalls: z.ZodNumber;
8525
+ teardownCall: z.ZodBoolean;
8526
+ }, "strip", z.ZodTypeAny, {
8527
+ setupCalls: number;
8528
+ appLogicCalls: number;
8529
+ teardownCall: boolean;
8530
+ }, {
8531
+ setupCalls: number;
8532
+ appLogicCalls: number;
8533
+ teardownCall: boolean;
8534
+ }>, import("../kernel/public_call_request.js").PublicCallRequestArrayLengths, {
8535
+ setupCalls: number;
8536
+ appLogicCalls: number;
8537
+ teardownCall: boolean;
8538
+ }>;
7527
8539
  publicSetupCallRequests: z.ZodArray<z.ZodEffects<z.ZodObject<{
7528
8540
  msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
7529
8541
  contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
@@ -7653,7 +8665,7 @@ export declare class AvmCircuitInputs {
7653
8665
  content: string;
7654
8666
  };
7655
8667
  contractAddress?: any;
7656
- }>, import("../messaging/l2_to_l1_message.js").ScopedL2ToL1Message, {
8668
+ }>, ScopedL2ToL1Message, {
7657
8669
  message: {
7658
8670
  counter: number;
7659
8671
  recipient: string;
@@ -7664,7 +8676,7 @@ export declare class AvmCircuitInputs {
7664
8676
  }, "strip", z.ZodTypeAny, {
7665
8677
  noteHashes: Fr[];
7666
8678
  nullifiers: Fr[];
7667
- l2ToL1Msgs: import("../messaging/l2_to_l1_message.js").ScopedL2ToL1Message[];
8679
+ l2ToL1Msgs: ScopedL2ToL1Message[];
7668
8680
  }, {
7669
8681
  noteHashes: string[];
7670
8682
  nullifiers: string[];
@@ -7720,7 +8732,7 @@ export declare class AvmCircuitInputs {
7720
8732
  content: string;
7721
8733
  };
7722
8734
  contractAddress?: any;
7723
- }>, import("../messaging/l2_to_l1_message.js").ScopedL2ToL1Message, {
8735
+ }>, ScopedL2ToL1Message, {
7724
8736
  message: {
7725
8737
  counter: number;
7726
8738
  recipient: string;
@@ -7731,7 +8743,7 @@ export declare class AvmCircuitInputs {
7731
8743
  }, "strip", z.ZodTypeAny, {
7732
8744
  noteHashes: Fr[];
7733
8745
  nullifiers: Fr[];
7734
- l2ToL1Msgs: import("../messaging/l2_to_l1_message.js").ScopedL2ToL1Message[];
8746
+ l2ToL1Msgs: ScopedL2ToL1Message[];
7735
8747
  }, {
7736
8748
  noteHashes: string[];
7737
8749
  nullifiers: string[];
@@ -7857,10 +8869,35 @@ export declare class AvmCircuitInputs {
7857
8869
  }, {
7858
8870
  daGas: string | number | bigint;
7859
8871
  l2Gas: string | number | bigint;
7860
- }>, import("../gas/gas.js").Gas, {
8872
+ }>, Gas, {
7861
8873
  daGas: string | number | bigint;
7862
8874
  l2Gas: string | number | bigint;
7863
8875
  }>;
8876
+ accumulatedDataArrayLengths: z.ZodEffects<z.ZodObject<{
8877
+ noteHashes: z.ZodNumber;
8878
+ nullifiers: z.ZodNumber;
8879
+ l2ToL1Msgs: z.ZodNumber;
8880
+ publicLogs: z.ZodNumber;
8881
+ publicDataWrites: z.ZodNumber;
8882
+ }, "strip", z.ZodTypeAny, {
8883
+ noteHashes: number;
8884
+ nullifiers: number;
8885
+ l2ToL1Msgs: number;
8886
+ publicLogs: number;
8887
+ publicDataWrites: number;
8888
+ }, {
8889
+ noteHashes: number;
8890
+ nullifiers: number;
8891
+ l2ToL1Msgs: number;
8892
+ publicLogs: number;
8893
+ publicDataWrites: number;
8894
+ }>, import("./avm_accumulated_data.js").AvmAccumulatedDataArrayLengths, {
8895
+ noteHashes: number;
8896
+ nullifiers: number;
8897
+ l2ToL1Msgs: number;
8898
+ publicLogs: number;
8899
+ publicDataWrites: number;
8900
+ }>;
7864
8901
  accumulatedData: z.ZodEffects<z.ZodObject<{
7865
8902
  noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
7866
8903
  nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
@@ -7893,7 +8930,7 @@ export declare class AvmCircuitInputs {
7893
8930
  content: string;
7894
8931
  };
7895
8932
  contractAddress?: any;
7896
- }>, import("../messaging/l2_to_l1_message.js").ScopedL2ToL1Message, {
8933
+ }>, ScopedL2ToL1Message, {
7897
8934
  message: {
7898
8935
  counter: number;
7899
8936
  recipient: string;
@@ -7918,7 +8955,7 @@ export declare class AvmCircuitInputs {
7918
8955
  }, "strip", z.ZodTypeAny, {
7919
8956
  noteHashes: Fr[];
7920
8957
  nullifiers: Fr[];
7921
- l2ToL1Msgs: import("../messaging/l2_to_l1_message.js").ScopedL2ToL1Message[];
8958
+ l2ToL1Msgs: ScopedL2ToL1Message[];
7922
8959
  publicLogs: import("../logs/public_log.js").PublicLog[];
7923
8960
  publicDataWrites: import("./public_data_write.js").PublicDataWrite[];
7924
8961
  }, {
@@ -7958,12 +8995,13 @@ export declare class AvmCircuitInputs {
7958
8995
  reverted: z.ZodBoolean;
7959
8996
  }, "strip", z.ZodTypeAny, {
7960
8997
  globalVariables: GlobalVariables;
7961
- gasSettings: import("../gas/gas_settings.js").GasSettings;
8998
+ gasSettings: GasSettings;
7962
8999
  publicTeardownCallRequest: import("../kernel/public_call_request.js").PublicCallRequest;
7963
9000
  transactionFee: Fr;
7964
9001
  feePayer: AztecAddress;
7965
9002
  startTreeSnapshots: TreeSnapshots;
7966
- startGasUsed: import("../gas/gas.js").Gas;
9003
+ startGasUsed: Gas;
9004
+ publicCallRequestArrayLengths: import("../kernel/public_call_request.js").PublicCallRequestArrayLengths;
7967
9005
  publicSetupCallRequests: import("../kernel/public_call_request.js").PublicCallRequest[];
7968
9006
  publicAppLogicCallRequests: import("../kernel/public_call_request.js").PublicCallRequest[];
7969
9007
  previousNonRevertibleAccumulatedDataArrayLengths: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedDataArrayLengths;
@@ -7971,7 +9009,8 @@ export declare class AvmCircuitInputs {
7971
9009
  previousNonRevertibleAccumulatedData: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedData;
7972
9010
  previousRevertibleAccumulatedData: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedData;
7973
9011
  endTreeSnapshots: TreeSnapshots;
7974
- endGasUsed: import("../gas/gas.js").Gas;
9012
+ endGasUsed: Gas;
9013
+ accumulatedDataArrayLengths: import("./avm_accumulated_data.js").AvmAccumulatedDataArrayLengths;
7975
9014
  accumulatedData: import("./avm_accumulated_data.js").AvmAccumulatedData;
7976
9015
  reverted: boolean;
7977
9016
  }, {
@@ -8035,6 +9074,11 @@ export declare class AvmCircuitInputs {
8035
9074
  daGas: string | number | bigint;
8036
9075
  l2Gas: string | number | bigint;
8037
9076
  };
9077
+ publicCallRequestArrayLengths: {
9078
+ setupCalls: number;
9079
+ appLogicCalls: number;
9080
+ teardownCall: boolean;
9081
+ };
8038
9082
  publicSetupCallRequests: {
8039
9083
  isStaticCall: boolean;
8040
9084
  calldataHash: string;
@@ -8103,6 +9147,13 @@ export declare class AvmCircuitInputs {
8103
9147
  daGas: string | number | bigint;
8104
9148
  l2Gas: string | number | bigint;
8105
9149
  };
9150
+ accumulatedDataArrayLengths: {
9151
+ noteHashes: number;
9152
+ nullifiers: number;
9153
+ l2ToL1Msgs: number;
9154
+ publicLogs: number;
9155
+ publicDataWrites: number;
9156
+ };
8106
9157
  accumulatedData: {
8107
9158
  noteHashes: string[];
8108
9159
  nullifiers: string[];
@@ -8183,6 +9234,11 @@ export declare class AvmCircuitInputs {
8183
9234
  daGas: string | number | bigint;
8184
9235
  l2Gas: string | number | bigint;
8185
9236
  };
9237
+ publicCallRequestArrayLengths: {
9238
+ setupCalls: number;
9239
+ appLogicCalls: number;
9240
+ teardownCall: boolean;
9241
+ };
8186
9242
  publicSetupCallRequests: {
8187
9243
  isStaticCall: boolean;
8188
9244
  calldataHash: string;
@@ -8251,6 +9307,13 @@ export declare class AvmCircuitInputs {
8251
9307
  daGas: string | number | bigint;
8252
9308
  l2Gas: string | number | bigint;
8253
9309
  };
9310
+ accumulatedDataArrayLengths: {
9311
+ noteHashes: number;
9312
+ nullifiers: number;
9313
+ l2ToL1Msgs: number;
9314
+ publicLogs: number;
9315
+ publicDataWrites: number;
9316
+ };
8254
9317
  accumulatedData: {
8255
9318
  noteHashes: string[];
8256
9319
  nullifiers: string[];
@@ -8336,6 +9399,11 @@ export declare class AvmCircuitInputs {
8336
9399
  daGas: string | number | bigint;
8337
9400
  l2Gas: string | number | bigint;
8338
9401
  };
9402
+ publicCallRequestArrayLengths: {
9403
+ setupCalls: number;
9404
+ appLogicCalls: number;
9405
+ teardownCall: boolean;
9406
+ };
8339
9407
  publicSetupCallRequests: {
8340
9408
  isStaticCall: boolean;
8341
9409
  calldataHash: string;
@@ -8404,6 +9472,13 @@ export declare class AvmCircuitInputs {
8404
9472
  daGas: string | number | bigint;
8405
9473
  l2Gas: string | number | bigint;
8406
9474
  };
9475
+ accumulatedDataArrayLengths: {
9476
+ noteHashes: number;
9477
+ nullifiers: number;
9478
+ l2ToL1Msgs: number;
9479
+ publicLogs: number;
9480
+ publicDataWrites: number;
9481
+ };
8407
9482
  accumulatedData: {
8408
9483
  noteHashes: string[];
8409
9484
  nullifiers: string[];
@@ -8440,13 +9515,47 @@ export declare class AvmCircuitInputs {
8440
9515
  coinbase?: any;
8441
9516
  feeRecipient?: any;
8442
9517
  };
9518
+ gasSettings: {
9519
+ gasLimits: {
9520
+ daGas: string | number | bigint;
9521
+ l2Gas: string | number | bigint;
9522
+ };
9523
+ teardownGasLimits: {
9524
+ daGas: string | number | bigint;
9525
+ l2Gas: string | number | bigint;
9526
+ };
9527
+ maxFeesPerGas: {
9528
+ feePerDaGas: string;
9529
+ feePerL2Gas: string;
9530
+ };
9531
+ maxPriorityFeesPerGas: {
9532
+ feePerDaGas: string;
9533
+ feePerL2Gas: string;
9534
+ };
9535
+ };
8443
9536
  nonRevertibleAccumulatedData: {
8444
9537
  noteHashes: string[];
8445
9538
  nullifiers: string[];
9539
+ l2ToL1Messages: {
9540
+ message: {
9541
+ counter: number;
9542
+ recipient: string;
9543
+ content: string;
9544
+ };
9545
+ contractAddress?: any;
9546
+ }[];
8446
9547
  };
8447
9548
  revertibleAccumulatedData: {
8448
9549
  noteHashes: string[];
8449
9550
  nullifiers: string[];
9551
+ l2ToL1Messages: {
9552
+ message: {
9553
+ counter: number;
9554
+ recipient: string;
9555
+ content: string;
9556
+ };
9557
+ contractAddress?: any;
9558
+ }[];
8450
9559
  };
8451
9560
  setupEnqueuedCalls: {
8452
9561
  isStaticCall: boolean;
@@ -8466,6 +9575,10 @@ export declare class AvmCircuitInputs {
8466
9575
  contractAddress?: any;
8467
9576
  msgSender?: any;
8468
9577
  } | null;
9578
+ gasUsedByPrivate: {
9579
+ daGas: string | number | bigint;
9580
+ l2Gas: string | number | bigint;
9581
+ };
8469
9582
  };
8470
9583
  contractInstances: {
8471
9584
  salt: string;
@@ -8814,6 +9927,11 @@ export declare class AvmCircuitInputs {
8814
9927
  daGas: string | number | bigint;
8815
9928
  l2Gas: string | number | bigint;
8816
9929
  };
9930
+ publicCallRequestArrayLengths: {
9931
+ setupCalls: number;
9932
+ appLogicCalls: number;
9933
+ teardownCall: boolean;
9934
+ };
8817
9935
  publicSetupCallRequests: {
8818
9936
  isStaticCall: boolean;
8819
9937
  calldataHash: string;
@@ -8882,6 +10000,13 @@ export declare class AvmCircuitInputs {
8882
10000
  daGas: string | number | bigint;
8883
10001
  l2Gas: string | number | bigint;
8884
10002
  };
10003
+ accumulatedDataArrayLengths: {
10004
+ noteHashes: number;
10005
+ nullifiers: number;
10006
+ l2ToL1Msgs: number;
10007
+ publicLogs: number;
10008
+ publicDataWrites: number;
10009
+ };
8885
10010
  accumulatedData: {
8886
10011
  noteHashes: string[];
8887
10012
  nullifiers: string[];
@@ -8918,13 +10043,47 @@ export declare class AvmCircuitInputs {
8918
10043
  coinbase?: any;
8919
10044
  feeRecipient?: any;
8920
10045
  };
10046
+ gasSettings: {
10047
+ gasLimits: {
10048
+ daGas: string | number | bigint;
10049
+ l2Gas: string | number | bigint;
10050
+ };
10051
+ teardownGasLimits: {
10052
+ daGas: string | number | bigint;
10053
+ l2Gas: string | number | bigint;
10054
+ };
10055
+ maxFeesPerGas: {
10056
+ feePerDaGas: string;
10057
+ feePerL2Gas: string;
10058
+ };
10059
+ maxPriorityFeesPerGas: {
10060
+ feePerDaGas: string;
10061
+ feePerL2Gas: string;
10062
+ };
10063
+ };
8921
10064
  nonRevertibleAccumulatedData: {
8922
10065
  noteHashes: string[];
8923
10066
  nullifiers: string[];
10067
+ l2ToL1Messages: {
10068
+ message: {
10069
+ counter: number;
10070
+ recipient: string;
10071
+ content: string;
10072
+ };
10073
+ contractAddress?: any;
10074
+ }[];
8924
10075
  };
8925
10076
  revertibleAccumulatedData: {
8926
10077
  noteHashes: string[];
8927
10078
  nullifiers: string[];
10079
+ l2ToL1Messages: {
10080
+ message: {
10081
+ counter: number;
10082
+ recipient: string;
10083
+ content: string;
10084
+ };
10085
+ contractAddress?: any;
10086
+ }[];
8928
10087
  };
8929
10088
  setupEnqueuedCalls: {
8930
10089
  isStaticCall: boolean;
@@ -8944,6 +10103,10 @@ export declare class AvmCircuitInputs {
8944
10103
  contractAddress?: any;
8945
10104
  msgSender?: any;
8946
10105
  } | null;
10106
+ gasUsedByPrivate: {
10107
+ daGas: string | number | bigint;
10108
+ l2Gas: string | number | bigint;
10109
+ };
8947
10110
  };
8948
10111
  contractInstances: {
8949
10112
  salt: string;