@aztec/stdlib 0.87.0 → 0.87.2-nightly.20250523
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 -0
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/abi/abi.js +38 -0
- package/dest/avm/avm.d.ts +92 -0
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm_accumulated_data.d.ts +77 -0
- package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
- package/dest/avm/avm_accumulated_data.js +67 -0
- package/dest/avm/avm_circuit_public_inputs.d.ts +73 -3
- package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
- package/dest/avm/avm_circuit_public_inputs.js +19 -9
- package/dest/avm/avm_proving_request.d.ts +104 -0
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/block/body.d.ts +1 -1
- package/dest/block/body.d.ts.map +1 -1
- package/dest/block/body.js +2 -2
- package/dest/block/l2_block.d.ts +1 -1
- package/dest/block/l2_block.d.ts.map +1 -1
- package/dest/block/l2_block.js +2 -2
- package/dest/interfaces/proving-job.d.ts +108 -4
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/proving-job.js +2 -2
- package/dest/interfaces/server_circuit_prover.d.ts +3 -2
- package/dest/interfaces/server_circuit_prover.d.ts.map +1 -1
- package/dest/kernel/public_call_request.d.ts +54 -0
- package/dest/kernel/public_call_request.d.ts.map +1 -1
- package/dest/kernel/public_call_request.js +58 -0
- package/dest/logs/pending_tagged_log.d.ts +1 -1
- package/dest/logs/pending_tagged_log.js +1 -1
- package/dest/rollup/avm_proof_data.d.ts +5 -3
- package/dest/rollup/avm_proof_data.d.ts.map +1 -1
- package/dest/rollup/avm_proof_data.js +10 -2
- package/dest/rollup/root_rollup.d.ts +9 -10
- package/dest/rollup/root_rollup.d.ts.map +1 -1
- package/dest/rollup/root_rollup.js +9 -20
- package/dest/tests/factories.d.ts +2 -1
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +12 -6
- package/dest/tx/tx_effect.d.ts +1 -1
- package/dest/tx/tx_effect.d.ts.map +1 -1
- package/dest/tx/tx_effect.js +2 -2
- 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/package.json +7 -7
- package/src/abi/abi.ts +37 -0
- package/src/avm/avm_accumulated_data.ts +93 -0
- package/src/avm/avm_circuit_public_inputs.ts +22 -2
- package/src/block/body.ts +7 -2
- package/src/block/l2_block.ts +2 -1
- package/src/interfaces/proving-job.ts +3 -3
- package/src/interfaces/server_circuit_prover.ts +3 -2
- package/src/kernel/public_call_request.ts +66 -0
- package/src/logs/pending_tagged_log.ts +1 -1
- package/src/rollup/avm_proof_data.ts +10 -3
- package/src/rollup/root_rollup.ts +6 -19
- package/src/tests/factories.ts +22 -10
- package/src/tx/tx_effect.ts +23 -5
- package/src/tx/validator/error_texts.ts +1 -1
|
@@ -6,16 +6,17 @@ import { z } from 'zod';
|
|
|
6
6
|
import { AztecAddress } from '../aztec-address/index.js';
|
|
7
7
|
import { Gas, GasSettings } from '../gas/index.js';
|
|
8
8
|
import { PrivateToAvmAccumulatedData, PrivateToAvmAccumulatedDataArrayLengths } from '../kernel/private_to_avm_accumulated_data.js';
|
|
9
|
-
import { PublicCallRequest } from '../kernel/public_call_request.js';
|
|
9
|
+
import { PublicCallRequest, PublicCallRequestArrayLengths } from '../kernel/public_call_request.js';
|
|
10
10
|
import { GlobalVariables } from '../tx/global_variables.js';
|
|
11
11
|
import { TreeSnapshots } from '../tx/tree_snapshots.js';
|
|
12
|
-
import { AvmAccumulatedData } from './avm_accumulated_data.js';
|
|
12
|
+
import { AvmAccumulatedData, AvmAccumulatedDataArrayLengths } from './avm_accumulated_data.js';
|
|
13
13
|
export declare class AvmCircuitPublicInputs {
|
|
14
14
|
globalVariables: GlobalVariables;
|
|
15
15
|
startTreeSnapshots: TreeSnapshots;
|
|
16
16
|
startGasUsed: Gas;
|
|
17
17
|
gasSettings: GasSettings;
|
|
18
18
|
feePayer: AztecAddress;
|
|
19
|
+
publicCallRequestArrayLengths: PublicCallRequestArrayLengths;
|
|
19
20
|
publicSetupCallRequests: Tuple<PublicCallRequest, typeof MAX_ENQUEUED_CALLS_PER_TX>;
|
|
20
21
|
publicAppLogicCallRequests: Tuple<PublicCallRequest, typeof MAX_ENQUEUED_CALLS_PER_TX>;
|
|
21
22
|
publicTeardownCallRequest: PublicCallRequest;
|
|
@@ -25,10 +26,11 @@ export declare class AvmCircuitPublicInputs {
|
|
|
25
26
|
previousRevertibleAccumulatedData: PrivateToAvmAccumulatedData;
|
|
26
27
|
endTreeSnapshots: TreeSnapshots;
|
|
27
28
|
endGasUsed: Gas;
|
|
29
|
+
accumulatedDataArrayLengths: AvmAccumulatedDataArrayLengths;
|
|
28
30
|
accumulatedData: AvmAccumulatedData;
|
|
29
31
|
transactionFee: Fr;
|
|
30
32
|
reverted: boolean;
|
|
31
|
-
constructor(globalVariables: GlobalVariables, startTreeSnapshots: TreeSnapshots, startGasUsed: Gas, gasSettings: GasSettings, feePayer: AztecAddress, publicSetupCallRequests: Tuple<PublicCallRequest, typeof MAX_ENQUEUED_CALLS_PER_TX>, publicAppLogicCallRequests: Tuple<PublicCallRequest, typeof MAX_ENQUEUED_CALLS_PER_TX>, publicTeardownCallRequest: PublicCallRequest, previousNonRevertibleAccumulatedDataArrayLengths: PrivateToAvmAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths: PrivateToAvmAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData: PrivateToAvmAccumulatedData, previousRevertibleAccumulatedData: PrivateToAvmAccumulatedData, endTreeSnapshots: TreeSnapshots, endGasUsed: Gas, accumulatedData: AvmAccumulatedData, transactionFee: Fr, reverted: boolean);
|
|
33
|
+
constructor(globalVariables: GlobalVariables, startTreeSnapshots: TreeSnapshots, startGasUsed: Gas, gasSettings: GasSettings, feePayer: AztecAddress, publicCallRequestArrayLengths: PublicCallRequestArrayLengths, publicSetupCallRequests: Tuple<PublicCallRequest, typeof MAX_ENQUEUED_CALLS_PER_TX>, publicAppLogicCallRequests: Tuple<PublicCallRequest, typeof MAX_ENQUEUED_CALLS_PER_TX>, publicTeardownCallRequest: PublicCallRequest, previousNonRevertibleAccumulatedDataArrayLengths: PrivateToAvmAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths: PrivateToAvmAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData: PrivateToAvmAccumulatedData, previousRevertibleAccumulatedData: PrivateToAvmAccumulatedData, endTreeSnapshots: TreeSnapshots, endGasUsed: Gas, accumulatedDataArrayLengths: AvmAccumulatedDataArrayLengths, accumulatedData: AvmAccumulatedData, transactionFee: Fr, reverted: boolean);
|
|
32
34
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
33
35
|
globalVariables: z.ZodEffects<z.ZodObject<{
|
|
34
36
|
chainId: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
@@ -285,6 +287,23 @@ export declare class AvmCircuitPublicInputs {
|
|
|
285
287
|
};
|
|
286
288
|
}>;
|
|
287
289
|
feePayer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
290
|
+
publicCallRequestArrayLengths: z.ZodEffects<z.ZodObject<{
|
|
291
|
+
setupCalls: z.ZodNumber;
|
|
292
|
+
appLogicCalls: z.ZodNumber;
|
|
293
|
+
teardownCall: z.ZodBoolean;
|
|
294
|
+
}, "strip", z.ZodTypeAny, {
|
|
295
|
+
setupCalls: number;
|
|
296
|
+
appLogicCalls: number;
|
|
297
|
+
teardownCall: boolean;
|
|
298
|
+
}, {
|
|
299
|
+
setupCalls: number;
|
|
300
|
+
appLogicCalls: number;
|
|
301
|
+
teardownCall: boolean;
|
|
302
|
+
}>, PublicCallRequestArrayLengths, {
|
|
303
|
+
setupCalls: number;
|
|
304
|
+
appLogicCalls: number;
|
|
305
|
+
teardownCall: boolean;
|
|
306
|
+
}>;
|
|
288
307
|
publicSetupCallRequests: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
289
308
|
msgSender: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
290
309
|
contractAddress: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
@@ -622,6 +641,31 @@ export declare class AvmCircuitPublicInputs {
|
|
|
622
641
|
daGas: string | number | bigint;
|
|
623
642
|
l2Gas: string | number | bigint;
|
|
624
643
|
}>;
|
|
644
|
+
accumulatedDataArrayLengths: z.ZodEffects<z.ZodObject<{
|
|
645
|
+
noteHashes: z.ZodNumber;
|
|
646
|
+
nullifiers: z.ZodNumber;
|
|
647
|
+
l2ToL1Msgs: z.ZodNumber;
|
|
648
|
+
publicLogs: z.ZodNumber;
|
|
649
|
+
publicDataWrites: z.ZodNumber;
|
|
650
|
+
}, "strip", z.ZodTypeAny, {
|
|
651
|
+
noteHashes: number;
|
|
652
|
+
nullifiers: number;
|
|
653
|
+
l2ToL1Msgs: number;
|
|
654
|
+
publicLogs: number;
|
|
655
|
+
publicDataWrites: number;
|
|
656
|
+
}, {
|
|
657
|
+
noteHashes: number;
|
|
658
|
+
nullifiers: number;
|
|
659
|
+
l2ToL1Msgs: number;
|
|
660
|
+
publicLogs: number;
|
|
661
|
+
publicDataWrites: number;
|
|
662
|
+
}>, AvmAccumulatedDataArrayLengths, {
|
|
663
|
+
noteHashes: number;
|
|
664
|
+
nullifiers: number;
|
|
665
|
+
l2ToL1Msgs: number;
|
|
666
|
+
publicLogs: number;
|
|
667
|
+
publicDataWrites: number;
|
|
668
|
+
}>;
|
|
625
669
|
accumulatedData: z.ZodEffects<z.ZodObject<{
|
|
626
670
|
noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
627
671
|
nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
@@ -725,6 +769,7 @@ export declare class AvmCircuitPublicInputs {
|
|
|
725
769
|
feePayer: AztecAddress;
|
|
726
770
|
startTreeSnapshots: TreeSnapshots;
|
|
727
771
|
startGasUsed: Gas;
|
|
772
|
+
publicCallRequestArrayLengths: PublicCallRequestArrayLengths;
|
|
728
773
|
publicSetupCallRequests: PublicCallRequest[];
|
|
729
774
|
publicAppLogicCallRequests: PublicCallRequest[];
|
|
730
775
|
previousNonRevertibleAccumulatedDataArrayLengths: PrivateToAvmAccumulatedDataArrayLengths;
|
|
@@ -733,6 +778,7 @@ export declare class AvmCircuitPublicInputs {
|
|
|
733
778
|
previousRevertibleAccumulatedData: PrivateToAvmAccumulatedData;
|
|
734
779
|
endTreeSnapshots: TreeSnapshots;
|
|
735
780
|
endGasUsed: Gas;
|
|
781
|
+
accumulatedDataArrayLengths: AvmAccumulatedDataArrayLengths;
|
|
736
782
|
accumulatedData: AvmAccumulatedData;
|
|
737
783
|
reverted: boolean;
|
|
738
784
|
}, {
|
|
@@ -796,6 +842,11 @@ export declare class AvmCircuitPublicInputs {
|
|
|
796
842
|
daGas: string | number | bigint;
|
|
797
843
|
l2Gas: string | number | bigint;
|
|
798
844
|
};
|
|
845
|
+
publicCallRequestArrayLengths: {
|
|
846
|
+
setupCalls: number;
|
|
847
|
+
appLogicCalls: number;
|
|
848
|
+
teardownCall: boolean;
|
|
849
|
+
};
|
|
799
850
|
publicSetupCallRequests: {
|
|
800
851
|
isStaticCall: boolean;
|
|
801
852
|
calldataHash: string;
|
|
@@ -864,6 +915,13 @@ export declare class AvmCircuitPublicInputs {
|
|
|
864
915
|
daGas: string | number | bigint;
|
|
865
916
|
l2Gas: string | number | bigint;
|
|
866
917
|
};
|
|
918
|
+
accumulatedDataArrayLengths: {
|
|
919
|
+
noteHashes: number;
|
|
920
|
+
nullifiers: number;
|
|
921
|
+
l2ToL1Msgs: number;
|
|
922
|
+
publicLogs: number;
|
|
923
|
+
publicDataWrites: number;
|
|
924
|
+
};
|
|
867
925
|
accumulatedData: {
|
|
868
926
|
noteHashes: string[];
|
|
869
927
|
nullifiers: string[];
|
|
@@ -944,6 +1002,11 @@ export declare class AvmCircuitPublicInputs {
|
|
|
944
1002
|
daGas: string | number | bigint;
|
|
945
1003
|
l2Gas: string | number | bigint;
|
|
946
1004
|
};
|
|
1005
|
+
publicCallRequestArrayLengths: {
|
|
1006
|
+
setupCalls: number;
|
|
1007
|
+
appLogicCalls: number;
|
|
1008
|
+
teardownCall: boolean;
|
|
1009
|
+
};
|
|
947
1010
|
publicSetupCallRequests: {
|
|
948
1011
|
isStaticCall: boolean;
|
|
949
1012
|
calldataHash: string;
|
|
@@ -1012,6 +1075,13 @@ export declare class AvmCircuitPublicInputs {
|
|
|
1012
1075
|
daGas: string | number | bigint;
|
|
1013
1076
|
l2Gas: string | number | bigint;
|
|
1014
1077
|
};
|
|
1078
|
+
accumulatedDataArrayLengths: {
|
|
1079
|
+
noteHashes: number;
|
|
1080
|
+
nullifiers: number;
|
|
1081
|
+
l2ToL1Msgs: number;
|
|
1082
|
+
publicLogs: number;
|
|
1083
|
+
publicDataWrites: number;
|
|
1084
|
+
};
|
|
1015
1085
|
accumulatedData: {
|
|
1016
1086
|
noteHashes: string[];
|
|
1017
1087
|
nullifiers: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avm_circuit_public_inputs.d.ts","sourceRoot":"","sources":["../../src/avm/avm_circuit_public_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,KAAK,EAAmC,MAAM,6BAA6B,CAAC;AAGrH,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,WAAW,EAA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AAQ;IAwBR,MAAM,CAAC,KAAK;IAwBL,wBAAwB,IAAI,MAAM;IAIzC,CAAC,OAAO,CAAC,MAAM,CAAC;CA+BjB"}
|
|
@@ -9,10 +9,10 @@ import { z } from 'zod';
|
|
|
9
9
|
import { AztecAddress } from '../aztec-address/index.js';
|
|
10
10
|
import { Gas, GasSettings } from '../gas/index.js';
|
|
11
11
|
import { PrivateToAvmAccumulatedData, PrivateToAvmAccumulatedDataArrayLengths } from '../kernel/private_to_avm_accumulated_data.js';
|
|
12
|
-
import { PublicCallRequest } from '../kernel/public_call_request.js';
|
|
12
|
+
import { PublicCallRequest, PublicCallRequestArrayLengths } from '../kernel/public_call_request.js';
|
|
13
13
|
import { GlobalVariables } from '../tx/global_variables.js';
|
|
14
14
|
import { TreeSnapshots } from '../tx/tree_snapshots.js';
|
|
15
|
-
import { AvmAccumulatedData } from './avm_accumulated_data.js';
|
|
15
|
+
import { AvmAccumulatedData, AvmAccumulatedDataArrayLengths } from './avm_accumulated_data.js';
|
|
16
16
|
import { serializeWithMessagePack } from './message_pack.js';
|
|
17
17
|
// Note: the {from,to}{Buffer,Fields,String} methods are needed by AvmProofData and PublicBaseRollupInputs.
|
|
18
18
|
// At some point it might be worth writing Zod schemas for all dependent types and get rid of that.
|
|
@@ -22,6 +22,7 @@ export class AvmCircuitPublicInputs {
|
|
|
22
22
|
startGasUsed;
|
|
23
23
|
gasSettings;
|
|
24
24
|
feePayer;
|
|
25
|
+
publicCallRequestArrayLengths;
|
|
25
26
|
publicSetupCallRequests;
|
|
26
27
|
publicAppLogicCallRequests;
|
|
27
28
|
publicTeardownCallRequest;
|
|
@@ -31,19 +32,21 @@ export class AvmCircuitPublicInputs {
|
|
|
31
32
|
previousRevertibleAccumulatedData;
|
|
32
33
|
endTreeSnapshots;
|
|
33
34
|
endGasUsed;
|
|
35
|
+
accumulatedDataArrayLengths;
|
|
34
36
|
accumulatedData;
|
|
35
37
|
transactionFee;
|
|
36
38
|
reverted;
|
|
37
39
|
constructor(///////////////////////////////////
|
|
38
40
|
// Inputs.
|
|
39
|
-
globalVariables, startTreeSnapshots, startGasUsed, gasSettings, feePayer, publicSetupCallRequests, publicAppLogicCallRequests, publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, ///////////////////////////////////
|
|
41
|
+
globalVariables, startTreeSnapshots, startGasUsed, gasSettings, feePayer, publicCallRequestArrayLengths, publicSetupCallRequests, publicAppLogicCallRequests, publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, ///////////////////////////////////
|
|
40
42
|
// Outputs.
|
|
41
|
-
endTreeSnapshots, endGasUsed, accumulatedData, transactionFee, reverted){
|
|
43
|
+
endTreeSnapshots, endGasUsed, accumulatedDataArrayLengths, accumulatedData, transactionFee, reverted){
|
|
42
44
|
this.globalVariables = globalVariables;
|
|
43
45
|
this.startTreeSnapshots = startTreeSnapshots;
|
|
44
46
|
this.startGasUsed = startGasUsed;
|
|
45
47
|
this.gasSettings = gasSettings;
|
|
46
48
|
this.feePayer = feePayer;
|
|
49
|
+
this.publicCallRequestArrayLengths = publicCallRequestArrayLengths;
|
|
47
50
|
this.publicSetupCallRequests = publicSetupCallRequests;
|
|
48
51
|
this.publicAppLogicCallRequests = publicAppLogicCallRequests;
|
|
49
52
|
this.publicTeardownCallRequest = publicTeardownCallRequest;
|
|
@@ -53,6 +56,7 @@ export class AvmCircuitPublicInputs {
|
|
|
53
56
|
this.previousRevertibleAccumulatedData = previousRevertibleAccumulatedData;
|
|
54
57
|
this.endTreeSnapshots = endTreeSnapshots;
|
|
55
58
|
this.endGasUsed = endGasUsed;
|
|
59
|
+
this.accumulatedDataArrayLengths = accumulatedDataArrayLengths;
|
|
56
60
|
this.accumulatedData = accumulatedData;
|
|
57
61
|
this.transactionFee = transactionFee;
|
|
58
62
|
this.reverted = reverted;
|
|
@@ -64,6 +68,7 @@ export class AvmCircuitPublicInputs {
|
|
|
64
68
|
startGasUsed: Gas.schema,
|
|
65
69
|
gasSettings: GasSettings.schema,
|
|
66
70
|
feePayer: AztecAddress.schema,
|
|
71
|
+
publicCallRequestArrayLengths: PublicCallRequestArrayLengths.schema,
|
|
67
72
|
publicSetupCallRequests: PublicCallRequest.schema.array().max(MAX_ENQUEUED_CALLS_PER_TX),
|
|
68
73
|
publicAppLogicCallRequests: PublicCallRequest.schema.array().max(MAX_ENQUEUED_CALLS_PER_TX),
|
|
69
74
|
publicTeardownCallRequest: PublicCallRequest.schema,
|
|
@@ -73,17 +78,18 @@ export class AvmCircuitPublicInputs {
|
|
|
73
78
|
previousRevertibleAccumulatedData: PrivateToAvmAccumulatedData.schema,
|
|
74
79
|
endTreeSnapshots: TreeSnapshots.schema,
|
|
75
80
|
endGasUsed: Gas.schema,
|
|
81
|
+
accumulatedDataArrayLengths: AvmAccumulatedDataArrayLengths.schema,
|
|
76
82
|
accumulatedData: AvmAccumulatedData.schema,
|
|
77
83
|
transactionFee: schemas.Fr,
|
|
78
84
|
reverted: z.boolean()
|
|
79
|
-
}).transform(({ globalVariables, startTreeSnapshots, startGasUsed, gasSettings, feePayer, publicSetupCallRequests, publicAppLogicCallRequests, publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, endTreeSnapshots, endGasUsed, accumulatedData, transactionFee, reverted })=>new AvmCircuitPublicInputs(globalVariables, startTreeSnapshots, startGasUsed, gasSettings, feePayer, assertLength(publicSetupCallRequests, MAX_ENQUEUED_CALLS_PER_TX), assertLength(publicAppLogicCallRequests, MAX_ENQUEUED_CALLS_PER_TX), publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, endTreeSnapshots, endGasUsed, accumulatedData, transactionFee, reverted));
|
|
85
|
+
}).transform(({ globalVariables, startTreeSnapshots, startGasUsed, gasSettings, feePayer, publicCallRequestArrayLengths, publicSetupCallRequests, publicAppLogicCallRequests, publicTeardownCallRequest, previousNonRevertibleAccumulatedDataArrayLengths, previousRevertibleAccumulatedDataArrayLengths, previousNonRevertibleAccumulatedData, previousRevertibleAccumulatedData, endTreeSnapshots, endGasUsed, accumulatedDataArrayLengths, accumulatedData, transactionFee, reverted })=>new AvmCircuitPublicInputs(globalVariables, startTreeSnapshots, startGasUsed, gasSettings, feePayer, 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));
|
|
80
86
|
}
|
|
81
87
|
static fromBuffer(buffer) {
|
|
82
88
|
const reader = BufferReader.asReader(buffer);
|
|
83
|
-
return new AvmCircuitPublicInputs(reader.readObject(GlobalVariables), reader.readObject(TreeSnapshots), reader.readObject(Gas), reader.readObject(GasSettings), reader.readObject(AztecAddress), 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(AvmAccumulatedData), reader.readObject(Fr), reader.readBoolean());
|
|
89
|
+
return new AvmCircuitPublicInputs(reader.readObject(GlobalVariables), reader.readObject(TreeSnapshots), reader.readObject(Gas), reader.readObject(GasSettings), reader.readObject(AztecAddress), 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());
|
|
84
90
|
}
|
|
85
91
|
toBuffer() {
|
|
86
|
-
return serializeToBuffer(this.globalVariables, this.startTreeSnapshots, this.startGasUsed, this.gasSettings, this.feePayer, this.publicSetupCallRequests, this.publicAppLogicCallRequests, this.publicTeardownCallRequest, this.previousNonRevertibleAccumulatedDataArrayLengths, this.previousRevertibleAccumulatedDataArrayLengths, this.previousNonRevertibleAccumulatedData, this.previousRevertibleAccumulatedData, this.endTreeSnapshots, this.endGasUsed, this.accumulatedData, this.transactionFee, this.reverted);
|
|
92
|
+
return serializeToBuffer(this.globalVariables, this.startTreeSnapshots, this.startGasUsed, this.gasSettings, this.feePayer, 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);
|
|
87
93
|
}
|
|
88
94
|
static fromString(str) {
|
|
89
95
|
return AvmCircuitPublicInputs.fromBuffer(hexToBuffer(str));
|
|
@@ -93,7 +99,7 @@ export class AvmCircuitPublicInputs {
|
|
|
93
99
|
}
|
|
94
100
|
static fromFields(fields) {
|
|
95
101
|
const reader = FieldReader.asReader(fields);
|
|
96
|
-
return new AvmCircuitPublicInputs(GlobalVariables.fromFields(reader), TreeSnapshots.fromFields(reader), Gas.fromFields(reader), GasSettings.fromFields(reader), AztecAddress.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), AvmAccumulatedData.fromFields(reader), reader.readField(), reader.readBoolean());
|
|
102
|
+
return new AvmCircuitPublicInputs(GlobalVariables.fromFields(reader), TreeSnapshots.fromFields(reader), Gas.fromFields(reader), GasSettings.fromFields(reader), AztecAddress.fromFields(reader), 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());
|
|
97
103
|
}
|
|
98
104
|
toFields() {
|
|
99
105
|
return [
|
|
@@ -102,6 +108,7 @@ export class AvmCircuitPublicInputs {
|
|
|
102
108
|
...this.startGasUsed.toFields(),
|
|
103
109
|
...this.gasSettings.toFields(),
|
|
104
110
|
this.feePayer,
|
|
111
|
+
...this.publicCallRequestArrayLengths.toFields(),
|
|
105
112
|
...this.publicSetupCallRequests.map((request)=>request.toFields()),
|
|
106
113
|
...this.publicAppLogicCallRequests.map((request)=>request.toFields()),
|
|
107
114
|
...this.publicTeardownCallRequest.toFields(),
|
|
@@ -111,13 +118,14 @@ export class AvmCircuitPublicInputs {
|
|
|
111
118
|
...this.previousRevertibleAccumulatedData.toFields(),
|
|
112
119
|
...this.endTreeSnapshots.toFields(),
|
|
113
120
|
...this.endGasUsed.toFields(),
|
|
121
|
+
...this.accumulatedDataArrayLengths.toFields(),
|
|
114
122
|
...this.accumulatedData.toFields(),
|
|
115
123
|
this.transactionFee,
|
|
116
124
|
this.reverted
|
|
117
125
|
];
|
|
118
126
|
}
|
|
119
127
|
static empty() {
|
|
120
|
-
return new AvmCircuitPublicInputs(GlobalVariables.empty(), TreeSnapshots.empty(), Gas.empty(), GasSettings.empty(), AztecAddress.zero(), 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(), AvmAccumulatedData.empty(), Fr.zero(), false);
|
|
128
|
+
return new AvmCircuitPublicInputs(GlobalVariables.empty(), TreeSnapshots.empty(), Gas.empty(), GasSettings.empty(), AztecAddress.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);
|
|
121
129
|
}
|
|
122
130
|
serializeWithMessagePack() {
|
|
123
131
|
return serializeWithMessagePack(this);
|
|
@@ -129,6 +137,7 @@ export class AvmCircuitPublicInputs {
|
|
|
129
137
|
startGasUsed: ${inspect(this.startGasUsed)},
|
|
130
138
|
gasSettings: ${inspect(this.gasSettings)},
|
|
131
139
|
feePayer: ${inspect(this.feePayer)},
|
|
140
|
+
publicCallRequestArrayLengths: ${inspect(this.publicCallRequestArrayLengths)},
|
|
132
141
|
publicSetupCallRequests: [${this.publicSetupCallRequests.filter((x)=>!x.isEmpty()).map((h)=>inspect(h)).join(', ')}]},
|
|
133
142
|
publicAppLogicCallRequests: [${this.publicAppLogicCallRequests.filter((x)=>!x.isEmpty()).map((h)=>inspect(h)).join(', ')}]},
|
|
134
143
|
publicTeardownCallRequest: ${inspect(this.publicTeardownCallRequest)},
|
|
@@ -138,6 +147,7 @@ export class AvmCircuitPublicInputs {
|
|
|
138
147
|
previousRevertibleAccumulatedData: ${inspect(this.previousRevertibleAccumulatedData)},
|
|
139
148
|
endTreeSnapshots: ${inspect(this.endTreeSnapshots)},
|
|
140
149
|
endGasUsed: ${inspect(this.endGasUsed)},
|
|
150
|
+
accumulatedDataArrayLengths: ${inspect(this.accumulatedDataArrayLengths)},
|
|
141
151
|
accumulatedData: ${inspect(this.accumulatedData)},
|
|
142
152
|
transactionFee: ${inspect(this.transactionFee)},
|
|
143
153
|
reverted: ${this.reverted},
|
|
@@ -2896,6 +2896,23 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
2896
2896
|
};
|
|
2897
2897
|
}>;
|
|
2898
2898
|
feePayer: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
2899
|
+
publicCallRequestArrayLengths: z.ZodEffects<z.ZodObject<{
|
|
2900
|
+
setupCalls: z.ZodNumber;
|
|
2901
|
+
appLogicCalls: z.ZodNumber;
|
|
2902
|
+
teardownCall: z.ZodBoolean;
|
|
2903
|
+
}, "strip", z.ZodTypeAny, {
|
|
2904
|
+
setupCalls: number;
|
|
2905
|
+
appLogicCalls: number;
|
|
2906
|
+
teardownCall: boolean;
|
|
2907
|
+
}, {
|
|
2908
|
+
setupCalls: number;
|
|
2909
|
+
appLogicCalls: number;
|
|
2910
|
+
teardownCall: boolean;
|
|
2911
|
+
}>, import("../kernel/public_call_request.js").PublicCallRequestArrayLengths, {
|
|
2912
|
+
setupCalls: number;
|
|
2913
|
+
appLogicCalls: number;
|
|
2914
|
+
teardownCall: boolean;
|
|
2915
|
+
}>;
|
|
2899
2916
|
publicSetupCallRequests: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2900
2917
|
msgSender: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
2901
2918
|
contractAddress: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
|
|
@@ -3233,6 +3250,31 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3233
3250
|
daGas: string | number | bigint;
|
|
3234
3251
|
l2Gas: string | number | bigint;
|
|
3235
3252
|
}>;
|
|
3253
|
+
accumulatedDataArrayLengths: z.ZodEffects<z.ZodObject<{
|
|
3254
|
+
noteHashes: z.ZodNumber;
|
|
3255
|
+
nullifiers: z.ZodNumber;
|
|
3256
|
+
l2ToL1Msgs: z.ZodNumber;
|
|
3257
|
+
publicLogs: z.ZodNumber;
|
|
3258
|
+
publicDataWrites: z.ZodNumber;
|
|
3259
|
+
}, "strip", z.ZodTypeAny, {
|
|
3260
|
+
noteHashes: number;
|
|
3261
|
+
nullifiers: number;
|
|
3262
|
+
l2ToL1Msgs: number;
|
|
3263
|
+
publicLogs: number;
|
|
3264
|
+
publicDataWrites: number;
|
|
3265
|
+
}, {
|
|
3266
|
+
noteHashes: number;
|
|
3267
|
+
nullifiers: number;
|
|
3268
|
+
l2ToL1Msgs: number;
|
|
3269
|
+
publicLogs: number;
|
|
3270
|
+
publicDataWrites: number;
|
|
3271
|
+
}>, import("./avm_accumulated_data.js").AvmAccumulatedDataArrayLengths, {
|
|
3272
|
+
noteHashes: number;
|
|
3273
|
+
nullifiers: number;
|
|
3274
|
+
l2ToL1Msgs: number;
|
|
3275
|
+
publicLogs: number;
|
|
3276
|
+
publicDataWrites: number;
|
|
3277
|
+
}>;
|
|
3236
3278
|
accumulatedData: z.ZodEffects<z.ZodObject<{
|
|
3237
3279
|
noteHashes: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
|
|
3238
3280
|
nullifiers: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
|
|
@@ -3336,6 +3378,7 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3336
3378
|
feePayer: import("../aztec-address/index.js").AztecAddress;
|
|
3337
3379
|
startTreeSnapshots: import("../tx/tree_snapshots.js").TreeSnapshots;
|
|
3338
3380
|
startGasUsed: import("../gas/gas.js").Gas;
|
|
3381
|
+
publicCallRequestArrayLengths: import("../kernel/public_call_request.js").PublicCallRequestArrayLengths;
|
|
3339
3382
|
publicSetupCallRequests: import("../kernel/public_call_request.js").PublicCallRequest[];
|
|
3340
3383
|
publicAppLogicCallRequests: import("../kernel/public_call_request.js").PublicCallRequest[];
|
|
3341
3384
|
previousNonRevertibleAccumulatedDataArrayLengths: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedDataArrayLengths;
|
|
@@ -3344,6 +3387,7 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3344
3387
|
previousRevertibleAccumulatedData: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedData;
|
|
3345
3388
|
endTreeSnapshots: import("../tx/tree_snapshots.js").TreeSnapshots;
|
|
3346
3389
|
endGasUsed: import("../gas/gas.js").Gas;
|
|
3390
|
+
accumulatedDataArrayLengths: import("./avm_accumulated_data.js").AvmAccumulatedDataArrayLengths;
|
|
3347
3391
|
accumulatedData: import("./avm_accumulated_data.js").AvmAccumulatedData;
|
|
3348
3392
|
reverted: boolean;
|
|
3349
3393
|
}, {
|
|
@@ -3407,6 +3451,11 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3407
3451
|
daGas: string | number | bigint;
|
|
3408
3452
|
l2Gas: string | number | bigint;
|
|
3409
3453
|
};
|
|
3454
|
+
publicCallRequestArrayLengths: {
|
|
3455
|
+
setupCalls: number;
|
|
3456
|
+
appLogicCalls: number;
|
|
3457
|
+
teardownCall: boolean;
|
|
3458
|
+
};
|
|
3410
3459
|
publicSetupCallRequests: {
|
|
3411
3460
|
isStaticCall: boolean;
|
|
3412
3461
|
calldataHash: string;
|
|
@@ -3475,6 +3524,13 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3475
3524
|
daGas: string | number | bigint;
|
|
3476
3525
|
l2Gas: string | number | bigint;
|
|
3477
3526
|
};
|
|
3527
|
+
accumulatedDataArrayLengths: {
|
|
3528
|
+
noteHashes: number;
|
|
3529
|
+
nullifiers: number;
|
|
3530
|
+
l2ToL1Msgs: number;
|
|
3531
|
+
publicLogs: number;
|
|
3532
|
+
publicDataWrites: number;
|
|
3533
|
+
};
|
|
3478
3534
|
accumulatedData: {
|
|
3479
3535
|
noteHashes: string[];
|
|
3480
3536
|
nullifiers: string[];
|
|
@@ -3555,6 +3611,11 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3555
3611
|
daGas: string | number | bigint;
|
|
3556
3612
|
l2Gas: string | number | bigint;
|
|
3557
3613
|
};
|
|
3614
|
+
publicCallRequestArrayLengths: {
|
|
3615
|
+
setupCalls: number;
|
|
3616
|
+
appLogicCalls: number;
|
|
3617
|
+
teardownCall: boolean;
|
|
3618
|
+
};
|
|
3558
3619
|
publicSetupCallRequests: {
|
|
3559
3620
|
isStaticCall: boolean;
|
|
3560
3621
|
calldataHash: string;
|
|
@@ -3623,6 +3684,13 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3623
3684
|
daGas: string | number | bigint;
|
|
3624
3685
|
l2Gas: string | number | bigint;
|
|
3625
3686
|
};
|
|
3687
|
+
accumulatedDataArrayLengths: {
|
|
3688
|
+
noteHashes: number;
|
|
3689
|
+
nullifiers: number;
|
|
3690
|
+
l2ToL1Msgs: number;
|
|
3691
|
+
publicLogs: number;
|
|
3692
|
+
publicDataWrites: number;
|
|
3693
|
+
};
|
|
3626
3694
|
accumulatedData: {
|
|
3627
3695
|
noteHashes: string[];
|
|
3628
3696
|
nullifiers: string[];
|
|
@@ -3708,6 +3776,11 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3708
3776
|
daGas: string | number | bigint;
|
|
3709
3777
|
l2Gas: string | number | bigint;
|
|
3710
3778
|
};
|
|
3779
|
+
publicCallRequestArrayLengths: {
|
|
3780
|
+
setupCalls: number;
|
|
3781
|
+
appLogicCalls: number;
|
|
3782
|
+
teardownCall: boolean;
|
|
3783
|
+
};
|
|
3711
3784
|
publicSetupCallRequests: {
|
|
3712
3785
|
isStaticCall: boolean;
|
|
3713
3786
|
calldataHash: string;
|
|
@@ -3776,6 +3849,13 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
3776
3849
|
daGas: string | number | bigint;
|
|
3777
3850
|
l2Gas: string | number | bigint;
|
|
3778
3851
|
};
|
|
3852
|
+
accumulatedDataArrayLengths: {
|
|
3853
|
+
noteHashes: number;
|
|
3854
|
+
nullifiers: number;
|
|
3855
|
+
l2ToL1Msgs: number;
|
|
3856
|
+
publicLogs: number;
|
|
3857
|
+
publicDataWrites: number;
|
|
3858
|
+
};
|
|
3779
3859
|
accumulatedData: {
|
|
3780
3860
|
noteHashes: string[];
|
|
3781
3861
|
nullifiers: string[];
|
|
@@ -4186,6 +4266,11 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
4186
4266
|
daGas: string | number | bigint;
|
|
4187
4267
|
l2Gas: string | number | bigint;
|
|
4188
4268
|
};
|
|
4269
|
+
publicCallRequestArrayLengths: {
|
|
4270
|
+
setupCalls: number;
|
|
4271
|
+
appLogicCalls: number;
|
|
4272
|
+
teardownCall: boolean;
|
|
4273
|
+
};
|
|
4189
4274
|
publicSetupCallRequests: {
|
|
4190
4275
|
isStaticCall: boolean;
|
|
4191
4276
|
calldataHash: string;
|
|
@@ -4254,6 +4339,13 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
4254
4339
|
daGas: string | number | bigint;
|
|
4255
4340
|
l2Gas: string | number | bigint;
|
|
4256
4341
|
};
|
|
4342
|
+
accumulatedDataArrayLengths: {
|
|
4343
|
+
noteHashes: number;
|
|
4344
|
+
nullifiers: number;
|
|
4345
|
+
l2ToL1Msgs: number;
|
|
4346
|
+
publicLogs: number;
|
|
4347
|
+
publicDataWrites: number;
|
|
4348
|
+
};
|
|
4257
4349
|
accumulatedData: {
|
|
4258
4350
|
noteHashes: string[];
|
|
4259
4351
|
nullifiers: string[];
|
|
@@ -4670,6 +4762,11 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
4670
4762
|
daGas: string | number | bigint;
|
|
4671
4763
|
l2Gas: string | number | bigint;
|
|
4672
4764
|
};
|
|
4765
|
+
publicCallRequestArrayLengths: {
|
|
4766
|
+
setupCalls: number;
|
|
4767
|
+
appLogicCalls: number;
|
|
4768
|
+
teardownCall: boolean;
|
|
4769
|
+
};
|
|
4673
4770
|
publicSetupCallRequests: {
|
|
4674
4771
|
isStaticCall: boolean;
|
|
4675
4772
|
calldataHash: string;
|
|
@@ -4738,6 +4835,13 @@ export declare const AvmProvingRequestSchema: z.ZodObject<{
|
|
|
4738
4835
|
daGas: string | number | bigint;
|
|
4739
4836
|
l2Gas: string | number | bigint;
|
|
4740
4837
|
};
|
|
4838
|
+
accumulatedDataArrayLengths: {
|
|
4839
|
+
noteHashes: number;
|
|
4840
|
+
nullifiers: number;
|
|
4841
|
+
l2ToL1Msgs: number;
|
|
4842
|
+
publicLogs: number;
|
|
4843
|
+
publicDataWrites: number;
|
|
4844
|
+
};
|
|
4741
4845
|
accumulatedData: {
|
|
4742
4846
|
noteHashes: string[];
|
|
4743
4847
|
nullifiers: string[];
|
|
@@ -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"}
|
package/dest/block/body.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare class Body {
|
|
|
27
27
|
*/
|
|
28
28
|
static fromBlobFields(fields: Fr[]): Body;
|
|
29
29
|
[inspect.custom](): string;
|
|
30
|
-
static random(txsPerBlock?: number, numPublicCallsPerTx?: number, numPublicLogsPerCall?: number): Promise<Body>;
|
|
30
|
+
static random(txsPerBlock?: number, numPublicCallsPerTx?: number, numPublicLogsPerCall?: number, maxEffects?: number | undefined): Promise<Body>;
|
|
31
31
|
static empty(): Body;
|
|
32
32
|
}
|
|
33
33
|
//# sourceMappingURL=body.d.ts.map
|
package/dest/block/body.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../src/block/body.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAkC,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,qBAAa,IAAI;IACI,SAAS,EAAE,QAAQ,EAAE;gBAArB,SAAS,EAAE,QAAQ,EAAE;IAQxC,MAAM,CAAC,KAAK,EAAE,IAAI;IAMlB,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,CAMhC;IAED;;;OAGG;IACH,QAAQ;IAIR;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;IAM5C;;OAEG;IACH,YAAY;IAgBZ;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,EAAE;IASlC,CAAC,OAAO,CAAC,MAAM,CAAC;WAMH,MAAM,
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../src/block/body.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAkC,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,qBAAa,IAAI;IACI,SAAS,EAAE,QAAQ,EAAE;gBAArB,SAAS,EAAE,QAAQ,EAAE;IAQxC,MAAM,CAAC,KAAK,EAAE,IAAI;IAMlB,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,CAMhC;IAED;;;OAGG;IACH,QAAQ;IAIR;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;IAM5C;;OAEG;IACH,YAAY;IAgBZ;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,EAAE;IASlC,CAAC,OAAO,CAAC,MAAM,CAAC;WAMH,MAAM,CACjB,WAAW,SAAI,EACf,mBAAmB,SAAI,EACvB,oBAAoB,SAAI,EACxB,UAAU,GAAE,MAAM,GAAG,SAAqB;IAS5C,MAAM,CAAC,KAAK;CAGb"}
|
package/dest/block/body.js
CHANGED
|
@@ -62,8 +62,8 @@ export class Body {
|
|
|
62
62
|
txEffects: ${inspect(this.txEffects)},
|
|
63
63
|
}`;
|
|
64
64
|
}
|
|
65
|
-
static async random(txsPerBlock = 4, numPublicCallsPerTx = 3, numPublicLogsPerCall = 1) {
|
|
66
|
-
const txEffects = await timesParallel(txsPerBlock, ()=>TxEffect.random(numPublicCallsPerTx, numPublicLogsPerCall));
|
|
65
|
+
static async random(txsPerBlock = 4, numPublicCallsPerTx = 3, numPublicLogsPerCall = 1, maxEffects = undefined) {
|
|
66
|
+
const txEffects = await timesParallel(txsPerBlock, ()=>TxEffect.random(numPublicCallsPerTx, numPublicLogsPerCall, maxEffects));
|
|
67
67
|
return new Body(txEffects);
|
|
68
68
|
}
|
|
69
69
|
static empty() {
|
package/dest/block/l2_block.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export declare class L2Block {
|
|
|
86
86
|
* @param inHash - The hash of the L1 to L2 messages subtree which got inserted in this block.
|
|
87
87
|
* @returns The L2 block.
|
|
88
88
|
*/
|
|
89
|
-
static random(l2BlockNum: number, txsPerBlock?: number, numPublicCallsPerTx?: number, numPublicLogsPerCall?: number, inHash?: Buffer | undefined, slotNumber?: number | undefined): Promise<L2Block>;
|
|
89
|
+
static random(l2BlockNum: number, txsPerBlock?: number, numPublicCallsPerTx?: number, numPublicLogsPerCall?: number, inHash?: Buffer | undefined, slotNumber?: number | undefined, maxEffects?: number | undefined): Promise<L2Block>;
|
|
90
90
|
/**
|
|
91
91
|
* Creates an L2 block containing empty data.
|
|
92
92
|
* @returns The L2 block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"l2_block.d.ts","sourceRoot":"","sources":["../../src/block/l2_block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAG9E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC;;GAEG;AACH,qBAAa,OAAO;IAEhB,2DAA2D;IACpD,OAAO,EAAE,sBAAsB;IACtC,uBAAuB;IAChB,MAAM,EAAE,WAAW;IAC1B,qBAAqB;IACd,IAAI,EAAE,IAAI;;IALjB,2DAA2D;IACpD,OAAO,EAAE,sBAAsB;IACtC,uBAAuB;IAChB,MAAM,EAAE,WAAW;IAC1B,qBAAqB;IACd,IAAI,EAAE,IAAI;IAGnB,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAQhB;IAED;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;IAS5C;;;OAGG;IACH,QAAQ;IAIR;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GA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;;;;;OAQhB;IAED;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;IAS5C;;;OAGG;IACH,QAAQ;IAIR;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIvC;;;OAGG;IACH,QAAQ,IAAI,MAAM;IAIlB;;;;;;;;OAQG;WACU,MAAM,CACjB,UAAU,EAAE,MAAM,EAClB,WAAW,SAAI,EACf,mBAAmB,SAAI,EACvB,oBAAoB,SAAI,EACxB,MAAM,GAAE,MAAM,GAAG,SAAqB,EACtC,UAAU,GAAE,MAAM,GAAG,SAAqB,EAC1C,UAAU,GAAE,MAAM,GAAG,SAAqB,GACzC,OAAO,CAAC,OAAO,CAAC;IAUnB;;;OAGG;IACH,MAAM,CAAC,KAAK,IAAI,OAAO;IAIvB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;OAGG;IACI,IAAI,IAAI,OAAO,CAAC,EAAE,CAAC;IAI1B;;;OAGG;IACH,QAAQ;;;;;;;;;IAuBR,MAAM,CAAC,KAAK,EAAE,OAAO;CAGtB"}
|
package/dest/block/l2_block.js
CHANGED
|
@@ -60,8 +60,8 @@ import { makeAppendOnlyTreeSnapshot, makeHeader } from './l2_block_code_to_purge
|
|
|
60
60
|
* @param numPublicLogsPerCall - The number of public logs per 1 public function invocation.
|
|
61
61
|
* @param inHash - The hash of the L1 to L2 messages subtree which got inserted in this block.
|
|
62
62
|
* @returns The L2 block.
|
|
63
|
-
*/ static async random(l2BlockNum, txsPerBlock = 4, numPublicCallsPerTx = 3, numPublicLogsPerCall = 1, inHash = undefined, slotNumber = undefined) {
|
|
64
|
-
const body = await Body.random(txsPerBlock, numPublicCallsPerTx, numPublicLogsPerCall);
|
|
63
|
+
*/ static async random(l2BlockNum, txsPerBlock = 4, numPublicCallsPerTx = 3, numPublicLogsPerCall = 1, inHash = undefined, slotNumber = undefined, maxEffects = undefined) {
|
|
64
|
+
const body = await Body.random(txsPerBlock, numPublicCallsPerTx, numPublicLogsPerCall, maxEffects);
|
|
65
65
|
return new L2Block(makeAppendOnlyTreeSnapshot(l2BlockNum + 1), makeHeader(0, txsPerBlock, l2BlockNum, slotNumber ?? l2BlockNum, inHash), body);
|
|
66
66
|
}
|
|
67
67
|
/**
|