This is an Escrow Dapp built with Hardhat.
There are three top-level folders:
/app- contains the front-end application with contracts/server- contains server
cd into the /server directory and run npm install
cd into the /app directory and run npm install
Compile the contracts using npx hardhat compile. The artifacts will be placed in the /app folder, which will make it available to the front-end. This path configuration can be found in the hardhat.config.js file.
To run the local node run make run-node.
Connect a wallet for local development.
To run the front-end application run npm start from the /app directory. Open http://localhost:3000 to view it in your browser.
After your wallet account is connected:
- Insert Arbiter and Beneficiary addresses
- Type a deposit amount in ETH
- Click DEPLOY button
- Confirm Wallet prompt
- After Arbiter approve the transaction ETH will be transferred