|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Manages the interaction between the JavaScript runtime and the WorldState class. More...
#include <world_state.hpp>
Public Member Functions | |
| WorldStateWrapper (const Napi::CallbackInfo &) | |
| Napi::Value | call (const Napi::CallbackInfo &) |
| The only instance method exposed to JavaScript. Takes a msgpack Message and returns a Promise. | |
| Napi::Value | getHandle (const Napi::CallbackInfo &) |
| Get a NAPI External handle to the underlying WorldState pointer. This allows other NAPI functions to access the WorldState instance directly. | |
Static Public Member Functions | |
| static Napi::Function | get_class (Napi::Env) |
| Register the WorldStateAddon class with the JavaScript runtime. | |
Private Member Functions | |
| bool | get_tree_info (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | get_state_reference (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | get_initial_state_reference (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | get_leaf_value (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | get_leaf_preimage (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | get_sibling_path (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | get_block_numbers_for_leaf_indices (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | find_leaf_indices (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | find_low_leaf (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | find_sibling_paths (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | append_leaves (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | batch_insert (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | sequential_insert (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | update_archive (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | commit (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | rollback (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | sync_block (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | create_fork (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | delete_fork (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | close (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | set_finalized (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | unwind (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | remove_historical (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | get_status (msgpack::object &obj, msgpack::sbuffer &buffer) const |
| bool | checkpoint (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | commit_checkpoint (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | revert_checkpoint (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | commit_all_checkpoints_to (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | revert_all_checkpoints_to (msgpack::object &obj, msgpack::sbuffer &buffer) |
| bool | copy_stores (msgpack::object &obj, msgpack::sbuffer &buffer) |
Private Attributes | |
| std::unique_ptr< bb::world_state::WorldState > | _ws |
| bb::messaging::MessageDispatcher | _dispatcher |
Manages the interaction between the JavaScript runtime and the WorldState class.
Definition at line 16 of file world_state.hpp.
| WorldStateWrapper::WorldStateWrapper | ( | const Napi::CallbackInfo & | info | ) |
Definition at line 36 of file world_state.cpp.
|
private |
Definition at line 609 of file world_state.cpp.
|
private |
Definition at line 646 of file world_state.cpp.
| Napi::Value WorldStateWrapper::call | ( | const Napi::CallbackInfo & | info | ) |
The only instance method exposed to JavaScript. Takes a msgpack Message and returns a Promise.
Definition at line 300 of file world_state.cpp.
|
private |
Definition at line 868 of file world_state.cpp.
|
private |
Definition at line 811 of file world_state.cpp.
|
private |
Definition at line 732 of file world_state.cpp.
|
private |
Definition at line 912 of file world_state.cpp.
|
private |
Definition at line 884 of file world_state.cpp.
|
private |
Definition at line 955 of file world_state.cpp.
|
private |
Definition at line 780 of file world_state.cpp.
|
private |
Definition at line 797 of file world_state.cpp.
|
private |
Definition at line 506 of file world_state.cpp.
|
private |
Definition at line 593 of file world_state.cpp.
|
private |
Definition at line 550 of file world_state.cpp.
|
private |
Definition at line 488 of file world_state.cpp.
|
static |
Register the WorldStateAddon class with the JavaScript runtime.
Definition at line 969 of file world_state.cpp.
|
private |
Definition at line 380 of file world_state.cpp.
|
private |
Definition at line 439 of file world_state.cpp.
|
private |
Definition at line 395 of file world_state.cpp.
|
private |
Definition at line 473 of file world_state.cpp.
|
private |
Definition at line 365 of file world_state.cpp.
|
private |
Definition at line 940 of file world_state.cpp.
|
private |
Definition at line 348 of file world_state.cpp.
| Napi::Value WorldStateWrapper::getHandle | ( | const Napi::CallbackInfo & | info | ) |
Get a NAPI External handle to the underlying WorldState pointer. This allows other NAPI functions to access the WorldState instance directly.
Definition at line 335 of file world_state.cpp.
|
private |
Definition at line 854 of file world_state.cpp.
|
private |
Definition at line 926 of file world_state.cpp.
|
private |
Definition at line 898 of file world_state.cpp.
|
private |
Definition at line 747 of file world_state.cpp.
|
private |
Definition at line 682 of file world_state.cpp.
|
private |
Definition at line 827 of file world_state.cpp.
|
private |
Definition at line 761 of file world_state.cpp.
|
private |
Definition at line 840 of file world_state.cpp.
|
private |
Definition at line 718 of file world_state.cpp.
|
private |
Definition at line 38 of file world_state.hpp.
|
private |
Definition at line 37 of file world_state.hpp.