{"id":13410385,"url":"https://github.com/omarespejel/HERDAO-Cairo","last_synced_at":"2025-03-14T15:32:37.922Z","repository":{"id":230110204,"uuid":"612295528","full_name":"omarespejel/HERDAO-Cairo","owner":"omarespejel","description":"Workshop for the HER DAO Global community","archived":false,"fork":false,"pushed_at":"2023-03-10T17:29:02.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-31T20:42:33.052Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omarespejel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-10T16:12:23.000Z","updated_at":"2023-11-09T01:29:46.000Z","dependencies_parsed_at":"2024-03-27T22:47:35.970Z","dependency_job_id":null,"html_url":"https://github.com/omarespejel/HERDAO-Cairo","commit_stats":null,"previous_names":["omarespejel/herdao-cairo"],"tags_count":0,"template":false,"template_full_name":"auditless/cairo-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omarespejel%2FHERDAO-Cairo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omarespejel%2FHERDAO-Cairo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omarespejel%2FHERDAO-Cairo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omarespejel%2FHERDAO-Cairo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omarespejel","download_url":"https://codeload.github.com/omarespejel/HERDAO-Cairo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221482002,"owners_count":16829979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:01:06.564Z","updated_at":"2024-10-26T01:30:55.421Z","avatar_url":"https://github.com/omarespejel.png","language":"Rust","funding_links":[],"categories":["Tutorials"],"sub_categories":[],"readme":"# First smart contracts with Cairo and HER DAO ![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/auditless/cairo-template/blob/main/LICENSE) \u003ca href=\"https://github.com/auditless/cairo-template/actions/workflows/test.yaml\"\u003e \u003cimg src=\"https://github.com/auditless/cairo-template/actions/workflows/test.yaml/badge.svg?event=push\" alt=\"CI Badge\"/\u003e \u003c/a\u003e\n\n[**Slides for the workshop**](https://docs.google.com/presentation/d/e/2PACX-1vQAsFzOhJSWroZzy2I2D9vbg1tHJNh8D9-ETrCwITX8Q33mfIVQetk0Z_ppbP_Xd2SIOcwbPxv_UiEm/pub?start=false\u0026loop=false\u0026delayms=3000)\n\nA workshop for building smart contracts with Cairo 1.0.\n\n## How it works\n\n- No submodules, forks or other heavy machinery\n\n## Installing dependencies\n\n### Step 1: Install Cairo 1.0\n\nIf you are on an x86 Linux system and able to use the release binary,\nyou can download Cairo here https://github.com/starkware-libs/cairo/releases.\n\nFor everyone, else, we recommend compiling Cairo from source like so:\n\n```bash\n# Install stable Rust\n$ rustup override set stable \u0026\u0026 rustup update\n\n# Clone the Cairo compiler in $HOME/Bin\n$ cd ~/Bin \u0026\u0026 git clone git@github.com:starkware-libs/cairo.git \u0026\u0026 cd cairo\n\n# Generate release binaries\n$ cargo build --all --release\n```\n\n**NOTE: Keeping Cairo up to date**\n\nNow that your Cairo compiler is in a cloned repository, all you will need to do\nis pull the latest changes and rebuild as follows:\n\n```bash\n$ cd ~/Bin/cairo \u0026\u0026 git fetch \u0026\u0026 git pull \u0026\u0026 cargo build --all --release\n```\n\n### Step 2: Add Cairo 1.0 executables to your path\n\n```bash\nexport PATH=\"$HOME/Bin/cairo/target/release:$PATH\"\n```\n\n**NOTE: If installing from a Linux binary, adapt the destination path accordingly.**\n\nThis will make available several binaries. The one we use is called `cairo-test`.\n\n### Step 3: Install the Cairo package manager Scarb\n\nFollow the installation guide in [Scarb's Repository](https://github.com/software-mansion/scarb).\n\n### Step 4: Setup Language Server\n\n#### VS Code Extension\n\n- Disable previous Cairo 0.x extension\n- Install the Cairo 1 extension for proper syntax highlighting and code navigation.\nJust follow the steps indicated [here](https://github.com/starkware-libs/cairo/blob/main/vscode-cairo/README.md).\n\n#### Cairo Language Server\n\nFrom [Step 1](#step-1-install-cairo-10-guide-by-abdel), the `cairo-language-server` binary should be built and executing this command will copy its path into your clipboard.\n\n```bash\n$ which cairo-language-server | pbcopy\n```\n\nUpdate the `languageServerPath` of the Cairo 1.0 extension by pasting the path.\n\n## License\n\n[MIT](https://github.com/auditless/cairo-template/blob/main/LICENSE) © [Auditless Limited](https://www.auditless.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomarespejel%2FHERDAO-Cairo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomarespejel%2FHERDAO-Cairo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomarespejel%2FHERDAO-Cairo/lists"}