Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.45 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.45 KB

Decentralized Token Exchange (Leverage Coin)

This is a project I completed which was offered as a bootcamp tutorial via Dapp University. The bootcamp involved writing token contracts (ERC20) and an exchange contract using Solidity. The contracts are then tested using the chai library in Javascript with hardhat as the blockchain framework.

I then created a front end "DApp" (Decentralized Application) on which users can swap tokens. The idea is that one user would create an order similar to a limit order on a centralized exchange, and another user would fill the order completing the swap.

Technology Stack & Tools

  • Solidity (Writing Smart Contract)
  • Javascript (React & Testing)
  • Ethers (Blockchain Interaction)
  • Hardhat (Development Framework)
  • Alchemy (Forking and Node connection)
  • React(Front End Component based User Interface)
  • MetaMask (Ethereum Wallet)
  • Git/GitHub (Commit our code)
  • Fleek (Website Deployment)

Setting Up

1. Clone/Download the Repository

2. Install Dependencies:

$ npm install

3. Setup .env File

Create a .env file using this template: ALCHEMY_API_KEY="" PRIVATE_KEYS=","

4. Run Frontend Application

In a separate CMD prompt/terminal run: $ npm start

5. (Optional) Test Smart Contracts

$ npx hardhat test