Skip to content

Fujicracy/fuji-v2

Repository files navigation

Fuji v2

Cross-chain Lending Aggregator

Quickstart

  1. Clone repository with the following command:

git clone --recurse-submodules https://github.com/Fujicracy/x-fuji

Note: The 'protocol' workspace in this monorepo uses Git Submodules.

  1. Install Foundry

You can find the instructions here.

Code style

Commit messages

We want to establish rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. Check conventions here. In general the pattern mostly looks like this:

type(package): subject  #package should be one from "./packages/"

Branch and PR naming

Branch titles have to follow a similar convention:

package/type/short-title  #package should be one from "./packages/"

A pull request title have to include no more than 3-4 words describing what it's about. PR titles start with upper-case.

Protocol

We are using Foundry built-in formatter (more details here). We have configured husky so that it runs before every commit.

Frontend

We use eslint alongside with prettier to format our code.

Every time you commit files, they are automatically formatted thanks to hysky (pre commit hooks), but you may want to enable it in your editor, this way every time you save it'll format it.

To do it in visual code:

  1. Install ESlint extension
  2. Install Prettier extension
  3. Change default formatter and choose "prettier" as default
  4. (optionnal) Enable "format on save"

If you use another editor feel free to add it in this doc.