Skip to content

Commit a497506

Browse files
committed
docs
1 parent d36bde4 commit a497506

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

crates/evm/core/src/opts.rs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,48 @@ use serde::{Deserialize, Deserializer, Serialize};
1212

1313
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
1414
pub struct EvmOpts {
15+
/// The EVM environment configuration.
1516
#[serde(flatten)]
1617
pub env: Env,
1718

18-
/// Fetch state over a remote instead of starting from empty state
19+
/// Fetch state over a remote instead of starting from empty state.
1920
#[serde(rename = "eth_rpc_url")]
2021
pub fork_url: Option<RpcUrl>,
2122

22-
/// pins the block number for the state fork
23+
/// Pins the block number for the state fork.
2324
pub fork_block_number: Option<u64>,
2425

25-
/// The number of retries
26+
/// The number of retries.
2627
pub fork_retries: Option<u32>,
2728

28-
/// initial retry backoff
29+
/// Initial retry backoff.
2930
pub fork_retry_backoff: Option<u64>,
3031

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>
3235
pub compute_units_per_second: Option<u64>,
3336

34-
/// Disables rate limiting entirely.
37+
/// Disables RPC rate limiting entirely.
3538
pub no_rpc_rate_limit: bool,
3639

3740
/// Disables storage caching entirely.
3841
pub no_storage_caching: bool,
3942

40-
/// the initial balance of each deployed test contract
43+
/// The initial balance of each deployed test contract.
4144
pub initial_balance: U256,
4245

43-
/// the address which will be executing all tests
46+
/// The address which will be executing all tests.
4447
pub sender: Address,
4548

46-
/// enables the FFI cheatcode
49+
/// Enables the FFI cheatcode.
4750
pub ffi: bool,
4851

49-
/// Verbosity mode of EVM output as number of occurrences
52+
/// Verbosity mode of EVM output as number of occurrences.
5053
pub verbosity: u8,
5154

5255
/// The memory limit per EVM execution in bytes.
56+
/// If this limit is exceeded, a `MemoryLimitOOG` result is thrown.
5357
///
5458
/// The default is 128MiB.
5559
pub memory_limit: u64,

0 commit comments

Comments
 (0)