@aztec/stdlib 3.0.0-nightly.20251110 → 3.0.0-nightly.20251112

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 (87) hide show
  1. package/dest/abi/abi.d.ts +3 -18
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/avm/avm.d.ts +1088 -909
  4. package/dest/avm/avm.d.ts.map +1 -1
  5. package/dest/avm/avm.js +26 -49
  6. package/dest/avm/avm_accumulated_data.d.ts +6 -6
  7. package/dest/avm/avm_circuit_public_inputs.d.ts +27 -27
  8. package/dest/avm/avm_proving_request.d.ts +473 -350
  9. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  10. package/dest/avm/public_data_write.d.ts +2 -2
  11. package/dest/aztec-address/index.d.ts.map +1 -1
  12. package/dest/aztec-address/index.js +8 -2
  13. package/dest/block/l2_block.d.ts +1 -1
  14. package/dest/block/l2_block_info.d.ts +3 -3
  15. package/dest/block/proposal/attestations_and_signers.d.ts +1 -1
  16. package/dest/block/proposal/committee_attestation.d.ts +1 -1
  17. package/dest/block/published_l2_block.d.ts +2 -2
  18. package/dest/block/validate_block_result.d.ts +12 -12
  19. package/dest/contract/contract_deployment_data.d.ts +2 -2
  20. package/dest/contract/interfaces/contract_class.d.ts +38 -119
  21. package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
  22. package/dest/contract/interfaces/contract_instance.d.ts +200 -32
  23. package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
  24. package/dest/database-version/version_manager.d.ts +1 -1
  25. package/dest/file-store/http.d.ts.map +1 -1
  26. package/dest/file-store/http.js +8 -3
  27. package/dest/file-store/s3.d.ts.map +1 -1
  28. package/dest/file-store/s3.js +3 -7
  29. package/dest/interfaces/aztec-node-admin.d.ts +5 -5
  30. package/dest/interfaces/proving-job.d.ts +479 -356
  31. package/dest/interfaces/proving-job.d.ts.map +1 -1
  32. package/dest/interfaces/slasher.d.ts +3 -3
  33. package/dest/interfaces/validator.d.ts +4 -4
  34. package/dest/kernel/private_kernel_prover_output.d.ts +6 -6
  35. package/dest/kernel/private_to_avm_accumulated_data.d.ts +4 -4
  36. package/dest/kernel/public_call_request.d.ts +1 -1
  37. package/dest/keys/public_keys.d.ts +84 -12
  38. package/dest/keys/public_keys.d.ts.map +1 -1
  39. package/dest/logs/contract_class_log.d.ts +2 -2
  40. package/dest/logs/directional_app_tagging_secret.d.ts +1 -1
  41. package/dest/logs/pre_tag.d.ts +1 -1
  42. package/dest/logs/private_log.d.ts +1 -1
  43. package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
  44. package/dest/messaging/l2_to_l1_message.d.ts +8 -8
  45. package/dest/note/note.d.ts +1 -16
  46. package/dest/note/note.d.ts.map +1 -1
  47. package/dest/p2p/consensus_payload.d.ts +5 -5
  48. package/dest/p2p/gossipable.d.ts +1 -1
  49. package/dest/p2p/gossipable.d.ts.map +1 -1
  50. package/dest/p2p/gossipable.js +1 -1
  51. package/dest/proofs/recursive_proof.d.ts +1 -16
  52. package/dest/proofs/recursive_proof.d.ts.map +1 -1
  53. package/dest/schemas/schemas.d.ts +2 -13
  54. package/dest/schemas/schemas.d.ts.map +1 -1
  55. package/dest/schemas/schemas.js +2 -0
  56. package/dest/snapshots/types.d.ts +2 -2
  57. package/dest/tests/factories.d.ts +4 -1
  58. package/dest/tests/factories.d.ts.map +1 -1
  59. package/dest/tests/factories.js +14 -2
  60. package/dest/trees/append_only_tree_snapshot.d.ts +1 -1
  61. package/dest/trees/nullifier_leaf.d.ts +4 -4
  62. package/dest/trees/nullifier_membership_witness.d.ts +5 -29
  63. package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
  64. package/dest/trees/public_data_leaf.d.ts +7 -7
  65. package/dest/trees/public_data_witness.d.ts +6 -30
  66. package/dest/trees/public_data_witness.d.ts.map +1 -1
  67. package/dest/tx/content_commitment.d.ts +3 -3
  68. package/dest/tx/partial_state_reference.d.ts +3 -3
  69. package/dest/tx/private_execution_result.d.ts +3 -24
  70. package/dest/tx/private_execution_result.d.ts.map +1 -1
  71. package/dest/tx/simulated_tx.d.ts +148 -28
  72. package/dest/tx/simulated_tx.d.ts.map +1 -1
  73. package/dest/tx/state_reference.d.ts +4 -4
  74. package/dest/tx/tree_snapshots.d.ts +4 -4
  75. package/dest/tx/tx.d.ts.map +1 -1
  76. package/dest/tx/tx.js +2 -2
  77. package/dest/tx/tx_context.d.ts +2 -2
  78. package/dest/validators/schemas.d.ts +3 -3
  79. package/package.json +8 -8
  80. package/src/avm/avm.ts +23 -40
  81. package/src/aztec-address/index.ts +8 -2
  82. package/src/file-store/http.ts +6 -3
  83. package/src/file-store/s3.ts +3 -7
  84. package/src/p2p/gossipable.ts +1 -1
  85. package/src/schemas/schemas.ts +3 -0
  86. package/src/tests/factories.ts +45 -0
  87. package/src/tx/tx.ts +2 -3
