New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@noir-lang/noir_wasm

Package Overview
Dependencies
Maintainers
1
Versions
413
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noir-lang/noir_wasm - npm Package Compare versions

Comparing version 0.18.0-56ee9e3.aztec to 0.18.0-778e620.nightly

10

nodejs/noir_wasm_bg.wasm.d.ts
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function acir_read_bytes(a: number, b: number): number;
export function acir_write_bytes(a: number, b: number): void;
export function init_log_level(a: number, b: number): void;
export function build_info(): number;
export function acir_read_bytes(a: number, b: number): number;
export function acir_write_bytes(a: number, b: number): void;
export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function __wbindgen_export_0(a: number): number;
export function __wbindgen_export_1(a: number, b: number, c: number): number;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_export_2(a: number, b: number): void;
export function __wbindgen_export_3(a: number): void;
export function __wbindgen_export_2(a: number): void;
export function __wbindgen_export_3(a: number, b: number): void;
/* tslint:disable */
/* eslint-disable */
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
*/
export function build_info(): any;
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): any;
/**

@@ -22,9 +21,17 @@ * @param {Uint8Array} bytes

/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {CompileResult}
* @param {string} level
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function build_info(): any;
export type DependencyGraph = {
root_dependencies: readonly string[];
library_dependencies: Readonly<Record<string, readonly string[]>>;
}
export type Diagnostic = {

@@ -46,39 +53,1 @@ message: string;

export type DependencyGraph = {
root_dependencies: readonly string[];
library_dependencies: Readonly<Record<string, readonly string[]>>;
}
export type CompiledContract = {
noir_version: string;
name: string;
backend: string;
functions: Array<any>;
events: Array<any>;
};
export type CompiledProgram = {
noir_version: string;
backend: string;
abi: any;
bytecode: string;
}
export type DebugArtifact = {
debug_symbols: Array<any>;
file_map: Record<number, any>;
};
export type CompileResult = (
| {
contract: CompiledContract;
debug: DebugArtifact;
}
| {
program: CompiledProgram;
debug: DebugArtifact;
}
);

@@ -187,18 +187,33 @@ let imports = {};

/**
* @param {string} level
*/
module.exports.init_log_level = function(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
};
/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
*/
module.exports.build_info = function() {
const ret = wasm.build_info();
return takeObject(ret);
module.exports.compile = function(entry_point, contracts, dependency_graph) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph));
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return takeObject(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
};
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_2(addHeapObject(e));
}
}
function passArray8ToWasm0(arg, malloc) {

@@ -236,3 +251,3 @@ const ptr = malloc(arg.length * 1) >>> 0;

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1);
wasm.__wbindgen_export_3(r0, r1 * 1);
return v1;

@@ -245,32 +260,17 @@ } finally {

/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {CompileResult}
* @param {string} level
*/
module.exports.compile = function(entry_point, contracts, dependency_graph) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph));
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return takeObject(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
module.exports.init_log_level = function(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
};
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_3(addHeapObject(e));
}
}
/**
* @returns {any}
*/
module.exports.build_info = function() {
const ret = wasm.build_info();
return takeObject(ret);
};

