/hello-cairo

Learning Cairo while following the official tutorial

Primary LanguageCairo

Hello Cairo

Learning Cairo while following the official tutorial.

Setup

  1. git clone <url>
  2. nix-shell
  3. poetry shell

Optional: Update the cairo.cairoFormatPath property in the .vscode/settings.json file. Run which cairo-format within a Poetry shell to get the project-specific cairo-format path.

Optional: Update the python.formatting.blackPath property in the .vscode/settings.json file. Run which black within a Poetry shell to get the project-specific black path.

Useful Commands

nix-shell

poetry init
poetry shell

cairo-format -i name.cairo

cairo-compile --version
cairo-compile name.cairo --output name_compiled.json

cairo-run --program=name_compiled.json --print_output --print_info --relocate_prints [--layout=small] [--program_input=name.json] [--tracer]