diff --git a/crates/blockifier/resources/versioned_constants_0_13_0.json b/crates/blockifier/resources/versioned_constants_0_13_0.json index 892a6ce418..be639a429a 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_0.json +++ b/crates/blockifier/resources/versioned_constants_0_13_0.json @@ -8,6 +8,11 @@ "segment_arena_cells": true, "disable_cairo0_redeclaration": false, "enable_stateful_compression": false, + "allocation_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, "ignore_inner_event_resources": false, "enable_reverts": false, "tx_event_limits": { diff --git a/crates/blockifier/resources/versioned_constants_0_13_1.json b/crates/blockifier/resources/versioned_constants_0_13_1.json index 70bc1de137..918492d0bb 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_1.json +++ b/crates/blockifier/resources/versioned_constants_0_13_1.json @@ -41,6 +41,11 @@ "segment_arena_cells": true, "disable_cairo0_redeclaration": false, "enable_stateful_compression": false, + "allocation_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, "ignore_inner_event_resources": true, "enable_reverts": false, "os_constants": { diff --git a/crates/blockifier/resources/versioned_constants_0_13_1_1.json b/crates/blockifier/resources/versioned_constants_0_13_1_1.json index 8509c4097e..884485717b 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_1_1.json +++ b/crates/blockifier/resources/versioned_constants_0_13_1_1.json @@ -41,6 +41,11 @@ "segment_arena_cells": true, "disable_cairo0_redeclaration": false, "enable_stateful_compression": false, + "allocation_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, "ignore_inner_event_resources": false, "enable_reverts": false, "os_constants": { diff --git a/crates/blockifier/resources/versioned_constants_0_13_2.json b/crates/blockifier/resources/versioned_constants_0_13_2.json index c6ef3031c9..091f563da4 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_2.json +++ b/crates/blockifier/resources/versioned_constants_0_13_2.json @@ -39,6 +39,11 @@ }, "disable_cairo0_redeclaration": true, "enable_stateful_compression": false, + "allocation_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, "ignore_inner_event_resources": false, "enable_reverts": false, "max_recursion_depth": 50, diff --git a/crates/blockifier/resources/versioned_constants_0_13_2_1.json b/crates/blockifier/resources/versioned_constants_0_13_2_1.json index 35310a1e0c..e2f0e5011b 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_2_1.json +++ b/crates/blockifier/resources/versioned_constants_0_13_2_1.json @@ -39,6 +39,11 @@ }, "disable_cairo0_redeclaration": true, "enable_stateful_compression": false, + "allocation_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, "ignore_inner_event_resources": false, "max_recursion_depth": 50, "enable_reverts": false, diff --git a/crates/blockifier/resources/versioned_constants_0_13_3.json b/crates/blockifier/resources/versioned_constants_0_13_3.json index 35310a1e0c..e2f0e5011b 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_3.json +++ b/crates/blockifier/resources/versioned_constants_0_13_3.json @@ -39,6 +39,11 @@ }, "disable_cairo0_redeclaration": true, "enable_stateful_compression": false, + "allocation_cost": { + "l1_gas": 0, + "l1_data_gas": 0, + "l2_gas": 0 + }, "ignore_inner_event_resources": false, "max_recursion_depth": 50, "enable_reverts": false, diff --git a/crates/blockifier/resources/versioned_constants_0_13_4.json b/crates/blockifier/resources/versioned_constants_0_13_4.json index 1bf7c6fd66..e1f80463f3 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_4.json +++ b/crates/blockifier/resources/versioned_constants_0_13_4.json @@ -39,6 +39,11 @@ }, "disable_cairo0_redeclaration": true, "enable_stateful_compression": true, + "allocation_cost": { + "l1_gas": 0, + "l1_data_gas": 32, + "l2_gas": 0 + }, "ignore_inner_event_resources": false, "enable_reverts": true, "max_recursion_depth": 50, diff --git a/crates/blockifier/src/versioned_constants.rs b/crates/blockifier/src/versioned_constants.rs index f081f5696a..6b58f5eb54 100644 --- a/crates/blockifier/src/versioned_constants.rs +++ b/crates/blockifier/src/versioned_constants.rs @@ -16,7 +16,7 @@ use serde::de::Error as DeserializationError; use serde::{Deserialize, Deserializer, Serialize}; use serde_json::{Map, Number, Value}; use starknet_api::block::{GasPrice, StarknetVersion}; -use starknet_api::execution_resources::GasAmount; +use starknet_api::execution_resources::{GasAmount, GasVector}; use starknet_api::transaction::fields::GasVectorComputationMode; use strum::IntoEnumIterator; use thiserror::Error; @@ -185,6 +185,8 @@ pub struct VersionedConstants { // Fee related. pub(crate) vm_resource_fee_cost: Arc, + // Cost of allocating a storage cell. + pub allocation_cost: GasVector, // Resources. os_resources: Arc,