This folder contains cairo contracts meant to be deployed to madara for end-to-end testing.
This is actually a python project using poetry as a package manager.
To install the project, make sure you have poetry available and run:
poetry installThe goal of this folder is to provide artifacts for madara testing and deploy scripts targeting madara endpoints for end-to-end testing.
First of all make sure you are inside the poetry env:
poetry shellThe script folder contains example scripts, for example for compiling all the Cairo 0 contracts:
python scripts/compile_all.pyOr for deploying an ERC20
python scripts/deploy_erc20.pyMake sure you have starkli installed:
curl https://get.starkli.sh | sh
starkliupIn order to calculate class hash for Cairo 0 contract:
starkli class-hash path-to-output.jsonFor Cairo 1:
starkli class-hash path-to-output.casm.json