Rari-Capital / fuse-v1

Smart contracts for Fuse V1 by Rari Capital.
Other
3 stars 3 forks source link

Fuse V1

Smart contracts for Fuse V1 by Rari Capital.

Branches

The master branch should always have passing tests.

The development branch should preferably have passing tests.

All prefixed branches are merged through PRs (target: development), preferably code reviewed and include tests. The CI flow runs on every change in the PR targetting development. If you make any changes to the ABI make sure you run make scripts-interfaces followed by make lint-fix.

Work in progress PR titles are prefixed by WIP:.

CI

The CI is configured using Github workflows and can be found here.

It includes an automated linter setup using Prettier and Solhint and a Forge test runner.

Setup

Copy .env.template into .env and add your details.

Required:

CHAIN_ID=
ETH_RPC_URL=
ETHERSCAN_API_KEY=

Run make to install all the dependencies.

Run make build to build and make test to test, make trace to verbose test.

Run make scripts-interfaces to automatically (re)generate interfaces and ABIs for any files that have been changed.

Run make lint-fix to run the automatic linter across the entire codebase and autofix any issues.

It is recommended you install the following VSCode extensions if you use VSCode.