Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_get_contract_instance.hpp
Go to the documentation of this file.
1// AUTOGENERATED FILE
2#pragma once
3
4#include <cstddef>
5#include <string_view>
6#include <tuple>
7
8#include "../columns.hpp"
11
12namespace bb::avm2 {
13
15
17 static constexpr std::string_view NAME = "LOOKUP_GET_CONTRACT_INSTANCE_PRECOMPUTED_INFO";
18 static constexpr std::string_view RELATION_NAME = "get_contract_instance";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 5;
20 static constexpr Column SRC_SELECTOR = Column::get_contract_instance_is_valid_writes_in_bounds;
21 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_8;
22 static constexpr Column COUNTS = Column::lookup_get_contract_instance_precomputed_info_counts;
23 static constexpr Column INVERSES = Column::lookup_get_contract_instance_precomputed_info_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::get_contract_instance_member_enum,
26 ColumnAndShifts::get_contract_instance_is_valid_member_enum,
27 ColumnAndShifts::get_contract_instance_is_deployer,
28 ColumnAndShifts::get_contract_instance_is_class_id,
29 ColumnAndShifts::get_contract_instance_is_init_hash
30 };
31 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
32 ColumnAndShifts::precomputed_clk,
33 ColumnAndShifts::precomputed_is_valid_member_enum,
34 ColumnAndShifts::precomputed_is_deployer,
35 ColumnAndShifts::precomputed_is_class_id,
36 ColumnAndShifts::precomputed_is_init_hash
37 };
38};
39
42template <typename FF_>
45
47
49 static constexpr std::string_view NAME = "LOOKUP_GET_CONTRACT_INSTANCE_CONTRACT_INSTANCE_RETRIEVAL";
50 static constexpr std::string_view RELATION_NAME = "get_contract_instance";
51 static constexpr size_t LOOKUP_TUPLE_SIZE = 7;
52 static constexpr Column SRC_SELECTOR = Column::get_contract_instance_is_valid_member_enum;
53 static constexpr Column DST_SELECTOR = Column::contract_instance_retrieval_sel;
54 static constexpr Column COUNTS = Column::lookup_get_contract_instance_contract_instance_retrieval_counts;
55 static constexpr Column INVERSES = Column::lookup_get_contract_instance_contract_instance_retrieval_inv;
56 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
57 ColumnAndShifts::get_contract_instance_contract_address,
58 ColumnAndShifts::get_contract_instance_nullifier_tree_root,
59 ColumnAndShifts::get_contract_instance_public_data_tree_root,
60 ColumnAndShifts::get_contract_instance_instance_exists,
61 ColumnAndShifts::get_contract_instance_retrieved_deployer_addr,
62 ColumnAndShifts::get_contract_instance_retrieved_class_id,
63 ColumnAndShifts::get_contract_instance_retrieved_init_hash
64 };
65 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
66 ColumnAndShifts::contract_instance_retrieval_address,
67 ColumnAndShifts::contract_instance_retrieval_nullifier_tree_root,
68 ColumnAndShifts::contract_instance_retrieval_public_data_tree_root,
69 ColumnAndShifts::contract_instance_retrieval_exists,
70 ColumnAndShifts::contract_instance_retrieval_deployer_addr,
71 ColumnAndShifts::contract_instance_retrieval_current_class_id,
72 ColumnAndShifts::contract_instance_retrieval_init_hash
73 };
74};
75
78template <typename FF_>
81
82} // namespace bb::avm2
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS