@aztec/stdlib 1.0.0-nightly.20250606 → 1.0.0-nightly.20250607

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 (121) hide show
  1. package/dest/avm/avm.d.ts +304 -304
  2. package/dest/avm/avm_circuit_public_inputs.d.ts +60 -60
  3. package/dest/avm/avm_proving_request.d.ts +184 -184
  4. package/dest/avm/message_pack.d.ts.map +1 -1
  5. package/dest/avm/message_pack.js +2 -1
  6. package/dest/block/l2_block.js +1 -1
  7. package/dest/block/l2_block_code_to_purge.js +1 -1
  8. package/dest/block/l2_block_source.d.ts +2 -0
  9. package/dest/block/l2_block_source.d.ts.map +1 -1
  10. package/dest/fees/transaction_fee.js +3 -3
  11. package/dest/gas/gas.js +1 -1
  12. package/dest/gas/gas_fees.d.ts +15 -14
  13. package/dest/gas/gas_fees.d.ts.map +1 -1
  14. package/dest/gas/gas_fees.js +17 -18
  15. package/dest/gas/gas_settings.d.ts +24 -24
  16. package/dest/gas/gas_settings.d.ts.map +1 -1
  17. package/dest/gas/gas_settings.js +1 -1
  18. package/dest/interfaces/archiver.d.ts.map +1 -1
  19. package/dest/interfaces/archiver.js +1 -0
  20. package/dest/interfaces/proving-job.d.ts +185 -185
  21. package/dest/interfaces/proving-job.d.ts.map +1 -1
  22. package/dest/interfaces/service.d.ts +1 -2
  23. package/dest/interfaces/service.d.ts.map +1 -1
  24. package/dest/interfaces/service.js +0 -7
  25. package/dest/kernel/combined_constant_data.d.ts +71 -0
  26. package/dest/kernel/combined_constant_data.d.ts.map +1 -0
  27. package/dest/kernel/combined_constant_data.js +73 -0
  28. package/dest/kernel/index.d.ts +1 -0
  29. package/dest/kernel/index.d.ts.map +1 -1
  30. package/dest/kernel/index.js +1 -0
  31. package/dest/rollup/base_or_merge_rollup_public_inputs.d.ts +3 -3
  32. package/dest/rollup/base_or_merge_rollup_public_inputs.d.ts.map +1 -1
  33. package/dest/rollup/base_or_merge_rollup_public_inputs.js +3 -3
  34. package/dest/rollup/base_rollup_hints.d.ts +14 -15
  35. package/dest/rollup/base_rollup_hints.d.ts.map +1 -1
  36. package/dest/rollup/base_rollup_hints.js +12 -13
  37. package/dest/rollup/block_root_or_block_merge_public_inputs.d.ts +24 -9
  38. package/dest/rollup/block_root_or_block_merge_public_inputs.d.ts.map +1 -1
  39. package/dest/rollup/block_root_or_block_merge_public_inputs.js +14 -7
  40. package/dest/rollup/block_root_rollup.d.ts +2 -2
  41. package/dest/rollup/block_root_rollup.js +1 -1
  42. package/dest/rollup/constant_rollup_data.d.ts +45 -0
  43. package/dest/rollup/constant_rollup_data.d.ts.map +1 -0
  44. package/dest/rollup/{block_constant_data.js → constant_rollup_data.js} +13 -10
  45. package/dest/rollup/empty_block_root_rollup_inputs.d.ts +4 -4
  46. package/dest/rollup/empty_block_root_rollup_inputs.d.ts.map +1 -1
  47. package/dest/rollup/empty_block_root_rollup_inputs.js +2 -2
  48. package/dest/rollup/index.d.ts +1 -2
  49. package/dest/rollup/index.d.ts.map +1 -1
  50. package/dest/rollup/index.js +1 -2
  51. package/dest/rollup/root_rollup.d.ts +6 -2
  52. package/dest/rollup/root_rollup.d.ts.map +1 -1
  53. package/dest/rollup/root_rollup.js +6 -3
  54. package/dest/tests/factories.d.ts +10 -1
  55. package/dest/tests/factories.d.ts.map +1 -1
  56. package/dest/tests/factories.js +33 -20
  57. package/dest/tests/mocks.js +2 -2
  58. package/dest/trees/append_only_tree_snapshot.d.ts +2 -2
  59. package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
  60. package/dest/trees/append_only_tree_snapshot.js +2 -2
  61. package/dest/tx/block_header.js +2 -2
  62. package/dest/tx/global_variables.d.ts +12 -12
  63. package/dest/tx/global_variables.js +2 -2
  64. package/dest/tx/partial_state_reference.js +2 -2
  65. package/dest/tx/processed_tx.d.ts +3 -2
  66. package/dest/tx/processed_tx.d.ts.map +1 -1
  67. package/dest/tx/processed_tx.js +7 -5
  68. package/dest/tx/proposed_block_header.d.ts +2 -2
  69. package/dest/tx/proposed_block_header.js +1 -1
  70. package/dest/tx/public_simulation_output.d.ts +3 -3
  71. package/dest/tx/public_simulation_output.d.ts.map +1 -1
  72. package/dest/tx/public_simulation_output.js +7 -7
  73. package/dest/tx/state_reference.js +2 -2
  74. package/dest/tx/tree_snapshots.js +2 -2
  75. package/dest/tx/tx_context.d.ts +32 -32
  76. package/dest/types/shared.d.ts +4 -0
  77. package/dest/types/shared.d.ts.map +1 -1
  78. package/dest/zkpassport/index.d.ts +31 -0
  79. package/dest/zkpassport/index.d.ts.map +1 -0
  80. package/dest/zkpassport/index.js +81 -0
  81. package/package.json +9 -8
  82. package/src/avm/message_pack.ts +1 -0
  83. package/src/block/l2_block.ts +1 -1
  84. package/src/block/l2_block_code_to_purge.ts +1 -1
  85. package/src/block/l2_block_source.ts +3 -0
  86. package/src/fees/transaction_fee.ts +5 -5
  87. package/src/gas/gas.ts +1 -1
  88. package/src/gas/gas_fees.ts +27 -23
  89. package/src/gas/gas_settings.ts +1 -5
  90. package/src/interfaces/archiver.ts +1 -0
  91. package/src/interfaces/service.ts +1 -11
  92. package/src/kernel/combined_constant_data.ts +128 -0
  93. package/src/kernel/index.ts +1 -0
  94. package/src/rollup/base_or_merge_rollup_public_inputs.ts +4 -4
  95. package/src/rollup/base_rollup_hints.ts +11 -12
  96. package/src/rollup/block_root_or_block_merge_public_inputs.ts +18 -7
  97. package/src/rollup/block_root_rollup.ts +1 -1
  98. package/src/rollup/constant_rollup_data.ts +54 -0
  99. package/src/rollup/empty_block_root_rollup_inputs.ts +3 -3
  100. package/src/rollup/index.ts +1 -2
  101. package/src/rollup/root_rollup.ts +7 -5
  102. package/src/tests/factories.ts +54 -30
  103. package/src/tests/mocks.ts +2 -2
  104. package/src/trees/append_only_tree_snapshot.ts +2 -2
  105. package/src/tx/block_header.ts +2 -2
  106. package/src/tx/global_variables.ts +2 -2
  107. package/src/tx/partial_state_reference.ts +4 -4
  108. package/src/tx/processed_tx.ts +10 -7
  109. package/src/tx/proposed_block_header.ts +1 -1
  110. package/src/tx/public_simulation_output.ts +5 -5
  111. package/src/tx/state_reference.ts +2 -2
  112. package/src/tx/tree_snapshots.ts +8 -8
  113. package/src/types/shared.ts +5 -0
  114. package/src/zkpassport/index.ts +115 -0
  115. package/dest/rollup/block_constant_data.d.ts +0 -37
  116. package/dest/rollup/block_constant_data.d.ts.map +0 -1
  117. package/dest/rollup/epoch_constant_data.d.ts +0 -39
  118. package/dest/rollup/epoch_constant_data.d.ts.map +0 -1
  119. package/dest/rollup/epoch_constant_data.js +0 -40
  120. package/src/rollup/block_constant_data.ts +0 -63
  121. package/src/rollup/epoch_constant_data.ts +0 -44
