/metastreet-contracts

Primary LanguageTypeScriptOtherNOASSERTION

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.