File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change 60
60
//! .run_tx(tx);
61
61
//! # Ok(())
62
62
//! # }
63
- //!
64
63
//! ```
65
- //!
66
- //! ## Writing an application
67
- //!
68
- //! When writing your code, we strongly recommend using the aliases:
69
- //!
70
- //! - [`Trevm`] for the EVM typestate machine in no specific state.
71
- //! - [`EvmNeedsCfg`] for the initial state.
72
- //! - [`EvmNeedsFirstBlock`] for the state after configuring the EVM.
73
- //! - [`EvmNeedsTx`] for the state after opening a block.
74
- //! - [`EvmReady`] for the state after filling a transaction.
75
- //! - [`EvmTransacted`] for the state after executing a transaction.
76
- //! - [`EvmErrored`] for the state after encountering an error.
77
- //! - [`EvmBlockComplete`] for the state after closing a block.
78
- //! - [`EvmNeedsNextBlock`] for the state after taking or discarding block
79
- //! context.
80
- //!
81
64
//! If you get stuck, don't worry! You _cannot_ invoke the wrong function or
82
65
//! mess up the inner state unless you access a method marked `_unchecked`.
83
66
//! While the states and generics may seem intimidating at first, they fade
84
67
//! into the background when you start writing your application.
85
68
//!
69
+ //! ## Writing an application
70
+ //!
71
+ //! When writing your code, we strongly recommend using the `Evm____` type
72
+ //! aliases to simplify your code.
86
73
//!
87
74
//! We also recommend defining concrete types for `Ext` and `Db` whenever
88
75
//! possible, to simplify your code and remove bounds. Most users will want
You can’t perform that action at this time.
0 commit comments