@@ -12,44 +12,48 @@ use serde::{Deserialize, Deserializer, Serialize};
12
12
13
13
#[ derive( Debug , Clone , Serialize , Deserialize , Default ) ]
14
14
pub struct EvmOpts {
15
+ /// The EVM environment configuration.
15
16
#[ serde( flatten) ]
16
17
pub env : Env ,
17
18
18
- /// Fetch state over a remote instead of starting from empty state
19
+ /// Fetch state over a remote instead of starting from empty state.
19
20
#[ serde( rename = "eth_rpc_url" ) ]
20
21
pub fork_url : Option < RpcUrl > ,
21
22
22
- /// pins the block number for the state fork
23
+ /// Pins the block number for the state fork.
23
24
pub fork_block_number : Option < u64 > ,
24
25
25
- /// The number of retries
26
+ /// The number of retries.
26
27
pub fork_retries : Option < u32 > ,
27
28
28
- /// initial retry backoff
29
+ /// Initial retry backoff.
29
30
pub fork_retry_backoff : Option < u64 > ,
30
31
31
- /// The available compute units per second
32
+ /// The available compute units per second.
33
+ ///
34
+ /// See also <https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second>
32
35
pub compute_units_per_second : Option < u64 > ,
33
36
34
- /// Disables rate limiting entirely.
37
+ /// Disables RPC rate limiting entirely.
35
38
pub no_rpc_rate_limit : bool ,
36
39
37
40
/// Disables storage caching entirely.
38
41
pub no_storage_caching : bool ,
39
42
40
- /// the initial balance of each deployed test contract
43
+ /// The initial balance of each deployed test contract.
41
44
pub initial_balance : U256 ,
42
45
43
- /// the address which will be executing all tests
46
+ /// The address which will be executing all tests.
44
47
pub sender : Address ,
45
48
46
- /// enables the FFI cheatcode
49
+ /// Enables the FFI cheatcode.
47
50
pub ffi : bool ,
48
51
49
- /// Verbosity mode of EVM output as number of occurrences
52
+ /// Verbosity mode of EVM output as number of occurrences.
50
53
pub verbosity : u8 ,
51
54
52
55
/// The memory limit per EVM execution in bytes.
56
+ /// If this limit is exceeded, a `MemoryLimitOOG` result is thrown.
53
57
///
54
58
/// The default is 128MiB.
55
59
pub memory_limit : u64 ,
0 commit comments