Giter Site home page Giter Site logo

chronicle_insurance's Introduction

About the Chronicle ๐Ÿ“–

Motivation

We live in a world where we interact based on trust and now we can verify using web3.0. We can verify the authenticity of the data and the source of the data. We can verify the data is not tampered with and we can verify the data is not fake.

In Nigeria ๐Ÿ‡ณ๐Ÿ‡ฌ and many parts of Africa, cars are sold at second hand prices and the buyer has no way of knowing the history of the car. The buyer has no way of knowing if the car has been in an accident or if the car has been stolen.

Most time cars are sold at a higher price than the actual market value. The buyer has no way of knowing the actual market value of the car. Insurance companies have no way of verifying the history of the car. they also have no way of verifying the market value of the car and also no way of verifying the health of the car.

With Chronicle Dapp, users can purchase insurance and verify the history of the car, using OBD2 data while also providing transparency of market value for cars registered on its platform.

What is OBD2?

On-Board Diagnostics (OBD) is a standardized system integrated into modern vehicles to monitor and report the performance of various components. It utilizes sensors and diagnostic tools to gather information about the engine, transmission, and emissions systems. The primary purpose of OBD is to identify and diagnose malfunctions, providing mechanics and car owners with specific fault codes that pinpoint issues within the vehicle. This real-time data enables efficient and accurate troubleshooting, leading to timely repairs and maintenance. OBD plays a crucial role in enhancing vehicle reliability, improving fuel efficiency, and aiding in emission control, contributing to safer and more environmentally friendly driving experiences.

What it does

Chronicle Dapp is built for users that want to take control of their data. Using OBD2 technology, users can submit their car data to the blockchain. The data is stored on the blockchain and can be accessed by anyone. The data is immutable and cannot be tampered with. The data is stored on the blockchain forever. Users can verify the authenticity of the data and the source of the data.

This means in a real world scenerio, you won't have to worry about buying a stolen car or a car that has been in an accident. You can verify the history of the car using the data from the blockchain.

Features
  • Don't trust, Verify: Users can verify the history of the car using the data from the blockchain. โœ…

  • Purchase Insurance without hassle: Users can purchase insurance for their car using the data from the blockchain. โœ…

  • Using VINs(just for the mvp): Every car has a unique id and the data is stored on the blockchain forever. โœ…

  • Transparency: Everyone can access the data on the blockchain. โœ…

  • Predictive analysis: We can use the data to predict the market value of the car. โœ…

  • View Car's health at a glance: We can use the data to view the health of the car. โœ…

How we built it

We built the smart contracts using ink! smart contracts. We deployed the smart contract on the blockchain. We used the obd2 python library and utilized elm (a library for running simulated vehicles on pc) in helping to simulate a vehicle, these parts work hand in hand to give an ideal real-world scenerio car data. We used nextjs to build the frontend. We also used typescript for the frontend.

For a visual presentation and demo

Click here

How it works

The user purchases insurance for themselves. After purchaing insurance, the user can submit their car data to the blockchain. The registered cars can now be viewed by anyone including car's health and market price prediction.

Tech stack
  • Ink! Smart contracts
  • Python
  • Nextjs
  • Typescript
Team

Project directory

The contracts directory contains the following folders:

  • src/
  1. Contains the Chronicle contract
  2. Contains the Insurance contract
  • deployments/ โ€“ Contains the deployment artifacts for the Chronicle, Insurance, contracts
  • scripts/ โ€“ Contains scripts to build, test, and deploy the contracts

The Obd directory contains more information about the Obd project. For more information about how to run the obd project, please refer to the README.md file in the obd directory.

Mock data

We stored some mock data from the car for user's who don't use a linux laptop, The mock data is stored in response.json

P.S you'll need to edit the frontend code to use the mock data, please refer to the README.md file in the frontend directory for more information.

Getting started ๐Ÿš€

1. Run the simulated car

install the requirements.txt in obd

Please read the README.md file in the obd directory for more information.

2. Run the frontend

Pre-requisites:

# Install dependencies (once)
# NOTE: This automatically creates an `.env.local` file
pnpm install

# Start Next.js frontend
pnpm run dev


chronicle_insurance's People

Contributors

ayomidebajo avatar bolajahmad avatar

Watchers

 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.