Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solana-nft-programs/rewards-center
A program and related libraries to distribute rewards to users. Rewards center has various modules to handle token rewards, points rewards, merchandise, purchases, boosting and supports fungible and non-fungible tokens on solana as well as programmable NFTs
https://github.com/solana-nft-programs/rewards-center
Last synced: 28 days ago
JSON representation
A program and related libraries to distribute rewards to users. Rewards center has various modules to handle token rewards, points rewards, merchandise, purchases, boosting and supports fungible and non-fungible tokens on solana as well as programmable NFTs
- Host: GitHub
- URL: https://github.com/solana-nft-programs/rewards-center
- Owner: solana-nft-programs
- License: agpl-3.0
- Created: 2022-11-09T03:04:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T22:54:10.000Z (about 1 year ago)
- Last Synced: 2024-10-02T21:47:26.373Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 63.1 MB
- Stars: 9
- Watchers: 5
- Forks: 6
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rewards-center
A rewards center for NFTs and FTs on Solana# Background
Rewards center is a modular smart contract for staking tokens and distributing various rewards.
# Getting Started
While the deployments of this program are not live, you can deploy your own by using these steps. This will first clone the repo then run `make keys` will generate a new keypair for your program and update authority. NOTE: You must not lose these keypairs. Substitute your own keypair in if you would like to use your own.
> Note: You must not lose the keypairs! They will be saved in ./keypairs directory. To use your own keypairs place them there and skip the `make keys` step
```bash
git clone https://github.com/solana_nft_programs/rewards-center.git
make keys
make key-replace
make install
make build
solana airdrop 2 --url devnet keypairs/update-authority.json
solana program deploy --url devnet --keypair ./keypairs/update-authority.json --program-id ./keypairs/program-id.json ./target/deploy/solana_nft_programs_reward_center.so
```
# State map