Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
get_contract_instance_event.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <stdexcept>
5
#include <string>
6
7
#include "
barretenberg/vm2/common/aztec_types.hpp
"
8
#include "
barretenberg/vm2/common/field.hpp
"
9
#include "
barretenberg/vm2/common/memory_types.hpp
"
10
11
namespace
bb::avm2::simulation
{
12
13
struct
GetContractInstanceException
:
public
std::runtime_error {
14
explicit
GetContractInstanceException
(
const
std::string& message)
15
:
std
::runtime_error(
"Error in GetContractInstance: "
+ message)
16
{}
17
};
18
19
struct
GetContractInstanceEvent
{
20
// Interface columns
21
uint32_t
execution_clk
;
22
AztecAddress
contract_address
;
23
MemoryAddress
dst_offset
;
24
uint8_t
member_enum
;
25
uint32_t
space_id
;
26
FF
nullifier_tree_root
;
27
FF
public_data_tree_root
;
28
29
// Instance retrieval results including all three members which are all needed for tracegen
30
// despite only needing the selected member in simulation.
31
bool
instance_exists
;
32
FF
retrieved_deployer_addr
;
33
FF
retrieved_class_id
;
34
FF
retrieved_init_hash
;
35
};
36
37
}
// namespace bb::avm2::simulation
aztec_types.hpp
memory_types.hpp
bb::avm2::simulation
Definition
address_derivation.cpp:8
bb::avm2::AztecAddress
FF AztecAddress
Definition
aztec_types.hpp:11
bb::avm2::MemoryAddress
uint32_t MemoryAddress
Definition
memory_types.hpp:11
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
std
STL namespace.
bb::avm2::simulation::GetContractInstanceEvent
Definition
get_contract_instance_event.hpp:19
bb::avm2::simulation::GetContractInstanceEvent::public_data_tree_root
FF public_data_tree_root
Definition
get_contract_instance_event.hpp:27
bb::avm2::simulation::GetContractInstanceEvent::dst_offset
MemoryAddress dst_offset
Definition
get_contract_instance_event.hpp:23
bb::avm2::simulation::GetContractInstanceEvent::retrieved_init_hash
FF retrieved_init_hash
Definition
get_contract_instance_event.hpp:34
bb::avm2::simulation::GetContractInstanceEvent::instance_exists
bool instance_exists
Definition
get_contract_instance_event.hpp:31
bb::avm2::simulation::GetContractInstanceEvent::contract_address
AztecAddress contract_address
Definition
get_contract_instance_event.hpp:22
bb::avm2::simulation::GetContractInstanceEvent::retrieved_class_id
FF retrieved_class_id
Definition
get_contract_instance_event.hpp:33
bb::avm2::simulation::GetContractInstanceEvent::nullifier_tree_root
FF nullifier_tree_root
Definition
get_contract_instance_event.hpp:26
bb::avm2::simulation::GetContractInstanceEvent::space_id
uint32_t space_id
Definition
get_contract_instance_event.hpp:25
bb::avm2::simulation::GetContractInstanceEvent::member_enum
uint8_t member_enum
Definition
get_contract_instance_event.hpp:24
bb::avm2::simulation::GetContractInstanceEvent::execution_clk
uint32_t execution_clk
Definition
get_contract_instance_event.hpp:21
bb::avm2::simulation::GetContractInstanceEvent::retrieved_deployer_addr
FF retrieved_deployer_addr
Definition
get_contract_instance_event.hpp:32
bb::avm2::simulation::GetContractInstanceException
Definition
get_contract_instance_event.hpp:13
bb::avm2::simulation::GetContractInstanceException::GetContractInstanceException
GetContractInstanceException(const std::string &message)
Definition
get_contract_instance_event.hpp:14
field.hpp
src
barretenberg
vm2
simulation
events
get_contract_instance_event.hpp
Generated by
1.9.8