Skip to content

ninetydays/p2p-smart-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published