Decentralized Unique Bid Action game implemented using Solidity (for smart contracts) & React for frontend. Poject based on scaffold-eth by Austin Griffith.
First, you'll need NodeJS>=10 plus Yarn and Git installed.
πΎ Clone/fork repo and then install:
git clone https://github.com/pavponn/unique-bid-dapp.git
cd unique-bid-dapp
yarn install
π‘ Sometimes the install throws errors like "node-gyp", try the next step even if you see problems.
(You can also download the Apple command line tools to fix the warning.)
βοΈ React frontend powered by π±create-eth-app using π§Ethers.js and the π¦Uniswap template:
yarn start
π Edit your frontend App.js
in packages/react-app/src
and open http://localhost:3000
β Start your local blockchain powered by π·ββοΈBuidler:
yarn run chain
Note: You'll need to run this command in a new terminal window
π Use this eth.build to double-check your local chain and account balances
βοΈ Compile your contracts:
yarn run compile
π’ Deploy your contracts to the frontend:
yarn run deploy
π Watch for changes then compile, deploy, and hot reload the frontend:
yarn run watch
π¬Test your contracts by editing myTest.js
in packages/buidler/contracts
:
yarn run test
π List your local accounts:
yarn run accounts
π° Check account balance:
yarn run balance **YOUR-ADDRESS**
πΈ Send ETH:
yarn run send --from 0 --amount 0.5 --to **YOUR-ADDRESS**
π§ Configure π·Buidler by editing
buidler.config.js
inpackages/buidler
β¨ The BuidlerEVM provides stack traces and console.log debugging for our contracts β¨
Pavel Ponomarev, 2020 ([email protected])
MIT License.