@@ -36,25 +36,97 @@ export declare const ContractInstanceSchema: z.ZodObject<{
36
36
  originalContractClassId: ZodFor<Fr>;
37
37
  initializationHash: ZodFor<Fr>;
38
38
  publicKeys: z.ZodEffects<z.ZodObject<{
39
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
40
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
41
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
42
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
39
+ masterNullifierPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/fields").Point, any, string>, z.ZodEffects<z.ZodObject<{
40
+ x: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
41
+ y: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ x: Fr;
44
+ y: Fr;
45
+ }, {
46
+ x: string;
47
+ y: string;
48
+ }>, import("@aztec/foundation/fields").Point, {
49
+ x: string;
50
+ y: string;
51
+ }>]>;
52
+ masterIncomingViewingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/fields").Point, any, string>, z.ZodEffects<z.ZodObject<{
53
+ x: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
54
+ y: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ x: Fr;
57
+ y: Fr;
58
+ }, {
59
+ x: string;
60
+ y: string;
61
+ }>, import("@aztec/foundation/fields").Point, {
62
+ x: string;
63
+ y: string;
64
+ }>]>;
65
+ masterOutgoingViewingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/fields").Point, any, string>, z.ZodEffects<z.ZodObject<{
66
+ x: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
67
+ y: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ x: Fr;
70
+ y: Fr;
71
+ }, {
72
+ x: string;
73
+ y: string;
74
+ }>, import("@aztec/foundation/fields").Point, {
75
+ x: string;
76
+ y: string;
77
+ }>]>;
78
+ masterTaggingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/fields").Point, any, string>, z.ZodEffects<z.ZodObject<{
79
+ x: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
80
+ y: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ x: Fr;
83
+ y: Fr;
84
+ }, {
85
+ x: string;
86
+ y: string;
87
+ }>, import("@aztec/foundation/fields").Point, {
88
+ x: string;
89
+ y: string;
90
+ }>]>;
43
91
  }, "strip", z.ZodTypeAny, {
44
92
  masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
45
93
  masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
46
94
  masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
47
95
  masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
48
96
  }, {
49
- masterNullifierPublicKey: string;
50
- masterIncomingViewingPublicKey: string;
51
- masterOutgoingViewingPublicKey: string;
52
- masterTaggingPublicKey: string;
97
+ masterNullifierPublicKey: string | {
98
+ x: string;
99
+ y: string;
100
+ };
101
+ masterIncomingViewingPublicKey: string | {
102
+ x: string;
103
+ y: string;
104
+ };
105
+ masterOutgoingViewingPublicKey: string | {
106
+ x: string;
107
+ y: string;
108
+ };
109
+ masterTaggingPublicKey: string | {
110
+ x: string;
111
+ y: string;
112
+ };
53
113
  }>, PublicKeys, {
54
- masterNullifierPublicKey: string;
55
- masterIncomingViewingPublicKey: string;
56
- masterOutgoingViewingPublicKey: string;
57
- masterTaggingPublicKey: string;
114
+ masterNullifierPublicKey: string | {
115
+ x: string;
116
+ y: string;
117
+ };
118
+ masterIncomingViewingPublicKey: string | {
119
+ x: string;
120
+ y: string;
121
+ };
122
+ masterOutgoingViewingPublicKey: string | {
123
+ x: string;
124
+ y: string;
125
+ };
126
+ masterTaggingPublicKey: string | {
127
+ x: string;
128
+ y: string;
129
+ };
58
130
  }>;
