8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_GET_CONTRACT_INSTANCE_PRECOMPUTED_INFO";
18 static constexpr std::string_view
RELATION_NAME =
"get_contract_instance";
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
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
42template <
typename FF_>
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";
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
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
78template <
typename FF_>
85 static constexpr std::string_view
NAME =
"LOOKUP_GET_CONTRACT_INSTANCE_MEM_WRITE_CONTRACT_INSTANCE_EXISTS";
86 static constexpr std::string_view
RELATION_NAME =
"get_contract_instance";
90 static constexpr Column COUNTS = Column::lookup_get_contract_instance_mem_write_contract_instance_exists_counts;
91 static constexpr Column INVERSES = Column::lookup_get_contract_instance_mem_write_contract_instance_exists_inv;
92 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
93 ColumnAndShifts::get_contract_instance_clk,
94 ColumnAndShifts::get_contract_instance_dst_offset,
95 ColumnAndShifts::get_contract_instance_instance_exists,
96 ColumnAndShifts::get_contract_instance_exists_tag,
97 ColumnAndShifts::get_contract_instance_is_valid_member_enum,
98 ColumnAndShifts::get_contract_instance_space_id
100 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
101 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_address, ColumnAndShifts::memory_value,
102 ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw, ColumnAndShifts::memory_space_id
108template <
typename FF_>
115 static constexpr std::string_view
NAME =
"LOOKUP_GET_CONTRACT_INSTANCE_MEM_WRITE_CONTRACT_INSTANCE_MEMBER";
120 static constexpr Column COUNTS = Column::lookup_get_contract_instance_mem_write_contract_instance_member_counts;
121 static constexpr Column INVERSES = Column::lookup_get_contract_instance_mem_write_contract_instance_member_inv;
122 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
123 ColumnAndShifts::get_contract_instance_clk,
124 ColumnAndShifts::get_contract_instance_member_write_offset,
125 ColumnAndShifts::get_contract_instance_selected_member,
126 ColumnAndShifts::get_contract_instance_member_tag,
127 ColumnAndShifts::get_contract_instance_is_valid_member_enum,
128 ColumnAndShifts::get_contract_instance_space_id
130 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
131 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_address, ColumnAndShifts::memory_value,
132 ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw, ColumnAndShifts::memory_space_id
138template <
typename FF_>
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr std::string_view RELATION_NAME
static constexpr Column COUNTS
static constexpr Column SRC_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column DST_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr Column DST_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr Column COUNTS
static constexpr Column INVERSES
static constexpr Column SRC_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr Column INVERSES
static constexpr Column SRC_SELECTOR
static constexpr Column COUNTS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column DST_SELECTOR
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column COUNTS
static constexpr Column SRC_SELECTOR
static constexpr std::string_view RELATION_NAME
static constexpr Column DST_SELECTOR
static constexpr std::string_view NAME
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr size_t LOOKUP_TUPLE_SIZE