#include <context_provider.hpp>
|
| | ContextProvider (TxBytecodeManagerInterface &tx_bytecode_manager, MemoryProviderInterface &memory_provider, CalldataHashingProviderInterface &cd_hash_provider, InternalCallStackManagerProviderInterface &internal_call_stack_manager_provider, HighLevelMerkleDBInterface &merkle_db, WrittenPublicDataSlotsTreeCheckInterface &written_public_data_slots_tree, RetrievedBytecodesTreeCheckInterface &retrieved_bytecodes_tree, SideEffectTrackerInterface &side_effect_tracker, const GlobalVariables &global_variables) |
| |
| std::unique_ptr< ContextInterface > | make_nested_context (const AztecAddress &address, const AztecAddress &msg_sender, const FF &transaction_fee, ContextInterface &parent_context, MemoryAddress cd_offset_address, uint32_t cd_size, bool is_static, const Gas &gas_limit, TransactionPhase phase) override |
| | Make a new nested context.
|
| |
| std::unique_ptr< ContextInterface > | make_enqueued_context (const AztecAddress &address, const AztecAddress &msg_sender, const FF &transaction_fee, std::span< const FF > calldata, const FF &calldata_hash, bool is_static, const Gas &gas_limit, const Gas &gas_used, TransactionPhase phase) override |
| | Make a new enqueued call context.
|
| |
| uint32_t | get_next_context_id () const override |
| |
| virtual | ~ContextProviderInterface ()=default |
| |
Definition at line 23 of file context_provider.hpp.
◆ ContextProvider()
◆ get_next_context_id()
| uint32_t bb::avm2::simulation::ContextProvider::get_next_context_id |
( |
| ) |
const |
|
overridevirtual |
◆ make_enqueued_context()
Make a new enqueued call context.
- Parameters
-
| address | The address of the context. |
| msg_sender | The message sender of the context. |
| transaction_fee | The transaction fee of the context. |
| calldata | The calldata of the context. |
| is_static | Whether the context is static. |
| gas_limit | The gas limit of the context. |
| gas_used | The gas used at the start of the context. |
| phase | The transaction phase of the context. |
- Returns
- The new enqueued call context.
Implements bb::avm2::simulation::ContextProviderInterface.
Definition at line 78 of file context_provider.cpp.
◆ make_nested_context()
Make a new nested context.
- Parameters
-
| address | The address of the context. |
| msg_sender | The message sender of the context. |
| transaction_fee | The transaction fee of the context. |
| parent_context | The parent context. |
| cd_offset_address | The offset address of the calldata in the parent memory. |
| cd_size | The size of the calldata. |
| is_static | Whether the context is static. |
| gas_limit | The gas limit of the context. |
| phase | The transaction phase of the context. |
- Returns
- The new nested context.
Implements bb::avm2::simulation::ContextProviderInterface.
Definition at line 26 of file context_provider.cpp.
◆ cd_hash_provider
◆ global_variables
| const GlobalVariables& bb::avm2::simulation::ContextProvider::global_variables |
|
private |
◆ internal_call_stack_manager_provider
◆ memory_provider
◆ merkle_db
◆ next_context_id
| uint32_t bb::avm2::simulation::ContextProvider::next_context_id = 1 |
|
private |
◆ retrieved_bytecodes_tree
◆ side_effect_tracker
◆ tx_bytecode_manager
◆ written_public_data_slots_tree
The documentation for this class was generated from the following files: