Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.08 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.08 KB

p2p-smart-contract

This repo implements basic P2P lending running on the etherium networks. This is not suitable for production but just illustrative purposes only.

Prerequisite

  • nodejs
  • block chain wallet

Backend

Smart contract implementation which is in /backend directory. It includes local ethereum network which running on http://127.0.0.1:8545 and chainId is 31337. Development framework is hardhat

Installation

$ yarn install

Run test

$ yarn test

Run node

$ yarn start

followed by

$ yarn deploy

Frontend

web UI for the smart contract, it's in /frontend directory. and basically this is nextjs app with some ethereum library such as wagmi or connectkit

Installation

$ yarn install

Run locally

$ yarn dev

make sure to update next.config.js that smart contract's address is valid. you can find the address when you deploy the contract