Skip to content

Commit

Permalink
rename to odyssey-common
Browse files Browse the repository at this point in the history
  • Loading branch information
joshieDo committed Nov 26, 2024
1 parent 6456098 commit 90dcba3
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
members = [
"bin/odyssey/",
"crates/constants",
"crates/common",
"crates/node",
"crates/e2e-tests",
"crates/wallet",
Expand Down Expand Up @@ -135,7 +135,7 @@ strip = false

[workspace.dependencies]
# odyssey
odyssey-constants = { path = "crates/constants" }
odyssey-common = { path = "crates/common" }
odyssey-node = { path = "crates/node" }
odyssey-wallet = { path = "crates/wallet" }
odyssey-walltime = { path = "crates/walltime" }
Expand Down
2 changes: 1 addition & 1 deletion crates/constants/Cargo.toml → crates/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "odyssey-constants"
name = "odyssey-common"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Odyssey constants.
use alloy_primitives::{address, Address};

/// Withdrawal predeployed contract address.
Expand Down
7 changes: 7 additions & 0 deletions crates/common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! Odyssey common types and constants
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![warn(unused_crate_dependencies)]

mod constants;
pub use constants::WITHDRAWAL_CONTRACT;
2 changes: 1 addition & 1 deletion crates/e2e-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords.workspace = true
categories.workspace = true

[dev-dependencies]
odyssey-constants.workspace = true
odyssey-common.workspace = true

alloy.workspace = true
alloy-network.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/e2e-tests/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async fn test_withdrawal_proof_with_fallback() -> Result<(), Box<dyn std::error:
.request(
"eth_getProof",
ProofParams {
address: odyssey_constants::WITHDRAWAL_CONTRACT,
address: odyssey_common::WITHDRAWAL_CONTRACT,
keys: vec![B256::ZERO],
block: BlockNumberOrTag::Latest,
},
Expand Down
2 changes: 1 addition & 1 deletion crates/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords.workspace = true
categories.workspace = true

[dependencies]
odyssey-constants.workspace = true
odyssey-common.workspace = true

revm-precompile.workspace = true
revm-primitives.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/node/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use jsonrpsee::{
core::{async_trait, RpcResult},
proc_macros::rpc,
};
use odyssey_constants::WITHDRAWAL_CONTRACT;
use odyssey_common::WITHDRAWAL_CONTRACT;
use reth_errors::RethError;
use reth_rpc_eth_api::{
helpers::{EthState, FullEthApi},
Expand Down

0 comments on commit 90dcba3

Please sign in to comment.