Template foundry project created by Kwenta
- Create an
.env
file using the.env.example
file as a template - Update
package.json
with your project name, description, etc. - Update the
README.md
with your project name, description, etc. - Add required Repository Secrets to your github repository settings
Navigate to
Settings > Secrets and variables > Actions
and add whatever secrets are required for your project's CI.
- The current template CI will fail until the following repository secrets are added:
OPTIMISM_GOERLI_RPC_URL
andETHERSCAN_API_KEY
. See.github/workflows/*
for more details. - Finally, run
npm run coverage:generate-lcov
to generate a coverage report for your project and commit the results to your remote repository
This will be used by the CI to determine when changes to your project have caused the coverage to drop below a certain threshold.
tree src/
src/
└── Counter.sol
-
Build project
npm run compile
- Execute tests (requires rpc url(s) to be set in
.env
)
npm run test
- Run specific test
OPTIMISM_GOERLI_RPC_URL
can be replaced withOPTIMISM_RPC_URL
if a mainnet fork is desired
forge test --fork-url $(grep OPTIMISM_GOERLI_RPC_URL .env | cut -d '=' -f2) --match-test TEST_NAME -vvv
See
deployments/
folder
- Optimism deployments found in
deployments/Optimism.json
- Optimism Goerli deployments found in
deployments/OptimismGoerli.json
- Base deployments found in
deployments/Base.json
- Base Goerli deployments found in
deployments/BaseGoerli.json
See
audits/
folder
- Internal audits found in
audits/internal/
- External audits found in
audits/external/