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.