mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(chainspec): move op stack chain specs to reth-optimism-chainspec (#10485)
This commit is contained in:
@ -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 = []
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user