Skip to content

Commit e745102

Browse files
committed
docs: rearrange
1 parent 610161a commit e745102

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

src/lib.rs

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,16 @@
6060
//! .run_tx(tx);
6161
//! # Ok(())
6262
//! # }
63-
//!
6463
//! ```
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-
//!
8164
//! If you get stuck, don't worry! You _cannot_ invoke the wrong function or
8265
//! mess up the inner state unless you access a method marked `_unchecked`.
8366
//! While the states and generics may seem intimidating at first, they fade
8467
//! into the background when you start writing your application.
8568
//!
69+
//! ## Writing an application
70+
//!
71+
//! When writing your code, we strongly recommend using the `Evm____` type
72+
//! aliases to simplify your code.
8673
//!
8774
//! We also recommend defining concrete types for `Ext` and `Db` whenever
8875
//! possible, to simplify your code and remove bounds. Most users will want

0 commit comments

Comments
 (0)