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
- Host: GitHub
- URL: https://github.com/jpraynaud/cairo-demo
- Owner: jpraynaud
- License: apache-2.0
- Created: 2022-01-31T09:20:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T09:59:45.000Z (over 4 years ago)
- Last Synced: 2025-04-03T14:45:20.575Z (about 1 year ago)
- Topics: cairo-lang, demo, starknet, starkware, zkrollup
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```