Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bytecode_events.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <memory>
5#include <optional>
6#include <vector>
7
13
14namespace bb::avm2::simulation {
15
16// Storage and decomposition of bytecode into sliding window.
21
27
28// This is the event that is emitted when the simulator needs to retrieve bytecode.
29// It might or might not result into the storage/decomposition of a bytecode.
43
46 uint32_t pc;
47 // TODO: Do we want to have a dep on Instruction here or do we redefine what we need?
51
52 // To be used with deduplicating event emitters.
54 Key get_key() const { return { bytecode_id, pc }; }
55};
56
57} // namespace bb::avm2::simulation
FF ContractClassId
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
std::shared_ptr< std::vector< uint8_t > > bytecode
AppendOnlyTreeSnapshot retrieved_bytecodes_snapshot_after
AppendOnlyTreeSnapshot retrieved_bytecodes_snapshot_before
std::optional< InstrDeserializationError > error
std::shared_ptr< std::vector< uint8_t > > bytecode
std::tuple< BytecodeId, uint32_t > Key