1
- use revm:: specification:: hardfork:: SpecId ;
1
+ use revm:: specification:: hardfork:: { name as eth_name , SpecId } ;
2
2
3
3
#[ repr( u8 ) ]
4
4
#[ derive( Clone , Copy , Debug , Hash , PartialEq , Eq , PartialOrd , Ord , Default ) ]
@@ -15,6 +15,7 @@ pub enum OpSpecId {
15
15
#[ default]
16
16
ISTHMUS ,
17
17
INTEROP ,
18
+ OSAKA ,
18
19
}
19
20
20
21
impl OpSpecId {
@@ -25,6 +26,7 @@ impl OpSpecId {
25
26
Self :: CANYON => SpecId :: SHANGHAI ,
26
27
Self :: ECOTONE | Self :: FJORD | Self :: GRANITE | Self :: HOLOCENE => SpecId :: CANCUN ,
27
28
Self :: ISTHMUS | Self :: INTEROP => SpecId :: PRAGUE ,
29
+ Self :: OSAKA => SpecId :: OSAKA ,
28
30
}
29
31
}
30
32
@@ -50,6 +52,10 @@ impl TryFrom<&str> for OpSpecId {
50
52
name:: ECOTONE => Ok ( OpSpecId :: ECOTONE ) ,
51
53
name:: FJORD => Ok ( OpSpecId :: FJORD ) ,
52
54
name:: GRANITE => Ok ( OpSpecId :: GRANITE ) ,
55
+ name:: HOLOCENE => Ok ( OpSpecId :: HOLOCENE ) ,
56
+ name:: ISTHMUS => Ok ( OpSpecId :: ISTHMUS ) ,
57
+ name:: INTEROP => Ok ( OpSpecId :: INTEROP ) ,
58
+ eth_name:: OSAKA => Ok ( OpSpecId :: OSAKA ) ,
53
59
_ => Err ( ( ) ) ,
54
60
}
55
61
}
@@ -67,6 +73,7 @@ impl From<OpSpecId> for &'static str {
67
73
OpSpecId :: HOLOCENE => name:: HOLOCENE ,
68
74
OpSpecId :: ISTHMUS => name:: ISTHMUS ,
69
75
OpSpecId :: INTEROP => name:: INTEROP ,
76
+ OpSpecId :: OSAKA => eth_name:: OSAKA ,
70
77
}
71
78
}
72
79
}
0 commit comments