@aztec/simulator 2.0.0-nightly.20250821 → 2.0.0-nightly.20250823

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dest/public/avm/avm_memory_types.js +2 -2
  2. package/dest/public/avm/avm_simulator.d.ts.map +1 -1
  3. package/dest/public/avm/avm_simulator.js +3 -4
  4. package/dest/public/avm/opcodes/memory.js +1 -1
  5. package/dest/public/{public_tx_simulator/apps_tests → fixtures}/amm_test.d.ts +2 -2
  6. package/dest/public/fixtures/amm_test.d.ts.map +1 -0
  7. package/dest/public/{public_tx_simulator/apps_tests → fixtures}/amm_test.js +22 -17
  8. package/dest/public/fixtures/bulk_test.d.ts +5 -0
  9. package/dest/public/fixtures/bulk_test.d.ts.map +1 -0
  10. package/dest/public/fixtures/bulk_test.js +396 -0
  11. package/dest/public/fixtures/index.d.ts +3 -0
  12. package/dest/public/fixtures/index.d.ts.map +1 -1
  13. package/dest/public/fixtures/index.js +3 -0
  14. package/dest/public/fixtures/public_tx_simulation_tester.d.ts +14 -0
  15. package/dest/public/fixtures/public_tx_simulation_tester.d.ts.map +1 -1
  16. package/dest/public/fixtures/public_tx_simulation_tester.js +15 -1
  17. package/dest/public/{public_tx_simulator/apps_tests → fixtures}/token_test.d.ts +3 -3
  18. package/dest/public/fixtures/token_test.d.ts.map +1 -0
  19. package/dest/public/{public_tx_simulator/apps_tests → fixtures}/token_test.js +29 -42
  20. package/dest/public/public_processor/guarded_merkle_tree.d.ts +1 -1
  21. package/dest/public/public_processor/guarded_merkle_tree.js +1 -1
  22. package/package.json +15 -15
  23. package/src/public/avm/avm_memory_types.ts +2 -2
  24. package/src/public/avm/avm_simulator.ts +3 -4
  25. package/src/public/avm/opcodes/memory.ts +1 -1
  26. package/src/public/{public_tx_simulator/apps_tests → fixtures}/amm_test.ts +23 -19
  27. package/src/public/fixtures/bulk_test.ts +149 -0
  28. package/src/public/fixtures/index.ts +3 -0
  29. package/src/public/fixtures/public_tx_simulation_tester.ts +33 -0
  30. package/src/public/{public_tx_simulator/apps_tests → fixtures}/token_test.ts +39 -39
  31. package/src/public/public_processor/guarded_merkle_tree.ts +1 -1
  32. package/dest/public/public_tx_simulator/apps_tests/amm_test.d.ts.map +0 -1
  33. package/dest/public/public_tx_simulator/apps_tests/token_test.d.ts.map +0 -1
