Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
init_module.cpp
Go to the documentation of this file.
3#include "napi.h"
4
5Napi::Object Init(Napi::Env env, Napi::Object exports)
6{
7 exports.Set(Napi::String::New(env, "WorldState"), bb::nodejs::WorldStateWrapper::get_class(env));
8 exports.Set(Napi::String::New(env, "LMDBStore"), bb::nodejs::lmdb_store::LMDBStoreWrapper::get_class(env));
9 return exports;
10}
11
12// NOLINTNEXTLINE
13NODE_API_MODULE(addon, Init)
static Napi::Function get_class(Napi::Env)
Register the WorldStateAddon class with the JavaScript runtime.
static Napi::Function get_class(Napi::Env env)
Napi::Object Init(Napi::Env env, Napi::Object exports)