@aztec/stdlib 0.86.0-nightly.20250507 → 0.86.0-nightly.20250508

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.
@@ -14,7 +14,7 @@ import { type LogFilter } from '../logs/log_filter.js';
14
14
  import { UniqueNote } from '../note/extended_note.js';
15
15
  import { type NotesFilter } from '../note/notes_filter.js';
16
16
  import { type IndexedTxEffect, PrivateExecutionResult, Tx, TxExecutionRequest, TxHash, TxReceipt, TxSimulationResult } from '../tx/index.js';
17
- import { TxProfileResult } from '../tx/profiled_tx.js';
17
+ import { TxProfileResult } from '../tx/profiling.js';
18
18
  import { TxProvingResult } from '../tx/proven_tx.js';
19
19
  import { type GetContractClassLogsResponse, type GetPublicLogsResponse } from './get_logs_response.js';
20
20
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"pxe.d.ts","sourceRoot":"","sources":["../../src/interfaces/pxe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,EAAE,KAAK,OAAO,EAAiB,KAAK,gBAAgB,EAA0B,MAAM,eAAe,CAAC;AAC3G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,EAExB,KAAK,2BAA2B,EAE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W,qBAAqB;IACpC,aAAa,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAChD,iCAAiC,EAAE,OAAO,CAAC;IAC3C,QAAQ,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACzC;AAmBD,eAAO,MAAM,SAAS,EAAE,YAAY,CAAC,GAAG,CAoFvC,CAAC"}
@@ -11,7 +11,7 @@ import { UniqueNote } from '../note/extended_note.js';
11
11
  import { NotesFilterSchema } from '../note/notes_filter.js';
12
12
  import { AbiDecodedSchema, optional, schemas } from '../schemas/schemas.js';
13
13
  import { PrivateExecutionResult, Tx, TxExecutionRequest, TxHash, TxReceipt, TxSimulationResult, indexedTxSchema } from '../tx/index.js';
14
- import { TxProfileResult } from '../tx/profiled_tx.js';
14
+ import { TxProfileResult } from '../tx/profiling.js';
15
15
  import { TxProvingResult } from '../tx/proven_tx.js';
16
16
  import { GetContractClassLogsResponseSchema, GetPublicLogsResponseSchema } from './get_logs_response.js';
