revm_interpreter/interpreter/
runtime_flags.rs1use specification::hardfork::SpecId;
2
3use super::RuntimeFlag;
4#[cfg(feature = "serde")]
5use serde::{Deserialize, Serialize};
6
7#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
8pub struct RuntimeFlags {
9 pub is_static: bool,
10 pub is_eof_init: bool,
11 pub is_eof: bool,
12 pub spec_id: SpecId,
13}
14
15impl RuntimeFlag for RuntimeFlags {
16 fn is_static(&self) -> bool {
17 self.is_static
18 }
19
20 fn is_eof(&self) -> bool {
21 self.is_eof
22 }
23
24 fn is_eof_init(&self) -> bool {
25 self.is_eof_init
26 }
27
28 fn spec_id(&self) -> SpecId {
29 self.spec_id
30 }
31}