59
131
  }, "strip", z.ZodTypeAny, {
60
132
  version: 1;
@@ -67,10 +139,22 @@ export declare const ContractInstanceSchema: z.ZodObject<{
67
139
  }, {
68
140
  version: 1;
69
141
  publicKeys: {
70
- masterNullifierPublicKey: string;
71
- masterIncomingViewingPublicKey: string;
72
- masterOutgoingViewingPublicKey: string;
73
- masterTaggingPublicKey: string;
142
+ masterNullifierPublicKey: string | {
143
+ x: string;
144
+ y: string;
145
+ };
146
+ masterIncomingViewingPublicKey: string | {
147
+ x: string;
148
+ y: string;
149
+ };
150
+ masterOutgoingViewingPublicKey: string | {
151
+ x: string;
152
+ y: string;
153
+ };
154
+ masterTaggingPublicKey: string | {
155
+ x: string;
156
+ y: string;
157
+ };
74
158
  };
75
159
  salt?: any;
76
160
  deployer?: any;
@@ -86,25 +170,97 @@ export declare const ContractInstanceWithAddressSchema: z.ZodIntersection<z.ZodO
86
170
  originalContractClassId: ZodFor<Fr>;
87
171
  initializationHash: ZodFor<Fr>;
88
172
  publicKeys: z.ZodEffects<z.ZodObject<{
89
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
90
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
91
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
92
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
173
+ masterNullifierPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/fields").Point, any, string>, z.ZodEffects<z.ZodObject<{
174
+ x: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
175
+ y: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ x: Fr;
178
+ y: Fr;
179
+ }, {
180
+ x: string;
181
+ y: string;
182
+ }>, import("@aztec/foundation/fields").Point, {
183
+ x: string;
184
+ y: string;
185
+ }>]>;
186
+ masterIncomingViewingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/fields").Point, any, string>, z.ZodEffects<z.ZodObject<{
187
+ x: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
188
+ y: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ x: Fr;
191
+ y: Fr;
192
+ }, {
193
+ x: string;
194
+ y: string;
195
+ }>, import("@aztec/foundation/fields").Point, {
196
+ x: string;
197
+ y: string;
198
+ }>]>;
199
+ masterOutgoingViewingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/fields").Point, any, string>, z.ZodEffects<z.ZodObject<{
200
+ x: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
201
+ y: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ x: Fr;
204
+ y: Fr;
205
+ }, {
206
+ x: string;
207
+ y: string;
208
+ }>, import("@aztec/foundation/fields").Point, {
209
+ x: string;
210
+ y: string;
211
+ }>]>;
212
+ masterTaggingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/fields").Point, any, string>, z.ZodEffects<z.ZodObject<{
213
+ x: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
214
+ y: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ x: Fr;
217
+ y: Fr;
218
+ }, {
219
+ x: string;
220
+ y: string;
221
+ }>, import("@aztec/foundation/fields").Point, {
222
+ x: string;
223
+ y: string;
224
+ }>]>;
93
225
  }, "strip", z.ZodTypeAny, {
94
226
  masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
95
227
  masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
96
228
  masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
97
229
  masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
98
230
  }, {
99
- masterNullifierPublicKey: string;
100
- masterIncomingViewingPublicKey: string;
101
- masterOutgoingViewingPublicKey: string;
102
- masterTaggingPublicKey: string;
231
+ masterNullifierPublicKey: string | {
232
+ x: string;
233
+ y: string;
234
+ };
235
+ masterIncomingViewingPublicKey: string | {
236
+ x: string;
237
+ y: string;
238
+ };
239
+ masterOutgoingViewingPublicKey: string | {
240
+ x: string;
241
+ y: string;
242
+ };
243
+ masterTaggingPublicKey: string | {
244
+ x: string;
245
+ y: string;
246
+ };
103
247
  }>, PublicKeys, {
104
- masterNullifierPublicKey: string;
105
- masterIncomingViewingPublicKey: string;
106
- masterOutgoingViewingPublicKey: string;
107
- masterTaggingPublicKey: string;
248
+ masterNullifierPublicKey: string | {
249
+ x: string;
250
+ y: string;
251
+ };
252
+ masterIncomingViewingPublicKey: string | {
253
+ x: string;
254
+ y: string;
255
+ };
256
+ masterOutgoingViewingPublicKey: string | {
257
+ x: string;
258
+ y: string;
259
+ };
260
+ masterTaggingPublicKey: string | {
261
+ x: string;
262
+ y: string;
263
+ };
108
264
  }>;
