chore(chainspec): move op stack chain specs to reth-optimism-chainspec (#10485)

This commit is contained in:
Emilia Hane
2024-08-26 20:01:49 +02:00
committed by GitHub
parent 51e9916929
commit 8191e0c05d
26 changed files with 751 additions and 607 deletions

View File

@ -38,6 +38,7 @@ reth-network-peers.workspace = true
reth-consensus-common.workspace = true
reth-prune-types.workspace = true
reth-stages-types.workspace = true
reth-optimism-chainspec = { workspace = true, features = ["optimism"], optional = true }
# ethereum
alloy-genesis.workspace = true
@ -87,6 +88,7 @@ optimism = [
"reth-provider/optimism",
"reth-rpc-types-compat/optimism",
"reth-rpc-eth-api/optimism",
"dep:reth-optimism-chainspec",
]
# Features for vergen to generate correct env vars
jemalloc = []

View File

@ -1,17 +1,14 @@
//! Clap parser utilities
use alloy_genesis::Genesis;
use reth_chainspec::ChainSpec;
use reth_fs_util as fs;
use std::{path::PathBuf, sync::Arc};
use reth_chainspec::DEV;
#[cfg(feature = "optimism")]
use reth_chainspec::{BASE_MAINNET, BASE_SEPOLIA, OP_MAINNET, OP_SEPOLIA};
use alloy_genesis::Genesis;
use reth_chainspec::{ChainSpec, DEV};
#[cfg(not(feature = "optimism"))]
use reth_chainspec::{HOLESKY, MAINNET, SEPOLIA};
use reth_fs_util as fs;
#[cfg(feature = "optimism")]
use reth_optimism_chainspec::{BASE_MAINNET, BASE_SEPOLIA, OP_MAINNET, OP_SEPOLIA};
#[cfg(feature = "optimism")]
/// Chains supported by op-reth. First value should be used as the default.