Skip to content

icanvardar/foundry-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry Template

This is a template for Solidity projects that runs on top of Foundry. It is ready to use, so you can clone it and start building your Solidity projects right away.

Usage

Build

To compile your Solidity contracts, run:

forge build

Test

To run the tests for your contracts, execute:

forge test

Format

To format your Solidity code, use:

forge fmt

The formatter is preconfigured, and you can change its configuration in the foundry.toml file under the fmt section.

Deploy

To deploy your contracts, make sure you have the DEPLOYER_PK and RPC URL environment variables set in your .env file. Then run the following command:

forge script script/Deploy.s.sol

Dependency Management with Soldeer

To install dependencies using Soldeer, you can use the following command example:

forge soldeer install solmate~6.7.0

If you've just cloned the repository and want to download the pre-configured dependencies listed in foundry.toml, run:

forge soldeer update

License

This project is licensed under MIT.

About

A template for Solidity projects that runs on top of Foundry and uses Soldeer as package manager.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors