-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
chore(sdk): ChainSpec
generic over hardforks
#10943
Conversation
fa60ec1
to
b2185a2
Compare
hmm, wondering what's the plan here? reuse |
yepp. and any rollup with same chain spec type asides hard forks. it's a building block, to make it easier for rollups to enjoy the customisability of the new reth sdk. |
hmm, the chainspec already has some additional chain specific internals, like deposit contract and for other chains it's likely that some additional fields should be included there as well. so it's imo easier to roll your own, like we already prepped with |
makes sense! I've changed |
let's move it to |
it's written as a bullet point in your notion sdk notes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're going with OpChainSpec and EthChainSpec as standalone types, this is more flexible than trying to unify these in a single generic ChainSpec type moving forward
Closes #10468
Makes
ChainSpec
generic over hard forks, leavingChainHardforks
as default generic.