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,46 +29,46 @@ 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
///
50
50
/// Expected continuations include:
51
51
/// - [`EvmErrored::discard_error`]
52
52
/// - [`EvmErrored::into_error`]
53
- pub type EvmErrored < Db , Insp , E = EVMError < <Db as Database >:: Error > > =
53
+ pub type EvmErrored < Db , Insp = NoOpInspector , E = EVMError < <Db as Database >:: Error > > =
54
54
Trevm < Db , Insp , ErroredState < E > > ;
55
55
56
56
/// A [`Trevm`] that encountered an error during [`BlockDriver`] execution.
57
57
///
58
58
/// This is an [`EvmErrored`] parameterized with the driver's error type.
59
- pub type EvmBlockDriverErrored < Db , Insp , T > =
59
+ pub type EvmBlockDriverErrored < T , Db , Insp = NoOpInspector > =
60
60
EvmErrored < Db , Insp , <T as BlockDriver < Db , Insp > >:: Error > ;
61
61
62
62
/// A [`Trevm`] that encountered an error during [`ChainDriver`] execution.
63
63
///
64
64
/// This is an [`EvmErrored`] parameterized with the driver's error type.
65
- pub type EvmChainDriverErrored < Db , Insp , T > =
65
+ pub type EvmChainDriverErrored < T , Db , Insp = NoOpInspector > =
66
66
EvmErrored < Db , Insp , <T as ChainDriver < Db , Insp > >:: Error > ;
67
67
68
68
/// A [`Trevm`] that encountered an error during [`BundleDriver`] execution.
69
69
///
70
70
/// This is an [`EvmErrored`] parameterized with the driver's error type.
71
- pub type EvmBundleDriverErrored < Db , Insp , T > =
71
+ pub type EvmBundleDriverErrored < T , Db , Insp = NoOpInspector > =
72
72
EvmErrored < Db , Insp , <T as BundleDriver < Db , Insp > >:: Error > ;
73
73
74
74
#[ allow( unnameable_types, dead_code, unreachable_pub) ]
0 commit comments