| An opinionated solidity starter template
- Clone and install https://github.com/transmissions11/headers
- Run
headers <insert-header>
- Paste from your clipboard
Command | Description |
---|---|
make build | Default |
make build_optimized | Optimized build using the optimized profile |
To run tests, run the command make test
. To change the logs verbosity, update the makefile's command with less or more v
Command | Description |
---|---|
make gas | Get gas report |
make gas_snapshot | Get gas snapshot |
Command | Description |
---|---|
make doc_build | Build docs |
make doc_serve | Serve docs on 0.0.0.0:8080 |
Fill in your .env
at your root with:
RPC_URL=
ETHERSCAN_KEY=
PRIVATE_KEY=
Command | Environment |
---|---|
make deploy_local | Local anvil (http://localhost:8545) |
make deploy_mainnet | Mainnet [chain 1] |
make deploy_goerli | Goerli [chain 5] |
make deploy_arbitrary | ${CHAIN_ID} |
When updating foundry modules, commit your changes locally and run forge install <package-name>
. Then, update the remappings across the following files to allow builds, security scanning and goto definitions to work properly:
- .vscode/settings.json
- remappings.txt | or run
forge remappings > remappings.txt
Includes:
.gitignore
./vscode/
remappings.txt
Foundry.toml
.github/workflows/
.prettierrc.json
.solhint.json
Inspired by: