iWeb3Org / tradecontracts

Solidity smart contracts for Vanilla.

Home Page:https://vanilladefi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://vanilladefi.com

License:GNU General Public License v3.0


Languages

Language:TypeScript 65.4%Language:Solidity 34.0%Language:Dockerfile 0.4%Language:JavaScript 0.2%