@noir-lang/noir_wasm 0.25.0 → 0.26.0

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,13 +1,13 @@
1
+ export function init_log_level(level: string): void;
2
+ export function build_info(): any;
1
3
  export function compile_program_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
2
4
  export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
3
5
  export function compile_program(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
4
6
  export function compile_contract(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
5
- export function init_log_level(level: string): void;
6
- export function build_info(): any;
7
7
  export function __wbindgen_object_drop_ref(arg0: any): void;
8
+ export function __wbg_constructor_dc2096d1a846456a(arg0: any): number;
8
9
  export function __wbindgen_is_undefined(arg0: any): boolean;
9
- export function __wbg_constructor_9418a5e735182315(): number;
10
- export function __wbg_constructor_e8f4e1ca46363e73(arg0: any): number;
10
+ export function __wbg_constructor_16652445ed5bfc27(): number;
11
11
  export function __wbg_new_abda76e883ba8a5f(): number;
12
12
  export function __wbg_stack_658279fe44541cf6(arg0: any, arg1: any): void;
13
13
  export function __wbg_error_f851667af71bcfc6(arg0: any, arg1: any): void;
@@ -1,4 +1,12 @@
1
1
  /**
2
+ * @param {string} level
3
+ */
4
+ export function init_log_level(level: string): void;
5
+ /**
6
+ * @returns {any}
7
+ */
8
+ export function build_info(): any;
9
+ /**
2
10
  * This is a method that exposes the same API as `compile`
3
11
  * But uses the Context based APi internally
4
12
  * @param {string} entry_point
@@ -31,14 +39,6 @@ export function compile_program(entry_point: string, dependency_graph: Dependenc
31
39
  */
32
40
  export function compile_contract(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
33
41
  /**
34
- * @param {string} level
35
- */
36
- export function init_log_level(level: string): void;
37
- /**
38
- * @returns {any}
39
- */
40
- export function build_info(): any;
41
- /**
42
42
  * This is a wrapper class that is wasm-bindgen compatible
43
43
  * We do not use js_name and rename it like CrateId because
44
44
  * then the impl block is not picked up in javascript.
@@ -26,28 +26,7 @@ export declare class Package {
26
26
  /**
27
27
  * Gets this package's Nargo.toml (NoirPackage)Config.
28
28
  */
29
- getPackageConfig(): {
30
- package: {
31
- name: string;
32
- type: "lib" | "contract" | "bin";
33
- entry?: string | undefined;
34
- /**
35
- * An array of sources for a package
36
- */
37
- description?: string | undefined;
38
- authors?: string[] | undefined;
39
- compiler_version?: string | undefined;
40
- backend?: string | undefined;
41
- license?: string | undefined;
42
- };
43
- dependencies?: Record<string, {
44
- git: string;
45
- tag: string;
46
- directory?: string | undefined;
47
- } | {
48
- path: string;
49
- }> | undefined;
50
- };
29
+ getPackageConfig(): import("../types/noir_package_config").PackageConfig;
51
30
  /**
52
31
  * The path to the source directory.
53
32
  */
@@ -29,18 +29,16 @@ export interface EventAbi {
29
29
  */
30
30
  fields: ABIVariable[];
31
31
  }
32
- /** The Noir function types. */
33
- export type NoirFunctionType = 'Open' | 'Secret' | 'Unconstrained';
34
32
  /**
35
33
  * The compilation result of an Noir function.
36
34
  */
37
35
  export interface NoirFunctionEntry {
38
36
  /** The name of the function. */
39
37
  name: string;
40
- /** The type of the function. */
41
- function_type: NoirFunctionType;
42
- /** Whether the function is internal. */
43
- is_internal: boolean;
38
+ /** Whether the function is unconstrained. */
39
+ is_unconstrained: boolean;
40
+ /** The custom attributes applied to the function. */
41
+ custom_attributes: string[];
44
42
  /** The ABI of the function. */
45
43
  abi: Abi;
46
44
  /** The bytecode of the function in base64. */
@@ -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-core").Plugin[];
3
+ let plugins: import("@web/dev-server-esbuild/node_modules/@web/dev-server-core").Plugin[];
4
4
  let files: string[];
5
5
  let nodeResolve: boolean;
6
6
  let rootDir: string;