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-2c9fe26.nightly to 0.18.0-56ee9e3.aztec

4

nodejs/noir_wasm_bg.wasm.d.ts
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
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 init_log_level(a: number, b: number): void;
export function build_info(): number;
export function __wbindgen_export_0(a: number): number;

@@ -10,0 +10,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number): number;

/* tslint:disable */
/* eslint-disable */
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function build_info(): any;
/**
* @param {Uint8Array} bytes

@@ -17,13 +25,5 @@ * @returns {any}

* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
* @returns {CompileResult}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): any;
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function build_info(): any;
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;

@@ -52,2 +52,33 @@ export type Diagnostic = {

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;
}
);

@@ -186,3 +186,19 @@ 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);
};
/**
* @returns {any}
*/
module.exports.build_info = function() {
const ret = wasm.build_info();
return takeObject(ret);
};
function passArray8ToWasm0(arg, malloc) {

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

* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
* @returns {CompileResult}
*/

@@ -259,19 +275,3 @@ module.exports.compile = function(entry_point, contracts, dependency_graph) {

}
/**
* @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);
};
/**
* @returns {any}
*/
module.exports.build_info = function() {
const ret = wasm.build_info();
return takeObject(ret);
};
module.exports.__wbindgen_object_drop_ref = function(arg0) {

@@ -281,2 +281,7 @@ takeObject(arg0);

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

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

module.exports.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
module.exports.__wbg_constructor_e29c95824faa216c = function() {
const ret = new Object();
return addHeapObject(ret);
};

@@ -292,0 +297,0 @@

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

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

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

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

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

/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
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 init_log_level(a: number, b: number): void;
export function build_info(): number;
export function __wbindgen_export_0(a: number): number;

@@ -10,0 +10,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number): number;

/* tslint:disable */
/* eslint-disable */
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function build_info(): any;
/**
* @param {Uint8Array} bytes

@@ -17,13 +25,5 @@ * @returns {any}

* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
* @returns {CompileResult}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): any;
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function build_info(): any;
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;

@@ -52,4 +52,35 @@ export type Diagnostic = {

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;

@@ -59,7 +90,7 @@

readonly memory: WebAssembly.Memory;
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 init_log_level: (a: number, b: number) => void;
readonly build_info: () => number;
readonly __wbindgen_export_0: (a: number) => number;

@@ -66,0 +97,0 @@ readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;

@@ -184,3 +184,19 @@ import { read_file } from '@noir-lang/source-resolver';

}
/**
* @param {string} level
*/
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);
}
/**
* @returns {any}
*/
export function build_info() {
const ret = wasm.build_info();
return takeObject(ret);
}
function passArray8ToWasm0(arg, malloc) {

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

* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
* @returns {CompileResult}
*/

@@ -257,19 +273,3 @@ export function compile(entry_point, contracts, dependency_graph) {

}
/**
* @param {string} level
*/
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);
}
/**
* @returns {any}
*/
export function build_info() {
const ret = wasm.build_info();
return takeObject(ret);
}
async function __wbg_load(module, imports) {

@@ -312,2 +312,6 @@ if (typeof Response === 'function' && module instanceof Response) {

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

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

};
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
imports.wbg.__wbg_constructor_e29c95824faa216c = function() {
const ret = new Object();
return addHeapObject(ret);
};

@@ -322,0 +326,0 @@ imports.wbg.__wbg_readfile_a8c4f775fbe0578e = function() { return handleError(function (arg0, arg1, arg2) {

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