109
265
  }, "strip", z.ZodTypeAny, {
110
266
  version: 1;
@@ -117,10 +273,22 @@ export declare const ContractInstanceWithAddressSchema: z.ZodIntersection<z.ZodO
117
273
  }, {
118
274
  version: 1;
119
275
  publicKeys: {
120
- masterNullifierPublicKey: string;
121
- masterIncomingViewingPublicKey: string;
122
- masterOutgoingViewingPublicKey: string;
123
- masterTaggingPublicKey: string;
276
+ masterNullifierPublicKey: string | {
277
+ x: string;
278
+ y: string;
279
+ };
280
+ masterIncomingViewingPublicKey: string | {
281
+ x: string;
282
+ y: string;
283
+ };
284
+ masterOutgoingViewingPublicKey: string | {
285
+ x: string;
286
+ y: string;
287
+ };
288
+ masterTaggingPublicKey: string | {
289
+ x: string;
290
+ y: string;
291
+ };
124
292
  };
125
293
  salt?: any;
126
294
  deployer?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"contract_instance.d.ts","sourceRoot":"","sources":["../../../src/contract/interfaces/contract_instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,wBAAwB,CAAC;AAE9D,QAAA,MAAM,OAAO,EAAG,CAAU,CAAC;AAE3B;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iGAAiG;IACjG,OAAO,EAAE,OAAO,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kF;IAClF,uBAAuB,EAAE,EAAE,CAAC;IAC5B,6DAA6D;IAC7D,kBAAkB,EAAE,EAAE,CAAC;IACvB,iDAAiD;IACjD,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,MAAM,MAAM,2BAA2B,GAAG,gBAAgB,GAAG;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC;AAEvF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQE,CAAC;AAEtC,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEC,CAAC"}
@@ -31,7 +31,7 @@ export declare class DatabaseVersion {
31
31
  */
32
32
  static get schema(): z.ZodEffects<z.ZodObject<{
33
33
  schemaVersion: z.ZodNumber;
34
- rollupAddress: z.ZodType<EthAddress, any, string>;
34
+ rollupAddress: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  rollupAddress: EthAddress;
37
37
  schemaVersion: number;
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/file-store/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAUlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,qBAAa,aAAc,YAAW,iBAAiB;IAKnD,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,GAAG;IALtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+D;gBAGlE,OAAO,EAAE,MAAM,EACf,GAAG,GAAE,MAA+C;IAc1D,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAUxC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAW5D,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAUxD,OAAO,CAAC,MAAM;CAGf"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/file-store/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAUlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,qBAAa,aAAc,YAAW,iBAAiB;IAKnD,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,GAAG;IALtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+D;gBAGlE,OAAO,EAAE,MAAM,EACf,GAAG,GAAE,MAA+C;IAc1D,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAUxC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAc5D,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAUxD,OAAO,CAAC,MAAM;CAGf"}
@@ -4,7 +4,7 @@ import axios from 'axios';
4
4
  import { createWriteStream } from 'fs';
5
5
  import { mkdir } from 'fs/promises';
6
6
  import { dirname } from 'path';
7
- import { finished } from 'stream/promises';
7
+ import { pipeline } from 'stream/promises';
8
8
  export class HttpFileStore {
9
9
  baseUrl;
10
10
  log;
@@ -38,17 +38,22 @@ export class HttpFileStore {
38
38
  async download(pathOrUrl, destPath) {
39
39
  const url = this.getUrl(pathOrUrl);
40
40
  try {
41
+ this.log.debug(`Downloading file from ${url} to ${destPath}`);
41
42
  const response = await this.fetch({
42
43
  url,
43
44
  method: 'GET',
44
45
  responseType: 'stream'
45
46
  });
47
+ this.log.debug(`Response ${response.status} (${response.statusText}) from ${url}, writing to ${destPath}`);
46
48
  await mkdir(dirname(destPath), {
47
49
  recursive: true
48
50
  });
49
- await finished(response.data.pipe(createWriteStream(destPath)));
51
+ await pipeline(response.data, createWriteStream(destPath));
52
+ this.log.debug(`Download of ${url} to ${destPath} complete`);
50
53
  } catch (error) {
51
- throw new Error(`Error fetching file from ${url}: ${error instanceof Error ? error.message : String(error)}`);
54
+ throw new Error(`Error fetching file from ${url}`, {
55
+ cause: error
56
+ });
52
57
  }
53
58
  }
54
59
  async exists(pathOrUrl) {
@@ -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;AAiBlE,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAMtE,qBAAa,WAAY,YAAW,SAAS;IAOzC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAEzB,OAAO,CAAC,QAAQ,CAAC,GAAG;IATtB,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAW;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAS;IACnC,OAAO,CAAC,QAAQ,C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QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAS;gBAGrB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EACjC,IAAI,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,EAClC,GAAG,GAAE,MAA6C;IAiBxD,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,oBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC;IAoBlF,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,oBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC;IA0D3F,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAW3C,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAO/D,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAe3D,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,gBAAgB;IA0BxB,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,WAAW;CAKpB"}
@@ -4,7 +4,7 @@ import { createReadStream, createWriteStream } from 'fs';
4
4
  import { mkdir, mkdtemp, stat, unlink } from 'fs/promises';
5
5
  import { tmpdir } from 'os';
6
6
  import { basename, dirname, join } from 'path';
7
- import { finished } from 'stream/promises';
7
+ import { pipeline } from 'stream/promises';
8
8
  import { createGzip } from 'zlib';
9
9
  function normalizeBasePath(path) {
10
10
  return path?.replace(/^\/+|\/+$/g, '') ?? '';
@@ -72,11 +72,8 @@ export class S3FileStore {
72
72
  // Pre-gzip to a temp file so we know the exact length for R2/S3 headers
73
73
  const tmpDir = await mkdtemp(join(tmpdir(), 's3-upload-'));
74
74
  const gzPath = join(tmpDir, `${basename(srcPath)}.gz`);
75
- const source = createReadStream(srcPath);
76
- const gz = createGzip();
77
- const out = createWriteStream(gzPath);
78
75
  try {
79
- await finished(source.pipe(gz).pipe(out));
76
+ await pipeline(createReadStream(srcPath), createGzip(), createWriteStream(gzPath));
80
77
  const st = await stat(gzPath);
81
78
  contentLength = st.size;
82
79
  bodyPath = gzPath;
@@ -133,8 +130,7 @@ export class S3FileStore {
133
130
  await mkdir(dirname(destPath), {
134
131
  recursive: true
135
132
  });
136
- const write = createWriteStream(destPath);
137
- await finished(out.Body.pipe(write));
133
+ await pipeline(out.Body, createWriteStream(destPath));
138
134
  }
139
135
  async exists(pathOrUrlStr) {
140
136
  try {
@@ -73,11 +73,11 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<{
73
73
  proverTestDelayMs: z.ZodNumber;
74
74
  proverTestDelayFactor: z.ZodNumber;
75
75
  proverAgentCount: z.ZodNumber;
76
- slashOverridePayload: z.ZodOptional<z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>>;
76
+ slashOverridePayload: z.ZodOptional<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>>;
77
77
  slashMinPenaltyPercentage: z.ZodNumber;
78
78
  slashMaxPenaltyPercentage: z.ZodNumber;
79
- slashValidatorsAlways: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, "many">;
80
- slashValidatorsNever: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, "many">;
79
+ slashValidatorsAlways: z.ZodArray<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>, "many">;
80
+ slashValidatorsNever: z.ZodArray<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>, "many">;
81
81
  slashPrunePenalty: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
82
82
  slashDataWithholdingPenalty: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
83
83
  slashInactivityTargetPercentage: z.ZodNumber;
@@ -92,9 +92,9 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<{
92
92
  slashExecuteRoundsLookBack: z.ZodNumber;
93
93
  slashSelfAllowed: z.ZodOptional<z.ZodBoolean>;
94
94
  } & {
95
- validatorAddresses: z.ZodOptional<z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, "many">>;
95
+ validatorAddresses: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>, "many">>;
96
96
  disableValidator: z.ZodBoolean;
97
- disabledValidators: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, "many">;
97
+ disabledValidators: z.ZodArray<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>, "many">;
98
98
  attestationPollingIntervalMs: z.ZodNumber;
99
99
  validatorReexecute: z.ZodBoolean;
100
100
  validatorReexecuteDeadlineMs: z.ZodNumber;