Contents |
---|
Deployements |
Details |
Smart Contracts |
Tech Stack Used |
Features |
Getting Started |
Deployed website at Vercel: Desurance
Deployed website at Spheron: Desurance
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:
- Title
- Description
- Minimum members
- Time after which no new user can enter and insurance will start
- validity, that is for how long insurance will remains
- claim time: that is for how long after insurance ended, can a user make an insurance claim for their loss.
- Percentage divided among judges
- 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.
Tech stack used |
---|
Chainlink |
Filecoin |
Polygon |
Orbis.club |
Spheron |
Mantine UI |
-
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.
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
Chainlink was used to randomly select an image out of all images of the post while also considering rarities assigned while minting.
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.
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
All the smart contracts are deployed on polygon mumbai testnet.
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.
fetching posts made in the group
Website is deployed on spheron thus providing a completely decentralized interface for the users.
Mantine ui was heavily used in front end for styling.