Skip to content
Merged
Changes from 1 commit
Commits
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
7 changes: 7 additions & 0 deletions crates/rpc-types/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ pub struct OptimismGenesisInfo {
pub ecotone_time: Option<u64>,
/// fjord hardfork timestamp
pub fjord_time: Option<u64>,
/// granite hardfork timestamp
pub granite_time: Option<u64>,
}

impl OptimismGenesisInfo {
Expand Down Expand Up @@ -123,6 +125,7 @@ mod tests {
canyon_time: Some(0),
ecotone_time: Some(0),
fjord_time: None,
granite_time: None,
}
);
}
Expand Down Expand Up @@ -179,6 +182,7 @@ mod tests {
canyon_time: Some(0),
ecotone_time: Some(0),
fjord_time: None,
granite_time: None,
}),
base_fee_info: Some(OptimismBaseFeeInfo {
eip1559_elasticity: None,
Expand All @@ -199,6 +203,7 @@ mod tests {
canyon_time: Some(0),
ecotone_time: Some(0),
fjord_time: None,
granite_time: None,
}),
base_fee_info: Some(OptimismBaseFeeInfo {
eip1559_elasticity: None,
Expand All @@ -218,6 +223,7 @@ mod tests {
"canyonTime": 0,
"ecotoneTime": 0,
"fjordTime": 0
"graniteTime": 0
}
"#;

Expand All @@ -233,6 +239,7 @@ mod tests {
canyon_time: Some(0),
ecotone_time: Some(0),
fjord_time: Some(0),
granite_time: Some(0),
}),
base_fee_info: None,
}
Expand Down