Skip to main content
Version: dev

noir_wasm

Interfaces​

ContractCompilationArtifacts​

The compilation artifacts of a given contract.

Properties​

PropertyTypeDescription
contractContractArtifactThe compiled contract.
warningsunknown[]Compilation warnings.

ProgramCompilationArtifacts​

The compilation artifacts of a given program.

Properties​

PropertyTypeDescription
namestringnot part of the compilation output, injected later
programProgramArtifactThe compiled contract.
warningsunknown[]Compilation warnings.

Variables​

createFileManager​

const createFileManager: (dataDir) => FileManager = createNodejsFileManager;

Creates a new FileManager instance based on fs in node and memfs in the browser (via webpack alias)

Parameters​

ParameterTypeDescription
dataDirstringroot of the file system

Returns​

FileManager

Functions​

FunctionDescription
compileCompiles a Noir project
compile_contractCompiles a Noir project
inflateDebugSymbolsDecompresses and decodes the debug symbols

References​

compile_program​

Renames and re-exports compile