@aztec/txe 3.0.0-nightly.20251114 → 3.0.0-nightly.20251118
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"txe_oracle_top_level_context.d.ts","sourceRoot":"","sources":["../../src/oracle/txe_oracle_top_level_context.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,mBAAmB,EAEnB,kBAAkB,EAEnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAIL,KAAK,WAAW,EAMjB,MAAM,sBAAsB,CAAC;AAgB9B,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAgB,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"txe_oracle_top_level_context.d.ts","sourceRoot":"","sources":["../../src/oracle/txe_oracle_top_level_context.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,mBAAmB,EAEnB,kBAAkB,EAEnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAIL,KAAK,WAAW,EAMjB,MAAM,sBAAsB,CAAC;AAgB9B,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAgB,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,KAAK,2BAA2B,EAAyB,MAAM,wBAAwB,CAAC;AAYjG,OAAO,EASL,MAAM,EAEP,M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AM,CAAC;IAI9C,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIrC,wBAAwB;IAIxB,mBAAmB;;;;;IAanB,kBAAkB,CAAC,MAAM,EAAE,MAAM;IAQvC,qBAAqB,CAAC,QAAQ,EAAE,MAAM;IAKhC,SAAS,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,2BAA2B,EAAE,MAAM,EAAE,EAAE;IAoBvF,aAAa,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,2BAA2B,EAAE,MAAM,EAAE,EAAE;IAe3F,gBAAgB,CAAC,MAAM,EAAE,EAAE;IAU3B,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE;IAYxD,SAAS,CAAC,OAAO,GAAE;QAAE,UAAU,CAAC,EAAE,EAAE,EAAE,CAAA;KAAO;IA+B7C,qBAAqB,CACzB,IAAI,EAAE,YAAY,EAClB,qBAAqB,EAAE,YAAY,YAAsB,EACzD,gBAAgB,EAAE,gBAAgB,YAA2B,EAC7D,IAAI,EAAE,EAAE,EAAE,EACV,QAAQ,GAAE,EAAc,EACxB,YAAY,GAAE,OAAe;IA8LzB,oBAAoB,CACxB,IAAI,EAAE,YAAY,EAClB,qBAAqB,EAAE,YAAY,EACnC,QAAQ,EAAE,EAAE,EAAE,EACd,YAAY,EAAE,OAAO;IAkJjB,0BAA0B,CAC9B,qBAAqB,EAAE,YAAY,EACnC,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,EAAE,EAAE;IA+CZ,KAAK,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;YAK7B,kBAAkB;CAGjC"}
|
|
@@ -9,6 +9,7 @@ import { ExecutionError, WASMSimulator, createSimulationError, extractCallStack,
|
|
|
9
9
|
import { GuardedMerkleTreeOperations, PublicContractsDB, PublicProcessor, PublicTxSimulator } from '@aztec/simulator/server';
|
|
10
10
|
import { FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
11
11
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
12
|
+
import { PublicSimulatorConfig } from '@aztec/stdlib/avm';
|
|
12
13
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
13
14
|
import { Body, L2Block } from '@aztec/stdlib/block';
|
|
14
15
|
import { computePartialAddress } from '@aztec/stdlib/contract';
|
|
@@ -229,10 +230,13 @@ export class TXEOracleTopLevelContext {
|
|
|
229
230
|
const forkedWorldTrees = await this.stateMachine.synchronizer.nativeWorldStateService.fork();
|
|
230
231
|
const contractsDB = new PublicContractsDB(new TXEPublicContractDataSource(blockNumber, this.contractDataProvider));
|
|
231
232
|
const guardedMerkleTrees = new GuardedMerkleTreeOperations(forkedWorldTrees);
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
const config = PublicSimulatorConfig.from({
|
|
234
|
+
skipFeeEnforcement: true,
|
|
235
|
+
collectDebugLogs: true,
|
|
236
|
+
collectHints: false,
|
|
237
|
+
collectStatistics: false
|
|
238
|
+
});
|
|
239
|
+
const processor = new PublicProcessor(globals, guardedMerkleTrees, contractsDB, new PublicTxSimulator(guardedMerkleTrees, contractsDB, globals, config), new TestDateProvider());
|
|
236
240
|
const tx = await Tx.create({
|
|
237
241
|
data: publicInputs,
|
|
238
242
|
chonkProof: ChonkProof.empty(),
|
|
@@ -302,10 +306,13 @@ export class TXEOracleTopLevelContext {
|
|
|
302
306
|
const forkedWorldTrees = await this.stateMachine.synchronizer.nativeWorldStateService.fork();
|
|
303
307
|
const contractsDB = new PublicContractsDB(new TXEPublicContractDataSource(blockNumber, this.contractDataProvider));
|
|
304
308
|
const guardedMerkleTrees = new GuardedMerkleTreeOperations(forkedWorldTrees);
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
309
|
+
const config = PublicSimulatorConfig.from({
|
|
310
|
+
skipFeeEnforcement: true,
|
|
311
|
+
collectDebugLogs: true,
|
|
312
|
+
collectHints: false,
|
|
313
|
+
collectStatistics: false
|
|
308
314
|
});
|
|
315
|
+
const simulator = new PublicTxSimulator(guardedMerkleTrees, contractsDB, globals, config);
|
|
309
316
|
const processor = new PublicProcessor(globals, guardedMerkleTrees, contractsDB, simulator, new TestDateProvider());
|
|
310
317
|
// We're simulating a scenario in which private execution immediately enqueues a public call and halts. The private
|
|
311
318
|
// kernel init would in this case inject a nullifier with the transaction request hash as a non-revertible
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/txe",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251118",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"bin": "./dest/bin/index.js",
|
|
@@ -61,20 +61,20 @@
|
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
65
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
66
|
-
"@aztec/aztec-node": "3.0.0-nightly.
|
|
67
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
68
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
69
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
70
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
71
|
-
"@aztec/key-store": "3.0.0-nightly.
|
|
72
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
73
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
74
|
-
"@aztec/pxe": "3.0.0-nightly.
|
|
75
|
-
"@aztec/simulator": "3.0.0-nightly.
|
|
76
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
77
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
64
|
+
"@aztec/accounts": "3.0.0-nightly.20251118",
|
|
65
|
+
"@aztec/archiver": "3.0.0-nightly.20251118",
|
|
66
|
+
"@aztec/aztec-node": "3.0.0-nightly.20251118",
|
|
67
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251118",
|
|
68
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251118",
|
|
69
|
+
"@aztec/constants": "3.0.0-nightly.20251118",
|
|
70
|
+
"@aztec/foundation": "3.0.0-nightly.20251118",
|
|
71
|
+
"@aztec/key-store": "3.0.0-nightly.20251118",
|
|
72
|
+
"@aztec/kv-store": "3.0.0-nightly.20251118",
|
|
73
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251118",
|
|
74
|
+
"@aztec/pxe": "3.0.0-nightly.20251118",
|
|
75
|
+
"@aztec/simulator": "3.0.0-nightly.20251118",
|
|
76
|
+
"@aztec/stdlib": "3.0.0-nightly.20251118",
|
|
77
|
+
"@aztec/world-state": "3.0.0-nightly.20251118",
|
|
78
78
|
"zod": "^3.23.8"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
} from '@aztec/simulator/server';
|
|
46
46
|
import { type ContractArtifact, FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
47
47
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
48
|
+
import { PublicSimulatorConfig } from '@aztec/stdlib/avm';
|
|
48
49
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
49
50
|
import { Body, L2Block } from '@aztec/stdlib/block';
|
|
50
51
|
import { type ContractInstanceWithAddress, computePartialAddress } from '@aztec/stdlib/contract';
|
|
@@ -373,14 +374,17 @@ export class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracl
|
|
|
373
374
|
|
|
374
375
|
const contractsDB = new PublicContractsDB(new TXEPublicContractDataSource(blockNumber, this.contractDataProvider));
|
|
375
376
|
const guardedMerkleTrees = new GuardedMerkleTreeOperations(forkedWorldTrees);
|
|
377
|
+
const config = PublicSimulatorConfig.from({
|
|
378
|
+
skipFeeEnforcement: true,
|
|
379
|
+
collectDebugLogs: true,
|
|
380
|
+
collectHints: false,
|
|
381
|
+
collectStatistics: false,
|
|
382
|
+
});
|
|
376
383
|
const processor = new PublicProcessor(
|
|
377
384
|
globals,
|
|
378
385
|
guardedMerkleTrees,
|
|
379
386
|
contractsDB,
|
|
380
|
-
new PublicTxSimulator(guardedMerkleTrees, contractsDB, globals,
|
|
381
|
-
doMerkleOperations: true,
|
|
382
|
-
skipFeeEnforcement: true,
|
|
383
|
-
}),
|
|
387
|
+
new PublicTxSimulator(guardedMerkleTrees, contractsDB, globals, config),
|
|
384
388
|
new TestDateProvider(),
|
|
385
389
|
);
|
|
386
390
|
|
|
@@ -486,10 +490,13 @@ export class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracl
|
|
|
486
490
|
|
|
487
491
|
const contractsDB = new PublicContractsDB(new TXEPublicContractDataSource(blockNumber, this.contractDataProvider));
|
|
488
492
|
const guardedMerkleTrees = new GuardedMerkleTreeOperations(forkedWorldTrees);
|
|
489
|
-
const
|
|
490
|
-
doMerkleOperations: true,
|
|
493
|
+
const config = PublicSimulatorConfig.from({
|
|
491
494
|
skipFeeEnforcement: true,
|
|
495
|
+
collectDebugLogs: true,
|
|
496
|
+
collectHints: false,
|
|
497
|
+
collectStatistics: false,
|
|
492
498
|
});
|
|
499
|
+
const simulator = new PublicTxSimulator(guardedMerkleTrees, contractsDB, globals, config);
|
|
493
500
|
const processor = new PublicProcessor(globals, guardedMerkleTrees, contractsDB, simulator, new TestDateProvider());
|
|
494
501
|
|
|
495
502
|
// We're simulating a scenario in which private execution immediately enqueues a public call and halts. The private
|