Skip to content

NIC619/cairo_dapp_poc

Repository files navigation

StarkWare Cairo lang practice

Setup Cairo

Ref: Cairo doc - Setting up the environment

  • install python3.7 (using virtual env or not)
  • install prerequesite libraries: sudo apt install -y libgmp3-dev(ubuntu) or brew install gmp(mac)
  • install python packages: pip install ecdsa fastecdsa sympy
    • NOTE: Cairo was tested with python3.7. To make it work with python3.6, you will have to install contextvars: pip install contextvars
  • download Cairo python package and install via pip install cairo-lang-0.4.1.zip
  • to run tests, install: pip install pytest pytest-asyncio

Setup Hardhat

Ref: Install Hardhat

Compile Cairo and run

See compile and run

Tests

pytest tests