Foundry is a blazing fast, portable and modular toolkit for Ethereum application development.
Foundry consists of:
- Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
- Chisel: Fast, utilitarian, and verbose solidity REPL.
Table of Contents
DeFi StableCoin (DSC) is a Web3 project which consists of a stable coin backed by weth and wbtc collateral assets on a smart contract built using Foundry framework, Solidity programming and leverages Chainlink decentralised oracle.
The project is a part of Lesson 12 in Patrick Collins's (@PatrickAlphaC) Foundry Solidity course:
- git
- You'll know you did it right if you can run
git --version
and you see a response likegit version x.x.x
- You'll know you did it right if you can run
- foundry
- You'll know you did it right if you can run
forge --version
and you see a response likeforge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)
- You'll know you did it right if you can run
$ git clone https://github.com/byte0siren/Foundry-Stable-Coin-DeFi/
$ cd Foundry-Fund-Me
$ forge compile
$ forge fmt
$ forge compile
$ forge script scripts/DeployDSC.s.sol
This repo covers Unit & Handler based Invariant tests.
To run ALL tests, use:
$ forge test
or
To only run tests matching specified regex pattern, use:
$ forge test --mt testFunctionName -vvv
or
$ forge test --match-test testFunctionName -vvv
$ forge coverage
$ cast <subcommand>
$ forge --help
$ anvil --help
$ cast --help
Distributed under the MIT License. See LICENSE.txt
for more information.