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
7
8namespace bb::avm2::simulation {
9
11 uint32_t id = 0;
12 uint32_t parent_id = 0;
13 uint32_t last_child_id = 0;
14
15 // State
16 uint32_t pc = 0;
21 bool is_static = false;
22
23 // Calldata info from parent context
24 uint32_t parent_cd_addr = 0;
25 uint32_t parent_cd_size = 0;
26
27 // Return data info from child context
28 uint32_t last_child_rd_addr = 0;
29 uint32_t last_child_rd_size = 0;
30 bool last_child_success = true;
31
32 // Gas
35
38
39 // Internal Call Stack Info
43
44 // Tree States
48
49 // Non-tree-tracked side effects
51 uint32_t numL2ToL1Messages = 0;
52
53 // Phase
55};
56
58 uint32_t id = 0;
59 uint32_t parent_id = 0;
60 uint32_t entered_context_id = 0;
61
62 // State
63 uint32_t next_pc = 0;
67 bool is_static = false;
68
69 // Calldata info from parent context
70 uint32_t parent_cd_addr = 0;
71 uint32_t parent_cd_size = 0;
72
73 // Gas
76
77 // Tree States
80
81 // Non-tree-tracked side effects
83 uint32_t numL2ToL1Messages = 0;
84};
85
86} // namespace bb::avm2::simulation
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