@aztec/pxe 0.82.2 → 0.82.3

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.
@@ -3,7 +3,7 @@ import { createLogger } from '@aztec/foundation/log';
3
3
  import { SerialQueue } from '@aztec/foundation/queue';
4
4
  import { Timer } from '@aztec/foundation/timer';
5
5
  import { KeyStore } from '@aztec/key-store';
6
- import { L2TipsStore } from '@aztec/kv-store/stores';
6
+ import { L2TipsKVStore } from '@aztec/kv-store/stores';
7
7
  import { ProtocolContractAddress, protocolContractNames } from '@aztec/protocol-contracts';
8
8
  import { AcirSimulator, readCurrentClassId } from '@aztec/simulator/client';
9
9
  import { EventSelector, FunctionSelector, FunctionType, decodeFunctionSignature, encodeArguments } from '@aztec/stdlib/abi';
@@ -83,7 +83,7 @@ import { enrichPublicSimulationError, enrichSimulationError } from './error_enri
83
83
  const taggingDataProvider = new TaggingDataProvider(store);
84
84
  const capsuleDataProvider = new CapsuleDataProvider(store);
85
85
  const keyStore = new KeyStore(store);
86
- const tipsStore = new L2TipsStore(store, 'pxe');
86
+ const tipsStore = new L2TipsKVStore(store, 'pxe');
87
87
  const synchronizer = new Synchronizer(node, syncDataProvider, noteDataProvider, taggingDataProvider, tipsStore, config, loggerOrSuffix);
88
88
  const pxeOracleInterface = new PXEOracleInterface(node, keyStore, simulationProvider, contractDataProvider, noteDataProvider, capsuleDataProvider, syncDataProvider, taggingDataProvider, addressDataProvider, log);
89
89
  const simulator = new AcirSimulator(pxeOracleInterface, simulationProvider);
@@ -1,5 +1,5 @@
1
1
  import { type Logger } from '@aztec/foundation/log';
2
- import type { L2TipsStore } from '@aztec/kv-store/stores';
2
+ import type { L2TipsKVStore } from '@aztec/kv-store/stores';
3
3
  import { L2BlockStream, type L2BlockStreamEvent, type L2BlockStreamEventHandler } from '@aztec/stdlib/block';
4
4
  import type { AztecNode } from '@aztec/stdlib/interfaces/client';
5
5
  import type { PXEConfig } from '../config/index.js';
@@ -22,7 +22,7 @@ export declare class Synchronizer implements L2BlockStreamEventHandler {
22
22
  private log;
23
23
  private isSyncing;
24
24
  protected readonly blockStream: L2BlockStream;
25
- constructor(node: AztecNode, syncDataProvider: SyncDataProvider, noteDataProvider: NoteDataProvider, taggingDataProvider: TaggingDataProvider, l2TipsStore: L2TipsStore, config?: Partial<Pick<PXEConfig, 'l2StartingBlock'>>, loggerOrSuffix?: string | Logger);
25
+ constructor(node: AztecNode, syncDataProvider: SyncDataProvider, noteDataProvider: NoteDataProvider, taggingDataProvider: TaggingDataProvider, l2TipsStore: L2TipsKVStore, config?: Partial<Pick<PXEConfig, 'l2StartingBlock'>>, loggerOrSuffix?: string | Logger);
26
26
  protected createBlockStream(config: Partial<Pick<PXEConfig, 'l2StartingBlock'>>): L2BlockStream;
27
27
  /** Handle events emitted by the block stream. */
28
28
  handleBlockStreamEvent(event: L2BlockStreamEvent): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"synchronizer.d.ts","sourceRoot":"","sources":["../../src/synchronizer/synchronizer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAC7G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAErG;;;;;GAKG;AACH,qBAAa,YAAa,YAAW,yBAAyB;IAO1D,OAAO,CAAC,IAA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C5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAErG;;;;;GAKG;AACH,qBAAa,YAAa,YAAW,yBAAyB;IAO1D,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,WAAW;IAVrB,OAAO,CAAC,sBAAsB,CAA4B;IAC1D,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,SAAS,CAA4B;IAC7C,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;gBAGpC,IAAI,EAAE,SAAS,EACf,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,gBAAgB,EAClC,mBAAmB,EAAE,mBAAmB,EACxC,WAAW,EAAE,aAAa,EAClC,MAAM,GAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAM,EACxD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM;IASlC,SAAS,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAM/E,iDAAiD;IACpC,sBAAsB,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmC7E;;;OAGG;IACU,IAAI;YAiBH,MAAM;IAeP,qBAAqB;CAGnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/pxe",
3
- "version": "0.82.2",
3
+ "version": "0.82.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./server": "./dest/entrypoints/server/index.js",
@@ -59,19 +59,19 @@
59
59
  ]
60
60
  },
