Giter Site home page Giter Site logo

itznishant / foundry-stable-coin-defi Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 24 KB

DeFi Stable Coin (DSC): Foundry based Project

Solidity 100.00%
blockchain-developer decentralised-finance ethereum foundry smart-contracts solidity stablecoins web3

foundry-stable-coin-defi's Introduction

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)

foundry-stable-coin-defi's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.