@aztec/pxe 0.87.0 → 0.87.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.
|
@@ -691,8 +691,8 @@ import { enrichPublicSimulationError, enrichSimulationError } from './error_enri
|
|
|
691
691
|
throw new Error('Recipients are required to get private events');
|
|
692
692
|
}
|
|
693
693
|
this.log.verbose(`Getting private events for ${contractAddress.toString()} from ${from} to ${from + numBlocks}`);
|
|
694
|
-
//
|
|
695
|
-
await this.simulateUtility('
|
|
694
|
+
// We need to manually trigger private state sync to have a guarantee that all the events are available.
|
|
695
|
+
await this.simulateUtility('sync_private_state', [], contractAddress);
|
|
696
696
|
const events = await this.privateEventDataProvider.getPrivateEvents(contractAddress, from, numBlocks, recipients, eventMetadataDef.eventSelector);
|
|
697
697
|
const decodedEvents = events.map((event)=>decodeFromAbi([
|
|
698
698
|
eventMetadataDef.abiType
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/pxe",
|
|
3
|
-
"version": "0.87.
|
|
3
|
+
"version": "0.87.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": "./dest/entrypoints/server/index.js",
|
|
@@ -57,19 +57,19 @@
|
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@aztec/bb-prover": "0.87.
|
|
61
|
-
"@aztec/bb.js": "0.87.
|
|
62
|
-
"@aztec/builder": "0.87.
|
|
63
|
-
"@aztec/constants": "0.87.
|
|
64
|
-
"@aztec/ethereum": "0.87.
|
|
65
|
-
"@aztec/foundation": "0.87.
|
|
66
|
-
"@aztec/key-store": "0.87.
|
|
67
|
-
"@aztec/kv-store": "0.87.
|
|
68
|
-
"@aztec/noir-protocol-circuits-types": "0.87.
|
|
69
|
-
"@aztec/noir-types": "0.87.
|
|
70
|
-
"@aztec/protocol-contracts": "0.87.
|
|
71
|
-
"@aztec/simulator": "0.87.
|
|
72
|
-
"@aztec/stdlib": "0.87.
|
|
60
|
+
"@aztec/bb-prover": "0.87.2",
|
|
61
|
+
"@aztec/bb.js": "0.87.2",
|
|
62
|
+
"@aztec/builder": "0.87.2",
|
|
63
|
+
"@aztec/constants": "0.87.2",
|
|
64
|
+
"@aztec/ethereum": "0.87.2",
|
|
65
|
+
"@aztec/foundation": "0.87.2",
|
|
66
|
+
"@aztec/key-store": "0.87.2",
|
|
67
|
+
"@aztec/kv-store": "0.87.2",
|
|
68
|
+
"@aztec/noir-protocol-circuits-types": "0.87.2",
|
|
69
|
+
"@aztec/noir-types": "0.87.2",
|
|
70
|
+
"@aztec/protocol-contracts": "0.87.2",
|
|
71
|
+
"@aztec/simulator": "0.87.2",
|
|
72
|
+
"@aztec/stdlib": "0.87.2",
|
|
73
73
|
"koa": "^2.16.1",
|
|
74
74
|
"koa-router": "^12.0.0",
|
|
75
75
|
"lodash.omit": "^4.5.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"viem": "2.23.7"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@aztec/noir-test-contracts.js": "0.87.
|
|
81
|
+
"@aztec/noir-test-contracts.js": "0.87.2",
|
|
82
82
|
"@jest/globals": "^29.5.0",
|
|
83
83
|
"@types/jest": "^29.5.0",
|
|
84
84
|
"@types/lodash.omit": "^4.5.7",
|
|
@@ -1011,8 +1011,8 @@ export class PXEService implements PXE {
|
|
|
1011
1011
|
|
|
1012
1012
|
this.log.verbose(`Getting private events for ${contractAddress.toString()} from ${from} to ${from + numBlocks}`);
|
|
1013
1013
|
|
|
1014
|
-
//
|
|
1015
|
-
await this.simulateUtility('
|
|
1014
|
+
// We need to manually trigger private state sync to have a guarantee that all the events are available.
|
|
1015
|
+
await this.simulateUtility('sync_private_state', [], contractAddress);
|
|
1016
1016
|
|
|
1017
1017
|
const events = await this.privateEventDataProvider.getPrivateEvents(
|
|
1018
1018
|
contractAddress,
|