@aztec/stdlib 3.0.0-nightly.20251110 → 3.0.0-nightly.20251111
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/abi/abi.d.ts +3 -18
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/avm/avm.d.ts +844 -665
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +13 -36
- package/dest/avm/avm_accumulated_data.d.ts +6 -6
- package/dest/avm/avm_circuit_public_inputs.d.ts +27 -27
- package/dest/avm/avm_proving_request.d.ts +299 -176
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/avm/public_data_write.d.ts +2 -2
- package/dest/aztec-address/index.d.ts.map +1 -1
- package/dest/aztec-address/index.js +8 -2
- package/dest/block/l2_block.d.ts +1 -1
- package/dest/block/l2_block_info.d.ts +3 -3
- package/dest/block/proposal/attestations_and_signers.d.ts +1 -1
- package/dest/block/proposal/committee_attestation.d.ts +1 -1
- package/dest/block/published_l2_block.d.ts +2 -2
- package/dest/block/validate_block_result.d.ts +12 -12
- package/dest/contract/contract_deployment_data.d.ts +2 -2
- package/dest/contract/interfaces/contract_class.d.ts +38 -119
- package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_instance.d.ts +200 -32
- package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
- package/dest/database-version/version_manager.d.ts +1 -1
- package/dest/interfaces/aztec-node-admin.d.ts +5 -5
- package/dest/interfaces/proving-job.d.ts +305 -182
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/slasher.d.ts +3 -3
- package/dest/interfaces/validator.d.ts +4 -4
- package/dest/kernel/private_kernel_prover_output.d.ts +6 -6
- package/dest/kernel/private_to_avm_accumulated_data.d.ts +4 -4
- package/dest/kernel/public_call_request.d.ts +1 -1
- package/dest/keys/public_keys.d.ts +84 -12
- package/dest/keys/public_keys.d.ts.map +1 -1
- package/dest/logs/contract_class_log.d.ts +2 -2
- package/dest/logs/directional_app_tagging_secret.d.ts +1 -1
- package/dest/logs/pre_tag.d.ts +1 -1
- package/dest/logs/private_log.d.ts +1 -1
- package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
- package/dest/messaging/l2_to_l1_message.d.ts +8 -8
- package/dest/note/note.d.ts +1 -16
- package/dest/note/note.d.ts.map +1 -1
- package/dest/p2p/consensus_payload.d.ts +5 -5
- package/dest/p2p/gossipable.d.ts +1 -1
- package/dest/p2p/gossipable.d.ts.map +1 -1
- package/dest/p2p/gossipable.js +1 -1
- package/dest/proofs/recursive_proof.d.ts +1 -16
- package/dest/proofs/recursive_proof.d.ts.map +1 -1
- package/dest/schemas/schemas.d.ts +2 -13
- package/dest/schemas/schemas.d.ts.map +1 -1
- package/dest/schemas/schemas.js +2 -0
- package/dest/snapshots/types.d.ts +2 -2
- package/dest/trees/append_only_tree_snapshot.d.ts +1 -1
- package/dest/trees/nullifier_leaf.d.ts +4 -4
- package/dest/trees/nullifier_membership_witness.d.ts +5 -29
- package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
- package/dest/trees/public_data_leaf.d.ts +7 -7
- package/dest/trees/public_data_witness.d.ts +6 -30
- package/dest/trees/public_data_witness.d.ts.map +1 -1
- package/dest/tx/content_commitment.d.ts +3 -3
- package/dest/tx/partial_state_reference.d.ts +3 -3
- package/dest/tx/private_execution_result.d.ts +3 -24
- package/dest/tx/private_execution_result.d.ts.map +1 -1
- package/dest/tx/simulated_tx.d.ts +148 -28
- package/dest/tx/simulated_tx.d.ts.map +1 -1
- package/dest/tx/state_reference.d.ts +4 -4
- package/dest/tx/tree_snapshots.d.ts +4 -4
- package/dest/tx/tx.d.ts.map +1 -1
- package/dest/tx/tx.js +2 -2
- package/dest/tx/tx_context.d.ts +2 -2
- package/dest/validators/schemas.d.ts +3 -3
- package/package.json +8 -8
- package/src/avm/avm.ts +11 -28
- package/src/aztec-address/index.ts +8 -2
- package/src/p2p/gossipable.ts +1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;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,KAAK,CAAC,EAAE,CAAC;IACpC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO;IAUlD,QAAQ,IAAI,MAAM;CAG1B"}
|
package/dest/tx/tx.js
CHANGED
|
@@ -231,12 +231,12 @@ import { TxHash } from './tx_hash.js';
|
|
|
231
231
|
* Helper class to handle Serialization and Deserialization of Txs array.
|
|
232
232
|
*/ export class TxArray extends Array {
|
|
233
233
|
static fromBuffer(buffer) {
|
|
234
|
+
const reader = BufferReader.asReader(buffer);
|
|
234
235
|
try {
|
|
235
|
-
const reader = BufferReader.asReader(buffer);
|
|
236
236
|
const txs = reader.readVector(Tx);
|
|
237
237
|
return new TxArray(...txs);
|
|
238
238
|
} catch {
|
|
239
|
-
|
|
239
|
+
throw new Error('Failed to deserialize TxArray from buffer');
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
toBuffer() {
|
package/dest/tx/tx_context.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export declare class TxContext {
|
|
|
19
19
|
/** Gas limits for this transaction. */
|
|
20
20
|
gasSettings: GasSettings);
|
|
21
21
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
22
|
-
chainId: z.ZodType<Fr, any, string>;
|
|
23
|
-
version: z.ZodType<Fr, any, string>;
|
|
22
|
+
chainId: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
23
|
+
version: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
|
|
24
24
|
gasSettings: z.ZodEffects<z.ZodObject<{
|
|
25
25
|
gasLimits: z.ZodEffects<z.ZodObject<{
|
|
26
26
|
daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
@@ -31,7 +31,7 @@ export declare const ValidatorStatusHistorySchemaMap: z.ZodRecord<z.ZodString, z
|
|
|
31
31
|
slot: string | number | bigint;
|
|
32
32
|
}>, "many">, "many">>;
|
|
33
33
|
export declare const ValidatorStatsSchema: z.ZodObject<{
|
|
34
|
-
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
34
|
+
address: 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>]>;
|
|
35
35
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
36
36
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
37
37
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
@@ -162,7 +162,7 @@ export declare const ValidatorStatsSchema: z.ZodObject<{
|
|
|
162
162
|
}>;
|
|
163
163
|
export declare const ValidatorsStatsSchema: z.ZodObject<{
|
|
164
164
|
stats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
|
-
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
165
|
+
address: 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>]>;
|
|
166
166
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
167
167
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
168
168
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
@@ -365,7 +365,7 @@ export declare const ValidatorsStatsSchema: z.ZodObject<{
|
|
|
365
365
|
}>;
|
|
366
366
|
export declare const SingleValidatorStatsSchema: z.ZodObject<{
|
|
367
367
|
validator: z.ZodObject<{
|
|
368
|
-
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
368
|
+
address: 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>]>;
|
|
369
369
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
370
370
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
371
371
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251111",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@aws-sdk/client-s3": "^3.892.0",
|
|
75
|
-
"@aztec/bb.js": "3.0.0-nightly.
|
|
76
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
77
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
78
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
79
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
80
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
81
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
75
|
+
"@aztec/bb.js": "3.0.0-nightly.20251111",
|
|
76
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251111",
|
|
77
|
+
"@aztec/constants": "3.0.0-nightly.20251111",
|
|
78
|
+
"@aztec/ethereum": "3.0.0-nightly.20251111",
|
|
79
|
+
"@aztec/foundation": "3.0.0-nightly.20251111",
|
|
80
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251111",
|
|
81
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251111",
|
|
82
82
|
"@google-cloud/storage": "^7.15.0",
|
|
83
83
|
"axios": "^1.12.0",
|
|
84
84
|
"json-stringify-deterministic": "1.0.12",
|
package/src/avm/avm.ts
CHANGED
|
@@ -5,16 +5,16 @@ import { z } from 'zod';
|
|
|
5
5
|
|
|
6
6
|
import { AztecAddress } from '../aztec-address/index.js';
|
|
7
7
|
import { AllContractDeploymentData, ContractDeploymentData } from '../contract/index.js';
|
|
8
|
-
import
|
|
8
|
+
import { SimulationError } from '../errors/simulation_error.js';
|
|
9
9
|
import { computeEffectiveGasFees } from '../fees/transaction_fee.js';
|
|
10
10
|
import { Gas } from '../gas/gas.js';
|
|
11
11
|
import { GasFees } from '../gas/gas_fees.js';
|
|
12
12
|
import { GasSettings } from '../gas/gas_settings.js';
|
|
13
13
|
import type { GasUsed } from '../gas/gas_used.js';
|
|
14
14
|
import { PublicKeys } from '../keys/public_keys.js';
|
|
15
|
-
import
|
|
15
|
+
import { DebugLog } from '../logs/debug_log.js';
|
|
16
16
|
import { ScopedL2ToL1Message } from '../messaging/l2_to_l1_message.js';
|
|
17
|
-
import { schemas } from '../schemas/schemas.js';
|
|
17
|
+
import { NullishToUndefined, type ZodFor, schemas } from '../schemas/schemas.js';
|
|
18
18
|
import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
|
|
19
19
|
import { MerkleTreeId } from '../trees/merkle_tree_id.js';
|
|
20
20
|
import { NullifierLeafPreimage } from '../trees/nullifier_leaf.js';
|
|
@@ -746,48 +746,31 @@ export class PublicTxResult {
|
|
|
746
746
|
);
|
|
747
747
|
}
|
|
748
748
|
|
|
749
|
-
/*
|
|
750
749
|
static get schema(): ZodFor<PublicTxResult> {
|
|
751
750
|
return z
|
|
752
751
|
.object({
|
|
753
752
|
gasUsed: schemas.GasUsed,
|
|
754
753
|
revertCode: RevertCode.schema,
|
|
755
|
-
revertReason: SimulationError.schema
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
754
|
+
revertReason: NullishToUndefined(SimulationError.schema),
|
|
755
|
+
// TODO(fcarreiro): Use actual Phases type schema.
|
|
756
|
+
processedPhases: NullishToUndefined(z.any().array()),
|
|
757
|
+
logs: NullishToUndefined(DebugLog.schema.array()),
|
|
758
|
+
// For the proving request.
|
|
759
759
|
publicInputs: AvmCircuitPublicInputs.schema,
|
|
760
|
+
hints: NullishToUndefined(AvmExecutionHints.schema),
|
|
760
761
|
})
|
|
761
762
|
.transform(
|
|
762
|
-
({ gasUsed, revertCode, revertReason,
|
|
763
|
+
({ gasUsed, revertCode, revertReason, processedPhases, logs, hints, publicInputs }) =>
|
|
763
764
|
new PublicTxResult(
|
|
764
765
|
gasUsed,
|
|
765
766
|
revertCode as RevertCode,
|
|
766
767
|
revertReason,
|
|
767
|
-
|
|
768
|
+
processedPhases,
|
|
768
769
|
logs,
|
|
769
770
|
hints,
|
|
770
771
|
publicInputs,
|
|
771
772
|
),
|
|
772
773
|
);
|
|
773
|
-
}*/
|
|
774
|
-
|
|
775
|
-
// TODO(fcarreiro): complete this.
|
|
776
|
-
static get partialSchema() {
|
|
777
|
-
return z.object({
|
|
778
|
-
gasUsed: schemas.GasUsed,
|
|
779
|
-
revertCode: RevertCode.schema,
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
static fromJSON(json: any) {
|
|
783
|
-
// console.log('json', json);
|
|
784
|
-
// console.log('PI.globalVariables.gasFees', json.publicInputs.globalVariables.gasFees);
|
|
785
|
-
const r = PublicTxResult.partialSchema.parse(json);
|
|
786
|
-
// console.log('after parse', r);
|
|
787
|
-
return r as {
|
|
788
|
-
gasUsed: GasUsed;
|
|
789
|
-
revertCode: RevertCode;
|
|
790
|
-
};
|
|
791
774
|
}
|
|
792
775
|
}
|
|
793
776
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */
|
|
2
2
|
import { Fr, Point, fromBuffer } from '@aztec/foundation/fields';
|
|
3
|
-
import { type ZodFor, hexSchemaFor } from '@aztec/foundation/schemas';
|
|
3
|
+
import { type ZodFor, bufferSchemaFor, hexSchemaFor } from '@aztec/foundation/schemas';
|
|
4
4
|
import { type BufferReader, FieldReader, TypeRegistry } from '@aztec/foundation/serialize';
|
|
5
5
|
import { hexToBuffer } from '@aztec/foundation/string';
|
|
6
6
|
|
|
7
7
|
import { inspect } from 'util';
|
|
8
|
+
import { z } from 'zod';
|
|
8
9
|
|
|
9
10
|
/** Branding to ensure fields are not interchangeable types. */
|
|
10
11
|
export interface AztecAddress {
|
|
@@ -137,7 +138,12 @@ export class AztecAddress {
|
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
static get schema(): ZodFor<AztecAddress> {
|
|
140
|
-
return
|
|
141
|
+
return z.union([
|
|
142
|
+
// Serialization from hex string.
|
|
143
|
+
hexSchemaFor(AztecAddress, AztecAddress.isAddress),
|
|
144
|
+
// Serialization from buffer.
|
|
145
|
+
bufferSchemaFor(AztecAddress, buf => buf.length === 32),
|
|
146
|
+
]);
|
|
141
147
|
}
|
|
142
148
|
}
|
|
143
149
|
|
package/src/p2p/gossipable.ts
CHANGED
|
@@ -35,7 +35,7 @@ export abstract class Gossipable {
|
|
|
35
35
|
* A digest of the message information **used for logging only**.
|
|
36
36
|
* The identifier used for deduplication is `getMsgIdFn` as defined in `encoding.ts` which is a hash over topic and data.
|
|
37
37
|
*/
|
|
38
|
-
async
|
|
38
|
+
async p2pMessageLoggingIdentifier(): Promise<Buffer32> {
|
|
39
39
|
if (this.cachedId) {
|
|
40
40
|
return this.cachedId;
|
|
41
41
|
}
|
package/src/schemas/schemas.ts
CHANGED
|
@@ -81,6 +81,9 @@ export const AbiDecodedSchema: ZodFor<AbiDecoded> = z.union([
|
|
|
81
81
|
z.record(z.lazy(() => AbiDecodedSchema)),
|
|
82
82
|
]);
|
|
83
83
|
|
|
84
|
+
// C++ only supports null values, which we want to convert to undefined.
|
|
85
|
+
export const NullishToUndefined = (schema: ZodFor<any>) => schema.nullish().transform(x => x ?? undefined);
|
|
86
|
+
|
|
84
87
|
export {
|
|
85
88
|
type ZodFor,
|
|
86
89
|
bufferSchema,
|
package/src/tx/tx.ts
CHANGED
|
@@ -317,13 +317,12 @@ export class Tx extends Gossipable {
|
|
|
317
317
|
*/
|
|
318
318
|
export class TxArray extends Array<Tx> {
|
|
319
319
|
static fromBuffer(buffer: Buffer | BufferReader): TxArray {
|
|
320
|
+
const reader = BufferReader.asReader(buffer);
|
|
320
321
|
try {
|
|
321
|
-
const reader = BufferReader.asReader(buffer);
|
|
322
322
|
const txs = reader.readVector(Tx);
|
|
323
|
-
|
|
324
323
|
return new TxArray(...txs);
|
|
325
324
|
} catch {
|
|
326
|
-
|
|
325
|
+
throw new Error('Failed to deserialize TxArray from buffer');
|
|
327
326
|
}
|
|
328
327
|
}
|
|
329
328
|
|