@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.
@@ -1,6 +1,6 @@
1
1
  export function getPackageInfo() {
2
2
  return {
3
- version: '0.86.0',
3
+ version: '0.87.1',
4
4
  name: '@aztec/pxe'
5
5
  };
6
6
  }
@@ -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
- // TODO(#13113): This is a temporary hack to ensure that the notes are synced before getting the events.
695
- await this.simulateUtility('sync_notes', [], contractAddress);
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.0",
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.0",
61
- "@aztec/bb.js": "0.87.0",
62
- "@aztec/builder": "0.87.0",
63
- "@aztec/constants": "0.87.0",
64
- "@aztec/ethereum": "0.87.0",
65
- "@aztec/foundation": "0.87.0",
66
- "@aztec/key-store": "0.87.0",
67
- "@aztec/kv-store": "0.87.0",
68
- "@aztec/noir-protocol-circuits-types": "0.87.0",
69
- "@aztec/noir-types": "0.87.0",
70
- "@aztec/protocol-contracts": "0.87.0",
71
- "@aztec/simulator": "0.87.0",
72
- "@aztec/stdlib": "0.87.0",
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.0",
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",
@@ -1,3 +1,3 @@
1
1
  export function getPackageInfo() {
2
- return { version: '0.86.0', name: '@aztec/pxe' };
2
+ return { version: '0.87.1', name: '@aztec/pxe' };
3
3
  }
@@ -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
- // TODO(#13113): This is a temporary hack to ensure that the notes are synced before getting the events.
1015
- await this.simulateUtility('sync_notes', [], contractAddress);
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,