Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
cdb_commands.hpp File Reference

NamedUnion command structs for the aztec-cdb contracts database API. More...

#include "barretenberg/serialize/msgpack.hpp"
#include "barretenberg/vm2/common/aztec_types.hpp"
#include "barretenberg/vm2/common/field.hpp"
#include <optional>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  bb::cdb::CdbGetContractInstance
 
struct  bb::cdb::CdbGetContractInstance::Response
 
struct  bb::cdb::CdbGetContractClass
 
struct  bb::cdb::CdbGetContractClass::Response
 
struct  bb::cdb::CdbGetBytecodeCommitment
 
struct  bb::cdb::CdbGetBytecodeCommitment::Response
 
struct  bb::cdb::CdbGetDebugFunctionName
 
struct  bb::cdb::CdbGetDebugFunctionName::Response
 
struct  bb::cdb::CdbAddContracts
 
struct  bb::cdb::CdbAddContracts::Response
 
struct  bb::cdb::CdbCreateCheckpoint
 
struct  bb::cdb::CdbCreateCheckpoint::Response
 
struct  bb::cdb::CdbCommitCheckpoint
 
struct  bb::cdb::CdbCommitCheckpoint::Response
 
struct  bb::cdb::CdbRevertCheckpoint
 
struct  bb::cdb::CdbRevertCheckpoint::Response
 
struct  bb::cdb::CdbAddContractClass
 
struct  bb::cdb::CdbAddContractClass::Response
 
struct  bb::cdb::CdbAddContractInstance
 
struct  bb::cdb::CdbAddContractInstance::Response
 
struct  bb::cdb::CdbRegisterFunctionSignatures
 
struct  bb::cdb::CdbRegisterFunctionSignatures::Response
 
struct  bb::cdb::CdbGetContractClassIds
 
struct  bb::cdb::CdbGetContractClassIds::Response
 
struct  bb::cdb::CdbShutdown
 
struct  bb::cdb::CdbShutdown::Response
 

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::cdb
 ContractDBInterface adapter over the generated CDB IPC client.
 

Detailed Description

NamedUnion command structs for the aztec-cdb contracts database API.

Each command follows the bbapi pattern:

  • static constexpr MSGPACK_SCHEMA_NAME for NamedUnion dispatch
  • Nested Response struct with its own MSGPACK_SCHEMA_NAME
  • Request fields with SERIALIZATION_FIELDS
  • execute(CdbRequest&) && method (implemented in cdb_execute.cpp)

Definition in file cdb_commands.hpp.