@aztec/native 3.0.0-nightly.20251024 → 3.0.0-nightly.20251026

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.
@@ -4,5 +4,13 @@ interface NativeClassCtor {
4
4
  }
5
5
  export declare const NativeWorldState: NativeClassCtor;
6
6
  export declare const NativeLMDBStore: NativeClassCtor;
7
+ /**
8
+ * AVM simulation function that uses pre-collected hints from TypeScript simulation.
9
+ * All contract data and merkle tree hints are included in the AvmCircuitInputs, so no runtime
10
+ * callbacks to TS or WS pointer are needed.
11
+ * @param inputs - Msgpack-serialized AvmCircuitInputs (AvmProvingInputs in C++) buffer
12
+ * @returns Promise resolving to msgpack-serialized simulation results buffer
13
+ */
14
+ export declare const avmSimulateWithHintedDbs: (inputs: Buffer) => Promise<Buffer>;
7
15
  export {};
8
16
  //# sourceMappingURL=native_module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"native_module.d.ts","sourceRoot":"","sources":["../src/native_module.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,UAAU,eAAe;IACvB,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,eAAe,CAAC;CAC3C;AA2BD,eAAO,MAAM,gBAAgB,EAAE,eAAyC,CAAC;AACzE,eAAO,MAAM,eAAe,EAAE,eAAwC,CAAC"}
1
+ {"version":3,"file":"native_module.d.ts","sourceRoot":"","sources":["../src/native_module.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,UAAU,eAAe;IACvB,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,eAAe,CAAC;CAC3C;AA2BD,eAAO,MAAM,gBAAgB,EAAE,eAA4D,CAAC;AAC5F,eAAO,MAAM,eAAe,EAAE,eAA2D,CAAC;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAErD,CAAC"}
@@ -19,3 +19,10 @@ function loadNativeModule() {
19
19
  const nativeModule = loadNativeModule();
20
20
  export const NativeWorldState = nativeModule.WorldState;
21
21
  export const NativeLMDBStore = nativeModule.LMDBStore;
22
+ /**
23
+ * AVM simulation function that uses pre-collected hints from TypeScript simulation.
24
+ * All contract data and merkle tree hints are included in the AvmCircuitInputs, so no runtime
25
+ * callbacks to TS or WS pointer are needed.
26
+ * @param inputs - Msgpack-serialized AvmCircuitInputs (AvmProvingInputs in C++) buffer
27
+ * @returns Promise resolving to msgpack-serialized simulation results buffer
28
+ */ export const avmSimulateWithHintedDbs = nativeModule.avmSimulateWithHintedDbs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/native",
3
- "version": "3.0.0-nightly.20251024",
3
+ "version": "3.0.0-nightly.20251026",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js"
@@ -19,7 +19,7 @@
19
19
  "./package.local.json"
20
20
  ],
21
21
  "dependencies": {
22
- "@aztec/foundation": "3.0.0-nightly.20251024",
22
+ "@aztec/foundation": "3.0.0-nightly.20251026",
23
23
  "msgpackr": "^1.11.2"
24
24
  },
25
25
  "devDependencies": {
@@ -31,7 +31,18 @@ function loadNativeModule(): Record<string, NativeClassCtor> {
31
31
  }
32
32
  }
33
33
 
34
- const nativeModule: Record<string, NativeClassCtor> = loadNativeModule();
35
-
36
- export const NativeWorldState: NativeClassCtor = nativeModule.WorldState;
37
- export const NativeLMDBStore: NativeClassCtor = nativeModule.LMDBStore;
34
+ const nativeModule: Record<string, NativeClassCtor | Function> = loadNativeModule();
35
+
36
+ export const NativeWorldState: NativeClassCtor = nativeModule.WorldState as NativeClassCtor;
37
+ export const NativeLMDBStore: NativeClassCtor = nativeModule.LMDBStore as NativeClassCtor;
38
+
39
+ /**
40
+ * AVM simulation function that uses pre-collected hints from TypeScript simulation.
41
+ * All contract data and merkle tree hints are included in the AvmCircuitInputs, so no runtime
42
+ * callbacks to TS or WS pointer are needed.
43
+ * @param inputs - Msgpack-serialized AvmCircuitInputs (AvmProvingInputs in C++) buffer
44
+ * @returns Promise resolving to msgpack-serialized simulation results buffer
45
+ */
46
+ export const avmSimulateWithHintedDbs: (inputs: Buffer) => Promise<Buffer> = nativeModule.avmSimulateWithHintedDbs as (
47
+ inputs: Buffer,
48
+ ) => Promise<Buffer>;