https://github.com/xastro6/wagus-reward-system
WAGUS Reward System Smart Contract Program: A Rust-based smart contract for the Solana blockchain designed to manage and reward user interactions in the WAGUS reward system. This repository contains the core logic for the reward mechanism, as well as the associated configuration and utility files.
https://github.com/xastro6/wagus-reward-system
blockchain cryptocurrency defi programming rewards rust smart-contract solana system
Last synced: about 1 month ago
JSON representation
WAGUS Reward System Smart Contract Program: A Rust-based smart contract for the Solana blockchain designed to manage and reward user interactions in the WAGUS reward system. This repository contains the core logic for the reward mechanism, as well as the associated configuration and utility files.
- Host: GitHub
- URL: https://github.com/xastro6/wagus-reward-system
- Owner: xastro6
- Created: 2025-03-02T20:19:43.000Z (over 1 year ago)
- Default Branch: program-rust
- Last Pushed: 2025-03-04T02:54:13.000Z (over 1 year ago)
- Last Synced: 2025-03-04T03:29:54.967Z (over 1 year ago)
- Topics: blockchain, cryptocurrency, defi, programming, rewards, rust, smart-contract, solana, system
- Language: Rust
- Homepage:
- Size: 43.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ WAGUS Reward System
A Solana smart contract (program) that powers the **WAGUS token** reward system. This program is designed to handle token-based rewards on the Solana blockchain, utilizing SPL tokens and built with Rust.
## ๐ Description
This project implements a decentralized reward system for the **WAGUS** ecosystem. Users can earn and claim rewards in WAGUS tokens through on-chain interactions.
## ๐ ๏ธ Built With
- [Rust](https://www.rust-lang.org/)
- [Solana Program Library (SPL)](https://spl.solana.com/)
- [Borsh](https://borsh.io/) (for serialization)
- Solana SDK
## ๐ Project Structure
```
โโโ /src # Contains the main source code of the smart contract
โ โโโ lib.rs # Main contract code
โ
โโโ /tests # Contains test files for the smart contract
โ โโโ test-lib.rs # Unit and integration tests
โ
โโโ .gitattributes # Git configuration for handling file attributes
โโโ .gitignore # Git ignore rules for excluding unnecessary files
โโโ cargo.lock # Rust's lock file for dependencies
โโโ cargo.toml # Rust's package configuration file
โโโ readme.md # This file
โโโ testclient.js # JavaScript file to interact with the smart contract
```
## ๐ Deployments
| Network | Program ID |
|----------|-----------------------------------------|
| Devnet | `2ga161fxHesc8YATYz2CconNkTSpCJVABrjbBKGtRYGF` |
## โก Getting Started
### Prerequisites
- [Rust](https://www.rust-lang.org/tools/install)
- [Solana CLI](https://docs.solana.com/cli/install-solana-cli-tools)
- [Node.js](https://nodejs.org/) (if using JS tests)
- Git
### Install Dependencies
```bash
cargo build-bpf
```
### Deploy Program
```bash
solana program deploy target/deploy/wagus_reward_system.so
```
## ๐งช Testing
```bash
cargo test
```
Or, for Solana test validator:
```bash
solana-test-validator
```
## ๐ Resources
- [Solana Docs](https://docs.solana.com/)
- [SPL Token Docs](https://spl.solana.com/token)
- [Anchor Framework (optional)](https://book.anchor-lang.com/)
## ๐ License
This project is licensed under the [Apache 2.0 License](LICENSE).
## โจ Author
**xastro**
[GitHub](https://github.com/xastro6)
```