ZetaChain is a public, decentralized blockchain and smart contract platform built for omnichain interoperability.
- Utilities to interact with ZetaChain's contracts from your dApp, scripts, or tests.
- Interfaces to easily develop omnichain contracts.
-
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.