Giter Club home page Giter Club logo

desurance's Introduction

Desurance

Contents
Deployements
Details
Smart Contracts
Tech Stack Used
Features
Getting Started

Deployements

Deployed website at Vercel: Desurance

Deployed website at Spheron: Desurance

Details

A decentralised p2p insurance platform where users can create insurance contract and judges will be selected randomly automatically based on the contract conditions and final judgement will be fulfilled automatically after insurance finishes.

Every user can create an insurance contract, which will have following informations:

  1. Title
  2. Description
  3. Minimum members
  4. Time after which no new user can enter and insurance will start
  5. validity, that is for how long insurance will remains
  6. claim time: that is for how long after insurance ended, can a user make an insurance claim for their loss.
  7. Percentage divided among judges
  8. judging time: how much time will judge get to judge all the claims.

After an insurance contract is created, anyone who wants join a particular contract is supposed to send a request for membership. If every member of that contract accept the request then the user can add himself to the contract.

Judges are selected using chainlink oracles, one for getting random numbers to select judges randomly and other to perform function after certain period which is also done using oracles. So custom logic based automation + random number is used from chainlink oracles.

If no judges had fullfilled their jobs then everyone except those judges will get their fund inside the pool back. If no claim have majority votes then judges who didn't fullfilled won't get their funds back and everyone else will get their funds back. If claim request is fullfilled then remaining amount is distributed among all the members. Also first judges get their percentage from total pool amount as a prize for fullfilling their job.

Title, description, and all other texts and responses are stored on IPFS using Web3.storage.

All contracts are deployed on polygon mumbai testnet.

Orbis.club is used to provide users an ability to make comments on any insurance on ceramic network which is based on the IPFS libP2P stack.

Smart Contracts

Solidity files

Smart Contracts Addresses

Verified Smart Contracts on polygonscan

DesuranceHandle

Tech Stack Used

Tech stack used
Chainlink
Filecoin
Polygon
Orbis.club
Spheron
Mantine UI

Features

  • Provides users a p2p decentralized insurance platform which automatically does a lot of work using chainlink oracles.

  • Automatically random judges will get selected and automatically final judgement will be fulfilled using Chainlink oracles.

  • All the title, description, etc. are stored in IPFS using web3.storage

  • Users can also make comments on the insurance on ceramic network using Orbis.club which is based on the IPFS libP2P stack.

  • All the contracts are deployed on Polygon mumbai testnet thus providing low gas fees yet a secured chain.

Getting Started

To run frontend :

cd client/my-app

yarn run dev

Open http://localhost:3000 with your browser to see the result.

To deploy smart contracts to localhost :

cd smart_contracts/

yarn hardhat deploy --network localhost

Sponsors Used

Chainlink

Chainlink was used to randomly select an image out of all images of the post while also considering rarities assigned while minting.

checkUpkeep

performUpkeep

fulfillRandomWords

Filecoin

Web3.storage was used to store almost all the contents (like title, description in json, etc.) and then to fetch it such that globaly everyone can see and appreciate the content in a decentralized way.

Uploading json to IPFS

Storing Insurance title and description as json

Storing reason for Judging insurance claim request as json

Storing description insurance claim request as json

Storing description for joining insurance as a member as json

Polygon

All the smart contracts are deployed on polygon mumbai testnet.

Deployements

Smart Contracts

Orbis.club

Orbis is used to provide users an ability to make comments on any insurance on ceramic network which is based on the IPFS libP2P stack.

Creating a group

sending posts in the group

fetching posts made in the group

Spheron

Website is deployed on spheron thus providing a completely decentralized interface for the users.

Deployed on Spheron

Mantine UI

Mantine ui was heavily used in front end for styling.

desurance's People

Contributors

ahmed-aghadi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.