32 virtual void set_pc(uint32_t new_pc) = 0;
55 virtual std::vector<FF>
get_returndata(uint32_t rd_addr, uint32_t rd_size) = 0;
137 void set_pc(uint32_t new_pc)
override {
pc = new_pc; }
189 std::vector<FF>
get_returndata(uint32_t rd_offset, uint32_t rd_copy_size)
override;
uint32_t checkpoint_id_at_creation
MemoryAddress last_child_rd_size
void set_last_success(bool success) override
const AztecAddress & get_address() const override
TransactionPhase get_phase() const override
InternalCallStackManagerInterface & get_internal_call_stack_manager() override
void set_gas_used(Gas gas_used) override
std::vector< FF > get_returndata(uint32_t rd_offset, uint32_t rd_copy_size) override
MemoryAddress get_last_rd_addr() const override
bool halted() const override
void set_next_pc(uint32_t new_next_pc) override
uint32_t get_last_rd_size() const override
Gas get_gas_used() const override
void set_last_rd_size(MemoryAddress rd_size) override
const AztecAddress & get_msg_sender() const override
AppendOnlyTreeSnapshot get_written_public_data_slots_tree_snapshot() override
ContextInterface & get_child_context() override
uint32_t get_checkpoint_id_at_creation() const override
void set_side_effect_states(SideEffectStates side_effect_states) override
SideEffectStates & get_side_effect_states() override
WrittenPublicDataSlotsTreeCheckInterface & written_public_data_slots_tree
uint32_t get_next_pc() const override
std::unique_ptr< ContextInterface > child_context
void set_child_context(std::unique_ptr< ContextInterface > child_ctx) override
uint32_t get_context_id() const override
BaseContext(uint32_t context_id, AztecAddress address, AztecAddress msg_sender, FF transaction_fee, bool is_static, Gas gas_limit, Gas gas_used, GlobalVariables globals, std::unique_ptr< BytecodeManagerInterface > bytecode, std::unique_ptr< MemoryInterface > memory, std::unique_ptr< InternalCallStackManagerInterface > internal_call_stack_manager, HighLevelMerkleDBInterface &merkle_db, WrittenPublicDataSlotsTreeCheckInterface &written_public_data_slots_tree, SideEffectStates side_effect_states, TransactionPhase phase)
uint32_t get_last_child_id() const override
MemoryInterface & get_memory() override
BytecodeManagerInterface & get_bytecode_manager() override
bool get_last_success() const override
SideEffectStates side_effect_states
MemoryAddress last_child_rd_addr
std::unique_ptr< MemoryInterface > memory
void set_last_rd_addr(MemoryAddress rd_addr) override
Gas get_gas_limit() const override
std::unique_ptr< BytecodeManagerInterface > bytecode
HighLevelMerkleDBInterface & merkle_db
const FF & get_transaction_fee() const override
uint32_t get_pc() const override
Gas gas_left() const override
std::unique_ptr< InternalCallStackManagerInterface > internal_call_stack_manager
void set_pc(uint32_t new_pc) override
bool get_is_static() const override
const GlobalVariables & get_globals() const override
virtual ~ContextInterface()=default
virtual uint32_t get_pc() const =0
virtual MemoryAddress get_last_rd_addr() const =0
virtual const AztecAddress & get_msg_sender() const =0
virtual std::vector< FF > get_returndata(uint32_t rd_addr, uint32_t rd_size)=0
virtual bool halted() const =0
virtual ContextInterface & get_child_context()=0
virtual bool get_last_success() const =0
virtual Gas get_gas_used() const =0
virtual void set_child_context(std::unique_ptr< ContextInterface > child_ctx)=0
virtual Gas get_parent_gas_limit() const =0
virtual void set_pc(uint32_t new_pc)=0
virtual uint32_t get_checkpoint_id_at_creation() const =0
virtual MemoryInterface & get_memory()=0
virtual void set_last_rd_size(MemoryAddress rd_size)=0
virtual InternalCallStackManagerInterface & get_internal_call_stack_manager()=0
virtual ContextEvent serialize_context_event()=0
virtual uint32_t get_next_pc() const =0
virtual const FF & get_transaction_fee() const =0
virtual uint32_t get_parent_cd_size() const =0
virtual uint32_t get_last_child_id() const =0
virtual MemoryAddress get_parent_cd_addr() const =0
virtual AppendOnlyTreeSnapshot get_written_public_data_slots_tree_snapshot()=0
virtual SideEffectStates & get_side_effect_states()=0
virtual Gas gas_left() const =0
virtual const GlobalVariables & get_globals() const =0
virtual void set_gas_used(Gas gas_used)=0
virtual uint32_t get_parent_id() const =0
virtual uint32_t get_last_rd_size() const =0
virtual bool get_is_static() const =0
virtual BytecodeManagerInterface & get_bytecode_manager()=0
virtual bool has_parent() const =0
virtual Gas get_gas_limit() const =0
virtual std::vector< FF > get_calldata(uint32_t cd_offset, uint32_t cd_size) const =0
virtual const AztecAddress & get_address() const =0
virtual uint32_t get_context_id() const =0
virtual void set_side_effect_states(SideEffectStates side_effect_states)=0
virtual Gas get_parent_gas_used() const =0
virtual void set_last_rd_addr(MemoryAddress rd_addr)=0
virtual void set_last_success(bool success)=0
virtual TransactionPhase get_phase() const =0
virtual void set_next_pc(uint32_t new_next_pc)=0
std::vector< FF > get_calldata(uint32_t cd_offset, uint32_t cd_copy_size) const override
MemoryAddress get_parent_cd_addr() const override
uint32_t get_parent_id() const override
std::vector< FF > calldata
ContextEvent serialize_context_event() override
Gas get_parent_gas_used() const override
EnqueuedCallContext(uint32_t context_id, AztecAddress address, AztecAddress msg_sender, FF transaction_fee, bool is_static, Gas gas_limit, Gas gas_used, GlobalVariables globals, std::unique_ptr< BytecodeManagerInterface > bytecode, std::unique_ptr< MemoryInterface > memory, std::unique_ptr< InternalCallStackManagerInterface > internal_call_stack_manager, HighLevelMerkleDBInterface &merkle_db, WrittenPublicDataSlotsTreeCheckInterface &written_public_data_slots_tree, SideEffectStates side_effect_states, TransactionPhase phase, std::span< const FF > calldata)
Gas get_parent_gas_limit() const override
bool has_parent() const override
uint32_t get_parent_cd_size() const override
uint32_t get_parent_id() const override
NestedContext(uint32_t context_id, AztecAddress address, AztecAddress msg_sender, FF transaction_fee, bool is_static, Gas gas_limit, GlobalVariables globals, std::unique_ptr< BytecodeManagerInterface > bytecode, std::unique_ptr< MemoryInterface > memory, std::unique_ptr< InternalCallStackManagerInterface > internal_call_stack_manager, HighLevelMerkleDBInterface &merkle_db, WrittenPublicDataSlotsTreeCheckInterface &written_public_data_slots_tree, SideEffectStates side_effect_states, TransactionPhase phase, ContextInterface &parent_context, MemoryAddress cd_offset_address, uint32_t cd_size)
MemoryAddress parent_cd_addr
uint32_t get_parent_cd_size() const override
ContextEvent serialize_context_event() override
bool has_parent() const override
std::vector< FF > get_calldata(uint32_t cd_offset, uint32_t cd_copy_size) const override
Gas get_parent_gas_used() const override
MemoryAddress get_parent_cd_addr() const override
Gas get_parent_gas_limit() const override
MemoryAddress parent_cd_size
ContextInterface & parent_context
virtual AppendOnlyTreeSnapshot snapshot() const =0
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept