Home

Awesome

audit_helper

Description

audit_helper is a Python3 helper script for Linux to automate some Foundry boilerplate set up in audit repositories.

Too many times have I found myself initialising Hardhat framework based audit repositories with my preferred audit framework Foundry.

Requirements

Python3

user@machine:~/ sudo apt install python3

Foundry

user@machine:~/ curl -L https://foundry.paradigm.xyz | bash

Installation

mkdir ~/audit_helper && cd ~/audit_helper
wget https://raw.githubusercontent.com/HardlyCodeMan/audit_helper/main/audit_helper
chmod u+x ~/audit_helper/audit_helper
echo 'export PATH="$PATH:~/audit_helper"' >> ~/.bashrc
source ~/.bashrc

Usage Example

user@machine:~/audit_repo$ audit_helper -c src/ -o test/ -p myTest_ -s -oz

The above bash command will:

Flags

--flag-flagDescription
--help-hDisplay this menu
--version-vPrint the version number
--contracts-cLocation of contracts
--output-oTest output folder. (Default: test/)
--prefix-pTest file prefix (Default: "")
--setup-sInitialise Foundry project and edit foundry.toml accordingly
--openzeppelin-ozRequires -s flag. Initialize with OpenZeppelin-Contracts repository
--solmate-smRequires -s flag. Initialize with Solate repository

Links

Issues and Improvements

Feel free to create issues to raise awareness of problems or feature implementation requests.

By all means please contribute fixes and features through pull requests.