Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pmuens/hello-cairo
- Owner: pmuens
- Created: 2022-06-30T16:56:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T10:23:32.000Z (over 2 years ago)
- Last Synced: 2023-03-24T08:11:51.593Z (over 1 year ago)
- Topics: blockchain, cairo, cairo-lang, smart-contract, smart-contracts, starknet, starkware
- Language: Cairo
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-shellpoetry init
poetry shellcairo-format -i name.cairo
cairo-compile --version
cairo-compile name.cairo --output name_compiled.jsoncairo-run --program=name_compiled.json --print_output --print_info --relocate_prints [--layout=small] [--program_input=name.json] [--tracer]
```