@aztec/simulator 4.3.0-nightly.20260419 → 4.3.0-nightly.20260421
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.
|
@@ -3,4 +3,4 @@ import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
|
3
3
|
import { PublicTxSimulationTester } from './public_tx_simulation_tester.js';
|
|
4
4
|
export declare function bulkTest(tester: PublicTxSimulationTester, logger: Logger, avmTestContractArtifact: ContractArtifact): Promise<import("@aztec/stdlib/avm").PublicTxResult>;
|
|
5
5
|
export declare function megaBulkTest(tester: PublicTxSimulationTester, logger: Logger, avmTestContractArtifact: ContractArtifact): Promise<import("@aztec/stdlib/avm").PublicTxResult>;
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVsa190ZXN0LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcHVibGljL2ZpeHR1cmVzL2J1bGtfdGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUVwRCxPQUFPLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRzFELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBRTVFLHdCQUFzQixRQUFRLENBQzVCLE1BQU0sRUFBRSx3QkFBd0IsRUFDaEMsTUFBTSxFQUFFLE1BQU0sRUFDZCx1QkFBdUIsRUFBRSxnQkFBZ0IsdURBZ0YxQztBQUVELHdCQUFzQixZQUFZLENBQ2hDLE1BQU0sRUFBRSx3QkFBd0IsRUFDaEMsTUFBTSxFQUFFLE1BQU0sRUFDZCx1QkFBdUIsRUFBRSxnQkFBZ0IsdURBc0UxQyJ9
|
|
@@ -1 +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;AAEpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,wBAAwB,EAChC,MAAM,EAAE,MAAM,EACd,uBAAuB,EAAE,gBAAgB,
|
|
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;AAEpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,wBAAwB,EAChC,MAAM,EAAE,MAAM,EACd,uBAAuB,EAAE,gBAAgB,uDAgF1C;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,wBAAwB,EAChC,MAAM,EAAE,MAAM,EACd,uBAAuB,EAAE,gBAAgB,uDAsE1C"}
|
|
@@ -33,10 +33,10 @@ export async function bulkTest(tester, logger, avmTestContractArtifact) {
|
|
|
33
33
|
5,
|
|
34
34
|
6,
|
|
35
35
|
7,
|
|
36
|
-
8
|
|
36
|
+
8,
|
|
37
|
+
9,
|
|
38
|
+
10
|
|
37
39
|
].map((x)=>new Fr(x));
|
|
38
|
-
argsU8.push(new Fr(2n ** 128n + 9n)); // Trigger truncation from large (> 128 bits) value (canonical decomposition event)
|
|
39
|
-
argsU8.push(new Fr(2n ** 125n + 10n)); // Trigger truncation from small (< 128 bits) value (no canonical decomposition event)
|
|
40
40
|
const args = [
|
|
41
41
|
argsField,
|
|
42
42
|
argsU8,
|
|
@@ -67,7 +67,7 @@ export async function bulkTest(tester, logger, avmTestContractArtifact) {
|
|
|
67
67
|
address: avmTestContract.address,
|
|
68
68
|
fnName: 'assert_calldata_copy',
|
|
69
69
|
args: [
|
|
70
|
-
argsField.slice(3),
|
|
70
|
+
argsField.slice(0, 3),
|
|
71
71
|
/* with_selector: */ true
|
|
72
72
|
]
|
|
73
73
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/simulator",
|
|
3
|
-
"version": "4.3.0-nightly.
|
|
3
|
+
"version": "4.3.0-nightly.20260421",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": "./dest/server.js",
|
|
@@ -64,26 +64,26 @@
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@aztec/constants": "4.3.0-nightly.
|
|
68
|
-
"@aztec/foundation": "4.3.0-nightly.
|
|
69
|
-
"@aztec/native": "4.3.0-nightly.
|
|
70
|
-
"@aztec/noir-acvm_js": "4.3.0-nightly.
|
|
71
|
-
"@aztec/noir-noirc_abi": "4.3.0-nightly.
|
|
72
|
-
"@aztec/noir-protocol-circuits-types": "4.3.0-nightly.
|
|
73
|
-
"@aztec/noir-types": "4.3.0-nightly.
|
|
74
|
-
"@aztec/protocol-contracts": "4.3.0-nightly.
|
|
75
|
-
"@aztec/stdlib": "4.3.0-nightly.
|
|
76
|
-
"@aztec/telemetry-client": "4.3.0-nightly.
|
|
77
|
-
"@aztec/world-state": "4.3.0-nightly.
|
|
67
|
+
"@aztec/constants": "4.3.0-nightly.20260421",
|
|
68
|
+
"@aztec/foundation": "4.3.0-nightly.20260421",
|
|
69
|
+
"@aztec/native": "4.3.0-nightly.20260421",
|
|
70
|
+
"@aztec/noir-acvm_js": "4.3.0-nightly.20260421",
|
|
71
|
+
"@aztec/noir-noirc_abi": "4.3.0-nightly.20260421",
|
|
72
|
+
"@aztec/noir-protocol-circuits-types": "4.3.0-nightly.20260421",
|
|
73
|
+
"@aztec/noir-types": "4.3.0-nightly.20260421",
|
|
74
|
+
"@aztec/protocol-contracts": "4.3.0-nightly.20260421",
|
|
75
|
+
"@aztec/stdlib": "4.3.0-nightly.20260421",
|
|
76
|
+
"@aztec/telemetry-client": "4.3.0-nightly.20260421",
|
|
77
|
+
"@aztec/world-state": "4.3.0-nightly.20260421",
|
|
78
78
|
"lodash.clonedeep": "^4.5.0",
|
|
79
79
|
"lodash.merge": "^4.6.2",
|
|
80
80
|
"tslib": "^2.4.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@aztec/kv-store": "4.3.0-nightly.
|
|
84
|
-
"@aztec/merkle-tree": "4.3.0-nightly.
|
|
85
|
-
"@aztec/noir-contracts.js": "4.3.0-nightly.
|
|
86
|
-
"@aztec/noir-test-contracts.js": "4.3.0-nightly.
|
|
83
|
+
"@aztec/kv-store": "4.3.0-nightly.20260421",
|
|
84
|
+
"@aztec/merkle-tree": "4.3.0-nightly.20260421",
|
|
85
|
+
"@aztec/noir-contracts.js": "4.3.0-nightly.20260421",
|
|
86
|
+
"@aztec/noir-test-contracts.js": "4.3.0-nightly.20260421",
|
|
87
87
|
"@jest/globals": "^30.0.0",
|
|
88
88
|
"@types/jest": "^30.0.0",
|
|
89
89
|
"@types/lodash.clonedeep": "^4.5.7",
|
|
@@ -30,9 +30,7 @@ export async function bulkTest(
|
|
|
30
30
|
// for it to use as "expected" values when testing contract instance retrieval.
|
|
31
31
|
const expectContractInstance = avmTestContract;
|
|
32
32
|
const argsField = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(x => new Fr(x));
|
|
33
|
-
const argsU8 = [1, 2, 3, 4, 5, 6, 7, 8].map(x => new Fr(x));
|
|
34
|
-
argsU8.push(new Fr(2n ** 128n + 9n)); // Trigger truncation from large (> 128 bits) value (canonical decomposition event)
|
|
35
|
-
argsU8.push(new Fr(2n ** 125n + 10n)); // Trigger truncation from small (< 128 bits) value (no canonical decomposition event)
|
|
33
|
+
const argsU8 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(x => new Fr(x));
|
|
36
34
|
const args = [
|
|
37
35
|
argsField,
|
|
38
36
|
argsU8,
|
|
@@ -62,7 +60,7 @@ export async function bulkTest(
|
|
|
62
60
|
{
|
|
63
61
|
address: avmTestContract.address,
|
|
64
62
|
fnName: 'assert_calldata_copy',
|
|
65
|
-
args: [argsField.slice(3), /* with_selector: */ true],
|
|
63
|
+
args: [argsField.slice(0, 3), /* with_selector: */ true],
|
|
66
64
|
},
|
|
67
65
|
{
|
|
68
66
|
address: avmTestContract.address,
|