mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename codecs optimism feature to op (#13067)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -83,7 +83,7 @@ assert_matches.workspace = true
|
||||
[features]
|
||||
optimism = [
|
||||
"reth-blockchain-tree/optimism",
|
||||
"reth-codecs/optimism",
|
||||
"reth-codecs/op",
|
||||
"reth-chainspec",
|
||||
"reth-db-api/optimism",
|
||||
"reth-db/optimism",
|
||||
|
||||
@ -15,7 +15,7 @@ workspace = true
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
reth-primitives-traits = { workspace = true, features = ["op"] }
|
||||
reth-codecs = { workspace = true, optional = true, features = ["optimism"] }
|
||||
reth-codecs = { workspace = true, optional = true, features = ["op"] }
|
||||
|
||||
# ethereum
|
||||
alloy-primitives.workspace = true
|
||||
@ -36,7 +36,7 @@ derive_more.workspace = true
|
||||
arbitrary = { workspace = true, features = ["derive"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
reth-codecs = { workspace = true, features = ["test-utils", "optimism"] }
|
||||
reth-codecs = { workspace = true, features = ["test-utils", "op"] }
|
||||
rstest.workspace = true
|
||||
arbitrary.workspace = true
|
||||
|
||||
@ -57,7 +57,7 @@ reth-codec = [
|
||||
"dep:reth-codecs",
|
||||
"reth-primitives/reth-codec",
|
||||
"reth-primitives-traits/reth-codec",
|
||||
"reth-codecs?/optimism",
|
||||
"reth-codecs?/op",
|
||||
"reth-primitives/reth-codec"
|
||||
]
|
||||
serde = [
|
||||
|
||||
@ -22,6 +22,6 @@ reth-stages-types.workspace = true
|
||||
[features]
|
||||
optimism = [
|
||||
"reth-primitives/optimism",
|
||||
"reth-codecs/optimism",
|
||||
"reth-codecs/op",
|
||||
"reth-db-api/optimism"
|
||||
]
|
||||
|
||||
@ -146,7 +146,7 @@ c-kzg = [
|
||||
]
|
||||
optimism = [
|
||||
"dep:op-alloy-consensus",
|
||||
"reth-codecs?/optimism",
|
||||
"reth-codecs?/op",
|
||||
"revm-primitives/optimism",
|
||||
]
|
||||
alloy-compat = [
|
||||
|
||||
@ -67,7 +67,7 @@ alloy = [
|
||||
"dep:modular-bitfield",
|
||||
"dep:alloy-trie",
|
||||
]
|
||||
optimism = ["alloy", "dep:op-alloy-consensus"]
|
||||
op = ["alloy", "dep:op-alloy-consensus"]
|
||||
test-utils = [
|
||||
"std",
|
||||
"alloy",
|
||||
|
||||
@ -9,9 +9,9 @@ cond_mod!(
|
||||
);
|
||||
|
||||
|
||||
#[cfg(all(feature = "test-utils", feature = "optimism"))]
|
||||
#[cfg(all(feature = "test-utils", feature = "op"))]
|
||||
pub mod optimism;
|
||||
#[cfg(all(not(feature = "test-utils"), feature = "optimism"))]
|
||||
#[cfg(all(not(feature = "test-utils"), feature = "op"))]
|
||||
mod optimism;
|
||||
|
||||
#[cfg(test)]
|
||||
@ -41,7 +41,7 @@ mod tests {
|
||||
assert_eq!(TxEip7702::bitflag_encoded_bytes(), 4);
|
||||
}
|
||||
|
||||
#[cfg(feature = "optimism")]
|
||||
#[cfg(feature = "op")]
|
||||
#[test]
|
||||
fn test_ensure_backwards_compatibility_optimism() {
|
||||
assert_eq!(crate::alloy::transaction::optimism::TxDeposit::bitflag_encoded_bytes(), 2);
|
||||
@ -89,7 +89,7 @@ mod tests {
|
||||
));
|
||||
}
|
||||
|
||||
#[cfg(feature = "optimism")]
|
||||
#[cfg(feature = "op")]
|
||||
#[test]
|
||||
fn test_decode_deposit() {
|
||||
test_decode::<op_alloy_consensus::TxDeposit>(&hex!(
|
||||
|
||||
@ -82,4 +82,4 @@ arbitrary = [
|
||||
"reth-stages-types/arbitrary",
|
||||
"alloy-consensus/arbitrary",
|
||||
]
|
||||
optimism = ["reth-primitives/optimism", "reth-codecs/optimism"]
|
||||
optimism = ["reth-primitives/optimism", "reth-codecs/op"]
|
||||
|
||||
@ -92,7 +92,7 @@ optimism = [
|
||||
"reth-primitives/optimism",
|
||||
"reth-execution-types/optimism",
|
||||
"reth-optimism-primitives",
|
||||
"reth-codecs/optimism",
|
||||
"reth-codecs/op",
|
||||
"reth-db/optimism",
|
||||
"reth-db-api/optimism",
|
||||
"revm/optimism",
|
||||
|
||||
Reference in New Issue
Block a user