@noir-lang/noir_wasm 0.18.0-56ee9e3.aztec → 0.18.0-6ca33a2.aztec

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,14 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {string} level
5
- */
6
- export function init_log_level(level: string): void;
7
- /**
8
- * @returns {any}
9
- */
10
- export function build_info(): any;
11
- /**
12
4
  * @param {Uint8Array} bytes
13
5
  * @returns {any}
14
6
  */
@@ -19,6 +11,14 @@ export function acir_read_bytes(bytes: Uint8Array): any;
19
11
  */
20
12
  export function acir_write_bytes(acir: any): Uint8Array;
21
13
  /**
14
+ * @param {string} level
15
+ */
16
+ export function init_log_level(level: string): void;
17
+ /**
18
+ * @returns {any}
19
+ */
20
+ export function build_info(): any;
21
+ /**
22
22
  * @param {string} entry_point
23
23
  * @param {boolean | undefined} contracts
24
24
  * @param {DependencyGraph | undefined} dependency_graph
@@ -66,6 +66,7 @@ export type CompiledProgram = {
66
66
  export type DebugArtifact = {
67
67
  debug_symbols: Array<any>;
68
68
  file_map: Record<number, any>;
69
+ warnings: Array<any>;
69
70
  };
70
71
 
71
72
  export type CompileResult = (
@@ -183,22 +183,6 @@ function debugString(val) {
183
183
  // TODO we could test for more things here, like `Set`s and `Map`s.
184
184
  return className;
185
185
  }
186
- /**
187
- * @param {string} level
188
- */
189
- module.exports.init_log_level = function(level) {
190
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
191
- const len0 = WASM_VECTOR_LEN;
192
- wasm.init_log_level(ptr0, len0);
193
- };
194
-
195
- /**
196
- * @returns {any}
197
- */
198
- module.exports.build_info = function() {
199
- const ret = wasm.build_info();
200
- return takeObject(ret);
201
- };
202
186
 
203
187
  function passArray8ToWasm0(arg, malloc) {
204
188
  const ptr = malloc(arg.length * 1) >>> 0;
@@ -239,6 +223,23 @@ module.exports.acir_write_bytes = function(acir) {
239
223
  }
240
224
  };
241
225
 
226
+ /**
227
+ * @param {string} level
228
+ */
229
+ module.exports.init_log_level = function(level) {
230
+ const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
231
+ const len0 = WASM_VECTOR_LEN;
232
+ wasm.init_log_level(ptr0, len0);
233
+ };
234
+
235
+ /**
236
+ * @returns {any}
237
+ */
238
+ module.exports.build_info = function() {
239
+ const ret = wasm.build_info();
240
+ return takeObject(ret);
241
+ };
242
+
242
243
  /**
243
244
  * @param {string} entry_point
244
245
  * @param {boolean | undefined} contracts
@@ -275,16 +276,16 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
275
276
  takeObject(arg0);
276
277
  };
277
278
 
278
- module.exports.__wbindgen_is_undefined = function(arg0) {
279
- const ret = getObject(arg0) === undefined;
280
- return ret;
281
- };
282
-
283
279
  module.exports.__wbg_constructor_bc58db5a3b38f16c = function(arg0) {
284
280
  const ret = new Error(takeObject(arg0));
285
281
  return addHeapObject(ret);
286
282
  };
287
283
 
284
+ module.exports.__wbindgen_is_undefined = function(arg0) {
285
+ const ret = getObject(arg0) === undefined;
286
+ return ret;
287
+ };
288
+
288
289
  module.exports.__wbg_constructor_e29c95824faa216c = function() {
289
290
  const ret = new Object();
290
291
  return addHeapObject(ret);
Binary file
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function init_log_level(a: number, b: number): void;
5
- export function build_info(): number;
6
4
  export function acir_read_bytes(a: number, b: number): number;
7
5
  export function acir_write_bytes(a: number, b: number): void;
6
+ export function init_log_level(a: number, b: number): void;
7
+ export function build_info(): number;
8
8
  export function compile(a: number, b: number, c: number, d: number, e: number): void;
9
9
  export function __wbindgen_export_0(a: number): number;
10
10
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "The Noir Team <team@noir-lang.org>"
5
5
  ],
6
- "version": "0.18.0-56ee9e3.aztec",
6
+ "version": "0.18.0-6ca33a2.aztec",
7
7
  "license": "(MIT OR Apache-2.0)",
8
8
  "main": "./nodejs/noir_wasm.js",
9
9
  "types": "./web/noir_wasm.d.ts",
@@ -31,7 +31,7 @@
31
31
  "install:from:nix": "yarn clean && yarn build:nix && cp -rL ./result/noir_wasm/nodejs ./ && cp -rL ./result/noir_wasm/web ./"
32
32
  },
33
33
  "peerDependencies": {
34
- "@noir-lang/source-resolver": "0.18.0-56ee9e3.aztec"
34
+ "@noir-lang/source-resolver": "0.18.0-6ca33a2.aztec"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@esm-bundle/chai": "^4.3.4-fix.0",
@@ -1,14 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {string} level
5
- */
6
- export function init_log_level(level: string): void;
7
- /**
8
- * @returns {any}
9
- */
10
- export function build_info(): any;
11
- /**
12
4
  * @param {Uint8Array} bytes
13
5
  * @returns {any}
14
6
  */