17
17
  const EventMetadataDefinitionSchema = z.object({
@@ -18,7 +18,6 @@ export * from './tx_receipt.js';
18
18
  export * from './tx.js';
19
19
  export * from './processed_tx.js';
20
20
  export * from './proven_tx.js';
21
- export * from './profiled_tx.js';
22
21
  export * from './simulated_tx.js';
23
22
  export * from './tx_effect.js';
24
23
  export * from './public_simulation_output.js';
@@ -30,4 +29,5 @@ export * from './capsule.js';
30
29
  export * from './global_variable_builder.js';
31
30
  export * from './hashed_values.js';
32
31
  export * from './indexed_tx_effect.js';
32
+ export * from './profiling.js';
33
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B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cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC"}
package/dest/tx/index.js CHANGED
@@ -18,7 +18,6 @@ export * from './tx_receipt.js';
18
18
  export * from './tx.js';
19
19
  export * from './processed_tx.js';
20
20
  export * from './proven_tx.js';
21
- export * from './profiled_tx.js';
22
21
  export * from './simulated_tx.js';
23
22
  export * from './tx_effect.js';
24
23
  export * from './public_simulation_output.js';
@@ -30,3 +29,4 @@ export * from './capsule.js';
30
29
  export * from './global_variable_builder.js';
31
30
  export * from './hashed_values.js';
32
31
  export * from './indexed_tx_effect.js';
32
+ export * from './profiling.js';
@@ -0,0 +1,102 @@
1
+ import { type ZodFor } from '@aztec/foundation/schemas';
2
+ import { z } from 'zod';
3
+ import { type PrivateExecutionStep } from '../kernel/private_kernel_prover_output.js';
4
+ type FunctionTiming = {
5
+ functionName: string;
6
+ time: number;
7
+ };
8
+ export type ProvingTimings = {
9
+ sync?: number;
10
+ proving?: number;
11
+ perFunction: FunctionTiming[];
12
+ unaccounted: number;
13
+ total: number;
14
+ };
15
+ export declare const ProvingTimingsSchema: z.ZodObject<{
16
+ sync: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
17
+ proving: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
18
+ perFunction: z.ZodArray<z.ZodObject<{
19
+ functionName: z.ZodString;
20
+ time: z.ZodNumber;
21
+ }, "strip", z.ZodTypeAny, {
22
+ functionName: string;
23
+ time: number;
24
+ }, {
25
+ functionName: string;
26
+ time: number;
27
+ }>, "many">;
28
+ unaccounted: z.ZodNumber;
29
+ total: z.ZodNumber;
30
+ }, "strip", z.ZodTypeAny, {
31
+ perFunction: {
32
+ functionName: string;
33
+ time: number;
34
+ }[];
35
+ unaccounted: number;
36
+ total: number;
37
+ sync?: number | undefined;
38
+ proving?: number | undefined;
39
+ }, {
40
+ perFunction: {
41
+ functionName: string;
42
+ time: number;
43
+ }[];
44
+ unaccounted: number;
45
+ total: number;
46
+ sync?: number | undefined;
47
+ proving?: number | undefined;
48
+ }>;
49
+ export interface SimulationTimings {
50
+ sync: number;
51
+ publicSimulation?: number;
52
+ validation?: number;
53
+ perFunction: FunctionTiming[];
54
+ unaccounted: number;
55
+ total: number;
56
+ }
57
+ export declare const SimulationTimingsSchema: z.ZodObject<{
58
+ sync: z.ZodNumber;
59
+ publicSimulation: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
60
+ validation: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
61
+ perFunction: z.ZodArray<z.ZodObject<{
62
+ functionName: z.ZodString;
63
+ time: z.ZodNumber;
64
+ }, "strip", z.ZodTypeAny, {
65
+ functionName: string;
66
+ time: number;
67
+ }, {
68
+ functionName: string;
69
+ time: number;
70
+ }>, "many">;
71
+ unaccounted: z.ZodNumber;
72
+ total: z.ZodNumber;
73
+ }, "strip", z.ZodTypeAny, {
74
+ sync: number;
75
+ perFunction: {
76
+ functionName: string;
77
+ time: number;
78
+ }[];
79
+ unaccounted: number;
80
+ total: number;
81
+ validation?: number | undefined;
82
+ publicSimulation?: number | undefined;
83
+ }, {
84
+ sync: number;
85
+ perFunction: {
86
+ functionName: string;
87
+ time: number;
88
+ }[];
89
+ unaccounted: number;
90
+ total: number;
91
+ validation?: number | undefined;
92
+ publicSimulation?: number | undefined;
93
+ }>;
94
+ export declare class TxProfileResult {
95
+ executionSteps: PrivateExecutionStep[];
96
+ timings: ProvingTimings;
97
+ constructor(executionSteps: PrivateExecutionStep[], timings: ProvingTimings);
98
+ static get schema(): ZodFor<TxProfileResult>;
99
+ static random(): TxProfileResult;
100
+ }
101
+ export {};
102
+ //# sourceMappingURL=profiling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiling.d.ts","sourceRoot":"","sources":["../../src/tx/profiling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,2BAA2B,CAAC;AAElE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,oBAAoB,EAA8B,MAAM,2CAA2C,CAAC;AAElH,KAAK,cAAc,GAAG;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAIF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlC,CAAC;AAEH,qBAAa,eAAe;IACP,cAAc,EAAE,oBAAoB,EAAE;IAAS,OAAO,EAAE,cAAc;gBAAtE,cAAc,EAAE,oBAAoB,EAAE,EAAS,OAAO,EAAE,cAAc;IAEzF,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,eAAe,CAAC,CAO3C;IAED,MAAM,CAAC,MAAM,IAAI,eAAe;CA4BjC"}
@@ -0,0 +1,66 @@
1
+ import { optional } from '@aztec/foundation/schemas';
2
+ import { z } from 'zod';
3
+ import { PrivateExecutionStepSchema } from '../kernel/private_kernel_prover_output.js';
4
+ const FunctionTimingSchema = z.object({
5
+ functionName: z.string(),
6
+ time: z.number()
7
+ });
8
+ export const ProvingTimingsSchema = z.object({
9
+ sync: optional(z.number()),
10
+ proving: optional(z.number()),
11
+ perFunction: z.array(FunctionTimingSchema),
12
+ unaccounted: z.number(),
13
+ total: z.number()
14
+ });
15
+ export const SimulationTimingsSchema = z.object({
16
+ sync: z.number(),
17
+ publicSimulation: optional(z.number()),
18
+ validation: optional(z.number()),
19
+ perFunction: z.array(FunctionTimingSchema),
20
+ unaccounted: z.number(),
21
+ total: z.number()
22
+ });
23
+ export class TxProfileResult {
24
+ executionSteps;
25
+ timings;
26
+ constructor(executionSteps, timings){
27
+ this.executionSteps = executionSteps;
28
+ this.timings = timings;
29
+ }
30
+ static get schema() {
31
+ return z.object({
32
+ executionSteps: z.array(PrivateExecutionStepSchema),
33
+ timings: ProvingTimingsSchema
34
+ }).transform(({ executionSteps, timings })=>new TxProfileResult(executionSteps, timings));
35
+ }
36
+ static random() {
37
+ return new TxProfileResult([
38
+ {
39
+ functionName: 'random',
40
+ bytecode: Buffer.from('random'),
41
+ witness: new Map([
42
+ [
43
+ 1,
44
+ 'random'
45
+ ]
46
+ ]),
47
+ vk: Buffer.from('random'),
48
+ timings: {
49
+ witgen: 1,
50
+ gateCount: 1
51
+ }
52
+ }
53
+ ], {
54
+ sync: 1,
55
+ proving: 1,
56
+ perFunction: [
57
+ {
58
+ functionName: 'random',
59
+ time: 1
60
+ }
61
+ ],
62
+ unaccounted: 1,
63
+ total: 4
64
+ });
65
+ }
66
+ }
@@ -3,28 +3,100 @@ import { z } from 'zod';
3
3
  import { PrivateKernelTailCircuitPublicInputs } from '../kernel/private_kernel_tail_circuit_public_inputs.js';
4
4
  import { ClientIvcProof } from '../proofs/client_ivc_proof.js';
5
5
  import { PrivateExecutionResult } from './private_execution_result.js';
6
+ import { type ProvingTimings } from './profiling.js';
6
7
  import { Tx } from './tx.js';
7
8
  export declare class TxProvingResult {
8
9
  privateExecutionResult: PrivateExecutionResult;
9
10
  publicInputs: PrivateKernelTailCircuitPublicInputs;
10
11
  clientIvcProof: ClientIvcProof;
11
- constructor(privateExecutionResult: PrivateExecutionResult, publicInputs: PrivateKernelTailCircuitPublicInputs, clientIvcProof: ClientIvcProof);
12
+ timings?: ProvingTimings | undefined;
13
+ constructor(privateExecutionResult: PrivateExecutionResult, publicInputs: PrivateKernelTailCircuitPublicInputs, clientIvcProof: ClientIvcProof, timings?: ProvingTimings | undefined);
12
14
  toTx(): Tx;
13
15
  static get schema(): z.ZodEffects<z.ZodObject<{
14
16
  privateExecutionResult: import("@aztec/foundation/schemas").ZodFor<PrivateExecutionResult>;
15
17
  publicInputs: z.ZodType<PrivateKernelTailCircuitPublicInputs, any, string>;
16
18
  clientIvcProof: z.ZodType<ClientIvcProof, any, string>;
19
+ timings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
20
+ sync: z.ZodNumber;
21
+ publicSimulation: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
22
+ validation: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
23
+ perFunction: z.ZodArray<z.ZodObject<{
24
+ functionName: z.ZodString;
25
+ time: z.ZodNumber;
26
+ }, "strip", z.ZodTypeAny, {
27
+ functionName: string;
28
+ time: number;
29
+ }, {
30
+ functionName: string;
31
+ time: number;
32
+ }>, "many">;
33
+ unaccounted: z.ZodNumber;
34
+ total: z.ZodNumber;
35
+ }, "strip", z.ZodTypeAny, {
36
+ sync: number;
37
+ perFunction: {
38
+ functionName: string;
39
+ time: number;
40
+ }[];
41
+ unaccounted: number;
42
+ total: number;
43
+ validation?: number | undefined;
44
+ publicSimulation?: number | undefined;
45
+ }, {
46
+ sync: number;
47
+ perFunction: {
48
+ functionName: string;
49
+ time: number;
50
+ }[];
51
+ unaccounted: number;
52
+ total: number;
53
+ validation?: number | undefined;
54
+ publicSimulation?: number | undefined;
55
+ }>>;
17
56
  }, "strip", z.ZodTypeAny, {
18
57
  publicInputs: PrivateKernelTailCircuitPublicInputs;
19
58
  clientIvcProof: ClientIvcProof;
20
59
  privateExecutionResult: PrivateExecutionResult;
60
+ timings?: {
61
+ sync: number;
62
+ perFunction: {
63
+ functionName: string;
64
+ time: number;
65
+ }[];
66
+ unaccounted: number;
67
+ total: number;
68
+ validation?: number | undefined;
69
+ publicSimulation?: number | undefined;
70
+ } | undefined;
21
71
  }, {
22
72
  publicInputs: string;
23
73
  clientIvcProof: string;
74
+ timings?: {
75
+ sync: number;
76
+ perFunction: {
77
+ functionName: string;
78
+ time: number;
79
+ }[];
80
+ unaccounted: number;
81
+ total: number;
82
+ validation?: number | undefined;
83
+ publicSimulation?: number | undefined;
84
+ } | undefined;
24
85
  privateExecutionResult?: any;
25
86
  }>, TxProvingResult, {
26
87
  publicInputs: string;
27
88
  clientIvcProof: string;
89
+ timings?: {
90
+ sync: number;
91
+ perFunction: {
92
+ functionName: string;
93
+ time: number;
94
+ }[];
95
+ unaccounted: number;
96
+ total: number;
97
+ validation?: number | undefined;
98
+ publicSimulation?: number | undefined;
99
+ } | undefined;
28
100
  privateExecutionResult?: any;
29
101
  }>;
30
102
  static from(fields: FieldsOf<TxProvingResult>): TxProvingResult;
@@ -1 +1 @@
1
- {"version":3,"file":"proven_tx.d.ts","sourceRoot":"","sources":["../../src/tx/proven_tx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oCAAoC,EAAE,MAAM,wDAAwD,CAAC;AAC9G,OA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAShB;IAED,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC;WAIhC,MAAM;CAOpB"}
@@ -1,16 +1,20 @@
1
+ import { optional } from '@aztec/foundation/schemas';
1
2
  import { z } from 'zod';
2
3
  import { PrivateKernelTailCircuitPublicInputs } from '../kernel/private_kernel_tail_circuit_public_inputs.js';
3
4
  import { ClientIvcProof } from '../proofs/client_ivc_proof.js';
4
5
  import { PrivateExecutionResult, collectSortedContractClassLogs } from './private_execution_result.js';
6
+ import { SimulationTimingsSchema } from './profiling.js';
5
7
  import { Tx } from './tx.js';
6
8
  export class TxProvingResult {
7
9
  privateExecutionResult;
8
10
  publicInputs;
9
11
  clientIvcProof;
10
- constructor(privateExecutionResult, publicInputs, clientIvcProof){
12
+ timings;
13
+ constructor(privateExecutionResult, publicInputs, clientIvcProof, timings){
11
14
  this.privateExecutionResult = privateExecutionResult;
12
15
  this.publicInputs = publicInputs;
13
16
  this.clientIvcProof = clientIvcProof;
17
+ this.timings = timings;
14
18
  }
15
19
  toTx() {
16
20
  const contractClassLogs = collectSortedContractClassLogs(this.privateExecutionResult);
@@ -21,7 +25,8 @@ export class TxProvingResult {
21
25
  return z.object({
22
26
  privateExecutionResult: PrivateExecutionResult.schema,
23
27
  publicInputs: PrivateKernelTailCircuitPublicInputs.schema,
24
- clientIvcProof: ClientIvcProof.schema
28
+ clientIvcProof: ClientIvcProof.schema,
29
+ timings: optional(SimulationTimingsSchema)
25
30
  }).transform(TxProvingResult.from);
26
31
  }
27
32
  static from(fields) {
@@ -1,8 +1,9 @@
1
- import type { ZodFor } from '@aztec/foundation/schemas';
1
+ import { type ZodFor } from '@aztec/foundation/schemas';
2
2
  import type { FieldsOf } from '@aztec/foundation/types';
3
3
  import type { GasUsed } from '../gas/gas_used.js';
4
4
  import { PrivateKernelTailCircuitPublicInputs } from '../kernel/private_kernel_tail_circuit_public_inputs.js';
5
5
  import { PrivateExecutionResult } from './private_execution_result.js';
6
+ import { type SimulationTimings } from './profiling.js';
6
7
  import { NestedProcessReturnValues, PublicSimulationOutput } from './public_simulation_output.js';
7
8
  import { Tx } from './tx.js';
8
9
  export declare class PrivateSimulationResult {
@@ -16,11 +17,12 @@ export declare class TxSimulationResult {
16
17
  privateExecutionResult: PrivateExecutionResult;
17
18
  publicInputs: PrivateKernelTailCircuitPublicInputs;
18
19
  publicOutput?: PublicSimulationOutput | undefined;
19
- constructor(privateExecutionResult: PrivateExecutionResult, publicInputs: PrivateKernelTailCircuitPublicInputs, publicOutput?: PublicSimulationOutput | undefined);
20
+ timings?: SimulationTimings | undefined;
21
+ constructor(privateExecutionResult: PrivateExecutionResult, publicInputs: PrivateKernelTailCircuitPublicInputs, publicOutput?: PublicSimulationOutput | undefined, timings?: SimulationTimings | undefined);
20
22
  get gasUsed(): GasUsed;
21
23
  static get schema(): ZodFor<TxSimulationResult>;
22
24
  static from(fields: Omit<FieldsOf<TxSimulationResult>, 'gasUsed'>): TxSimulationResult;
23
- static fromPrivateSimulationResultAndPublicOutput(privateSimulationResult: PrivateSimulationResult, publicOutput?: PublicSimulationOutput): TxSimulationResult;
25
+ static fromPrivateSimulationResultAndPublicOutput(privateSimulationResult: PrivateSimulationResult, publicOutput?: PublicSimulationOutput, timings?: SimulationTimings): TxSimulationResult;
24
26
  static random(): Promise<TxSimulationResult>;
25
27
  getPrivateReturnValues(): NestedProcessReturnValues;
26
28
  toSimulatedTx(): Tx;
@@ -1 +1 @@
1
- {"version":3,"file":"simulated_tx.d.ts","sourceRoot":"","sources":["../../src/tx/simulated_tx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAKxD,OAAO,KAAK,EAAE,OAAO,EAAE,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sB,GAAG,yBAAyB,CAWhH"}
@@ -1,8 +1,10 @@
1
+ import { optional } from '@aztec/foundation/schemas';
1
2
  import { z } from 'zod';
2
3
  import { Gas } from '../gas/gas.js';
3
4
  import { PrivateKernelTailCircuitPublicInputs } from '../kernel/private_kernel_tail_circuit_public_inputs.js';
4
5
  import { ClientIvcProof } from '../proofs/client_ivc_proof.js';
5
6
  import { PrivateExecutionResult, collectSortedContractClassLogs } from './private_execution_result.js';
7
+ import { SimulationTimingsSchema } from './profiling.js';
6
8
  import { NestedProcessReturnValues, PublicSimulationOutput } from './public_simulation_output.js';
7
9
  import { Tx } from './tx.js';
8
10
  export class PrivateSimulationResult {
@@ -25,10 +27,12 @@ export class TxSimulationResult {
25
27
  privateExecutionResult;
26
28
  publicInputs;
27
29
  publicOutput;
28
- constructor(privateExecutionResult, publicInputs, publicOutput){
30
+ timings;
31
+ constructor(privateExecutionResult, publicInputs, publicOutput, timings){
29
32
  this.privateExecutionResult = privateExecutionResult;
30
33
  this.publicInputs = publicInputs;
31
34
  this.publicOutput = publicOutput;
35
+ this.timings = timings;
32
36
  }
33
37
  get gasUsed() {
34
38
  return this.publicOutput?.gasUsed ?? {
@@ -42,14 +46,15 @@ export class TxSimulationResult {
42
46
  return z.object({
43
47
  privateExecutionResult: PrivateExecutionResult.schema,
44
48
  publicInputs: PrivateKernelTailCircuitPublicInputs.schema,
45
- publicOutput: PublicSimulationOutput.schema.optional()
49
+ publicOutput: PublicSimulationOutput.schema.optional(),
50
+ timings: optional(SimulationTimingsSchema)
46
51
  }).transform(TxSimulationResult.from);
47
52
  }
48
53
  static from(fields) {
49
- return new TxSimulationResult(fields.privateExecutionResult, fields.publicInputs, fields.publicOutput);
54
+ return new TxSimulationResult(fields.privateExecutionResult, fields.publicInputs, fields.publicOutput, fields.timings);
50
55
  }
51
- static fromPrivateSimulationResultAndPublicOutput(privateSimulationResult, publicOutput) {
52
- return new TxSimulationResult(privateSimulationResult.privateExecutionResult, privateSimulationResult.publicInputs, publicOutput);
56
+ static fromPrivateSimulationResultAndPublicOutput(privateSimulationResult, publicOutput, timings) {
57
+ return new TxSimulationResult(privateSimulationResult.privateExecutionResult, privateSimulationResult.publicInputs, publicOutput, timings);
53
58
  }
54
59
  static async random() {
55
60
  return new TxSimulationResult(await PrivateExecutionResult.random(), PrivateKernelTailCircuitPublicInputs.empty(), await PublicSimulationOutput.random());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/stdlib",
3
- "version": "0.86.0-nightly.20250507",
3
+ "version": "0.86.0-nightly.20250508",
4
4
  "type": "module",
5
5
  "inherits": [
6
6
  "../package.common.json",
@@ -66,12 +66,12 @@
66
66
  "test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
67
67
  },
68
68
  "dependencies": {
69
- "@aztec/bb.js": "0.86.0-nightly.20250507",
70
- "@aztec/blob-lib": "0.86.0-nightly.20250507",
71
- "@aztec/constants": "0.86.0-nightly.20250507",
72
- "@aztec/ethereum": "0.86.0-nightly.20250507",
73
- "@aztec/foundation": "0.86.0-nightly.20250507",
74
- "@aztec/noir-noirc_abi": "0.86.0-nightly.20250507",
69
+ "@aztec/bb.js": "0.86.0-nightly.20250508",
70
+ "@aztec/blob-lib": "0.86.0-nightly.20250508",
71
+ "@aztec/constants": "0.86.0-nightly.20250508",
72
+ "@aztec/ethereum": "0.86.0-nightly.20250508",
73
+ "@aztec/foundation": "0.86.0-nightly.20250508",
74
+ "@aztec/noir-noirc_abi": "0.86.0-nightly.20250508",
75
75
  "@google-cloud/storage": "^7.15.0",
76
76
  "lodash.chunk": "^4.2.0",
77
77
  "lodash.isequal": "^4.5.0",
@@ -38,7 +38,7 @@ import {
38
38
  TxSimulationResult,
39
39
  indexedTxSchema,
40
40
  } from '../tx/index.js';
41
- import { TxProfileResult } from '../tx/profiled_tx.js';
41
+ import { TxProfileResult } from '../tx/profiling.js';
42
42
  import { TxProvingResult } from '../tx/proven_tx.js';
43
43
  import {
44
44
  type GetContractClassLogsResponse,
package/src/tx/index.ts CHANGED
@@ -18,7 +18,6 @@ export * from './tx_receipt.js';
18
18
  export * from './tx.js';
19
19
  export * from './processed_tx.js';
20
20
  export * from './proven_tx.js';
21
- export * from './profiled_tx.js';
22
21
  export * from './simulated_tx.js';
23
22
  export * from './tx_effect.js';
24
23
  export * from './public_simulation_output.js';
@@ -30,3 +29,4 @@ export * from './capsule.js';
30
29
  export * from './global_variable_builder.js';
31
30
  export * from './hashed_values.js';
32
31
  export * from './indexed_tx_effect.js';
32
+ export * from './profiling.js';
@@ -0,0 +1,88 @@
1
+ import { type ZodFor, optional } from '@aztec/foundation/schemas';
2
+
3
+ import { z } from 'zod';
4
+
5
+ import { type PrivateExecutionStep, PrivateExecutionStepSchema } from '../kernel/private_kernel_prover_output.js';
6
+
7
+ type FunctionTiming = {
8
+ functionName: string;
9
+ time: number;
10
+ };
11
+
12
+ const FunctionTimingSchema = z.object({ functionName: z.string(), time: z.number() });
13
+
14
+ export type ProvingTimings = {
15
+ sync?: number;
16
+ proving?: number;
17
+ perFunction: FunctionTiming[];
18
+ unaccounted: number;
19
+ total: number;
20
+ };
21
+
22
+ export const ProvingTimingsSchema = z.object({
23
+ sync: optional(z.number()),
24
+ proving: optional(z.number()),
25
+ perFunction: z.array(FunctionTimingSchema),
26
+ unaccounted: z.number(),
27
+ total: z.number(),
28
+ });
29
+
30
+ export interface SimulationTimings {
31
+ sync: number;
32
+ publicSimulation?: number;
33
+ validation?: number;
34
+ perFunction: FunctionTiming[];
35
+ unaccounted: number;
36
+ total: number;
37
+ }
38
+
39
+ export const SimulationTimingsSchema = z.object({
40
+ sync: z.number(),
41
+ publicSimulation: optional(z.number()),
42
+ validation: optional(z.number()),
43
+ perFunction: z.array(FunctionTimingSchema),
44
+ unaccounted: z.number(),
45
+ total: z.number(),
46
+ });
47
+
48
+ export class TxProfileResult {
49
+ constructor(public executionSteps: PrivateExecutionStep[], public timings: ProvingTimings) {}
50
+
51
+ static get schema(): ZodFor<TxProfileResult> {
52
+ return z
53
+ .object({
54
+ executionSteps: z.array(PrivateExecutionStepSchema),
55
+ timings: ProvingTimingsSchema,
56
+ })
57
+ .transform(({ executionSteps, timings }) => new TxProfileResult(executionSteps, timings));
58
+ }
59
+
60
+ static random(): TxProfileResult {
61
+ return new TxProfileResult(
62
+ [
63
+ {
64
+ functionName: 'random',
65
+ bytecode: Buffer.from('random'),
66
+ witness: new Map([[1, 'random']]),
67
+ vk: Buffer.from('random'),
68
+ timings: {
69
+ witgen: 1,
70
+ gateCount: 1,
71
+ },
72
+ },
73
+ ],
74
+ {
75
+ sync: 1,
76
+ proving: 1,
77
+ perFunction: [
78
+ {
79
+ functionName: 'random',
80
+ time: 1,
81
+ },
82
+ ],
83
+ unaccounted: 1,
84
+ total: 4,
85
+ },
86
+ );
87
+ }
88
+ }
@@ -1,3 +1,4 @@
1
+ import { optional } from '@aztec/foundation/schemas';
1
2
  import type { FieldsOf } from '@aztec/foundation/types';
2
3
 
3
4
  import { z } from 'zod';
@@ -5,6 +6,7 @@ import { z } from 'zod';
5
6
  import { PrivateKernelTailCircuitPublicInputs } from '../kernel/private_kernel_tail_circuit_public_inputs.js';
6
7
  import { ClientIvcProof } from '../proofs/client_ivc_proof.js';
7
8
  import { PrivateExecutionResult, collectSortedContractClassLogs } from './private_execution_result.js';
9
+ import { type ProvingTimings, SimulationTimingsSchema } from './profiling.js';
8
10
  import { Tx } from './tx.js';
9
11
 
10
12
  export class TxProvingResult {
@@ -12,6 +14,7 @@ export class TxProvingResult {
12
14
  public privateExecutionResult: PrivateExecutionResult,
13
15
  public publicInputs: PrivateKernelTailCircuitPublicInputs,
14
16
  public clientIvcProof: ClientIvcProof,
17
+ public timings?: ProvingTimings,
15
18
  ) {}
16
19
 
17
20
  toTx(): Tx {
@@ -32,6 +35,7 @@ export class TxProvingResult {
32
35
  privateExecutionResult: PrivateExecutionResult.schema,
33
36
  publicInputs: PrivateKernelTailCircuitPublicInputs.schema,
34
37
  clientIvcProof: ClientIvcProof.schema,
38
+ timings: optional(SimulationTimingsSchema),
35
39
  })
36
40
  .transform(TxProvingResult.from);
37
41
  }
@@ -1,4 +1,4 @@
1
- import type { ZodFor } from '@aztec/foundation/schemas';
1
+ import { type ZodFor, optional } from '@aztec/foundation/schemas';
2
2
  import type { FieldsOf } from '@aztec/foundation/types';
3
3
 
4
4
  import { z } from 'zod';
@@ -12,6 +12,7 @@ import {
12
12
  PrivateExecutionResult,
13
13
  collectSortedContractClassLogs,
14
14
  } from './private_execution_result.js';
15
+ import { type SimulationTimings, SimulationTimingsSchema } from './profiling.js';
15
16
  import { NestedProcessReturnValues, PublicSimulationOutput } from './public_simulation_output.js';
16
17
  import { Tx } from './tx.js';
17
18
 
@@ -43,6 +44,7 @@ export class TxSimulationResult {
43
44
  public privateExecutionResult: PrivateExecutionResult,
44
45
  public publicInputs: PrivateKernelTailCircuitPublicInputs,
45
46
  public publicOutput?: PublicSimulationOutput,
47
+ public timings?: SimulationTimings,
46
48
  ) {}
47
49
 
48
50
  get gasUsed(): GasUsed {
@@ -62,22 +64,30 @@ export class TxSimulationResult {
62
64
  privateExecutionResult: PrivateExecutionResult.schema,
63
65
  publicInputs: PrivateKernelTailCircuitPublicInputs.schema,
64
66
  publicOutput: PublicSimulationOutput.schema.optional(),
67
+ timings: optional(SimulationTimingsSchema),
65
68
  })
66
69
  .transform(TxSimulationResult.from);
67
70
  }
68
71
 
69
72
  static from(fields: Omit<FieldsOf<TxSimulationResult>, 'gasUsed'>) {
70
- return new TxSimulationResult(fields.privateExecutionResult, fields.publicInputs, fields.publicOutput);
73
+ return new TxSimulationResult(
74
+ fields.privateExecutionResult,
75
+ fields.publicInputs,
76
+ fields.publicOutput,
77
+ fields.timings,
78
+ );
71
79
  }
72
80
 
73
81
  static fromPrivateSimulationResultAndPublicOutput(
74
82
  privateSimulationResult: PrivateSimulationResult,
75
83
  publicOutput?: PublicSimulationOutput,
84
+ timings?: SimulationTimings,
76
85
  ) {
77
86
  return new TxSimulationResult(
78
87
  privateSimulationResult.privateExecutionResult,
79
88
  privateSimulationResult.publicInputs,
80
89
  publicOutput,
90
+ timings,
81
91
  );
82
92
  }
83
93
 
@@ -1,11 +0,0 @@
1
- import type { ZodFor } from '@aztec/foundation/schemas';
2
- import { type PrivateExecutionStep } from '../kernel/private_kernel_prover_output.js';
3
- export declare class TxProfileResult {
4
- executionSteps: PrivateExecutionStep[];
5
- syncTime: number;
6
- provingTime?: number | undefined;
7
- constructor(executionSteps: PrivateExecutionStep[], syncTime: number, provingTime?: number | undefined);
8
- static get schema(): ZodFor<TxProfileResult>;
9
- static random(): TxProfileResult;
10
- }
11
- //# sourceMappingURL=profiled_tx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profiled_tx.d.ts","sourceRoot":"","sources":["../../src/tx/profiled_tx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAIxD,OAAO,EAAE,KAAK,oBAAoB,EAA8B,MAAM,2CAA2C,CAAC;AAElH,qBAAa,eAAe;IACP,cAAc,EAAE,oBAAoB,EAAE;IAAS,QAAQ,EAAE,MAAM;IAAS,WAAW,CAAC;gBAApF,cAAc,EAAE,oBAAoB,EAAE,EAAS,QAAQ,EAAE,MAAM,EAAS,WAAW,CAAC,oBAAQ;IAE/G,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,eAAe,CAAC,CAU3C;IAED,MAAM,CAAC,MAAM,IAAI,eAAe;CAkBjC"}
@@ -1,38 +0,0 @@
1
- import { z } from 'zod';
2
- import { PrivateExecutionStepSchema } from '../kernel/private_kernel_prover_output.js';
3
- export class TxProfileResult {
4
- executionSteps;
5
- syncTime;
6
- provingTime;
7
- constructor(executionSteps, syncTime, provingTime){
8
- this.executionSteps = executionSteps;
9
- this.syncTime = syncTime;
10
- this.provingTime = provingTime;
11
- }
12
- static get schema() {
13
- return z.object({
14
- executionSteps: z.array(PrivateExecutionStepSchema),
15
- provingTime: z.number().optional(),
16
- syncTime: z.number()
17
- }).transform(({ executionSteps, syncTime, provingTime })=>new TxProfileResult(executionSteps, syncTime, provingTime));
18
- }
19
- static random() {
20
- return new TxProfileResult([
21
- {
22
- functionName: 'random',
23
- bytecode: Buffer.from('random'),
24
- witness: new Map([
25
- [
26
- 1,
27
- 'random'
28
- ]
29
- ]),
30
- vk: Buffer.from('random'),
31
- timings: {
32
- witgen: 1,
33
- gateCount: 1
34
- }
35
- }
36
- ], 1, 1);
37
- }
38
- }
@@ -1,40 +0,0 @@
1
- import type { ZodFor } from '@aztec/foundation/schemas';
2
-
3
- import { z } from 'zod';
4
-
5
- import { type PrivateExecutionStep, PrivateExecutionStepSchema } from '../kernel/private_kernel_prover_output.js';
6
-
7
- export class TxProfileResult {
8
- constructor(public executionSteps: PrivateExecutionStep[], public syncTime: number, public provingTime?: number) {}
9
-
10
- static get schema(): ZodFor<TxProfileResult> {
11
- return z
12
- .object({
13
- executionSteps: z.array(PrivateExecutionStepSchema),
14
- provingTime: z.number().optional(),
15
- syncTime: z.number(),
16
- })
17
- .transform(
18
- ({ executionSteps, syncTime, provingTime }) => new TxProfileResult(executionSteps, syncTime, provingTime),
19
- );
20
- }
21
-
22
- static random(): TxProfileResult {
23
- return new TxProfileResult(
24
- [
25
- {
26
- functionName: 'random',
27
- bytecode: Buffer.from('random'),
28
- witness: new Map([[1, 'random']]),
29
- vk: Buffer.from('random'),
30
- timings: {
31
- witgen: 1,
32
- gateCount: 1,
33
- },
34
- },
35
- ],
36
- 1,
37
- 1,
38
- );
39
- }
40
- }