8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_CONTRACT_INSTANCE_RETRIEVAL_CHECK_PROTOCOL_ADDRESS_RANGE";
18 static constexpr std::string_view
RELATION_NAME =
"contract_instance_retrieval";
22 static constexpr Column COUNTS = Column::lookup_contract_instance_retrieval_check_protocol_address_range_counts;
23 static constexpr Column INVERSES = Column::lookup_contract_instance_retrieval_check_protocol_address_range_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
25 ColumnAndShifts::contract_instance_retrieval_max_protocol_contracts,
26 ColumnAndShifts::contract_instance_retrieval_address_sub_one,
27 ColumnAndShifts::contract_instance_retrieval_is_protocol_contract
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = { ColumnAndShifts::ff_gt_a,
30 ColumnAndShifts::ff_gt_b,
31 ColumnAndShifts::ff_gt_result };
36template <
typename FF_>
43 static constexpr std::string_view
NAME =
44 "LOOKUP_CONTRACT_INSTANCE_RETRIEVAL_READ_DERIVED_ADDRESS_FROM_PUBLIC_INPUTS";
45 static constexpr std::string_view
RELATION_NAME =
"contract_instance_retrieval";
50 Column::lookup_contract_instance_retrieval_read_derived_address_from_public_inputs_counts;
52 Column::lookup_contract_instance_retrieval_read_derived_address_from_public_inputs_inv;
53 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
54 ColumnAndShifts::contract_instance_retrieval_derived_address_pi_index,
55 ColumnAndShifts::contract_instance_retrieval_derived_address
57 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
58 ColumnAndShifts::precomputed_idx, ColumnAndShifts::public_inputs_cols_0_
64template <
typename FF_>
71 static constexpr std::string_view
NAME =
"LOOKUP_CONTRACT_INSTANCE_RETRIEVAL_DEPLOYMENT_NULLIFIER_READ";
72 static constexpr std::string_view
RELATION_NAME =
"contract_instance_retrieval";
74 static constexpr Column SRC_SELECTOR = Column::contract_instance_retrieval_should_check_nullifier;
76 static constexpr Column COUNTS = Column::lookup_contract_instance_retrieval_deployment_nullifier_read_counts;
77 static constexpr Column INVERSES = Column::lookup_contract_instance_retrieval_deployment_nullifier_read_inv;
78 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
79 ColumnAndShifts::contract_instance_retrieval_exists,
80 ColumnAndShifts::contract_instance_retrieval_address,
81 ColumnAndShifts::contract_instance_retrieval_nullifier_tree_root,
82 ColumnAndShifts::contract_instance_retrieval_nullifier_tree_height,
83 ColumnAndShifts::contract_instance_retrieval_sel,
84 ColumnAndShifts::contract_instance_retrieval_siloing_separator,
85 ColumnAndShifts::contract_instance_retrieval_deployer_protocol_contract_address
87 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
88 ColumnAndShifts::indexed_tree_check_exists, ColumnAndShifts::indexed_tree_check_value,
89 ColumnAndShifts::indexed_tree_check_root, ColumnAndShifts::indexed_tree_check_tree_height,
90 ColumnAndShifts::indexed_tree_check_sel_silo, ColumnAndShifts::indexed_tree_check_siloing_separator,
91 ColumnAndShifts::indexed_tree_check_address
97template <
typename FF_>
104 static constexpr std::string_view
NAME =
"LOOKUP_CONTRACT_INSTANCE_RETRIEVAL_ADDRESS_DERIVATION";
105 static constexpr std::string_view
RELATION_NAME =
"contract_instance_retrieval";
109 static constexpr Column COUNTS = Column::lookup_contract_instance_retrieval_address_derivation_counts;
110 static constexpr Column INVERSES = Column::lookup_contract_instance_retrieval_address_derivation_inv;
111 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
112 ColumnAndShifts::contract_instance_retrieval_derived_address,
113 ColumnAndShifts::contract_instance_retrieval_salt,
114 ColumnAndShifts::contract_instance_retrieval_deployer_addr,
115 ColumnAndShifts::contract_instance_retrieval_original_class_id,
116 ColumnAndShifts::contract_instance_retrieval_init_hash,
117 ColumnAndShifts::contract_instance_retrieval_nullifier_key_x,
118 ColumnAndShifts::contract_instance_retrieval_nullifier_key_y,
119 ColumnAndShifts::contract_instance_retrieval_incoming_viewing_key_x,
120 ColumnAndShifts::contract_instance_retrieval_incoming_viewing_key_y,
121 ColumnAndShifts::contract_instance_retrieval_outgoing_viewing_key_x,
122 ColumnAndShifts::contract_instance_retrieval_outgoing_viewing_key_y,
123 ColumnAndShifts::contract_instance_retrieval_tagging_key_x,
124 ColumnAndShifts::contract_instance_retrieval_tagging_key_y
126 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
127 ColumnAndShifts::address_derivation_address,
128 ColumnAndShifts::address_derivation_salt,
129 ColumnAndShifts::address_derivation_deployer_addr,
130 ColumnAndShifts::address_derivation_class_id,
131 ColumnAndShifts::address_derivation_init_hash,
132 ColumnAndShifts::address_derivation_nullifier_key_x,
133 ColumnAndShifts::address_derivation_nullifier_key_y,
134 ColumnAndShifts::address_derivation_incoming_viewing_key_x,
135 ColumnAndShifts::address_derivation_incoming_viewing_key_y,
136 ColumnAndShifts::address_derivation_outgoing_viewing_key_x,
137 ColumnAndShifts::address_derivation_outgoing_viewing_key_y,
138 ColumnAndShifts::address_derivation_tagging_key_x,
139 ColumnAndShifts::address_derivation_tagging_key_y
145template <
typename FF_>
152 static constexpr std::string_view
NAME =
"LOOKUP_CONTRACT_INSTANCE_RETRIEVAL_UPDATE_CHECK";
153 static constexpr std::string_view
RELATION_NAME =
"contract_instance_retrieval";
157 static constexpr Column COUNTS = Column::lookup_contract_instance_retrieval_update_check_counts;
158 static constexpr Column INVERSES = Column::lookup_contract_instance_retrieval_update_check_inv;
159 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
160 ColumnAndShifts::contract_instance_retrieval_address,
161 ColumnAndShifts::contract_instance_retrieval_current_class_id,
162 ColumnAndShifts::contract_instance_retrieval_original_class_id,
163 ColumnAndShifts::contract_instance_retrieval_public_data_tree_root
165 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
166 ColumnAndShifts::update_check_address,
167 ColumnAndShifts::update_check_current_class_id,
168 ColumnAndShifts::update_check_original_class_id,
169 ColumnAndShifts::update_check_public_data_tree_root
175template <
typename FF_>
static constexpr Column DST_SELECTOR
static constexpr Column COUNTS
static constexpr Column INVERSES
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr Column SRC_SELECTOR
static constexpr std::string_view NAME
static constexpr Column SRC_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column INVERSES
static constexpr Column COUNTS
static constexpr Column DST_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr Column DST_SELECTOR
static constexpr std::string_view RELATION_NAME
static constexpr Column SRC_SELECTOR
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column COUNTS
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column DST_SELECTOR
static constexpr Column INVERSES
static constexpr Column COUNTS
static constexpr std::string_view RELATION_NAME
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column SRC_SELECTOR
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
Settings to be passed ot GenericLookupRelationImpl.