Skip to content

itznishant/Foundry-Stable-Coin-DeFi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry

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.

Documentation

https://book.getfoundry.sh/

Project Info

DeFi Stable Coin built on Solidity based Smart contracts

Table of Contents
  1. About Project
  2. Getting Started
  3. Quickstart
  4. Usage
  5. Testing
  6. Contact
  7. License

About Project

DeFi Decentralised Stable Coin (DSC)

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:

(back to top)

Built With

Solidity Ethereum

Foundry Openzeppelin ChainLink

(back to top)

Getting Started

Requirements

  • git
    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • foundry
    • You'll know you did it right if you can run forge --version and you see a response like forge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)

Quickstart

$ git clone https://github.com/itznishant/Foundry-Stable-Coin-DeFi/
$ cd Foundry-Fund-Me
$ forge compile

Usage

Format

$ forge fmt

Compile

$ forge compile

Deploy:

$ forge script scripts/DeployDSC.s.sol

Testing

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

Test Coverage

$ forge coverage

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

Contact

Nishant Vemulakonda

Twitter Follow itznish

Nishant Vemulakonda LinkedIn

Nishant Vemulakonda GitHub followers

Linktree: @nishant.social

Web3Career: @nishantv

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)