@aztec/stdlib 3.0.0-nightly.20251005 → 3.0.0-nightly.20251008

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 (110) hide show
  1. package/dest/avm/avm.d.ts +62 -78
  2. package/dest/avm/avm.d.ts.map +1 -1
  3. package/dest/avm/avm.js +8 -22
  4. package/dest/avm/avm_circuit_public_inputs.d.ts +19 -6
  5. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  6. package/dest/avm/avm_circuit_public_inputs.js +12 -11
  7. package/dest/avm/avm_proving_request.d.ts +49 -40
  8. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  9. package/dest/file-store/interface.d.ts +8 -2
  10. package/dest/file-store/interface.d.ts.map +1 -1
  11. package/dest/file-store/s3.d.ts +1 -0
  12. package/dest/file-store/s3.d.ts.map +1 -1
  13. package/dest/file-store/s3.js +81 -16
  14. package/dest/interfaces/aztec-node-admin.d.ts +3 -0
  15. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  16. package/dest/interfaces/configs.d.ts +5 -0
  17. package/dest/interfaces/configs.d.ts.map +1 -1
  18. package/dest/interfaces/configs.js +2 -1
  19. package/dest/interfaces/proving-job.d.ts +49 -40
  20. package/dest/interfaces/proving-job.d.ts.map +1 -1
  21. package/dest/interfaces/validator.d.ts +1 -1
  22. package/dest/interfaces/validator.d.ts.map +1 -1
  23. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts +3 -2
  24. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts.map +1 -1
  25. package/dest/kernel/hints/nullifier_read_request_hints.d.ts +4 -3
  26. package/dest/kernel/hints/nullifier_read_request_hints.d.ts.map +1 -1
  27. package/dest/kernel/private_call_data.d.ts +4 -24
  28. package/dest/kernel/private_call_data.d.ts.map +1 -1
  29. package/dest/kernel/private_call_data.js +4 -16
  30. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +3 -3
  31. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
  32. package/dest/kernel/private_kernel_circuit_public_inputs.js +3 -3
  33. package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts +5 -4
  34. package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts.map +1 -1
  35. package/dest/kernel/private_kernel_init_circuit_private_inputs.js +7 -6
  36. package/dest/kernel/private_kernel_tail_circuit_public_inputs.js +1 -1
  37. package/dest/p2p/block_proposal.d.ts +2 -0
  38. package/dest/p2p/block_proposal.d.ts.map +1 -1
  39. package/dest/rollup/block_constant_data.d.ts +4 -4
  40. package/dest/rollup/block_constant_data.d.ts.map +1 -1
  41. package/dest/rollup/block_constant_data.js +4 -4
  42. package/dest/rollup/checkpoint_constant_data.d.ts +4 -4
  43. package/dest/rollup/checkpoint_constant_data.d.ts.map +1 -1
  44. package/dest/rollup/checkpoint_constant_data.js +4 -4
  45. package/dest/rollup/epoch_constant_data.d.ts +4 -4
  46. package/dest/rollup/epoch_constant_data.d.ts.map +1 -1
  47. package/dest/rollup/epoch_constant_data.js +5 -5
  48. package/dest/snapshots/download.d.ts.map +1 -1
  49. package/dest/snapshots/download.js +58 -2
  50. package/dest/snapshots/upload.d.ts.map +1 -1
  51. package/dest/snapshots/upload.js +1 -0
  52. package/dest/tests/factories.d.ts +5 -4
  53. package/dest/tests/factories.d.ts.map +1 -1
  54. package/dest/tests/factories.js +11 -10
  55. package/dest/tests/mocks.d.ts +2 -2
  56. package/dest/tests/mocks.d.ts.map +1 -1
  57. package/dest/tests/mocks.js +2 -2
  58. package/dest/trees/index.d.ts +0 -1
  59. package/dest/trees/index.d.ts.map +1 -1
  60. package/dest/trees/index.js +0 -1
  61. package/dest/tx/index.d.ts +2 -0
  62. package/dest/tx/index.d.ts.map +1 -1
  63. package/dest/tx/index.js +2 -0
  64. package/dest/tx/private_tx_constant_data.d.ts +60 -0
  65. package/dest/tx/private_tx_constant_data.d.ts.map +1 -0
  66. package/dest/tx/private_tx_constant_data.js +69 -0
  67. package/dest/tx/protocol_contracts.d.ts +29 -0
  68. package/dest/tx/protocol_contracts.d.ts.map +1 -0
  69. package/dest/tx/protocol_contracts.js +49 -0
  70. package/dest/tx/tx_constant_data.d.ts +5 -37
  71. package/dest/tx/tx_constant_data.d.ts.map +1 -1
  72. package/dest/tx/tx_constant_data.js +8 -17
  73. package/dest/tx/validator/error_texts.d.ts +1 -1
  74. package/dest/tx/validator/error_texts.d.ts.map +1 -1
  75. package/dest/tx/validator/error_texts.js +1 -1
  76. package/dest/versioning/versioning.d.ts +2 -2
  77. package/dest/versioning/versioning.d.ts.map +1 -1
  78. package/dest/versioning/versioning.js +8 -8
  79. package/package.json +8 -8
  80. package/src/avm/avm.ts +13 -24
  81. package/src/avm/avm_circuit_public_inputs.ts +11 -10
  82. package/src/file-store/interface.ts +8 -2
  83. package/src/file-store/s3.ts +83 -15
  84. package/src/interfaces/configs.ts +3 -0
  85. package/src/interfaces/validator.ts +1 -1
  86. package/src/kernel/hints/build_nullifier_read_request_hints.ts +3 -2
  87. package/src/kernel/hints/nullifier_read_request_hints.ts +3 -3
  88. package/src/kernel/private_call_data.ts +2 -21
  89. package/src/kernel/private_kernel_circuit_public_inputs.ts +4 -4
  90. package/src/kernel/private_kernel_init_circuit_private_inputs.ts +5 -4
  91. package/src/kernel/private_kernel_tail_circuit_public_inputs.ts +1 -1
  92. package/src/p2p/block_proposal.ts +2 -0
  93. package/src/rollup/block_constant_data.ts +3 -3
  94. package/src/rollup/checkpoint_constant_data.ts +3 -3
  95. package/src/rollup/epoch_constant_data.ts +3 -9
  96. package/src/snapshots/download.ts +66 -2
  97. package/src/snapshots/upload.ts +1 -0
  98. package/src/tests/factories.ts +12 -19
  99. package/src/tests/mocks.ts +3 -3
  100. package/src/trees/index.ts +0 -1
  101. package/src/tx/index.ts +2 -0
  102. package/src/tx/private_tx_constant_data.ts +94 -0
  103. package/src/tx/protocol_contracts.ts +70 -0
  104. package/src/tx/tx_constant_data.ts +6 -19
  105. package/src/tx/validator/error_texts.ts +1 -1
  106. package/src/versioning/versioning.ts +10 -10
  107. package/dest/trees/protocol_contract_leaf.d.ts +0 -84
  108. package/dest/trees/protocol_contract_leaf.d.ts.map +0 -1
  109. package/dest/trees/protocol_contract_leaf.js +0 -100
  110. package/src/trees/protocol_contract_leaf.ts +0 -128
