decentralized ERC-20 token (Brownie token ) exchange .
- React.js ,solidity ,hardhat ,mocha, chai, ether.js, web3.js,lodash, apexcharts & waffle
- Deposite & withdraw ether.
- Deposite & withdraw token.
- Buy & sell token.
- Maintain trade (Create order,fill order & cancel order).
- Realtime updates.
- 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
-
new web3.eth.Contract(jsonInterface[, address][, options])
-
.on('transactionHash', function(hash){ ... }) .on('error', function(error){ ... })
-
contractName.events.EventName([options][, callback])
-
Fetch all data from contract event
- An array with the past event Objects, matching the given event name and filter.
contractName.getPastEvents(EventName[, options][, callback])
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>