From fbe5aa82fd5dbfbab75cea396aa5ed80ddf02b4d Mon Sep 17 00:00:00 2001 From: Yulong Wu Date: Thu, 12 Oct 2023 16:40:32 +0100 Subject: [PATCH] Move files --- simulator/src/ledger/mod.rs | 3 --- simulator/src/lib.rs | 2 -- simulator/src/resim/cmd_show.rs | 2 +- simulator/src/{ledger => resim}/dumper.rs | 0 simulator/src/resim/error.rs | 2 +- simulator/src/resim/mod.rs | 2 ++ 6 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 simulator/src/ledger/mod.rs rename simulator/src/{ledger => resim}/dumper.rs (100%) diff --git a/simulator/src/ledger/mod.rs b/simulator/src/ledger/mod.rs deleted file mode 100644 index 58164fa6e6f..00000000000 --- a/simulator/src/ledger/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -mod dumper; - -pub use dumper::*; diff --git a/simulator/src/lib.rs b/simulator/src/lib.rs index e3088ec2c2d..fae47a4536a 100644 --- a/simulator/src/lib.rs +++ b/simulator/src/lib.rs @@ -1,5 +1,3 @@ -/// Provides a file-based ledger. -pub mod ledger; /// Transaction replay. pub mod replay; /// Radix Engine Simulator CLI. diff --git a/simulator/src/resim/cmd_show.rs b/simulator/src/resim/cmd_show.rs index 7cdd068cc2b..d2ab1325a7f 100644 --- a/simulator/src/resim/cmd_show.rs +++ b/simulator/src/resim/cmd_show.rs @@ -1,4 +1,4 @@ -use crate::{ledger::*, resim::*}; +use crate::resim::*; use clap::Parser; use radix_engine::types::*; use radix_engine_stores::rocks_db::RocksdbSubstateStore; diff --git a/simulator/src/ledger/dumper.rs b/simulator/src/resim/dumper.rs similarity index 100% rename from simulator/src/ledger/dumper.rs rename to simulator/src/resim/dumper.rs diff --git a/simulator/src/resim/error.rs b/simulator/src/resim/error.rs index e8bcbba7d8f..8fbc0a16ec5 100644 --- a/simulator/src/resim/error.rs +++ b/simulator/src/resim/error.rs @@ -13,7 +13,7 @@ use sbor::*; use transaction::errors::*; use transaction::model::PrepareError as TransactionPrepareError; -use crate::ledger::EntityDumpError; +use crate::resim::EntityDumpError; use crate::utils::*; /// Represents a resim error. diff --git a/simulator/src/resim/mod.rs b/simulator/src/resim/mod.rs index 3a3324f22a2..e1b6f01ef98 100644 --- a/simulator/src/resim/mod.rs +++ b/simulator/src/resim/mod.rs @@ -21,6 +21,7 @@ mod cmd_show_configs; mod cmd_show_ledger; mod cmd_transfer; mod config; +mod dumper; mod error; pub use addressing::*; @@ -46,6 +47,7 @@ pub use cmd_show_configs::*; pub use cmd_show_ledger::*; pub use cmd_transfer::*; pub use config::*; +pub use dumper::*; pub use error::*; pub const DEFAULT_SCRYPTO_DIR_UNDER_HOME: &'static str = ".scrypto";