diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_0.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_0.json index 6c3be4445ee..f675e5c608e 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_0.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_0.json @@ -1,26 +1,27 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 1000000000, + "max_keys_length": 1000000000, + "max_n_emitted_events": 1000000000 }, - "archival_data_gas_costs": { - "event_key_factor": [ + "gateway": { + "max_calldata_length": 4000, + "max_contract_bytecode_size": 61440, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 3000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ 0, 1 ], - "gas_per_code_byte": [ + "event_key_factor": [ 0, 1 ], - "gas_per_data_felt": [ + "gas_per_code_byte": [ 0, 1 ], @@ -29,10 +30,11 @@ 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": false, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 0, + 1 + ], "event_key_factor": [ 0, 1 @@ -41,549 +43,617 @@ 0, 1 ], - "gas_per_data_felt": [ + "gas_per_proof": [ 0, 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 5, + 1000 + ], + "builtins": { + "add_mod_builtin": [ + 0, + 1 + ], + "bitwise_builtin": [ + 32, + 100 + ], + "ec_op_builtin": [ + 512, + 100 + ], + "ecdsa_builtin": [ + 1024, + 100 + ], + "keccak_builtin": [ + 1024, + 100 + ], + "mul_mod_builtin": [ + 0, + 1 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 16, + 100 + ], + "poseidon_builtin": [ + 16, + 100 + ], + "range_check96_builtin": [ + 0, + 1 + ], + "range_check_builtin": [ + 8, + 100 + ] + } + }, "disable_cairo0_redeclaration": false, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": false, "enable_stateful_compression": false, - "enable_tip": false, - "gateway": { - "max_calldata_length": 4000, - "max_contract_bytecode_size": 61440, - "max_proof_size": 0 - }, + "comprehensive_state_diff": false, + "block_direct_execute_call": false, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 3000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": false, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "100.0.0", + "enable_tip": false, + "segment_arena_cells": true, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 0, - "bitwise": 0, - "ecdsa": 0, - "ecop": 0, - "keccak": 0, - "mul_mod": 0, - "pedersen": 0, - "poseidon": 0, - "range_check": 70, - "range_check96": 0, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 1, + "validate_timestamp_rounding": 1 + }, + "validated": "VALID", + "execute_max_sierra_gas": 10000000000, + "validate_max_sierra_gas": 10000000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 10000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", - "l1_gas_index": 0, - "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, - "l1_gas": 10000000000, - "l2_gas": 10000000000 - }, - "l1_handler_version": 0, "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", + "l1_gas_index": 0, + "l1_data_gas_index": 2, "l2_gas_index": 1, "memory_hole_gas_cost": 10, - "nop_entry_point_offset": -1, - "os_contract_addresses": { - "alias_contract_address": 2, - "block_hash_contract_address": 1, - "reserved_contract_address": 3 + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 0, + "keccak": 0, + "pedersen": 0, + "bitwise": 0, + "ecop": 0, + "poseidon": 0, + "add_mod": 0, + "mul_mod": 0, + "ecdsa": 0, + "blake": 0 }, - "sierra_array_len_bound": 4294967296, "step_gas_cost": 100, - "stored_block_hash_buffer": 10, "syscall_base_gas_cost": { "step_gas_cost": 100 }, "syscall_gas_costs": { "CallContract": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Deploy": { "step_gas_cost": 700, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "EmitEvent": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetBlockHash": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetClassHashAt": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "GetExecutionInfo": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Keccak": { - "syscall_base_gas_cost": 1 + "step_gas_cost": 0, + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "KeccakRound": 180000, "LibraryCall": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "MetaTxV0": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "ReplaceClass": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Secp256k1Add": { + "step_gas_cost": 406, "range_check": 29, - "step_gas_cost": 406 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256k1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 391, "range_check": 30, - "step_gas_cost": 391 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256k1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 239, "range_check": 11, - "step_gas_cost": 239 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256k1Mul": { + "step_gas_cost": 76401, "range_check": 7045, - "step_gas_cost": 76401 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256k1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 475, "range_check": 35, - "step_gas_cost": 475 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Add": { + "step_gas_cost": 589, "range_check": 57, - "step_gas_cost": 589 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256r1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 510, "range_check": 44, - "step_gas_cost": 510 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256r1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 241, "range_check": 11, - "step_gas_cost": 241 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Mul": { + "step_gas_cost": 125240, "range_check": 13961, - "step_gas_cost": 125240 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256r1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 594, "range_check": 49, - "step_gas_cost": 594 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "SendMessageToL1": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Sha256ProcessBlock": { - "range_check": 0, "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "StorageRead": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageWrite": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 } }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, + "l1_handler_max_amount_bounds": { + "l1_gas": 10000000000, + "l1_data_gas": 10000000000, + "l2_gas": 10000000000 + }, + "nop_entry_point_offset": -1, + "os_contract_addresses": { + "block_hash_contract_address": 1, + "alias_contract_address": 2, + "reserved_contract_address": 3 + }, + "sierra_array_len_bound": 4294967296, + "stored_block_hash_buffer": 10, "v1_bound_accounts_cairo0": [], "v1_bound_accounts_cairo1": [], "v1_bound_accounts_max_tip": "0x0", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 10000000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 1, - "validate_timestamp_rounding": 1 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "execute_syscalls": { "CallContract": { + "n_steps": 691, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 691 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 18 - }, + "n_steps": 944, "n_memory_holes": 0, - "n_steps": 944 + "builtin_instance_counter": { + "range_check_builtin": 18, + "pedersen_builtin": 7 + } }, "EmitEvent": { - "builtin_instance_counter": {}, + "n_steps": 19, "n_memory_holes": 0, - "n_steps": 19 + "builtin_instance_counter": {} }, "GetBlockHash": { + "n_steps": 74, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 74 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { - "builtin_instance_counter": {}, + "n_steps": 32, "n_memory_holes": 0, - "n_steps": 32 + "builtin_instance_counter": {} }, "GetClassHashAt": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "GetContractAddress": { - "builtin_instance_counter": {}, + "n_steps": 36, "n_memory_holes": 0, - "n_steps": 36 + "builtin_instance_counter": {} }, "GetExecutionInfo": { - "builtin_instance_counter": {}, + "n_steps": 29, "n_memory_holes": 0, - "n_steps": 29 + "builtin_instance_counter": {} }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { - "builtin_instance_counter": {}, + "n_steps": 29, "n_memory_holes": 0, - "n_steps": 29 + "builtin_instance_counter": {} }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 381, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 381 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 680, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 680 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { - "builtin_instance_counter": {}, + "n_steps": 73, "n_memory_holes": 0, - "n_steps": 73 + "builtin_instance_counter": {} }, "Secp256k1Add": { + "n_steps": 406, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 406 + } }, "Secp256k1GetPointFromX": { + "n_steps": 391, + "n_memory_holes": 20, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 20, - "n_steps": 391 + } }, "Secp256k1GetXy": { + "n_steps": 239, + "n_memory_holes": 40, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 40, - "n_steps": 239 + } }, "Secp256k1Mul": { + "n_steps": 76401, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76401 + } }, "Secp256k1New": { + "n_steps": 475, + "n_memory_holes": 40, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 40, - "n_steps": 475 + } }, "Secp256r1Add": { + "n_steps": 589, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 589 + } }, "Secp256r1GetPointFromX": { + "n_steps": 510, + "n_memory_holes": 20, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 20, - "n_steps": 510 + } }, "Secp256r1GetXy": { + "n_steps": 241, + "n_memory_holes": 40, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 40, - "n_steps": 241 + } }, "Secp256r1Mul": { + "n_steps": 125240, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125240 + } }, "Secp256r1New": { + "n_steps": 594, + "n_memory_holes": 40, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 40, - "n_steps": 594 + } }, "SendMessageToL1": { - "builtin_instance_counter": {}, + "n_steps": 84, "n_memory_holes": 0, - "n_steps": 84 + "builtin_instance_counter": {} }, "Sha256ProcessBlock": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "StorageRead": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "StorageWrite": { - "builtin_instance_counter": {}, + "n_steps": 46, "n_memory_holes": 0, - "n_steps": 46 + "builtin_instance_counter": {} } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 2711, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 15, - "range_check_builtin": 63 - }, + "range_check_builtin": 63, + "pedersen_builtin": 15 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 2711 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 3628, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 83 - }, + "range_check_builtin": 83, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 3628 + "builtin_instance_counter": {} } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 3382, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 16, - "range_check_builtin": 80 - }, + "range_check_builtin": 80, + "pedersen_builtin": 16 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 3382 + "builtin_instance_counter": {} } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 1069, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 17 - }, + "range_check_builtin": 17, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 1069 + "builtin_instance_counter": {} } } - } - }, - "segment_arena_cells": true, - "tx_event_limits": { - "max_data_length": 1000000000, - "max_keys_length": 1000000000, - "max_n_emitted_events": 1000000000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 0, - 1 - ], - "bitwise_builtin": [ - 32, - 100 - ], - "ec_op_builtin": [ - 512, - 100 - ], - "ecdsa_builtin": [ - 1024, - 100 - ], - "keccak_builtin": [ - 1024, - 100 - ], - "mul_mod_builtin": [ - 0, - 1 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 16, - 100 - ], - "poseidon_builtin": [ - 16, - 100 - ], - "range_check96_builtin": [ - 0, - 1 - ], - "range_check_builtin": [ - 8, - 100 - ] }, - "n_steps": [ - 5, - 1000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 0, + "n_memory_holes": 0, + "builtin_instance_counter": {} + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_1.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_1.json index 017f656b904..7df1a4b4c92 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_1.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_1.json @@ -1,615 +1,683 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 4000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 4000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 35000, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 875, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": false, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 875, - 1000 + 35000, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 0, + 1 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 0, + 1 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 0, + 1 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": false, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": false, "enable_stateful_compression": false, - "enable_tip": false, - "gateway": { - "max_calldata_length": 4000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": false, + "block_direct_execute_call": false, "ignore_inner_event_resources": true, - "invoke_tx_max_n_steps": 4000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": false, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "100.0.0", + "enable_tip": false, + "segment_arena_cells": true, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 0, - "bitwise": 0, - "ecdsa": 0, - "ecop": 0, - "keccak": 0, - "mul_mod": 0, - "pedersen": 0, - "poseidon": 0, - "range_check": 70, - "range_check96": 0, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 10000000000, + "validate_max_sierra_gas": 10000000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 10000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", - "l1_gas_index": 0, - "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, - "l1_gas": 10000000000, - "l2_gas": 10000000000 - }, - "l1_handler_version": 0, "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", + "l1_gas_index": 0, + "l1_data_gas_index": 2, "l2_gas_index": 1, "memory_hole_gas_cost": 10, - "nop_entry_point_offset": -1, - "os_contract_addresses": { - "alias_contract_address": 2, - "block_hash_contract_address": 1, - "reserved_contract_address": 3 + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 0, + "keccak": 0, + "pedersen": 0, + "bitwise": 0, + "ecop": 0, + "poseidon": 0, + "add_mod": 0, + "mul_mod": 0, + "ecdsa": 0, + "blake": 0 }, - "sierra_array_len_bound": 4294967296, "step_gas_cost": 100, - "stored_block_hash_buffer": 10, "syscall_base_gas_cost": { "step_gas_cost": 100 }, "syscall_gas_costs": { "CallContract": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Deploy": { "step_gas_cost": 700, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "EmitEvent": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetBlockHash": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetClassHashAt": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "GetExecutionInfo": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Keccak": { - "syscall_base_gas_cost": 1 + "step_gas_cost": 0, + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "KeccakRound": 180000, "LibraryCall": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "MetaTxV0": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "ReplaceClass": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Secp256k1Add": { + "step_gas_cost": 406, "range_check": 29, - "step_gas_cost": 406 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256k1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 391, "range_check": 30, - "step_gas_cost": 391 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256k1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 239, "range_check": 11, - "step_gas_cost": 239 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256k1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 76501, "range_check": 7045, - "step_gas_cost": 76501 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256k1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 475, "range_check": 35, - "step_gas_cost": 475 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Add": { + "step_gas_cost": 589, "range_check": 57, - "step_gas_cost": 589 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256r1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 510, "range_check": 44, - "step_gas_cost": 510 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256r1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 241, "range_check": 11, - "step_gas_cost": 241 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 125340, "range_check": 13961, - "step_gas_cost": 125340 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256r1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 594, "range_check": 49, - "step_gas_cost": 594 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "SendMessageToL1": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Sha256ProcessBlock": { - "range_check": 0, "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "StorageRead": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageWrite": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 } }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, + "l1_handler_max_amount_bounds": { + "l1_gas": 10000000000, + "l1_data_gas": 10000000000, + "l2_gas": 10000000000 + }, + "nop_entry_point_offset": -1, + "os_contract_addresses": { + "block_hash_contract_address": 1, + "alias_contract_address": 2, + "reserved_contract_address": 3 + }, + "sierra_array_len_bound": 4294967296, + "stored_block_hash_buffer": 10, "v1_bound_accounts_cairo0": [], "v1_bound_accounts_cairo1": [], "v1_bound_accounts_max_tip": "0x0", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 10000000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "execute_syscalls": { "CallContract": { + "n_steps": 760, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 20 - }, - "n_memory_holes": 0, - "n_steps": 760 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 19 - }, + "n_steps": 1012, "n_memory_holes": 0, - "n_steps": 1012 + "builtin_instance_counter": { + "range_check_builtin": 19, + "pedersen_builtin": 7 + } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetClassHashAt": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "GetContractAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetExecutionInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 381, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 381 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 751, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 20 - }, - "n_memory_holes": 0, - "n_steps": 751 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { + "n_steps": 98, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 98 + } }, "Secp256k1Add": { + "n_steps": 408, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 408 + } }, "Secp256k1GetPointFromX": { + "n_steps": 393, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 393 + } }, "Secp256k1GetXy": { + "n_steps": 205, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 205 + } }, "Secp256k1Mul": { + "n_steps": 76503, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76503 + } }, "Secp256k1New": { + "n_steps": 459, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 459 + } }, "Secp256r1Add": { + "n_steps": 591, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 591 + } }, "Secp256r1GetPointFromX": { + "n_steps": 512, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 512 + } }, "Secp256r1GetXy": { + "n_steps": 207, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 207 + } }, "Secp256r1Mul": { + "n_steps": 125342, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125342 + } }, "Secp256r1New": { + "n_steps": 578, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 578 + } }, "SendMessageToL1": { + "n_steps": 139, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 139 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "StorageRead": { + "n_steps": 87, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 87 + } }, "StorageWrite": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 2839, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 16, - "range_check_builtin": 63 - }, + "range_check_builtin": 63, + "pedersen_builtin": 16 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 2839 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 21 - }, "constant": { + "n_steps": 3792, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 83 - }, + "range_check_builtin": 83, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 21, "n_memory_holes": 0, - "n_steps": 3792 + "builtin_instance_counter": { + "pedersen_builtin": 2 + } } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 3546, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 14, - "range_check_builtin": 80 - }, + "range_check_builtin": 80, + "pedersen_builtin": 14 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 3546 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1146, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 17 - }, + "range_check_builtin": 17, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1146 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": true, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 0, - 1 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 0, - 1 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 0, - 1 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 0, + "n_memory_holes": 0, + "builtin_instance_counter": {} + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_1_1.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_1_1.json index db76c941780..ba2497c7e0e 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_1_1.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_1_1.json @@ -1,615 +1,683 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 4000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 1280, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 32, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": false, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 32, - 1000 + 1280, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 0, + 1 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 0, + 1 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 0, + 1 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": false, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": false, "enable_stateful_compression": false, - "enable_tip": false, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": false, + "block_direct_execute_call": false, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 4000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": false, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "100.0.0", + "enable_tip": false, + "segment_arena_cells": true, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 0, - "bitwise": 0, - "ecdsa": 0, - "ecop": 0, - "keccak": 0, - "mul_mod": 0, - "pedersen": 0, - "poseidon": 0, - "range_check": 70, - "range_check96": 0, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 10000000000, + "validate_max_sierra_gas": 10000000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 10000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", - "l1_gas_index": 0, - "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, - "l1_gas": 10000000000, - "l2_gas": 10000000000 - }, - "l1_handler_version": 0, "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", + "l1_gas_index": 0, + "l1_data_gas_index": 2, "l2_gas_index": 1, "memory_hole_gas_cost": 10, - "nop_entry_point_offset": -1, - "os_contract_addresses": { - "alias_contract_address": 2, - "block_hash_contract_address": 1, - "reserved_contract_address": 3 + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 0, + "keccak": 0, + "pedersen": 0, + "bitwise": 0, + "ecop": 0, + "poseidon": 0, + "add_mod": 0, + "mul_mod": 0, + "ecdsa": 0, + "blake": 0 }, - "sierra_array_len_bound": 4294967296, "step_gas_cost": 100, - "stored_block_hash_buffer": 10, "syscall_base_gas_cost": { "step_gas_cost": 100 }, "syscall_gas_costs": { "CallContract": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Deploy": { "step_gas_cost": 700, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "EmitEvent": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetBlockHash": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetClassHashAt": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "GetExecutionInfo": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Keccak": { - "syscall_base_gas_cost": 1 + "step_gas_cost": 0, + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "KeccakRound": 180000, "LibraryCall": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "MetaTxV0": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "ReplaceClass": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Secp256k1Add": { + "step_gas_cost": 406, "range_check": 29, - "step_gas_cost": 406 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256k1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 391, "range_check": 30, - "step_gas_cost": 391 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256k1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 239, "range_check": 11, - "step_gas_cost": 239 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256k1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 76501, "range_check": 7045, - "step_gas_cost": 76501 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256k1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 475, "range_check": 35, - "step_gas_cost": 475 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Add": { + "step_gas_cost": 589, "range_check": 57, - "step_gas_cost": 589 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256r1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 510, "range_check": 44, - "step_gas_cost": 510 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256r1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 241, "range_check": 11, - "step_gas_cost": 241 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 125340, "range_check": 13961, - "step_gas_cost": 125340 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256r1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 594, "range_check": 49, - "step_gas_cost": 594 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "SendMessageToL1": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Sha256ProcessBlock": { - "range_check": 0, "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "StorageRead": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageWrite": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 } }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, + "l1_handler_max_amount_bounds": { + "l1_gas": 10000000000, + "l1_data_gas": 10000000000, + "l2_gas": 10000000000 + }, + "nop_entry_point_offset": -1, + "os_contract_addresses": { + "block_hash_contract_address": 1, + "alias_contract_address": 2, + "reserved_contract_address": 3 + }, + "sierra_array_len_bound": 4294967296, + "stored_block_hash_buffer": 10, "v1_bound_accounts_cairo0": [], "v1_bound_accounts_cairo1": [], "v1_bound_accounts_max_tip": "0x0", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 10000000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "execute_syscalls": { "CallContract": { + "n_steps": 760, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 20 - }, - "n_memory_holes": 0, - "n_steps": 760 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 19 - }, + "n_steps": 1012, "n_memory_holes": 0, - "n_steps": 1012 + "builtin_instance_counter": { + "range_check_builtin": 19, + "pedersen_builtin": 7 + } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetClassHashAt": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "GetContractAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetExecutionInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 381, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 381 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 751, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 20 - }, - "n_memory_holes": 0, - "n_steps": 751 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { + "n_steps": 98, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 98 + } }, "Secp256k1Add": { + "n_steps": 408, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 408 + } }, "Secp256k1GetPointFromX": { + "n_steps": 393, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 393 + } }, "Secp256k1GetXy": { + "n_steps": 205, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 205 + } }, "Secp256k1Mul": { + "n_steps": 76503, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76503 + } }, "Secp256k1New": { + "n_steps": 459, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 459 + } }, "Secp256r1Add": { + "n_steps": 591, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 591 + } }, "Secp256r1GetPointFromX": { + "n_steps": 512, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 512 + } }, "Secp256r1GetXy": { + "n_steps": 207, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 207 + } }, "Secp256r1Mul": { + "n_steps": 125342, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125342 + } }, "Secp256r1New": { + "n_steps": 578, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 578 + } }, "SendMessageToL1": { + "n_steps": 139, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 139 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "StorageRead": { + "n_steps": 87, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 87 + } }, "StorageWrite": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 2839, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 16, - "range_check_builtin": 63 - }, + "range_check_builtin": 63, + "pedersen_builtin": 16 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 2839 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 21 - }, "constant": { + "n_steps": 3792, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 83 - }, + "range_check_builtin": 83, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 21, "n_memory_holes": 0, - "n_steps": 3792 + "builtin_instance_counter": { + "pedersen_builtin": 2 + } } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 3546, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 14, - "range_check_builtin": 80 - }, + "range_check_builtin": 80, + "pedersen_builtin": 14 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 3546 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1146, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 17 - }, + "range_check_builtin": 17, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1146 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": true, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 0, - 1 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 0, - 1 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 0, - 1 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 0, + "n_memory_holes": 0, + "builtin_instance_counter": {} + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_2.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_2.json index c111ab050c7..e0874c5929e 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_2.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_2.json @@ -1,621 +1,688 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 35000, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 875, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": false, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 875, - 1000 + 35000, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": true, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": false, "enable_stateful_compression": false, - "enable_tip": false, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": false, + "block_direct_execute_call": false, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 10000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": false, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "100.0.0", + "enable_tip": false, + "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 0, - "bitwise": 594, - "ecdsa": 0, - "ecop": 0, - "keccak": 0, - "mul_mod": 0, - "pedersen": 0, - "poseidon": 0, - "range_check": 70, - "range_check96": 0, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 10000000000, + "validate_max_sierra_gas": 10000000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 10000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", - "l1_gas_index": 0, - "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, - "l1_gas": 10000000000, - "l2_gas": 10000000000 - }, - "l1_handler_version": 0, "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", + "l1_gas_index": 0, + "l1_data_gas_index": 2, "l2_gas_index": 1, "memory_hole_gas_cost": 10, - "nop_entry_point_offset": -1, - "os_contract_addresses": { - "alias_contract_address": 2, - "block_hash_contract_address": 1, - "reserved_contract_address": 3 + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 0, + "keccak": 0, + "pedersen": 0, + "bitwise": 594, + "ecop": 0, + "poseidon": 0, + "add_mod": 0, + "mul_mod": 0, + "ecdsa": 0, + "blake": 0 }, - "sierra_array_len_bound": 4294967296, "step_gas_cost": 100, - "stored_block_hash_buffer": 10, "syscall_base_gas_cost": { "step_gas_cost": 100 }, "syscall_gas_costs": { "CallContract": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Deploy": { "step_gas_cost": 700, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "EmitEvent": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetBlockHash": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetClassHashAt": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "GetExecutionInfo": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Keccak": { - "syscall_base_gas_cost": 1 + "step_gas_cost": 0, + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "KeccakRound": 180000, "LibraryCall": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "MetaTxV0": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "ReplaceClass": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Secp256k1Add": { + "step_gas_cost": 406, "range_check": 29, - "step_gas_cost": 406 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256k1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 391, "range_check": 30, - "step_gas_cost": 391 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256k1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 239, "range_check": 11, - "step_gas_cost": 239 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256k1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 76501, "range_check": 7045, - "step_gas_cost": 76501 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256k1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 475, "range_check": 35, - "step_gas_cost": 475 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Add": { + "step_gas_cost": 589, "range_check": 57, - "step_gas_cost": 589 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256r1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 510, "range_check": 44, - "step_gas_cost": 510 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256r1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 241, "range_check": 11, - "step_gas_cost": 241 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 125340, "range_check": 13961, - "step_gas_cost": 125340 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256r1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 594, "range_check": 49, - "step_gas_cost": 594 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "SendMessageToL1": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Sha256ProcessBlock": { - "bitwise": 1115, - "range_check": 65, "step_gas_cost": 1852, - "syscall_base_gas_cost": 1 + "range_check": 65, + "bitwise": 1115, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageRead": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageWrite": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 } }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, + "l1_handler_max_amount_bounds": { + "l1_gas": 10000000000, + "l1_data_gas": 10000000000, + "l2_gas": 10000000000 + }, + "nop_entry_point_offset": -1, + "os_contract_addresses": { + "block_hash_contract_address": 1, + "alias_contract_address": 2, + "reserved_contract_address": 3 + }, + "sierra_array_len_bound": 4294967296, + "stored_block_hash_buffer": 10, "v1_bound_accounts_cairo0": [], "v1_bound_accounts_cairo1": [], "v1_bound_accounts_max_tip": "0x0", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 10000000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": { - "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 - }, "execute_syscalls": { "CallContract": { + "n_steps": 827, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 827 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 18 - }, + "n_steps": 1097, "n_memory_holes": 0, - "n_steps": 1097 + "builtin_instance_counter": { + "range_check_builtin": 18, + "pedersen_builtin": 7 + } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetClassHashAt": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "GetContractAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetExecutionInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 381, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 381 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 818, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 818 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { + "n_steps": 98, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 98 + } }, "Secp256k1Add": { + "n_steps": 410, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 410 + } }, "Secp256k1GetPointFromX": { + "n_steps": 395, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 395 + } }, "Secp256k1GetXy": { + "n_steps": 207, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 207 + } }, "Secp256k1Mul": { + "n_steps": 76505, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76505 + } }, "Secp256k1New": { + "n_steps": 461, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 461 + } }, "Secp256r1Add": { + "n_steps": 593, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 593 + } }, "Secp256r1GetPointFromX": { + "n_steps": 514, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 514 + } }, "Secp256r1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256r1Mul": { + "n_steps": 125344, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125344 + } }, "Secp256r1New": { + "n_steps": 580, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 580 + } }, "SendMessageToL1": { + "n_steps": 141, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 141 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": { - "bitwise_builtin": 1115, - "range_check_builtin": 65 - }, + "n_steps": 1855, "n_memory_holes": 0, - "n_steps": 1855 + "builtin_instance_counter": { + "range_check_builtin": 65, + "bitwise_builtin": 1115 + } }, "StorageRead": { + "n_steps": 87, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 87 + } }, "StorageWrite": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 2973, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 16, - "range_check_builtin": 53 - }, + "range_check_builtin": 53, + "pedersen_builtin": 16 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 2973 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 21 - }, "constant": { + "n_steps": 4015, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 72 - }, + "range_check_builtin": 72, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 21, "n_memory_holes": 0, - "n_steps": 4015 + "builtin_instance_counter": { + "pedersen_builtin": 2 + } } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 3763, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 14, - "range_check_builtin": 69 - }, + "range_check_builtin": 69, + "pedersen_builtin": 14 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 3763 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1233, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 16 - }, + "range_check_builtin": 16, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1233 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": false, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 17 + } + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_2_1.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_2_1.json index 8145353cfd3..6c50adc557f 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_2_1.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_2_1.json @@ -1,621 +1,688 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 1280, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 32, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": false, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 32, - 1000 + 1280, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": true, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": false, "enable_stateful_compression": false, - "enable_tip": false, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": false, + "block_direct_execute_call": false, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 10000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": false, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "100.0.0", + "enable_tip": false, + "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 0, - "bitwise": 594, - "ecdsa": 0, - "ecop": 0, - "keccak": 0, - "mul_mod": 0, - "pedersen": 0, - "poseidon": 0, - "range_check": 70, - "range_check96": 0, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 10000000000, + "validate_max_sierra_gas": 10000000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 10000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", - "l1_gas_index": 0, - "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, - "l1_gas": 10000000000, - "l2_gas": 10000000000 - }, - "l1_handler_version": 0, "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", + "l1_gas_index": 0, + "l1_data_gas_index": 2, "l2_gas_index": 1, "memory_hole_gas_cost": 10, - "nop_entry_point_offset": -1, - "os_contract_addresses": { - "alias_contract_address": 2, - "block_hash_contract_address": 1, - "reserved_contract_address": 3 + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 0, + "keccak": 0, + "pedersen": 0, + "bitwise": 594, + "ecop": 0, + "poseidon": 0, + "add_mod": 0, + "mul_mod": 0, + "ecdsa": 0, + "blake": 0 }, - "sierra_array_len_bound": 4294967296, "step_gas_cost": 100, - "stored_block_hash_buffer": 10, "syscall_base_gas_cost": { "step_gas_cost": 100 }, "syscall_gas_costs": { "CallContract": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Deploy": { "step_gas_cost": 700, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "EmitEvent": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetBlockHash": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetClassHashAt": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "GetExecutionInfo": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Keccak": { - "syscall_base_gas_cost": 1 + "step_gas_cost": 0, + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "KeccakRound": 180000, "LibraryCall": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "MetaTxV0": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "ReplaceClass": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Secp256k1Add": { + "step_gas_cost": 406, "range_check": 29, - "step_gas_cost": 406 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256k1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 391, "range_check": 30, - "step_gas_cost": 391 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256k1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 239, "range_check": 11, - "step_gas_cost": 239 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256k1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 76501, "range_check": 7045, - "step_gas_cost": 76501 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256k1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 475, "range_check": 35, - "step_gas_cost": 475 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Add": { + "step_gas_cost": 589, "range_check": 57, - "step_gas_cost": 589 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256r1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 510, "range_check": 44, - "step_gas_cost": 510 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256r1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 241, "range_check": 11, - "step_gas_cost": 241 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 125340, "range_check": 13961, - "step_gas_cost": 125340 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256r1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 594, "range_check": 49, - "step_gas_cost": 594 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "SendMessageToL1": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Sha256ProcessBlock": { - "bitwise": 1115, - "range_check": 65, "step_gas_cost": 1852, - "syscall_base_gas_cost": 1 + "range_check": 65, + "bitwise": 1115, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageRead": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageWrite": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 } }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, + "l1_handler_max_amount_bounds": { + "l1_gas": 10000000000, + "l1_data_gas": 10000000000, + "l2_gas": 10000000000 + }, + "nop_entry_point_offset": -1, + "os_contract_addresses": { + "block_hash_contract_address": 1, + "alias_contract_address": 2, + "reserved_contract_address": 3 + }, + "sierra_array_len_bound": 4294967296, + "stored_block_hash_buffer": 10, "v1_bound_accounts_cairo0": [], "v1_bound_accounts_cairo1": [], "v1_bound_accounts_max_tip": "0x0", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 10000000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": { - "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 - }, "execute_syscalls": { "CallContract": { + "n_steps": 827, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 827 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 18 - }, + "n_steps": 1097, "n_memory_holes": 0, - "n_steps": 1097 + "builtin_instance_counter": { + "range_check_builtin": 18, + "pedersen_builtin": 7 + } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetClassHashAt": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "GetContractAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetExecutionInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 381, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 381 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 818, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 818 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { + "n_steps": 98, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 98 + } }, "Secp256k1Add": { + "n_steps": 410, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 410 + } }, "Secp256k1GetPointFromX": { + "n_steps": 395, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 395 + } }, "Secp256k1GetXy": { + "n_steps": 207, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 207 + } }, "Secp256k1Mul": { + "n_steps": 76505, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76505 + } }, "Secp256k1New": { + "n_steps": 461, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 461 + } }, "Secp256r1Add": { + "n_steps": 593, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 593 + } }, "Secp256r1GetPointFromX": { + "n_steps": 514, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 514 + } }, "Secp256r1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256r1Mul": { + "n_steps": 125344, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125344 + } }, "Secp256r1New": { + "n_steps": 580, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 580 + } }, "SendMessageToL1": { + "n_steps": 141, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 141 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": { - "bitwise_builtin": 1115, - "range_check_builtin": 65 - }, + "n_steps": 1855, "n_memory_holes": 0, - "n_steps": 1855 + "builtin_instance_counter": { + "range_check_builtin": 65, + "bitwise_builtin": 1115 + } }, "StorageRead": { + "n_steps": 87, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 87 + } }, "StorageWrite": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 2973, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 16, - "range_check_builtin": 53 - }, + "range_check_builtin": 53, + "pedersen_builtin": 16 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 2973 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 21 - }, "constant": { + "n_steps": 4015, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 72 - }, + "range_check_builtin": 72, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 21, "n_memory_holes": 0, - "n_steps": 4015 + "builtin_instance_counter": { + "pedersen_builtin": 2 + } } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 3763, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 14, - "range_check_builtin": 69 - }, + "range_check_builtin": 69, + "pedersen_builtin": 14 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 3763 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1233, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 16 - }, + "range_check_builtin": 16, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1233 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": false, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 17 + } + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_3.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_3.json index 8145353cfd3..6c50adc557f 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_3.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_3.json @@ -1,621 +1,688 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 0, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 1280, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 32, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": false, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 32, - 1000 + 1280, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": true, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": false, "enable_stateful_compression": false, - "enable_tip": false, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": false, + "block_direct_execute_call": false, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 10000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": false, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "100.0.0", + "enable_tip": false, + "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 0, - "bitwise": 594, - "ecdsa": 0, - "ecop": 0, - "keccak": 0, - "mul_mod": 0, - "pedersen": 0, - "poseidon": 0, - "range_check": 70, - "range_check96": 0, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 10000000000, + "validate_max_sierra_gas": 10000000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 10000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", - "l1_gas_index": 0, - "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, - "l1_gas": 10000000000, - "l2_gas": 10000000000 - }, - "l1_handler_version": 0, "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", + "l1_gas_index": 0, + "l1_data_gas_index": 2, "l2_gas_index": 1, "memory_hole_gas_cost": 10, - "nop_entry_point_offset": -1, - "os_contract_addresses": { - "alias_contract_address": 2, - "block_hash_contract_address": 1, - "reserved_contract_address": 3 + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 0, + "keccak": 0, + "pedersen": 0, + "bitwise": 594, + "ecop": 0, + "poseidon": 0, + "add_mod": 0, + "mul_mod": 0, + "ecdsa": 0, + "blake": 0 }, - "sierra_array_len_bound": 4294967296, "step_gas_cost": 100, - "stored_block_hash_buffer": 10, "syscall_base_gas_cost": { "step_gas_cost": 100 }, "syscall_gas_costs": { "CallContract": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Deploy": { "step_gas_cost": 700, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "EmitEvent": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetBlockHash": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "GetClassHashAt": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "GetExecutionInfo": { "step_gas_cost": 10, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Keccak": { - "syscall_base_gas_cost": 1 + "step_gas_cost": 0, + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "KeccakRound": 180000, "LibraryCall": { "step_gas_cost": 510, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "MetaTxV0": { "step_gas_cost": 0, - "syscall_base_gas_cost": 0 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "ReplaceClass": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Secp256k1Add": { + "step_gas_cost": 406, "range_check": 29, - "step_gas_cost": 406 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256k1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 391, "range_check": 30, - "step_gas_cost": 391 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256k1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 239, "range_check": 11, - "step_gas_cost": 239 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256k1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 76501, "range_check": 7045, - "step_gas_cost": 76501 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256k1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 475, "range_check": 35, - "step_gas_cost": 475 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Add": { + "step_gas_cost": 589, "range_check": 57, - "step_gas_cost": 589 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 0 }, "Secp256r1GetPointFromX": { - "memory_hole_gas_cost": 20, + "step_gas_cost": 510, "range_check": 44, - "step_gas_cost": 510 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 20 }, "Secp256r1GetXy": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 241, "range_check": 11, - "step_gas_cost": 241 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "Secp256r1Mul": { - "memory_hole_gas_cost": 2, + "step_gas_cost": 125340, "range_check": 13961, - "step_gas_cost": 125340 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 2 }, "Secp256r1New": { - "memory_hole_gas_cost": 40, + "step_gas_cost": 594, "range_check": 49, - "step_gas_cost": 594 + "bitwise": 0, + "syscall_base_gas_cost": 0, + "memory_hole_gas_cost": 40 }, "SendMessageToL1": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "Sha256ProcessBlock": { - "bitwise": 1115, - "range_check": 65, "step_gas_cost": 1852, - "syscall_base_gas_cost": 1 + "range_check": 65, + "bitwise": 1115, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageRead": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 }, "StorageWrite": { "step_gas_cost": 50, - "syscall_base_gas_cost": 1 + "range_check": 0, + "bitwise": 0, + "syscall_base_gas_cost": 1, + "memory_hole_gas_cost": 0 } }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, + "l1_handler_max_amount_bounds": { + "l1_gas": 10000000000, + "l1_data_gas": 10000000000, + "l2_gas": 10000000000 + }, + "nop_entry_point_offset": -1, + "os_contract_addresses": { + "block_hash_contract_address": 1, + "alias_contract_address": 2, + "reserved_contract_address": 3 + }, + "sierra_array_len_bound": 4294967296, + "stored_block_hash_buffer": 10, "v1_bound_accounts_cairo0": [], "v1_bound_accounts_cairo1": [], "v1_bound_accounts_max_tip": "0x0", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 10000000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": { - "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 - }, "execute_syscalls": { "CallContract": { + "n_steps": 827, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 827 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 18 - }, + "n_steps": 1097, "n_memory_holes": 0, - "n_steps": 1097 + "builtin_instance_counter": { + "range_check_builtin": 18, + "pedersen_builtin": 7 + } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetClassHashAt": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "GetContractAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetExecutionInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 0 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 381, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 381 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 818, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 818 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { + "n_steps": 98, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 98 + } }, "Secp256k1Add": { + "n_steps": 410, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 410 + } }, "Secp256k1GetPointFromX": { + "n_steps": 395, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 395 + } }, "Secp256k1GetXy": { + "n_steps": 207, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 207 + } }, "Secp256k1Mul": { + "n_steps": 76505, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76505 + } }, "Secp256k1New": { + "n_steps": 461, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 461 + } }, "Secp256r1Add": { + "n_steps": 593, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 593 + } }, "Secp256r1GetPointFromX": { + "n_steps": 514, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 514 + } }, "Secp256r1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256r1Mul": { + "n_steps": 125344, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125344 + } }, "Secp256r1New": { + "n_steps": 580, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 580 + } }, "SendMessageToL1": { + "n_steps": 141, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 141 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": { - "bitwise_builtin": 1115, - "range_check_builtin": 65 - }, + "n_steps": 1855, "n_memory_holes": 0, - "n_steps": 1855 + "builtin_instance_counter": { + "range_check_builtin": 65, + "bitwise_builtin": 1115 + } }, "StorageRead": { + "n_steps": 87, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 87 + } }, "StorageWrite": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 2973, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 16, - "range_check_builtin": 53 - }, + "range_check_builtin": 53, + "pedersen_builtin": 16 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 2973 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 21 - }, "constant": { + "n_steps": 4015, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 72 - }, + "range_check_builtin": 72, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 21, "n_memory_holes": 0, - "n_steps": 4015 + "builtin_instance_counter": { + "pedersen_builtin": 2 + } } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 3763, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 14, - "range_check_builtin": 69 - }, + "range_check_builtin": 69, + "pedersen_builtin": 14 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 3763 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1233, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 16 - }, + "range_check_builtin": 16, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1233 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": false, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 17 + } + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_4.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_4.json index da13ab65677..5f473b286e3 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_4.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_4.json @@ -1,516 +1,520 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 32, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 551, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 1280, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 32, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": true, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 32, - 1000 + 1280, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 32, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 551, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": true, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": true, "enable_stateful_compression": true, - "enable_tip": false, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": true, + "block_direct_execute_call": false, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 10000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": true, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "1.7.0", + "enable_tip": false, + "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 230, - "bitwise": 583, - "ecdsa": 10561, - "ecop": 4085, - "keccak": 136189, - "mul_mod": 604, - "pedersen": 4050, - "poseidon": 491, - "range_check": 70, - "range_check96": 56, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 1000000000, + "validate_max_sierra_gas": 100000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 1000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", + "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", "l1_gas_index": 0, + "l1_data_gas_index": 2, + "l2_gas_index": 1, + "memory_hole_gas_cost": 10, + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 56, + "keccak": 136189, + "pedersen": 4050, + "bitwise": 583, + "ecop": 4085, + "poseidon": 491, + "add_mod": 230, + "mul_mod": 604, + "ecdsa": 10561, + "blake": 0 + }, + "step_gas_cost": 100, + "syscall_base_gas_cost": { + "step_gas_cost": 100 + }, + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, "l1_gas": 10000000000, + "l1_data_gas": 10000000000, "l2_gas": 10000000000 }, - "l1_handler_version": 0, - "l2_gas": "L2_GAS", - "l2_gas_index": 1, - "memory_hole_gas_cost": 10, "nop_entry_point_offset": -1, "os_contract_addresses": { - "alias_contract_address": 2, "block_hash_contract_address": 1, + "alias_contract_address": 2, "reserved_contract_address": 3 }, "sierra_array_len_bound": 4294967296, - "step_gas_cost": 100, "stored_block_hash_buffer": 10, - "syscall_base_gas_cost": { - "step_gas_cost": 100 - }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", "v1_bound_accounts_cairo0": [], "v1_bound_accounts_cairo1": [], "v1_bound_accounts_max_tip": "0x0", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 100000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": { - "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 - }, "execute_syscalls": { "CallContract": { + "n_steps": 866, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 866 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 18 - }, + "n_steps": 1132, "n_memory_holes": 0, - "n_steps": 1132 + "builtin_instance_counter": { + "range_check_builtin": 18, + "pedersen_builtin": 7 + } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetClassHashAt": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } }, "GetContractAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetExecutionInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 100, "n_memory_holes": 0, - "n_steps": 100 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 281, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 281 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 842, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 842 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "Secp256k1Add": { + "n_steps": 410, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 410 + } }, "Secp256k1GetPointFromX": { + "n_steps": 395, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 395 + } }, "Secp256k1GetXy": { + "n_steps": 207, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 207 + } }, "Secp256k1Mul": { + "n_steps": 76505, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76505 + } }, "Secp256k1New": { + "n_steps": 461, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 461 + } }, "Secp256r1Add": { + "n_steps": 593, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 593 + } }, "Secp256r1GetPointFromX": { + "n_steps": 514, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 514 + } }, "Secp256r1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256r1Mul": { + "n_steps": 125344, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125344 + } }, "Secp256r1New": { + "n_steps": 580, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 580 + } }, "SendMessageToL1": { + "n_steps": 141, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 141 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": { - "bitwise_builtin": 1115, - "range_check_builtin": 65 - }, + "n_steps": 1865, "n_memory_holes": 0, - "n_steps": 1865 + "builtin_instance_counter": { + "range_check_builtin": 65, + "bitwise_builtin": 1115 + } }, "StorageRead": { + "n_steps": 87, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 87 + } }, "StorageWrite": { + "n_steps": 93, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 93 + } } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 3203, + "n_memory_holes": 0, "builtin_instance_counter": { + "range_check_builtin": 56, "pedersen_builtin": 16, - "poseidon_builtin": 4, - "range_check_builtin": 56 - }, + "poseidon_builtin": 4 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 3203 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 21 - }, "constant": { + "n_steps": 4161, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 72 - }, + "range_check_builtin": 72, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 21, "n_memory_holes": 0, - "n_steps": 4161 + "builtin_instance_counter": { + "pedersen_builtin": 2 + } } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 3918, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 14, - "range_check_builtin": 69 - }, + "range_check_builtin": 69, + "pedersen_builtin": 14 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 3918 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1279, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 16 - }, + "range_check_builtin": 16, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1279 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": false, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 17 + } + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_5.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_5.json index d0b09e10b69..9f54f3fb266 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_5.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_5.json @@ -1,538 +1,542 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 32, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 551, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 1280, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 32, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": true, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 32, - 1000 + 1280, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 32, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 551, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": true, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": true, "enable_stateful_compression": true, - "enable_tip": false, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": true, + "block_direct_execute_call": false, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 10000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": true, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "1.7.0", + "enable_tip": false, + "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 230, - "bitwise": 583, - "ecdsa": 10561, - "ecop": 4085, - "keccak": 136189, - "mul_mod": 604, - "pedersen": 4050, - "poseidon": 491, - "range_check": 70, - "range_check96": 56, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 1000000000, + "validate_max_sierra_gas": 100000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 1000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", + "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", "l1_gas_index": 0, + "l1_data_gas_index": 2, + "l2_gas_index": 1, + "memory_hole_gas_cost": 10, + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 56, + "keccak": 136189, + "pedersen": 4050, + "bitwise": 583, + "ecop": 4085, + "poseidon": 491, + "add_mod": 230, + "mul_mod": 604, + "ecdsa": 10561, + "blake": 0 + }, + "step_gas_cost": 100, + "syscall_base_gas_cost": { + "step_gas_cost": 100 + }, + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, "l1_gas": 10000000000, + "l1_data_gas": 10000000000, "l2_gas": 10000000000 }, - "l1_handler_version": 0, - "l2_gas": "L2_GAS", - "l2_gas_index": 1, - "memory_hole_gas_cost": 10, "nop_entry_point_offset": -1, "os_contract_addresses": { - "alias_contract_address": 2, "block_hash_contract_address": 1, + "alias_contract_address": 2, "reserved_contract_address": 3 }, "sierra_array_len_bound": 4294967296, - "step_gas_cost": 100, "stored_block_hash_buffer": 10, - "syscall_base_gas_cost": { - "step_gas_cost": 100 - }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", "v1_bound_accounts_cairo0": [ - "0x06d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", - "0x0309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", - "0x01a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", - "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2" + "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", + "0x309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", + "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", + "0x33434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2" ], "v1_bound_accounts_cairo1": [ - "0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", - "0x0737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", - "0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", - "0x04c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", - "0x01c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", - "0x0251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", - "0x0251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" + "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", + "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", + "0x5400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", + "0x4c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", + "0x1c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", + "0x251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", + "0x251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" ], "v1_bound_accounts_max_tip": "0x746a5288000", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 100000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": { - "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 - }, "execute_syscalls": { "CallContract": { + "n_steps": 866, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 866 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 1132, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 18 - }, + "range_check_builtin": 18, + "pedersen_builtin": 7 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 1132 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetClassHashAt": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } }, "GetContractAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetExecutionInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 100, "n_memory_holes": 0, - "n_steps": 100 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 281, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 281 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 842, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 842 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "Secp256k1Add": { + "n_steps": 410, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 410 + } }, "Secp256k1GetPointFromX": { + "n_steps": 395, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 395 + } }, "Secp256k1GetXy": { + "n_steps": 207, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 207 + } }, "Secp256k1Mul": { + "n_steps": 76505, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76505 + } }, "Secp256k1New": { + "n_steps": 461, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 461 + } }, "Secp256r1Add": { + "n_steps": 593, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 593 + } }, "Secp256r1GetPointFromX": { + "n_steps": 514, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 514 + } }, "Secp256r1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256r1Mul": { + "n_steps": 125344, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125344 + } }, "Secp256r1New": { + "n_steps": 580, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 580 + } }, "SendMessageToL1": { + "n_steps": 141, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 141 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": { - "bitwise_builtin": 1115, - "range_check_builtin": 65 - }, + "n_steps": 1865, "n_memory_holes": 0, - "n_steps": 1865 + "builtin_instance_counter": { + "range_check_builtin": 65, + "bitwise_builtin": 1115 + } }, "StorageRead": { + "n_steps": 87, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 87 + } }, "StorageWrite": { + "n_steps": 93, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 93 + } } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 3203, + "n_memory_holes": 0, "builtin_instance_counter": { + "range_check_builtin": 56, "pedersen_builtin": 16, - "poseidon_builtin": 4, - "range_check_builtin": 56 - }, + "poseidon_builtin": 4 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 3203 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 21 - }, "constant": { + "n_steps": 4161, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 72 - }, + "range_check_builtin": 72, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 21, "n_memory_holes": 0, - "n_steps": 4161 + "builtin_instance_counter": { + "pedersen_builtin": 2 + } } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 3918, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 14, - "range_check_builtin": 69 - }, + "range_check_builtin": 69, + "pedersen_builtin": 14 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 3918 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1279, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 16 - }, + "range_check_builtin": 16, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1279 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": false, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 17 + } + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_13_6.json b/crates/blockifier/resources/blockifier_versioned_constants_0_13_6.json index d0b09e10b69..9f54f3fb266 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_13_6.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_13_6.json @@ -1,538 +1,542 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 32, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 551, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 1280, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 32, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": false, - "comprehensive_state_diff": true, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 32, - 1000 + 1280, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 32, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 551, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": true, - "disable_deploy_in_validation_mode": false, - "enable_casm_hash_migration": false, - "enable_reverts": true, "enable_stateful_compression": true, - "enable_tip": false, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": true, + "block_direct_execute_call": false, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 10000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": false, + "enable_reverts": true, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "1.7.0", + "enable_tip": false, + "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 230, - "bitwise": 583, - "ecdsa": 10561, - "ecop": 4085, - "keccak": 136189, - "mul_mod": 604, - "pedersen": 4050, - "poseidon": 491, - "range_check": 70, - "range_check96": 56, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 1000000000, + "validate_max_sierra_gas": 100000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 1000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", + "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", "l1_gas_index": 0, + "l1_data_gas_index": 2, + "l2_gas_index": 1, + "memory_hole_gas_cost": 10, + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 56, + "keccak": 136189, + "pedersen": 4050, + "bitwise": 583, + "ecop": 4085, + "poseidon": 491, + "add_mod": 230, + "mul_mod": 604, + "ecdsa": 10561, + "blake": 0 + }, + "step_gas_cost": 100, + "syscall_base_gas_cost": { + "step_gas_cost": 100 + }, + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, "l1_handler_max_amount_bounds": { - "l1_data_gas": 10000000000, "l1_gas": 10000000000, + "l1_data_gas": 10000000000, "l2_gas": 10000000000 }, - "l1_handler_version": 0, - "l2_gas": "L2_GAS", - "l2_gas_index": 1, - "memory_hole_gas_cost": 10, "nop_entry_point_offset": -1, "os_contract_addresses": { - "alias_contract_address": 2, "block_hash_contract_address": 1, + "alias_contract_address": 2, "reserved_contract_address": 3 }, "sierra_array_len_bound": 4294967296, - "step_gas_cost": 100, "stored_block_hash_buffer": 10, - "syscall_base_gas_cost": { - "step_gas_cost": 100 - }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", "v1_bound_accounts_cairo0": [ - "0x06d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", - "0x0309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", - "0x01a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", - "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2" + "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", + "0x309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", + "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", + "0x33434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2" ], "v1_bound_accounts_cairo1": [ - "0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", - "0x0737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", - "0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", - "0x04c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", - "0x01c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", - "0x0251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", - "0x0251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" + "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", + "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", + "0x5400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", + "0x4c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", + "0x1c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", + "0x251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", + "0x251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" ], "v1_bound_accounts_max_tip": "0x746a5288000", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 100000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": { - "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 - }, "execute_syscalls": { "CallContract": { + "n_steps": 866, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 866 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 1132, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 18 - }, + "range_check_builtin": 18, + "pedersen_builtin": 7 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 1132 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetClassHashAt": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } }, "GetContractAddress": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetExecutionInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 64, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 64 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 100, "n_memory_holes": 0, - "n_steps": 100 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 281, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 281 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 842, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 842 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { + "n_steps": 0, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 0 - }, - "n_memory_holes": 0, - "n_steps": 0 + } }, "ReplaceClass": { + "n_steps": 104, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 104 + } }, "Secp256k1Add": { + "n_steps": 410, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 410 + } }, "Secp256k1GetPointFromX": { + "n_steps": 395, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 395 + } }, "Secp256k1GetXy": { + "n_steps": 207, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 207 + } }, "Secp256k1Mul": { + "n_steps": 76505, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76505 + } }, "Secp256k1New": { + "n_steps": 461, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 461 + } }, "Secp256r1Add": { + "n_steps": 593, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 593 + } }, "Secp256r1GetPointFromX": { + "n_steps": 514, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 514 + } }, "Secp256r1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256r1Mul": { + "n_steps": 125344, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125344 + } }, "Secp256r1New": { + "n_steps": 580, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 580 + } }, "SendMessageToL1": { + "n_steps": 141, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 141 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": { - "bitwise_builtin": 1115, - "range_check_builtin": 65 - }, + "n_steps": 1865, "n_memory_holes": 0, - "n_steps": 1865 + "builtin_instance_counter": { + "range_check_builtin": 65, + "bitwise_builtin": 1115 + } }, "StorageRead": { + "n_steps": 87, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 87 + } }, "StorageWrite": { + "n_steps": 93, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 93 + } } }, "execute_txs_inner": { "Declare": { - "calldata_factor": { - "builtin_instance_counter": {}, - "n_memory_holes": 0, - "n_steps": 0 - }, "constant": { + "n_steps": 3203, + "n_memory_holes": 0, "builtin_instance_counter": { + "range_check_builtin": 56, "pedersen_builtin": 16, - "poseidon_builtin": 4, - "range_check_builtin": 56 - }, + "poseidon_builtin": 4 + } + }, + "calldata_factor": { + "n_steps": 0, "n_memory_holes": 0, - "n_steps": 3203 + "builtin_instance_counter": {} } }, "DeployAccount": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 21 - }, "constant": { + "n_steps": 4161, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 23, - "range_check_builtin": 72 - }, + "range_check_builtin": 72, + "pedersen_builtin": 23 + } + }, + "calldata_factor": { + "n_steps": 21, "n_memory_holes": 0, - "n_steps": 4161 + "builtin_instance_counter": { + "pedersen_builtin": 2 + } } }, "InvokeFunction": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 3918, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 14, - "range_check_builtin": 69 - }, + "range_check_builtin": 69, + "pedersen_builtin": 14 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 3918 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1279, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 16 - }, + "range_check_builtin": 16, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1279 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": false, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 17 + } + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_14_0.json b/crates/blockifier/resources/blockifier_versioned_constants_0_14_0.json index 2ce3dda98f2..4cb5e48701f 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_14_0.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_14_0.json @@ -1,557 +1,561 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 32, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 551, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 1280, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 32, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": false, - "block_direct_execute_call": true, - "comprehensive_state_diff": true, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 32, - 1000 + 1280, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 32, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 551, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": true, - "disable_deploy_in_validation_mode": true, - "enable_casm_hash_migration": false, - "enable_reverts": true, "enable_stateful_compression": true, - "enable_tip": true, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": true, + "block_direct_execute_call": true, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 10000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": true, + "enable_reverts": true, + "enable_casm_hash_migration": false, + "block_casm_hash_v1_declares": false, "min_sierra_version_for_sierra_gas": "1.7.0", + "enable_tip": true, + "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 230, - "bitwise": 583, - "ecdsa": 10561, - "ecop": 4085, - "keccak": 136189, - "mul_mod": 604, - "pedersen": 4050, - "poseidon": 491, - "range_check": 70, - "range_check96": 56, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [ - "0x02c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc", - "0x00816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253", - "0x041bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3", - "0x6d612cac7690e6620055c617a83a5a0b43b9758d9d30f281ddbc77be1651a70" - ], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 1000000000, + "validate_max_sierra_gas": 100000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 1000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", + "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", "l1_gas_index": 0, + "l1_data_gas_index": 2, + "l2_gas_index": 1, + "memory_hole_gas_cost": 10, + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 56, + "keccak": 136189, + "pedersen": 4050, + "bitwise": 583, + "ecop": 4085, + "poseidon": 491, + "add_mod": 230, + "mul_mod": 604, + "ecdsa": 10561, + "blake": 0 + }, + "step_gas_cost": 100, + "syscall_base_gas_cost": { + "step_gas_cost": 100 + }, + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, "l1_handler_max_amount_bounds": { - "l1_data_gas": 20000, "l1_gas": 40000, + "l1_data_gas": 20000, "l2_gas": 100000000 }, - "l1_handler_version": 0, - "l2_gas": "L2_GAS", - "l2_gas_index": 1, - "memory_hole_gas_cost": 10, "nop_entry_point_offset": -1, "os_contract_addresses": { - "alias_contract_address": 2, "block_hash_contract_address": 1, + "alias_contract_address": 2, "reserved_contract_address": 3 }, "sierra_array_len_bound": 4294967296, - "step_gas_cost": 100, "stored_block_hash_buffer": 10, - "syscall_base_gas_cost": { - "step_gas_cost": 100 - }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", "v1_bound_accounts_cairo0": [ - "0x06d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", - "0x0309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", - "0x01a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", - "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2", - "0x041cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e", + "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", + "0x309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", + "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", + "0x33434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2", + "0x41cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e", "0x3530cc4759d78042f1b543bf797f5f3d647cde0388c33734cf91b7f7b9314a9" ], "v1_bound_accounts_cairo1": [ - "0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", - "0x0737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", - "0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", - "0x04c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", - "0x01c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", - "0x0251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", - "0x0251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" + "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", + "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", + "0x5400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", + "0x4c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", + "0x1c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", + "0x251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", + "0x251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" ], "v1_bound_accounts_max_tip": "0x746a5288000", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 100000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [ + "0x2c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc", + "0x816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253", + "0x41bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3", + "0x6d612cac7690e6620055c617a83a5a0b43b9758d9d30f281ddbc77be1651a70" + ] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": { - "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 - }, "execute_syscalls": { "CallContract": { + "n_steps": 903, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 18 - }, - "n_memory_holes": 0, - "n_steps": 903 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 1173, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 21 - }, + "range_check_builtin": 21, + "pedersen_builtin": 7 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 1173 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 107, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 107 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetClassHashAt": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } }, "GetContractAddress": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetExecutionInfo": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 100, "n_memory_holes": 0, - "n_steps": 100 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 281, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 281 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 879, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 18 - }, - "n_memory_holes": 0, - "n_steps": 879 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 1301, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 9, - "range_check_builtin": 20 - }, + "range_check_builtin": 20, + "pedersen_builtin": 9 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 1301 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "ReplaceClass": { + "n_steps": 106, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 106 + } }, "Secp256k1Add": { + "n_steps": 412, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 412 + } }, "Secp256k1GetPointFromX": { + "n_steps": 397, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 397 + } }, "Secp256k1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256k1Mul": { + "n_steps": 76507, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76507 + } }, "Secp256k1New": { + "n_steps": 463, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 463 + } }, "Secp256r1Add": { + "n_steps": 595, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 595 + } }, "Secp256r1GetPointFromX": { + "n_steps": 516, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 516 + } }, "Secp256r1GetXy": { + "n_steps": 211, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 211 + } }, "Secp256r1Mul": { + "n_steps": 125346, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125346 + } }, "Secp256r1New": { + "n_steps": 582, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 582 + } }, "SendMessageToL1": { + "n_steps": 144, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 144 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": { - "bitwise_builtin": 1115, - "range_check_builtin": 65 - }, + "n_steps": 1867, "n_memory_holes": 0, - "n_steps": 1867 + "builtin_instance_counter": { + "range_check_builtin": 65, + "bitwise_builtin": 1115 + } }, "StorageRead": { + "n_steps": 90, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 90 + } }, "StorageWrite": { + "n_steps": 96, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 96 + } } }, "execute_txs_inner": { "Declare": { + "n_steps": 3523, + "n_memory_holes": 0, "builtin_instance_counter": { + "range_check_builtin": 72, "pedersen_builtin": 4, - "poseidon_builtin": 15, - "range_check_builtin": 72 - }, - "n_memory_holes": 0, - "n_steps": 3523 + "poseidon_builtin": 15 + } }, "DeployAccount": { + "constant": { + "n_steps": 4583, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 93, + "pedersen_builtin": 11, + "poseidon_builtin": 11 + } + }, "calldata_factor": { "resources": { + "n_steps": 37, + "n_memory_holes": 0, "builtin_instance_counter": { "pedersen_builtin": 2, "poseidon_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 37 + } }, "scaling_factor": 2 - }, - "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 11, - "poseidon_builtin": 11, - "range_check_builtin": 93 - }, - "n_memory_holes": 0, - "n_steps": 4583 } }, "InvokeFunction": { + "constant": { + "n_steps": 4348, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 90, + "pedersen_builtin": 4, + "poseidon_builtin": 12 + } + }, "calldata_factor": { "resources": { + "n_steps": 11, + "n_memory_holes": 0, "builtin_instance_counter": { "poseidon_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 11 + } }, "scaling_factor": 2 - }, - "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 4, - "poseidon_builtin": 12, - "range_check_builtin": 90 - }, - "n_memory_holes": 0, - "n_steps": 4348 } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1315, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 19 - }, + "range_check_builtin": 19, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1315 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": false, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 17 + } + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_14_1.json b/crates/blockifier/resources/blockifier_versioned_constants_0_14_1.json index 6580beb52aa..d8e0642b159 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_14_1.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_14_1.json @@ -1,557 +1,561 @@ { - "allocation_cost": { - "blob_cost": { - "l1_data_gas": 32, - "l1_gas": 0, - "l2_gas": 0 - }, - "gas_cost": { - "l1_data_gas": 0, - "l1_gas": 551, - "l2_gas": 0 - } + "tx_event_limits": { + "max_data_length": 300, + "max_keys_length": 50, + "max_n_emitted_events": 1000 }, - "archival_data_gas_costs": { + "gateway": { + "max_calldata_length": 5000, + "max_contract_bytecode_size": 81920, + "max_proof_size": 0 + }, + "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, + "deprecated_l2_resource_gas_costs": { + "gas_per_data_felt": [ + 128, + 1000 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 1280, - 1 - ], - "gas_per_data_felt": [ - 5120, - 1 + 32, + 1000 ], "gas_per_proof": [ 0, 1 ] }, - "block_casm_hash_v1_declares": true, - "block_direct_execute_call": true, - "comprehensive_state_diff": true, - "deprecated_l2_resource_gas_costs": { + "archival_data_gas_costs": { + "gas_per_data_felt": [ + 5120, + 1 + ], "event_key_factor": [ 2, 1 ], "gas_per_code_byte": [ - 32, - 1000 + 1280, + 1 ], - "gas_per_data_felt": [ - 128, - 1000 + "gas_per_proof": [ + 0, + 1 ] }, + "allocation_cost": { + "blob_cost": { + "l1_gas": 0, + "l1_data_gas": 32, + "l2_gas": 0 + }, + "gas_cost": { + "l1_gas": 551, + "l1_data_gas": 0, + "l2_gas": 0 + } + }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, "disable_cairo0_redeclaration": true, - "disable_deploy_in_validation_mode": true, - "enable_casm_hash_migration": true, - "enable_reverts": true, "enable_stateful_compression": true, - "enable_tip": true, - "gateway": { - "max_calldata_length": 5000, - "max_contract_bytecode_size": 81920, - "max_proof_size": 0 - }, + "comprehensive_state_diff": true, + "block_direct_execute_call": true, "ignore_inner_event_resources": false, - "invoke_tx_max_n_steps": 10000000, - "max_recursion_depth": 50, + "disable_deploy_in_validation_mode": true, + "enable_reverts": true, + "enable_casm_hash_migration": true, + "block_casm_hash_v1_declares": true, "min_sierra_version_for_sierra_gas": "1.7.0", + "enable_tip": true, + "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [], - "builtin_gas_costs": { - "add_mod": 230, - "bitwise": 583, - "ecdsa": 10561, - "ecop": 4085, - "keccak": 136189, - "mul_mod": 604, - "pedersen": 4050, - "poseidon": 491, - "range_check": 70, - "range_check96": 56, - "blake": 0 - }, "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", - "data_gas_accounts": [ - "0x02c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc", - "0x00816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253", - "0x041bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3", - "0x6d612cac7690e6620055c617a83a5a0b43b9758d9d30f281ddbc77be1651a70" - ], "default_entry_point_selector": "0x0", - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 1000000000, + "validate_max_sierra_gas": 100000000, "error_block_number_out_of_range": "Block number out of range", - "error_entry_point_failed": "ENTRYPOINT_FAILED", - "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "error_invalid_argument": "Invalid argument", "error_invalid_input_len": "Invalid input length", + "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 1000000000, - "l1_data_gas": "L1_DATA", - "l1_data_gas_index": 2, + "error_entry_point_failed": "ENTRYPOINT_FAILED", + "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", "l1_gas": "L1_GAS", + "l2_gas": "L2_GAS", + "l1_data_gas": "L1_DATA", "l1_gas_index": 0, + "l1_data_gas_index": 2, + "l2_gas_index": 1, + "memory_hole_gas_cost": 10, + "builtin_gas_costs": { + "range_check": 70, + "range_check96": 56, + "keccak": 136189, + "pedersen": 4050, + "bitwise": 583, + "ecop": 4085, + "poseidon": 491, + "add_mod": 230, + "mul_mod": 604, + "ecdsa": 10561, + "blake": 0 + }, + "step_gas_cost": 100, + "syscall_base_gas_cost": { + "step_gas_cost": 100 + }, + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, "l1_handler_max_amount_bounds": { - "l1_data_gas": 20000, "l1_gas": 40000, + "l1_data_gas": 20000, "l2_gas": 100000000 }, - "l1_handler_version": 0, - "l2_gas": "L2_GAS", - "l2_gas_index": 1, - "memory_hole_gas_cost": 10, "nop_entry_point_offset": -1, "os_contract_addresses": { - "alias_contract_address": 2, "block_hash_contract_address": 1, + "alias_contract_address": 2, "reserved_contract_address": 3 }, "sierra_array_len_bound": 4294967296, - "step_gas_cost": 100, "stored_block_hash_buffer": 10, - "syscall_base_gas_cost": { - "step_gas_cost": 100 - }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", "v1_bound_accounts_cairo0": [ - "0x06d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", - "0x0309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", - "0x01a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", - "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2", - "0x041cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e", + "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", + "0x309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", + "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", + "0x33434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2", + "0x41cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e", "0x3530cc4759d78042f1b543bf797f5f3d647cde0388c33734cf91b7f7b9314a9" ], "v1_bound_accounts_cairo1": [ - "0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", - "0x0737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", - "0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", - "0x04c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", - "0x01c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", - "0x0251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", - "0x0251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" + "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", + "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", + "0x5400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", + "0x4c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", + "0x1c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", + "0x251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", + "0x251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" ], "v1_bound_accounts_max_tip": "0x746a5288000", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 100000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID" + "data_gas_accounts": [ + "0x2c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc", + "0x816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253", + "0x41bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3", + "0x6d612cac7690e6620055c617a83a5a0b43b9758d9d30f281ddbc77be1651a70" + ] }, "os_resources": { - "compute_os_kzg_commitment_info": { - "builtin_instance_counter": { - "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 - }, "execute_syscalls": { "CallContract": { + "n_steps": 903, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 18 - }, - "n_memory_holes": 0, - "n_steps": 903 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 1173, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 21 - }, + "range_check_builtin": 21, + "pedersen_builtin": 7 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 1173 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 107, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 107 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetClassHashAt": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } }, "GetContractAddress": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetExecutionInfo": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 100, "n_memory_holes": 0, - "n_steps": 100 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 281, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 281 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 879, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 18 - }, - "n_memory_holes": 0, - "n_steps": 879 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 - }, "constant": { + "n_steps": 1301, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 9, - "range_check_builtin": 20 - }, + "range_check_builtin": 20, + "pedersen_builtin": 9 + } + }, + "calldata_factor": { + "n_steps": 8, "n_memory_holes": 0, - "n_steps": 1301 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } }, "ReplaceClass": { + "n_steps": 106, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 106 + } }, "Secp256k1Add": { + "n_steps": 412, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 412 + } }, "Secp256k1GetPointFromX": { + "n_steps": 397, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 397 + } }, "Secp256k1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256k1Mul": { + "n_steps": 76507, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76507 + } }, "Secp256k1New": { + "n_steps": 463, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 463 + } }, "Secp256r1Add": { + "n_steps": 595, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 595 + } }, "Secp256r1GetPointFromX": { + "n_steps": 516, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 516 + } }, "Secp256r1GetXy": { + "n_steps": 211, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 211 + } }, "Secp256r1Mul": { + "n_steps": 125346, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125346 + } }, "Secp256r1New": { + "n_steps": 582, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 582 + } }, "SendMessageToL1": { + "n_steps": 144, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 144 + } }, "Sha256ProcessBlock": { - "builtin_instance_counter": { - "bitwise_builtin": 1115, - "range_check_builtin": 65 - }, + "n_steps": 1867, "n_memory_holes": 0, - "n_steps": 1867 + "builtin_instance_counter": { + "range_check_builtin": 65, + "bitwise_builtin": 1115 + } }, "StorageRead": { + "n_steps": 90, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 90 + } }, "StorageWrite": { + "n_steps": 96, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 96 + } } }, "execute_txs_inner": { "Declare": { + "n_steps": 3523, + "n_memory_holes": 0, "builtin_instance_counter": { + "range_check_builtin": 72, "pedersen_builtin": 4, - "poseidon_builtin": 15, - "range_check_builtin": 72 - }, - "n_memory_holes": 0, - "n_steps": 3523 + "poseidon_builtin": 15 + } }, "DeployAccount": { + "constant": { + "n_steps": 4583, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 93, + "pedersen_builtin": 11, + "poseidon_builtin": 11 + } + }, "calldata_factor": { "resources": { + "n_steps": 37, + "n_memory_holes": 0, "builtin_instance_counter": { "pedersen_builtin": 2, "poseidon_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 37 + } }, "scaling_factor": 2 - }, - "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 11, - "poseidon_builtin": 11, - "range_check_builtin": 93 - }, - "n_memory_holes": 0, - "n_steps": 4583 } }, "InvokeFunction": { + "constant": { + "n_steps": 4348, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 90, + "pedersen_builtin": 4, + "poseidon_builtin": 12 + } + }, "calldata_factor": { "resources": { + "n_steps": 11, + "n_memory_holes": 0, "builtin_instance_counter": { "poseidon_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 11 + } }, "scaling_factor": 2 - }, - "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 4, - "poseidon_builtin": 12, - "range_check_builtin": 90 - }, - "n_memory_holes": 0, - "n_steps": 4348 } }, "L1Handler": { - "calldata_factor": { - "builtin_instance_counter": { - "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 - }, "constant": { + "n_steps": 1315, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 19 - }, + "range_check_builtin": 19, + "pedersen_builtin": 11 + } + }, + "calldata_factor": { + "n_steps": 13, "n_memory_holes": 0, - "n_steps": 1315 + "builtin_instance_counter": { + "pedersen_builtin": 1 + } } } - } - }, - "segment_arena_cells": false, - "tx_event_limits": { - "max_data_length": 300, - "max_keys_length": 50, - "max_n_emitted_events": 1000 - }, - "validate_max_n_steps": 1000000, - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ] }, - "n_steps": [ - 25, - 10000 - ] + "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, + "builtin_instance_counter": { + "range_check_builtin": 17 + } + } } -} \ No newline at end of file +} diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_14_2.json b/crates/blockifier/resources/blockifier_versioned_constants_0_14_2.json index daa28fce299..fc627ebf7c7 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_14_2.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_14_2.json @@ -10,6 +10,8 @@ "max_proof_size": 480000 }, "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, "deprecated_l2_resource_gas_costs": { "gas_per_data_felt": [ 128, @@ -22,6 +24,10 @@ "gas_per_code_byte": [ 32, 1000 + ], + "gas_per_proof": [ + 0, + 1 ] }, "archival_data_gas_costs": { @@ -42,10 +48,6 @@ 1 ] }, - "disable_cairo0_redeclaration": true, - "enable_stateful_compression": true, - "comprehensive_state_diff": true, - "block_direct_execute_call": true, "allocation_cost": { "blob_cost": { "l1_gas": 0, @@ -58,12 +60,69 @@ "l2_gas": 402000 } }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, + "disable_cairo0_redeclaration": true, + "enable_stateful_compression": true, + "comprehensive_state_diff": true, + "block_direct_execute_call": true, "ignore_inner_event_resources": false, "disable_deploy_in_validation_mode": true, "enable_reverts": true, "enable_casm_hash_migration": false, "block_casm_hash_v1_declares": true, - "max_recursion_depth": 50, + "min_sierra_version_for_sierra_gas": "1.7.0", + "enable_tip": true, "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [ @@ -71,37 +130,34 @@ ], "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", "default_entry_point_selector": "0x0", - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 1100000000, + "validate_max_sierra_gas": 100000000, "error_block_number_out_of_range": "Block number out of range", "error_invalid_input_len": "Invalid input length", "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", "error_entry_point_failed": "ENTRYPOINT_FAILED", "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 1100000000, - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, "l1_gas": "L1_GAS", - "l1_gas_index": 0, - "l1_handler_version": 0, "l2_gas": "L2_GAS", "l1_data_gas": "L1_DATA", + "l1_gas_index": 0, "l1_data_gas_index": 2, "l2_gas_index": 1, "memory_hole_gas_cost": 10, - "nop_entry_point_offset": -1, - "os_contract_addresses": { - "block_hash_contract_address": 1, - "alias_contract_address": 2, - "reserved_contract_address": 3 - }, "builtin_gas_costs": { "range_check": 70, "range_check96": 56, @@ -115,445 +171,393 @@ "ecdsa": 10561, "blake": 3334 }, + "step_gas_cost": 100, + "syscall_base_gas_cost": { + "step_gas_cost": 100 + }, + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, "l1_handler_max_amount_bounds": { "l1_gas": 40000, "l1_data_gas": 20000, "l2_gas": 100000000 }, + "nop_entry_point_offset": -1, + "os_contract_addresses": { + "block_hash_contract_address": 1, + "alias_contract_address": 2, + "reserved_contract_address": 3 + }, "sierra_array_len_bound": 4294967296, - "step_gas_cost": 100, "stored_block_hash_buffer": 10, - "syscall_base_gas_cost": { - "step_gas_cost": 100 - }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 100000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID", "v1_bound_accounts_cairo0": [ - "0x06d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", - "0x0309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", - "0x01a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", - "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2", - "0x041cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e", + "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", + "0x309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", + "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", + "0x33434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2", + "0x41cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e", "0x3530cc4759d78042f1b543bf797f5f3d647cde0388c33734cf91b7f7b9314a9" ], "v1_bound_accounts_cairo1": [ - "0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", - "0x0737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", - "0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", - "0x04c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", - "0x01c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", - "0x0251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", - "0x0251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" + "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", + "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", + "0x5400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", + "0x4c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", + "0x1c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", + "0x251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", + "0x251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" ], "v1_bound_accounts_max_tip": "0x746a5288000", "data_gas_accounts": [ - "0x02c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc", - "0x00816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253", - "0x041bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3", + "0x2c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc", + "0x816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253", + "0x41bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3", "0x6d612cac7690e6620055c617a83a5a0b43b9758d9d30f281ddbc77be1651a70" ] }, "os_resources": { "execute_syscalls": { "CallContract": { + "n_steps": 903, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 18 - }, - "n_memory_holes": 0, - "n_steps": 903 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 21 - }, + "n_steps": 1173, "n_memory_holes": 0, - "n_steps": 1173 + "builtin_instance_counter": { + "range_check_builtin": 21, + "pedersen_builtin": 7 + } }, "calldata_factor": { + "n_steps": 8, + "n_memory_holes": 0, "builtin_instance_counter": { "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 + } } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 107, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 107 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetClassHashAt": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } }, "GetContractAddress": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetExecutionInfo": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 100, "n_memory_holes": 0, - "n_steps": 100 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 281, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 281 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 879, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 18 - }, - "n_memory_holes": 0, - "n_steps": 879 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 9, - "range_check_builtin": 20 - }, + "n_steps": 1301, "n_memory_holes": 0, - "n_steps": 1301 + "builtin_instance_counter": { + "range_check_builtin": 20, + "pedersen_builtin": 9 + } }, "calldata_factor": { + "n_steps": 8, + "n_memory_holes": 0, "builtin_instance_counter": { "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 + } } }, "ReplaceClass": { + "n_steps": 106, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 106 + } }, "Secp256k1Add": { + "n_steps": 412, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 412 + } }, "Secp256k1GetPointFromX": { + "n_steps": 397, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 397 + } }, "Secp256k1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256k1Mul": { + "n_steps": 76507, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76507 + } }, "Secp256k1New": { + "n_steps": 463, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 463 + } }, "Secp256r1Add": { + "n_steps": 595, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 595 + } }, "Secp256r1GetPointFromX": { + "n_steps": 516, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 516 + } }, "Secp256r1GetXy": { + "n_steps": 211, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 211 + } }, "Secp256r1Mul": { + "n_steps": 125346, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125346 + } }, "Secp256r1New": { + "n_steps": 582, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 582 + } }, "SendMessageToL1": { + "n_steps": 144, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 144 + } }, "Sha256ProcessBlock": { + "n_steps": 1867, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 65, "bitwise_builtin": 1115 - }, - "n_memory_holes": 0, - "n_steps": 1867 + } }, "StorageRead": { + "n_steps": 180, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 180 + } }, "StorageWrite": { + "n_steps": 449, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 449 + } } }, "execute_txs_inner": { "Declare": { + "n_steps": 3523, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 4, "range_check_builtin": 72, + "pedersen_builtin": 4, "poseidon_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 3523 + } }, "DeployAccount": { "constant": { + "n_steps": 4583, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, "range_check_builtin": 93, + "pedersen_builtin": 11, "poseidon_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 4583 + } }, "calldata_factor": { "resources": { - "builtin_instance_counter": { - "poseidon_builtin": 1, - "pedersen_builtin": 2 - }, + "n_steps": 37, "n_memory_holes": 0, - "n_steps": 37 + "builtin_instance_counter": { + "pedersen_builtin": 2, + "poseidon_builtin": 1 + } }, "scaling_factor": 2 } }, "InvokeFunction": { "constant": { + "n_steps": 4348, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 4, "range_check_builtin": 90, + "pedersen_builtin": 4, "poseidon_builtin": 12 - }, - "n_memory_holes": 0, - "n_steps": 4348 + } }, "calldata_factor": { "resources": { + "n_steps": 11, + "n_memory_holes": 0, "builtin_instance_counter": { "poseidon_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 11 + } }, "scaling_factor": 2 } }, "L1Handler": { "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 19 - }, + "n_steps": 1315, "n_memory_holes": 0, - "n_steps": 1315 + "builtin_instance_counter": { + "range_check_builtin": 19, + "pedersen_builtin": 11 + } }, "calldata_factor": { + "n_steps": 13, + "n_memory_holes": 0, "builtin_instance_counter": { "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 + } } } }, "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 + } } - }, - "validate_max_n_steps": 1000000, - "min_sierra_version_for_sierra_gas": "1.7.0", - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ] - }, - "n_steps": [ - 25, - 10000 - ] - }, - "enable_tip": true + } } diff --git a/crates/blockifier/resources/blockifier_versioned_constants_0_14_3.json b/crates/blockifier/resources/blockifier_versioned_constants_0_14_3.json index 0f423920989..afc7d682727 100644 --- a/crates/blockifier/resources/blockifier_versioned_constants_0_14_3.json +++ b/crates/blockifier/resources/blockifier_versioned_constants_0_14_3.json @@ -10,6 +10,8 @@ "max_proof_size": 480000 }, "invoke_tx_max_n_steps": 10000000, + "validate_max_n_steps": 1000000, + "max_recursion_depth": 50, "deprecated_l2_resource_gas_costs": { "gas_per_data_felt": [ 128, @@ -22,6 +24,10 @@ "gas_per_code_byte": [ 32, 1000 + ], + "gas_per_proof": [ + 0, + 1 ] }, "archival_data_gas_costs": { @@ -42,10 +48,6 @@ 1 ] }, - "disable_cairo0_redeclaration": true, - "enable_stateful_compression": true, - "comprehensive_state_diff": true, - "block_direct_execute_call": true, "allocation_cost": { "blob_cost": { "l1_gas": 0, @@ -58,12 +60,69 @@ "l2_gas": 402000 } }, + "vm_resource_fee_cost": { + "n_steps": [ + 25, + 10000 + ], + "builtins": { + "add_mod_builtin": [ + 4, + 100 + ], + "bitwise_builtin": [ + 16, + 100 + ], + "ec_op_builtin": [ + 256, + 100 + ], + "ecdsa_builtin": [ + 512, + 100 + ], + "keccak_builtin": [ + 512, + 100 + ], + "mul_mod_builtin": [ + 4, + 100 + ], + "output_builtin": [ + 0, + 1 + ], + "pedersen_builtin": [ + 8, + 100 + ], + "poseidon_builtin": [ + 8, + 100 + ], + "range_check96_builtin": [ + 4, + 100 + ], + "range_check_builtin": [ + 4, + 100 + ] + } + }, + "disable_cairo0_redeclaration": true, + "enable_stateful_compression": true, + "comprehensive_state_diff": true, + "block_direct_execute_call": true, "ignore_inner_event_resources": false, "disable_deploy_in_validation_mode": true, "enable_reverts": true, "enable_casm_hash_migration": true, "block_casm_hash_v1_declares": true, - "max_recursion_depth": 50, + "min_sierra_version_for_sierra_gas": "1.7.0", + "enable_tip": true, "segment_arena_cells": false, "os_constants": { "allowed_virtual_os_program_hashes": [ @@ -72,37 +131,34 @@ ], "constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", "default_entry_point_selector": "0x0", - "entry_point_initial_budget": { - "step_gas_cost": 100 - }, + "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", + "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", + "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", "entry_point_type_constructor": 2, "entry_point_type_external": 0, "entry_point_type_l1_handler": 1, + "validate_rounding_consts": { + "validate_block_number_rounding": 100, + "validate_timestamp_rounding": 3600 + }, + "validated": "VALID", + "execute_max_sierra_gas": 1100000000, + "validate_max_sierra_gas": 100000000, "error_block_number_out_of_range": "Block number out of range", "error_invalid_input_len": "Invalid input length", "error_invalid_argument": "Invalid argument", "error_out_of_gas": "Out of gas", "error_entry_point_failed": "ENTRYPOINT_FAILED", "error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND", - "execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "execute_max_sierra_gas": 1100000000, - "default_initial_gas_cost": { - "step_gas_cost": 100000000 - }, "l1_gas": "L1_GAS", - "l1_gas_index": 0, - "l1_handler_version": 0, "l2_gas": "L2_GAS", "l1_data_gas": "L1_DATA", + "l1_gas_index": 0, "l1_data_gas_index": 2, "l2_gas_index": 1, "memory_hole_gas_cost": 10, - "nop_entry_point_offset": -1, - "os_contract_addresses": { - "block_hash_contract_address": 1, - "alias_contract_address": 2, - "reserved_contract_address": 3 - }, "builtin_gas_costs": { "range_check": 70, "range_check96": 56, @@ -116,445 +172,393 @@ "ecdsa": 10561, "blake": 3334 }, + "step_gas_cost": 100, + "syscall_base_gas_cost": { + "step_gas_cost": 100 + }, + "entry_point_initial_budget": { + "step_gas_cost": 100 + }, + "default_initial_gas_cost": { + "step_gas_cost": 100000000 + }, + "l1_handler_version": 0, "l1_handler_max_amount_bounds": { "l1_gas": 40000, "l1_data_gas": 20000, "l2_gas": 100000000 }, + "nop_entry_point_offset": -1, + "os_contract_addresses": { + "block_hash_contract_address": 1, + "alias_contract_address": 2, + "reserved_contract_address": 3 + }, "sierra_array_len_bound": 4294967296, - "step_gas_cost": 100, "stored_block_hash_buffer": 10, - "syscall_base_gas_cost": { - "step_gas_cost": 100 - }, - "transfer_entry_point_selector": "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3", - "validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895", - "validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775", - "validate_max_sierra_gas": 100000000, - "validate_rounding_consts": { - "validate_block_number_rounding": 100, - "validate_timestamp_rounding": 3600 - }, - "validated": "VALID", "v1_bound_accounts_cairo0": [ - "0x06d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", - "0x0309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", - "0x01a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", - "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2", - "0x041cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e", + "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", + "0x309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc", + "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f", + "0x33434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2", + "0x41cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e", "0x3530cc4759d78042f1b543bf797f5f3d647cde0388c33734cf91b7f7b9314a9" ], "v1_bound_accounts_cairo1": [ - "0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", - "0x0737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", - "0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", - "0x04c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", - "0x01c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", - "0x0251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", - "0x0251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" + "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", + "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48", + "0x5400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c", + "0x4c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755", + "0x1c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb", + "0x251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49", + "0x251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" ], "v1_bound_accounts_max_tip": "0x746a5288000", "data_gas_accounts": [ - "0x02c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc", - "0x00816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253", - "0x041bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3", + "0x2c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc", + "0x816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253", + "0x41bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3", "0x6d612cac7690e6620055c617a83a5a0b43b9758d9d30f281ddbc77be1651a70" ] }, "os_resources": { "execute_syscalls": { "CallContract": { + "n_steps": 903, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 18 - }, - "n_memory_holes": 0, - "n_steps": 903 + } }, "DelegateCall": { + "n_steps": 713, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 19 - }, - "n_memory_holes": 0, - "n_steps": 713 + } }, "DelegateL1Handler": { + "n_steps": 692, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 692 + } }, "Deploy": { "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 7, - "range_check_builtin": 21 - }, + "n_steps": 1173, "n_memory_holes": 0, - "n_steps": 1173 + "builtin_instance_counter": { + "range_check_builtin": 21, + "pedersen_builtin": 7 + } }, "calldata_factor": { + "n_steps": 8, + "n_memory_holes": 0, "builtin_instance_counter": { "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 + } } }, "EmitEvent": { + "n_steps": 61, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 61 + } }, "GetBlockHash": { + "n_steps": 107, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 107 + } }, "GetBlockNumber": { - "builtin_instance_counter": {}, + "n_steps": 40, "n_memory_holes": 0, - "n_steps": 40 + "builtin_instance_counter": {} }, "GetBlockTimestamp": { - "builtin_instance_counter": {}, + "n_steps": 38, "n_memory_holes": 0, - "n_steps": 38 + "builtin_instance_counter": {} }, "GetCallerAddress": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetClassHashAt": { + "n_steps": 89, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 89 + } }, "GetContractAddress": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetExecutionInfo": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetSequencerAddress": { - "builtin_instance_counter": {}, + "n_steps": 34, "n_memory_holes": 0, - "n_steps": 34 + "builtin_instance_counter": {} }, "GetTxInfo": { + "n_steps": 125, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 2 - }, - "n_memory_holes": 0, - "n_steps": 125 + } }, "GetTxSignature": { - "builtin_instance_counter": {}, + "n_steps": 44, "n_memory_holes": 0, - "n_steps": 44 + "builtin_instance_counter": {} }, "Keccak": { - "builtin_instance_counter": {}, + "n_steps": 100, "n_memory_holes": 0, - "n_steps": 100 + "builtin_instance_counter": {} }, "KeccakRound": { + "n_steps": 281, + "n_memory_holes": 0, "builtin_instance_counter": { - "bitwise_builtin": 6, + "range_check_builtin": 56, "keccak_builtin": 1, - "range_check_builtin": 56 - }, - "n_memory_holes": 0, - "n_steps": 281 + "bitwise_builtin": 6 + } }, "LibraryCall": { + "n_steps": 879, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 18 - }, - "n_memory_holes": 0, - "n_steps": 879 + } }, "LibraryCallL1Handler": { + "n_steps": 659, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 659 + } }, "MetaTxV0": { "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 9, - "range_check_builtin": 20 - }, + "n_steps": 1301, "n_memory_holes": 0, - "n_steps": 1301 + "builtin_instance_counter": { + "range_check_builtin": 20, + "pedersen_builtin": 9 + } }, "calldata_factor": { + "n_steps": 8, + "n_memory_holes": 0, "builtin_instance_counter": { "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 8 + } } }, "ReplaceClass": { + "n_steps": 106, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 106 + } }, "Secp256k1Add": { + "n_steps": 412, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 29 - }, - "n_memory_holes": 0, - "n_steps": 412 + } }, "Secp256k1GetPointFromX": { + "n_steps": 397, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 30 - }, - "n_memory_holes": 0, - "n_steps": 397 + } }, "Secp256k1GetXy": { + "n_steps": 209, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 209 + } }, "Secp256k1Mul": { + "n_steps": 76507, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 7045 - }, - "n_memory_holes": 0, - "n_steps": 76507 + } }, "Secp256k1New": { + "n_steps": 463, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 35 - }, - "n_memory_holes": 0, - "n_steps": 463 + } }, "Secp256r1Add": { + "n_steps": 595, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 57 - }, - "n_memory_holes": 0, - "n_steps": 595 + } }, "Secp256r1GetPointFromX": { + "n_steps": 516, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 44 - }, - "n_memory_holes": 0, - "n_steps": 516 + } }, "Secp256r1GetXy": { + "n_steps": 211, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 211 + } }, "Secp256r1Mul": { + "n_steps": 125346, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 13961 - }, - "n_memory_holes": 0, - "n_steps": 125346 + } }, "Secp256r1New": { + "n_steps": 582, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 49 - }, - "n_memory_holes": 0, - "n_steps": 582 + } }, "SendMessageToL1": { + "n_steps": 144, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 144 + } }, "Sha256ProcessBlock": { + "n_steps": 1867, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 65, "bitwise_builtin": 1115 - }, - "n_memory_holes": 0, - "n_steps": 1867 + } }, "StorageRead": { + "n_steps": 180, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 180 + } }, "StorageWrite": { + "n_steps": 449, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 449 + } } }, "execute_txs_inner": { "Declare": { + "n_steps": 3523, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 4, "range_check_builtin": 72, + "pedersen_builtin": 4, "poseidon_builtin": 15 - }, - "n_memory_holes": 0, - "n_steps": 3523 + } }, "DeployAccount": { "constant": { + "n_steps": 4583, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 11, "range_check_builtin": 93, + "pedersen_builtin": 11, "poseidon_builtin": 11 - }, - "n_memory_holes": 0, - "n_steps": 4583 + } }, "calldata_factor": { "resources": { - "builtin_instance_counter": { - "poseidon_builtin": 1, - "pedersen_builtin": 2 - }, + "n_steps": 37, "n_memory_holes": 0, - "n_steps": 37 + "builtin_instance_counter": { + "pedersen_builtin": 2, + "poseidon_builtin": 1 + } }, "scaling_factor": 2 } }, "InvokeFunction": { "constant": { + "n_steps": 4348, + "n_memory_holes": 0, "builtin_instance_counter": { - "pedersen_builtin": 4, "range_check_builtin": 90, + "pedersen_builtin": 4, "poseidon_builtin": 12 - }, - "n_memory_holes": 0, - "n_steps": 4348 + } }, "calldata_factor": { "resources": { + "n_steps": 11, + "n_memory_holes": 0, "builtin_instance_counter": { "poseidon_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 11 + } }, "scaling_factor": 2 } }, "L1Handler": { "constant": { - "builtin_instance_counter": { - "pedersen_builtin": 11, - "range_check_builtin": 19 - }, + "n_steps": 1315, "n_memory_holes": 0, - "n_steps": 1315 + "builtin_instance_counter": { + "range_check_builtin": 19, + "pedersen_builtin": 11 + } }, "calldata_factor": { + "n_steps": 13, + "n_memory_holes": 0, "builtin_instance_counter": { "pedersen_builtin": 1 - }, - "n_memory_holes": 0, - "n_steps": 13 + } } } }, "compute_os_kzg_commitment_info": { + "n_steps": 113, + "n_memory_holes": 0, "builtin_instance_counter": { "range_check_builtin": 17 - }, - "n_memory_holes": 0, - "n_steps": 113 + } } - }, - "validate_max_n_steps": 1000000, - "min_sierra_version_for_sierra_gas": "1.7.0", - "vm_resource_fee_cost": { - "builtins": { - "add_mod_builtin": [ - 4, - 100 - ], - "bitwise_builtin": [ - 16, - 100 - ], - "ec_op_builtin": [ - 256, - 100 - ], - "ecdsa_builtin": [ - 512, - 100 - ], - "keccak_builtin": [ - 512, - 100 - ], - "mul_mod_builtin": [ - 4, - 100 - ], - "output_builtin": [ - 0, - 1 - ], - "pedersen_builtin": [ - 8, - 100 - ], - "poseidon_builtin": [ - 8, - 100 - ], - "range_check_builtin": [ - 4, - 100 - ], - "range_check96_builtin": [ - 4, - 100 - ] - }, - "n_steps": [ - 25, - 10000 - ] - }, - "enable_tip": true + } } diff --git a/crates/blockifier/resources/versioned_constants_diff_regression/0.13.0_0.13.1.txt b/crates/blockifier/resources/versioned_constants_diff_regression/0.13.0_0.13.1.txt index 9c3bda3c25d..2905deb09dc 100644 --- a/crates/blockifier/resources/versioned_constants_diff_regression/0.13.0_0.13.1.txt +++ b/crates/blockifier/resources/versioned_constants_diff_regression/0.13.0_0.13.1.txt @@ -9,9 +9,9 @@ ~ /gateway/max_contract_bytecode_size: 81920 ~ /ignore_inner_event_resources: true ~ /invoke_tx_max_n_steps: 4000000 -+ /os_constants/syscall_gas_costs/Secp256k1Mul/memory_hole_gas_cost: 2 +~ /os_constants/syscall_gas_costs/Secp256k1Mul/memory_hole_gas_cost: 2 ~ /os_constants/syscall_gas_costs/Secp256k1Mul/step_gas_cost: 76501 -+ /os_constants/syscall_gas_costs/Secp256r1Mul/memory_hole_gas_cost: 2 +~ /os_constants/syscall_gas_costs/Secp256r1Mul/memory_hole_gas_cost: 2 ~ /os_constants/syscall_gas_costs/Secp256r1Mul/step_gas_cost: 125340 ~ /os_constants/validate_rounding_consts/validate_block_number_rounding: 100 ~ /os_constants/validate_rounding_consts/validate_timestamp_rounding: 3600 diff --git a/crates/blockifier/resources/versioned_constants_diff_regression/0.13.1.1_0.13.2.txt b/crates/blockifier/resources/versioned_constants_diff_regression/0.13.1.1_0.13.2.txt index cf1fc55c61e..fd53fa73a02 100644 --- a/crates/blockifier/resources/versioned_constants_diff_regression/0.13.1.1_0.13.2.txt +++ b/crates/blockifier/resources/versioned_constants_diff_regression/0.13.1.1_0.13.2.txt @@ -3,7 +3,7 @@ ~ /disable_cairo0_redeclaration: true ~ /invoke_tx_max_n_steps: 10000000 ~ /os_constants/builtin_gas_costs/bitwise: 594 -+ /os_constants/syscall_gas_costs/Sha256ProcessBlock/bitwise: 1115 +~ /os_constants/syscall_gas_costs/Sha256ProcessBlock/bitwise: 1115 ~ /os_constants/syscall_gas_costs/Sha256ProcessBlock/range_check: 65 ~ /os_constants/syscall_gas_costs/Sha256ProcessBlock/step_gas_cost: 1852 ~ /os_constants/syscall_gas_costs/Sha256ProcessBlock/syscall_base_gas_cost: 1 diff --git a/crates/blockifier/resources/versioned_constants_diff_regression/0.13.4_0.13.5.txt b/crates/blockifier/resources/versioned_constants_diff_regression/0.13.4_0.13.5.txt index b2a54b5c648..943bf9cce20 100644 --- a/crates/blockifier/resources/versioned_constants_diff_regression/0.13.4_0.13.5.txt +++ b/crates/blockifier/resources/versioned_constants_diff_regression/0.13.4_0.13.5.txt @@ -1,14 +1,14 @@ -+ /os_constants/v1_bound_accounts_cairo0/0: "0x06d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4" -+ /os_constants/v1_bound_accounts_cairo0/1: "0x0309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc" -+ /os_constants/v1_bound_accounts_cairo0/2: "0x01a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f" -+ /os_constants/v1_bound_accounts_cairo0/3: "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2" -+ /os_constants/v1_bound_accounts_cairo1/0: "0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003" -+ /os_constants/v1_bound_accounts_cairo1/1: "0x0737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48" -+ /os_constants/v1_bound_accounts_cairo1/2: "0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c" -+ /os_constants/v1_bound_accounts_cairo1/3: "0x04c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755" -+ /os_constants/v1_bound_accounts_cairo1/4: "0x01c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb" -+ /os_constants/v1_bound_accounts_cairo1/5: "0x0251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49" -+ /os_constants/v1_bound_accounts_cairo1/6: "0x0251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" ++ /os_constants/v1_bound_accounts_cairo0/0: "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4" ++ /os_constants/v1_bound_accounts_cairo0/1: "0x309c042d3729173c7f2f91a34f04d8c509c1b292d334679ef1aabf8da0899cc" ++ /os_constants/v1_bound_accounts_cairo0/2: "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f" ++ /os_constants/v1_bound_accounts_cairo0/3: "0x33434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2" ++ /os_constants/v1_bound_accounts_cairo1/0: "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003" ++ /os_constants/v1_bound_accounts_cairo1/1: "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48" ++ /os_constants/v1_bound_accounts_cairo1/2: "0x5400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c" ++ /os_constants/v1_bound_accounts_cairo1/3: "0x4c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755" ++ /os_constants/v1_bound_accounts_cairo1/4: "0x1c0bb51e2ce73dc007601a1e7725453627254016c28f118251a71bbb0507fcb" ++ /os_constants/v1_bound_accounts_cairo1/5: "0x251830adc3d8b4d818c2c309d71f1958308e8c745212480c26e01120c69ee49" ++ /os_constants/v1_bound_accounts_cairo1/6: "0x251cac7b2f45d255b83b7a06dcdef70c8a8752f00ea776517c1c2243c7a06e5" ~ /os_constants/v1_bound_accounts_max_tip: "0x746a5288000" + /os_resources/execute_syscalls/Deploy/calldata_factor: {"builtin_instance_counter":{"pedersen_builtin":1},"n_memory_holes":0,"n_steps":8} + /os_resources/execute_syscalls/Deploy/constant: {"builtin_instance_counter":{"pedersen_builtin":7,"range_check_builtin":18},"n_memory_holes":0,"n_steps":1132} diff --git a/crates/blockifier/resources/versioned_constants_diff_regression/0.13.6_0.14.0.txt b/crates/blockifier/resources/versioned_constants_diff_regression/0.13.6_0.14.0.txt index e1a9ca7e685..8f5c205c2d1 100644 --- a/crates/blockifier/resources/versioned_constants_diff_regression/0.13.6_0.14.0.txt +++ b/crates/blockifier/resources/versioned_constants_diff_regression/0.13.6_0.14.0.txt @@ -1,14 +1,14 @@ ~ /block_direct_execute_call: true ~ /disable_deploy_in_validation_mode: true ~ /enable_tip: true -+ /os_constants/data_gas_accounts/0: "0x02c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc" -+ /os_constants/data_gas_accounts/1: "0x00816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253" -+ /os_constants/data_gas_accounts/2: "0x041bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3" ++ /os_constants/data_gas_accounts/0: "0x2c8c7e6fbcfb3e8e15a46648e8914c6aa1fc506fc1e7fb3d1e19630716174bc" ++ /os_constants/data_gas_accounts/1: "0x816dd0297efc55dc1e7559020a3a825e81ef734b558f03c83325d4da7e6253" ++ /os_constants/data_gas_accounts/2: "0x41bf1e71792aecb9df3e9d04e1540091c5e13122a731e02bec588f71dc1a5c3" + /os_constants/data_gas_accounts/3: "0x6d612cac7690e6620055c617a83a5a0b43b9758d9d30f281ddbc77be1651a70" ~ /os_constants/l1_handler_max_amount_bounds/l1_data_gas: 20000 ~ /os_constants/l1_handler_max_amount_bounds/l1_gas: 40000 ~ /os_constants/l1_handler_max_amount_bounds/l2_gas: 100000000 -+ /os_constants/v1_bound_accounts_cairo0/4: "0x041cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e" ++ /os_constants/v1_bound_accounts_cairo0/4: "0x41cb0280ebadaa75f996d8d92c6f265f6d040bb3ba442e5f86a554f1765244e" + /os_constants/v1_bound_accounts_cairo0/5: "0x3530cc4759d78042f1b543bf797f5f3d647cde0388c33734cf91b7f7b9314a9" ~ /os_resources/execute_syscalls/CallContract/builtin_instance_counter/range_check_builtin: 18 ~ /os_resources/execute_syscalls/CallContract/n_steps: 903 diff --git a/crates/blockifier/src/blockifier_versioned_constants.rs b/crates/blockifier/src/blockifier_versioned_constants.rs index 8ac36c7d665..948568150d3 100644 --- a/crates/blockifier/src/blockifier_versioned_constants.rs +++ b/crates/blockifier/src/blockifier_versioned_constants.rs @@ -104,7 +104,7 @@ impl RawVersionedConstants { let formatter = serde_json::ser::PrettyFormatter::with_indent(b" "); let mut serializer = serde_json::Serializer::with_formatter(&mut buffer, formatter); self.serialize(&mut serializer).unwrap(); - String::from_utf8(buffer).unwrap() + format!("{}\n", String::from_utf8(buffer).unwrap()) } } @@ -164,6 +164,7 @@ pub struct RawOsConstants { pub syscall_base_gas_cost: RawStepGasCost, // Deprecated field for computation of syscall gas costs in old blocks. // New VCs set this to null. + #[serde(skip_serializing_if = "Option::is_none")] pub syscall_gas_costs: Option, // Initial costs. diff --git a/crates/blockifier/src/versioned_constants_test.rs b/crates/blockifier/src/versioned_constants_test.rs index 3009e25a5fd..ca3dfed0aef 100644 --- a/crates/blockifier/src/versioned_constants_test.rs +++ b/crates/blockifier/src/versioned_constants_test.rs @@ -2,6 +2,7 @@ use std::path::PathBuf; use apollo_infra_utils::compile_time_cargo_manifest_dir; use cached::proc_macro::cached; +use expect_test::expect_file; use glob::{glob, Paths}; use indexmap::IndexMap; use pretty_assertions::assert_eq; @@ -369,5 +370,6 @@ fn test_deserialize_serialize_raw_vc() { .unwrap(); let serialized = raw_vc.to_string_pretty(); assert_eq!(raw_vc, serde_json::from_str(&serialized).unwrap()); + expect_file![file].assert_eq(&serialized); } }