/cairo-demo

Demo programs written in Cairo Lang

Primary LanguagePythonApache License 2.0Apache-2.0

Cairo Demo

A set off simple showcase programs written in Cairo Lang.

Programs list:

  • Hello
  • Simple Polynomial
  • Array Summation
  • Power Calculation
  • Simple AMM
  • Starknet
    • Ownable
    • Balance

Compile and run instructions

# Change directory
cd hello

# Compile program
cairo-compile hello.cairo --output hello_compiled.json

# Run program
cairo-run --program=hello_compiled.json --print_output --layout=small
Program output:
  123