Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
init_module.cpp
Go to the documentation of this file.
1
#include "
barretenberg/nodejs_module/lmdb_store/lmdb_store_wrapper.hpp
"
2
#include "
barretenberg/nodejs_module/world_state/world_state.hpp
"
3
#include "napi.h"
4
5
Napi::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
13
NODE_API_MODULE(addon,
Init
)
bb::nodejs::WorldStateWrapper::get_class
static Napi::Function get_class(Napi::Env)
Register the WorldStateAddon class with the JavaScript runtime.
Definition
world_state.cpp:927
bb::nodejs::lmdb_store::LMDBStoreWrapper::get_class
static Napi::Function get_class(Napi::Env env)
Definition
lmdb_store_wrapper.cpp:85
Init
Napi::Object Init(Napi::Env env, Napi::Object exports)
Definition
init_module.cpp:5
lmdb_store_wrapper.hpp
world_state.hpp
src
barretenberg
nodejs_module
init_module.cpp
Generated by
1.9.8