Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Cairo Contracts

This folder contains cairo contracts meant to be deployed to madara for end-to-end testing.

Installation

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 install

Usage

The 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 shell

The script folder contains example scripts, for example for compiling all the Cairo 0 contracts:

python scripts/compile_all.py

Or for deploying an ERC20

python scripts/deploy_erc20.py

Class hash

Make sure you have starkli installed:

curl https://get.starkli.sh | sh
starkliup

In order to calculate class hash for Cairo 0 contract:

starkli class-hash path-to-output.json

For Cairo 1:

starkli class-hash path-to-output.casm.json