Skip to main content

Module param

Module param 

Source

Re-exportsยง

use super::UintStrategy; ๐Ÿ”’
use super::state::DictionaryRead; ๐Ÿ”’
use crate::invariant::SenderFilters; ๐Ÿ”’
use crate::strategies::mutators::BitMutator; ๐Ÿ”’
use crate::strategies::mutators::GaussianNoiseMutator; ๐Ÿ”’
use crate::strategies::mutators::IncrementDecrementMutator; ๐Ÿ”’
use crate::strategies::mutators::InterestingWordMutator; ๐Ÿ”’
use alloy_dyn_abi::DynSolType; ๐Ÿ”’
use alloy_dyn_abi::DynSolValue; ๐Ÿ”’
use alloy_dyn_abi::Word; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::B256; ๐Ÿ”’
use alloy_primitives::I256; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use proptest::strategy::ValueTree; ๐Ÿ”’
use proptest::test_runner::TestRunner; ๐Ÿ”’
use rand::SeedableRng; ๐Ÿ”’
use rand::prelude::IndexedMutRandom; ๐Ÿ”’
use rand::rngs::StdRng; ๐Ÿ”’
use std::mem::replace; ๐Ÿ”’
use proptest::prelude::*; ๐Ÿ”’

Constantsยง

MAX_ARRAY_LEN ๐Ÿ”’
The max length of arrays we fuzz for is 256.

Functionsยง

fuzz_msg_value
Returns a proptest strategy for generating random msg.value for payable functions.
fuzz_param
Given a parameter type, returns a strategy for generating values for that type.
fuzz_param_from_state ๐Ÿ”’
Given a parameter type, returns a strategy for generating values for that type, given some EVM fuzz state.
fuzz_param_inner ๐Ÿ”’
fuzz_param_with_fixtures
Given a parameter type and configured fixtures for param name, returns a strategy for generating values for that type.
generate_msg_value
Generates a msg.value for payable functions using TestRunnerโ€™s RNG (corpus mutation path).
mutate_param_value ๐Ÿ”’
Mutates the current value of the given parameter type and value.
mutate_param_value_inner ๐Ÿ”’
mutate_random_array_value ๐Ÿ”’
Mutates random value from given array.
mutate_random_tuple_value ๐Ÿ”’
Mutates random value from given tuples.
select_random_address ๐Ÿ”’
Selects a random address for mutation, respecting sender filters if provided.