A template for quickly getting started with forge.
If using bash:
mkdir my-project
cd my-project
forge init --template https://github.com/OlympusDAO/forge-template
yarn build
yarn test
Otherwise replace yarn build
with:
git submodule update --init --recursive ## initialize submodule dependencies
npm install ## install development dependencies...
forge build
yarn test
- run forge tests
ds-test
for testing, test-utils
for more test utils, forge-std
for better cheatcode UX, and solmate
for optimized contract implementations.
Pre-configured solhint
and prettier-plugin-solidity
. Can be run by
yarn run solhint
yarn run prettier
Automatically run linting and tests on pull requests.
Including .gitignore
, .vscode
, remappings.txt
Thanks to Franke for the initial template.