61
61
  "dependencies": {
62
- "@aztec/bb-prover": "0.82.2",
63
- "@aztec/bb.js": "0.82.2",
64
- "@aztec/builder": "0.82.2",
65
- "@aztec/constants": "0.82.2",
66
- "@aztec/ethereum": "0.82.2",
67
- "@aztec/foundation": "0.82.2",
68
- "@aztec/key-store": "0.82.2",
69
- "@aztec/kv-store": "0.82.2",
70
- "@aztec/noir-protocol-circuits-types": "0.82.2",
71
- "@aztec/noir-types": "0.82.2",
72
- "@aztec/protocol-contracts": "0.82.2",
73
- "@aztec/simulator": "0.82.2",
74
- "@aztec/stdlib": "0.82.2",
62
+ "@aztec/bb-prover": "0.82.3",
63
+ "@aztec/bb.js": "0.82.3",
64
+ "@aztec/builder": "0.82.3",
65
+ "@aztec/constants": "0.82.3",
66
+ "@aztec/ethereum": "0.82.3",
67
+ "@aztec/foundation": "0.82.3",
68
+ "@aztec/key-store": "0.82.3",
69
+ "@aztec/kv-store": "0.82.3",
70
+ "@aztec/noir-protocol-circuits-types": "0.82.3",
71
+ "@aztec/noir-types": "0.82.3",
72
+ "@aztec/protocol-contracts": "0.82.3",
73
+ "@aztec/simulator": "0.82.3",
74
+ "@aztec/stdlib": "0.82.3",
75
75
  "@msgpack/msgpack": "^3.0.0-beta2",
76
76
  "koa": "^2.14.2",
77
77
  "koa-router": "^12.0.0",
@@ -81,7 +81,7 @@
81
81
  "viem": "2.23.7"
82
82
  },
83
83
  "devDependencies": {
84
- "@aztec/noir-contracts.js": "0.82.2",
84
+ "@aztec/noir-contracts.js": "0.82.3",
85
85
  "@jest/globals": "^29.5.0",
86
86
  "@types/jest": "^29.5.0",
87
87
  "@types/lodash.omit": "^4.5.7",
@@ -6,7 +6,7 @@ import { Timer } from '@aztec/foundation/timer';
6
6
  import type { SiblingPath } from '@aztec/foundation/trees';
7
7
  import { KeyStore } from '@aztec/key-store';
8
8
  import type { AztecAsyncKVStore } from '@aztec/kv-store';
9
- import { L2TipsStore } from '@aztec/kv-store/stores';
9
+ import { L2TipsKVStore } from '@aztec/kv-store/stores';
10
10
  import {
11
11
  ProtocolContractAddress,
12
12
  type ProtocolContractsProvider,
@@ -140,7 +140,7 @@ export class PXEService implements PXE {
140
140
  const taggingDataProvider = new TaggingDataProvider(store);
141
141
  const capsuleDataProvider = new CapsuleDataProvider(store);
142
142
  const keyStore = new KeyStore(store);
143
- const tipsStore = new L2TipsStore(store, 'pxe');
143
+ const tipsStore = new L2TipsKVStore(store, 'pxe');
144
144
  const synchronizer = new Synchronizer(
145
145
  node,
146
146
  syncDataProvider,
@@ -1,6 +1,6 @@
1
1
  import { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
2
2
  import { type Logger, createLogger } from '@aztec/foundation/log';
3
- import type { L2TipsStore } from '@aztec/kv-store/stores';
3
+ import type { L2TipsKVStore } from '@aztec/kv-store/stores';
4
4
  import { L2BlockStream, type L2BlockStreamEvent, type L2BlockStreamEventHandler } from '@aztec/stdlib/block';
5
5
  import type { AztecNode } from '@aztec/stdlib/interfaces/client';
6
6
 
@@ -26,7 +26,7 @@ export class Synchronizer implements L2BlockStreamEventHandler {
26
26
  private syncDataProvider: SyncDataProvider,
27
27
  private noteDataProvider: NoteDataProvider,
28
28
  private taggingDataProvider: TaggingDataProvider,
29
- private l2TipsStore: L2TipsStore,
29
+ private l2TipsStore: L2TipsKVStore,
30
30
  config: Partial<Pick<PXEConfig, 'l2StartingBlock'>> = {},
31
31
  loggerOrSuffix?: string | Logger,
32
32
  ) {