{"id":22370247,"url":"https://github.com/push-protocol/push-comm-cairo","last_synced_at":"2025-03-26T16:25:07.836Z","repository":{"id":256376904,"uuid":"830408842","full_name":"push-protocol/push-comm-cairo","owner":"push-protocol","description":"This is a Cario implementation for Push Comm Contract.","archived":false,"fork":false,"pushed_at":"2024-11-25T20:14:44.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T19:47:51.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/push-protocol.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,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T08:08:58.000Z","updated_at":"2024-11-25T20:14:48.000Z","dependencies_parsed_at":"2024-09-10T11:57:07.002Z","dependency_job_id":"214aa1c9-b274-44a9-a26d-6419041fa02c","html_url":"https://github.com/push-protocol/push-comm-cairo","commit_stats":null,"previous_names":["push-protocol/comm-cairo-smart-contracts","push-protocol/push-comm-cairo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/push-protocol%2Fpush-comm-cairo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/push-protocol%2Fpush-comm-cairo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/push-protocol%2Fpush-comm-cairo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/push-protocol%2Fpush-comm-cairo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/push-protocol","download_url":"https://codeload.github.com/push-protocol/push-comm-cairo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245690634,"owners_count":20656623,"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-12-04T19:37:50.522Z","updated_at":"2025-03-26T16:25:07.815Z","avatar_url":"https://github.com/push-protocol.png","language":"Cairo","funding_links":[],"categories":[],"sub_categories":[],"readme":"# comm-cairo-smart-contracts\n\nThis is a Cairo implementation for the Push Comm Contract.\n\n## Configuration\n\nBefore running the deployment or declaration scripts, ensure you have the following configuration:\n\n1. **Create an `.env` File**\n\n   Copy the `env.sample` file to create the `.env` file with the following command:\n\n   ```bash\n   cp .env.sample .env\n\nMake sure to update the `.env` file with the correct RPC URLs and fee token.\n\n2. **Account Files**\n\n    Create an account using `starkli` and place the account file and keystore file in the accounts directory. \n\n## Deployment Guide\n1. **Declare the Contract Class**\n\n    First, you need to declare the contract class to upload the Cairo contract code to the blockchain. This step will provide you with a class_hash that is used in the deployment step.\n\n    ```bash\n    bash sh/declare.sh -n \u003cnetwork\u003e -k \u003ckeystore\u003e -a \u003caccount\u003e -c \u003ccontract_name\u003e\n\n2. **Deploy the Contract**\n\n    After declaring the contract class, you need to deploy the contract. Update the class_hash in ./deploy/2_deploy.sh with the value obtained from the declaration step.\n\n    ```bash\n    bash sh/deploy.sh -n \u003cnetwork\u003e -a \u003caccount\u003e -k \u003ckeystore\u003e -c \u003cclass_hash\u003e -d \"\u003cconstructor_calldata\u003e\"\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpush-protocol%2Fpush-comm-cairo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpush-protocol%2Fpush-comm-cairo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpush-protocol%2Fpush-comm-cairo/lists"}