Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/push-protocol/push-comm-cairo
This is a Cario implementation for Push Comm Contract.
https://github.com/push-protocol/push-comm-cairo
Last synced: about 1 month ago
JSON representation
This is a Cario implementation for Push Comm Contract.
- Host: GitHub
- URL: https://github.com/push-protocol/push-comm-cairo
- Owner: push-protocol
- Created: 2024-07-18T08:08:58.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-20T13:35:35.000Z (about 2 months ago)
- Last Synced: 2024-11-20T14:24:57.891Z (about 2 months ago)
- Language: Cairo
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# comm-cairo-smart-contracts
This is a Cairo implementation for the Push Comm Contract.
## Configuration
Before running the deployment or declaration scripts, ensure you have the following configuration:
1. **Create an `.env` File**
Copy the `env.sample` file to create the `.env` file with the following command:
```bash
cp .env.sample .envMake sure to update the `.env` file with the correct RPC URLs and fee token.
2. **Account Files**
Create an account using `starkli` and place the account file and keystore file in the accounts directory.
## Deployment Guide
1. **Declare the Contract Class**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.
```bash
bash sh/declare.sh -n -k -a -c2. **Deploy the Contract**
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.
```bash
bash sh/deploy.sh -n -a -k -c -d ""