A Solana smart contract that enables users to make donations and receive reward tokens in return. Built with Anchor framework.
- Make donations in SOL
- Automatically receive reward tokens
- 1:1000 reward ratio (1 SOL = 1000 tokens)
- Built on Solana for fast and low-cost transactions
- Solana - Blockchain platform
- Anchor - Framework for Solana smart contract development
- Rust - Programming language
- TypeScript - For tests and frontend integration
- Clone the repository:
git clone https://github.com/yourusername/cyberia-smart-contract.git
cd cyberia-smart-contract
- Install dependencies:
yarn install
- Build the program:
anchor build
Run the test suite:
anchor test
- Update your
Anchor.toml
with the desired network (devnet/mainnet) - Deploy using Anchor:
anchor deploy
Check out our Frontend Integration Guide for detailed instructions on how to integrate this smart contract into your dApp.
The program is deployed on Solana devnet:
HCqoXrnpp2WZhvwAvoF4aALXPP8gthxNzL8h8DEMrUBv
The smart contract consists of two main components:
- Donation Logic: Handles the SOL donation process
- Reward System: Automatically mints and transfers reward tokens to donors
Contributions are welcome! Please feel free to submit a Pull Request.
For questions and feedback, please open an issue in the GitHub repository.
Give a ⭐️ if this project helped you!