Skip to content

vanilladefi/contracts

Repository files navigation

Vanilla Contracts v1.1

This repository contains the core smart contracts for Vanilla. For documentation, see the technical overview of the contracts.

Install PNPM

We use pnpm instead of npm. Use npm to install pnpm:

npm install -g pnpm

Build and Test

We use Hardhat as a build tool.

To build, generate Typechain bindings, and run model tests:

pnpm install
pnpm run compile:sol
pnpm run generate:typechain
pnpm test

To run coverage reports

pnpm run coverage:sol

Lint and reformat

We use ESLint for JS/TS code and Prettier for Solidity code.

To run lint checks:

pnpm run lint:js
pnpm run lint:sol

To reformat / prettify:

pnpm run format:js
pnpm run format:sol

Deployment

We use Hardhat also for all deployments. See DEPLOYMENT.md for detailed instructions.

License

All source code is licensed under GPL-3.0-or-later except:

About

Solidity smart contracts for Vanilla.

Resources

License

GPL-3.0, GPL-2.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-2.0
LICENSE_TICKMATH

Stars

Watchers

Forks