{"id":26153953,"url":"https://github.com/jdaviderb/solana-native-program-template","last_synced_at":"2025-03-11T08:02:59.749Z","repository":{"id":213914093,"uuid":"735228553","full_name":"jdaviderb/solana-native-program-template","owner":"jdaviderb","description":"Simplify your Solana Native Program development with this easy-to-use template. Ideal for developers seeking a simple, efficient development process without the need for frameworks like Anchor.","archived":false,"fork":false,"pushed_at":"2023-12-26T18:48:05.000Z","size":66,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-12-27T06:26:06.966Z","etag":null,"topics":["solana","solana-program"],"latest_commit_sha":null,"homepage":"","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/jdaviderb.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}},"created_at":"2023-12-24T06:10:08.000Z","updated_at":"2023-12-26T20:23:56.000Z","dependencies_parsed_at":"2023-12-24T09:32:54.006Z","dependency_job_id":null,"html_url":"https://github.com/jdaviderb/solana-native-program-template","commit_stats":null,"previous_names":["jdaviderb/solana-native-program-template"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdaviderb%2Fsolana-native-program-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdaviderb%2Fsolana-native-program-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdaviderb%2Fsolana-native-program-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdaviderb%2Fsolana-native-program-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdaviderb","download_url":"https://codeload.github.com/jdaviderb/solana-native-program-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242995900,"owners_count":20218828,"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":["solana","solana-program"],"created_at":"2025-03-11T08:02:09.494Z","updated_at":"2025-03-11T08:02:59.736Z","avatar_url":"https://github.com/jdaviderb.png","language":"TypeScript","funding_links":[],"categories":["Solana Development Tools"],"sub_categories":["Notes"],"readme":"## Motivation\n\nThis template is designed to simplify the development of Solana Native Programs, particularly for those not using specific frameworks like Anchor. It offers a testing structure similar to Anchor Framework, aiming to facilitate the development and testing phases of Solana Native Programs.\n\n### Features of This Template\n- **Jest for Testing:** Integrates Jest for end-to-end testing. This setup automates the building of your program and the initialization of solana-test-validator.\n- **Log Accessibility:** Access your program's logs during testing in `e2e/validator.log` for insights into its behavior.\n- **Configurable Keypair Path:** While the default keypair location is in the root directory (`program.json`), you have the option to customize the path in `e2e/package.json`.\n\n## Getting Started\n\n### Pre-requisites\n- [Node.js](https://nodejs.org/en/download/) installation is required (npm included).\n- [Solana Tool Suite][https://docs.solana.com/cli/install-solana-cli-tools] Install the Solana Tool Suite\n- [Rust] (https://www.rust-lang.org/)\n\n### How to Use This Template\n\n1. **Clone the Repository:** Start by cloning this repository to your local machine.\n2. **Generate Keypair:**\n   - The test suite looks for the program's keypair in `program.json` in the project's root.\n   - To generate this keypair, use `solana-keygen new -o program.json`.\n   - If you prefer a different path for the keypair, modify the configuration in `e2e/package.json` under the `solana` section.\n\n## Running End-to-End Tests\n\n1. **Go to the E2E Folder:** Navigate to the `E2E` folder in the cloned repository.\n2. **Install Dependencies:** Run `npm install` to install all necessary Node.js dependencies.\n3. **Run Tests:** Start the end-to-end testing with `npm run test`.\n\n---\n\n### How to deploy:\n\nBy default, the program is located in `target/sbf-solana-solana/release/solana_program.so`, so you could use the command `solana program deploy \u003cPROGRAM_FILEPATH\u003e` to deploy your program.\n\n\n# Structure\n```bash\n.\n├── Cargo.lock\n├── Cargo.toml\n├── README.md\n├── e2e\n│   ├── tests # E2E Testing\n│   │   └── counter.test.ts\n├── program.json # Program Keypair\n└── src # Rust Solana native program\n    └── lib.rs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdaviderb%2Fsolana-native-program-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdaviderb%2Fsolana-native-program-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdaviderb%2Fsolana-native-program-template/lists"}