An open API service indexing awesome lists of open source software.

https://github.com/jpraynaud/cairo-demo

Demo programs written in Cairo Lang
https://github.com/jpraynaud/cairo-demo

cairo-lang demo starknet starkware zkrollup

Last synced: 11 months ago
JSON representation

Demo programs written in Cairo Lang

Awesome Lists containing this project

README

          

# Cairo Demo
A set off simple showcase programs written in **Cairo Lang**.

* For more informations about **Cairo Lang**, visit https://www.cairo-lang.org
* Compiler and environment setup: https://www.cairo-lang.org/docs/quickstart.html

# 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
```