1
1
use crate :: { driver:: BundleDriver , BlockDriver , ChainDriver , Trevm } ;
2
- use revm:: { context:: result:: EVMError , Database } ;
2
+ use revm:: { context:: result:: EVMError , inspector :: NoOpInspector , Database } ;
3
3
use sealed:: * ;
4
4
5
5
/// A [`Trevm`] that requires a [`Cfg`].
@@ -8,7 +8,7 @@ use sealed::*;
8
8
/// - [`EvmNeedsCfg::fill_cfg`]
9
9
///
10
10
/// [`Cfg`]: crate::Cfg
11
- pub type EvmNeedsCfg < Db , Insp > = Trevm < Db , Insp , NeedsCfg > ;
11
+ pub type EvmNeedsCfg < Db , Insp = NoOpInspector > = Trevm < Db , Insp , NeedsCfg > ;
12
12
13
13
/// A [`Trevm`] that requires a [`Block`] and contains no
14
14
/// outputs. This EVM has not yet executed any transactions or state changes.
@@ -19,7 +19,7 @@ pub type EvmNeedsCfg<Db, Insp> = Trevm<Db, Insp, NeedsCfg>;
19
19
/// - [`EvmNeedsBlock::drive_chain`]
20
20
///
21
21
/// [`Block`]: crate::Block
22
- pub type EvmNeedsBlock < Db , Insp > = Trevm < Db , Insp , NeedsBlock > ;
22
+ pub type EvmNeedsBlock < Db , Insp = NoOpInspector > = Trevm < Db , Insp , NeedsBlock > ;
23
23
24
24
/// A [`Trevm`] that requires a [`Tx`].
25
25
///
@@ -29,21 +29,21 @@ pub type EvmNeedsBlock<Db, Insp> = Trevm<Db, Insp, NeedsBlock>;
29
29
/// - [`EvmNeedsTx::finish`]
30
30
///
31
31
/// [`Tx`]: crate::Tx
32
- pub type EvmNeedsTx < Db , Insp > = Trevm < Db , Insp , NeedsTx > ;
32
+ pub type EvmNeedsTx < Db , Insp = NoOpInspector > = Trevm < Db , Insp , NeedsTx > ;
33
33
34
34
/// A [`Trevm`] that is ready to execute a transaction.
35
35
///
36
36
/// The transaction may be executed with [`EvmReady::run`] or cleared
37
37
/// with [`EvmReady::clear_tx`]
38
- pub type EvmReady < Db , Insp > = Trevm < Db , Insp , Ready > ;
38
+ pub type EvmReady < Db , Insp = NoOpInspector > = Trevm < Db , Insp , Ready > ;
39
39
40
40
/// A [`Trevm`] that run a transaction, and contains the resulting execution
41
41
/// details and state.
42
42
///
43
43
/// Expected continuations include:
44
44
/// - [`EvmTransacted::reject`]
45
45
/// - [`EvmTransacted::accept`]
46
- pub type EvmTransacted < Db , Insp > = Trevm < Db , Insp , TransactedState > ;
46
+ pub type EvmTransacted < Db , Insp = NoOpInspector > = Trevm < Db , Insp , TransactedState > ;
47
47
48
48
/// A [`Trevm`] that encountered an error during transaction execution.
49
49
///
0 commit comments