@noir-lang/noir_wasm 1.0.0-beta.3-5a3d2bc.nightly → 1.0.0-beta.3-8e0e5ab.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/dist/node/index_bg.wasm
CHANGED
|
Binary file
|
package/dist/node/main.js
CHANGED
|
@@ -192,19 +192,17 @@ function takeFromExternrefTable0(idx) {
|
|
|
192
192
|
return value;
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
|
-
* This is a method that exposes the same API as `compile`
|
|
196
|
-
* But uses the Context based APi internally
|
|
197
195
|
* @param {string} entry_point
|
|
198
196
|
* @param {DependencyGraph | null | undefined} dependency_graph
|
|
199
197
|
* @param {PathToFileSourceMap} file_source_map
|
|
200
198
|
* @returns {ProgramCompileResult}
|
|
201
199
|
*/
|
|
202
|
-
module.exports.
|
|
200
|
+
module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
|
|
203
201
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
204
202
|
const len0 = WASM_VECTOR_LEN;
|
|
205
203
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
206
204
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
207
|
-
const ret = wasm.
|
|
205
|
+
const ret = wasm.compile_program(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
|
|
208
206
|
if (ret[2]) {
|
|
209
207
|
throw takeFromExternrefTable0(ret[1]);
|
|
210
208
|
}
|
|
@@ -212,19 +210,17 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
|
|
|
212
210
|
};
|
|
213
211
|
|
|
214
212
|
/**
|
|
215
|
-
* This is a method that exposes the same API as `compile`
|
|
216
|
-
* But uses the Context based APi internally
|
|
217
213
|
* @param {string} entry_point
|
|
218
214
|
* @param {DependencyGraph | null | undefined} dependency_graph
|
|
219
215
|
* @param {PathToFileSourceMap} file_source_map
|
|
220
216
|
* @returns {ContractCompileResult}
|
|
221
217
|
*/
|
|
222
|
-
module.exports.
|
|
218
|
+
module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
|
|
223
219
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
224
220
|
const len0 = WASM_VECTOR_LEN;
|
|
225
221
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
226
222
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
227
|
-
const ret = wasm.
|
|
223
|
+
const ret = wasm.compile_contract(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
|
|
228
224
|
if (ret[2]) {
|
|
229
225
|
throw takeFromExternrefTable0(ret[1]);
|
|
230
226
|
}
|
|
@@ -249,17 +245,19 @@ module.exports.build_info = function() {
|
|
|
249
245
|
};
|
|
250
246
|
|
|
251
247
|
/**
|
|
248
|
+
* This is a method that exposes the same API as `compile`
|
|
249
|
+
* But uses the Context based APi internally
|
|
252
250
|
* @param {string} entry_point
|
|
253
251
|
* @param {DependencyGraph | null | undefined} dependency_graph
|
|
254
252
|
* @param {PathToFileSourceMap} file_source_map
|
|
255
253
|
* @returns {ProgramCompileResult}
|
|
256
254
|
*/
|
|
257
|
-
module.exports.
|
|
255
|
+
module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
|
|
258
256
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
259
257
|
const len0 = WASM_VECTOR_LEN;
|
|
260
258
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
261
259
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
262
|
-
const ret = wasm.
|
|
260
|
+
const ret = wasm.compile_program_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
|
|
263
261
|
if (ret[2]) {
|
|
264
262
|
throw takeFromExternrefTable0(ret[1]);
|
|
265
263
|
}
|
|
@@ -267,17 +265,19 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
|
|
|
267
265
|
};
|
|
268
266
|
|
|
269
267
|
/**
|
|
268
|
+
* This is a method that exposes the same API as `compile`
|
|
269
|
+
* But uses the Context based APi internally
|
|
270
270
|
* @param {string} entry_point
|
|
271
271
|
* @param {DependencyGraph | null | undefined} dependency_graph
|
|
272
272
|
* @param {PathToFileSourceMap} file_source_map
|
|
273
273
|
* @returns {ContractCompileResult}
|
|
274
274
|
*/
|
|
275
|
-
module.exports.
|
|
275
|
+
module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
|
|
276
276
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
277
277
|
const len0 = WASM_VECTOR_LEN;
|
|
278
278
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
279
279
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
280
|
-
const ret = wasm.
|
|
280
|
+
const ret = wasm.compile_contract_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
|
|
281
281
|
if (ret[2]) {
|
|
282
282
|
throw takeFromExternrefTable0(ret[1]);
|
|
283
283
|
}
|