Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add chain spec hardfork #56

Merged
merged 43 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
36010de
add hardfork
georgehao Nov 28, 2024
dac4a42
complete hardfork lib.rs
georgehao Nov 28, 2024
73f33b5
complete
georgehao Dec 2, 2024
62d984e
add scroll bootnode
georgehao Dec 2, 2024
c55aa00
remove duplicated code
georgehao Dec 2, 2024
c329f83
update
georgehao Dec 2, 2024
91381be
tweak a comment
georgehao Dec 2, 2024
e6598ec
format
georgehao Dec 3, 2024
5f1f0be
fix hardfork
georgehao Dec 3, 2024
9e456d7
fix format
georgehao Dec 3, 2024
65339ce
fix genesis hash error
georgehao Dec 3, 2024
7f03d87
update unit test
georgehao Dec 3, 2024
f61684d
update
georgehao Dec 3, 2024
a78017c
update
georgehao Dec 3, 2024
ca15c76
remove unused dependence
georgehao Dec 3, 2024
83b6ada
fix
georgehao Dec 3, 2024
22e2262
add std
georgehao Dec 3, 2024
e90b2cd
update
georgehao Dec 3, 2024
8368780
Update crates/net/peers/src/bootnodes/mod.rs
georgehao Dec 3, 2024
cd3f50e
address comment
georgehao Dec 4, 2024
9b43e66
update hardfork
georgehao Dec 4, 2024
21954d1
Merge branch 'feat/add_chain_spec_hardfork' of github.com:scroll-tech…
georgehao Dec 4, 2024
2fd11cf
update
georgehao Dec 4, 2024
f111f6f
fix comment
georgehao Dec 4, 2024
67d4e7e
Merge branch 'scroll' of github.com:scroll-tech/reth into feat/add_ch…
georgehao Dec 4, 2024
164d9bb
address comment
georgehao Dec 4, 2024
70abe38
address comment
georgehao Dec 4, 2024
5aea8e8
address comment
georgehao Dec 4, 2024
404f5ff
fix unit test
georgehao Dec 4, 2024
c2a88a5
fix unit test
georgehao Dec 4, 2024
66b7e00
address comments
georgehao Dec 4, 2024
34fbf24
Merge branch 'scroll' of github.com:scroll-tech/reth into feat/add_ch…
georgehao Dec 6, 2024
c6ca5aa
fix scroll genesis baseFee
georgehao Dec 6, 2024
8b7a17f
Merge branch 'scroll' of github.com:scroll-tech/reth into feat/add_ch…
georgehao Dec 6, 2024
0cee1ba
address comments
georgehao Dec 6, 2024
0ad055a
fix unit test
georgehao Dec 6, 2024
cfd062e
fix unit test
georgehao Dec 6, 2024
4b92f77
address comments
georgehao Dec 6, 2024
1a69d3a
address comments
georgehao Dec 6, 2024
13f2f59
fix conflict
georgehao Dec 9, 2024
7fd8e97
resolve conflct
georgehao Dec 9, 2024
f47663d
add hardforks doc
georgehao Dec 9, 2024
a188c1b
update the doc
georgehao Dec 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions crates/scroll/chainspec/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
//! Scroll-Reth chain specs.

#![doc(
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)]
#![doc = include_str!("../../../../docs/hardforks.md")]
frisitano marked this conversation as resolved.
Show resolved Hide resolved
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;

mod dev;
mod genesis;
mod scroll;
mod scroll_sepolia;

use alloc::{boxed::Box, vec::Vec};
use alloy_chains::Chain;
use alloy_consensus::Header;
use alloy_genesis::Genesis;
use alloy_primitives::{B256, U256};
use derive_more::{Constructor, Deref, Display, From, Into};
pub use dev::SCROLL_DEV;
pub use genesis::ScrollChainInfo;
#[cfg(not(feature = "std"))]
pub(crate) use once_cell::sync::Lazy as LazyLock;
use reth_chainspec::{
BaseFeeParams, ChainSpec, ChainSpecBuilder, DepositContract, EthChainSpec, EthereumHardforks,
ForkFilter, ForkId, Hardforks, Head,
};
use reth_ethereum_forks::{ChainHardforks, EthereumHardfork, ForkCondition, Hardfork};
use reth_network_peers::NodeRecord;
use reth_scroll_forks::ScrollHardforks;

#[cfg(not(feature = "std"))]
use once_cell::sync::Lazy as LazyLock;
#[cfg(feature = "std")]
use std::sync::LazyLock;

extern crate alloc;

mod dev;
pub use dev::SCROLL_DEV;

mod genesis;
pub use genesis::ScrollChainInfo;

mod scroll;
pub use scroll::SCROLL_MAINNET;

mod scroll_sepolia;
pub use scroll_sepolia::SCROLL_SEPOLIA;
#[cfg(feature = "std")]
pub(crate) use std::sync::LazyLock;

/// Chain spec builder for a Scroll chain.
#[derive(Debug, Default, From)]
Expand Down
Loading
Loading