Skip to content

Latest commit

 

History

History
86 lines (53 loc) · 1.51 KB

README.md

File metadata and controls

86 lines (53 loc) · 1.51 KB

ZetaChain App Contracts

Contracts of official applications deployed by the core team to ZetaChain.

Learn more about ZetaChain

Usage

  1. Install Node.js LTS (previous versions may, but are not guaranteed to work).

  2. Install yarn (make sure NPM has the right permissions to add global packages):

     npm i -g yarn
    
  3. Install the dependencies:

     yarn
    
  4. From the root folder, compile the contracts:

     yarn compile
    

Packages

Cross-repo commands

Package-specific commands

They run independently, only on the packages that implement them:

yarn compile
yarn clean
yarn test

Repo commands

They run once, across the whole repo:

yarn lint
yarn lint:fix

Coverage

To check the test coverage run the follow command on the desire package

npx hardhat coverage

Static test

We run slither on our packages. If you want to run it should install slither

brew install slither-analyzer

and execute it

slither . --filter-paths "contracts/test/|node_modules/" --exclude naming-convention

Contributing

We welcome (and appreciate) everyone's contributions. If you wanna contribute, read CONTRIBUTING.md for next steps.