site homepage metamask wallet with hardhat accounts property after sold to buyer #0 after inspection by #2, approved by lender #3 and finally approved by seller #1
├── contracts
│ ├── Escrow.sol
│ └── RealEstate.sol
├── hardhat.config.js
├── metadata
│ ├── 1.json
│ ├── 2.json
│ └── 3.json
├── package.json
├── package-lock.json
├── public
│ ├── favicon.ico
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
├── README.md
├── scripts
│ └── deploy.js
├── src
│ ├── abis
│ │ ├── Escrow.json
│ │ └── RealEstate.json
│ ├── App.js
│ ├── App.test.js
│ ├── assets
│ │ ├── close.svg
│ │ ├── houses.png
│ │ └── logo.svg
│ ├── components
│ │ ├── Home.js
│ │ ├── Navigation.js
│ │ └── Search.js
│ ├── config.json
│ ├── index.css
│ ├── index.js
│ ├── logo.svg
│ ├── reportWebVitals.js
│ └── setupTests.js
└── test
└── Escrow.js
in contracts folder we have our Escrow and RealEstate contracts.
in test folder we have our tests build using hardhat the file escrow.js contains all the tests.
we can test our smart contract locally by Hardhat using command
npx hardhat node
it'll start a local hardhat blockchain on our computer, it'll give us 20 accounts with fake ether in them
Now simultaneously run npx hardhat run scripts/deploy.js --network localhost
and nfts would mint and get listed on bc
- Solidity (Writing Smart Contracts & Tests)
- Javascript (React & Testing)
- Hardhat (Development Framework)
- Ethers.js (Blockchain Interaction)
- React.js (Frontend Framework)
- Install NodeJS
$ npm install
$ npx hardhat test
$ npx hardhat node
In a separate terminal execute:
$ npx hardhat run ./scripts/deploy.js --network localhost
$ npm run start