Skip to content

Commit 4245993

Browse files
Merge pull request #28 from Recon-Fuzz/tools/log-parser
feat: Tools/log-parser
2 parents 45926b7 + c6df2bb commit 4245993

File tree

8 files changed

+1248
-478
lines changed

8 files changed

+1248
-478
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## [0.0.25] - 25.06.2025
4+
5+
### Added
6+
- Log to Foundry Repro Converter
7+
8+
### Fixed
9+
- Rearrange the buttons for better UX
10+
- Upgrade dependencies
11+
312
## [0.0.24] - 29.05.2025
413

514
### Fixed
@@ -45,6 +54,7 @@
4554
- Coverage report compatibility with new Medusa report format
4655
- Issue with fuzzer not stopping
4756

57+
[0.0.25]: https://github.com/Recon-Fuzz/recon-extension/releases/tag/v0.0.25
4858
[0.0.24]: https://github.com/Recon-Fuzz/recon-extension/releases/tag/v0.0.24
4959
[0.0.23]: https://github.com/Recon-Fuzz/recon-extension/releases/tag/v0.0.23
5060
[0.0.22]: https://github.com/Recon-Fuzz/recon-extension/releases/tag/v0.0.22

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The Recon extension is a VS Code extension that streamlines smart contract testi
3030
- **Fuzzer integration**: Quick access to fuzzing tools directly through the extension
3131
- **Coverage visualization**: View and analyze code coverage from fuzzers
3232
- **Test generation**: Generate Foundry unit tests from call sequences that break properties found by the fuzzer
33+
- **Log to Foundry Repro converter**: Convert Echidna and Medusa logs to Foundry test reproductions with customizable VM options
3334
- **Mock/TargetFunctions generation**: Easily create mock contracts and target functions for testing
3435
- **CodeLens integration**: Run tests and modify function behaviors directly in the editor
3536

@@ -106,6 +107,20 @@ After running a fuzzer with coverage enabled:
106107

107108
Right-click on a contract's JSON artifact (located in the `out/` directory by default) or Solidity file and select "Generate Solidity Mock" to create a mock implementation of the contract.
108109

110+
### Converting Logs to Foundry Tests
111+
112+
The Log to Foundry converter helps you create reproducible Foundry tests from fuzzer outputs:
113+
114+
1. In the Recon Cockpit view, click "Tools" and select "Log to Foundry"
115+
2. Select your fuzzer (Echidna or Medusa)
116+
3. Paste the fuzzer log output into the text area
117+
4. Click "Convert" to process the log
118+
5. For each broken property found:
119+
- Toggle VM options (vm.prank, vm.roll, vm.warp) independently
120+
- View the generated Foundry test code with syntax highlighting
121+
- Copy individual properties or all properties at once
122+
- View the original trace if needed
123+
109124
## Configuration
110125

111126
Recon can be configured through VS Code settings:

0 commit comments

Comments
 (0)