@@ -11,6 +11,7 @@ import { Gas, GasFees, GasSettings } from '../gas/index.js';
11
11
  import { PrivateToAvmAccumulatedData, PrivateToAvmAccumulatedDataArrayLengths } from '../kernel/private_to_avm_accumulated_data.js';
12
12
  import { PublicCallRequest, PublicCallRequestArrayLengths } from '../kernel/public_call_request.js';
13
13
  import { GlobalVariables } from '../tx/global_variables.js';
14
+ import { ProtocolContracts } from '../tx/protocol_contracts.js';
14
15
  import { TreeSnapshots } from '../tx/tree_snapshots.js';
15
16
  import { AvmAccumulatedData, AvmAccumulatedDataArrayLengths } from './avm_accumulated_data.js';
16
17
  import { serializeWithMessagePack } from './message_pack.js';
@@ -18,7 +19,7 @@ import { serializeWithMessagePack } from './message_pack.js';
18
19
  // At some point it might be worth writing Zod schemas for all dependent types and get rid of that.
19
20
  export class AvmCircuitPublicInputs {
20
21
  globalVariables;
21
- protocolContractTreeRoot;
22
+ protocolContracts;
22
23
  startTreeSnapshots;
23
24
  startGasUsed;
24
25
  gasSettings;
@@ -41,11 +42,11 @@ export class AvmCircuitPublicInputs {
41
42
  reverted;
42
43
  constructor(///////////////////////////////////
43
44
  // Inputs.
44
- globalVariables, protocolContractTreeRoot, startTreeSnapshots, startGasUsed, gasSettings, effectiveGasFees, feePayer, proverId, publicCallRequestArrayLengths, publicSetupCallRequests, publicAppLogicCallRequests, publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, ///////////////////////////////////
45
+ globalVariables, protocolContracts, startTreeSnapshots, startGasUsed, gasSettings, effectiveGasFees, feePayer, proverId, publicCallRequestArrayLengths, publicSetupCallRequests, publicAppLogicCallRequests, publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, ///////////////////////////////////
45
46
  // Outputs.
46
47
  endTreeSnapshots, endGasUsed, accumulatedDataArrayLengths, accumulatedData, transactionFee, reverted){
47
48
  this.globalVariables = globalVariables;
48
- this.protocolContractTreeRoot = protocolContractTreeRoot;
49
+ this.protocolContracts = protocolContracts;
49
50
  this.startTreeSnapshots = startTreeSnapshots;
50
51
  this.startGasUsed = startGasUsed;
51
52
  this.gasSettings = gasSettings;
@@ -70,7 +71,7 @@ export class AvmCircuitPublicInputs {
70
71
  static get schema() {
71
72
  return z.object({
72
73
  globalVariables: GlobalVariables.schema,
73
- protocolContractTreeRoot: schemas.Fr,
74
+ protocolContracts: ProtocolContracts.schema,
74
75
  startTreeSnapshots: TreeSnapshots.schema,
75
76
  startGasUsed: Gas.schema,
76
77
  gasSettings: GasSettings.schema,
@@ -91,14 +92,14 @@ export class AvmCircuitPublicInputs {
91
92
  accumulatedData: AvmAccumulatedData.schema,
92
93
  transactionFee: schemas.Fr,
93
94
  reverted: z.boolean()
94
- }).transform(({ globalVariables, protocolContractTreeRoot, startTreeSnapshots, startGasUsed, gasSettings, effectiveGasFees, feePayer, proverId, publicCallRequestArrayLengths, publicSetupCallRequests, publicAppLogicCallRequests, publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, endTreeSnapshots, endGasUsed, accumulatedDataArrayLengths, accumulatedData, transactionFee, reverted })=>new AvmCircuitPublicInputs(globalVariables, protocolContractTreeRoot, startTreeSnapshots, startGasUsed, gasSettings, effectiveGasFees, feePayer, proverId, publicCallRequestArrayLengths, assertLength(publicSetupCallRequests, MAX_ENQUEUED_CALLS_PER_TX), assertLength(publicAppLogicCallRequests, MAX_ENQUEUED_CALLS_PER_TX), publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, endTreeSnapshots, endGasUsed, accumulatedDataArrayLengths, accumulatedData, transactionFee, reverted));
95
+ }).transform(({ globalVariables, protocolContracts, startTreeSnapshots, startGasUsed, gasSettings, effectiveGasFees, feePayer, proverId, publicCallRequestArrayLengths, publicSetupCallRequests, publicAppLogicCallRequests, publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, endTreeSnapshots, endGasUsed, accumulatedDataArrayLengths, accumulatedData, transactionFee, reverted })=>new AvmCircuitPublicInputs(globalVariables, protocolContracts, startTreeSnapshots, startGasUsed, gasSettings, effectiveGasFees, feePayer, proverId, publicCallRequestArrayLengths, assertLength(publicSetupCallRequests, MAX_ENQUEUED_CALLS_PER_TX), assertLength(publicAppLogicCallRequests, MAX_ENQUEUED_CALLS_PER_TX), publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, endTreeSnapshots, endGasUsed, accumulatedDataArrayLengths, accumulatedData, transactionFee, reverted));
95
96
  }
96
97
  static fromBuffer(buffer) {
97
98
  const reader = BufferReader.asReader(buffer);
98
- return new AvmCircuitPublicInputs(reader.readObject(GlobalVariables), reader.readObject(Fr), reader.readObject(TreeSnapshots), reader.readObject(Gas), reader.readObject(GasSettings), reader.readObject(GasFees), reader.readObject(AztecAddress), reader.readObject(Fr), reader.readObject(PublicCallRequestArrayLengths), reader.readArray(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest), reader.readArray(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest), reader.readObject(PublicCallRequest), reader.readObject(PrivateToAvmAccumulatedDataArrayLengths), reader.readObject(PrivateToAvmAccumulatedDataArrayLengths), reader.readObject(PrivateToAvmAccumulatedData), reader.readObject(PrivateToAvmAccumulatedData), reader.readObject(TreeSnapshots), reader.readObject(Gas), reader.readObject(AvmAccumulatedDataArrayLengths), reader.readObject(AvmAccumulatedData), reader.readObject(Fr), reader.readBoolean());
99
+ return new AvmCircuitPublicInputs(reader.readObject(GlobalVariables), reader.readObject(ProtocolContracts), reader.readObject(TreeSnapshots), reader.readObject(Gas), reader.readObject(GasSettings), reader.readObject(GasFees), reader.readObject(AztecAddress), reader.readObject(Fr), reader.readObject(PublicCallRequestArrayLengths), reader.readArray(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest), reader.readArray(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest), reader.readObject(PublicCallRequest), reader.readObject(PrivateToAvmAccumulatedDataArrayLengths), reader.readObject(PrivateToAvmAccumulatedDataArrayLengths), reader.readObject(PrivateToAvmAccumulatedData), reader.readObject(PrivateToAvmAccumulatedData), reader.readObject(TreeSnapshots), reader.readObject(Gas), reader.readObject(AvmAccumulatedDataArrayLengths), reader.readObject(AvmAccumulatedData), reader.readObject(Fr), reader.readBoolean());
99
100
  }
100
101
  toBuffer() {
101
- return serializeToBuffer(this.globalVariables, this.protocolContractTreeRoot, this.startTreeSnapshots, this.startGasUsed, this.gasSettings, this.effectiveGasFees, this.feePayer, this.proverId, this.publicCallRequestArrayLengths, this.publicSetupCallRequests, this.publicAppLogicCallRequests, this.publicTeardownCallRequest, this.previousNonRevertibleAccumulatedDataArrayLengths, this.previousRevertibleAccumulatedDataArrayLengths, this.previousNonRevertibleAccumulatedData, this.previousRevertibleAccumulatedData, this.endTreeSnapshots, this.endGasUsed, this.accumulatedDataArrayLengths, this.accumulatedData, this.transactionFee, this.reverted);
102
+ return serializeToBuffer(this.globalVariables, this.protocolContracts, this.startTreeSnapshots, this.startGasUsed, this.gasSettings, this.effectiveGasFees, this.feePayer, this.proverId, this.publicCallRequestArrayLengths, this.publicSetupCallRequests, this.publicAppLogicCallRequests, this.publicTeardownCallRequest, this.previousNonRevertibleAccumulatedDataArrayLengths, this.previousRevertibleAccumulatedDataArrayLengths, this.previousNonRevertibleAccumulatedData, this.previousRevertibleAccumulatedData, this.endTreeSnapshots, this.endGasUsed, this.accumulatedDataArrayLengths, this.accumulatedData, this.transactionFee, this.reverted);
102
103
  }
103
104
  static fromString(str) {
104
105
  return AvmCircuitPublicInputs.fromBuffer(hexToBuffer(str));
@@ -108,12 +109,12 @@ export class AvmCircuitPublicInputs {
108
109
  }
109
110
  static fromFields(fields) {
110
111
  const reader = FieldReader.asReader(fields);
111
- return new AvmCircuitPublicInputs(GlobalVariables.fromFields(reader), reader.readField(), TreeSnapshots.fromFields(reader), Gas.fromFields(reader), GasSettings.fromFields(reader), GasFees.fromFields(reader), AztecAddress.fromFields(reader), reader.readField(), PublicCallRequestArrayLengths.fromFields(reader), reader.readArray(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest), reader.readArray(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest), PublicCallRequest.fromFields(reader), PrivateToAvmAccumulatedDataArrayLengths.fromFields(reader), PrivateToAvmAccumulatedDataArrayLengths.fromFields(reader), PrivateToAvmAccumulatedData.fromFields(reader), PrivateToAvmAccumulatedData.fromFields(reader), TreeSnapshots.fromFields(reader), Gas.fromFields(reader), AvmAccumulatedDataArrayLengths.fromFields(reader), AvmAccumulatedData.fromFields(reader), reader.readField(), reader.readBoolean());
112
+ return new AvmCircuitPublicInputs(GlobalVariables.fromFields(reader), ProtocolContracts.fromFields(reader), TreeSnapshots.fromFields(reader), Gas.fromFields(reader), GasSettings.fromFields(reader), GasFees.fromFields(reader), AztecAddress.fromFields(reader), reader.readField(), PublicCallRequestArrayLengths.fromFields(reader), reader.readArray(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest), reader.readArray(MAX_ENQUEUED_CALLS_PER_TX, PublicCallRequest), PublicCallRequest.fromFields(reader), PrivateToAvmAccumulatedDataArrayLengths.fromFields(reader), PrivateToAvmAccumulatedDataArrayLengths.fromFields(reader), PrivateToAvmAccumulatedData.fromFields(reader), PrivateToAvmAccumulatedData.fromFields(reader), TreeSnapshots.fromFields(reader), Gas.fromFields(reader), AvmAccumulatedDataArrayLengths.fromFields(reader), AvmAccumulatedData.fromFields(reader), reader.readField(), reader.readBoolean());
112
113
  }
113
114
  toFields() {
114
115
  return [
115
116
  ...this.globalVariables.toFields(),
116
- this.protocolContractTreeRoot,
117
+ ...this.protocolContracts.toFields(),
117
118
  ...this.startTreeSnapshots.toFields(),
118
119
  ...this.startGasUsed.toFields(),
119
120
  ...this.gasSettings.toFields(),
@@ -137,7 +138,7 @@ export class AvmCircuitPublicInputs {
137
138
  ];
138
139
  }
139
140
  static empty() {
140
- return new AvmCircuitPublicInputs(GlobalVariables.empty(), Fr.zero(), 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);
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);
141
142
  }
142
143
  serializeWithMessagePack() {
143
144
  return serializeWithMessagePack(this);
@@ -145,7 +146,7 @@ export class AvmCircuitPublicInputs {
145
146
  [inspect.custom]() {
146
147
  return `AvmCircuitPublicInputs {
147
148
  globalVariables: ${inspect(this.globalVariables)},
148
- protocolContractTreeRoot: ${inspect(this.protocolContractTreeRoot)},
149
+ protocolContracts: ${inspect(this.protocolContracts)},
149
150
  startTreeSnapshots: ${inspect(this.startTreeSnapshots)},
150
151
  startGasUsed: ${inspect(this.startGasUsed)},
151
152
  gasSettings: ${inspect(this.gasSettings)},
@@ -412,19 +412,15 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
412
412
  feePayer?: any;
413
413
  teardownEnqueuedCall?: any;
414
414
  }>;
415
- protocolContractDerivedAddresses: z.ZodArray<z.ZodEffects<z.ZodObject<{
416
- canonicalAddress: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
417
- derivedAddress: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
415
+ protocolContracts: z.ZodEffects<z.ZodObject<{
416
+ derivedAddresses: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>, "many">;
418
417
  }, "strip", z.ZodTypeAny, {
419
- canonicalAddress: import("../aztec-address/index.js").AztecAddress;
420
- derivedAddress: import("../aztec-address/index.js").AztecAddress;
418
+ derivedAddresses: import("../aztec-address/index.js").AztecAddress[];
421
419
  }, {
422
- canonicalAddress?: any;
423
- derivedAddress?: any;
424
- }>, import("./avm.js").AvmProtocolContractAddressHint, {
425
- canonicalAddress?: any;
426
- derivedAddress?: any;
427
- }>, "many">;
420
+ derivedAddresses: any[];
421
+ }>, import("../tx/protocol_contracts.js").ProtocolContracts, {
422
+ derivedAddresses: any[];
423
+ }>;
428
424
  contractInstances: z.ZodArray<z.ZodEffects<z.ZodObject<{
429
425
  address: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
430
426
  salt: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
@@ -455,8 +451,8 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
455
451
  }>;
456
452
  }, "strip", z.ZodTypeAny, {
457
453
  salt: import("@aztec/foundation/schemas").Fr;
458
- address: import("../aztec-address/index.js").AztecAddress;
459
454
  publicKeys: import("../keys/public_keys.js").PublicKeys;
455
+ address: import("../aztec-address/index.js").AztecAddress;
460
456
  deployer: import("../aztec-address/index.js").AztecAddress;
461
457
  currentContractClassId: import("@aztec/foundation/schemas").Fr;
462
458
  originalContractClassId: import("@aztec/foundation/schemas").Fr;
@@ -2106,8 +2102,8 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
2106
2102
  }>, "many">;
2107
2103
  }, "strip", z.ZodTypeAny, {
2108
2104
  globalVariables: import("../tx/global_variables.js").GlobalVariables;
2105
+ protocolContracts: import("../tx/protocol_contracts.js").ProtocolContracts;
2109
2106
  tx: import("./avm.js").AvmTxHint;
2110
- protocolContractDerivedAddresses: import("./avm.js").AvmProtocolContractAddressHint[];
2111
2107
  contractInstances: import("./avm.js").AvmContractInstanceHint[];
2112
2108
  contractClasses: import("./avm.js").AvmContractClassHint[];
2113
2109
  bytecodeCommitments: import("./avm.js").AvmBytecodeCommitmentHint[];
@@ -2183,6 +2179,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
2183
2179
  coinbase?: any;
2184
2180
  feeRecipient?: any;
2185
2181
  };
2182
+ protocolContracts: {
2183
+ derivedAddresses: any[];
2184
+ };
2186
2185
  tx: {
2187
2186
  hash: string;
2188
2187
  gasSettings: {
@@ -2238,10 +2237,6 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
2238
2237
  feePayer?: any;
2239
2238
  teardownEnqueuedCall?: any;
2240
2239
  };
2241
- protocolContractDerivedAddresses: {
2242
- canonicalAddress?: any;
2243
- derivedAddress?: any;
2244
- }[];
2245
2240
  contractInstances: {
2246
2241
  salt: string;
2247
2242
  publicKeys: {
@@ -2540,6 +2535,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
2540
2535
  coinbase?: any;
2541
2536
  feeRecipient?: any;
2542
2537
  };
2538
+ protocolContracts: {
2539
+ derivedAddresses: any[];
2540
+ };
2543
2541
  tx: {
2544
2542
  hash: string;
2545
2543
  gasSettings: {
@@ -2595,10 +2593,6 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
2595
2593
  feePayer?: any;
2596
2594
  teardownEnqueuedCall?: any;
2597
2595
  };
2598
- protocolContractDerivedAddresses: {
2599
- canonicalAddress?: any;
2600
- derivedAddress?: any;
2601
- }[];
2602
2596
  contractInstances: {
2603
2597
  salt: string;
2604
2598
  publicKeys: {
@@ -2940,7 +2934,15 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
2940
2934
  coinbase?: any;
2941
2935
  feeRecipient?: any;
2942
2936
  }>;
2943
- protocolContractTreeRoot: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
2937
+ protocolContracts: z.ZodEffects<z.ZodObject<{
2938
+ derivedAddresses: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>, "many">;
2939
+ }, "strip", z.ZodTypeAny, {
2940
+ derivedAddresses: import("../aztec-address/index.js").AztecAddress[];
2941
+ }, {
2942
+ derivedAddresses: any[];
2943
+ }>, import("../tx/protocol_contracts.js").ProtocolContracts, {
2944
+ derivedAddresses: any[];
2945
+ }>;
2944
2946
  startTreeSnapshots: z.ZodEffects<z.ZodObject<{
2945
2947
  l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
2946
2948
  root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
@@ -3604,7 +3606,7 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
3604
3606
  }, "strip", z.ZodTypeAny, {
3605
3607
  globalVariables: import("../tx/global_variables.js").GlobalVariables;
3606
3608
  gasSettings: import("../gas/gas_settings.js").GasSettings;
3607
- protocolContractTreeRoot: import("@aztec/foundation/schemas").Fr;
3609
+ protocolContracts: import("../tx/protocol_contracts.js").ProtocolContracts;
3608
3610
  publicTeardownCallRequest: import("../kernel/public_call_request.js").PublicCallRequest;
3609
3611
  transactionFee: import("@aztec/foundation/schemas").Fr;
3610
3612
  feePayer: import("../aztec-address/index.js").AztecAddress;
@@ -3656,7 +3658,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
3656
3658
  feePerL2Gas: string | number | bigint;
3657
3659
  };
3658
3660
  };
3659
- protocolContractTreeRoot: string;
3661
+ protocolContracts: {
3662
+ derivedAddresses: any[];
3663
+ };
3660
3664
  publicTeardownCallRequest: {
3661
3665
  isStaticCall: boolean;
3662
3666
  calldataHash: string;
@@ -3818,7 +3822,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
3818
3822
  feePerL2Gas: string | number | bigint;
3819
3823
  };
3820
3824
  };
3821
- protocolContractTreeRoot: string;
3825
+ protocolContracts: {
3826
+ derivedAddresses: any[];
3827
+ };
3822
3828
  publicTeardownCallRequest: {
3823
3829
  isStaticCall: boolean;
3824
3830
  calldataHash: string;
@@ -3985,7 +3991,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
3985
3991
  feePerL2Gas: string | number | bigint;
3986
3992
  };
3987
3993
  };
3988
- protocolContractTreeRoot: string;
3994
+ protocolContracts: {
3995
+ derivedAddresses: any[];
3996
+ };
3989
3997
  publicTeardownCallRequest: {
3990
3998
  isStaticCall: boolean;
3991
3999
  calldataHash: string;
@@ -4130,6 +4138,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
4130
4138
  coinbase?: any;
4131
4139
  feeRecipient?: any;
4132
4140
  };
4141
+ protocolContracts: {
4142
+ derivedAddresses: any[];
4143
+ };
4133
4144
  tx: {
4134
4145
  hash: string;
4135
4146
  gasSettings: {
@@ -4185,10 +4196,6 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
4185
4196
  feePayer?: any;
4186
4197
  teardownEnqueuedCall?: any;
4187
4198
  };
4188
- protocolContractDerivedAddresses: {
4189
- canonicalAddress?: any;
4190
- derivedAddress?: any;
4191
- }[];
4192
4199
  contractInstances: {
4193
4200
  salt: string;
4194
4201
  publicKeys: {
@@ -4507,7 +4514,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
4507
4514
  feePerL2Gas: string | number | bigint;
4508
4515
  };
4509
4516
  };
4510
- protocolContractTreeRoot: string;
4517
+ protocolContracts: {
4518
+ derivedAddresses: any[];
4519
+ };
4511
4520
  publicTeardownCallRequest: {
4512
4521
  isStaticCall: boolean;
4513
4522
  calldataHash: string;
@@ -4652,6 +4661,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
4652
4661
  coinbase?: any;
4653
4662
  feeRecipient?: any;
4654
4663
  };
4664
+ protocolContracts: {
4665
+ derivedAddresses: any[];
4666
+ };
4655
4667
  tx: {
4656
4668
  hash: string;
4657
4669
  gasSettings: {
@@ -4707,10 +4719,6 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
4707
4719
  feePayer?: any;
4708
4720
  teardownEnqueuedCall?: any;
4709
4721
  };
4710
- protocolContractDerivedAddresses: {
4711
- canonicalAddress?: any;
4712
- derivedAddress?: any;
4713
- }[];
4714
4722
  contractInstances: {
4715
4723
  salt: string;
4716
4724
  publicKeys: {
@@ -5035,7 +5043,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
5035
5043
  feePerL2Gas: string | number | bigint;
5036
5044
  };
5037
5045
  };
5038
- protocolContractTreeRoot: string;
5046
+ protocolContracts: {
5047
+ derivedAddresses: any[];
5048
+ };
5039
5049
  publicTeardownCallRequest: {
5040
5050
  isStaticCall: boolean;
5041
5051
  calldataHash: string;
@@ -5180,6 +5190,9 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
5180
5190
  coinbase?: any;
5181
5191
  feeRecipient?: any;
5182
5192
  };
5193
+ protocolContracts: {
5194
+ derivedAddresses: any[];
5195
+ };
5183
5196
  tx: {
5184
5197
  hash: string;
5185
5198
  gasSettings: {
@@ -5235,10 +5248,6 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
5235
5248
  feePayer?: any;
5236
5249
  teardownEnqueuedCall?: any;
5237
5250
  };
5238
- protocolContractDerivedAddresses: {
5239
- canonicalAddress?: any;
5240
- derivedAddress?: any;
5241
- }[];
5242
5251
  contractInstances: {
5243
5252
  salt: string;
5244
5253
  publicKeys: {
@@ -1 +1 @@
1
- {"version":3,"file":"avm_proving_request.d.ts","sourceRoot":"","sources":["../../src/avm/avm_proving_request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC"}
@@ -14,9 +14,15 @@ export type FileStoreSaveOptions = {
14
14
  };
15
15
  /** Simple file store. */
16
16
  export interface FileStore extends ReadOnlyFileStore {
17
- /** Saves contents to the given path. Returns an URI that can be used later to `read` the file. */
17
+ /**
18
+ * Saves contents to the given path. Returns an URI that can be used later to `read` the file.
19
+ * Default: `compress` is false unless explicitly set.
20
+ */
18
21
  save(path: string, data: Buffer, opts?: FileStoreSaveOptions): Promise<string>;
19
- /** Uploads contents from a local file. Returns an URI that can be used later to `read` the file. */
22
+ /**
23
+ * Uploads contents from a local file. Returns an URI that can be used later to `read` the file.
24
+ * Default: `compress` is true unless explicitly set to false.
25
+ */
20
26
  upload(destPath: string, srcPath: string, opts?: FileStoreSaveOptions): Promise<string>;
21
27
  }
22
28
  //# sourceMappingURL=interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/file-store/interface.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,MAAM,WAAW,iBAAiB;IAChC,iGAAiG;IACjG,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,wGAAwG;IACxG,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,8DAA8D;IAC9D,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC7C;AAED,MAAM,MAAM,oBAAoB,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE/G,yBAAyB;AACzB,MAAM,WAAW,SAAU,SAAQ,iBAAiB;IAClD,kGAAkG;IAClG,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/E,oGAAoG;IACpG,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACzF"}
1
+ {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/file-store/interface.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,MAAM,WAAW,iBAAiB;IAChC,iGAAiG;IACjG,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,wGAAwG;IACxG,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,8DAA8D;IAC9D,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC7C;AAED,MAAM,MAAM,oBAAoB,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE/G,yBAAyB;AACzB,MAAM,WAAW,SAAU,SAAQ,iBAAiB;IAClD;;;OAGG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/E;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACzF"}
@@ -18,6 +18,7 @@ export declare class S3FileStore implements FileStore {
18
18
  download(pathOrUrlStr: string, destPath: string): Promise<void>;
19
19
  exists(pathOrUrlStr: string): Promise<boolean>;
20
20
  private extractUserMetadata;
21
+ private detectContentType;
21
22
  private buildReturnedUrl;
22
23
  private getBucketAndKey;
23
24
  private getFullPath;
@@ -1 +1 @@
1
- {"version":3,"file":"s3.d.ts","sourceRoot":"","sources":["../../src/file-store/s3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAgBlE,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,gBAAgB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1
  import { createLogger } from '@aztec/foundation/log';
2
2
  import { GetObjectCommand, HeadObjectCommand, PutObjectCommand, S3Client } from '@aws-sdk/client-s3';
3
3
  import { createReadStream, createWriteStream } from 'fs';
4
- import { mkdir } from 'fs/promises';
5
- import { dirname, join } from 'path';
4
+ import { mkdir, mkdtemp, stat, unlink } from 'fs/promises';
5
+ import { tmpdir } from 'os';
6
+ import { basename, dirname, join } from 'path';
6
7
  import { finished } from 'stream/promises';
7
8
  import { createGzip } from 'zlib';
8
9
  function normalizeBasePath(path) {
@@ -35,15 +36,18 @@ export class S3FileStore {
35
36
  }
36
37
  async save(path, data, opts = {}) {
37
38
  const key = this.getFullPath(path);
38
- const shouldCompress = !opts.compress;
39
+ const shouldCompress = !!opts.compress;
39
40
  const body = shouldCompress ? (await import('zlib')).gzipSync(data) : data;
41
+ const contentLength = body.length;
42
+ const contentType = this.detectContentType(key, shouldCompress);
40
43
  const put = new PutObjectCommand({
41
44
  Bucket: this.bucketName,
42
45
  Key: key,
43
46
  Body: body,
44
- ContentEncoding: shouldCompress ? 'gzip' : undefined,
47
+ ContentType: contentType,
45
48
  CacheControl: opts.metadata?.['Cache-control'],
46
- Metadata: this.extractUserMetadata(opts.metadata)
49
+ Metadata: this.extractUserMetadata(opts.metadata),
50
+ ContentLength: contentLength
47
51
  });
48
52
  await this.s3.send(put);
49
53
  return this.buildReturnedUrl(key, !!opts.public);
@@ -54,17 +58,57 @@ export class S3FileStore {
54
58
  await mkdir(dirname(srcPath), {
55
59
  recursive: true
56
60
  }).catch(()=>undefined);
57
- const source = createReadStream(srcPath);
58
- const bodyStream = shouldCompress ? source.pipe(createGzip()) : source;
59
- const put = new PutObjectCommand({
60
- Bucket: this.bucketName,
61
- Key: key,
62
- Body: bodyStream,
63
- ContentEncoding: shouldCompress ? 'gzip' : undefined,
64
- CacheControl: opts.metadata?.['Cache-control'],
65
- Metadata: this.extractUserMetadata(opts.metadata)
66
- });
67
- await this.s3.send(put);
61
+ let contentLength;
62
+ let bodyPath = srcPath;
63
+ // We don't set Content-Encoding and we avoid SigV4 streaming (aws-chunked).
64
+ // With AWS SigV4 streaming uploads (Content-Encoding: aws-chunked[,gzip]), servers require
65
+ // x-amz-decoded-content-length (the size of the decoded payload) and an exact Content-Length
66
+ // that includes chunk metadata. For on-the-fly compression, providing
67
+ // those values without buffering or a pre-pass is impractical. Instead, we pre-gzip to a temp file
68
+ // to know ContentLength up-front and upload the gzipped bytes as-is, omitting Content-Encoding.
69
+ // Reference: AWS SigV4 streaming (chunked upload) requirements —
70
+ // https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
71
+ if (shouldCompress) {
72
+ // Pre-gzip to a temp file so we know the exact length for R2/S3 headers
73
+ const tmpDir = await mkdtemp(join(tmpdir(), 's3-upload-'));
74
+ const gzPath = join(tmpDir, `${basename(srcPath)}.gz`);
75
+ const source = createReadStream(srcPath);
76
+ const gz = createGzip();
77
+ const out = createWriteStream(gzPath);
78
+ try {
79
+ await finished(source.pipe(gz).pipe(out));
80
+ const st = await stat(gzPath);
81
+ contentLength = st.size;
82
+ bodyPath = gzPath;
83
+ } catch (err) {
84
+ // Ensure temp file is removed on failure
85
+ await unlink(gzPath).catch(()=>undefined);
86
+ throw err;
87
+ }
88
+ } else {
89
+ const st = await stat(srcPath);
90
+ contentLength = st.size;
91
+ bodyPath = srcPath;
92
+ }
93
+ const bodyStream = createReadStream(bodyPath);
94
+ const contentType = this.detectContentType(key, shouldCompress);
95
+ try {
96
+ const put = new PutObjectCommand({
97
+ Bucket: this.bucketName,
98
+ Key: key,
99
+ Body: bodyStream,
100
+ ContentType: contentType,
101
+ CacheControl: opts.metadata?.['Cache-control'],
102
+ Metadata: this.extractUserMetadata(opts.metadata),
103
+ // Explicitly set ContentLength so R2 can compute x-amz-decoded-content-length correctly
104
+ ContentLength: contentLength
105
+ });
106
+ await this.s3.send(put);
107
+ } finally{
108
+ if (shouldCompress && bodyPath !== srcPath) {
109
+ await unlink(bodyPath).catch(()=>undefined);
110
+ }
111
+ }
68
112
  return this.buildReturnedUrl(key, !!opts.public);
69
113
  }
70
114
  async read(pathOrUrlStr) {
@@ -116,6 +160,27 @@ export class S3FileStore {
116
160
  const { ['Cache-control']: _ignored, ...rest } = meta;
117
161
  return Object.keys(rest).length ? rest : undefined;
118
162
  }
163
+ detectContentType(key, isCompressed) {
164
+ // Basic content type inference
165
+ const lower = key.toLowerCase();
166
+ if (lower.endsWith('.json') || lower.endsWith('.json.gz')) {
167
+ return 'application/json';
168
+ }
169
+ if (lower.endsWith('.txt') || lower.endsWith('.log') || lower.endsWith('.csv') || lower.endsWith('.md')) {
170
+ return 'text/plain; charset=utf-8';
171
+ }
172
+ if (lower.endsWith('.db') || lower.endsWith('.sqlite') || lower.endsWith('.bin')) {
173
+ return 'application/octet-stream';
174
+ }
175
+ if (lower.endsWith('.wasm') || lower.endsWith('.wasm.gz')) {
176
+ return 'application/wasm';
177
+ }
178
+ // If compressed, prefer octet-stream unless known
179
+ if (isCompressed) {
180
+ return 'application/octet-stream';
181
+ }
182
+ return undefined;
183
+ }
119
184
  buildReturnedUrl(key, makePublic) {
120
185
  if (!makePublic) {
121
186
  return `s3://${this.bucketName}/${key}`;
@@ -95,6 +95,7 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<{
95
95
  skipCollectingAttestations: z.ZodOptional<z.ZodBoolean>;
96
96
  secondsBeforeInvalidatingBlockAsCommitteeMember: z.ZodNumber;
97
97
  secondsBeforeInvalidatingBlockAsNonCommitteeMember: z.ZodNumber;
98
+ broadcastInvalidBlockProposal: z.ZodOptional<z.ZodBoolean>;
98
99
  } & {
99
100
  nodeUrl: z.ZodOptional<z.ZodString>;
100
101
  realProofs: z.ZodBoolean;
@@ -200,6 +201,7 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<{
200
201
  fakeProcessingDelayPerTxMs?: number | undefined;
201
202
  attestationPropagationTime?: number | undefined;
202
203
  skipCollectingAttestations?: boolean | undefined;
204
+ broadcastInvalidBlockProposal?: boolean | undefined;
203
205
  archiverPollingIntervalMS?: number | undefined;
204
206
  archiverBatchSize?: number | undefined;
205
207
  skipValidateBlockAttestations?: boolean | undefined;
@@ -268,6 +270,7 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<{
268
270
  fakeProcessingDelayPerTxMs?: number | undefined;
269
271
  attestationPropagationTime?: number | undefined;
270
272
  skipCollectingAttestations?: boolean | undefined;
273
+ broadcastInvalidBlockProposal?: boolean | undefined;
271
274
  archiverPollingIntervalMS?: string | number | bigint | undefined;
272
275
  archiverBatchSize?: string | number | bigint | undefined;
273
276
  skipValidateBlockAttestations?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"aztec-node-admin.d.ts","sourceRoot":"","sources":["../../src/interfaces/aztec-node-admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAE1F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,KAAK,OAAO,EAAiB,KAAK,iBAAiB,EAA2B,MAAM,sBAAsB,CAAC;AACpH,OAAO,EAAE,KAAK,kBAAkB,EAAgC,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,KAAK,sBAAsB,EAAgC,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,cAAc,CAAC;AACvE,OAAO,EAA+B,KAAK,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE7F;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE3C;;;OAGG;IACH,SAAS,CAAC,MAAM,EAA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AAI,CAAC,CAAC;IAE3B,gDAAgD;IAChD,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B,2EAA2E;IAC3E,gBAAgB,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAEjD,2DAA2D;IAC3D,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CACzE;AAED,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,GAC1D,eAAe,GACf,YAAY,GACZ,aAAa,GACb,IAAI,CAAC,sBAAsB,EAAE,2BAA2B,GAAG,+BAA+B,GAAG,mBAAmB,CAAC,GAAG;IAClH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUU,CAAC;AAElD,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,cAAc,CAYhE,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,OAAO,CAAC,kBAAkB,CAAM,EAC1C,KAAK,sBAAe,GACnB,cAAc,CAMhB"}
@@ -49,6 +49,8 @@ export interface SequencerConfig {
49
49
  skipCollectingAttestations?: boolean;
50
50
  /** Do not invalidate the previous block if invalid when we are the proposer (for testing only) */
51
51
  skipInvalidateBlockAsProposer?: boolean;
52
+ /** Broadcast invalid block proposals with corrupted state (for testing only) */
53
+ broadcastInvalidBlockProposal?: boolean;
52
54
  }
53
55
  export declare const SequencerConfigSchema: z.ZodObject<{
54
56
  transactionPollingIntervalMS: z.ZodOptional<z.ZodNumber>;
@@ -101,6 +103,7 @@ export declare const SequencerConfigSchema: z.ZodObject<{
101
103
  skipCollectingAttestations: z.ZodOptional<z.ZodBoolean>;
102
104
  secondsBeforeInvalidatingBlockAsCommitteeMember: z.ZodNumber;
103
105
  secondsBeforeInvalidatingBlockAsNonCommitteeMember: z.ZodNumber;
106
+ broadcastInvalidBlockProposal: z.ZodOptional<z.ZodBoolean>;
104
107
  }, "strip", z.ZodTypeAny, {
105
108
  secondsBeforeInvalidatingBlockAsCommitteeMember: number;
106
109
  secondsBeforeInvalidatingBlockAsNonCommitteeMember: number;
@@ -132,6 +135,7 @@ export declare const SequencerConfigSchema: z.ZodObject<{
132
135
  fakeProcessingDelayPerTxMs?: number | undefined;
133
136
  attestationPropagationTime?: number | undefined;
134
137
  skipCollectingAttestations?: boolean | undefined;
138
+ broadcastInvalidBlockProposal?: boolean | undefined;
135
139
  }, {
136
140
  secondsBeforeInvalidatingBlockAsCommitteeMember: number;
137
141
  secondsBeforeInvalidatingBlockAsNonCommitteeMember: number;
@@ -163,5 +167,6 @@ export declare const SequencerConfigSchema: z.ZodObject<{
163
167
  fakeProcessingDelayPerTxMs?: number | undefined;
164
168
  attestationPropagationTime?: number | undefined;
165
169
  skipCollectingAttestations?: boolean | undefined;
170
+ broadcastInvalidBlockProposal?: boolean | undefined;
166
171
  }>;
167
172
  //# sourceMappingURL=configs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../src/interfaces/configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAC3D,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C;IACvC,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gFAAgF;IAChF,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,0EAA0E;IAC1E,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,wGAAwG;IACxG,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,oGAAoG;IACpG,+CAA+C,CAAC,EAAE,MAAM,CAAC;IACzD,wGAAwG;IACxG,kDAAkD,CAAC,EAAE,MAAM,CAAC;IAC5D,sDAAsD;IACtD,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,kGAAkG;IAClG,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,gFAAgF;IAChF,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBE,CAAC"}
@@ -21,5 +21,6 @@ export const SequencerConfigSchema = z.object({
21
21
  attestationPropagationTime: z.number().optional(),
22
22
  skipCollectingAttestations: z.boolean().optional(),
23
23
  secondsBeforeInvalidatingBlockAsCommitteeMember: z.number(),
24
- secondsBeforeInvalidatingBlockAsNonCommitteeMember: z.number()
24
+ secondsBeforeInvalidatingBlockAsNonCommitteeMember: z.number(),
25
+ broadcastInvalidBlockProposal: z.boolean().optional()
25
26
  });