@aztec/simulator 2.0.0-nightly.20250903 → 2.0.0-rc.2
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/public/avm/fixtures/base_avm_simulation_tester.d.ts +1 -1
- package/dest/public/avm/fixtures/base_avm_simulation_tester.d.ts.map +1 -1
- package/dest/public/avm/fixtures/base_avm_simulation_tester.js +2 -2
- package/dest/public/avm/fixtures/utils.d.ts +1 -1
- package/dest/public/avm/fixtures/utils.d.ts.map +1 -1
- package/dest/public/avm/fixtures/utils.js +2 -2
- package/dest/public/public_tx_simulator/public_tx_simulator.js +1 -1
- package/package.json +15 -15
- package/src/public/avm/fixtures/base_avm_simulation_tester.ts +2 -0
- package/src/public/avm/fixtures/utils.ts +2 -1
- package/src/public/public_tx_simulator/public_tx_simulator.ts +1 -1
|
@@ -27,7 +27,7 @@ export declare abstract class BaseAvmSimulationTester {
|
|
|
27
27
|
* Derive the contract class and instance with some seed.
|
|
28
28
|
* Add both to the contract data source along with the contract artifact.
|
|
29
29
|
*/
|
|
30
|
-
registerAndDeployContract(constructorArgs: any[], deployer: AztecAddress, contractArtifact: ContractArtifact, skipNullifierInsertion?: boolean, seed?: number, originalContractClassId?: Fr): Promise<ContractInstanceWithAddress>;
|
|
30
|
+
registerAndDeployContract(constructorArgs: any[], deployer: AztecAddress, contractArtifact: ContractArtifact, skipNullifierInsertion?: boolean, seed?: number, contractClassSeed?: number, originalContractClassId?: Fr): Promise<ContractInstanceWithAddress>;
|
|
31
31
|
registerFeeJuiceContract(): Promise<ContractInstanceWithAddress>;
|
|
32
32
|
addContractInstance(contractInstance: ContractInstanceWithAddress, skipNullifierInsertion?: boolean): Promise<void>;
|
|
33
33
|
private insertContractAddressNullifier;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_avm_simulation_tester.d.ts","sourceRoot":"","sources":["../../../../src/public/avm/fixtures/base_avm_simulation_tester.ts"],"names":[],"mappings":"AAC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,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAGjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAG9F;;;;;;;;;;GAUG;AACH,8BAAsB,uBAAuB;IAIlC,kBAAkB,EAAE,wBAAwB;IAC5C,WAAW,EAAE,yBAAyB;IAC7C,OAAO,CAAC,sBAAsB;IALzB,MAAM,yCAAyC;gBAG7C,kBAAkB,EAAE,wBAAwB,EAC5C,WAAW,EAAE,yBAAyB,EACrC,sBAAsB,KAAmB;IAG7C,kBAAkB,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,KAA8B;IAMhF,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE;IAOjE;;;OAGG;IACG,yBAAyB,CAC7B,eAAe,EAAE,GAAG,EAAE,EACtB,QAAQ,EAAE,YAAY,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,UAAQ,EAC9B,IAAI,SAAI,EACR,iBAAiB,SAAO,EACxB,uBAAuB,CAAC,EAAE,EAAE,GAC3B,OAAO,CAAC,2BAA2B,CAAC;IAkBjC,wBAAwB,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAWhE,mBAAmB,CAAC,gBAAgB,EAAE,2BAA2B,EAAE,sBAAsB,UAAQ;YAOzF,8BAA8B;IAQtC,eAAe,CAAC,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;CAIvE"}
|
|
@@ -45,8 +45,8 @@ import { createContractClassAndInstance } from './utils.js';
|
|
|
45
45
|
/**
|
|
46
46
|
* Derive the contract class and instance with some seed.
|
|
47
47
|
* Add both to the contract data source along with the contract artifact.
|
|
48
|
-
*/ async registerAndDeployContract(constructorArgs, deployer, contractArtifact, skipNullifierInsertion = false, seed = 0, originalContractClassId) {
|
|
49
|
-
const { contractClass, contractInstance } = await createContractClassAndInstance(constructorArgs, deployer, contractArtifact, seed, originalContractClassId);
|
|
48
|
+
*/ async registerAndDeployContract(constructorArgs, deployer, contractArtifact, skipNullifierInsertion = false, seed = 0, contractClassSeed = seed, originalContractClassId) {
|
|
49
|
+
const { contractClass, contractInstance } = await createContractClassAndInstance(constructorArgs, deployer, contractArtifact, seed, contractClassSeed, originalContractClassId);
|
|
50
50
|
await this.contractDataSource.addNewContract(contractArtifact, contractClass, contractInstance);
|
|
51
51
|
if (!skipNullifierInsertion) {
|
|
52
52
|
await this.insertContractAddressNullifier(contractInstance.address);
|
|
@@ -30,7 +30,7 @@ export declare function resolveContractAssertionMessage(functionName: string, re
|
|
|
30
30
|
* @param originalContractClassId - The original contract class ID (if upgraded)
|
|
31
31
|
* @returns The contract class, instance, and contract address nullifier.
|
|
32
32
|
*/
|
|
33
|
-
export declare function createContractClassAndInstance(constructorArgs: any[], deployer: AztecAddress, contractArtifact: ContractArtifact, seed?: number, originalContractClassId?: Fr): Promise<{
|
|
33
|
+
export declare function createContractClassAndInstance(constructorArgs: any[], deployer: AztecAddress, contractArtifact: ContractArtifact, seed?: number, contractClassSeed?: number, originalContractClassId?: Fr): Promise<{
|
|
34
34
|
contractClass: ContractClassPublic;
|
|
35
35
|
contractInstance: ContractInstanceWithAddress;
|
|
36
36
|
contractAddressNullifier: Fr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/public/avm/fixtures/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAEjC,MAAM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AAG,MAAM,EAAE,CAE5D;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAE5D;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,CAE1D;AAED,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,gBAAgB,CAAC,CAK3B;AAED,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,gBAAgB,GACjC,gBAAgB,GAAG,SAAS,CAE9B;AAED,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,gBAAgB,GACjC,WAAW,GAAG,SAAS,CAKzB;AAED,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,eAAe,EAC7B,MAAM,EAAE,EAAE,EAAE,EACZ,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,GAAG,SAAS,CAWpB;AAED;;;;;;;;;GASG;AACH,wBAAsB,8BAA8B,CAClD,eAAe,EAAE,GAAG,EAAE,EACtB,QAAQ,EAAE,YAAY,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,SAAI,EACR,iBAAiB,SAAO,EACxB,uBAAuB,CAAC,EAAE,EAAE,GAC3B,OAAO,CAAC;IACT,aAAa,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,EAAE,2BAA2B,CAAC;IAC9C,wBAAwB,EAAE,EAAE,CAAC;CAC9B,CAAC,CA4BD"}
|
|
@@ -70,9 +70,9 @@ export function resolveContractAssertionMessage(functionName, revertReason, outp
|
|
|
70
70
|
* @param seed - The seed for the contract.
|
|
71
71
|
* @param originalContractClassId - The original contract class ID (if upgraded)
|
|
72
72
|
* @returns The contract class, instance, and contract address nullifier.
|
|
73
|
-
*/ export async function createContractClassAndInstance(constructorArgs, deployer, contractArtifact, seed = 0, originalContractClassId) {
|
|
73
|
+
*/ export async function createContractClassAndInstance(constructorArgs, deployer, contractArtifact, seed = 0, contractClassSeed = seed, originalContractClassId) {
|
|
74
74
|
const bytecode = getContractFunctionArtifact(PUBLIC_DISPATCH_FN_NAME, contractArtifact).bytecode;
|
|
75
|
-
const contractClass = await makeContractClassPublic(
|
|
75
|
+
const contractClass = await makeContractClassPublic(contractClassSeed, bytecode);
|
|
76
76
|
const constructorAbi = getContractFunctionAbi('constructor', contractArtifact);
|
|
77
77
|
const { publicKeys } = await deriveKeys(new Fr(seed));
|
|
78
78
|
const initializationHash = await computeInitializationHash(constructorAbi, constructorArgs);
|
|
@@ -39,7 +39,7 @@ export class PublicTxSimulator {
|
|
|
39
39
|
txHash
|
|
40
40
|
});
|
|
41
41
|
// Create hinting DBs.
|
|
42
|
-
const hints = new AvmExecutionHints(this.globalVariables, AvmTxHint.fromTx(tx));
|
|
42
|
+
const hints = new AvmExecutionHints(this.globalVariables, AvmTxHint.fromTx(tx, this.globalVariables.gasFees));
|
|
43
43
|
const hintingMerkleTree = await HintingMerkleWriteOperations.create(this.merkleTree, hints);
|
|
44
44
|
const hintingTreesDB = new PublicTreesDB(hintingMerkleTree);
|
|
45
45
|
const hintingContractsDB = new HintingPublicContractsDB(this.contractsDB, hints);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/simulator",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": "./dest/server.js",
|
|
@@ -63,25 +63,25 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@aztec/constants": "2.0.0-
|
|
67
|
-
"@aztec/foundation": "2.0.0-
|
|
68
|
-
"@aztec/noir-acvm_js": "2.0.0-
|
|
69
|
-
"@aztec/noir-noirc_abi": "2.0.0-
|
|
70
|
-
"@aztec/noir-protocol-circuits-types": "2.0.0-
|
|
71
|
-
"@aztec/noir-types": "2.0.0-
|
|
72
|
-
"@aztec/protocol-contracts": "2.0.0-
|
|
73
|
-
"@aztec/stdlib": "2.0.0-
|
|
74
|
-
"@aztec/telemetry-client": "2.0.0-
|
|
75
|
-
"@aztec/world-state": "2.0.0-
|
|
66
|
+
"@aztec/constants": "2.0.0-rc.2",
|
|
67
|
+
"@aztec/foundation": "2.0.0-rc.2",
|
|
68
|
+
"@aztec/noir-acvm_js": "2.0.0-rc.2",
|
|
69
|
+
"@aztec/noir-noirc_abi": "2.0.0-rc.2",
|
|
70
|
+
"@aztec/noir-protocol-circuits-types": "2.0.0-rc.2",
|
|
71
|
+
"@aztec/noir-types": "2.0.0-rc.2",
|
|
72
|
+
"@aztec/protocol-contracts": "2.0.0-rc.2",
|
|
73
|
+
"@aztec/stdlib": "2.0.0-rc.2",
|
|
74
|
+
"@aztec/telemetry-client": "2.0.0-rc.2",
|
|
75
|
+
"@aztec/world-state": "2.0.0-rc.2",
|
|
76
76
|
"lodash.clonedeep": "^4.5.0",
|
|
77
77
|
"lodash.merge": "^4.6.2",
|
|
78
78
|
"tslib": "^2.4.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@aztec/kv-store": "2.0.0-
|
|
82
|
-
"@aztec/merkle-tree": "2.0.0-
|
|
83
|
-
"@aztec/noir-contracts.js": "2.0.0-
|
|
84
|
-
"@aztec/noir-test-contracts.js": "2.0.0-
|
|
81
|
+
"@aztec/kv-store": "2.0.0-rc.2",
|
|
82
|
+
"@aztec/merkle-tree": "2.0.0-rc.2",
|
|
83
|
+
"@aztec/noir-contracts.js": "2.0.0-rc.2",
|
|
84
|
+
"@aztec/noir-test-contracts.js": "2.0.0-rc.2",
|
|
85
85
|
"@jest/globals": "^30.0.0",
|
|
86
86
|
"@types/jest": "^30.0.0",
|
|
87
87
|
"@types/lodash.clonedeep": "^4.5.7",
|
|
@@ -57,6 +57,7 @@ export abstract class BaseAvmSimulationTester {
|
|
|
57
57
|
contractArtifact: ContractArtifact,
|
|
58
58
|
skipNullifierInsertion = false,
|
|
59
59
|
seed = 0,
|
|
60
|
+
contractClassSeed = seed,
|
|
60
61
|
originalContractClassId?: Fr, // if previously upgraded
|
|
61
62
|
): Promise<ContractInstanceWithAddress> {
|
|
62
63
|
const { contractClass, contractInstance } = await createContractClassAndInstance(
|
|
@@ -64,6 +65,7 @@ export abstract class BaseAvmSimulationTester {
|
|
|
64
65
|
deployer,
|
|
65
66
|
contractArtifact,
|
|
66
67
|
seed,
|
|
68
|
+
contractClassSeed,
|
|
67
69
|
originalContractClassId,
|
|
68
70
|
);
|
|
69
71
|
|
|
@@ -113,6 +113,7 @@ export async function createContractClassAndInstance(
|
|
|
113
113
|
deployer: AztecAddress,
|
|
114
114
|
contractArtifact: ContractArtifact,
|
|
115
115
|
seed = 0,
|
|
116
|
+
contractClassSeed = seed,
|
|
116
117
|
originalContractClassId?: Fr, // if previously upgraded
|
|
117
118
|
): Promise<{
|
|
118
119
|
contractClass: ContractClassPublic;
|
|
@@ -121,7 +122,7 @@ export async function createContractClassAndInstance(
|
|
|
121
122
|
}> {
|
|
122
123
|
const bytecode = (getContractFunctionArtifact(PUBLIC_DISPATCH_FN_NAME, contractArtifact) as FunctionArtifact)!
|
|
123
124
|
.bytecode;
|
|
124
|
-
const contractClass = await makeContractClassPublic(
|
|
125
|
+
const contractClass = await makeContractClassPublic(contractClassSeed, bytecode);
|
|
125
126
|
|
|
126
127
|
const constructorAbi = getContractFunctionAbi('constructor', contractArtifact);
|
|
127
128
|
const { publicKeys } = await deriveKeys(new Fr(seed));
|
|
@@ -74,7 +74,7 @@ export class PublicTxSimulator {
|
|
|
74
74
|
this.log.debug(`Simulating ${tx.publicFunctionCalldata.length} public calls for tx ${txHash}`, { txHash });
|
|
75
75
|
|
|
76
76
|
// Create hinting DBs.
|
|
77
|
-
const hints = new AvmExecutionHints(this.globalVariables, AvmTxHint.fromTx(tx));
|
|
77
|
+
const hints = new AvmExecutionHints(this.globalVariables, AvmTxHint.fromTx(tx, this.globalVariables.gasFees));
|
|
78
78
|
const hintingMerkleTree = await HintingMerkleWriteOperations.create(this.merkleTree, hints);
|
|
79
79
|
const hintingTreesDB = new PublicTreesDB(hintingMerkleTree);
|
|
80
80
|
const hintingContractsDB = new HintingPublicContractsDB(this.contractsDB, hints);
|