Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
cdb_execute.hpp
Go to the documentation of this file.
1
#pragma once
7
#include "
barretenberg/cdb/cdb_commands.hpp
"
8
#include "
barretenberg/common/named_union.hpp
"
9
10
namespace
bb::cdb
{
11
15
struct
CdbErrorResponse
{
16
static
constexpr
const
char
MSGPACK_SCHEMA_NAME
[] =
"CdbErrorResponse"
;
17
std::string
message
;
18
SERIALIZATION_FIELDS
(
message
);
19
bool
operator==
(
const
CdbErrorResponse
&)
const
=
default
;
20
};
21
25
using
CdbCommand
=
NamedUnion
<
CdbGetContractInstance
,
26
CdbGetContractClass
,
27
CdbGetBytecodeCommitment
,
28
CdbGetDebugFunctionName
,
29
CdbAddContracts
,
30
CdbCreateCheckpoint
,
31
CdbCommitCheckpoint
,
32
CdbRevertCheckpoint
,
33
CdbAddContractClass
,
34
CdbAddContractInstance
,
35
CdbRegisterFunctionSignatures
,
36
CdbGetContractClassIds
,
37
CdbShutdown
>;
38
42
using
CdbCommandResponse
=
NamedUnion
<
CdbErrorResponse
,
43
CdbGetContractInstance::Response
,
44
CdbGetContractClass::Response
,
45
CdbGetBytecodeCommitment::Response
,
46
CdbGetDebugFunctionName::Response
,
47
CdbAddContracts::Response
,
48
CdbCreateCheckpoint::Response
,
49
CdbCommitCheckpoint::Response
,
50
CdbRevertCheckpoint::Response
,
51
CdbAddContractClass::Response
,
52
CdbAddContractInstance::Response
,
53
CdbRegisterFunctionSignatures::Response
,
54
CdbGetContractClassIds::Response
,
55
CdbShutdown::Response
>;
56
57
}
// namespace bb::cdb
cdb_commands.hpp
NamedUnion command structs for the aztec-cdb contracts database API.
bb::NamedUnion
A wrapper around std::variant that provides msgpack serialization based on type names.
Definition
named_union.hpp:34
named_union.hpp
bb::cdb
ContractDBInterface adapter over the generated CDB IPC client.
Definition
cdb_commands.hpp:21
bb::cdb::CdbAddContractClass::Response
Definition
cdb_commands.hpp:158
bb::cdb::CdbAddContractClass
Definition
cdb_commands.hpp:156
bb::cdb::CdbAddContractInstance::Response
Definition
cdb_commands.hpp:172
bb::cdb::CdbAddContractInstance
Definition
cdb_commands.hpp:170
bb::cdb::CdbAddContracts::Response
Definition
cdb_commands.hpp:97
bb::cdb::CdbAddContracts
Definition
cdb_commands.hpp:95
bb::cdb::CdbCommitCheckpoint::Response
Definition
cdb_commands.hpp:128
bb::cdb::CdbCommitCheckpoint
Definition
cdb_commands.hpp:126
bb::cdb::CdbCreateCheckpoint::Response
Definition
cdb_commands.hpp:115
bb::cdb::CdbCreateCheckpoint
Definition
cdb_commands.hpp:113
bb::cdb::CdbErrorResponse
Error response returned when a command fails.
Definition
cdb_execute.hpp:15
bb::cdb::CdbErrorResponse::operator==
bool operator==(const CdbErrorResponse &) const =default
bb::cdb::CdbErrorResponse::MSGPACK_SCHEMA_NAME
static constexpr const char MSGPACK_SCHEMA_NAME[]
Definition
cdb_execute.hpp:16
bb::cdb::CdbErrorResponse::message
std::string message
Definition
cdb_execute.hpp:17
bb::cdb::CdbErrorResponse::SERIALIZATION_FIELDS
SERIALIZATION_FIELDS(message)
bb::cdb::CdbGetBytecodeCommitment::Response
Definition
cdb_commands.hpp:62
bb::cdb::CdbGetBytecodeCommitment
Definition
cdb_commands.hpp:60
bb::cdb::CdbGetContractClass::Response
Definition
cdb_commands.hpp:47
bb::cdb::CdbGetContractClass
Definition
cdb_commands.hpp:45
bb::cdb::CdbGetContractClassIds::Response
Definition
cdb_commands.hpp:199
bb::cdb::CdbGetContractClassIds
Definition
cdb_commands.hpp:197
bb::cdb::CdbGetContractInstance::Response
Definition
cdb_commands.hpp:32
bb::cdb::CdbGetContractInstance
Definition
cdb_commands.hpp:30
bb::cdb::CdbGetDebugFunctionName::Response
Definition
cdb_commands.hpp:77
bb::cdb::CdbGetDebugFunctionName
Definition
cdb_commands.hpp:75
bb::cdb::CdbRegisterFunctionSignatures::Response
Definition
cdb_commands.hpp:186
bb::cdb::CdbRegisterFunctionSignatures
Definition
cdb_commands.hpp:184
bb::cdb::CdbRevertCheckpoint::Response
Definition
cdb_commands.hpp:141
bb::cdb::CdbRevertCheckpoint
Definition
cdb_commands.hpp:139
bb::cdb::CdbShutdown::Response
Definition
cdb_commands.hpp:216
bb::cdb::CdbShutdown
Definition
cdb_commands.hpp:214
src
barretenberg
cdb
cdb_execute.hpp
Generated by
1.9.8