Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
avm_simulate_napi.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <napi.h>
4
5namespace bb::nodejs {
6
19 public:
37 static Napi::Value simulate(const Napi::CallbackInfo& info);
38
48 static Napi::Value simulateWithHintedDbs(const Napi::CallbackInfo& info);
49
58 static Napi::Value createCancellationToken(const Napi::CallbackInfo& info);
59
69 static Napi::Value cancelSimulation(const Napi::CallbackInfo& info);
70};
71
72} // namespace bb::nodejs
NAPI wrapper for the C++ AVM simulation.
static Napi::Value simulate(const Napi::CallbackInfo &info)
NAPI function to simulate AVM execution.
static Napi::Value simulateWithHintedDbs(const Napi::CallbackInfo &info)
NAPI function to simulate AVM execution with pre-collected hints.
static Napi::Value createCancellationToken(const Napi::CallbackInfo &info)
Create a cancellation token that can be used to cancel a simulation.
static Napi::Value cancelSimulation(const Napi::CallbackInfo &info)
Cancel a simulation by signaling the provided cancellation token.
void info(Args... args)
Definition log.hpp:89