Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/verumlotus/foundry-template
Template for foundry with basic scaffolding of a testing environment and associated utilities
https://github.com/verumlotus/foundry-template
ethereum evm foundry solidity template
Last synced: 6 days ago
JSON representation
Template for foundry with basic scaffolding of a testing environment and associated utilities
- Host: GitHub
- URL: https://github.com/verumlotus/foundry-template
- Owner: verumlotus
- License: mit
- Created: 2022-01-22T18:56:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-10T18:38:07.000Z (almost 3 years ago)
- Last Synced: 2025-01-03T07:13:49.577Z (about 1 month ago)
- Topics: ethereum, evm, foundry, solidity, template
- Language: Solidity
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Foundry Template
This is a template for foundry that provides the basic scaffolding for quickly getting started with new projects.
To use this template run the following in your terminal:
```
mkdir
cd
forge init --template https://github.com/verumlotus/foundry-template
git submodule update --init --recursive
yarn
```## What's Included
This template already contains submodules & remappings for `ds-test` (assertions for testing), `solmate` (building blocks for contracts) and `forge-std` (layer on top of hevm cheatcodes to improve UX).
Additionally, the testing folder contains `Console.sol` which allows you to console.log values (similar to JS and hardhat), `Hevm.sol` providing an interface to hevm cheatcodes, and `BaseTest.sol` which includes the two contracts above and `stdlib.sol` from `forge-std`.
## Scripts
`Prettier` and `Solhint` can be run with the commands `yarn prettier` and `yarn solhint`.
## Inspiration
Inspiration came from previous testing templates such as gakonst's [dapptools template](https://github.com/gakonst/dapptools-template), and current foundry templates by [Frankie](https://github.com/FrankieIsLost/forge-template) and [Abigger](https://github.com/abigger87/foundry-starter).