Skip to content

Commit

Permalink
feat(blockifier): add OS constants
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrod-starkware committed Nov 26, 2024
1 parent 82a8181 commit 46909f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/blockifier/resources/versioned_constants_0_13_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"max_recursion_depth": 50,
"segment_arena_cells": false,
"os_constants": {
"alias_contract_address": 2,
"block_hash_contract_address": 1,
"call_contract_gas_cost": {
"entry_point_gas_cost": 1,
Expand Down Expand Up @@ -125,6 +126,7 @@
"step_gas_cost": 104,
"range_check_gas_cost": 1
},
"reserved_contract_address": 3,
"secp256k1_add_gas_cost": {
"range_check_gas_cost": 29,
"step_gas_cost": 410
Expand Down
4 changes: 3 additions & 1 deletion crates/blockifier/src/versioned_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,8 @@ impl OsConstants {
// not used by the blockifier but included for transparency. These constanst will be ignored
// during the creation of the struct containing the gas costs.

const ADDITIONAL_FIELDS: [&'static str; 29] = [
const ADDITIONAL_FIELDS: [&'static str; 31] = [
"alias_contract_address",
"block_hash_contract_address",
"constructor_entry_point_selector",
"default_entry_point_selector",
Expand All @@ -673,6 +674,7 @@ impl OsConstants {
"l1_data_gas",
"l1_data_gas_index",
"nop_entry_point_offset",
"reserved_contract_address",
"sierra_array_len_bound",
"stored_block_hash_buffer",
"transfer_entry_point_selector",
Expand Down

0 comments on commit 46909f2

Please sign in to comment.