diff --git a/crates/registry/src/lib.rs b/crates/registry/src/lib.rs index dddb354d..9991cf28 100644 --- a/crates/registry/src/lib.rs +++ b/crates/registry/src/lib.rs @@ -19,7 +19,7 @@ pub mod superchain; pub use superchain::Registry; #[cfg(test)] -pub mod configs; +pub mod test_utils; lazy_static::lazy_static! { /// Private initializer that loads the superchain configurations. @@ -37,13 +37,15 @@ lazy_static::lazy_static! { #[cfg(test)] mod tests { + use super::*; + #[test] fn test_hardcoded_rollup_configs() { let test_cases = vec![ - (10, crate::configs::OP_MAINNET_CONFIG), - (8453, crate::configs::BASE_MAINNET_CONFIG), - (11155420, crate::configs::OP_SEPOLIA_CONFIG), - (84532, crate::configs::BASE_SEPOLIA_CONFIG), + (10, test_utils::OP_MAINNET_CONFIG), + (8453, test_utils::BASE_MAINNET_CONFIG), + (11155420, test_utils::OP_SEPOLIA_CONFIG), + (84532, test_utils::BASE_SEPOLIA_CONFIG), ]; for (chain_id, expected) in test_cases { diff --git a/crates/registry/src/superchain.rs b/crates/registry/src/superchain.rs index adf53e49..915649fd 100644 --- a/crates/registry/src/superchain.rs +++ b/crates/registry/src/superchain.rs @@ -212,7 +212,7 @@ mod tests { let superchains = Registry::from_chain_list(); assert_eq!( *superchains.rollup_configs.get(&10).unwrap(), - crate::configs::OP_MAINNET_CONFIG + crate::test_utils::OP_MAINNET_CONFIG ); } } diff --git a/crates/registry/src/configs/base_mainnet.rs b/crates/registry/src/test_utils/base_mainnet.rs similarity index 100% rename from crates/registry/src/configs/base_mainnet.rs rename to crates/registry/src/test_utils/base_mainnet.rs diff --git a/crates/registry/src/configs/base_sepolia.rs b/crates/registry/src/test_utils/base_sepolia.rs similarity index 100% rename from crates/registry/src/configs/base_sepolia.rs rename to crates/registry/src/test_utils/base_sepolia.rs diff --git a/crates/registry/src/configs/mod.rs b/crates/registry/src/test_utils/mod.rs similarity index 100% rename from crates/registry/src/configs/mod.rs rename to crates/registry/src/test_utils/mod.rs diff --git a/crates/registry/src/configs/op_mainnet.rs b/crates/registry/src/test_utils/op_mainnet.rs similarity index 100% rename from crates/registry/src/configs/op_mainnet.rs rename to crates/registry/src/test_utils/op_mainnet.rs diff --git a/crates/registry/src/configs/op_sepolia.rs b/crates/registry/src/test_utils/op_sepolia.rs similarity index 100% rename from crates/registry/src/configs/op_sepolia.rs rename to crates/registry/src/test_utils/op_sepolia.rs