Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.22 KB

readme.md

File metadata and controls

37 lines (23 loc) · 1.22 KB

Decentralized Escrow Application

This is an Escrow Dapp built with Hardhat.

Project Layout

There are three top-level folders:

  1. /app - contains the front-end application with contracts
  2. /server - contains server

Back-End

cd into the /server directory and run npm install

Front-End

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.

Usage

After your wallet account is connected:

  1. Insert Arbiter and Beneficiary addresses
  2. Type a deposit amount in ETH
  3. Click DEPLOY button
  4. Confirm Wallet prompt
  5. After Arbiter approve the transaction ETH will be transferred