Skip to content

Commit 12d1764

Browse files
committed
blockifier_reexecution: merge rpc_state_reader into state_reader
1 parent 97c8376 commit 12d1764

File tree

15 files changed

+434
-475
lines changed

15 files changed

+434
-475
lines changed

crates/blockifier_reexecution/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description = "Tool for re-executing historical Starknet blocks to verify transa
99
[features]
1010
blockifier_regression_https_testing = []
1111
cairo_native = ["blockifier/cairo_native"]
12+
testing = []
1213

1314
[dependencies]
1415
apollo_compile_to_casm.workspace = true

crates/blockifier_reexecution/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use starknet_api::block::GasPrice;
88
use starknet_api::StarknetApiError;
99
use thiserror::Error;
1010

11-
use crate::rpc_state_reader::rpc_objects::{RpcErrorCode, RpcErrorResponse};
11+
use crate::state_reader::rpc_objects::{RpcErrorCode, RpcErrorResponse};
1212

1313
#[derive(Debug, Error)]
1414
pub enum RPCStateReaderError {

crates/blockifier_reexecution/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pub mod cli;
22
pub mod compile;
33
pub mod errors;
4-
pub mod rpc_state_reader;
54
pub mod serde_utils;
65
pub mod state_reader;
76
pub mod utils;
@@ -12,10 +11,10 @@ use blockifier::context::BlockContext;
1211
use blockifier::state::cached_state::StateMaps;
1312
use blockifier::state::contract_class_manager::ContractClassManager;
1413
use errors::ReexecutionResult;
15-
use rpc_state_reader::config::RpcStateReaderConfig;
1614
use starknet_api::block::BlockNumber;
1715
use starknet_api::core::ChainId;
1816
use starknet_api::transaction::Transaction;
17+
use state_reader::config::RpcStateReaderConfig;
1918
use state_reader::rpc_state_reader::ConsecutiveRpcStateReaders;
2019

2120
/// Executes a single transaction at the given block number using the RPC state reader.

crates/blockifier_reexecution/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use blockifier_reexecution::cli::{
1010
TransactionInput,
1111
FULL_RESOURCES_DIR,
1212
};
13-
use blockifier_reexecution::rpc_state_reader::config::RpcStateReaderConfig;
13+
use blockifier_reexecution::state_reader::config::RpcStateReaderConfig;
1414
use blockifier_reexecution::state_reader::offline_state_reader::OfflineConsecutiveStateReaders;
1515
use blockifier_reexecution::state_reader::reexecution_state_reader::ConsecutiveReexecutionStateReaders;
1616
use blockifier_reexecution::state_reader::rpc_state_reader::ConsecutiveRpcStateReaders;

crates/blockifier_reexecution/src/rpc_state_reader/mod.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

crates/blockifier_reexecution/src/rpc_state_reader/rpc_state_reader.rs

Lines changed: 0 additions & 164 deletions
This file was deleted.

crates/blockifier_reexecution/src/rpc_state_reader/rpc_state_reader_test.rs

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)