/DeInsur

Primary LanguageSolidityMIT LicenseMIT

DeInsur Github Actions Foundry License: MIT

DeInsur is a Foundry-based project which allows authorized admin to set up different kinds of insurance plans and the respective price rate to determine an appropriate price for each policy. Users will then be able to purchase those policies with their desired expiry date and insured amount, and claim automatically in ETH in case an unfortunate incident does happen.

Getting Started

$ pnpm install # install all necessary packages

Usage

This is a list of the most frequently needed commands.

Build

Build the contracts:

$ forge build

Clean

Delete the build artifacts and cache directories:

$ forge clean

Test

Run the tests:

$ forge test

Generate test coverage and output result to the terminal:

$ pnpm test:coverage

License

This project is licensed under MIT.