Functional and technical documentation for Solidity:
Functional and technical documentation for Ink:
Fill in secrets:
cp env/.eth.template env/.eth && nano env/.eth
cp env/.azero.template env/.azero && nano env/.azeroStart blockchain:
make upFor first time it might require to install deps on container:
make install
yarn run init-husky
make recreateTests run compilation with all Foundry plugins and all smart contract modules:
make runtestUnit tests for individual smart contract modules could be invoked by:
make runtest-fundraising
make runtest-staking
make runtest-tholosUncomment FORK_MAINNET in env/.hardhat, recreate docker container (make recreate) and run:
make runtest-forkJust run following to generate new coverage report:
make gen-coverageFor functional documentation update ./docs that during compilation produce docs together with
generated technical documentation.
Directly invoke script via docker-compose to pass env and one of package.json run- commands:
docker-compose -e ENV_VAR=abc eth yarn run-hh script-nameRun commands:
- run-hh (runs on local node)
- run-dev (runs on dev environment)
- run-stg (runs on stage environment)
- run-pre (runs on pre-prod environment)
- run-prod (runs on production environment)
For available scripts check
scriptsfolder.
For required and optional env check individual script file.