Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::simulation::EnqueuedCallContext Class Reference

#include <context.hpp>

Inheritance diagram for bb::avm2::simulation::EnqueuedCallContext:
bb::avm2::simulation::BaseContext bb::avm2::simulation::ContextInterface

Public Member Functions

 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)
 
uint32_t get_parent_id () const override
 
bool has_parent () const override
 
ContextEvent serialize_context_event () override
 
std::vector< FFget_calldata (uint32_t cd_offset, uint32_t cd_copy_size) const override
 
Gas get_parent_gas_used () const override
 
Gas get_parent_gas_limit () const override
 
MemoryAddress get_parent_cd_addr () const override
 
uint32_t get_parent_cd_size () const override
 
- Public Member Functions inherited from bb::avm2::simulation::BaseContext
 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
 
MemoryInterfaceget_memory () override
 
BytecodeManagerInterfaceget_bytecode_manager () override
 
InternalCallStackManagerInterfaceget_internal_call_stack_manager () override
 
uint32_t get_pc () const override
 
void set_pc (uint32_t new_pc) override
 
uint32_t get_next_pc () const override
 
void set_next_pc (uint32_t new_next_pc) override
 
bool halted () const override
 
void halt () override
 
uint32_t get_context_id () const override
 
const AztecAddressget_address () const override
 
const AztecAddressget_msg_sender () const override
 
const FFget_transaction_fee () const override
 
bool get_is_static () const override
 
SideEffectStatesget_side_effect_states () override
 
void set_side_effect_states (SideEffectStates side_effect_states) override
 
TransactionPhase get_phase () const override
 
AppendOnlyTreeSnapshot get_written_public_data_slots_tree_snapshot () override
 
const GlobalVariablesget_globals () const override
 
ContextInterfaceget_child_context () override
 
void set_child_context (std::unique_ptr< ContextInterface > child_ctx) override
 
MemoryAddress get_last_rd_addr () const override
 
void set_last_rd_addr (MemoryAddress rd_addr) override
 
uint32_t get_last_rd_size () const override
 
void set_last_rd_size (MemoryAddress rd_size) override
 
bool get_last_success () const override
 
void set_last_success (bool success) override
 
Gas get_gas_used () const override
 
Gas get_gas_limit () const override
 
Gas gas_left () const override
 
void set_gas_used (Gas gas_used) override
 
uint32_t get_checkpoint_id_at_creation () const override
 
std::vector< FFget_returndata (uint32_t rd_offset, uint32_t rd_copy_size) override
 
- Public Member Functions inherited from bb::avm2::simulation::ContextInterface
virtual ~ContextInterface ()=default
 

Private Attributes

std::vector< FFcalldata
 

Additional Inherited Members

- Protected Attributes inherited from bb::avm2::simulation::BaseContext
HighLevelMerkleDBInterfacemerkle_db
 
uint32_t checkpoint_id_at_creation
 
WrittenPublicDataSlotsTreeCheckInterfacewritten_public_data_slots_tree
 

Detailed Description

Definition at line 227 of file context.hpp.

Constructor & Destructor Documentation

◆ EnqueuedCallContext()

bb::avm2::simulation::EnqueuedCallContext::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 
)
inline

Definition at line 229 of file context.hpp.

Member Function Documentation

◆ get_calldata()

std::vector< FF > bb::avm2::simulation::EnqueuedCallContext::get_calldata ( uint32_t  cd_offset,
uint32_t  cd_copy_size 
) const
overridevirtual

Implements bb::avm2::simulation::ContextInterface.

Definition at line 47 of file context.cpp.

◆ get_parent_cd_addr()

MemoryAddress bb::avm2::simulation::EnqueuedCallContext::get_parent_cd_addr ( ) const
inlineoverridevirtual

Implements bb::avm2::simulation::ContextInterface.

Definition at line 274 of file context.hpp.

◆ get_parent_cd_size()

uint32_t bb::avm2::simulation::EnqueuedCallContext::get_parent_cd_size ( ) const
inlineoverridevirtual

Implements bb::avm2::simulation::ContextInterface.

Definition at line 275 of file context.hpp.

◆ get_parent_gas_limit()

Gas bb::avm2::simulation::EnqueuedCallContext::get_parent_gas_limit ( ) const
inlineoverridevirtual

Implements bb::avm2::simulation::ContextInterface.

Definition at line 272 of file context.hpp.

◆ get_parent_gas_used()

Gas bb::avm2::simulation::EnqueuedCallContext::get_parent_gas_used ( ) const
inlineoverridevirtual

Implements bb::avm2::simulation::ContextInterface.

Definition at line 271 of file context.hpp.

◆ get_parent_id()

uint32_t bb::avm2::simulation::EnqueuedCallContext::get_parent_id ( ) const
inlineoverridevirtual

Implements bb::avm2::simulation::ContextInterface.

Definition at line 263 of file context.hpp.

◆ has_parent()

bool bb::avm2::simulation::EnqueuedCallContext::has_parent ( ) const
inlineoverridevirtual

Implements bb::avm2::simulation::ContextInterface.

Definition at line 264 of file context.hpp.

◆ serialize_context_event()

ContextEvent bb::avm2::simulation::EnqueuedCallContext::serialize_context_event ( )
overridevirtual

Implements bb::avm2::simulation::ContextInterface.

Definition at line 65 of file context.cpp.

Member Data Documentation

◆ calldata

std::vector<FF> bb::avm2::simulation::EnqueuedCallContext::calldata
private

Definition at line 278 of file context.hpp.


The documentation for this class was generated from the following files: