{"repo":"perimetersec/fuzzlib","free":true,"listed":false,"github":"https://github.com/perimetersec/fuzzlib","clone":"git clone https://github.com/perimetersec/fuzzlib.git","description":"General purpose unopinionated Solidity fuzzing library for stateful and stateless fuzzing","language":"Solidity","stars":60,"topics":["echidna","evm","foundry","fuzzing","library","medusa","solidity"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"Fuzzlib Fuzzlib is a general purpose unopinionated Solidity fuzzing library for stateful and stateless fuzzing. Compatible with Echidna, Medusa, and Foundry. Provides common utilities for fuzz testing through a simple fl namespace: assertions, value clamping, logging, math operations, and more. Maintained by Perimeter – Leaders in securing DeFi using fuzzing since 2022. Key Features - Basic Assertions : Helpers for common test conditions and equality checks - Advanced Assertions : Utilities like error handling via errAllow for expected failures - Value Clamping : Clamp values to ranges with uniform distribution for better fuzzing - Logging Utilities : Unified logging for debugging and tracing - Math Utilities : Operations like min, max, absolute value, and difference calculations - Random Utilities : Fisher-Yates array shuffling - Function Call Helpers : Utilities for making function calls with actor pranking - Comprehensive Testing : Extensive test suite with both unit and fuzz tests - Well-Documented : Clear and complete, following OpenZeppelin-style conventions Installation Using Foundry Using Soldeer Using npm Add to your remappings.txt : Quick Start Create a simple fuzzing test by extending FuzzBase : Function Reference Basic Assertions Advanced Assertions Value Clamping Logging Math Utilities Random Utilities Function Call Helpers Known Limitations - Signed Integer Clamping : Limited to int128 range to avoid overflow issues in range calculations - Gas Optimization : Lib","default_branch":null,"files":null,"tree":[],"storefront":"/r/perimetersec","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/perimetersec/fuzzlib/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}