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.
$ pnpm install # install all necessary packages
This is a list of the most frequently needed commands.
Build the contracts:
$ forge build
Delete the build artifacts and cache directories:
$ forge clean
Run the tests:
$ forge test
Generate test coverage and output result to the terminal:
$ pnpm test:coverage
This project is licensed under MIT.