{"id":29040718,"url":"https://github.com/pushchain/push-comm-rust","last_synced_at":"2025-06-26T14:36:41.642Z","repository":{"id":256632336,"uuid":"855981339","full_name":"pushchain/push-comm-rust","owner":"pushchain","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-20T06:31:20.000Z","size":253,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-23T13:54:02.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/pushchain.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,"zenodo":null}},"created_at":"2024-09-11T19:23:36.000Z","updated_at":"2024-12-23T08:37:04.000Z","dependencies_parsed_at":"2024-10-25T14:26:35.829Z","dependency_job_id":"e410a17d-319e-4fc4-9820-4d1968f36eb9","html_url":"https://github.com/pushchain/push-comm-rust","commit_stats":null,"previous_names":["push-protocol/push-comm-rust","pushchain/push-comm-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pushchain/push-comm-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fpush-comm-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fpush-comm-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fpush-comm-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fpush-comm-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushchain","download_url":"https://codeload.github.com/pushchain/push-comm-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushchain%2Fpush-comm-rust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262085907,"owners_count":23256540,"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":"2025-06-26T14:36:37.371Z","updated_at":"2025-06-26T14:36:41.611Z","avatar_url":"https://github.com/pushchain.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Push Communicator \u003cNon-EVM\u003e\n\nThis repo includes the Solana-Rust implementation of the Push Communicator contract.\n\n**Note: Currently in WIP**\n\n## Prerequisites\n\n- Make sure you have the latest version of [Rust](https://www.rust-lang.org/tools/install) and [Anchor](https://project-serum.github.io/anchor/getting-started/introduction.html) installed.\n- Set up your Solana wallet and ensure you have the necessary funds for deployment on your chosen network (localnet, devnet, or mainnet).\n\n## Environment Setup\n\n1. **Create and Configure the `.env` File**\n\n   Copy the example environment file to create your own:\n\n   ```bash\n   cp .env.example .env\n    ```\n\n    Open .env in a text editor and update the following values:\n    ```bash\n    # Choose your network: localnet, devnet, or mainnet\n    NETWORK=localnet  # Change this to your desired environment\n\n    # Path to your wallet\n    ANCHOR_WALLET=/path/to/your/solana/id.json\n\n    # Program ID (only needed for upgrades)\n    PROGRAM_ID=YourProgramID  # Replace with your actual program ID\n\n    # Provider URLs\n    PROVIDER_LOCALNET=http://localhost:8899\n    PROVIDER_DEVNET=https://api.devnet.solana.com\n    PROVIDER_MAINNET=https://api.mainnet-beta.solana.com\n    ```\n\n    Make sure to set the correct path for ANCHOR_WALLET and provide your actual PROGRAM_ID if you're upgrading an existing program.\n\n## Deployment Instructions\n\n1. **Deploying the Program**\n\n    Use the provided deployment script to build and deploy the Push Communicator program. This script will automatically use the values from your .env file for the selected network and wallet:\n\n    ```bash\n    bash scripts/deploy.sh\n    ```\n\n    The script will perform the following actions:\n\n    Build the program.\n    1. Deploy it to the specified network using the appropriate provider URL and wallet.\n    2. After deployment, the program ID will be displayed.\n\n## Upgrade Instructions\n\n1. **Upgrading the Program**\n\n    If you need to upgrade an existing program, use the upgrade script. This script will also use the values from your .env file:\n\n    ```bash\n    bash scripts/upgrade.sh\n    ```\n\n    The upgrade process will:\n\n    1. Build the program.\n    2. Upgrade the existing program using the specified PROGRAM_ID, provider URL, and wallet from the .env file.\n    \n    A success message will confirm the upgrade.\n\n## Running on Localnet\nFor **localnet**, ensure to run the Solana test validator in a separate terminal:\n\n    \n    solana-test-validator\n    \n\nThis will start a local Solana cluster that your deployment scripts can interact with.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushchain%2Fpush-comm-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushchain%2Fpush-comm-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushchain%2Fpush-comm-rust/lists"}