@@ -19,6 +11,14 @@ export function acir_read_bytes(bytes: Uint8Array): any;
19
11
  */
20
12
  export function acir_write_bytes(acir: any): Uint8Array;
21
13
  /**
14
+ * @param {string} level
15
+ */
16
+ export function init_log_level(level: string): void;
17
+ /**
18
+ * @returns {any}
19
+ */
20
+ export function build_info(): any;
21
+ /**
22
22
  * @param {string} entry_point
23
23
  * @param {boolean | undefined} contracts
24
24
  * @param {DependencyGraph | undefined} dependency_graph
@@ -66,6 +66,7 @@ export type CompiledProgram = {
66
66
  export type DebugArtifact = {
67
67
  debug_symbols: Array<any>;
68
68
  file_map: Record<number, any>;
69
+ warnings: Array<any>;
69
70
  };
70
71
 
71
72
  export type CompileResult = (
@@ -85,10 +86,10 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
85
86
 
86
87
  export interface InitOutput {
87
88
  readonly memory: WebAssembly.Memory;
88
- readonly init_log_level: (a: number, b: number) => void;
89
- readonly build_info: () => number;
90
89
  readonly acir_read_bytes: (a: number, b: number) => number;
91
90
  readonly acir_write_bytes: (a: number, b: number) => void;
91
+ readonly init_log_level: (a: number, b: number) => void;
92
+ readonly build_info: () => number;
92
93
  readonly compile: (a: number, b: number, c: number, d: number, e: number) => void;
93
94
  readonly __wbindgen_export_0: (a: number) => number;
94
95
  readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
package/web/noir_wasm.js CHANGED
@@ -181,22 +181,6 @@ function debugString(val) {
181
181
  // TODO we could test for more things here, like `Set`s and `Map`s.
182
182
  return className;
183
183
  }
184
- /**
185
- * @param {string} level
186
- */
187
- export function init_log_level(level) {
188
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
189
- const len0 = WASM_VECTOR_LEN;
190
- wasm.init_log_level(ptr0, len0);
191
- }
192
-
193
- /**
194
- * @returns {any}
195
- */
196
- export function build_info() {
197
- const ret = wasm.build_info();
198
- return takeObject(ret);
199
- }
200
184
 
201
185
  function passArray8ToWasm0(arg, malloc) {
202
186
  const ptr = malloc(arg.length * 1) >>> 0;
@@ -237,6 +221,23 @@ export function acir_write_bytes(acir) {
237
221
  }
238
222
  }
239
223
 
224
+ /**
225
+ * @param {string} level
226
+ */
227
+ export function init_log_level(level) {
228
+ const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
229
+ const len0 = WASM_VECTOR_LEN;
230
+ wasm.init_log_level(ptr0, len0);
231
+ }
232
+
233
+ /**
234
+ * @returns {any}
235
+ */
236
+ export function build_info() {
237
+ const ret = wasm.build_info();
238
+ return takeObject(ret);
239
+ }
240
+
240
241
  /**
241
242
  * @param {string} entry_point
242
243
  * @param {boolean | undefined} contracts
@@ -306,14 +307,14 @@ function __wbg_get_imports() {
306
307
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
307
308
  takeObject(arg0);
308
309
  };
309
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
310
- const ret = getObject(arg0) === undefined;
311
- return ret;
312
- };
313
310
  imports.wbg.__wbg_constructor_bc58db5a3b38f16c = function(arg0) {
314
311
  const ret = new Error(takeObject(arg0));
315
312
  return addHeapObject(ret);
316
313
  };
314
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
315
+ const ret = getObject(arg0) === undefined;
316
+ return ret;
317
+ };
317
318
  imports.wbg.__wbg_constructor_e29c95824faa216c = function() {
318
319
  const ret = new Object();
319
320
  return addHeapObject(ret);
Binary file
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function init_log_level(a: number, b: number): void;
5
- export function build_info(): number;
6
4
  export function acir_read_bytes(a: number, b: number): number;
7
5
  export function acir_write_bytes(a: number, b: number): void;
6
+ export function init_log_level(a: number, b: number): void;
7
+ export function build_info(): number;
8
8
  export function compile(a: number, b: number, c: number, d: number, e: number): void;
9
9
  export function __wbindgen_export_0(a: number): number;
10
10
  export function __wbindgen_export_1(a: number, b: number, c: number): number;