@noir-lang/noir_wasm 1.0.0-beta.3-7000792.nightly → 1.0.0-beta.4-3fb324e.nightly

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,9 +4,9 @@ export function init_log_level(level: string): void;
4
4
  export function build_info(): any;
5
5
  export function compile_program_(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
6
6
  export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
7
- export function __wbg_constructor_84b51f8183439483(): Object;
8
- export function __wbg_constructor_a70e1aaea07e80fd(): Object;
9
- export function __wbg_constructor_dcd6c3e173d3b88b(arg0: any): Error;
7
+ export function __wbg_constructor_0ff2131ceea4cfb0(arg0: any): Error;
8
+ export function __wbg_constructor_239bf9e0fa000b32(): Object;
9
+ export function __wbg_constructor_b023a49b9a95d90c(): Object;
10
10
  export function __wbg_debug_3cb59063b29f58c1(arg0: any): void;
11
11
  export function __wbg_debug_e17b51583ca6a632(arg0: any, arg1: any, arg2: any, arg3: any): void;
12
12
  export function __wbg_error_524f506f44df1645(arg0: any): void;
@@ -26,7 +26,25 @@ export declare class Package {
26
26
  /**
27
27
  * Gets this package's Nargo.toml (NoirPackage)Config.
28
28
  */
29
- getPackageConfig(): import("../types/noir_package_config").PackageConfig;
29
+ getPackageConfig(): {
30
+ package: {
31
+ name: string;
32
+ type: "lib" | "contract" | "bin";
33
+ entry?: string;
34
+ description?: string;
35
+ authors?: string[];
36
+ compiler_version
37
+ /**
38
+ * The source path, taking into account modules and aliases. Eg: mylib/mod/mysource.nr
39
+ */
40
+ ? /**
41
+ * The source path, taking into account modules and aliases. Eg: mylib/mod/mysource.nr
42
+ */: string;
43
+ backend?: string;
44
+ license?: string;
45
+ };
46
+ dependencies?: Record<string, import("../types/noir_package_config").GitDependencyConfig | import("../types/noir_package_config").LocalDependencyConfig>;
47
+ };
30
48
  /**
31
49
  * The path to the source directory.
32
50
  */
@@ -122,11 +122,16 @@ export interface SourceCodeLocation {
122
122
  }
123
123
  /**
124
124
  * The location of an opcode in the bytecode.
125
- * It's a string of the form `{acirIndex}` or `{acirIndex}:{brilligIndex}`.
126
125
  */
127
- export type OpcodeLocation = string;
126
+ export type OpcodeLocation = number;
128
127
  export type BrilligFunctionId = number;
129
128
  export type OpcodeToLocationsMap = Record<OpcodeLocation, SourceCodeLocation[]>;
129
+ export interface LocationNodeDebugInfo {
130
+ value: SourceCodeLocation;
131
+ }
132
+ export interface LocationTree {
133
+ locations: Array<LocationNodeDebugInfo>;
134
+ }
130
135
  /**
131
136
  * The debug information for a given function.
132
137
  */
@@ -134,7 +139,7 @@ export interface DebugInfo {
134
139
  /**
135
140
  * A map of the opcode location to the source code location.
136
141
  */
137
- locations: OpcodeToLocationsMap;
142
+ location_tree: LocationTree;
138
143
  /**
139
144
  * For each Brillig function, we have a map of the opcode location to the source code location.
140
145
  */
@@ -1,6 +1,6 @@
1
1
  declare namespace _default {
2
2
  let browsers: import("@web/test-runner-playwright").PlaywrightLauncher[];
3
- let plugins: import("@web/dev-server-esbuild/node_modules/@web/dev-server-core").Plugin[];
3
+ let plugins: any[];
4
4
  let files: string[];
5
5
  let nodeResolve: boolean;
6
6
  let rootDir: string;