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/avm_simulate/avm_simulate_napi.hpp
"
2
#include "
barretenberg/nodejs_module/lmdb_store/lmdb_store_wrapper.hpp
"
3
#include "
barretenberg/nodejs_module/msgpack_client/msgpack_client_async.hpp
"
4
#include "
barretenberg/nodejs_module/msgpack_client/msgpack_client_wrapper.hpp
"
5
#include "
barretenberg/nodejs_module/world_state/world_state.hpp
"
6
#include "napi.h"
7
8
Napi::Object
Init
(Napi::Env env, Napi::Object exports)
9
{
10
exports.Set(Napi::String::New(env,
"WorldState"
),
bb::nodejs::WorldStateWrapper::get_class
(env));
11
exports.Set(Napi::String::New(env,
"LMDBStore"
),
bb::nodejs::lmdb_store::LMDBStoreWrapper::get_class
(env));
12
exports.Set(Napi::String::New(env,
"MsgpackClient"
),
13
bb::nodejs::msgpack_client::MsgpackClientWrapper::get_class
(env));
14
exports.Set(Napi::String::New(env,
"MsgpackClientAsync"
),
15
bb::nodejs::msgpack_client::MsgpackClientAsync::get_class
(env));
16
exports.Set(Napi::String::New(env,
"avmSimulate"
), Napi::Function::New(env,
bb::nodejs::AvmSimulateNapi::simulate
));
17
exports.Set(Napi::String::New(env,
"avmSimulateWithHintedDbs"
),
18
Napi::Function::New(env,
bb::nodejs::AvmSimulateNapi::simulateWithHintedDbs
));
19
return
exports;
20
}
21
22
// NOLINTNEXTLINE
23
NODE_API_MODULE(addon,
Init
)
avm_simulate_napi.hpp
bb::nodejs::AvmSimulateNapi::simulate
static Napi::Value simulate(const Napi::CallbackInfo &info)
NAPI function to simulate AVM execution.
Definition
avm_simulate_napi.cpp:115
bb::nodejs::AvmSimulateNapi::simulateWithHintedDbs
static Napi::Value simulateWithHintedDbs(const Napi::CallbackInfo &info)
NAPI function to simulate AVM execution with pre-collected hints.
Definition
avm_simulate_napi.cpp:235
bb::nodejs::WorldStateWrapper::get_class
static Napi::Function get_class(Napi::Env)
Register the WorldStateAddon class with the JavaScript runtime.
Definition
world_state.cpp:940
bb::nodejs::lmdb_store::LMDBStoreWrapper::get_class
static Napi::Function get_class(Napi::Env env)
Definition
lmdb_store_wrapper.cpp:84
bb::nodejs::msgpack_client::MsgpackClientAsync::get_class
static Napi::Function get_class(Napi::Env env)
Definition
msgpack_client_async.cpp:160
bb::nodejs::msgpack_client::MsgpackClientWrapper::get_class
static Napi::Function get_class(Napi::Env env)
Definition
msgpack_client_wrapper.cpp:91
Init
Napi::Object Init(Napi::Env env, Napi::Object exports)
Definition
init_module.cpp:8
lmdb_store_wrapper.hpp
msgpack_client_async.hpp
msgpack_client_wrapper.hpp
world_state.hpp
src
barretenberg
nodejs_module
init_module.cpp
Generated by
1.9.8