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 const AztecAddress& msg_sender,
21 const FF& transaction_fee,
22 ContextInterface& parent_context,
23 MemoryAddress cd_offset_address,
24 uint32_t cd_size,
25 bool is_static,
26 const Gas& gas_limit,
27 TransactionPhase phase) = 0;
28
30 const AztecAddress& msg_sender,
31 const FF& transaction_fee,
33 const FF& calldata_hash,
34 bool is_static,
35 const Gas& gas_limit,
36 const Gas& gas_used,
37 TransactionPhase phase) = 0;
38
39 // This can be removed if we use clk for the context id
40 virtual uint32_t get_next_context_id() const = 0;
41};
42
43} // namespace bb::avm2::simulation
virtual 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)=0
virtual uint32_t get_next_context_id() const =0
virtual 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)=0
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13