@@ -281,7 +281,2 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {

module.exports.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
};
module.exports.__wbg_constructor_bc58db5a3b38f16c = function(arg0) {

@@ -292,7 +287,2 @@ const ret = new Error(takeObject(arg0));

module.exports.__wbg_constructor_e29c95824faa216c = function() {
const ret = new Object();
return addHeapObject(ret);
};
module.exports.__wbg_readfile_a8c4f775fbe0578e = function() { return handleError(function (arg0, arg1, arg2) {

@@ -306,2 +296,7 @@ const ret = read_file(getStringFromWasm0(arg1, arg2));

module.exports.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
};
module.exports.__wbindgen_string_new = function(arg0, arg1) {

@@ -333,3 +328,3 @@ const ret = getStringFromWasm0(arg0, arg1);

} finally {
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
wasm.__wbindgen_export_3(deferred0_0, deferred0_1);
}

@@ -336,0 +331,0 @@ };

@@ -6,3 +6,3 @@ {

],
"version": "0.18.0-56ee9e3.aztec",
"version": "0.18.0-778e620.nightly",
"license": "(MIT OR Apache-2.0)",

@@ -35,3 +35,3 @@ "main": "./nodejs/noir_wasm.js",

"peerDependencies": {
"@noir-lang/source-resolver": "0.18.0-56ee9e3.aztec"
"@noir-lang/source-resolver": "0.18.0-778e620.nightly"
},

@@ -38,0 +38,0 @@ "devDependencies": {

/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function acir_read_bytes(a: number, b: number): number;
export function acir_write_bytes(a: number, b: number): void;
export function init_log_level(a: number, b: number): void;
export function build_info(): number;
export function acir_read_bytes(a: number, b: number): number;
export function acir_write_bytes(a: number, b: number): void;
export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function __wbindgen_export_0(a: number): number;
export function __wbindgen_export_1(a: number, b: number, c: number): number;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_export_2(a: number, b: number): void;
export function __wbindgen_export_3(a: number): void;
export function __wbindgen_export_2(a: number): void;
export function __wbindgen_export_3(a: number, b: number): void;
/* tslint:disable */
/* eslint-disable */
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
*/
export function build_info(): any;
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): any;
/**

@@ -22,9 +21,17 @@ * @param {Uint8Array} bytes

/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {CompileResult}
* @param {string} level
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function build_info(): any;
export type DependencyGraph = {
root_dependencies: readonly string[];
library_dependencies: Readonly<Record<string, readonly string[]>>;
}
export type Diagnostic = {

@@ -47,40 +54,2 @@ message: string;

export type DependencyGraph = {
root_dependencies: readonly string[];
library_dependencies: Readonly<Record<string, readonly string[]>>;
}
export type CompiledContract = {
noir_version: string;
name: string;
backend: string;
functions: Array<any>;
events: Array<any>;
};
export type CompiledProgram = {
noir_version: string;
backend: string;
abi: any;
bytecode: string;
}
export type DebugArtifact = {
debug_symbols: Array<any>;
file_map: Record<number, any>;
};
export type CompileResult = (
| {
contract: CompiledContract;
debug: DebugArtifact;
}
| {
program: CompiledProgram;
debug: DebugArtifact;
}
);
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

@@ -90,12 +59,12 @@

readonly memory: WebAssembly.Memory;
readonly compile: (a: number, b: number, c: number, d: number, e: number) => void;
readonly acir_read_bytes: (a: number, b: number) => number;
readonly acir_write_bytes: (a: number, b: number) => void;
readonly init_log_level: (a: number, b: number) => void;
readonly build_info: () => number;
readonly acir_read_bytes: (a: number, b: number) => number;
readonly acir_write_bytes: (a: number, b: number) => void;
readonly compile: (a: number, b: number, c: number, d: number, e: number) => void;
readonly __wbindgen_export_0: (a: number) => number;
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_export_2: (a: number, b: number) => void;
readonly __wbindgen_export_3: (a: number) => void;
readonly __wbindgen_export_2: (a: number) => void;
readonly __wbindgen_export_3: (a: number, b: number) => void;
}

@@ -102,0 +71,0 @@

@@ -185,16 +185,31 @@ import { read_file } from '@noir-lang/source-resolver';

/**
* @param {string} level
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
*/
export function init_log_level(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
export function compile(entry_point, contracts, dependency_graph) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph));
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return takeObject(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}
/**
* @returns {any}
*/
export function build_info() {
const ret = wasm.build_info();
return takeObject(ret);
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_2(addHeapObject(e));
}
}

@@ -234,3 +249,3 @@

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1);
wasm.__wbindgen_export_3(r0, r1 * 1);
return v1;

@@ -243,31 +258,16 @@ } finally {

/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {CompileResult}
* @param {string} level
*/
export function compile(entry_point, contracts, dependency_graph) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph));
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return takeObject(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
export function init_log_level(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_3(addHeapObject(e));
}
/**
* @returns {any}
*/
export function build_info() {
const ret = wasm.build_info();
return takeObject(ret);
}

@@ -312,6 +312,2 @@

};
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
};
imports.wbg.__wbg_constructor_bc58db5a3b38f16c = function(arg0) {

@@ -321,6 +317,2 @@ const ret = new Error(takeObject(arg0));

};
imports.wbg.__wbg_constructor_e29c95824faa216c = function() {
const ret = new Object();
return addHeapObject(ret);
};
imports.wbg.__wbg_readfile_a8c4f775fbe0578e = function() { return handleError(function (arg0, arg1, arg2) {

@@ -333,2 +325,6 @@ const ret = read_file(getStringFromWasm0(arg1, arg2));

}, arguments) };
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {

@@ -357,3 +353,3 @@ const ret = getStringFromWasm0(arg0, arg1);

} finally {
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
wasm.__wbindgen_export_3(deferred0_0, deferred0_1);
}

@@ -360,0 +356,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc