@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/dest/bin/index.js +1 -1
- package/dest/{chunk-OFS2CI6U.js → chunk-7NNNJCTG.js} +1 -1
- package/dest/{chunk-C2WBKKGS.js → chunk-KLBERADT.js} +4 -4
- package/dest/{chunk-C2WBKKGS.js.map → chunk-KLBERADT.js.map} +3 -3
- package/dest/metafile.json +71 -32
- package/dest/oracle/txe_oracle_top_level_context.d.ts +1 -1
- package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_top_level_context.js +40 -16
- package/dest/server.bundle.js +1 -1
- package/dest/state_machine/index.d.ts +1 -1
- package/dest/state_machine/index.d.ts.map +1 -1
- package/dest/state_machine/index.js +3 -1
- package/dest/txe_session.d.ts +1 -1
- package/dest/txe_session.d.ts.map +1 -1
- package/dest/txe_session.js +5 -4
- package/dest/worker.bundle.js +1 -1
- package/package.json +17 -17
- package/src/oracle/txe_oracle_top_level_context.ts +23 -20
- package/src/state_machine/index.ts +1 -0
- package/src/txe_session.ts +5 -4
- /package/dest/{chunk-OFS2CI6U.js.map → chunk-7NNNJCTG.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/txe",
|
|
3
|
-
"version": "5.
|
|
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.
|
|
73
|
-
"@aztec/archiver": "5.
|
|
74
|
-
"@aztec/aztec-node": "5.
|
|
75
|
-
"@aztec/aztec.js": "5.
|
|
76
|
-
"@aztec/bb-prover": "5.
|
|
77
|
-
"@aztec/bb.js": "5.
|
|
78
|
-
"@aztec/constants": "5.
|
|
79
|
-
"@aztec/foundation": "5.
|
|
80
|
-
"@aztec/key-store": "5.
|
|
81
|
-
"@aztec/kv-store": "5.
|
|
82
|
-
"@aztec/protocol-contracts": "5.
|
|
83
|
-
"@aztec/pxe": "5.
|
|
84
|
-
"@aztec/simulator": "5.
|
|
85
|
-
"@aztec/standard-contracts": "5.
|
|
86
|
-
"@aztec/stdlib": "5.
|
|
87
|
-
"@aztec/world-state": "5.
|
|
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
|
|
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
|
-
|
|
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,
|
package/src/txe_session.ts
CHANGED
|
@@ -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());
|
|
File without changes
|