Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
context_provider.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <span>
5
9
10namespace bb::avm2::simulation {
11
12// Forward declarations
13class ContextInterface;
14
16 public:
17 virtual ~ContextProviderInterface() = default;
18
20 AztecAddress msg_sender,
21 FF transaction_fee,
22 ContextInterface& parent_context,
23 MemoryAddress cd_offset_address,
24 uint32_t cd_size,
25 bool is_static,
26 Gas gas_limit,
27 TransactionPhase phase) = 0;
28
30 AztecAddress msg_sender,
31 FF transaction_fee,
33 bool is_static,
34 Gas gas_limit,
35 Gas gas_used,
36 TransactionPhase phase) = 0;
37
38 // This can be removed if we use clk for the context id
39 virtual uint32_t get_next_context_id() const = 0;
40};
41
42} // namespace bb::avm2::simulation
virtual uint32_t get_next_context_id() const =0
virtual std::unique_ptr< ContextInterface > make_nested_context(AztecAddress address, AztecAddress msg_sender, FF transaction_fee, ContextInterface &parent_context, MemoryAddress cd_offset_address, uint32_t cd_size, bool is_static, Gas gas_limit, TransactionPhase phase)=0
virtual std::unique_ptr< ContextInterface > make_enqueued_context(AztecAddress address, AztecAddress msg_sender, FF transaction_fee, std::span< const FF > calldata, bool is_static, Gas gas_limit, Gas gas_used, TransactionPhase phase)=0
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13