@@ -23,6 +23,7 @@ pub enum Network {
23
23
Mainnet ,
24
24
Sepolia ,
25
25
Holesky ,
26
+ Hoodi ,
26
27
}
27
28
28
29
impl FromStr for Network {
@@ -33,6 +34,7 @@ impl FromStr for Network {
33
34
"mainnet" => Ok ( Self :: Mainnet ) ,
34
35
"sepolia" => Ok ( Self :: Sepolia ) ,
35
36
"holesky" => Ok ( Self :: Holesky ) ,
37
+ "hoodi" => Ok ( Self :: Hoodi ) ,
36
38
_ => Err ( eyre:: eyre!( "network not recognized" ) ) ,
37
39
}
38
40
}
@@ -44,6 +46,7 @@ impl Display for Network {
44
46
Self :: Mainnet => "mainnet" ,
45
47
Self :: Sepolia => "sepolia" ,
46
48
Self :: Holesky => "holesky" ,
49
+ Self :: Hoodi => "hoodi" ,
47
50
} ;
48
51
49
52
f. write_str ( str)
@@ -56,6 +59,7 @@ impl Network {
56
59
Self :: Mainnet => mainnet ( ) ,
57
60
Self :: Sepolia => sepolia ( ) ,
58
61
Self :: Holesky => holesky ( ) ,
62
+ Self :: Hoodi => hoodi ( ) ,
59
63
}
60
64
}
61
65
@@ -64,6 +68,7 @@ impl Network {
64
68
1 => Ok ( Network :: Mainnet ) ,
65
69
11155111 => Ok ( Network :: Sepolia ) ,
66
70
17000 => Ok ( Network :: Holesky ) ,
71
+ 560048 => Ok ( Network :: Hoodi ) ,
67
72
_ => Err ( eyre:: eyre!( "chain id not known" ) ) ,
68
73
}
69
74
}
@@ -213,6 +218,54 @@ pub fn holesky() -> BaseConfig {
213
218
}
214
219
}
215
220
221
+ pub fn hoodi ( ) -> BaseConfig {
222
+ BaseConfig {
223
+ default_checkpoint : b256 ! (
224
+ "689dc3d39faf53c360ada45a734139bfb195f96d04416c797bb0c1a46da903ad"
225
+ ) ,
226
+ rpc_port : 8545 ,
227
+ consensus_rpc : None ,
228
+ chain : ChainConfig {
229
+ chain_id : 560048 ,
230
+ genesis_time : 1742213400 ,
231
+ genesis_root : b256 ! ( "212f13fc4df078b6cb7db228f1c8307566dcecf900867401a92023d7ba99cb5f" ) ,
232
+ } ,
233
+ forks : Forks {
234
+ genesis : Fork {
235
+ epoch : 0 ,
236
+ fork_version : fixed_bytes ! ( "10000910" ) ,
237
+ } ,
238
+ altair : Fork {
239
+ epoch : 0 ,
240
+ fork_version : fixed_bytes ! ( "20000910" ) ,
241
+ } ,
242
+ bellatrix : Fork {
243
+ epoch : 0 ,
244
+ fork_version : fixed_bytes ! ( "30000910" ) ,
245
+ } ,
246
+ capella : Fork {
247
+ epoch : 0 ,
248
+ fork_version : fixed_bytes ! ( "40000910" ) ,
249
+ } ,
250
+ deneb : Fork {
251
+ epoch : 0 ,
252
+ fork_version : fixed_bytes ! ( "50000910" ) ,
253
+ } ,
254
+ electra : Fork {
255
+ epoch : 2048 ,
256
+ fork_version : fixed_bytes ! ( "60000910" ) ,
257
+ } ,
258
+ } ,
259
+ execution_forks : ForkSchedule {
260
+ prague_timestamp : 1742999832 ,
261
+ } ,
262
+ max_checkpoint_age : 1_209_600 , // 14 days
263
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
264
+ data_dir : Some ( data_dir ( Network :: Hoodi ) ) ,
265
+ ..std:: default:: Default :: default ( )
266
+ }
267
+ }
268
+
216
269
#[ cfg( not( target_arch = "wasm32" ) ) ]
217
270
fn data_dir ( network : Network ) -> PathBuf {
218
271
home_dir ( )
0 commit comments