@@ -180,7 +180,7 @@ export class TaggedMemory {
180
180
  getAs(offset) {
181
181
  assert(Number.isInteger(offset) && offset < TaggedMemory.MAX_MEMORY_SIZE);
182
182
  const word = this._mem.get(offset);
183
- //TaggedMemory.log.trace(`get(${offset}) = ${word}`);
183
+ //TaggedMemory.log.trace(`Memory read: ${offset} -> ${word}`);
184
184
  if (word === undefined) {
185
185
  TaggedMemory.log.debug(`WARNING: Memory at offset ${offset} is undefined!`);
186
186
  return new Field(0);
@@ -208,7 +208,7 @@ export class TaggedMemory {
208
208
  set(offset, v) {
209
209
  assert(Number.isInteger(offset) && offset < TaggedMemory.MAX_MEMORY_SIZE);
210
210
  this._mem.set(offset, v);
211
- //TaggedMemory.log.trace(`set(${offset}, ${v})`);
211
+ //TaggedMemory.log.trace(`Memory write: ${offset} <- ${v}`);
212
212
  }
213
213
  setSlice(offset, slice) {
214
214
  assert(Number.isInteger(offset));
@@ -1 +1 @@
1
- {"version":3,"file":"avm_simulator.d.ts","sourceRoot":"","sources":["../../../src/public/avm/avm_simulator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAA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;;OAGG;IACU,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;YAmHhE,+BAA+B;IAoB7C,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,kBAAkB;CAS3B"}
@@ -1,6 +1,7 @@
1
1
  import { MAX_L2_GAS_PER_TX_PUBLIC_PORTION } from '@aztec/constants';
2
2
  import { Fr } from '@aztec/foundation/fields';
3
3
  import { createLogger } from '@aztec/foundation/log';
4
+ import { Timer } from '@aztec/foundation/timer';
4
5
  import { strict as assert } from 'assert';
5
6
  import { SideEffectLimitReachedError } from '../side_effect_errors.js';
6
7
  import { AvmContext } from './avm_context.js';
@@ -81,7 +82,7 @@ export class AvmSimulator {
81
82
  * Executes the provided bytecode in the current context.
82
83
  * This method is useful for testing and debugging.
83
84
  */ async executeBytecode(bytecode) {
84
- const startTotalTime = performance.now();
85
+ const timer = new Timer();
85
86
  assert(bytecode.length > 0, "AVM simulator can't execute empty bytecode");
86
87
  this.bytecode = bytecode;
87
88
  const { machineState } = this.context;
@@ -134,9 +135,7 @@ export class AvmSimulator {
134
135
  };
135
136
  this.log.debug(`Executed ${machineState.instrCounter} instructions and consumed ${totalGasUsed.l2Gas} L2 Gas`);
136
137
  this.tallyPrintFunction();
137
- const endTotalTime = performance.now();
138
- const totalTime = endTotalTime - startTotalTime;
139
- this.log.debug(`Core AVM simulation took ${totalTime}ms`);
138
+ this.log.debug(`Core AVM simulation took ${timer.ms()}ms`);
140
139
  // Return results for processing by calling context
141
140
  return results;
142
141
  } catch (err) {
@@ -242,8 +242,8 @@ export class ReturndataCopy extends Instruction {
242
242
  ];
243
243
  const [copySizeOffset, rdStartOffset, dstOffset] = addressing.resolve(operands, memory);
244
244
  memory.checkTags(TypeTag.UINT32, rdStartOffset, copySizeOffset);
245
- const rdStart = memory.get(rdStartOffset).toNumber();
246
245
  const copySize = memory.get(copySizeOffset).toNumber();
246
+ const rdStart = memory.get(rdStartOffset).toNumber();
247
247
  context.machineState.consumeGas(this.dynamicGasCost(copySize));
248
248
  // Values which are out-of-range of the returndata array will be set with Field(0);
249
249
  const slice = context.machineState.nestedReturndata.slice(rdStart, rdStart + copySize).map((f)=>new Field(f));
@@ -1,9 +1,9 @@
1
1
  import type { Logger } from '@aztec/foundation/log';
2
- import { PublicTxSimulationTester } from '../../fixtures/public_tx_simulation_tester.js';
2
+ import { PublicTxSimulationTester } from './public_tx_simulation_tester.js';
3
3
  /**
4
4
  * THIS TEST IS BRITTLE! If it breaks, don't try fixing it.
5
5
  * `.skip` it or literally just delete it and notify AVM team.
6
6
  * You do NOT need permission to remove this test!
7
7
  */
8
- export declare function ammTest(tester: PublicTxSimulationTester, logger: Logger): Promise<void>;
8
+ export declare function ammTest(tester: PublicTxSimulationTester, logger: Logger, expectToBeTrue: (x: boolean) => void): Promise<void>;
9
9
  //# sourceMappingURL=amm_test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amm_test.d.ts","sourceRoot":"","sources":["../../../src/public/fixtures/amm_test.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAMpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAI5E;;;;GAIG;AACH,wBAAsB,OAAO,CAAC,MAAM,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,iBAoGnH"}
@@ -1,6 +1,7 @@
1
1
  import { GeneratorIndex } from '@aztec/constants';
2
2
  import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto';
3
3
  import { Fr } from '@aztec/foundation/fields';
4
+ import { Timer } from '@aztec/foundation/timer';
4
5
  import { AMMContractArtifact } from '@aztec/noir-contracts.js/AMM';
5
6
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
6
7
  import { setUpToken } from './token_test.js';
@@ -9,14 +10,14 @@ const INITIAL_TOKEN_BALANCE = 1_000_000_000n;
9
10
  * THIS TEST IS BRITTLE! If it breaks, don't try fixing it.
10
11
  * `.skip` it or literally just delete it and notify AVM team.
11
12
  * You do NOT need permission to remove this test!
12
- */ export async function ammTest(tester, logger) {
13
- const startTime = performance.now();
13
+ */ export async function ammTest(tester, logger, expectToBeTrue) {
14
+ const timer = new Timer();
14
15
  const admin = AztecAddress.fromNumber(42);
15
16
  const sender = AztecAddress.fromNumber(111);
16
17
  logger.debug(`Deploying tokens`);
17
- const token0 = await setUpToken(tester, admin, /*seed=*/ 0);
18
- const token1 = await setUpToken(tester, admin, /*seed=*/ 1);
19
- const liquidityToken = await setUpToken(tester, admin, /*seed=*/ 2);
18
+ const token0 = await setUpToken(tester, admin, expectToBeTrue, /*seed=*/ 0);
19
+ const token1 = await setUpToken(tester, admin, expectToBeTrue, /*seed=*/ 1);
20
+ const liquidityToken = await setUpToken(tester, admin, expectToBeTrue, /*seed=*/ 2);
20
21
  logger.debug(`Deploying AMM`);
21
22
  const constructorArgs = [
22
23
  token0,
@@ -24,17 +25,19 @@ const INITIAL_TOKEN_BALANCE = 1_000_000_000n;
24
25
  liquidityToken
25
26
  ];
26
27
  const amm = await tester.registerAndDeployContract(constructorArgs, /*deployer=*/ admin, AMMContractArtifact, /*skipNullifierInsertion=*/ false, /*seed=*/ 3);
27
- const ammConstructorResult = await tester.simulateTxWithLabel(/*txLabel=*/ 'AMM/constructor', /*sender=*/ admin, /*setupCalls=*/ [], /*appCalls=*/ [
28
+ // EXECUTE! This means that if using AvmProvingTester subclass, it will PROVE the transaction!
29
+ const ammConstructorResult = await tester.executeTxWithLabel(/*txLabel=*/ 'AMM/constructor', /*sender=*/ admin, /*setupCalls=*/ [], /*appCalls=*/ [
28
30
  {
29
31
  fnName: 'constructor',
30
32
  args: constructorArgs,
31
33
  address: amm.address
32
34
  }
33
35
  ]);
34
- expect(ammConstructorResult.revertCode.isOK()).toBe(true);
36
+ expectToBeTrue(ammConstructorResult.revertCode.isOK());
35
37
  logger.debug(`Setting AMM as minter for liquidity token`);
36
38
  // set the AMM as the minter for the liquidity token
37
- const setMinterResult = await tester.simulateTxWithLabel(/*txLabel=*/ 'AMM/set_minter', /*sender=*/ admin, /*setupCalls=*/ [], /*appCalls=*/ [
39
+ // EXECUTE! This means that if using AvmProvingTester subclass, it will PROVE the transaction!
40
+ const setMinterResult = await tester.executeTxWithLabel(/*txLabel=*/ 'AMM/set_minter', /*sender=*/ admin, /*setupCalls=*/ [], /*appCalls=*/ [
38
41
  {
39
42
  fnName: 'set_minter',
40
43
  args: [
@@ -44,22 +47,21 @@ const INITIAL_TOKEN_BALANCE = 1_000_000_000n;
44
47
  address: liquidityToken.address
45
48
  }
46
49
  ]);
47
- expect(setMinterResult.revertCode.isOK()).toBe(true);
50
+ expectToBeTrue(setMinterResult.revertCode.isOK());
48
51
  logger.debug(`Adding liquidity`);
49
52
  const amount0Max = INITIAL_TOKEN_BALANCE * 6n / 10n;
50
53
  const amount0Min = INITIAL_TOKEN_BALANCE * 4n / 10n;
51
54
  const amount1Max = INITIAL_TOKEN_BALANCE * 5n / 10n;
52
55
  const amount1Min = INITIAL_TOKEN_BALANCE * 4n / 10n;
53
56
  const addLiquidityResult = await addLiquidity(tester, sender, /*amm=*/ amm, /*token0=*/ token0, /*token1=*/ token1, /*liquidityToken=*/ liquidityToken, /*amount0Max=*/ amount0Max, /*amount1Max=*/ amount1Max, /*amount0Min=*/ amount0Min, /*amount1Min=*/ amount1Min);
54
- expect(addLiquidityResult.revertCode.isOK()).toBe(true);
57
+ expectToBeTrue(addLiquidityResult.revertCode.isOK());
55
58
  logger.debug(`Swapping tokens`);
56
59
  const swapResult = await swapExactTokensForTokens(tester, sender, /*amm=*/ amm, /*tokenIn=*/ token0, /*tokenOut=*/ token1, /*amountIn=*/ amount0Min / 10n, /*amountOutMin=*/ amount1Min / 100n);
57
- expect(swapResult.revertCode.isOK()).toBe(true);
60
+ expectToBeTrue(swapResult.revertCode.isOK());
58
61
  logger.debug(`Removing liquidity`);
59
62
  const removeLiquidityResult = await removeLiquidity(tester, sender, /*amm=*/ amm, /*token0=*/ token0, /*token1=*/ token1, /*liquidityToken=*/ liquidityToken, /*liquidity=*/ 100n, /*amount0Min=*/ 1n, /*amount1Min=*/ 1n);
60
- expect(removeLiquidityResult.revertCode.isOK()).toBe(true);
61
- const endTime = performance.now();
62
- logger.info(`AMM public tx simulator test took ${endTime - startTime}ms\n`);
63
+ expectToBeTrue(removeLiquidityResult.revertCode.isOK());
64
+ logger.info(`AMM public tx simulator test took ${timer.ms()}ms\n`);
63
65
  }
64
66
  async function addLiquidity(tester, sender, amm, token0, token1, liquidityToken, amount0Max, amount1Max, amount0Min, amount1Min, _nonce) {
65
67
  const refundToken0PartialNote = {
@@ -79,7 +81,8 @@ async function addLiquidity(tester, sender, amm, token0, token1, liquidityToken,
79
81
  await tester.insertNullifier(token0.address, refundToken0PartialNoteValidityCommitment);
80
82
  await tester.insertNullifier(token1.address, refundToken1PartialNoteValidityCommitment);
81
83
  await tester.insertNullifier(liquidityToken.address, liquidityPartialNoteValidityCommitment);
82
- return await tester.simulateTxWithLabel(/*txLabel=*/ 'AMM/add_liquidity', /*sender=*/ sender, /*setupCalls=*/ [], /*appCalls=*/ [
84
+ // EXECUTE! This means that if using AvmProvingTester subclass, it will PROVE the transaction!
85
+ return await tester.executeTxWithLabel(/*txLabel=*/ 'AMM/add_liquidity', /*sender=*/ sender, /*setupCalls=*/ [], /*appCalls=*/ [
83
86
  // token0.transfer_to_public enqueues a call to _increase_public_balance
84
87
  {
85
88
  sender: token0.address,
@@ -131,7 +134,8 @@ async function swapExactTokensForTokens(tester, sender, amm, tokenIn, tokenOut,
131
134
  // We need to inject the validity commitment into the nullifier tree as that would be performed by the private token
132
135
  // function that is not invoked in this test.
133
136
  await tester.insertNullifier(tokenOut.address, tokenOutPartialNoteValidityCommitment);
134
- return await tester.simulateTxWithLabel(/*txLabel=*/ 'AMM/swap_exact_tokens_for_tokens', /*sender=*/ sender, /*setupCalls=*/ [], /*appCalls=*/ [
137
+ // EXECUTE! This means that if using AvmProvingTester subclass, it will PROVE the transaction!
138
+ return await tester.executeTxWithLabel(/*txLabel=*/ 'AMM/swap_exact_tokens_for_tokens', /*sender=*/ sender, /*setupCalls=*/ [], /*appCalls=*/ [
135
139
  // tokenIn.transfer_to_public enqueues a call to _increase_public_balance
136
140
  {
137
141
  sender: tokenIn.address,
@@ -169,7 +173,8 @@ async function removeLiquidity(tester, sender, amm, token0, token1, liquidityTok
169
173
  // functions that are not invoked in this test.
170
174
  await tester.insertNullifier(token0.address, token0PartialNoteValidityCommitment);
171
175
  await tester.insertNullifier(token1.address, token1PartialNoteValidityCommitment);
172
- return await tester.simulateTxWithLabel(/*txLabel=*/ 'AMM/remove_liquidity', /*sender=*/ sender, /*setupCalls=*/ [], /*appCalls=*/ [
176
+ // EXECUTE! This means that if using AvmProvingTester subclass, it will PROVE the transaction!
177
+ return await tester.executeTxWithLabel(/*txLabel=*/ 'AMM/remove_liquidity', /*sender=*/ sender, /*setupCalls=*/ [], /*appCalls=*/ [
173
178
  // liquidityToken.transfer_to_public enqueues a call to _increase_public_balance
174
179
  {
175
180
  sender: liquidityToken.address,
@@ -0,0 +1,5 @@
1
+ import type { Logger } from '@aztec/foundation/log';
2
+ import { PublicTxSimulationTester } from './public_tx_simulation_tester.js';
3
+ export declare function bulkTest(tester: PublicTxSimulationTester, logger: Logger, expectToBeTrue: (x: boolean) => void): Promise<import("../index.js").PublicTxResult>;
4
+ export declare function megaBulkTest(tester: PublicTxSimulationTester, logger: Logger, expectToBeTrue: (x: boolean) => void): Promise<import("../index.js").PublicTxResult>;
5
+ //# sourceMappingURL=bulk_test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk_test.d.ts","sourceRoot":"","sources":["../../../src/public/fixtures/bulk_test.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAKpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,wBAAsB,QAAQ,CAAC,MAAM,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,iDAsDpH;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,wBAAwB,EAChC,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,iDAiFrC"}
@@ -0,0 +1,396 @@
1
+ import { Fr } from '@aztec/foundation/fields';
2
+ import { Timer } from '@aztec/foundation/timer';
3
+ import { AvmTestContractArtifact } from '@aztec/noir-test-contracts.js/AvmTest';
4
+ import { AztecAddress } from '@aztec/stdlib/aztec-address';
5
+ export async function bulkTest(tester, logger, expectToBeTrue) {
6
+ const timer = new Timer();
7
+ const deployer = AztecAddress.fromNumber(42);
8
+ const avmTestContract = await tester.registerAndDeployContract(/*constructorArgs=*/ [], deployer, /*contractArtifact=*/ AvmTestContractArtifact);
9
+ // Get a deployed contract instance to pass to the contract
10
+ // for it to use as "expected" values when testing contract instance retrieval.
11
+ const expectContractInstance = avmTestContract;
12
+ const argsField = [
13
+ 1,
14
+ 2,
15
+ 3,
16
+ 4,
17
+ 5,
18
+ 6,
19
+ 7,
20
+ 8,
21
+ 9,
22
+ 10
23
+ ].map((x)=>new Fr(x));
24
+ const argsU8 = [
25
+ 1,
26
+ 2,
27
+ 3,
28
+ 4,
29
+ 5,
30
+ 6,
31
+ 7,
32
+ 8,
33
+ 9,
34
+ 10
35
+ ].map((x)=>new Fr(x));
36
+ const args = [
37
+ argsField,
38
+ argsU8,
39
+ /*getInstanceForAddress=*/ expectContractInstance.address,
40
+ /*expectedDeployer=*/ expectContractInstance.deployer,
41
+ /*expectedClassId=*/ expectContractInstance.currentContractClassId,
42
+ /*expectedInitializationHash=*/ expectContractInstance.initializationHash,
43
+ /*skip_strictly_limited_side_effects=*/ false
44
+ ];
45
+ const bulkResult = await tester.executeTxWithLabel(/*txLabel=*/ 'AvmTest/bulk_testing', /*sender=*/ deployer, /*setupCalls=*/ [], /*appCalls=*/ [
46
+ {
47
+ address: avmTestContract.address,
48
+ fnName: 'bulk_testing',
49
+ args
50
+ }
51
+ ], /*teardownCall=*/ undefined, /*feePayer*/ undefined, /*privateInsertions=*/ {
52
+ nonRevertible: {
53
+ nullifiers: [
54
+ new Fr(420000)
55
+ ],
56
+ noteHashes: [
57
+ new Fr(420001)
58
+ ]
59
+ },
60
+ revertible: {
61
+ nullifiers: [
62
+ new Fr(420002)
63
+ ],
64
+ noteHashes: [
65
+ new Fr(420003)
66
+ ]
67
+ }
68
+ });
69
+ expectToBeTrue(bulkResult.revertCode.isOK());
70
+ logger.info(`Bulk test took ${timer.ms()}ms\n`);
71
+ return bulkResult;
72
+ }
73
+ export async function megaBulkTest(tester, logger, expectToBeTrue) {
74
+ const timer = new Timer();
75
+ const deployer = AztecAddress.fromNumber(42);
76
+ const avmTestContract = await tester.registerAndDeployContract(/*constructorArgs=*/ [], deployer, /*contractArtifact=*/ AvmTestContractArtifact);
77
+ // Get a deployed contract instance to pass to the contract
78
+ // for it to use as "expected" values when testing contract instance retrieval.
79
+ const expectContractInstance = avmTestContract;
80
+ const argsField0 = [
81
+ 1,
82
+ 2,
83
+ 3,
84
+ 4,
85
+ 5,
86
+ 6,
87
+ 7,
88
+ 8,
89
+ 9,
90
+ 10
91
+ ].map((x)=>new Fr(x));
92
+ const argsField1 = [
93
+ 2,
94
+ 2,
95
+ 3,
96
+ 4,
97
+ 5,
98
+ 6,
99
+ 7,
100
+ 8,
101
+ 9,
102
+ 10
103
+ ].map((x)=>new Fr(x));
104
+ const argsField2 = [
105
+ 3,
106
+ 2,
107
+ 3,
108
+ 4,
109
+ 5,
110
+ 6,
111
+ 7,
112
+ 8,
113
+ 9,
114
+ 10
115
+ ].map((x)=>new Fr(x));
116
+ const argsField3 = [
117
+ 4,
118
+ 2,
119
+ 3,
120
+ 4,
121
+ 5,
122
+ 6,
123
+ 7,
124
+ 8,
125
+ 9,
126
+ 10
127
+ ].map((x)=>new Fr(x));
128
+ const argsField4 = [
129
+ 5,
130
+ 2,
131
+ 3,
132
+ 4,
133
+ 5,
134
+ 6,
135
+ 7,
136
+ 8,
137
+ 9,
138
+ 10
139
+ ].map((x)=>new Fr(x));
140
+ const argsField5 = [
141
+ 6,
142
+ 2,
143
+ 3,
144
+ 4,
145
+ 5,
146
+ 6,
147
+ 7,
148
+ 8,
149
+ 9,
150
+ 10
151
+ ].map((x)=>new Fr(x));
152
+ const argsField6 = [
153
+ 7,
154
+ 2,
155
+ 3,
156
+ 4,
157
+ 5,
158
+ 6,
159
+ 7,
160
+ 8,
161
+ 9,
162
+ 10
163
+ ].map((x)=>new Fr(x));
164
+ const argsField7 = [
165
+ 8,
166
+ 2,
167
+ 3,
168
+ 4,
169
+ 5,
170
+ 6,
171
+ 7,
172
+ 8,
173
+ 9,
174
+ 10
175
+ ].map((x)=>new Fr(x));
176
+ const argsField8 = [
177
+ 9,
178
+ 2,
179
+ 3,
180
+ 4,
181
+ 5,
182
+ 6,
183
+ 7,
184
+ 8,
185
+ 9,
186
+ 10
187
+ ].map((x)=>new Fr(x));
188
+ const argsField9 = [
189
+ 10,
190
+ 2,
191
+ 3,
192
+ 4,
193
+ 5,
194
+ 6,
195
+ 7,
196
+ 8,
197
+ 9,
198
+ 10
199
+ ].map((x)=>new Fr(x));
200
+ const argsField10 = [
201
+ 11,
202
+ 2,
203
+ 3,
204
+ 4,
205
+ 5,
206
+ 6,
207
+ 7,
208
+ 8,
209
+ 9,
210
+ 10
211
+ ].map((x)=>new Fr(x));
212
+ const argsField11 = [
213
+ 12,
214
+ 2,
215
+ 3,
216
+ 4,
217
+ 5,
218
+ 6,
219
+ 7,
220
+ 8,
221
+ 9,
222
+ 10
223
+ ].map((x)=>new Fr(x));
224
+ const argsField12 = [
225
+ 13,
226
+ 2,
227
+ 3,
228
+ 4,
229
+ 5,
230
+ 6,
231
+ 7,
232
+ 8,
233
+ 9,
234
+ 10
235
+ ].map((x)=>new Fr(x));
236
+ const argsField13 = [
237
+ 14,
238
+ 2,
239
+ 3,
240
+ 4,
241
+ 5,
242
+ 6,
243
+ 7,
244
+ 8,
245
+ 9,
246
+ 10
247
+ ].map((x)=>new Fr(x));
248
+ const argsField14 = [
249
+ 15,
250
+ 2,
251
+ 3,
252
+ 4,
253
+ 5,
254
+ 6,
255
+ 7,
256
+ 8,
257
+ 9,
258
+ 10
259
+ ].map((x)=>new Fr(x));
260
+ const argsField15 = [
261
+ 16,
262
+ 2,
263
+ 3,
264
+ 4,
265
+ 5,
266
+ 6,
267
+ 7,
268
+ 8,
269
+ 9,
270
+ 10
271
+ ].map((x)=>new Fr(x));
272
+ const argsU8 = [
273
+ 1,
274
+ 2,
275
+ 3,
276
+ 4,
277
+ 5,
278
+ 6,
279
+ 7,
280
+ 8,
281
+ 9,
282
+ 10
283
+ ].map((x)=>new Fr(x));
284
+ const genArgs = (argsField)=>[
285
+ argsField,
286
+ argsU8,
287
+ /*getInstanceForAddress=*/ expectContractInstance.address.toField(),
288
+ /*expectedDeployer=*/ expectContractInstance.deployer.toField(),
289
+ /*expectedClassId=*/ expectContractInstance.currentContractClassId.toField(),
290
+ /*expectedInitializationHash=*/ expectContractInstance.initializationHash.toField(),
291
+ // Must skip strictly limited side effects (logs, messages) so we can spam the bulk test several times.
292
+ /*skip_strictly_limited_side_effects=*/ true
293
+ ];
294
+ const bulkResult = await tester.executeTxWithLabel(/*txLabel=*/ 'AvmTest/mega_bulk_testing', /*sender=*/ deployer, /*setupCalls=*/ [], /*appCalls=*/ [
295
+ {
296
+ address: avmTestContract.address,
297
+ fnName: 'bulk_testing',
298
+ args: genArgs(argsField0)
299
+ },
300
+ {
301
+ address: avmTestContract.address,
302
+ fnName: 'bulk_testing',
303
+ args: genArgs(argsField1)
304
+ },
305
+ {
306
+ address: avmTestContract.address,
307
+ fnName: 'bulk_testing',
308
+ args: genArgs(argsField2)
309
+ },
310
+ {
311
+ address: avmTestContract.address,
312
+ fnName: 'bulk_testing',
313
+ args: genArgs(argsField3)
314
+ },
315
+ {
316
+ address: avmTestContract.address,
317
+ fnName: 'bulk_testing',
318
+ args: genArgs(argsField4)
319
+ },
320
+ {
321
+ address: avmTestContract.address,
322
+ fnName: 'bulk_testing',
323
+ args: genArgs(argsField5)
324
+ },
325
+ {
326
+ address: avmTestContract.address,
327
+ fnName: 'bulk_testing',
328
+ args: genArgs(argsField6)
329
+ },
330
+ {
331
+ address: avmTestContract.address,
332
+ fnName: 'bulk_testing',
333
+ args: genArgs(argsField7)
334
+ },
335
+ {
336
+ address: avmTestContract.address,
337
+ fnName: 'bulk_testing',
338
+ args: genArgs(argsField8)
339
+ },
340
+ {
341
+ address: avmTestContract.address,
342
+ fnName: 'bulk_testing',
343
+ args: genArgs(argsField9)
344
+ },
345
+ {
346
+ address: avmTestContract.address,
347
+ fnName: 'bulk_testing',
348
+ args: genArgs(argsField10)
349
+ },
350
+ {
351
+ address: avmTestContract.address,
352
+ fnName: 'bulk_testing',
353
+ args: genArgs(argsField11)
354
+ },
355
+ {
356
+ address: avmTestContract.address,
357
+ fnName: 'bulk_testing',
358
+ args: genArgs(argsField12)
359
+ },
360
+ {
361
+ address: avmTestContract.address,
362
+ fnName: 'bulk_testing',
363
+ args: genArgs(argsField13)
364
+ },
365
+ {
366
+ address: avmTestContract.address,
367
+ fnName: 'bulk_testing',
368
+ args: genArgs(argsField14)
369
+ },
370
+ {
371
+ address: avmTestContract.address,
372
+ fnName: 'bulk_testing',
373
+ args: genArgs(argsField15)
374
+ }
375
+ ], /*teardownCall=*/ undefined, /*feePayer*/ undefined, /*privateInsertions=*/ {
376
+ nonRevertible: {
377
+ nullifiers: [
378
+ new Fr(420000)
379
+ ],
380
+ noteHashes: [
381
+ new Fr(420001)
382
+ ]
383
+ },
384
+ revertible: {
385
+ nullifiers: [
386
+ new Fr(420002)
387
+ ],
388
+ noteHashes: [
389
+ new Fr(420003)
390
+ ]
391
+ }
392
+ });
393
+ expectToBeTrue(bulkResult.revertCode.isOK());
394
+ logger.info(`Mega bulk test took ${timer.ms()}ms\n`);
395
+ return bulkResult;
396
+ }
@@ -3,4 +3,7 @@ export * from './utils.js';
3
3
  export * from './simple_contract_data_source.js';
4
4
  export { readAvmMinimalPublicTxInputsFromFile, createAvmMinimalPublicTx } from './minimal_public_tx.js';
5
5
  export { TestExecutorMetrics } from '../test_executor_metrics.js';
6
+ export { ammTest } from './amm_test.js';
7
+ export { bulkTest, megaBulkTest } from './bulk_test.js';
8
+ export { tokenTest } from './token_test.js';
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/public/fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,YAAY,CAAC;AAC3B,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,oCAAoC,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACxG,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/public/fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,YAAY,CAAC;AAC3B,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,oCAAoC,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACxG,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
@@ -3,3 +3,6 @@ export * from './utils.js';
3
3
  export * from './simple_contract_data_source.js';
4
4
  export { readAvmMinimalPublicTxInputsFromFile, createAvmMinimalPublicTx } from './minimal_public_tx.js';
5
5
  export { TestExecutorMetrics } from '../test_executor_metrics.js';
6
+ export { ammTest } from './amm_test.js';
7
+ export { bulkTest, megaBulkTest } from './bulk_test.js';
8
+ export { tokenTest } from './token_test.js';
@@ -31,7 +31,21 @@ export declare class PublicTxSimulationTester extends BaseAvmSimulationTester {
31
31
  setMetricsPrefix(prefix: string): void;
32
32
  createTx(sender: AztecAddress, setupCalls?: TestEnqueuedCall[], appCalls?: TestEnqueuedCall[], teardownCall?: TestEnqueuedCall, feePayer?: AztecAddress, privateInsertions?: TestPrivateInsertions): Promise<Tx>;
33
33
  simulateTx(sender: AztecAddress, setupCalls?: TestEnqueuedCall[], appCalls?: TestEnqueuedCall[], teardownCall?: TestEnqueuedCall, feePayer?: AztecAddress, privateInsertions?: TestPrivateInsertions, txLabel?: string): Promise<PublicTxResult>;
34
+ /**
35
+ * Just simulate the transaction and return the result.
36
+ *
37
+ * This wrapper around simulation allows for easy labeling of a TX
38
+ * which is especially useful when reporting benchmarks or metrics.
39
+ */
34
40
  simulateTxWithLabel(txLabel: string, sender: AztecAddress, setupCalls?: TestEnqueuedCall[], appCalls?: TestEnqueuedCall[], teardownCall?: TestEnqueuedCall, feePayer?: AztecAddress, privateInsertions?: TestPrivateInsertions): Promise<PublicTxResult>;
41
+ /**
42
+ * Execute a transaction and return the result.
43
+ *
44
+ * This function can be (it is) overridden by a subclass (AvmProvingTester)
45
+ * to do more work (like prove and verify) while still reusing existing
46
+ * test fixtures (like amm_test). That is why it is not named "simulate*".
47
+ */
48
+ executeTxWithLabel(txLabel: string, sender: AztecAddress, setupCalls?: TestEnqueuedCall[], appCalls?: TestEnqueuedCall[], teardownCall?: TestEnqueuedCall, feePayer?: AztecAddress, privateInsertions?: TestPrivateInsertions): Promise<PublicTxResult>;
35
49
  prettyPrintMetrics(): void;
36
50
  }
37
51
  export declare function defaultGlobals(): GlobalVariables;
@@ -1 +1 @@
1
- {"version":3,"file":"public_tx_simulation_tester.d.ts","sourceRoot":"","sources":["../../../src/public/fixtures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