Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
context_events.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
6
7namespace bb::avm2::simulation {
8
10 uint32_t id = 0;
11 uint32_t parent_id = 0;
12 uint32_t last_child_id = 0;
13
14 // State
15 PC pc = 0;
20 bool is_static = false;
21
22 // Calldata info from parent context
23 uint32_t parent_cd_addr = 0;
24 uint32_t parent_cd_size = 0;
25
26 // Return data info from child context
27 uint32_t last_child_rd_addr = 0;
28 uint32_t last_child_rd_size = 0;
29 bool last_child_success = true;
30
31 // Gas
34
37
38 // Internal Call Stack Info
42
43 // Tree States
47
48 // Non-tree-tracked side effects
50 uint32_t numL2ToL1Messages = 0;
51
52 // Phase
54};
55
57 uint32_t id = 0;
58 uint32_t parent_id = 0;
59 uint32_t entered_context_id = 0;
60
61 // State
66 bool is_static = false;
67
68 // Calldata info from parent context
69 uint32_t parent_cd_addr = 0;
70 uint32_t parent_cd_size = 0;
71
72 // Gas
75
76 // Internal Call Stack Info
80
81 // Tree States
84
85 // Non-tree-tracked side effects
87 uint32_t numL2ToL1Messages = 0;
88};
89
90} // namespace bb::avm2::simulation
uint32_t PC
uint32_t InternalCallId
AvmFlavorSettings::FF FF
Definition field.hpp:10
AppendOnlyTreeSnapshot retrieved_bytecodes_tree_snapshot
AppendOnlyTreeSnapshot written_public_data_slots_tree_snapshot
AppendOnlyTreeSnapshot written_public_data_slots_tree_snapshot