Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pmuens/hello-cairo

Learning Cairo while following the official tutorial
https://github.com/pmuens/hello-cairo

blockchain cairo cairo-lang smart-contract smart-contracts starknet starkware

Last synced: 20 days ago
JSON representation

Learning Cairo while following the official tutorial

Awesome Lists containing this project

README

        

# Hello Cairo

Learning Cairo while following the [official tutorial](https://www.cairo-lang.org/docs/hello_cairo/index.html).

## Setup

1. `git clone `
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

```sh
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]
```