@aztec/txe 5.2.0 → 5.3.0-nightly.20260819

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/txe",
3
- "version": "5.2.0",
3
+ "version": "5.3.0-nightly.20260819",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./server": {
@@ -69,22 +69,22 @@
69
69
  ]
70
70
  },
71
71
  "dependencies": {
72
- "@aztec/accounts": "5.2.0",
73
- "@aztec/archiver": "5.2.0",
74
- "@aztec/aztec-node": "5.2.0",
75
- "@aztec/aztec.js": "5.2.0",
76
- "@aztec/bb-prover": "5.2.0",
77
- "@aztec/bb.js": "5.2.0",
78
- "@aztec/constants": "5.2.0",
79
- "@aztec/foundation": "5.2.0",
80
- "@aztec/key-store": "5.2.0",
81
- "@aztec/kv-store": "5.2.0",
82
- "@aztec/protocol-contracts": "5.2.0",
83
- "@aztec/pxe": "5.2.0",
84
- "@aztec/simulator": "5.2.0",
85
- "@aztec/standard-contracts": "5.2.0",
86
- "@aztec/stdlib": "5.2.0",
87
- "@aztec/world-state": "5.2.0",
72
+ "@aztec/accounts": "5.3.0-nightly.20260819",
73
+ "@aztec/archiver": "5.3.0-nightly.20260819",
74
+ "@aztec/aztec-node": "5.3.0-nightly.20260819",
75
+ "@aztec/aztec.js": "5.3.0-nightly.20260819",
76
+ "@aztec/bb-prover": "5.3.0-nightly.20260819",
77
+ "@aztec/bb.js": "5.3.0-nightly.20260819",
78
+ "@aztec/constants": "5.3.0-nightly.20260819",
79
+ "@aztec/foundation": "5.3.0-nightly.20260819",
80
+ "@aztec/key-store": "5.3.0-nightly.20260819",
81
+ "@aztec/kv-store": "5.3.0-nightly.20260819",
82
+ "@aztec/protocol-contracts": "5.3.0-nightly.20260819",
83
+ "@aztec/pxe": "5.3.0-nightly.20260819",
84
+ "@aztec/simulator": "5.3.0-nightly.20260819",
85
+ "@aztec/standard-contracts": "5.3.0-nightly.20260819",
86
+ "@aztec/stdlib": "5.3.0-nightly.20260819",
87
+ "@aztec/world-state": "5.3.0-nightly.20260819",
88
88
  "msgpackr": "^1.11.2",
89
89
  "zod": "^4"
90
90
  },
@@ -218,17 +218,18 @@ export class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracl
218
218
  return;
219
219
  }
220
220
 
221
- const blockHeader = await this.stateMachine.anchorBlockStore.getBlockHeader();
222
- await this.stateMachine.contractSyncService.ensureContractSynced(
223
- contractAddress,
224
- null,
225
- async (call, execScopes) => {
221
+ const anchorBlockHeader = await this.stateMachine.anchorBlockStore.getBlockHeader();
222
+ await this.stateMachine.contractSyncService.ensureContractSynced({
223
+ contract: contractAddress,
224
+ functionToInvokeAfterSync: null,
225
+ utilityExecutor: async (call, execScopes) => {
226
226
  await this.executeUtilityCall(call, { scopes: execScopes, jobId });
227
227
  },
228
- blockHeader,
228
+ anchorBlockHeader,
229
229
  jobId,
230
- [scope],
231
- );
230
+ scopes: [scope],
231
+ triggeredBy: undefined,
232
+ });
232
233
  }
233
234
 
234
235
  async getPrivateEvents(selector: EventSelector, contractAddress: AztecAddress, scope: AztecAddress) {
@@ -460,14 +461,15 @@ export class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracl
460
461
  await this.executeUtilityCall(call, { scopes: execScopes, jobId });
461
462
  };
462
463
 
463
- await this.stateMachine.contractSyncService.ensureContractSynced(
464
- targetContractAddress,
465
- functionSelector,
464
+ await this.stateMachine.contractSyncService.ensureContractSynced({
465
+ contract: targetContractAddress,
466
+ functionToInvokeAfterSync: functionSelector,
466
467
  utilityExecutor,
467
- blockHeader,
468
+ anchorBlockHeader: blockHeader,
468
469
  jobId,
469
470
  scopes,
470
- );
471
+ triggeredBy: undefined,
472
+ });
471
473
 
472
474
  const blockNumber = await this.getNextBlockNumber();
473
475
 
@@ -860,16 +862,17 @@ export class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracl
860
862
  }
861
863
 
862
864
  // Sync notes before executing utility function to discover notes from previous transactions
863
- await this.stateMachine.contractSyncService.ensureContractSynced(
864
- targetContractAddress,
865
- functionSelector,
866
- async (call, execScopes) => {
865
+ await this.stateMachine.contractSyncService.ensureContractSynced({
866
+ contract: targetContractAddress,
867
+ functionToInvokeAfterSync: functionSelector,
868
+ utilityExecutor: async (call, execScopes) => {
867
869
  await this.executeUtilityCall(call, { scopes: execScopes, jobId });
868
870
  },
869
- blockHeader,
871
+ anchorBlockHeader: blockHeader,
870
872
  jobId,
871
- await this.keyStore.getAccounts(),
872
- );
873
+ scopes: await this.keyStore.getAccounts(),
874
+ triggeredBy: undefined,
875
+ });
873
876
 
874
877
  const call = FunctionCall.from({
875
878
  name: artifact.name,
@@ -82,6 +82,7 @@ export class TXEStateMachine {
82
82
  contractClassService,
83
83
  noteStore,
84
84
  createLogger('txe:contract_sync'),
85
+ { concurrentContractSyncEnabled: false },
85
86
  );
86
87
 
87
88
  const txResolver = new TxResolverService(node);
@@ -322,6 +322,10 @@ export class TXESession implements TXESessionStateHandler {
322
322
  const keyStore = new KeyStore(store);
323
323
  const accountStore = new TXEAccountStore(store);
324
324
 
325
+ const archiver = new TXEArchiver(store);
326
+ const anchorBlockStore = new AnchorBlockStore(store);
327
+ const stateMachine = await TXEStateMachine.create(archiver, anchorBlockStore, contractStore, noteStore);
328
+
325
329
  const jobCoordinator = new JobCoordinator(store);
326
330
  jobCoordinator.registerStores([
327
331
  capsuleStore,
@@ -330,12 +334,9 @@ export class TXESession implements TXESessionStateHandler {
330
334
  recipientTaggingStore,
331
335
  privateEventStore,
332
336
  noteStore,
337
+ stateMachine.contractSyncService,
333
338
  ]);
334
339
 
335
- const archiver = new TXEArchiver(store);
336
- const anchorBlockStore = new AnchorBlockStore(store);
337
- const stateMachine = await TXEStateMachine.create(archiver, anchorBlockStore, contractStore, noteStore);
338
-
339
340
  const nextBlockTimestamp = BigInt(Math.floor(new Date().getTime() / 1000));
340
341
  const version = new Fr(await stateMachine.node.getVersion());
341
342
  const chainId = new Fr(await stateMachine.node.getChainId());