0xabdou / metastreet-contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MetaStreet Contracts

Prerequisites

Node v16 or below. Hardhat doesn't work with Node v17 currently: hardhat#1988.

Usage

Install:

npm install

Compile contracts:

npm run build

Run unit tests:

npm test

Start hardhat network:

npm run node

Additional Targets

  • Format contracts (prettier): npm run format
  • Lint contracts (solhint): npm run lint
  • Run unit tests with gas reporter: npm run test:gas
  • Run unit tests with coverage (solidity-coverage): npm run test:coverage
  • Run static analyzer (slither, requires external installation): npm run analyze
  • Format tests and scripts (prettier): npm run format:ts
  • Lint tests and scripts (eslint): npm run lint:ts

File Structure

License

MetaStreet v1 Contracts are primary BUSL-1.1 licensed. Interfaces are MIT licensed.

About

License:Other


Languages

Language:TypeScript 70.1%Language:Solidity 29.7%Language:JavaScript 0.2%Language:Shell 0.0%