@@ -42,17 +42,17 @@ export declare class AvmCircuitPublicInputs {
42
42
  coinbase: import("@aztec/foundation/schemas").ZodFor<import("@aztec/foundation/schemas").EthAddress>;
43
43
  feeRecipient: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
44
44
  gasFees: z.ZodEffects<z.ZodObject<{
45
- feePerDaGas: z.ZodType<Fr, any, string>;
46
- feePerL2Gas: z.ZodType<Fr, any, string>;
45
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
46
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
47
47
  }, "strip", z.ZodTypeAny, {
48
- feePerDaGas: Fr;
49
- feePerL2Gas: Fr;
48
+ feePerDaGas: bigint;
49
+ feePerL2Gas: bigint;
50
50
  }, {
51
- feePerDaGas: string;
52
- feePerL2Gas: string;
51
+ feePerDaGas: string | number | bigint;
52
+ feePerL2Gas: string | number | bigint;
53
53
  }>, GasFees, {
54
- feePerDaGas: string;
55
- feePerL2Gas: string;
54
+ feePerDaGas: string | number | bigint;
55
+ feePerL2Gas: string | number | bigint;
56
56
  }>;
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  chainId: Fr;
@@ -65,8 +65,8 @@ export declare class AvmCircuitPublicInputs {
65
65
  gasFees: GasFees;
66
66
  }, {
67
67
  gasFees: {
68
- feePerDaGas: string;
69
- feePerL2Gas: string;
68
+ feePerDaGas: string | number | bigint;
69
+ feePerL2Gas: string | number | bigint;
70
70
  };
71
71
  chainId?: any;
72
72
  version?: any;
@@ -77,8 +77,8 @@ export declare class AvmCircuitPublicInputs {
77
77
  feeRecipient?: any;
78
78
  }>, GlobalVariables, {
79
79
  gasFees: {
80
- feePerDaGas: string;
81
- feePerL2Gas: string;
80
+ feePerDaGas: string | number | bigint;
81
+ feePerL2Gas: string | number | bigint;
82
82
  };
83
83
  chainId?: any;
84
84
  version?: any;
@@ -222,30 +222,30 @@ export declare class AvmCircuitPublicInputs {
222
222
  l2Gas: string | number | bigint;
223
223
  }>;
224
224
  maxFeesPerGas: z.ZodEffects<z.ZodObject<{
225
- feePerDaGas: z.ZodType<Fr, any, string>;
226
- feePerL2Gas: z.ZodType<Fr, any, string>;
225
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
226
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
227
227
  }, "strip", z.ZodTypeAny, {
228
- feePerDaGas: Fr;
229
- feePerL2Gas: Fr;
228
+ feePerDaGas: bigint;
229
+ feePerL2Gas: bigint;
230
230
  }, {
231
- feePerDaGas: string;
232
- feePerL2Gas: string;
231
+ feePerDaGas: string | number | bigint;
232
+ feePerL2Gas: string | number | bigint;
233
233
  }>, GasFees, {
234
- feePerDaGas: string;
235
- feePerL2Gas: string;
234
+ feePerDaGas: string | number | bigint;
235
+ feePerL2Gas: string | number | bigint;
236
236
  }>;
237
237
  maxPriorityFeesPerGas: z.ZodEffects<z.ZodObject<{
238
- feePerDaGas: z.ZodType<Fr, any, string>;
239
- feePerL2Gas: z.ZodType<Fr, any, string>;
238
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
239
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
240
240
  }, "strip", z.ZodTypeAny, {
241
- feePerDaGas: Fr;
242
- feePerL2Gas: Fr;
241
+ feePerDaGas: bigint;
242
+ feePerL2Gas: bigint;
243
243
  }, {
244
- feePerDaGas: string;
245
- feePerL2Gas: string;
244
+ feePerDaGas: string | number | bigint;
245
+ feePerL2Gas: string | number | bigint;
246
246
  }>, GasFees, {
247
- feePerDaGas: string;
248
- feePerL2Gas: string;
247
+ feePerDaGas: string | number | bigint;
248
+ feePerL2Gas: string | number | bigint;
249
249
  }>;
250
250
  }, "strip", z.ZodTypeAny, {
251
251
  gasLimits: Gas;
@@ -262,12 +262,12 @@ export declare class AvmCircuitPublicInputs {
262
262
  l2Gas: string | number | bigint;
263
263
  };
264
264
  maxFeesPerGas: {
265
- feePerDaGas: string;
266
- feePerL2Gas: string;
265
+ feePerDaGas: string | number | bigint;
266
+ feePerL2Gas: string | number | bigint;
267
267
  };
268
268
  maxPriorityFeesPerGas: {
269
- feePerDaGas: string;
270
- feePerL2Gas: string;
269
+ feePerDaGas: string | number | bigint;
270
+ feePerL2Gas: string | number | bigint;
271
271
  };
272
272
  }>, GasSettings, {
273
273
  gasLimits: {
@@ -279,26 +279,26 @@ export declare class AvmCircuitPublicInputs {
279
279
  l2Gas: string | number | bigint;
280
280
  };
281
281
  maxFeesPerGas: {
282
- feePerDaGas: string;
283
- feePerL2Gas: string;
282
+ feePerDaGas: string | number | bigint;
283
+ feePerL2Gas: string | number | bigint;
284
284
  };
285
285
  maxPriorityFeesPerGas: {
286
- feePerDaGas: string;
287
- feePerL2Gas: string;
286
+ feePerDaGas: string | number | bigint;
287
+ feePerL2Gas: string | number | bigint;
288
288
  };
289
289
  }>;
290
290
  effectiveGasFees: z.ZodEffects<z.ZodObject<{
291
- feePerDaGas: z.ZodType<Fr, any, string>;
292
- feePerL2Gas: z.ZodType<Fr, any, string>;
291
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
292
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
293
293
  }, "strip", z.ZodTypeAny, {
294
- feePerDaGas: Fr;
295
- feePerL2Gas: Fr;
294
+ feePerDaGas: bigint;
295
+ feePerL2Gas: bigint;
296
296
  }, {
297
- feePerDaGas: string;
298
- feePerL2Gas: string;
297
+ feePerDaGas: string | number | bigint;
298
+ feePerL2Gas: string | number | bigint;
299
299
  }>, GasFees, {
300
- feePerDaGas: string;
301
- feePerL2Gas: string;
300
+ feePerDaGas: string | number | bigint;
301
+ feePerL2Gas: string | number | bigint;
302
302
  }>;
303
303
  feePayer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
304
304
  publicCallRequestArrayLengths: z.ZodEffects<z.ZodObject<{
@@ -775,8 +775,8 @@ export declare class AvmCircuitPublicInputs {
775
775
  }, {
776
776
  globalVariables: {
777
777
  gasFees: {
778
- feePerDaGas: string;
779
- feePerL2Gas: string;
778
+ feePerDaGas: string | number | bigint;
779
+ feePerL2Gas: string | number | bigint;
780
780
  };
781
781
  chainId?: any;
782
782
  version?: any;
@@ -796,12 +796,12 @@ export declare class AvmCircuitPublicInputs {
796
796
  l2Gas: string | number | bigint;
797
797
  };
798
798
  maxFeesPerGas: {
799
- feePerDaGas: string;
800
- feePerL2Gas: string;
799
+ feePerDaGas: string | number | bigint;
800
+ feePerL2Gas: string | number | bigint;
801
801
  };
802
802
  maxPriorityFeesPerGas: {
803
- feePerDaGas: string;
804
- feePerL2Gas: string;
803
+ feePerDaGas: string | number | bigint;
804
+ feePerL2Gas: string | number | bigint;
805
805
  };
806
806
  };
807
807
  publicTeardownCallRequest: {
@@ -812,8 +812,8 @@ export declare class AvmCircuitPublicInputs {
812
812
  };
813
813
  transactionFee: string;
814
814
  effectiveGasFees: {
815
- feePerDaGas: string;
816
- feePerL2Gas: string;
815
+ feePerDaGas: string | number | bigint;
816
+ feePerL2Gas: string | number | bigint;
817
817
  };
818
818
  startTreeSnapshots: {
819
819
  noteHashTree: {
@@ -936,8 +936,8 @@ export declare class AvmCircuitPublicInputs {
936
936
  }>, AvmCircuitPublicInputs, {
937
937
  globalVariables: {
938
938
  gasFees: {
939
- feePerDaGas: string;
940
- feePerL2Gas: string;
939
+ feePerDaGas: string | number | bigint;
940
+ feePerL2Gas: string | number | bigint;
941
941
  };
942
942
  chainId?: any;
943
943
  version?: any;
@@ -957,12 +957,12 @@ export declare class AvmCircuitPublicInputs {
957
957
  l2Gas: string | number | bigint;
958
958
  };
959
959
  maxFeesPerGas: {
960
- feePerDaGas: string;
961
- feePerL2Gas: string;
960
+ feePerDaGas: string | number | bigint;
961
+ feePerL2Gas: string | number | bigint;
962
962
  };
963
963
  maxPriorityFeesPerGas: {
964
- feePerDaGas: string;
965
- feePerL2Gas: string;
964
+ feePerDaGas: string | number | bigint;
965
+ feePerL2Gas: string | number | bigint;
966
966
  };
967
967
  };
968
968
  publicTeardownCallRequest: {
@@ -973,8 +973,8 @@ export declare class AvmCircuitPublicInputs {
973
973
  };
974
974
  transactionFee: string;
975
975
  effectiveGasFees: {
976
- feePerDaGas: string;
977
- feePerL2Gas: string;
976
+ feePerDaGas: string | number | bigint;
977
+ feePerL2Gas: string | number | bigint;
978
978
  };
979
979
  startTreeSnapshots: {
980
980
  noteHashTree: {