{"id":26469824,"url":"https://github.com/ocdbytes/cairo-v1-starter","last_synced_at":"2026-01-03T17:46:13.714Z","repository":{"id":232993853,"uuid":"720860359","full_name":"ocdbytes/cairo-v1-starter","owner":"ocdbytes","description":"This repository hold the libs setup for starknet-foundry setup (for testing), scarb (for building), starkli (for declaring \u0026 deploying)","archived":false,"fork":false,"pushed_at":"2023-11-19T20:16:22.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T10:46:07.763Z","etag":null,"topics":["cairo-lang","cairo-v1","starknet"],"latest_commit_sha":null,"homepage":"","language":"Cairo","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ocdbytes.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-19T20:15:27.000Z","updated_at":"2023-11-19T20:17:23.000Z","dependencies_parsed_at":"2024-04-12T22:04:13.796Z","dependency_job_id":"5f69435d-5474-4679-a25d-3623489de009","html_url":"https://github.com/ocdbytes/cairo-v1-starter","commit_stats":null,"previous_names":["ocdbytes/cairo-v1-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2Fcairo-v1-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2Fcairo-v1-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2Fcairo-v1-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2Fcairo-v1-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocdbytes","download_url":"https://codeload.github.com/ocdbytes/cairo-v1-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244470251,"owners_count":20457908,"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":["cairo-lang","cairo-v1","starknet"],"created_at":"2025-03-19T17:09:31.109Z","updated_at":"2026-01-03T17:46:13.671Z","avatar_url":"https://github.com/ocdbytes.png","language":"Cairo","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cairo Lang\n\nThis repository hold the libs setup for starknet-foundry setup (for testing), scarb (for building), starkli (for declaring \u0026 deploying)\n\n### Scarb.toml (basic)\n\n```toml\n[package]\nname = \"hello_starknet\"\nversion = \"0.1.0\"\n\n[[target.starknet-contract]]\nsierra = true\n# casm = true # needed for snforge\n\n[dependencies]\nsnforge_std = { git = \"https://github.com/foundry-rs/starknet-foundry\", tag = \"v0.7.1\" }\nstarknet = \"\u003e=2.2.0\"\n\n[cairo]\nsierra-replace-ids = true\n```\n\n### Protostar\n\n```sh\n# To declare the project\n$ protostar init --minimal \u003cProject_name\u003e\n$ protostar init \u003cProject_name\u003e\n```\n\n### Scarb\n\n```sh\n# To declare a project\n$ scarb init\n# To build a project\n$ scarb build\n# To run the scarb\n$ scarb cairo-run\n```\n\n### Foundry\n\n```sh\n# installation in existing scarb project\n$ scarb add snforge_std  --git https://github.com/foundry-rs/starknet-foundry.git  --tag v0.7.1\n\n# To run test :\n\n$ snforge test\n```\n\nEssential option (Scarb.toml) for running `snforge` test :\n\n```toml\n.......\n[[target.starknet-contract]]\ncasm = true\n.......\n```\n\n### Starkli\n\n- Setup\n\n```sh\n$ export STARKNET_ACCOUNT=~/.starkli-wallets/deployer/account.json\n$ export STARKNET_KEYSTORE=~/.starkli-wallets/deployer/keystore.json\n$ export STARKNET_RPC=https://starknet-goerli.infura.io/v3/\u003cAPI_KEY\u003e\n```\n\n- Setting up the account\n\n```sh\n# Setting up the wallet\n$ starkli signer keystore from-key ~/.starkli-wallets/deployer/keystore.json\n\n# O/P\nEnter private key: \u003cEnter_wallet_priv_key\u003e\nEnter password: \u003cSetup_up_wallet_passkey\u003e\nCreated new encrypted keystore file: /home/\u003cuser\u003e/.starkli-wallets/deployer/keystore.json\nPublic key: \u003cWallet_key_will_be_shown_here\u003e\n\n# Fetching up the wallet config\n$ starkli account fetch \u003cYOUR_WALLET_ADDRESS\u003e --output ~/.starkli-wallets/deployer/account.json\n```\n\n- Declaring \u0026 Deploying the smart contract\n\n```sh\n$ starkli declare target/dev/hello_starknet_Storage.contract_class.json\n\n# O/P\nClass hash:\n0x05f0a5f0f8e14fba4c282c50a2b4e81393ce5e0812b1619542f5aa461d411219\n\n$ starkli deploy \u003cCLASS_HASH_DECLARED\u003e\n```\n\n### Contract Details (Deployed)\n\n```sh\nClass Hash : 0x05f0a5f0f8e14fba4c282c50a2b4e81393ce5e0812b1619542f5aa461d411219\n\nContract Address : 0x0729c749170c14a07f25034a79962a7377b73fc3e9b68f580e3d35371c965a3c\n\nVoyager Link : https://goerli.voyager.online/contract/0x0729c749170c14a07f25034a79962a7377b73fc3e9b68f580e3d35371c965a3c#transactions\n```\n\n### Resources :\n\n- https://docs.starknet.io/documentation/quick_start/deploy_a_smart_contract/\n- https://docs.starknet.io/documentation/quick_start/environment_setup/\n- https://docs.swmansion.com/scarb/\n- https://book.cairo-lang.org/ch00-00-introduction.html\n- https://docs.swmansion.com/protostar/docs/cairo-1/introduction\n- https://medium.com/starknet-edu/starkli-the-new-starknet-cli-86ea914a2933\n- https://foundry-rs.github.io/starknet-foundry/\n- https://github.com/shramee/starklings-cairo1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fcairo-v1-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focdbytes%2Fcairo-v1-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fcairo-v1-starter/lists"}