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

Commit

Permalink
Remove STRK price sampling config (#1107)
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <[email protected]>
  • Loading branch information
dorimedini-starkware authored Nov 10, 2023
1 parent 2fa810a commit 230287d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/native_blockifier/src/py_block_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ impl PyBlockExecutor {
#[derive(Default)]
pub struct PyGeneralConfig {
pub starknet_os_config: PyOsConfig,
pub strk_l1_gas_price_source_config: PyStrkL1GasPriceSourceConfig,
pub min_strk_l1_gas_price: u128,
pub max_strk_l1_gas_price: u128,
pub cairo_resource_fee_weights: Arc<HashMap<String, f64>>,
Expand All @@ -236,12 +235,9 @@ impl FromPyObject<'_> for PyGeneralConfig {
let max_strk_l1_gas_price: u128 = py_attr(general_config, "max_strk_l1_gas_price")?;
let invoke_tx_max_n_steps: u32 = py_attr(general_config, "invoke_tx_max_n_steps")?;
let validate_max_n_steps: u32 = py_attr(general_config, "validate_max_n_steps")?;
let strk_l1_gas_price_source_config: PyStrkL1GasPriceSourceConfig =
py_attr(general_config, "strk_l1_gas_price_source_config")?;

Ok(Self {
starknet_os_config,
strk_l1_gas_price_source_config,
min_strk_l1_gas_price,
max_strk_l1_gas_price,
cairo_resource_fee_weights,
Expand All @@ -251,12 +247,6 @@ impl FromPyObject<'_> for PyGeneralConfig {
}
}

#[derive(FromPyObject, Clone, Default)]
pub struct PyStrkL1GasPriceSourceConfig {
pub l2_amm_addresses: Vec<PyFelt>,
pub override_gas_price: Option<PyFelt>,
}

#[derive(FromPyObject, Clone)]
pub struct PyOsConfig {
#[pyo3(from_py_with = "int_to_chain_id")]
Expand Down

0 comments on commit 230287d

Please sign in to comment.