@aztec/pxe 0.83.0 → 0.83.1-nightly.20250404

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.83.0',
3
+ version: '0.83.1',
4
4
  name: '@aztec/pxe'
5
5
  };
6
6
  }
@@ -1,11 +1,11 @@
1
1
  import { Fr } from '@aztec/foundation/fields';
2
- import { type LogFn } from '@aztec/foundation/log';
2
+ import { type Logger } from '@aztec/foundation/log';
3
3
  import type { AztecAsyncKVStore } from '@aztec/kv-store';
4
4
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
5
5
  import type { DataProvider } from '../data_provider.js';
6
6
  export declare class CapsuleDataProvider implements DataProvider {
7
7
  #private;
8
- debug: LogFn;
8
+ logger: Logger;
9
9
  constructor(store: AztecAsyncKVStore);
10
10
  storeCapsule(contractAddress: AztecAddress, slot: Fr, capsule: Fr[]): Promise<void>;
11
11
  loadCapsule(contractAddress: AztecAddress, slot: Fr): Promise<Fr[] | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"capsule_data_provider.d.ts","sourceRoot":"","sources":["../../../src/storage/capsule_data_provider/capsule_data_provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,KAAK,KAAK,EAAyB,MAAM,uBAAuB,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,mBAAoB,YAAW,YAAY;;IAMtD,KAAK,EAAE,KAAK,CAAC;gBAED,KAAK,EAAE,iBAAiB;IAQ9B,YAAY,CAAC,eAAe,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,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E,GAAG,OAAO,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC;IAa1E,aAAa,CAAC,eAAe,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrE,WAAW,CAAC,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB7G;;;;;;;OAOG;IACH,oBAAoB,CAAC,eAAe,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBrF,OAAO;CAMrB"}
@@ -1,15 +1,15 @@
1
1
  import { Fr } from '@aztec/foundation/fields';
2
2
  import { toArray } from '@aztec/foundation/iterable';
3
- import { createDebugOnlyLogger } from '@aztec/foundation/log';
3
+ import { createLogger } from '@aztec/foundation/log';
4
4
  export class CapsuleDataProvider {
5
5
  #store;
6
6
  // Arbitrary data stored by contracts. Key is computed as `${contractAddress}:${key}`
7
7
  #capsules;
8
- debug;
8
+ logger;
9
9
  constructor(store){
10
10
  this.#store = store;
11
11
  this.#capsules = this.#store.openMap('capsules');
12
- this.debug = createDebugOnlyLogger('pxe:capsule-data-provider');
12
+ this.logger = createLogger('pxe:capsule-data-provider');
13
13
  }
14
14
  async storeCapsule(contractAddress, slot, capsule) {
15
15
  await this.#capsules.set(dbSlotToKey(contractAddress, slot), Buffer.concat(capsule.map((value)=>value.toBuffer())));
@@ -17,7 +17,7 @@ export class CapsuleDataProvider {
17
17
  async loadCapsule(contractAddress, slot) {
18
18
  const dataBuffer = await this.#capsules.getAsync(dbSlotToKey(contractAddress, slot));
19
19
  if (!dataBuffer) {
20
- this.debug(`Data not found for contract ${contractAddress.toString()} and slot ${slot.toString()}`);
20
+ this.logger.debug(`Data not found for contract ${contractAddress.toString()} and slot ${slot.toString()}`);
21
21
  return null;
22
22
  }
23
23
  const capsule = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/pxe",
3
- "version": "0.83.0",
3
+ "version": "0.83.1-nightly.20250404",
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.83.0",
63
- "@aztec/bb.js": "0.83.0",
64
- "@aztec/builder": "0.83.0",
65
- "@aztec/constants": "0.83.0",
66
- "@aztec/ethereum": "0.83.0",
67
- "@aztec/foundation": "0.83.0",
68
- "@aztec/key-store": "0.83.0",
69
- "@aztec/kv-store": "0.83.0",
70
- "@aztec/noir-protocol-circuits-types": "0.83.0",
71
- "@aztec/noir-types": "0.83.0",
72
- "@aztec/protocol-contracts": "0.83.0",
73
- "@aztec/simulator": "0.83.0",
74
- "@aztec/stdlib": "0.83.0",
62
+ "@aztec/bb-prover": "0.83.1-nightly.20250404",
63
+ "@aztec/bb.js": "0.83.1-nightly.20250404",
64
+ "@aztec/builder": "0.83.1-nightly.20250404",
65
+ "@aztec/constants": "0.83.1-nightly.20250404",
66
+ "@aztec/ethereum": "0.83.1-nightly.20250404",
67
+ "@aztec/foundation": "0.83.1-nightly.20250404",
68
+ "@aztec/key-store": "0.83.1-nightly.20250404",
69
+ "@aztec/kv-store": "0.83.1-nightly.20250404",
70
+ "@aztec/noir-protocol-circuits-types": "0.83.1-nightly.20250404",
71
+ "@aztec/noir-types": "0.83.1-nightly.20250404",
72
+ "@aztec/protocol-contracts": "0.83.1-nightly.20250404",
73
+ "@aztec/simulator": "0.83.1-nightly.20250404",
74
+ "@aztec/stdlib": "0.83.1-nightly.20250404",
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.83.0",
84
+ "@aztec/noir-contracts.js": "0.83.1-nightly.20250404",
85
85
  "@jest/globals": "^29.5.0",
86
86
  "@types/jest": "^29.5.0",
87
87
  "@types/lodash.omit": "^4.5.7",
@@ -1,3 +1,3 @@
1
1
  export function getPackageInfo() {
2
- return { version: '0.83.0', name: '@aztec/pxe' };
2
+ return { version: '0.83.1', name: '@aztec/pxe' };
3
3
  }
@@ -1,6 +1,6 @@
1
1
  import { Fr } from '@aztec/foundation/fields';
2
2
  import { toArray } from '@aztec/foundation/iterable';
3
- import { type LogFn, createDebugOnlyLogger } from '@aztec/foundation/log';
3
+ import { type Logger, createLogger } from '@aztec/foundation/log';
4
4
  import type { AztecAsyncKVStore, AztecAsyncMap } from '@aztec/kv-store';
5
5
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
6
6
 
@@ -12,14 +12,14 @@ export class CapsuleDataProvider implements DataProvider {
12
12
  // Arbitrary data stored by contracts. Key is computed as `${contractAddress}:${key}`
13
13
  #capsules: AztecAsyncMap<string, Buffer>;
14
14
 
15
- debug: LogFn;
15
+ logger: Logger;
16
16
 
17
17
  constructor(store: AztecAsyncKVStore) {
18
18
  this.#store = store;
19
19
 
20
20
  this.#capsules = this.#store.openMap('capsules');
21
21
 
22
- this.debug = createDebugOnlyLogger('pxe:capsule-data-provider');
22
+ this.logger = createLogger('pxe:capsule-data-provider');
23
23
  }
24
24
 
25
25
  async storeCapsule(contractAddress: AztecAddress, slot: Fr, capsule: Fr[]): Promise<void> {
@@ -29,7 +29,7 @@ export class CapsuleDataProvider implements DataProvider {
29
29
  async loadCapsule(contractAddress: AztecAddress, slot: Fr): Promise<Fr[] | null> {
30
30
  const dataBuffer = await this.#capsules.getAsync(dbSlotToKey(contractAddress, slot));
31
31
  if (!dataBuffer) {
32
- this.debug(`Data not found for contract ${contractAddress.toString()} and slot ${slot.toString()}`);
32
+ this.logger.debug(`Data not found for contract ${contractAddress.toString()} and slot ${slot.toString()}`);
33
33
  return null;
34
34
  }
35
35
  const capsule: Fr[] = [];