Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
emit_unencrypted_log.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
#include "
barretenberg/vm2/common/aztec_types.hpp
"
6
#include "
barretenberg/vm2/common/field.hpp
"
7
#include "
barretenberg/vm2/common/memory_types.hpp
"
8
#include "
barretenberg/vm2/simulation/events/emit_unencrypted_log_event.hpp
"
9
#include "
barretenberg/vm2/simulation/events/event_emitter.hpp
"
10
#include "
barretenberg/vm2/simulation/gadgets/context.hpp
"
11
#include "
barretenberg/vm2/simulation/gadgets/memory.hpp
"
12
#include "
barretenberg/vm2/simulation/interfaces/emit_unencrypted_log.hpp
"
13
#include "
barretenberg/vm2/simulation/lib/execution_id_manager.hpp
"
14
15
namespace
bb::avm2::simulation
{
16
17
class
EmitUnencryptedLog
:
public
EmitUnencryptedLogInterface
,
public
CheckpointNotifiable
{
18
public
:
19
EmitUnencryptedLog
(
ExecutionIdManagerInterface
&
execution_id_manager
,
20
GreaterThanInterface
&
greater_than
,
21
EventEmitterInterface<EmitUnencryptedLogEvent>
&
events
)
22
:
execution_id_manager
(
execution_id_manager
)
23
,
greater_than
(
greater_than
)
24
,
events
(
events
)
25
{}
26
27
void
emit_unencrypted_log
(
MemoryInterface
&
memory
,
28
ContextInterface
&
context
,
29
AztecAddress
contract_address
,
30
MemoryAddress
log_offset,
31
uint32_t log_size)
override
;
32
33
void
on_checkpoint_created
()
override
;
34
void
on_checkpoint_committed
()
override
;
35
void
on_checkpoint_reverted
()
override
;
36
37
private
:
38
ExecutionIdManagerInterface
&
execution_id_manager
;
39
GreaterThanInterface
&
greater_than
;
40
EventEmitterInterface<EmitUnencryptedLogEvent>
&
events
;
41
};
42
43
}
// namespace bb::avm2::simulation
aztec_types.hpp
bb::avm2::context
Definition
context.hpp:37
bb::avm2::emit_unencrypted_log
Definition
emit_unencrypted_log.hpp:36
bb::avm2::memory
Definition
memory.hpp:36
bb::avm2::simulation::CheckpointNotifiable
Definition
db.hpp:116
bb::avm2::simulation::ContextInterface
Definition
context.hpp:19
bb::avm2::simulation::EmitUnencryptedLog
Definition
emit_unencrypted_log.hpp:17
bb::avm2::simulation::EmitUnencryptedLog::on_checkpoint_reverted
void on_checkpoint_reverted() override
Definition
emit_unencrypted_log.cpp:90
bb::avm2::simulation::EmitUnencryptedLog::greater_than
GreaterThanInterface & greater_than
Definition
emit_unencrypted_log.hpp:39
bb::avm2::simulation::EmitUnencryptedLog::execution_id_manager
ExecutionIdManagerInterface & execution_id_manager
Definition
emit_unencrypted_log.hpp:38
bb::avm2::simulation::EmitUnencryptedLog::on_checkpoint_committed
void on_checkpoint_committed() override
Definition
emit_unencrypted_log.cpp:85
bb::avm2::simulation::EmitUnencryptedLog::events
EventEmitterInterface< EmitUnencryptedLogEvent > & events
Definition
emit_unencrypted_log.hpp:40
bb::avm2::simulation::EmitUnencryptedLog::on_checkpoint_created
void on_checkpoint_created() override
Definition
emit_unencrypted_log.cpp:80
bb::avm2::simulation::EmitUnencryptedLog::EmitUnencryptedLog
EmitUnencryptedLog(ExecutionIdManagerInterface &execution_id_manager, GreaterThanInterface &greater_than, EventEmitterInterface< EmitUnencryptedLogEvent > &events)
Definition
emit_unencrypted_log.hpp:19
bb::avm2::simulation::EmitUnencryptedLogInterface
Definition
emit_unencrypted_log.hpp:14
bb::avm2::simulation::EventEmitterInterface
Definition
event_emitter.hpp:10
bb::avm2::simulation::ExecutionIdManagerInterface
Definition
execution_id_manager.hpp:13
bb::avm2::simulation::GreaterThanInterface
Definition
gt.hpp:9
bb::avm2::simulation::MemoryInterface
Definition
memory.hpp:10
contract_address
AztecAddress contract_address
Definition
written_public_data_slots_tree_check.test.cpp:97
emit_unencrypted_log_event.hpp
event_emitter.hpp
execution_id_manager.hpp
memory_types.hpp
bb::avm2::simulation
Definition
address_derivation_event.hpp:6
bb::avm2::AztecAddress
FF AztecAddress
Definition
aztec_types.hpp:12
bb::avm2::MemoryAddress
uint32_t MemoryAddress
Definition
memory_types.hpp:11
context.hpp
memory.hpp
emit_unencrypted_log.hpp
field.hpp
src
barretenberg
vm2
simulation
gadgets
emit_unencrypted_log.hpp
Generated by
1.9.8