18#include "msgpack/adaptor/define_decl.hpp"
60 static std::vector<FF>
columns_to_flat(std::vector<std::vector<FF>>
const& columns);
68 throw std::invalid_argument(
69 "Flattened public inputs vector size does not match the expected combined length.");
75 typename std::vector<FF_>::const_iterator start =
78 typename std::vector<FF_>::const_iterator end =
492 return os <<
"SETUP";
494 return os <<
"APP_LOGIC";
496 return os <<
"TEARDOWN";
498 return os <<
"UNKNOWN";
#define AVM_PUBLIC_INPUTS_COLUMNS_COMBINED_LENGTH
#define AVM_NUM_PUBLIC_INPUT_COLUMNS
#define AVM_PUBLIC_INPUTS_COLUMNS_MAX_LENGTH
const std::vector< MemoryValue > data
std::ostream & operator<<(std::ostream &os, const CoarseTransactionPhase &phase)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
std::vector< FF > nullifiers
std::vector< FF > note_hashes
MSGPACK_CAMEL_CASE_FIELDS(note_hashes, nullifiers, l2_to_l1_messages)
bool operator==(const AccumulatedData &other) const =default
std::vector< ScopedL2ToL1Message > l2_to_l1_messages
MSGPACK_CAMEL_CASE_FIELDS(hint_key, state_after, tree_id, leaves)
AppendOnlyTreeSnapshot hint_key
world_state::MerkleTreeId tree_id
bool operator==(const AppendLeavesHint &other) const =default
AppendOnlyTreeSnapshot state_after
bool operator==(const BytecodeCommitmentHint &other) const =default
MSGPACK_CAMEL_CASE_FIELDS(hint_key, class_id, commitment)
bool operator==(const CheckpointActionNoStateChangeHint &other) const =default
uint32_t new_checkpoint_id
uint32_t old_checkpoint_id
MSGPACK_CAMEL_CASE_FIELDS(action_counter, old_checkpoint_id, new_checkpoint_id)
uint32_t max_debug_log_memory_reads
uint32_t max_call_stack_depth
MSGPACK_CAMEL_CASE_FIELDS(max_debug_log_memory_reads, max_calldata_size_in_fields, max_returndata_size_in_fields, max_call_stack_depth, max_call_stack_items)
uint32_t max_returndata_size_in_fields
uint32_t max_call_stack_items
bool operator==(const CollectionLimitsConfig &other) const =default
uint32_t max_calldata_size_in_fields
FF private_functions_root
MSGPACK_CAMEL_CASE_FIELDS(hint_key, class_id, artifact_hash, private_functions_root, packed_bytecode)
std::vector< uint8_t > packed_bytecode
bool operator==(const ContractClassHint &other) const =default
ContractClassId original_contract_class_id
PublicKeysHint public_keys
MSGPACK_CAMEL_CASE_FIELDS(hint_key, address, salt, deployer, current_contract_class_id, original_contract_class_id, initialization_hash, public_keys)
ContractClassId current_contract_class_id
bool operator==(const ContractInstanceHint &other) const =default
bool operator==(const DebugFunctionNameHint &other) const =default
MSGPACK_FIELDS(address, selector, name)
FunctionSelector selector
std::vector< SequentialInsertHint< crypto::merkle_tree::NullifierLeafValue > > sequential_insert_hints_nullifier_tree
TreeSnapshots starting_tree_roots
GlobalVariables global_variables
std::vector< GetSiblingPathHint > get_sibling_path_hints
std::vector< DebugFunctionNameHint > debug_function_names
std::vector< ContractDBCreateCheckpointHint > contract_db_create_checkpoint_hints
std::vector< ContractDBCommitCheckpointHint > contract_db_commit_checkpoint_hints
std::vector< CommitCheckpointHint > commit_checkpoint_hints
std::vector< SequentialInsertHint< crypto::merkle_tree::PublicDataLeafValue > > sequential_insert_hints_public_data_tree
std::vector< RevertCheckpointHint > revert_checkpoint_hints
std::vector< ContractDBRevertCheckpointHint > contract_db_revert_checkpoint_hints
ProtocolContracts protocol_contracts
std::vector< GetPreviousValueIndexHint > get_previous_value_index_hints
std::vector< GetLeafPreimageHint< crypto::merkle_tree::IndexedLeaf< crypto::merkle_tree::PublicDataLeafValue > > > get_leaf_preimage_hints_public_data_tree
std::vector< GetLeafPreimageHint< crypto::merkle_tree::IndexedLeaf< crypto::merkle_tree::NullifierLeafValue > > > get_leaf_preimage_hints_nullifier_tree
std::vector< CreateCheckpointHint > create_checkpoint_hints
std::vector< GetLeafValueHint > get_leaf_value_hints
std::vector< AppendLeavesHint > append_leaves_hints
std::vector< ContractInstanceHint > contract_instances
MSGPACK_CAMEL_CASE_FIELDS(global_variables, tx, protocol_contracts, contract_instances, contract_classes, bytecode_commitments, debug_function_names, contract_db_create_checkpoint_hints, contract_db_commit_checkpoint_hints, contract_db_revert_checkpoint_hints, starting_tree_roots, get_sibling_path_hints, get_previous_value_index_hints, get_leaf_preimage_hints_public_data_tree, get_leaf_preimage_hints_nullifier_tree, get_leaf_value_hints, sequential_insert_hints_public_data_tree, sequential_insert_hints_nullifier_tree, append_leaves_hints, create_checkpoint_hints, commit_checkpoint_hints, revert_checkpoint_hints)
bool operator==(const ExecutionHints &other) const =default
std::vector< ContractClassHint > contract_classes
std::vector< BytecodeCommitmentHint > bytecode_commitments
MSGPACK_CAMEL_CASE_FIELDS(hint_key, index, leaf_preimage)
bool operator==(const GetLeafPreimageHint< LeafPreimage_ > &other) const =default
LeafPreimage_ leaf_preimage
AppendOnlyTreeSnapshot hint_key
AppendOnlyTreeSnapshot hint_key
MSGPACK_CAMEL_CASE_FIELDS(hint_key, tree_id, index, value)
bool operator==(const GetLeafValueHint &other) const =default
world_state::MerkleTreeId tree_id
world_state::MerkleTreeId tree_id
MSGPACK_CAMEL_CASE_FIELDS(hint_key, tree_id, value, index, already_present)
bool operator==(const GetPreviousValueIndexHint &other) const =default
AppendOnlyTreeSnapshot hint_key
AppendOnlyTreeSnapshot hint_key
world_state::MerkleTreeId tree_id
bool operator==(const GetSiblingPathHint &other) const =default
MSGPACK_CAMEL_CASE_FIELDS(hint_key, tree_id, index, path)
bool operator==(const PublicCallRequestWithCalldata &other) const =default
std::vector< FF > calldata
MSGPACK_FIELDS(request, calldata)
PublicCallRequest request
AffinePoint master_incoming_viewing_public_key
AffinePoint master_tagging_public_key
AffinePoint master_nullifier_public_key
bool operator==(const PublicKeysHint &other) const =default
MSGPACK_CAMEL_CASE_FIELDS(master_nullifier_public_key, master_incoming_viewing_public_key, master_outgoing_viewing_public_key, master_tagging_public_key)
AffinePoint master_outgoing_viewing_public_key
bool collect_call_metadata
bool collect_public_inputs
MSGPACK_CAMEL_CASE_FIELDS(prover_id, skip_fee_enforcement, collect_call_metadata, collect_hints, collect_public_inputs, collect_debug_logs, collect_statistics, collection_limits)
bool operator==(const PublicSimulatorConfig &other) const =default
bool skip_fee_enforcement
CollectionLimitsConfig collection_limits
bool operator==(const PublicTxEffect &other) const =default
std::vector< FF > note_hashes
std::vector< PublicLog > public_logs
std::vector< FF > nullifiers
MSGPACK_CAMEL_CASE_FIELDS(transaction_fee, note_hashes, nullifiers, l2_to_l1_msgs, public_logs, public_data_writes)
std::vector< PublicDataWrite > public_data_writes
std::vector< ScopedL2ToL1Message > l2_to_l1_msgs
uint32_t new_checkpoint_id
TreeSnapshots state_after
TreeSnapshots state_before
MSGPACK_CAMEL_CASE_FIELDS(action_counter, old_checkpoint_id, new_checkpoint_id, state_before, state_after)
bool operator==(const RevertCheckpointHint &other) const =default
uint32_t old_checkpoint_id
crypto::merkle_tree::LeafUpdateWitnessData< Leaf > low_leaves_witness_data
world_state::MerkleTreeId tree_id
MSGPACK_CAMEL_CASE_FIELDS(hint_key, tree_id, leaf, low_leaves_witness_data, insertion_witness_data, state_after)
bool operator==(const SequentialInsertHint< Leaf > &other) const =default
AppendOnlyTreeSnapshot hint_key
AppendOnlyTreeSnapshot state_after
crypto::merkle_tree::LeafUpdateWitnessData< Leaf > insertion_witness_data
GasFees effective_gas_fees
ContractDeploymentData non_revertible_contract_deployment_data
std::vector< PublicCallRequestWithCalldata > setup_enqueued_calls
ContractDeploymentData revertible_contract_deployment_data
std::optional< PublicCallRequestWithCalldata > teardown_enqueued_call
bool operator==(const Tx &other) const =default
std::vector< PublicCallRequestWithCalldata > app_logic_enqueued_calls
MSGPACK_CAMEL_CASE_FIELDS(hash, gas_settings, effective_gas_fees, non_revertible_contract_deployment_data, revertible_contract_deployment_data, non_revertible_accumulated_data, revertible_accumulated_data, setup_enqueued_calls, app_logic_enqueued_calls, teardown_enqueued_call, gas_used_by_private, fee_payer)
AccumulatedData revertible_accumulated_data
AccumulatedData non_revertible_accumulated_data
PublicTxEffect public_tx_effect
std::optional< std::vector< DebugLog > > logs
std::vector< CallStackMetadata > call_stack_metadata
std::optional< ExecutionHints > hints
MSGPACK_CAMEL_CASE_FIELDS(gas_used, revert_code, public_tx_effect, call_stack_metadata, logs, public_inputs, hints)
bool operator==(const TxSimulationResult &other) const =default
std::optional< PublicInputs > public_inputs