Skip to content

Solidity smart contracts for Vanilla.

License

GPL-3.0, GPL-2.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-2.0
LICENSE_TICKMATH
Notifications You must be signed in to change notification settings

vanilladefi/contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3178be1 · Dec 13, 2021

History

29 Commits
Mar 29, 2021
Aug 17, 2021
Aug 17, 2021
Aug 17, 2021
Aug 17, 2021
Aug 17, 2021
Dec 10, 2021
Feb 12, 2021
Aug 17, 2021
Aug 17, 2021
Feb 12, 2021
Sep 20, 2021
Feb 12, 2021
Feb 12, 2021
Dec 10, 2021
Aug 17, 2021
Aug 17, 2021
Feb 12, 2021
Feb 12, 2021
Aug 17, 2021
Dec 10, 2021
Feb 12, 2021
Aug 17, 2021
Aug 17, 2021
Mar 29, 2021
Aug 17, 2021
Aug 17, 2021
Aug 17, 2021
Sep 20, 2021
Sep 20, 2021
Aug 17, 2021

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: