Skip to content

Commit

Permalink
test: add 7702 e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Sep 20, 2024
1 parent f8904ec commit a54ce42
Show file tree
Hide file tree
Showing 7 changed files with 247 additions and 199 deletions.
210 changes: 43 additions & 167 deletions Cargo.lock

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

12 changes: 2 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,16 @@ strip = false
alphanet-node = { path = "crates/node" }
alphanet-precompile = { path = "crates/precompile" }

alloy = { version = "0.3", features = [
"contract",
"providers",
"provider-http",
"signers",
] }
alloy-network = { version = "0.3" }
alloy-signer-local = { version = "0.3", features = ["mnemonic"] }

# tokio
tokio = { version = "1.21", default-features = false }

# reth
reth = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7" }
reth-chainspec = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7", features = [
"optimism",
] }
reth-cli = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7" }
reth-cli-util = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7" }
reth-e2e-test-utils = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7" }
reth-node-api = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7" }
reth-node-builder = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7" }
reth-node-core = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7", features = [
Expand Down Expand Up @@ -104,6 +95,7 @@ reth-tracing = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7"
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth.git", rev = "v1.0.7" }

# misc
alloy-eips = "0.3"
clap = "4"
eyre = "0.6.12"
tracing = "0.1.0"
Expand Down
7 changes: 2 additions & 5 deletions crates/node/src/chainspec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,9 @@ pub static ALPHANET_FORKS: Lazy<ChainHardforks> = Lazy::new(|| {
/// Alphanet dev testnet specification.
pub static ALPHANET_DEV: Lazy<Arc<ChainSpec>> = Lazy::new(|| {
ChainSpec {
chain: Chain::dev(),
genesis: serde_json::from_str(include_str!("../../../etc/alphanet-genesis.json"))
chain: Chain::from_named(NamedChain::Alphanet),
genesis: serde_json::from_str(include_str!("../../../etc/dev-genesis.json"))
.expect("Can't deserialize alphanet genesis json"),
genesis_hash: once_cell_set(b256!(
"2f980576711e3617a5e4d83dd539548ec0f7792007d505a3d2e9674833af2d7c"
)),
paris_block_and_final_difficulty: Some((0, U256::from(0))),
hardforks: ALPHANET_FORKS.clone(),
base_fee_params: BaseFeeParamsKind::Constant(BaseFeeParams::ethereum()),
Expand Down
Loading

0 comments on commit a54ce42

Please sign in to comment.