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 compileyarn cleanyarn testThey run once, across the whole repo:
yarn lintyarn lint:fixTo check the test coverage run the follow command on the desire package
npx hardhat coverageWe run slither on our packages. If you want to run it should install slither
brew install slither-analyzerand execute it
slither . --filter-paths "contracts/test/|node_modules/" --exclude naming-conventionWe welcome (and appreciate) everyone's contributions. If you wanna contribute, read CONTRIBUTING.md for next steps.