-
Notifications
You must be signed in to change notification settings - Fork 33
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(registry): Dogfood Test Rollup Config #308
base: main
Are you sure you want to change the base?
Conversation
📚
|
@@ -55,6 +55,19 @@ pub struct HardForkConfiguration { | |||
pub holocene_time: Option<u64>, | |||
} | |||
|
|||
impl From<&RollupConfig> for HardForkConfiguration { |
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.
these types are in the same crate.
this impl would be less horrible if we also add this natively to RollupConfig.
I guess from<&>
wouldn't be an issue for RollupConfig
because we assume this will likely be Arc'ed.
but still, very much dislike standalone from ref impls
canyon_time: Some(1704992401), | ||
delta_time: Some(1708560000), | ||
ecotone_time: Some(1710374401), | ||
fjord_time: Some(1720627201), | ||
granite_time: Some(1726070401), | ||
holocene_time: None, | ||
}, | ||
hardfork_configuration: (&crate::configs::BASE_MAINNET_CONFIG).into(), |
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.
see, this is horrible,
granite_time: Some(1726070401), | ||
holocene_time: None, | ||
}, | ||
hardfork_configuration: (&crate::configs::BASE_MAINNET_CONFIG).into(), |
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.
hardfork_configuration: (&crate::configs::BASE_MAINNET_CONFIG).into(), | |
hardfork_configuration: crate::configs::BASE_MAINNET_CONFIG.hardfork_config(), |
is much nicer
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.
I see, that makes sense to me, will change
Description
Dogfoods the hardcoded test rollup config and uses the new
From<&RollupConfig> for HardForkConfiguration
.