Skip to content

Decentralized ERC-20 token (Brownie token ) exchange .

Notifications You must be signed in to change notification settings

spandan114/Token-exchange

Repository files navigation

Token exchange 🤑

decentralized ERC-20 token (Brownie token ) exchange .

Exchange image

Tech stack & packages used 👨‍💻

  • React.js ,solidity ,hardhat ,mocha, chai, ether.js, web3.js,lodash, apexcharts & waffle

Token exchange features 🎉

  • Deposite & withdraw ether.
  • Deposite & withdraw token.
  • Buy & sell token.
  • Maintain trade (Create order,fill order & cancel order).
  • Realtime updates.

How to run 🏃 :


  • Run hardhat node
    npx hardhat node
    
  • Run test cases
    npx hardhat test
    
  • Deploy contract in local hardhat node
    npx hardhat run scripts/deploy.js --network localhost
    
  • Connect hardhat with metamask
  • Run react frontend
    cd client
    npm start
    

Web3.js


Hardhat commands

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/deploy.js
npx hardhat run scripts/seed.js
npx hardhat help
npx hardhat run scripts/deploy.js --network <network name>