@noir-lang/noir_wasm 0.21.0-fa1cf5f.nightly → 0.22.0-179c90d.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.
- package/nodejs/noir_wasm.d.ts +2 -12
- package/nodejs/noir_wasm.js +38 -59
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/nodejs/noir_wasm_bg.wasm.d.ts +1 -3
- package/package.json +9 -4
- package/web/noir_wasm.d.ts +3 -15
- package/web/noir_wasm.js +35 -58
- package/web/noir_wasm_bg.wasm +0 -0
- package/web/noir_wasm_bg.wasm.d.ts +1 -3
package/nodejs/noir_wasm.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {Uint8Array} bytes
|
|
5
|
-
* @returns {any}
|
|
6
|
-
*/
|
|
7
|
-
export function acir_read_bytes(bytes: Uint8Array): any;
|
|
8
|
-
/**
|
|
9
|
-
* @param {any} acir
|
|
10
|
-
* @returns {Uint8Array}
|
|
11
|
-
*/
|
|
12
|
-
export function acir_write_bytes(acir: any): Uint8Array;
|
|
13
|
-
/**
|
|
14
4
|
* This is a method that exposes the same API as `compile`
|
|
15
5
|
* But uses the Context based APi internally
|
|
16
6
|
* @param {string} entry_point
|
|
@@ -21,9 +11,9 @@ export function acir_write_bytes(acir: any): Uint8Array;
|
|
|
21
11
|
*/
|
|
22
12
|
export function compile_(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
|
|
23
13
|
/**
|
|
24
|
-
* @param {string}
|
|
14
|
+
* @param {string} filter
|
|
25
15
|
*/
|
|
26
|
-
export function init_log_level(
|
|
16
|
+
export function init_log_level(filter: string): void;
|
|
27
17
|
/**
|
|
28
18
|
* @returns {any}
|
|
29
19
|
*/
|
package/nodejs/noir_wasm.js
CHANGED
|
@@ -183,45 +183,6 @@ function debugString(val) {
|
|
|
183
183
|
return className;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
187
|
-
const ptr = malloc(arg.length * 1) >>> 0;
|
|
188
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
189
|
-
WASM_VECTOR_LEN = arg.length;
|
|
190
|
-
return ptr;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* @param {Uint8Array} bytes
|
|
194
|
-
* @returns {any}
|
|
195
|
-
*/
|
|
196
|
-
module.exports.acir_read_bytes = function(bytes) {
|
|
197
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
|
|
198
|
-
const len0 = WASM_VECTOR_LEN;
|
|
199
|
-
const ret = wasm.acir_read_bytes(ptr0, len0);
|
|
200
|
-
return takeObject(ret);
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
204
|
-
ptr = ptr >>> 0;
|
|
205
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @param {any} acir
|
|
209
|
-
* @returns {Uint8Array}
|
|
210
|
-
*/
|
|
211
|
-
module.exports.acir_write_bytes = function(acir) {
|
|
212
|
-
try {
|
|
213
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
214
|
-
wasm.acir_write_bytes(retptr, addHeapObject(acir));
|
|
215
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
216
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
217
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
218
|
-
wasm.__wbindgen_export_2(r0, r1 * 1);
|
|
219
|
-
return v1;
|
|
220
|
-
} finally {
|
|
221
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
|
|
225
186
|
function _assertClass(instance, klass) {
|
|
226
187
|
if (!(instance instanceof klass)) {
|
|
227
188
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -258,10 +219,10 @@ module.exports.compile_ = function(entry_point, contracts, dependency_graph, fil
|
|
|
258
219
|
};
|
|
259
220
|
|
|
260
221
|
/**
|
|
261
|
-
* @param {string}
|
|
222
|
+
* @param {string} filter
|
|
262
223
|
*/
|
|
263
|
-
module.exports.init_log_level = function(
|
|
264
|
-
const ptr0 = passStringToWasm0(
|
|
224
|
+
module.exports.init_log_level = function(filter) {
|
|
225
|
+
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
265
226
|
const len0 = WASM_VECTOR_LEN;
|
|
266
227
|
wasm.init_log_level(ptr0, len0);
|
|
267
228
|
};
|
|
@@ -369,11 +330,21 @@ class CompilerContext {
|
|
|
369
330
|
* @param {CrateId} to
|
|
370
331
|
*/
|
|
371
332
|
add_dependency_edge(crate_name, from, to) {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
333
|
+
try {
|
|
334
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
335
|
+
const ptr0 = passStringToWasm0(crate_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
336
|
+
const len0 = WASM_VECTOR_LEN;
|
|
337
|
+
_assertClass(from, CrateId);
|
|
338
|
+
_assertClass(to, CrateId);
|
|
339
|
+
wasm.compilercontext_add_dependency_edge(retptr, this.__wbg_ptr, ptr0, len0, from.__wbg_ptr, to.__wbg_ptr);
|
|
340
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
341
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
342
|
+
if (r1) {
|
|
343
|
+
throw takeObject(r0);
|
|
344
|
+
}
|
|
345
|
+
} finally {
|
|
346
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
347
|
+
}
|
|
377
348
|
}
|
|
378
349
|
/**
|
|
379
350
|
* @param {number} program_width
|
|
@@ -491,24 +462,19 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
491
462
|
takeObject(arg0);
|
|
492
463
|
};
|
|
493
464
|
|
|
494
|
-
module.exports.
|
|
465
|
+
module.exports.__wbg_constructor_a29cdb41a75eb0e8 = function(arg0) {
|
|
495
466
|
const ret = new Error(takeObject(arg0));
|
|
496
467
|
return addHeapObject(ret);
|
|
497
468
|
};
|
|
498
469
|
|
|
499
|
-
module.exports.
|
|
500
|
-
const ret = getObject(arg0) === undefined;
|
|
501
|
-
return ret;
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
module.exports.__wbg_constructor_0fbcf25c6da50731 = function() {
|
|
470
|
+
module.exports.__wbg_constructor_a3b5b211c5053ce8 = function() {
|
|
505
471
|
const ret = new Object();
|
|
506
472
|
return addHeapObject(ret);
|
|
507
473
|
};
|
|
508
474
|
|
|
509
|
-
module.exports.
|
|
510
|
-
const ret =
|
|
511
|
-
return
|
|
475
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
476
|
+
const ret = getObject(arg0) === undefined;
|
|
477
|
+
return ret;
|
|
512
478
|
};
|
|
513
479
|
|
|
514
480
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
@@ -536,6 +502,15 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
536
502
|
}
|
|
537
503
|
};
|
|
538
504
|
|
|
505
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
506
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
507
|
+
return addHeapObject(ret);
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
module.exports.__wbg_debug_e3f6a1578e6d45ca = function(arg0) {
|
|
511
|
+
console.debug(getObject(arg0));
|
|
512
|
+
};
|
|
513
|
+
|
|
539
514
|
module.exports.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
|
|
540
515
|
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
541
516
|
};
|
|
@@ -548,12 +523,16 @@ module.exports.__wbg_error_50f42b952a595a23 = function(arg0, arg1, arg2, arg3) {
|
|
|
548
523
|
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
549
524
|
};
|
|
550
525
|
|
|
526
|
+
module.exports.__wbg_info_05db236d79f1b785 = function(arg0) {
|
|
527
|
+
console.info(getObject(arg0));
|
|
528
|
+
};
|
|
529
|
+
|
|
551
530
|
module.exports.__wbg_info_24d8f53d98f12b95 = function(arg0, arg1, arg2, arg3) {
|
|
552
531
|
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
553
532
|
};
|
|
554
533
|
|
|
555
|
-
module.exports.
|
|
556
|
-
console.
|
|
534
|
+
module.exports.__wbg_warn_9bdd743e9f5fe1e0 = function(arg0) {
|
|
535
|
+
console.warn(getObject(arg0));
|
|
557
536
|
};
|
|
558
537
|
|
|
559
538
|
module.exports.__wbg_warn_8342bfbc6028193a = function(arg0, arg1, arg2, arg3) {
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function acir_read_bytes(a: number, b: number): number;
|
|
5
|
-
export function acir_write_bytes(a: number, b: number): void;
|
|
6
4
|
export function __wbg_compilercontext_free(a: number): void;
|
|
7
5
|
export function __wbg_crateid_free(a: number): void;
|
|
8
6
|
export function compilercontext_new(a: number): number;
|
|
9
7
|
export function compilercontext_process_root_crate(a: number, b: number, c: number): number;
|
|
10
8
|
export function compilercontext_process_dependency_crate(a: number, b: number, c: number): number;
|
|
11
|
-
export function compilercontext_add_dependency_edge(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
|
+
export function compilercontext_add_dependency_edge(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
12
10
|
export function compilercontext_compile_program(a: number, b: number, c: number): void;
|
|
13
11
|
export function compilercontext_compile_contract(a: number, b: number, c: number): void;
|
|
14
12
|
export function compile_(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noir-lang/noir_wasm",
|
|
3
|
-
"
|
|
3
|
+
"contributors": [
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.22.0-179c90d.nightly",
|
|
7
7
|
"license": "(MIT OR Apache-2.0)",
|
|
8
8
|
"main": "./nodejs/noir_wasm.js",
|
|
9
9
|
"types": "./web/noir_wasm.d.ts",
|
|
@@ -14,9 +14,14 @@
|
|
|
14
14
|
"package.json"
|
|
15
15
|
],
|
|
16
16
|
"sideEffects": false,
|
|
17
|
+
"homepage": "https://noir-lang.org/",
|
|
17
18
|
"repository": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
19
|
+
"url": "https://github.com/noir-lang/noir.git",
|
|
20
|
+
"directory": "compiler/wasm",
|
|
21
|
+
"type": "git"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/noir-lang/noir/issues"
|
|
20
25
|
},
|
|
21
26
|
"scripts": {
|
|
22
27
|
"build": "bash ./build.sh",
|
package/web/noir_wasm.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {Uint8Array} bytes
|
|
5
|
-
* @returns {any}
|
|
6
|
-
*/
|
|
7
|
-
export function acir_read_bytes(bytes: Uint8Array): any;
|
|
8
|
-
/**
|
|
9
|
-
* @param {any} acir
|
|
10
|
-
* @returns {Uint8Array}
|
|
11
|
-
*/
|
|
12
|
-
export function acir_write_bytes(acir: any): Uint8Array;
|
|
13
|
-
/**
|
|
14
4
|
* This is a method that exposes the same API as `compile`
|
|
15
5
|
* But uses the Context based APi internally
|
|
16
6
|
* @param {string} entry_point
|
|
@@ -21,9 +11,9 @@ export function acir_write_bytes(acir: any): Uint8Array;
|
|
|
21
11
|
*/
|
|
22
12
|
export function compile_(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
|
|
23
13
|
/**
|
|
24
|
-
* @param {string}
|
|
14
|
+
* @param {string} filter
|
|
25
15
|
*/
|
|
26
|
-
export function init_log_level(
|
|
16
|
+
export function init_log_level(filter: string): void;
|
|
27
17
|
/**
|
|
28
18
|
* @returns {any}
|
|
29
19
|
*/
|
|
@@ -152,14 +142,12 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
152
142
|
|
|
153
143
|
export interface InitOutput {
|
|
154
144
|
readonly memory: WebAssembly.Memory;
|
|
155
|
-
readonly acir_read_bytes: (a: number, b: number) => number;
|
|
156
|
-
readonly acir_write_bytes: (a: number, b: number) => void;
|
|
157
145
|
readonly __wbg_compilercontext_free: (a: number) => void;
|
|
158
146
|
readonly __wbg_crateid_free: (a: number) => void;
|
|
159
147
|
readonly compilercontext_new: (a: number) => number;
|
|
160
148
|
readonly compilercontext_process_root_crate: (a: number, b: number, c: number) => number;
|
|
161
149
|
readonly compilercontext_process_dependency_crate: (a: number, b: number, c: number) => number;
|
|
162
|
-
readonly compilercontext_add_dependency_edge: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
150
|
+
readonly compilercontext_add_dependency_edge: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
163
151
|
readonly compilercontext_compile_program: (a: number, b: number, c: number) => void;
|
|
164
152
|
readonly compilercontext_compile_contract: (a: number, b: number, c: number) => void;
|
|
165
153
|
readonly compile_: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
package/web/noir_wasm.js
CHANGED
|
@@ -180,45 +180,6 @@ function debugString(val) {
|
|
|
180
180
|
return className;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
184
|
-
const ptr = malloc(arg.length * 1) >>> 0;
|
|
185
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
186
|
-
WASM_VECTOR_LEN = arg.length;
|
|
187
|
-
return ptr;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @param {Uint8Array} bytes
|
|
191
|
-
* @returns {any}
|
|
192
|
-
*/
|
|
193
|
-
export function acir_read_bytes(bytes) {
|
|
194
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
|
|
195
|
-
const len0 = WASM_VECTOR_LEN;
|
|
196
|
-
const ret = wasm.acir_read_bytes(ptr0, len0);
|
|
197
|
-
return takeObject(ret);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
201
|
-
ptr = ptr >>> 0;
|
|
202
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* @param {any} acir
|
|
206
|
-
* @returns {Uint8Array}
|
|
207
|
-
*/
|
|
208
|
-
export function acir_write_bytes(acir) {
|
|
209
|
-
try {
|
|
210
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
211
|
-
wasm.acir_write_bytes(retptr, addHeapObject(acir));
|
|
212
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
213
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
214
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
215
|
-
wasm.__wbindgen_export_2(r0, r1 * 1);
|
|
216
|
-
return v1;
|
|
217
|
-
} finally {
|
|
218
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
183
|
function _assertClass(instance, klass) {
|
|
223
184
|
if (!(instance instanceof klass)) {
|
|
224
185
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -255,10 +216,10 @@ export function compile_(entry_point, contracts, dependency_graph, file_source_m
|
|
|
255
216
|
}
|
|
256
217
|
|
|
257
218
|
/**
|
|
258
|
-
* @param {string}
|
|
219
|
+
* @param {string} filter
|
|
259
220
|
*/
|
|
260
|
-
export function init_log_level(
|
|
261
|
-
const ptr0 = passStringToWasm0(
|
|
221
|
+
export function init_log_level(filter) {
|
|
222
|
+
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
262
223
|
const len0 = WASM_VECTOR_LEN;
|
|
263
224
|
wasm.init_log_level(ptr0, len0);
|
|
264
225
|
}
|
|
@@ -366,11 +327,21 @@ export class CompilerContext {
|
|
|
366
327
|
* @param {CrateId} to
|
|
367
328
|
*/
|
|
368
329
|
add_dependency_edge(crate_name, from, to) {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
330
|
+
try {
|
|
331
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
332
|
+
const ptr0 = passStringToWasm0(crate_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
333
|
+
const len0 = WASM_VECTOR_LEN;
|
|
334
|
+
_assertClass(from, CrateId);
|
|
335
|
+
_assertClass(to, CrateId);
|
|
336
|
+
wasm.compilercontext_add_dependency_edge(retptr, this.__wbg_ptr, ptr0, len0, from.__wbg_ptr, to.__wbg_ptr);
|
|
337
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
338
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
339
|
+
if (r1) {
|
|
340
|
+
throw takeObject(r0);
|
|
341
|
+
}
|
|
342
|
+
} finally {
|
|
343
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
344
|
+
}
|
|
374
345
|
}
|
|
375
346
|
/**
|
|
376
347
|
* @param {number} program_width
|
|
@@ -518,21 +489,17 @@ function __wbg_get_imports() {
|
|
|
518
489
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
519
490
|
takeObject(arg0);
|
|
520
491
|
};
|
|
521
|
-
imports.wbg.
|
|
492
|
+
imports.wbg.__wbg_constructor_a29cdb41a75eb0e8 = function(arg0) {
|
|
522
493
|
const ret = new Error(takeObject(arg0));
|
|
523
494
|
return addHeapObject(ret);
|
|
524
495
|
};
|
|
525
|
-
imports.wbg.
|
|
526
|
-
const ret = getObject(arg0) === undefined;
|
|
527
|
-
return ret;
|
|
528
|
-
};
|
|
529
|
-
imports.wbg.__wbg_constructor_0fbcf25c6da50731 = function() {
|
|
496
|
+
imports.wbg.__wbg_constructor_a3b5b211c5053ce8 = function() {
|
|
530
497
|
const ret = new Object();
|
|
531
498
|
return addHeapObject(ret);
|
|
532
499
|
};
|
|
533
|
-
imports.wbg.
|
|
534
|
-
const ret =
|
|
535
|
-
return
|
|
500
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
501
|
+
const ret = getObject(arg0) === undefined;
|
|
502
|
+
return ret;
|
|
536
503
|
};
|
|
537
504
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
538
505
|
const ret = new Error();
|
|
@@ -556,6 +523,13 @@ function __wbg_get_imports() {
|
|
|
556
523
|
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
|
|
557
524
|
}
|
|
558
525
|
};
|
|
526
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
527
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
528
|
+
return addHeapObject(ret);
|
|
529
|
+
};
|
|
530
|
+
imports.wbg.__wbg_debug_e3f6a1578e6d45ca = function(arg0) {
|
|
531
|
+
console.debug(getObject(arg0));
|
|
532
|
+
};
|
|
559
533
|
imports.wbg.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
|
|
560
534
|
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
561
535
|
};
|
|
@@ -565,11 +539,14 @@ function __wbg_get_imports() {
|
|
|
565
539
|
imports.wbg.__wbg_error_50f42b952a595a23 = function(arg0, arg1, arg2, arg3) {
|
|
566
540
|
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
567
541
|
};
|
|
542
|
+
imports.wbg.__wbg_info_05db236d79f1b785 = function(arg0) {
|
|
543
|
+
console.info(getObject(arg0));
|
|
544
|
+
};
|
|
568
545
|
imports.wbg.__wbg_info_24d8f53d98f12b95 = function(arg0, arg1, arg2, arg3) {
|
|
569
546
|
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
570
547
|
};
|
|
571
|
-
imports.wbg.
|
|
572
|
-
console.
|
|
548
|
+
imports.wbg.__wbg_warn_9bdd743e9f5fe1e0 = function(arg0) {
|
|
549
|
+
console.warn(getObject(arg0));
|
|
573
550
|
};
|
|
574
551
|
imports.wbg.__wbg_warn_8342bfbc6028193a = function(arg0, arg1, arg2, arg3) {
|
|
575
552
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function acir_read_bytes(a: number, b: number): number;
|
|
5
|
-
export function acir_write_bytes(a: number, b: number): void;
|
|
6
4
|
export function __wbg_compilercontext_free(a: number): void;
|
|
7
5
|
export function __wbg_crateid_free(a: number): void;
|
|
8
6
|
export function compilercontext_new(a: number): number;
|
|
9
7
|
export function compilercontext_process_root_crate(a: number, b: number, c: number): number;
|
|
10
8
|
export function compilercontext_process_dependency_crate(a: number, b: number, c: number): number;
|
|
11
|
-
export function compilercontext_add_dependency_edge(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
|
+
export function compilercontext_add_dependency_edge(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
12
10
|
export function compilercontext_compile_program(a: number, b: number, c: number): void;
|
|
13
11
|
export function compilercontext_compile_contract(a: number, b: number, c: number): void;
|
|
14
12
|
export function compile_(a: number, b: number, c: number, d: number, e: number, f: number): void;
|