Contracts of official applications deployed by the core team to ZetaChain.
-
Install Node.js LTS (previous versions may, but are not guaranteed to work).
-
Install
yarn
(make sure NPM has the right permissions to add global packages):npm i -g yarn
-
Install the dependencies:
yarn
-
From the root folder, compile the contracts:
yarn compile
They run independently, only on the packages that implement them:
yarn compile
yarn clean
yarn test
They run once, across the whole repo:
yarn lint
yarn lint:fix
To check the test coverage run the follow command on the desire package
npx hardhat coverage
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
We welcome (and appreciate) everyone's contributions. If you wanna contribute, read CONTRIBUTING.md for next steps.