@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.
- package/dest/avm/avm.d.ts +62 -78
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +8 -22
- package/dest/avm/avm_circuit_public_inputs.d.ts +19 -6
- package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
- package/dest/avm/avm_circuit_public_inputs.js +12 -11
- package/dest/avm/avm_proving_request.d.ts +49 -40
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/file-store/interface.d.ts +8 -2
- package/dest/file-store/interface.d.ts.map +1 -1
- package/dest/file-store/s3.d.ts +1 -0
- package/dest/file-store/s3.d.ts.map +1 -1
- package/dest/file-store/s3.js +81 -16
- package/dest/interfaces/aztec-node-admin.d.ts +3 -0
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
- package/dest/interfaces/configs.d.ts +5 -0
- package/dest/interfaces/configs.d.ts.map +1 -1
- package/dest/interfaces/configs.js +2 -1
- package/dest/interfaces/proving-job.d.ts +49 -40
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/validator.d.ts +1 -1
- package/dest/interfaces/validator.d.ts.map +1 -1
- package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts +3 -2
- package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts.map +1 -1
- package/dest/kernel/hints/nullifier_read_request_hints.d.ts +4 -3
- package/dest/kernel/hints/nullifier_read_request_hints.d.ts.map +1 -1
- package/dest/kernel/private_call_data.d.ts +4 -24
- package/dest/kernel/private_call_data.d.ts.map +1 -1
- package/dest/kernel/private_call_data.js +4 -16
- package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +3 -3
- package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_circuit_public_inputs.js +3 -3
- package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts +5 -4
- package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_init_circuit_private_inputs.js +7 -6
- package/dest/kernel/private_kernel_tail_circuit_public_inputs.js +1 -1
- package/dest/p2p/block_proposal.d.ts +2 -0
- package/dest/p2p/block_proposal.d.ts.map +1 -1
- package/dest/rollup/block_constant_data.d.ts +4 -4
- package/dest/rollup/block_constant_data.d.ts.map +1 -1
- package/dest/rollup/block_constant_data.js +4 -4
- package/dest/rollup/checkpoint_constant_data.d.ts +4 -4
- package/dest/rollup/checkpoint_constant_data.d.ts.map +1 -1
- package/dest/rollup/checkpoint_constant_data.js +4 -4
- package/dest/rollup/epoch_constant_data.d.ts +4 -4
- package/dest/rollup/epoch_constant_data.d.ts.map +1 -1
- package/dest/rollup/epoch_constant_data.js +5 -5
- package/dest/snapshots/download.d.ts.map +1 -1
- package/dest/snapshots/download.js +58 -2
- package/dest/snapshots/upload.d.ts.map +1 -1
- package/dest/snapshots/upload.js +1 -0
- package/dest/tests/factories.d.ts +5 -4
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +11 -10
- package/dest/tests/mocks.d.ts +2 -2
- package/dest/tests/mocks.d.ts.map +1 -1
- package/dest/tests/mocks.js +2 -2
- package/dest/trees/index.d.ts +0 -1
- package/dest/trees/index.d.ts.map +1 -1
- package/dest/trees/index.js +0 -1
- package/dest/tx/index.d.ts +2 -0
- package/dest/tx/index.d.ts.map +1 -1
- package/dest/tx/index.js +2 -0
- package/dest/tx/private_tx_constant_data.d.ts +60 -0
- package/dest/tx/private_tx_constant_data.d.ts.map +1 -0
- package/dest/tx/private_tx_constant_data.js +69 -0
- package/dest/tx/protocol_contracts.d.ts +29 -0
- package/dest/tx/protocol_contracts.d.ts.map +1 -0
- package/dest/tx/protocol_contracts.js +49 -0
- package/dest/tx/tx_constant_data.d.ts +5 -37
- package/dest/tx/tx_constant_data.d.ts.map +1 -1
- package/dest/tx/tx_constant_data.js +8 -17
- package/dest/tx/validator/error_texts.d.ts +1 -1
- package/dest/tx/validator/error_texts.d.ts.map +1 -1
- package/dest/tx/validator/error_texts.js +1 -1
- package/dest/versioning/versioning.d.ts +2 -2
- package/dest/versioning/versioning.d.ts.map +1 -1
- package/dest/versioning/versioning.js +8 -8
- package/package.json +8 -8
- package/src/avm/avm.ts +13 -24
- package/src/avm/avm_circuit_public_inputs.ts +11 -10
- package/src/file-store/interface.ts +8 -2
- package/src/file-store/s3.ts +83 -15
- package/src/interfaces/configs.ts +3 -0
- package/src/interfaces/validator.ts +1 -1
- package/src/kernel/hints/build_nullifier_read_request_hints.ts +3 -2
- package/src/kernel/hints/nullifier_read_request_hints.ts +3 -3
- package/src/kernel/private_call_data.ts +2 -21
- package/src/kernel/private_kernel_circuit_public_inputs.ts +4 -4
- package/src/kernel/private_kernel_init_circuit_private_inputs.ts +5 -4
- package/src/kernel/private_kernel_tail_circuit_public_inputs.ts +1 -1
- package/src/p2p/block_proposal.ts +2 -0
- package/src/rollup/block_constant_data.ts +3 -3
- package/src/rollup/checkpoint_constant_data.ts +3 -3
- package/src/rollup/epoch_constant_data.ts +3 -9
- package/src/snapshots/download.ts +66 -2
- package/src/snapshots/upload.ts +1 -0
- package/src/tests/factories.ts +12 -19
- package/src/tests/mocks.ts +3 -3
- package/src/trees/index.ts +0 -1
- package/src/tx/index.ts +2 -0
- package/src/tx/private_tx_constant_data.ts +94 -0
- package/src/tx/protocol_contracts.ts +70 -0
- package/src/tx/tx_constant_data.ts +6 -19
- package/src/tx/validator/error_texts.ts +1 -1
- package/src/versioning/versioning.ts +10 -10
- package/dest/trees/protocol_contract_leaf.d.ts +0 -84
- package/dest/trees/protocol_contract_leaf.d.ts.map +0 -1
- package/dest/trees/protocol_contract_leaf.js +0 -100
- 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
|
-
|
|
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,
|
|
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.
|
|
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
|
-
|
|
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,
|
|
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(
|
|
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.
|
|
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),
|
|
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.
|
|
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(),
|
|
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
|
-
|
|
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
|
-
|
|
416
|
-
|
|
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
|
-
|
|
420
|
-
derivedAddress: import("../aztec-address/index.js").AztecAddress;
|
|
418
|
+
derivedAddresses: import("../aztec-address/index.js").AztecAddress[];
|
|
421
419
|
}, {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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,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AC/E;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACzF"}
|
package/dest/file-store/s3.d.ts
CHANGED
|
@@ -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;
|
|
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,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;IA6D3F,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;IAQ/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"}
|
package/dest/file-store/s3.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
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 {
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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,eA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AAiB,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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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
|
});
|