Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Fix versioned constants
Browse files Browse the repository at this point in the history
  • Loading branch information
avi-starkware committed Jul 14, 2024
1 parent 58ecec4 commit 69cc7f9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 624 deletions.
51 changes: 21 additions & 30 deletions crates/blockifier/resources/versioned_constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"max_calldata_length": 5000,
"max_contract_bytecode_size": 81920
},
"invoke_tx_max_n_steps": 10000000,
"invoke_tx_max_n_steps": 4000000,
"l2_resource_gas_costs": {
"gas_per_data_felt": [
128,
Expand All @@ -23,7 +23,6 @@
1000
]
},
"disable_cairo0_redeclaration": true,
"max_recursion_depth": 50,
"os_constants": {
"nop_entry_point_offset": -1,
Expand Down Expand Up @@ -280,11 +279,6 @@
},
"n_memory_holes": 0
},
"Sha256ProcessBlock": {
"builtin_instance_counter": {},
"n_memory_holes": 0,
"n_steps": 0
},
"LibraryCall": {
"n_steps": 751,
"builtin_instance_counter": {
Expand All @@ -307,89 +301,86 @@
"n_memory_holes": 0
},
"Secp256k1Add": {
"n_steps": 410,
"n_steps": 408,
"builtin_instance_counter": {
"range_check_builtin": 29
},
"n_memory_holes": 0
},
"Secp256k1GetPointFromX": {
"n_steps": 395,
"n_steps": 393,
"builtin_instance_counter": {
"range_check_builtin": 30
},
"n_memory_holes": 0
},
"Secp256k1GetXy": {
"n_steps": 207,
"n_steps": 205,
"builtin_instance_counter": {
"range_check_builtin": 11
},
"n_memory_holes": 0
},
"Secp256k1Mul": {
"n_steps": 76505,
"n_steps": 76503,
"builtin_instance_counter": {
"range_check_builtin": 7045
},
"n_memory_holes": 0
},
"Secp256k1New": {
"n_steps": 461,
"n_steps": 459,
"builtin_instance_counter": {
"range_check_builtin": 35
},
"n_memory_holes": 0
},
"Secp256r1Add": {
"n_steps": 593,
"n_steps": 591,
"builtin_instance_counter": {
"range_check_builtin": 57
},
"n_memory_holes": 0
},
"Secp256r1GetPointFromX": {
"n_steps": 514,
"n_steps": 512,
"builtin_instance_counter": {
"range_check_builtin": 44
},
"n_memory_holes": 0
},
"Secp256r1GetXy": {
"n_steps": 209,
"n_steps": 207,
"builtin_instance_counter": {
"range_check_builtin": 11
},
"n_memory_holes": 0
},
"Secp256r1Mul": {
"n_steps": 125344,
"n_steps": 125342,
"builtin_instance_counter": {
"range_check_builtin": 13961
},
"n_memory_holes": 0
},
"Secp256r1New": {
"n_steps": 580,
"n_steps": 578,
"builtin_instance_counter": {
"range_check_builtin": 49
},
"n_memory_holes": 0
},
"SendMessageToL1": {
"n_steps": 141,
"n_steps": 139,
"builtin_instance_counter": {
"range_check_builtin": 1
},
"n_memory_holes": 0
},
"Sha256ProcessBlock": {
"n_steps": 1855,
"builtin_instance_counter": {
"range_check_builtin": 65,
"bitwise_builtin": 1115
},
"n_memory_holes": 0
"builtin_instance_counter": {},
"n_memory_holes": 0,
"n_steps": 0
},
"StorageRead": {
"n_steps": 87,
Expand Down Expand Up @@ -557,8 +548,8 @@
"validate_max_n_steps": 1000000,
"vm_resource_fee_cost": {
"add_mod_builtin": [
4,
100
0,
1
],
"bitwise_builtin": [
16,
Expand All @@ -577,8 +568,8 @@
100
],
"mul_mod_builtin": [
4,
100
0,
1
],
"n_steps": [
25,
Expand All @@ -601,8 +592,8 @@
100
],
"range_check96_builtin": [
4,
100
0,
1
]
}
}
Loading

0 comments on commit 69cc7f9

Please sign in to comment.