Skip to content

Commit

Permalink
Copy-Pasted 0.13.2.1 versioned constants into 0.13.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
amosStarkware committed Dec 26, 2024
1 parent 6f09863 commit 5ed2e4d
Showing 1 changed file with 74 additions and 76 deletions.
150 changes: 74 additions & 76 deletions crates/blockifier/resources/versioned_constants_0_13_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@
]
},
"disable_cairo0_redeclaration": true,
"enable_stateful_compression": true,
"comprehensive_state_diff": true,
"enable_stateful_compression": false,
"comprehensive_state_diff": false,
"allocation_cost": {
"blob_cost": {
"l1_gas": 0,
"l1_data_gas": 32,
"l1_data_gas": 0,
"l2_gas": 0
},
"gas_cost": {
"l1_gas": 551,
"l1_gas": 0,
"l1_data_gas": 0,
"l2_gas": 0
}
},
"ignore_inner_event_resources": false,
"enable_reverts": true,
"max_recursion_depth": 50,
"enable_reverts": false,
"segment_arena_cells": false,
"os_constants": {
"constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194",
Expand All @@ -72,16 +72,18 @@
"error_entry_point_failed": "ENTRYPOINT_FAILED",
"error_entry_point_not_found": "ENTRYPOINT_NOT_FOUND",
"execute_entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad",
"execute_max_sierra_gas": 1000000000,
"execute_max_sierra_gas": 10000000000,
"fee_transfer_gas_cost": {
"entry_point_initial_budget": 1,
"step_gas_cost": 600
},
"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_data_gas_index": 2,
"l2_gas_index": 1,
"memory_hole_gas_cost": 10,
"nop_entry_point_offset": -1,
Expand All @@ -92,14 +94,14 @@
},
"builtin_gas_costs": {
"range_check": 70,
"keccak": 136189,
"pedersen": 4050,
"bitwise": 583,
"ecop": 4085,
"poseidon": 491,
"add_mod": 230,
"mul_mod": 604,
"ecdsa": 10561
"keccak": 0,
"pedersen": 0,
"bitwise": 594,
"ecop": 0,
"poseidon": 0,
"add_mod": 0,
"mul_mod": 0,
"ecdsa": 0
},
"sierra_array_len_bound": 4294967296,
"step_gas_cost": 100,
Expand All @@ -111,7 +113,7 @@
"validate_declare_entry_point_selector": "0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3",
"validate_deploy_entry_point_selector": "0x36fcbf06cd96843058359e1a75928beacfac10727dab22a3972f0af8aa92895",
"validate_entry_point_selector": "0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775",
"validate_max_sierra_gas": 100000000,
"validate_max_sierra_gas": 10000000000,
"validate_rounding_consts": {
"validate_block_number_rounding": 100,
"validate_timestamp_rounding": 3600
Expand All @@ -120,116 +122,115 @@
"syscall_gas_costs": {
"call_contract": {
"entry_point_initial_budget": 1,
"step_gas_cost": 860,
"range_check": 15
"step_gas_cost": 510,
"syscall_base_gas_cost": 1
},
"deploy": {
"entry_point_initial_budget": 1,
"step_gas_cost": 1128,
"range_check": 18,
"pedersen": 7
"step_gas_cost": 700,
"syscall_base_gas_cost": 1
},
"emit_event": {
"step_gas_cost": 100,
"range_check": 1
"step_gas_cost": 10,
"syscall_base_gas_cost": 1
},
"get_block_hash": {
"step_gas_cost": 104,
"range_check": 2
"step_gas_cost": 50,
"syscall_base_gas_cost": 1
},
"get_execution_info": {
"step_gas_cost": 100,
"range_check": 1
"step_gas_cost": 10,
"syscall_base_gas_cost": 1
},
"keccak": {
"syscall_base_gas_cost": 1
},
"keccak_round_cost": 180000,
"library_call": {
"entry_point_initial_budget": 1,
"step_gas_cost": 836,
"range_check": 15
"step_gas_cost": 510,
"syscall_base_gas_cost": 1
},
"sha256_process_block": {
"step_gas_cost": 1855,
"step_gas_cost": 1852,
"range_check": 65,
"bitwise": 1115,
"syscall_base_gas_cost": 1
},
"replace_class": {
"step_gas_cost": 104,
"range_check": 1
"step_gas_cost": 50,
"syscall_base_gas_cost": 1
},
"secp256k1_add": {
"range_check": 29,
"step_gas_cost": 410
"step_gas_cost": 406
},
"secp256k1_get_point_from_x": {
"memory_hole_gas_cost": 20,
"range_check": 30,
"step_gas_cost": 395
"step_gas_cost": 391
},
"secp256k1_get_xy": {
"memory_hole_gas_cost": 40,
"range_check": 11,
"step_gas_cost": 207
"step_gas_cost": 239
},
"secp256k1_mul": {
"memory_hole_gas_cost": 2,
"range_check": 7045,
"step_gas_cost": 76505
"step_gas_cost": 76501
},
"secp256k1_new": {
"memory_hole_gas_cost": 40,
"range_check": 35,
"step_gas_cost": 461
"step_gas_cost": 475
},
"secp256r1_add": {
"range_check": 57,
"step_gas_cost": 593
"step_gas_cost": 589
},
"secp256r1_get_point_from_x": {
"memory_hole_gas_cost": 20,
"range_check": 44,
"step_gas_cost": 514
"step_gas_cost": 510
},
"secp256r1_get_xy": {
"memory_hole_gas_cost": 40,
"range_check": 11,
"step_gas_cost": 209
"step_gas_cost": 241
},
"secp256r1_mul": {
"memory_hole_gas_cost": 2,
"range_check": 13961,
"step_gas_cost": 125344
"step_gas_cost": 125340
},
"secp256r1_new": {
"memory_hole_gas_cost": 40,
"range_check": 49,
"step_gas_cost": 580
"step_gas_cost": 594
},
"send_message_to_l1": {
"step_gas_cost": 141,
"range_check": 1
"step_gas_cost": 50,
"syscall_base_gas_cost": 1
},
"storage_read": {
"step_gas_cost": 100,
"range_check": 1
"step_gas_cost": 50,
"syscall_base_gas_cost": 1
},
"storage_write": {
"step_gas_cost": 100,
"range_check": 1
"step_gas_cost": 50,
"syscall_base_gas_cost": 1
},
"get_class_hash_at": {
"step_gas_cost": 100,
"range_check": 1
"step_gas_cost": 0,
"syscall_base_gas_cost": 0
}
}
},
"os_resources": {
"execute_syscalls": {
"CallContract": {
"n_steps": 866,
"n_steps": 827,
"builtin_instance_counter": {
"range_check_builtin": 15
},
Expand All @@ -250,7 +251,7 @@
"n_memory_holes": 0
},
"Deploy": {
"n_steps": 1132,
"n_steps": 1097,
"builtin_instance_counter": {
"pedersen_builtin": 7,
"range_check_builtin": 18
Expand Down Expand Up @@ -329,7 +330,7 @@
"n_memory_holes": 0
},
"LibraryCall": {
"n_steps": 842,
"n_steps": 818,
"builtin_instance_counter": {
"range_check_builtin": 15
},
Expand All @@ -343,7 +344,7 @@
"n_memory_holes": 0
},
"ReplaceClass": {
"n_steps": 104,
"n_steps": 98,
"builtin_instance_counter": {
"range_check_builtin": 1
},
Expand Down Expand Up @@ -427,7 +428,7 @@
"n_memory_holes": 0
},
"Sha256ProcessBlock": {
"n_steps": 1865,
"n_steps": 1855,
"builtin_instance_counter": {
"range_check_builtin": 65,
"bitwise_builtin": 1115
Expand All @@ -442,29 +443,26 @@
"n_memory_holes": 0
},
"StorageWrite": {
"n_steps": 93,
"n_steps": 89,
"builtin_instance_counter": {
"range_check_builtin": 1
},
"n_memory_holes": 0
},
"GetClassHashAt": {
"n_steps": 89,
"builtin_instance_counter": {
"range_check_builtin": 1
},
"n_steps": 0,
"builtin_instance_counter": {},
"n_memory_holes": 0
}
},
"execute_txs_inner": {
"Declare": {
"deprecated_resources": {
"constant": {
"n_steps": 3203,
"n_steps": 2973,
"builtin_instance_counter": {
"pedersen_builtin": 16,
"range_check_builtin": 56,
"poseidon_builtin": 4
"range_check_builtin": 53
},
"n_memory_holes": 0
},
Expand All @@ -476,11 +474,11 @@
},
"resources": {
"constant": {
"n_steps": 3346,
"n_steps": 3079,
"builtin_instance_counter": {
"pedersen_builtin": 4,
"range_check_builtin": 64,
"poseidon_builtin": 14
"range_check_builtin": 58,
"poseidon_builtin": 10
},
"n_memory_holes": 0
},
Expand All @@ -494,7 +492,7 @@
"DeployAccount": {
"deprecated_resources": {
"constant": {
"n_steps": 4161,
"n_steps": 4015,
"builtin_instance_counter": {
"pedersen_builtin": 23,
"range_check_builtin": 72
Expand All @@ -511,10 +509,10 @@
},
"resources": {
"constant": {
"n_steps": 4321,
"n_steps": 4137,
"builtin_instance_counter": {
"pedersen_builtin": 11,
"range_check_builtin": 80,
"range_check_builtin": 77,
"poseidon_builtin": 10
},
"n_memory_holes": 0
Expand All @@ -531,7 +529,7 @@
"InvokeFunction": {
"deprecated_resources": {
"constant": {
"n_steps": 3918,
"n_steps": 3763,
"builtin_instance_counter": {
"pedersen_builtin": 14,
"range_check_builtin": 69
Expand All @@ -548,10 +546,10 @@
},
"resources": {
"constant": {
"n_steps": 4102,
"n_steps": 3904,
"builtin_instance_counter": {
"pedersen_builtin": 4,
"range_check_builtin": 77,
"range_check_builtin": 74,
"poseidon_builtin": 11
},
"n_memory_holes": 0
Expand All @@ -568,7 +566,7 @@
"L1Handler": {
"deprecated_resources": {
"constant": {
"n_steps": 1279,
"n_steps": 1233,
"builtin_instance_counter": {
"pedersen_builtin": 11,
"range_check_builtin": 16
Expand Down Expand Up @@ -608,7 +606,7 @@
}
},
"validate_max_n_steps": 1000000,
"min_sierra_version_for_sierra_gas": "1.6.0",
"min_sierra_version_for_sierra_gas": "100.0.0",
"vm_resource_fee_cost": {
"builtins": {
"add_mod_builtin": [
Expand Down Expand Up @@ -661,4 +659,4 @@
10000
]
}
}
}

0 comments on commit 5ed2e4d

Please sign in to comment.