Skip to content

Commit

Permalink
Add granite_time to OptimismGenesisInfo (#31)
Browse files Browse the repository at this point in the history
* Add granite_time to OptimismGenesisInfo

* Fix json in test
  • Loading branch information
BrianBland authored Aug 5, 2024
1 parent 2ecb2e5 commit 8dde493
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 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 @@ -217,7 +222,8 @@ mod tests {
"regolithTime": 12,
"canyonTime": 0,
"ecotoneTime": 0,
"fjordTime": 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

0 comments on commit 8dde493

Please sign in to comment.